configure revision 3484a99ba1ecddd221c9c77b321d66edb456a7fc
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for llvm 1.7cvs.
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.7cvs'
429PACKAGE_STRING='llvm 1.7cvs'
430PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
432ac_unique_file="lib/VMCore/Module.cpp"
433ac_subdirs_all="$ac_subdirs_all projects/sample"
434ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
438ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
439ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
441ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
442# Factoring default headers for most tests.
443ac_includes_default="\
444#include <stdio.h>
445#if HAVE_SYS_TYPES_H
446# include <sys/types.h>
447#endif
448#if HAVE_SYS_STAT_H
449# include <sys/stat.h>
450#endif
451#if STDC_HEADERS
452# include <stdlib.h>
453# include <stddef.h>
454#else
455# if HAVE_STDLIB_H
456#  include <stdlib.h>
457# endif
458#endif
459#if HAVE_STRING_H
460# if !STDC_HEADERS && HAVE_MEMORY_H
461#  include <memory.h>
462# endif
463# include <string.h>
464#endif
465#if HAVE_STRINGS_H
466# include <strings.h>
467#endif
468#if HAVE_INTTYPES_H
469# include <inttypes.h>
470#else
471# if HAVE_STDINT_H
472#  include <stdint.h>
473# endif
474#endif
475#if HAVE_UNISTD_H
476# include <unistd.h>
477#endif"
478
479ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED DEBUG_RUNTIME 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'
480ac_subst_files=''
481
482# Initialize some variables set by options.
483ac_init_help=
484ac_init_version=false
485# The variables have the same names as the options, with
486# dashes changed to underlines.
487cache_file=/dev/null
488exec_prefix=NONE
489no_create=
490no_recursion=
491prefix=NONE
492program_prefix=NONE
493program_suffix=NONE
494program_transform_name=s,x,x,
495silent=
496site=
497srcdir=
498verbose=
499x_includes=NONE
500x_libraries=NONE
501
502# Installation directory options.
503# These are left unexpanded so users can "make install exec_prefix=/foo"
504# and all the variables that are supposed to be based on exec_prefix
505# by default will actually change.
506# Use braces instead of parens because sh, perl, etc. also accept them.
507bindir='${exec_prefix}/bin'
508sbindir='${exec_prefix}/sbin'
509libexecdir='${exec_prefix}/libexec'
510datadir='${prefix}/share'
511sysconfdir='${prefix}/etc'
512sharedstatedir='${prefix}/com'
513localstatedir='${prefix}/var'
514libdir='${exec_prefix}/lib'
515includedir='${prefix}/include'
516oldincludedir='/usr/include'
517infodir='${prefix}/info'
518mandir='${prefix}/man'
519
520ac_prev=
521for ac_option
522do
523  # If the previous option needs an argument, assign it.
524  if test -n "$ac_prev"; then
525    eval "$ac_prev=\$ac_option"
526    ac_prev=
527    continue
528  fi
529
530  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532  # Accept the important Cygnus configure options, so we can diagnose typos.
533
534  case $ac_option in
535
536  -bindir | --bindir | --bindi | --bind | --bin | --bi)
537    ac_prev=bindir ;;
538  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539    bindir=$ac_optarg ;;
540
541  -build | --build | --buil | --bui | --bu)
542    ac_prev=build_alias ;;
543  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544    build_alias=$ac_optarg ;;
545
546  -cache-file | --cache-file | --cache-fil | --cache-fi \
547  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548    ac_prev=cache_file ;;
549  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551    cache_file=$ac_optarg ;;
552
553  --config-cache | -C)
554    cache_file=config.cache ;;
555
556  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557    ac_prev=datadir ;;
558  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559  | --da=*)
560    datadir=$ac_optarg ;;
561
562  -disable-* | --disable-*)
563    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564    # Reject names that are not valid shell variable names.
565    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567   { (exit 1); exit 1; }; }
568    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569    eval "enable_$ac_feature=no" ;;
570
571  -enable-* | --enable-*)
572    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573    # Reject names that are not valid shell variable names.
574    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576   { (exit 1); exit 1; }; }
577    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578    case $ac_option in
579      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580      *) ac_optarg=yes ;;
581    esac
582    eval "enable_$ac_feature='$ac_optarg'" ;;
583
584  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586  | --exec | --exe | --ex)
587    ac_prev=exec_prefix ;;
588  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590  | --exec=* | --exe=* | --ex=*)
591    exec_prefix=$ac_optarg ;;
592
593  -gas | --gas | --ga | --g)
594    # Obsolete; use --with-gas.
595    with_gas=yes ;;
596
597  -help | --help | --hel | --he | -h)
598    ac_init_help=long ;;
599  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600    ac_init_help=recursive ;;
601  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602    ac_init_help=short ;;
603
604  -host | --host | --hos | --ho)
605    ac_prev=host_alias ;;
606  -host=* | --host=* | --hos=* | --ho=*)
607    host_alias=$ac_optarg ;;
608
609  -includedir | --includedir | --includedi | --included | --include \
610  | --includ | --inclu | --incl | --inc)
611    ac_prev=includedir ;;
612  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613  | --includ=* | --inclu=* | --incl=* | --inc=*)
614    includedir=$ac_optarg ;;
615
616  -infodir | --infodir | --infodi | --infod | --info | --inf)
617    ac_prev=infodir ;;
618  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619    infodir=$ac_optarg ;;
620
621  -libdir | --libdir | --libdi | --libd)
622    ac_prev=libdir ;;
623  -libdir=* | --libdir=* | --libdi=* | --libd=*)
624    libdir=$ac_optarg ;;
625
626  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627  | --libexe | --libex | --libe)
628    ac_prev=libexecdir ;;
629  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630  | --libexe=* | --libex=* | --libe=*)
631    libexecdir=$ac_optarg ;;
632
633  -localstatedir | --localstatedir | --localstatedi | --localstated \
634  | --localstate | --localstat | --localsta | --localst \
635  | --locals | --local | --loca | --loc | --lo)
636    ac_prev=localstatedir ;;
637  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640    localstatedir=$ac_optarg ;;
641
642  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643    ac_prev=mandir ;;
644  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645    mandir=$ac_optarg ;;
646
647  -nfp | --nfp | --nf)
648    # Obsolete; use --without-fp.
649    with_fp=no ;;
650
651  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652  | --no-cr | --no-c | -n)
653    no_create=yes ;;
654
655  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657    no_recursion=yes ;;
658
659  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661  | --oldin | --oldi | --old | --ol | --o)
662    ac_prev=oldincludedir ;;
663  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666    oldincludedir=$ac_optarg ;;
667
668  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669    ac_prev=prefix ;;
670  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671    prefix=$ac_optarg ;;
672
673  -program-prefix | --program-prefix | --program-prefi | --program-pref \
674  | --program-pre | --program-pr | --program-p)
675    ac_prev=program_prefix ;;
676  -program-prefix=* | --program-prefix=* | --program-prefi=* \
677  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678    program_prefix=$ac_optarg ;;
679
680  -program-suffix | --program-suffix | --program-suffi | --program-suff \
681  | --program-suf | --program-su | --program-s)
682    ac_prev=program_suffix ;;
683  -program-suffix=* | --program-suffix=* | --program-suffi=* \
684  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685    program_suffix=$ac_optarg ;;
686
687  -program-transform-name | --program-transform-name \
688  | --program-transform-nam | --program-transform-na \
689  | --program-transform-n | --program-transform- \
690  | --program-transform | --program-transfor \
691  | --program-transfo | --program-transf \
692  | --program-trans | --program-tran \
693  | --progr-tra | --program-tr | --program-t)
694    ac_prev=program_transform_name ;;
695  -program-transform-name=* | --program-transform-name=* \
696  | --program-transform-nam=* | --program-transform-na=* \
697  | --program-transform-n=* | --program-transform-=* \
698  | --program-transform=* | --program-transfor=* \
699  | --program-transfo=* | --program-transf=* \
700  | --program-trans=* | --program-tran=* \
701  | --progr-tra=* | --program-tr=* | --program-t=*)
702    program_transform_name=$ac_optarg ;;
703
704  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705  | -silent | --silent | --silen | --sile | --sil)
706    silent=yes ;;
707
708  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709    ac_prev=sbindir ;;
710  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711  | --sbi=* | --sb=*)
712    sbindir=$ac_optarg ;;
713
714  -sharedstatedir | --sharedstatedir | --sharedstatedi \
715  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716  | --sharedst | --shareds | --shared | --share | --shar \
717  | --sha | --sh)
718    ac_prev=sharedstatedir ;;
719  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722  | --sha=* | --sh=*)
723    sharedstatedir=$ac_optarg ;;
724
725  -site | --site | --sit)
726    ac_prev=site ;;
727  -site=* | --site=* | --sit=*)
728    site=$ac_optarg ;;
729
730  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731    ac_prev=srcdir ;;
732  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733    srcdir=$ac_optarg ;;
734
735  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736  | --syscon | --sysco | --sysc | --sys | --sy)
737    ac_prev=sysconfdir ;;
738  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740    sysconfdir=$ac_optarg ;;
741
742  -target | --target | --targe | --targ | --tar | --ta | --t)
743    ac_prev=target_alias ;;
744  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745    target_alias=$ac_optarg ;;
746
747  -v | -verbose | --verbose | --verbos | --verbo | --verb)
748    verbose=yes ;;
749
750  -version | --version | --versio | --versi | --vers | -V)
751    ac_init_version=: ;;
752
753  -with-* | --with-*)
754    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755    # Reject names that are not valid shell variable names.
756    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757      { echo "$as_me: error: invalid package name: $ac_package" >&2
758   { (exit 1); exit 1; }; }
759    ac_package=`echo $ac_package| sed 's/-/_/g'`
760    case $ac_option in
761      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762      *) ac_optarg=yes ;;
763    esac
764    eval "with_$ac_package='$ac_optarg'" ;;
765
766  -without-* | --without-*)
767    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768    # Reject names that are not valid shell variable names.
769    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770      { echo "$as_me: error: invalid package name: $ac_package" >&2
771   { (exit 1); exit 1; }; }
772    ac_package=`echo $ac_package | sed 's/-/_/g'`
773    eval "with_$ac_package=no" ;;
774
775  --x)
776    # Obsolete; use --with-x.
777    with_x=yes ;;
778
779  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780  | --x-incl | --x-inc | --x-in | --x-i)
781    ac_prev=x_includes ;;
782  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784    x_includes=$ac_optarg ;;
785
786  -x-libraries | --x-libraries | --x-librarie | --x-librari \
787  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788    ac_prev=x_libraries ;;
789  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791    x_libraries=$ac_optarg ;;
792
793  -*) { echo "$as_me: error: unrecognized option: $ac_option
794Try \`$0 --help' for more information." >&2
795   { (exit 1); exit 1; }; }
796    ;;
797
798  *=*)
799    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800    # Reject names that are not valid shell variable names.
801    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803   { (exit 1); exit 1; }; }
804    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805    eval "$ac_envvar='$ac_optarg'"
806    export $ac_envvar ;;
807
808  *)
809    # FIXME: should be removed in autoconf 3.0.
810    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814    ;;
815
816  esac
817done
818
819if test -n "$ac_prev"; then
820  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821  { echo "$as_me: error: missing argument to $ac_option" >&2
822   { (exit 1); exit 1; }; }
823fi
824
825# Be sure to have absolute paths.
826for ac_var in exec_prefix prefix
827do
828  eval ac_val=$`echo $ac_var`
829  case $ac_val in
830    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832   { (exit 1); exit 1; }; };;
833  esac
834done
835
836# Be sure to have absolute paths.
837for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
838	      localstatedir libdir includedir oldincludedir infodir mandir
839do
840  eval ac_val=$`echo $ac_var`
841  case $ac_val in
842    [\\/$]* | ?:[\\/]* ) ;;
843    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844   { (exit 1); exit 1; }; };;
845  esac
846done
847
848# There might be people who depend on the old broken behavior: `$host'
849# used to hold the argument of --host etc.
850# FIXME: To remove some day.
851build=$build_alias
852host=$host_alias
853target=$target_alias
854
855# FIXME: To remove some day.
856if test "x$host_alias" != x; then
857  if test "x$build_alias" = x; then
858    cross_compiling=maybe
859    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860    If a cross compiler is detected then cross compile mode will be used." >&2
861  elif test "x$build_alias" != "x$host_alias"; then
862    cross_compiling=yes
863  fi
864fi
865
866ac_tool_prefix=
867test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869test "$silent" = yes && exec 6>/dev/null
870
871
872# Find the source files, if location was not specified.
873if test -z "$srcdir"; then
874  ac_srcdir_defaulted=yes
875  # Try the directory containing this script, then its parent.
876  ac_confdir=`(dirname "$0") 2>/dev/null ||
877$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878	 X"$0" : 'X\(//\)[^/]' \| \
879	 X"$0" : 'X\(//\)$' \| \
880	 X"$0" : 'X\(/\)' \| \
881	 .     : '\(.\)' 2>/dev/null ||
882echo X"$0" |
883    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885  	  /^X\(\/\/\)$/{ s//\1/; q; }
886  	  /^X\(\/\).*/{ s//\1/; q; }
887  	  s/.*/./; q'`
888  srcdir=$ac_confdir
889  if test ! -r $srcdir/$ac_unique_file; then
890    srcdir=..
891  fi
892else
893  ac_srcdir_defaulted=no
894fi
895if test ! -r $srcdir/$ac_unique_file; then
896  if test "$ac_srcdir_defaulted" = yes; then
897    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898   { (exit 1); exit 1; }; }
899  else
900    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901   { (exit 1); exit 1; }; }
902  fi
903fi
904(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906   { (exit 1); exit 1; }; }
907srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908ac_env_build_alias_set=${build_alias+set}
909ac_env_build_alias_value=$build_alias
910ac_cv_env_build_alias_set=${build_alias+set}
911ac_cv_env_build_alias_value=$build_alias
912ac_env_host_alias_set=${host_alias+set}
913ac_env_host_alias_value=$host_alias
914ac_cv_env_host_alias_set=${host_alias+set}
915ac_cv_env_host_alias_value=$host_alias
916ac_env_target_alias_set=${target_alias+set}
917ac_env_target_alias_value=$target_alias
918ac_cv_env_target_alias_set=${target_alias+set}
919ac_cv_env_target_alias_value=$target_alias
920ac_env_CC_set=${CC+set}
921ac_env_CC_value=$CC
922ac_cv_env_CC_set=${CC+set}
923ac_cv_env_CC_value=$CC
924ac_env_CFLAGS_set=${CFLAGS+set}
925ac_env_CFLAGS_value=$CFLAGS
926ac_cv_env_CFLAGS_set=${CFLAGS+set}
927ac_cv_env_CFLAGS_value=$CFLAGS
928ac_env_LDFLAGS_set=${LDFLAGS+set}
929ac_env_LDFLAGS_value=$LDFLAGS
930ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931ac_cv_env_LDFLAGS_value=$LDFLAGS
932ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_env_CPPFLAGS_value=$CPPFLAGS
934ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936ac_env_CPP_set=${CPP+set}
937ac_env_CPP_value=$CPP
938ac_cv_env_CPP_set=${CPP+set}
939ac_cv_env_CPP_value=$CPP
940ac_env_CXX_set=${CXX+set}
941ac_env_CXX_value=$CXX
942ac_cv_env_CXX_set=${CXX+set}
943ac_cv_env_CXX_value=$CXX
944ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945ac_env_CXXFLAGS_value=$CXXFLAGS
946ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948ac_env_CXXCPP_set=${CXXCPP+set}
949ac_env_CXXCPP_value=$CXXCPP
950ac_cv_env_CXXCPP_set=${CXXCPP+set}
951ac_cv_env_CXXCPP_value=$CXXCPP
952ac_env_F77_set=${F77+set}
953ac_env_F77_value=$F77
954ac_cv_env_F77_set=${F77+set}
955ac_cv_env_F77_value=$F77
956ac_env_FFLAGS_set=${FFLAGS+set}
957ac_env_FFLAGS_value=$FFLAGS
958ac_cv_env_FFLAGS_set=${FFLAGS+set}
959ac_cv_env_FFLAGS_value=$FFLAGS
960
961#
962# Report the --help message.
963#
964if test "$ac_init_help" = "long"; then
965  # Omit some internal or obsolete options to make the list less imposing.
966  # This message is too long to be a string in the A/UX 3.1 sh.
967  cat <<_ACEOF
968\`configure' configures llvm 1.7cvs to adapt to many kinds of systems.
969
970Usage: $0 [OPTION]... [VAR=VALUE]...
971
972To assign environment variables (e.g., CC, CFLAGS...), specify them as
973VAR=VALUE.  See below for descriptions of some of the useful variables.
974
975Defaults for the options are specified in brackets.
976
977Configuration:
978  -h, --help              display this help and exit
979      --help=short        display options specific to this package
980      --help=recursive    display the short help of all the included packages
981  -V, --version           display version information and exit
982  -q, --quiet, --silent   do not print \`checking...' messages
983      --cache-file=FILE   cache test results in FILE [disabled]
984  -C, --config-cache      alias for \`--cache-file=config.cache'
985  -n, --no-create         do not create output files
986      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
987
988_ACEOF
989
990  cat <<_ACEOF
991Installation directories:
992  --prefix=PREFIX         install architecture-independent files in PREFIX
993			  [$ac_default_prefix]
994  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
995			  [PREFIX]
996
997By default, \`make install' will install all the files in
998\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
999an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000for instance \`--prefix=\$HOME'.
1001
1002For better control, use the options below.
1003
1004Fine tuning of the installation directories:
1005  --bindir=DIR           user executables [EPREFIX/bin]
1006  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1007  --libexecdir=DIR       program executables [EPREFIX/libexec]
1008  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1009  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1010  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1011  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1012  --libdir=DIR           object code libraries [EPREFIX/lib]
1013  --includedir=DIR       C header files [PREFIX/include]
1014  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1015  --infodir=DIR          info documentation [PREFIX/info]
1016  --mandir=DIR           man documentation [PREFIX/man]
1017_ACEOF
1018
1019  cat <<\_ACEOF
1020
1021System types:
1022  --build=BUILD     configure for building on BUILD [guessed]
1023  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1024  --target=TARGET   configure for building compilers for TARGET [HOST]
1025_ACEOF
1026fi
1027
1028if test -n "$ac_init_help"; then
1029  case $ac_init_help in
1030     short | recursive ) echo "Configuration of llvm 1.7cvs:";;
1031   esac
1032  cat <<\_ACEOF
1033
1034Optional Features:
1035  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1036  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1037  --enable-optimized
1038  --enable-debug-runtime
1039  --enable-jit            Enable Just In Time Compiling (default is YES)
1040  --enable-doxygen        Build doxygen documentation (default is NO)
1041  --enable-threads        Use threads if available (default is YES)
1042  --enable-target         Build specific host targets:
1043                          all,host-only,{target-name} (default=all)
1044  --enable-ltdl-install   install libltdl
1045  --enable-shared[=PKGS]
1046                          build shared libraries [default=yes]
1047  --enable-static[=PKGS]
1048                          build static libraries [default=yes]
1049  --enable-fast-install[=PKGS]
1050                          optimize for fast installation [default=yes]
1051  --disable-libtool-lock  avoid locking (might break parallel builds)
1052
1053Optional Packages:
1054  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1055  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1056  --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1057                          searches PATH)
1058  --with-tclinclude       directory where tcl headers are
1059  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1060  --with-pic              try to use only PIC/non-PIC objects [default=use
1061                          both]
1062  --with-tags[=TAGS]
1063                          include additional configurations [automatic]
1064
1065Some influential environment variables:
1066  CC          C compiler command
1067  CFLAGS      C compiler flags
1068  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1069              nonstandard directory <lib dir>
1070  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1071              headers in a nonstandard directory <include dir>
1072  CPP         C preprocessor
1073  CXX         C++ compiler command
1074  CXXFLAGS    C++ compiler flags
1075  CXXCPP      C++ preprocessor
1076  F77         Fortran 77 compiler command
1077  FFLAGS      Fortran 77 compiler flags
1078
1079Use these variables to override the choices made by `configure' or to help
1080it to find libraries and programs with nonstandard names/locations.
1081
1082Report bugs to <llvmbugs@cs.uiuc.edu>.
1083_ACEOF
1084fi
1085
1086if test "$ac_init_help" = "recursive"; then
1087  # If there are subdirs, report their specific --help.
1088  ac_popdir=`pwd`
1089  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1090    test -d $ac_dir || continue
1091    ac_builddir=.
1092
1093if test "$ac_dir" != .; then
1094  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1095  # A "../" for each directory in $ac_dir_suffix.
1096  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1097else
1098  ac_dir_suffix= ac_top_builddir=
1099fi
1100
1101case $srcdir in
1102  .)  # No --srcdir option.  We are building in place.
1103    ac_srcdir=.
1104    if test -z "$ac_top_builddir"; then
1105       ac_top_srcdir=.
1106    else
1107       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1108    fi ;;
1109  [\\/]* | ?:[\\/]* )  # Absolute path.
1110    ac_srcdir=$srcdir$ac_dir_suffix;
1111    ac_top_srcdir=$srcdir ;;
1112  *) # Relative path.
1113    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1114    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1115esac
1116
1117# Do not use `cd foo && pwd` to compute absolute paths, because
1118# the directories may not exist.
1119case `pwd` in
1120.) ac_abs_builddir="$ac_dir";;
1121*)
1122  case "$ac_dir" in
1123  .) ac_abs_builddir=`pwd`;;
1124  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1125  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1126  esac;;
1127esac
1128case $ac_abs_builddir in
1129.) ac_abs_top_builddir=${ac_top_builddir}.;;
1130*)
1131  case ${ac_top_builddir}. in
1132  .) ac_abs_top_builddir=$ac_abs_builddir;;
1133  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1134  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1135  esac;;
1136esac
1137case $ac_abs_builddir in
1138.) ac_abs_srcdir=$ac_srcdir;;
1139*)
1140  case $ac_srcdir in
1141  .) ac_abs_srcdir=$ac_abs_builddir;;
1142  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1143  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1144  esac;;
1145esac
1146case $ac_abs_builddir in
1147.) ac_abs_top_srcdir=$ac_top_srcdir;;
1148*)
1149  case $ac_top_srcdir in
1150  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1151  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1152  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1153  esac;;
1154esac
1155
1156    cd $ac_dir
1157    # Check for guested configure; otherwise get Cygnus style configure.
1158    if test -f $ac_srcdir/configure.gnu; then
1159      echo
1160      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1161    elif test -f $ac_srcdir/configure; then
1162      echo
1163      $SHELL $ac_srcdir/configure  --help=recursive
1164    elif test -f $ac_srcdir/configure.ac ||
1165	   test -f $ac_srcdir/configure.in; then
1166      echo
1167      $ac_configure --help
1168    else
1169      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1170    fi
1171    cd $ac_popdir
1172  done
1173fi
1174
1175test -n "$ac_init_help" && exit 0
1176if $ac_init_version; then
1177  cat <<\_ACEOF
1178llvm configure 1.7cvs
1179generated by GNU Autoconf 2.59
1180
1181Copyright (C) 2003 Free Software Foundation, Inc.
1182This configure script is free software; the Free Software Foundation
1183gives unlimited permission to copy, distribute and modify it.
1184
1185Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1186_ACEOF
1187  exit 0
1188fi
1189exec 5>config.log
1190cat >&5 <<_ACEOF
1191This file contains any messages produced by compilers while
1192running configure, to aid debugging if configure makes a mistake.
1193
1194It was created by llvm $as_me 1.7cvs, which was
1195generated by GNU Autoconf 2.59.  Invocation command line was
1196
1197  $ $0 $@
1198
1199_ACEOF
1200{
1201cat <<_ASUNAME
1202## --------- ##
1203## Platform. ##
1204## --------- ##
1205
1206hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1207uname -m = `(uname -m) 2>/dev/null || echo unknown`
1208uname -r = `(uname -r) 2>/dev/null || echo unknown`
1209uname -s = `(uname -s) 2>/dev/null || echo unknown`
1210uname -v = `(uname -v) 2>/dev/null || echo unknown`
1211
1212/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1213/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1214
1215/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1216/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1217/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1218hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1219/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1220/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1221/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1222
1223_ASUNAME
1224
1225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1226for as_dir in $PATH
1227do
1228  IFS=$as_save_IFS
1229  test -z "$as_dir" && as_dir=.
1230  echo "PATH: $as_dir"
1231done
1232
1233} >&5
1234
1235cat >&5 <<_ACEOF
1236
1237
1238## ----------- ##
1239## Core tests. ##
1240## ----------- ##
1241
1242_ACEOF
1243
1244
1245# Keep a trace of the command line.
1246# Strip out --no-create and --no-recursion so they do not pile up.
1247# Strip out --silent because we don't want to record it for future runs.
1248# Also quote any args containing shell meta-characters.
1249# Make two passes to allow for proper duplicate-argument suppression.
1250ac_configure_args=
1251ac_configure_args0=
1252ac_configure_args1=
1253ac_sep=
1254ac_must_keep_next=false
1255for ac_pass in 1 2
1256do
1257  for ac_arg
1258  do
1259    case $ac_arg in
1260    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1261    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1262    | -silent | --silent | --silen | --sile | --sil)
1263      continue ;;
1264    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1265      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1266    esac
1267    case $ac_pass in
1268    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1269    2)
1270      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1271      if test $ac_must_keep_next = true; then
1272	ac_must_keep_next=false # Got value, back to normal.
1273      else
1274	case $ac_arg in
1275	  *=* | --config-cache | -C | -disable-* | --disable-* \
1276	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1277	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1278	  | -with-* | --with-* | -without-* | --without-* | --x)
1279	    case "$ac_configure_args0 " in
1280	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1281	    esac
1282	    ;;
1283	  -* ) ac_must_keep_next=true ;;
1284	esac
1285      fi
1286      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1287      # Get rid of the leading space.
1288      ac_sep=" "
1289      ;;
1290    esac
1291  done
1292done
1293$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1294$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1295
1296# When interrupted or exit'd, cleanup temporary files, and complete
1297# config.log.  We remove comments because anyway the quotes in there
1298# would cause problems or look ugly.
1299# WARNING: Be sure not to use single quotes in there, as some shells,
1300# such as our DU 5.0 friend, will then `close' the trap.
1301trap 'exit_status=$?
1302  # Save into config.log some information that might help in debugging.
1303  {
1304    echo
1305
1306    cat <<\_ASBOX
1307## ---------------- ##
1308## Cache variables. ##
1309## ---------------- ##
1310_ASBOX
1311    echo
1312    # The following way of writing the cache mishandles newlines in values,
1313{
1314  (set) 2>&1 |
1315    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1316    *ac_space=\ *)
1317      sed -n \
1318	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1319	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1320      ;;
1321    *)
1322      sed -n \
1323	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1324      ;;
1325    esac;
1326}
1327    echo
1328
1329    cat <<\_ASBOX
1330## ----------------- ##
1331## Output variables. ##
1332## ----------------- ##
1333_ASBOX
1334    echo
1335    for ac_var in $ac_subst_vars
1336    do
1337      eval ac_val=$`echo $ac_var`
1338      echo "$ac_var='"'"'$ac_val'"'"'"
1339    done | sort
1340    echo
1341
1342    if test -n "$ac_subst_files"; then
1343      cat <<\_ASBOX
1344## ------------- ##
1345## Output files. ##
1346## ------------- ##
1347_ASBOX
1348      echo
1349      for ac_var in $ac_subst_files
1350      do
1351	eval ac_val=$`echo $ac_var`
1352	echo "$ac_var='"'"'$ac_val'"'"'"
1353      done | sort
1354      echo
1355    fi
1356
1357    if test -s confdefs.h; then
1358      cat <<\_ASBOX
1359## ----------- ##
1360## confdefs.h. ##
1361## ----------- ##
1362_ASBOX
1363      echo
1364      sed "/^$/d" confdefs.h | sort
1365      echo
1366    fi
1367    test "$ac_signal" != 0 &&
1368      echo "$as_me: caught signal $ac_signal"
1369    echo "$as_me: exit $exit_status"
1370  } >&5
1371  rm -f core *.core &&
1372  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1373    exit $exit_status
1374     ' 0
1375for ac_signal in 1 2 13 15; do
1376  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1377done
1378ac_signal=0
1379
1380# confdefs.h avoids OS command line length limits that DEFS can exceed.
1381rm -rf conftest* confdefs.h
1382# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1383echo >confdefs.h
1384
1385# Predefined preprocessor variables.
1386
1387cat >>confdefs.h <<_ACEOF
1388#define PACKAGE_NAME "$PACKAGE_NAME"
1389_ACEOF
1390
1391
1392cat >>confdefs.h <<_ACEOF
1393#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1394_ACEOF
1395
1396
1397cat >>confdefs.h <<_ACEOF
1398#define PACKAGE_VERSION "$PACKAGE_VERSION"
1399_ACEOF
1400
1401
1402cat >>confdefs.h <<_ACEOF
1403#define PACKAGE_STRING "$PACKAGE_STRING"
1404_ACEOF
1405
1406
1407cat >>confdefs.h <<_ACEOF
1408#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1409_ACEOF
1410
1411
1412# Let the site file select an alternate cache file if it wants to.
1413# Prefer explicitly selected file to automatically selected ones.
1414if test -z "$CONFIG_SITE"; then
1415  if test "x$prefix" != xNONE; then
1416    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1417  else
1418    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1419  fi
1420fi
1421for ac_site_file in $CONFIG_SITE; do
1422  if test -r "$ac_site_file"; then
1423    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1424echo "$as_me: loading site script $ac_site_file" >&6;}
1425    sed 's/^/| /' "$ac_site_file" >&5
1426    . "$ac_site_file"
1427  fi
1428done
1429
1430if test -r "$cache_file"; then
1431  # Some versions of bash will fail to source /dev/null (special
1432  # files actually), so we avoid doing that.
1433  if test -f "$cache_file"; then
1434    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1435echo "$as_me: loading cache $cache_file" >&6;}
1436    case $cache_file in
1437      [\\/]* | ?:[\\/]* ) . $cache_file;;
1438      *)                      . ./$cache_file;;
1439    esac
1440  fi
1441else
1442  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1443echo "$as_me: creating cache $cache_file" >&6;}
1444  >$cache_file
1445fi
1446
1447# Check that the precious variables saved in the cache have kept the same
1448# value.
1449ac_cache_corrupted=false
1450for ac_var in `(set) 2>&1 |
1451	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1452  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1453  eval ac_new_set=\$ac_env_${ac_var}_set
1454  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1455  eval ac_new_val="\$ac_env_${ac_var}_value"
1456  case $ac_old_set,$ac_new_set in
1457    set,)
1458      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1459echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1460      ac_cache_corrupted=: ;;
1461    ,set)
1462      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1463echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1464      ac_cache_corrupted=: ;;
1465    ,);;
1466    *)
1467      if test "x$ac_old_val" != "x$ac_new_val"; then
1468	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1469echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1470	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1471echo "$as_me:   former value:  $ac_old_val" >&2;}
1472	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1473echo "$as_me:   current value: $ac_new_val" >&2;}
1474	ac_cache_corrupted=:
1475      fi;;
1476  esac
1477  # Pass precious variables to config.status.
1478  if test "$ac_new_set" = set; then
1479    case $ac_new_val in
1480    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1481      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1482    *) ac_arg=$ac_var=$ac_new_val ;;
1483    esac
1484    case " $ac_configure_args " in
1485      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1486      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1487    esac
1488  fi
1489done
1490if $ac_cache_corrupted; then
1491  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1492echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1493  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1494echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1495   { (exit 1); exit 1; }; }
1496fi
1497
1498ac_ext=c
1499ac_cpp='$CPP $CPPFLAGS'
1500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1502ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1529
1530
1531LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1532
1533
1534
1535
1536
1537
1538
1539ac_aux_dir=
1540for ac_dir in autoconf $srcdir/autoconf; do
1541  if test -f $ac_dir/install-sh; then
1542    ac_aux_dir=$ac_dir
1543    ac_install_sh="$ac_aux_dir/install-sh -c"
1544    break
1545  elif test -f $ac_dir/install.sh; then
1546    ac_aux_dir=$ac_dir
1547    ac_install_sh="$ac_aux_dir/install.sh -c"
1548    break
1549  elif test -f $ac_dir/shtool; then
1550    ac_aux_dir=$ac_dir
1551    ac_install_sh="$ac_aux_dir/shtool install -c"
1552    break
1553  fi
1554done
1555if test -z "$ac_aux_dir"; then
1556  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1557echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1558   { (exit 1); exit 1; }; }
1559fi
1560ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1561ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1562ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1563
1564
1565if test ${srcdir} != "." ; then
1566  if test -f ${srcdir}/include/llvm/Config/config.h ; then
1567    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1568echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1569   { (exit 1); exit 1; }; }
1570  fi
1571fi
1572
1573for i in `ls ${srcdir}/projects`
1574do
1575  if test -d ${srcdir}/projects/${i} ; then
1576    case ${i} in
1577      "CVS") ;;
1578      "sample")
1579
1580subdirs="$subdirs projects/sample"
1581    ;;
1582      "Stacker")
1583
1584subdirs="$subdirs projects/Stacker"
1585   ;;
1586      "llvm-test")
1587
1588subdirs="$subdirs projects/llvm-test"
1589 ;;
1590      "llvm-reopt")
1591
1592subdirs="$subdirs projects/llvm-reopt"
1593;;
1594      "llvm-gcc")
1595
1596subdirs="$subdirs projects/llvm-gcc"
1597  ;;
1598      "llvm-java")
1599
1600subdirs="$subdirs projects/llvm-java"
1601 ;;
1602      "llvm-tv")
1603
1604subdirs="$subdirs projects/llvm-tv"
1605   ;;
1606      "llvm-poolalloc")
1607
1608subdirs="$subdirs projects/llvm-poolalloc"
1609 ;;
1610      "llvm-kernel")
1611
1612subdirs="$subdirs projects/llvm-kernel"
1613 ;;
1614      *)
1615        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1616echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1617        ;;
1618    esac
1619  fi
1620done
1621
1622
1623# Make sure we can run config.sub.
1624$ac_config_sub sun4 >/dev/null 2>&1 ||
1625  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1626echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1627   { (exit 1); exit 1; }; }
1628
1629echo "$as_me:$LINENO: checking build system type" >&5
1630echo $ECHO_N "checking build system type... $ECHO_C" >&6
1631if test "${ac_cv_build+set}" = set; then
1632  echo $ECHO_N "(cached) $ECHO_C" >&6
1633else
1634  ac_cv_build_alias=$build_alias
1635test -z "$ac_cv_build_alias" &&
1636  ac_cv_build_alias=`$ac_config_guess`
1637test -z "$ac_cv_build_alias" &&
1638  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1639echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1640   { (exit 1); exit 1; }; }
1641ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1642  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1643echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1644   { (exit 1); exit 1; }; }
1645
1646fi
1647echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1648echo "${ECHO_T}$ac_cv_build" >&6
1649build=$ac_cv_build
1650build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1651build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1652build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1653
1654
1655echo "$as_me:$LINENO: checking host system type" >&5
1656echo $ECHO_N "checking host system type... $ECHO_C" >&6
1657if test "${ac_cv_host+set}" = set; then
1658  echo $ECHO_N "(cached) $ECHO_C" >&6
1659else
1660  ac_cv_host_alias=$host_alias
1661test -z "$ac_cv_host_alias" &&
1662  ac_cv_host_alias=$ac_cv_build_alias
1663ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1664  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1665echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1666   { (exit 1); exit 1; }; }
1667
1668fi
1669echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1670echo "${ECHO_T}$ac_cv_host" >&6
1671host=$ac_cv_host
1672host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1673host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1674host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1675
1676
1677echo "$as_me:$LINENO: checking target system type" >&5
1678echo $ECHO_N "checking target system type... $ECHO_C" >&6
1679if test "${ac_cv_target+set}" = set; then
1680  echo $ECHO_N "(cached) $ECHO_C" >&6
1681else
1682  ac_cv_target_alias=$target_alias
1683test "x$ac_cv_target_alias" = "x" &&
1684  ac_cv_target_alias=$ac_cv_host_alias
1685ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1686  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1687echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1688   { (exit 1); exit 1; }; }
1689
1690fi
1691echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1692echo "${ECHO_T}$ac_cv_target" >&6
1693target=$ac_cv_target
1694target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1695target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1696target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1697
1698
1699# The aliases save the names the user supplied, while $host etc.
1700# will get canonicalized.
1701test -n "$target_alias" &&
1702  test "$program_prefix$program_suffix$program_transform_name" = \
1703    NONENONEs,x,x, &&
1704  program_prefix=${target_alias}-
1705
1706echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1707echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1708if test "${llvm_cv_os_type+set}" = set; then
1709  echo $ECHO_N "(cached) $ECHO_C" >&6
1710else
1711  case $build in
1712  *-*-aix*)
1713    llvm_cv_os_type="AIX"
1714    llvm_cv_platform_type="Unix" ;;
1715  *-*-cygwin*)
1716    llvm_cv_os_type="Cygwin"
1717    llvm_cv_platform_type="Unix" ;;
1718  *-*-darwin*)
1719    llvm_cv_os_type="Darwin"
1720    llvm_cv_platform_type="Unix" ;;
1721  *-*-freebsd*)
1722    llvm_cv_os_type="FreeBSD"
1723    llvm_cv_platform_type="Unix" ;;
1724  *-*-hpux*)
1725    llvm_cv_os_type="HP-UX"
1726    llvm_cv_platform_type="Unix" ;;
1727  *-*-interix*)
1728    llvm_cv_os_type="Interix"
1729    llvm_cv_platform_type="Unix" ;;
1730  *-*-linux*)
1731    llvm_cv_os_type="Linux"
1732    llvm_cv_platform_type="Unix" ;;
1733  *-*-solaris*)
1734    llvm_cv_os_type="SunOS"
1735    llvm_cv_platform_type="Unix" ;;
1736  *-*-win32*)
1737    llvm_cv_os_type="Win32"
1738    llvm_cv_platform_type="Win32" ;;
1739  *-*-mingw*)
1740    llvm_cv_os_type="MingW"
1741    llvm_cv_platform_type="Win32" ;;
1742  *)
1743    llvm_cv_os_type="Unknown"
1744    llvm_cv_platform_type="Unknown" ;;
1745esac
1746fi
1747echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1748echo "${ECHO_T}$llvm_cv_os_type" >&6
1749
1750if test "$llvm_cv_os_type" = "Unknown" ; then
1751  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1752echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1753   { (exit 1); exit 1; }; }
1754fi
1755
1756OS=$llvm_cv_os_type
1757
1758
1759case $llvm_cv_platform_type in
1760  Unix)
1761
1762cat >>confdefs.h <<\_ACEOF
1763#define LLVM_ON_UNIX 1
1764_ACEOF
1765
1766    LLVM_ON_UNIX=1
1767
1768    LLVM_ON_WIN32=0
1769
1770    ;;
1771  Win32)
1772
1773cat >>confdefs.h <<\_ACEOF
1774#define LLVM_ON_WIN32 1
1775_ACEOF
1776
1777    LLVM_ON_UNIX=0
1778
1779    LLVM_ON_WIN32=1
1780
1781    ;;
1782esac
1783
1784echo "$as_me:$LINENO: checking target architecture" >&5
1785echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1786if test "${llvm_cv_target_arch+set}" = set; then
1787  echo $ECHO_N "(cached) $ECHO_C" >&6
1788else
1789  case $target in
1790  i?86-*)                 llvm_cv_target_arch="x86" ;;
1791  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1792  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1793  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1794  alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1795  ia64-*)                 llvm_cv_target_arch="IA64" ;;
1796  *)                      llvm_cv_target_arch="Unknown" ;;
1797esac
1798fi
1799echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1800echo "${ECHO_T}$llvm_cv_target_arch" >&6
1801
1802if test "$llvm_cv_target_arch" = "Unknown" ; then
1803  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1804echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1805fi
1806
1807ARCH=$llvm_cv_target_arch
1808
1809
1810ac_ext=c
1811ac_cpp='$CPP $CPPFLAGS'
1812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1814ac_compiler_gnu=$ac_cv_c_compiler_gnu
1815if test -n "$ac_tool_prefix"; then
1816  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1817set dummy ${ac_tool_prefix}gcc; ac_word=$2
1818echo "$as_me:$LINENO: checking for $ac_word" >&5
1819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820if test "${ac_cv_prog_CC+set}" = set; then
1821  echo $ECHO_N "(cached) $ECHO_C" >&6
1822else
1823  if test -n "$CC"; then
1824  ac_cv_prog_CC="$CC" # Let the user override the test.
1825else
1826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827for as_dir in $PATH
1828do
1829  IFS=$as_save_IFS
1830  test -z "$as_dir" && as_dir=.
1831  for ac_exec_ext in '' $ac_executable_extensions; do
1832  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1834    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835    break 2
1836  fi
1837done
1838done
1839
1840fi
1841fi
1842CC=$ac_cv_prog_CC
1843if test -n "$CC"; then
1844  echo "$as_me:$LINENO: result: $CC" >&5
1845echo "${ECHO_T}$CC" >&6
1846else
1847  echo "$as_me:$LINENO: result: no" >&5
1848echo "${ECHO_T}no" >&6
1849fi
1850
1851fi
1852if test -z "$ac_cv_prog_CC"; then
1853  ac_ct_CC=$CC
1854  # Extract the first word of "gcc", so it can be a program name with args.
1855set dummy gcc; ac_word=$2
1856echo "$as_me:$LINENO: checking for $ac_word" >&5
1857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1859  echo $ECHO_N "(cached) $ECHO_C" >&6
1860else
1861  if test -n "$ac_ct_CC"; then
1862  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1863else
1864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865for as_dir in $PATH
1866do
1867  IFS=$as_save_IFS
1868  test -z "$as_dir" && as_dir=.
1869  for ac_exec_ext in '' $ac_executable_extensions; do
1870  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871    ac_cv_prog_ac_ct_CC="gcc"
1872    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873    break 2
1874  fi
1875done
1876done
1877
1878fi
1879fi
1880ac_ct_CC=$ac_cv_prog_ac_ct_CC
1881if test -n "$ac_ct_CC"; then
1882  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1883echo "${ECHO_T}$ac_ct_CC" >&6
1884else
1885  echo "$as_me:$LINENO: result: no" >&5
1886echo "${ECHO_T}no" >&6
1887fi
1888
1889  CC=$ac_ct_CC
1890else
1891  CC="$ac_cv_prog_CC"
1892fi
1893
1894if test -z "$CC"; then
1895  if test -n "$ac_tool_prefix"; then
1896  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1897set dummy ${ac_tool_prefix}cc; ac_word=$2
1898echo "$as_me:$LINENO: checking for $ac_word" >&5
1899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900if test "${ac_cv_prog_CC+set}" = set; then
1901  echo $ECHO_N "(cached) $ECHO_C" >&6
1902else
1903  if test -n "$CC"; then
1904  ac_cv_prog_CC="$CC" # Let the user override the test.
1905else
1906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907for as_dir in $PATH
1908do
1909  IFS=$as_save_IFS
1910  test -z "$as_dir" && as_dir=.
1911  for ac_exec_ext in '' $ac_executable_extensions; do
1912  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1913    ac_cv_prog_CC="${ac_tool_prefix}cc"
1914    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915    break 2
1916  fi
1917done
1918done
1919
1920fi
1921fi
1922CC=$ac_cv_prog_CC
1923if test -n "$CC"; then
1924  echo "$as_me:$LINENO: result: $CC" >&5
1925echo "${ECHO_T}$CC" >&6
1926else
1927  echo "$as_me:$LINENO: result: no" >&5
1928echo "${ECHO_T}no" >&6
1929fi
1930
1931fi
1932if test -z "$ac_cv_prog_CC"; then
1933  ac_ct_CC=$CC
1934  # Extract the first word of "cc", so it can be a program name with args.
1935set dummy cc; ac_word=$2
1936echo "$as_me:$LINENO: checking for $ac_word" >&5
1937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1938if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1939  echo $ECHO_N "(cached) $ECHO_C" >&6
1940else
1941  if test -n "$ac_ct_CC"; then
1942  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1943else
1944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945for as_dir in $PATH
1946do
1947  IFS=$as_save_IFS
1948  test -z "$as_dir" && as_dir=.
1949  for ac_exec_ext in '' $ac_executable_extensions; do
1950  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1951    ac_cv_prog_ac_ct_CC="cc"
1952    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953    break 2
1954  fi
1955done
1956done
1957
1958fi
1959fi
1960ac_ct_CC=$ac_cv_prog_ac_ct_CC
1961if test -n "$ac_ct_CC"; then
1962  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1963echo "${ECHO_T}$ac_ct_CC" >&6
1964else
1965  echo "$as_me:$LINENO: result: no" >&5
1966echo "${ECHO_T}no" >&6
1967fi
1968
1969  CC=$ac_ct_CC
1970else
1971  CC="$ac_cv_prog_CC"
1972fi
1973
1974fi
1975if test -z "$CC"; then
1976  # Extract the first word of "cc", so it can be a program name with args.
1977set dummy cc; ac_word=$2
1978echo "$as_me:$LINENO: checking for $ac_word" >&5
1979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980if test "${ac_cv_prog_CC+set}" = set; then
1981  echo $ECHO_N "(cached) $ECHO_C" >&6
1982else
1983  if test -n "$CC"; then
1984  ac_cv_prog_CC="$CC" # Let the user override the test.
1985else
1986  ac_prog_rejected=no
1987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988for as_dir in $PATH
1989do
1990  IFS=$as_save_IFS
1991  test -z "$as_dir" && as_dir=.
1992  for ac_exec_ext in '' $ac_executable_extensions; do
1993  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1994    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1995       ac_prog_rejected=yes
1996       continue
1997     fi
1998    ac_cv_prog_CC="cc"
1999    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000    break 2
2001  fi
2002done
2003done
2004
2005if test $ac_prog_rejected = yes; then
2006  # We found a bogon in the path, so make sure we never use it.
2007  set dummy $ac_cv_prog_CC
2008  shift
2009  if test $# != 0; then
2010    # We chose a different compiler from the bogus one.
2011    # However, it has the same basename, so the bogon will be chosen
2012    # first if we set CC to just the basename; use the full file name.
2013    shift
2014    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2015  fi
2016fi
2017fi
2018fi
2019CC=$ac_cv_prog_CC
2020if test -n "$CC"; then
2021  echo "$as_me:$LINENO: result: $CC" >&5
2022echo "${ECHO_T}$CC" >&6
2023else
2024  echo "$as_me:$LINENO: result: no" >&5
2025echo "${ECHO_T}no" >&6
2026fi
2027
2028fi
2029if test -z "$CC"; then
2030  if test -n "$ac_tool_prefix"; then
2031  for ac_prog in cl
2032  do
2033    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2034set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2035echo "$as_me:$LINENO: checking for $ac_word" >&5
2036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2037if test "${ac_cv_prog_CC+set}" = set; then
2038  echo $ECHO_N "(cached) $ECHO_C" >&6
2039else
2040  if test -n "$CC"; then
2041  ac_cv_prog_CC="$CC" # Let the user override the test.
2042else
2043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044for as_dir in $PATH
2045do
2046  IFS=$as_save_IFS
2047  test -z "$as_dir" && as_dir=.
2048  for ac_exec_ext in '' $ac_executable_extensions; do
2049  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2051    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052    break 2
2053  fi
2054done
2055done
2056
2057fi
2058fi
2059CC=$ac_cv_prog_CC
2060if test -n "$CC"; then
2061  echo "$as_me:$LINENO: result: $CC" >&5
2062echo "${ECHO_T}$CC" >&6
2063else
2064  echo "$as_me:$LINENO: result: no" >&5
2065echo "${ECHO_T}no" >&6
2066fi
2067
2068    test -n "$CC" && break
2069  done
2070fi
2071if test -z "$CC"; then
2072  ac_ct_CC=$CC
2073  for ac_prog in cl
2074do
2075  # Extract the first word of "$ac_prog", so it can be a program name with args.
2076set dummy $ac_prog; ac_word=$2
2077echo "$as_me:$LINENO: checking for $ac_word" >&5
2078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2079if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2080  echo $ECHO_N "(cached) $ECHO_C" >&6
2081else
2082  if test -n "$ac_ct_CC"; then
2083  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2084else
2085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086for as_dir in $PATH
2087do
2088  IFS=$as_save_IFS
2089  test -z "$as_dir" && as_dir=.
2090  for ac_exec_ext in '' $ac_executable_extensions; do
2091  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092    ac_cv_prog_ac_ct_CC="$ac_prog"
2093    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094    break 2
2095  fi
2096done
2097done
2098
2099fi
2100fi
2101ac_ct_CC=$ac_cv_prog_ac_ct_CC
2102if test -n "$ac_ct_CC"; then
2103  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2104echo "${ECHO_T}$ac_ct_CC" >&6
2105else
2106  echo "$as_me:$LINENO: result: no" >&5
2107echo "${ECHO_T}no" >&6
2108fi
2109
2110  test -n "$ac_ct_CC" && break
2111done
2112
2113  CC=$ac_ct_CC
2114fi
2115
2116fi
2117
2118
2119test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2120See \`config.log' for more details." >&5
2121echo "$as_me: error: no acceptable C compiler found in \$PATH
2122See \`config.log' for more details." >&2;}
2123   { (exit 1); exit 1; }; }
2124
2125# Provide some information about the compiler.
2126echo "$as_me:$LINENO:" \
2127     "checking for C compiler version" >&5
2128ac_compiler=`set X $ac_compile; echo $2`
2129{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2130  (eval $ac_compiler --version </dev/null >&5) 2>&5
2131  ac_status=$?
2132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133  (exit $ac_status); }
2134{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2135  (eval $ac_compiler -v </dev/null >&5) 2>&5
2136  ac_status=$?
2137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138  (exit $ac_status); }
2139{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2140  (eval $ac_compiler -V </dev/null >&5) 2>&5
2141  ac_status=$?
2142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143  (exit $ac_status); }
2144
2145cat >conftest.$ac_ext <<_ACEOF
2146/* confdefs.h.  */
2147_ACEOF
2148cat confdefs.h >>conftest.$ac_ext
2149cat >>conftest.$ac_ext <<_ACEOF
2150/* end confdefs.h.  */
2151
2152int
2153main ()
2154{
2155
2156  ;
2157  return 0;
2158}
2159_ACEOF
2160ac_clean_files_save=$ac_clean_files
2161ac_clean_files="$ac_clean_files a.out a.exe b.out"
2162# Try to create an executable without -o first, disregard a.out.
2163# It will help us diagnose broken compilers, and finding out an intuition
2164# of exeext.
2165echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2166echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2167ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2168if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2169  (eval $ac_link_default) 2>&5
2170  ac_status=$?
2171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172  (exit $ac_status); }; then
2173  # Find the output, starting from the most likely.  This scheme is
2174# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2175# resort.
2176
2177# Be careful to initialize this variable, since it used to be cached.
2178# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2179ac_cv_exeext=
2180# b.out is created by i960 compilers.
2181for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2182do
2183  test -f "$ac_file" || continue
2184  case $ac_file in
2185    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2186	;;
2187    conftest.$ac_ext )
2188	# This is the source file.
2189	;;
2190    [ab].out )
2191	# We found the default executable, but exeext='' is most
2192	# certainly right.
2193	break;;
2194    *.* )
2195	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196	# FIXME: I believe we export ac_cv_exeext for Libtool,
2197	# but it would be cool to find out if it's true.  Does anybody
2198	# maintain Libtool? --akim.
2199	export ac_cv_exeext
2200	break;;
2201    * )
2202	break;;
2203  esac
2204done
2205else
2206  echo "$as_me: failed program was:" >&5
2207sed 's/^/| /' conftest.$ac_ext >&5
2208
2209{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2210See \`config.log' for more details." >&5
2211echo "$as_me: error: C compiler cannot create executables
2212See \`config.log' for more details." >&2;}
2213   { (exit 77); exit 77; }; }
2214fi
2215
2216ac_exeext=$ac_cv_exeext
2217echo "$as_me:$LINENO: result: $ac_file" >&5
2218echo "${ECHO_T}$ac_file" >&6
2219
2220# Check the compiler produces executables we can run.  If not, either
2221# the compiler is broken, or we cross compile.
2222echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2223echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2224# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2225# If not cross compiling, check that we can run a simple program.
2226if test "$cross_compiling" != yes; then
2227  if { ac_try='./$ac_file'
2228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229  (eval $ac_try) 2>&5
2230  ac_status=$?
2231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232  (exit $ac_status); }; }; then
2233    cross_compiling=no
2234  else
2235    if test "$cross_compiling" = maybe; then
2236	cross_compiling=yes
2237    else
2238	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2239If you meant to cross compile, use \`--host'.
2240See \`config.log' for more details." >&5
2241echo "$as_me: error: cannot run C compiled programs.
2242If you meant to cross compile, use \`--host'.
2243See \`config.log' for more details." >&2;}
2244   { (exit 1); exit 1; }; }
2245    fi
2246  fi
2247fi
2248echo "$as_me:$LINENO: result: yes" >&5
2249echo "${ECHO_T}yes" >&6
2250
2251rm -f a.out a.exe conftest$ac_cv_exeext b.out
2252ac_clean_files=$ac_clean_files_save
2253# Check the compiler produces executables we can run.  If not, either
2254# the compiler is broken, or we cross compile.
2255echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2256echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2257echo "$as_me:$LINENO: result: $cross_compiling" >&5
2258echo "${ECHO_T}$cross_compiling" >&6
2259
2260echo "$as_me:$LINENO: checking for suffix of executables" >&5
2261echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2263  (eval $ac_link) 2>&5
2264  ac_status=$?
2265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266  (exit $ac_status); }; then
2267  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2268# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2269# work properly (i.e., refer to `conftest.exe'), while it won't with
2270# `rm'.
2271for ac_file in conftest.exe conftest conftest.*; do
2272  test -f "$ac_file" || continue
2273  case $ac_file in
2274    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2275    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2276	  export ac_cv_exeext
2277	  break;;
2278    * ) break;;
2279  esac
2280done
2281else
2282  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2283See \`config.log' for more details." >&5
2284echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2285See \`config.log' for more details." >&2;}
2286   { (exit 1); exit 1; }; }
2287fi
2288
2289rm -f conftest$ac_cv_exeext
2290echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2291echo "${ECHO_T}$ac_cv_exeext" >&6
2292
2293rm -f conftest.$ac_ext
2294EXEEXT=$ac_cv_exeext
2295ac_exeext=$EXEEXT
2296echo "$as_me:$LINENO: checking for suffix of object files" >&5
2297echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2298if test "${ac_cv_objext+set}" = set; then
2299  echo $ECHO_N "(cached) $ECHO_C" >&6
2300else
2301  cat >conftest.$ac_ext <<_ACEOF
2302/* confdefs.h.  */
2303_ACEOF
2304cat confdefs.h >>conftest.$ac_ext
2305cat >>conftest.$ac_ext <<_ACEOF
2306/* end confdefs.h.  */
2307
2308int
2309main ()
2310{
2311
2312  ;
2313  return 0;
2314}
2315_ACEOF
2316rm -f conftest.o conftest.obj
2317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2318  (eval $ac_compile) 2>&5
2319  ac_status=$?
2320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321  (exit $ac_status); }; then
2322  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2323  case $ac_file in
2324    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2325    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2326       break;;
2327  esac
2328done
2329else
2330  echo "$as_me: failed program was:" >&5
2331sed 's/^/| /' conftest.$ac_ext >&5
2332
2333{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2334See \`config.log' for more details." >&5
2335echo "$as_me: error: cannot compute suffix of object files: cannot compile
2336See \`config.log' for more details." >&2;}
2337   { (exit 1); exit 1; }; }
2338fi
2339
2340rm -f conftest.$ac_cv_objext conftest.$ac_ext
2341fi
2342echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2343echo "${ECHO_T}$ac_cv_objext" >&6
2344OBJEXT=$ac_cv_objext
2345ac_objext=$OBJEXT
2346echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2347echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2348if test "${ac_cv_c_compiler_gnu+set}" = set; then
2349  echo $ECHO_N "(cached) $ECHO_C" >&6
2350else
2351  cat >conftest.$ac_ext <<_ACEOF
2352/* confdefs.h.  */
2353_ACEOF
2354cat confdefs.h >>conftest.$ac_ext
2355cat >>conftest.$ac_ext <<_ACEOF
2356/* end confdefs.h.  */
2357
2358int
2359main ()
2360{
2361#ifndef __GNUC__
2362       choke me
2363#endif
2364
2365  ;
2366  return 0;
2367}
2368_ACEOF
2369rm -f conftest.$ac_objext
2370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371  (eval $ac_compile) 2>conftest.er1
2372  ac_status=$?
2373  grep -v '^ *+' conftest.er1 >conftest.err
2374  rm -f conftest.er1
2375  cat conftest.err >&5
2376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377  (exit $ac_status); } &&
2378	 { ac_try='test -z "$ac_c_werror_flag"
2379			 || test ! -s conftest.err'
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); }; } &&
2385	 { ac_try='test -s conftest.$ac_objext'
2386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387  (eval $ac_try) 2>&5
2388  ac_status=$?
2389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390  (exit $ac_status); }; }; then
2391  ac_compiler_gnu=yes
2392else
2393  echo "$as_me: failed program was:" >&5
2394sed 's/^/| /' conftest.$ac_ext >&5
2395
2396ac_compiler_gnu=no
2397fi
2398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2399ac_cv_c_compiler_gnu=$ac_compiler_gnu
2400
2401fi
2402echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2403echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2404GCC=`test $ac_compiler_gnu = yes && echo yes`
2405ac_test_CFLAGS=${CFLAGS+set}
2406ac_save_CFLAGS=$CFLAGS
2407CFLAGS="-g"
2408echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2409echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2410if test "${ac_cv_prog_cc_g+set}" = set; then
2411  echo $ECHO_N "(cached) $ECHO_C" >&6
2412else
2413  cat >conftest.$ac_ext <<_ACEOF
2414/* confdefs.h.  */
2415_ACEOF
2416cat confdefs.h >>conftest.$ac_ext
2417cat >>conftest.$ac_ext <<_ACEOF
2418/* end confdefs.h.  */
2419
2420int
2421main ()
2422{
2423
2424  ;
2425  return 0;
2426}
2427_ACEOF
2428rm -f conftest.$ac_objext
2429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430  (eval $ac_compile) 2>conftest.er1
2431  ac_status=$?
2432  grep -v '^ *+' conftest.er1 >conftest.err
2433  rm -f conftest.er1
2434  cat conftest.err >&5
2435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436  (exit $ac_status); } &&
2437	 { ac_try='test -z "$ac_c_werror_flag"
2438			 || test ! -s conftest.err'
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); }; } &&
2444	 { ac_try='test -s conftest.$ac_objext'
2445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446  (eval $ac_try) 2>&5
2447  ac_status=$?
2448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449  (exit $ac_status); }; }; then
2450  ac_cv_prog_cc_g=yes
2451else
2452  echo "$as_me: failed program was:" >&5
2453sed 's/^/| /' conftest.$ac_ext >&5
2454
2455ac_cv_prog_cc_g=no
2456fi
2457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458fi
2459echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2460echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2461if test "$ac_test_CFLAGS" = set; then
2462  CFLAGS=$ac_save_CFLAGS
2463elif test $ac_cv_prog_cc_g = yes; then
2464  if test "$GCC" = yes; then
2465    CFLAGS="-g -O2"
2466  else
2467    CFLAGS="-g"
2468  fi
2469else
2470  if test "$GCC" = yes; then
2471    CFLAGS="-O2"
2472  else
2473    CFLAGS=
2474  fi
2475fi
2476echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2477echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2478if test "${ac_cv_prog_cc_stdc+set}" = set; then
2479  echo $ECHO_N "(cached) $ECHO_C" >&6
2480else
2481  ac_cv_prog_cc_stdc=no
2482ac_save_CC=$CC
2483cat >conftest.$ac_ext <<_ACEOF
2484/* confdefs.h.  */
2485_ACEOF
2486cat confdefs.h >>conftest.$ac_ext
2487cat >>conftest.$ac_ext <<_ACEOF
2488/* end confdefs.h.  */
2489#include <stdarg.h>
2490#include <stdio.h>
2491#include <sys/types.h>
2492#include <sys/stat.h>
2493/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2494struct buf { int x; };
2495FILE * (*rcsopen) (struct buf *, struct stat *, int);
2496static char *e (p, i)
2497     char **p;
2498     int i;
2499{
2500  return p[i];
2501}
2502static char *f (char * (*g) (char **, int), char **p, ...)
2503{
2504  char *s;
2505  va_list v;
2506  va_start (v,p);
2507  s = g (p, va_arg (v,int));
2508  va_end (v);
2509  return s;
2510}
2511
2512/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2513   function prototypes and stuff, but not '\xHH' hex character constants.
2514   These don't provoke an error unfortunately, instead are silently treated
2515   as 'x'.  The following induces an error, until -std1 is added to get
2516   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2517   array size at least.  It's necessary to write '\x00'==0 to get something
2518   that's true only with -std1.  */
2519int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2520
2521int test (int i, double x);
2522struct s1 {int (*f) (int a);};
2523struct s2 {int (*f) (double a);};
2524int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2525int argc;
2526char **argv;
2527int
2528main ()
2529{
2530return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2531  ;
2532  return 0;
2533}
2534_ACEOF
2535# Don't try gcc -ansi; that turns off useful extensions and
2536# breaks some systems' header files.
2537# AIX			-qlanglvl=ansi
2538# Ultrix and OSF/1	-std1
2539# HP-UX 10.20 and later	-Ae
2540# HP-UX older versions	-Aa -D_HPUX_SOURCE
2541# SVR4			-Xc -D__EXTENSIONS__
2542for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2543do
2544  CC="$ac_save_CC $ac_arg"
2545  rm -f conftest.$ac_objext
2546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547  (eval $ac_compile) 2>conftest.er1
2548  ac_status=$?
2549  grep -v '^ *+' conftest.er1 >conftest.err
2550  rm -f conftest.er1
2551  cat conftest.err >&5
2552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553  (exit $ac_status); } &&
2554	 { ac_try='test -z "$ac_c_werror_flag"
2555			 || test ! -s conftest.err'
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); }; } &&
2561	 { ac_try='test -s conftest.$ac_objext'
2562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563  (eval $ac_try) 2>&5
2564  ac_status=$?
2565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566  (exit $ac_status); }; }; then
2567  ac_cv_prog_cc_stdc=$ac_arg
2568break
2569else
2570  echo "$as_me: failed program was:" >&5
2571sed 's/^/| /' conftest.$ac_ext >&5
2572
2573fi
2574rm -f conftest.err conftest.$ac_objext
2575done
2576rm -f conftest.$ac_ext conftest.$ac_objext
2577CC=$ac_save_CC
2578
2579fi
2580
2581case "x$ac_cv_prog_cc_stdc" in
2582  x|xno)
2583    echo "$as_me:$LINENO: result: none needed" >&5
2584echo "${ECHO_T}none needed" >&6 ;;
2585  *)
2586    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2587echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2588    CC="$CC $ac_cv_prog_cc_stdc" ;;
2589esac
2590
2591# Some people use a C++ compiler to compile C.  Since we use `exit',
2592# in C++ we need to declare it.  In case someone uses the same compiler
2593# for both compiling C and C++ we need to have the C++ compiler decide
2594# the declaration of exit, since it's the most demanding environment.
2595cat >conftest.$ac_ext <<_ACEOF
2596#ifndef __cplusplus
2597  choke me
2598#endif
2599_ACEOF
2600rm -f conftest.$ac_objext
2601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602  (eval $ac_compile) 2>conftest.er1
2603  ac_status=$?
2604  grep -v '^ *+' conftest.er1 >conftest.err
2605  rm -f conftest.er1
2606  cat conftest.err >&5
2607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608  (exit $ac_status); } &&
2609	 { ac_try='test -z "$ac_c_werror_flag"
2610			 || test ! -s conftest.err'
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); }; } &&
2616	 { ac_try='test -s conftest.$ac_objext'
2617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618  (eval $ac_try) 2>&5
2619  ac_status=$?
2620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621  (exit $ac_status); }; }; then
2622  for ac_declaration in \
2623   '' \
2624   'extern "C" void std::exit (int) throw (); using std::exit;' \
2625   'extern "C" void std::exit (int); using std::exit;' \
2626   'extern "C" void exit (int) throw ();' \
2627   'extern "C" void exit (int);' \
2628   'void exit (int);'
2629do
2630  cat >conftest.$ac_ext <<_ACEOF
2631/* confdefs.h.  */
2632_ACEOF
2633cat confdefs.h >>conftest.$ac_ext
2634cat >>conftest.$ac_ext <<_ACEOF
2635/* end confdefs.h.  */
2636$ac_declaration
2637#include <stdlib.h>
2638int
2639main ()
2640{
2641exit (42);
2642  ;
2643  return 0;
2644}
2645_ACEOF
2646rm -f conftest.$ac_objext
2647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648  (eval $ac_compile) 2>conftest.er1
2649  ac_status=$?
2650  grep -v '^ *+' conftest.er1 >conftest.err
2651  rm -f conftest.er1
2652  cat conftest.err >&5
2653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654  (exit $ac_status); } &&
2655	 { ac_try='test -z "$ac_c_werror_flag"
2656			 || test ! -s conftest.err'
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); }; } &&
2662	 { ac_try='test -s conftest.$ac_objext'
2663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664  (eval $ac_try) 2>&5
2665  ac_status=$?
2666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667  (exit $ac_status); }; }; then
2668  :
2669else
2670  echo "$as_me: failed program was:" >&5
2671sed 's/^/| /' conftest.$ac_ext >&5
2672
2673continue
2674fi
2675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2676  cat >conftest.$ac_ext <<_ACEOF
2677/* confdefs.h.  */
2678_ACEOF
2679cat confdefs.h >>conftest.$ac_ext
2680cat >>conftest.$ac_ext <<_ACEOF
2681/* end confdefs.h.  */
2682$ac_declaration
2683int
2684main ()
2685{
2686exit (42);
2687  ;
2688  return 0;
2689}
2690_ACEOF
2691rm -f conftest.$ac_objext
2692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693  (eval $ac_compile) 2>conftest.er1
2694  ac_status=$?
2695  grep -v '^ *+' conftest.er1 >conftest.err
2696  rm -f conftest.er1
2697  cat conftest.err >&5
2698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699  (exit $ac_status); } &&
2700	 { ac_try='test -z "$ac_c_werror_flag"
2701			 || test ! -s conftest.err'
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); }; } &&
2707	 { ac_try='test -s conftest.$ac_objext'
2708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709  (eval $ac_try) 2>&5
2710  ac_status=$?
2711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712  (exit $ac_status); }; }; then
2713  break
2714else
2715  echo "$as_me: failed program was:" >&5
2716sed 's/^/| /' conftest.$ac_ext >&5
2717
2718fi
2719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2720done
2721rm -f conftest*
2722if test -n "$ac_declaration"; then
2723  echo '#ifdef __cplusplus' >>confdefs.h
2724  echo $ac_declaration      >>confdefs.h
2725  echo '#endif'             >>confdefs.h
2726fi
2727
2728else
2729  echo "$as_me: failed program was:" >&5
2730sed 's/^/| /' conftest.$ac_ext >&5
2731
2732fi
2733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2734ac_ext=c
2735ac_cpp='$CPP $CPPFLAGS'
2736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738ac_compiler_gnu=$ac_cv_c_compiler_gnu
2739
2740
2741echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2742echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2743if test "${ac_cv_c_bigendian+set}" = set; then
2744  echo $ECHO_N "(cached) $ECHO_C" >&6
2745else
2746  # See if sys/param.h defines the BYTE_ORDER macro.
2747cat >conftest.$ac_ext <<_ACEOF
2748/* confdefs.h.  */
2749_ACEOF
2750cat confdefs.h >>conftest.$ac_ext
2751cat >>conftest.$ac_ext <<_ACEOF
2752/* end confdefs.h.  */
2753#include <sys/types.h>
2754#include <sys/param.h>
2755
2756int
2757main ()
2758{
2759#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2760 bogus endian macros
2761#endif
2762
2763  ;
2764  return 0;
2765}
2766_ACEOF
2767rm -f conftest.$ac_objext
2768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2769  (eval $ac_compile) 2>conftest.er1
2770  ac_status=$?
2771  grep -v '^ *+' conftest.er1 >conftest.err
2772  rm -f conftest.er1
2773  cat conftest.err >&5
2774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775  (exit $ac_status); } &&
2776	 { ac_try='test -z "$ac_c_werror_flag"
2777			 || test ! -s conftest.err'
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); }; } &&
2783	 { ac_try='test -s conftest.$ac_objext'
2784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785  (eval $ac_try) 2>&5
2786  ac_status=$?
2787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788  (exit $ac_status); }; }; then
2789  # It does; now see whether it defined to BIG_ENDIAN or not.
2790cat >conftest.$ac_ext <<_ACEOF
2791/* confdefs.h.  */
2792_ACEOF
2793cat confdefs.h >>conftest.$ac_ext
2794cat >>conftest.$ac_ext <<_ACEOF
2795/* end confdefs.h.  */
2796#include <sys/types.h>
2797#include <sys/param.h>
2798
2799int
2800main ()
2801{
2802#if BYTE_ORDER != BIG_ENDIAN
2803 not big endian
2804#endif
2805
2806  ;
2807  return 0;
2808}
2809_ACEOF
2810rm -f conftest.$ac_objext
2811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2812  (eval $ac_compile) 2>conftest.er1
2813  ac_status=$?
2814  grep -v '^ *+' conftest.er1 >conftest.err
2815  rm -f conftest.er1
2816  cat conftest.err >&5
2817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818  (exit $ac_status); } &&
2819	 { ac_try='test -z "$ac_c_werror_flag"
2820			 || test ! -s conftest.err'
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); }; } &&
2826	 { ac_try='test -s conftest.$ac_objext'
2827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828  (eval $ac_try) 2>&5
2829  ac_status=$?
2830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831  (exit $ac_status); }; }; then
2832  ac_cv_c_bigendian=yes
2833else
2834  echo "$as_me: failed program was:" >&5
2835sed 's/^/| /' conftest.$ac_ext >&5
2836
2837ac_cv_c_bigendian=no
2838fi
2839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2840else
2841  echo "$as_me: failed program was:" >&5
2842sed 's/^/| /' conftest.$ac_ext >&5
2843
2844# It does not; compile a test program.
2845if test "$cross_compiling" = yes; then
2846  # try to guess the endianness by grepping values into an object file
2847  ac_cv_c_bigendian=unknown
2848  cat >conftest.$ac_ext <<_ACEOF
2849/* confdefs.h.  */
2850_ACEOF
2851cat confdefs.h >>conftest.$ac_ext
2852cat >>conftest.$ac_ext <<_ACEOF
2853/* end confdefs.h.  */
2854short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2855short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2856void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2857short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2858short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2859void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2860int
2861main ()
2862{
2863 _ascii (); _ebcdic ();
2864  ;
2865  return 0;
2866}
2867_ACEOF
2868rm -f conftest.$ac_objext
2869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2870  (eval $ac_compile) 2>conftest.er1
2871  ac_status=$?
2872  grep -v '^ *+' conftest.er1 >conftest.err
2873  rm -f conftest.er1
2874  cat conftest.err >&5
2875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876  (exit $ac_status); } &&
2877	 { ac_try='test -z "$ac_c_werror_flag"
2878			 || test ! -s conftest.err'
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); }; } &&
2884	 { ac_try='test -s conftest.$ac_objext'
2885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886  (eval $ac_try) 2>&5
2887  ac_status=$?
2888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889  (exit $ac_status); }; }; then
2890  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2891  ac_cv_c_bigendian=yes
2892fi
2893if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2894  if test "$ac_cv_c_bigendian" = unknown; then
2895    ac_cv_c_bigendian=no
2896  else
2897    # finding both strings is unlikely to happen, but who knows?
2898    ac_cv_c_bigendian=unknown
2899  fi
2900fi
2901else
2902  echo "$as_me: failed program was:" >&5
2903sed 's/^/| /' conftest.$ac_ext >&5
2904
2905fi
2906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2907else
2908  cat >conftest.$ac_ext <<_ACEOF
2909/* confdefs.h.  */
2910_ACEOF
2911cat confdefs.h >>conftest.$ac_ext
2912cat >>conftest.$ac_ext <<_ACEOF
2913/* end confdefs.h.  */
2914int
2915main ()
2916{
2917  /* Are we little or big endian?  From Harbison&Steele.  */
2918  union
2919  {
2920    long l;
2921    char c[sizeof (long)];
2922  } u;
2923  u.l = 1;
2924  exit (u.c[sizeof (long) - 1] == 1);
2925}
2926_ACEOF
2927rm -f conftest$ac_exeext
2928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2929  (eval $ac_link) 2>&5
2930  ac_status=$?
2931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934  (eval $ac_try) 2>&5
2935  ac_status=$?
2936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937  (exit $ac_status); }; }; then
2938  ac_cv_c_bigendian=no
2939else
2940  echo "$as_me: program exited with status $ac_status" >&5
2941echo "$as_me: failed program was:" >&5
2942sed 's/^/| /' conftest.$ac_ext >&5
2943
2944( exit $ac_status )
2945ac_cv_c_bigendian=yes
2946fi
2947rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2948fi
2949fi
2950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2951fi
2952echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2953echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2954case $ac_cv_c_bigendian in
2955  yes)
2956    ENDIAN=big
2957 ;;
2958  no)
2959    ENDIAN=little
2960 ;;
2961  *)
2962    { { echo "$as_me:$LINENO: error: unknown endianness
2963presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2964echo "$as_me: error: unknown endianness
2965presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2966   { (exit 1); exit 1; }; } ;;
2967esac
2968
2969
2970
2971# Check whether --enable-optimized or --disable-optimized was given.
2972if test "${enable_optimized+set}" = set; then
2973  enableval="$enable_optimized"
2974
2975else
2976  enableval=no
2977fi;
2978if test ${enableval} = "no" ; then
2979  ENABLE_OPTIMIZED=
2980
2981else
2982  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2983
2984fi
2985
2986# Check whether --enable-debug-runtime or --disable-debug-runtime was given.
2987if test "${enable_debug_runtime+set}" = set; then
2988  enableval="$enable_debug_runtime"
2989
2990else
2991  enableval=no
2992fi;
2993if test ${enableval} = "no" ; then
2994  DEBUG_RUNTIME=
2995
2996else
2997  DEBUG_RUNTIME=DEBUG_RUNTIME=1
2998
2999fi
3000
3001# Check whether --enable-jit or --disable-jit was given.
3002if test "${enable_jit+set}" = set; then
3003  enableval="$enable_jit"
3004
3005else
3006  enableval=default
3007fi;
3008if test ${enableval} = "no"
3009then
3010  JIT=
3011
3012else
3013  case "$llvm_cv_target_arch" in
3014    x86)     JIT=TARGET_HAS_JIT=1
3015 ;;
3016    Sparc)   JIT=TARGET_HAS_JIT=1
3017 ;;
3018    PowerPC) JIT=TARGET_HAS_JIT=1
3019 ;;
3020    x86_64)  JIT=
3021 ;;
3022    Alpha)   JIT=TARGET_HAS_JIT=1
3023 ;;
3024    IA64)    JIT=
3025 ;;
3026    *)       JIT=
3027 ;;
3028  esac
3029fi
3030
3031# Check whether --enable-doxygen or --disable-doxygen was given.
3032if test "${enable_doxygen+set}" = set; then
3033  enableval="$enable_doxygen"
3034
3035else
3036  enableval=default
3037fi;
3038case "$enableval" in
3039  yes) ENABLE_DOXYGEN=1
3040 ;;
3041  no)  ENABLE_DOXYGEN=0
3042 ;;
3043  default) ENABLE_DOXYGEN=0
3044 ;;
3045  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3046echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3047   { (exit 1); exit 1; }; } ;;
3048esac
3049
3050# Check whether --enable-threads or --disable-threads was given.
3051if test "${enable_threads+set}" = set; then
3052  enableval="$enable_threads"
3053
3054else
3055  enableval=yes
3056fi;
3057case "$enableval" in
3058  yes) ENABLE_THREADS=1
3059 ;;
3060  no)  ENABLE_THREADS=0
3061 ;;
3062  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3063echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3064   { (exit 1); exit 1; }; } ;;
3065esac
3066
3067cat >>confdefs.h <<_ACEOF
3068#define ENABLE_THREADS $ENABLE_THREADS
3069_ACEOF
3070
3071
3072TARGETS_TO_BUILD=""
3073# Check whether --enable-targets or --disable-targets was given.
3074if test "${enable_targets+set}" = set; then
3075  enableval="$enable_targets"
3076
3077else
3078  enableval=all
3079fi;
3080case "$enableval" in
3081  all) TARGETS_TO_BUILD="X86 SparcV8 SparcV9 PowerPC Alpha IA64 Skeleton" ;;
3082  host-only)
3083    case "$llvm_cv_target_arch" in
3084      x86)     TARGETS_TO_BUILD="X86" ;;
3085      x86_64)  TARGETS_TO_BUILD="X86" ;;
3086      Sparc)   TARGETS_TO_BUILD="SparcV8 SparcV9" ;;
3087      PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3088      Alpha)   TARGETS_TO_BUILD="Alpha" ;;
3089      IA64)    TARGETS_TO_BUILD="IA64" ;;
3090      *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3091echo "$as_me: error: Can not set target to build" >&2;}
3092   { (exit 1); exit 1; }; } ;;
3093    esac
3094    ;;
3095  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3096      case "$a_target" in
3097        x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3098        x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3099        sparc)   TARGETS_TO_BUILD="SparcV8 SparcV9 $TARGETS_TO_BUILD" ;;
3100        powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3101        alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3102        ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3103        skeleton)TARGETS_TO_BUILD="Skeleton $TARGETS_TO_BUILD";;
3104        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3105echo "$as_me: error: Unrecognized target $a_target" >&2;}
3106   { (exit 1); exit 1; }; } ;;
3107      esac
3108  done
3109  ;;
3110esac
3111TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3112TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3113
3114
3115
3116# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3117if test "${with_llvmgccdir+set}" = set; then
3118  withval="$with_llvmgccdir"
3119
3120else
3121  withval=default
3122fi;
3123case "$withval" in
3124  default) WITH_LLVMGCCDIR=default ;;
3125  /*)      WITH_LLVMGCCDIR=$withval ;;
3126  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3127echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3128   { (exit 1); exit 1; }; } ;;
3129esac
3130
3131
3132
3133ac_ext=c
3134ac_cpp='$CPP $CPPFLAGS'
3135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137ac_compiler_gnu=$ac_cv_c_compiler_gnu
3138echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3139echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3140# On Suns, sometimes $CPP names a directory.
3141if test -n "$CPP" && test -d "$CPP"; then
3142  CPP=
3143fi
3144if test -z "$CPP"; then
3145  if test "${ac_cv_prog_CPP+set}" = set; then
3146  echo $ECHO_N "(cached) $ECHO_C" >&6
3147else
3148      # Double quotes because CPP needs to be expanded
3149    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3150    do
3151      ac_preproc_ok=false
3152for ac_c_preproc_warn_flag in '' yes
3153do
3154  # Use a header file that comes with gcc, so configuring glibc
3155  # with a fresh cross-compiler works.
3156  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3157  # <limits.h> exists even on freestanding compilers.
3158  # On the NeXT, cc -E runs the code through the compiler's parser,
3159  # not just through cpp. "Syntax error" is here to catch this case.
3160  cat >conftest.$ac_ext <<_ACEOF
3161/* confdefs.h.  */
3162_ACEOF
3163cat confdefs.h >>conftest.$ac_ext
3164cat >>conftest.$ac_ext <<_ACEOF
3165/* end confdefs.h.  */
3166#ifdef __STDC__
3167# include <limits.h>
3168#else
3169# include <assert.h>
3170#endif
3171		     Syntax error
3172_ACEOF
3173if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3174  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3175  ac_status=$?
3176  grep -v '^ *+' conftest.er1 >conftest.err
3177  rm -f conftest.er1
3178  cat conftest.err >&5
3179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180  (exit $ac_status); } >/dev/null; then
3181  if test -s conftest.err; then
3182    ac_cpp_err=$ac_c_preproc_warn_flag
3183    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3184  else
3185    ac_cpp_err=
3186  fi
3187else
3188  ac_cpp_err=yes
3189fi
3190if test -z "$ac_cpp_err"; then
3191  :
3192else
3193  echo "$as_me: failed program was:" >&5
3194sed 's/^/| /' conftest.$ac_ext >&5
3195
3196  # Broken: fails on valid input.
3197continue
3198fi
3199rm -f conftest.err conftest.$ac_ext
3200
3201  # OK, works on sane cases.  Now check whether non-existent headers
3202  # can be detected and how.
3203  cat >conftest.$ac_ext <<_ACEOF
3204/* confdefs.h.  */
3205_ACEOF
3206cat confdefs.h >>conftest.$ac_ext
3207cat >>conftest.$ac_ext <<_ACEOF
3208/* end confdefs.h.  */
3209#include <ac_nonexistent.h>
3210_ACEOF
3211if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3212  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3213  ac_status=$?
3214  grep -v '^ *+' conftest.er1 >conftest.err
3215  rm -f conftest.er1
3216  cat conftest.err >&5
3217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218  (exit $ac_status); } >/dev/null; then
3219  if test -s conftest.err; then
3220    ac_cpp_err=$ac_c_preproc_warn_flag
3221    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3222  else
3223    ac_cpp_err=
3224  fi
3225else
3226  ac_cpp_err=yes
3227fi
3228if test -z "$ac_cpp_err"; then
3229  # Broken: success on invalid input.
3230continue
3231else
3232  echo "$as_me: failed program was:" >&5
3233sed 's/^/| /' conftest.$ac_ext >&5
3234
3235  # Passes both tests.
3236ac_preproc_ok=:
3237break
3238fi
3239rm -f conftest.err conftest.$ac_ext
3240
3241done
3242# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3243rm -f conftest.err conftest.$ac_ext
3244if $ac_preproc_ok; then
3245  break
3246fi
3247
3248    done
3249    ac_cv_prog_CPP=$CPP
3250
3251fi
3252  CPP=$ac_cv_prog_CPP
3253else
3254  ac_cv_prog_CPP=$CPP
3255fi
3256echo "$as_me:$LINENO: result: $CPP" >&5
3257echo "${ECHO_T}$CPP" >&6
3258ac_preproc_ok=false
3259for ac_c_preproc_warn_flag in '' yes
3260do
3261  # Use a header file that comes with gcc, so configuring glibc
3262  # with a fresh cross-compiler works.
3263  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3264  # <limits.h> exists even on freestanding compilers.
3265  # On the NeXT, cc -E runs the code through the compiler's parser,
3266  # not just through cpp. "Syntax error" is here to catch this case.
3267  cat >conftest.$ac_ext <<_ACEOF
3268/* confdefs.h.  */
3269_ACEOF
3270cat confdefs.h >>conftest.$ac_ext
3271cat >>conftest.$ac_ext <<_ACEOF
3272/* end confdefs.h.  */
3273#ifdef __STDC__
3274# include <limits.h>
3275#else
3276# include <assert.h>
3277#endif
3278		     Syntax error
3279_ACEOF
3280if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3281  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3282  ac_status=$?
3283  grep -v '^ *+' conftest.er1 >conftest.err
3284  rm -f conftest.er1
3285  cat conftest.err >&5
3286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287  (exit $ac_status); } >/dev/null; then
3288  if test -s conftest.err; then
3289    ac_cpp_err=$ac_c_preproc_warn_flag
3290    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3291  else
3292    ac_cpp_err=
3293  fi
3294else
3295  ac_cpp_err=yes
3296fi
3297if test -z "$ac_cpp_err"; then
3298  :
3299else
3300  echo "$as_me: failed program was:" >&5
3301sed 's/^/| /' conftest.$ac_ext >&5
3302
3303  # Broken: fails on valid input.
3304continue
3305fi
3306rm -f conftest.err conftest.$ac_ext
3307
3308  # OK, works on sane cases.  Now check whether non-existent headers
3309  # can be detected and how.
3310  cat >conftest.$ac_ext <<_ACEOF
3311/* confdefs.h.  */
3312_ACEOF
3313cat confdefs.h >>conftest.$ac_ext
3314cat >>conftest.$ac_ext <<_ACEOF
3315/* end confdefs.h.  */
3316#include <ac_nonexistent.h>
3317_ACEOF
3318if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3319  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3320  ac_status=$?
3321  grep -v '^ *+' conftest.er1 >conftest.err
3322  rm -f conftest.er1
3323  cat conftest.err >&5
3324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325  (exit $ac_status); } >/dev/null; then
3326  if test -s conftest.err; then
3327    ac_cpp_err=$ac_c_preproc_warn_flag
3328    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3329  else
3330    ac_cpp_err=
3331  fi
3332else
3333  ac_cpp_err=yes
3334fi
3335if test -z "$ac_cpp_err"; then
3336  # Broken: success on invalid input.
3337continue
3338else
3339  echo "$as_me: failed program was:" >&5
3340sed 's/^/| /' conftest.$ac_ext >&5
3341
3342  # Passes both tests.
3343ac_preproc_ok=:
3344break
3345fi
3346rm -f conftest.err conftest.$ac_ext
3347
3348done
3349# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3350rm -f conftest.err conftest.$ac_ext
3351if $ac_preproc_ok; then
3352  :
3353else
3354  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3355See \`config.log' for more details." >&5
3356echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3357See \`config.log' for more details." >&2;}
3358   { (exit 1); exit 1; }; }
3359fi
3360
3361ac_ext=c
3362ac_cpp='$CPP $CPPFLAGS'
3363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365ac_compiler_gnu=$ac_cv_c_compiler_gnu
3366
3367ac_ext=c
3368ac_cpp='$CPP $CPPFLAGS'
3369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371ac_compiler_gnu=$ac_cv_c_compiler_gnu
3372if test -n "$ac_tool_prefix"; then
3373  for ac_prog in gcc
3374  do
3375    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3376set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3377echo "$as_me:$LINENO: checking for $ac_word" >&5
3378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379if test "${ac_cv_prog_CC+set}" = set; then
3380  echo $ECHO_N "(cached) $ECHO_C" >&6
3381else
3382  if test -n "$CC"; then
3383  ac_cv_prog_CC="$CC" # Let the user override the test.
3384else
3385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386for as_dir in $PATH
3387do
3388  IFS=$as_save_IFS
3389  test -z "$as_dir" && as_dir=.
3390  for ac_exec_ext in '' $ac_executable_extensions; do
3391  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3393    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3394    break 2
3395  fi
3396done
3397done
3398
3399fi
3400fi
3401CC=$ac_cv_prog_CC
3402if test -n "$CC"; then
3403  echo "$as_me:$LINENO: result: $CC" >&5
3404echo "${ECHO_T}$CC" >&6
3405else
3406  echo "$as_me:$LINENO: result: no" >&5
3407echo "${ECHO_T}no" >&6
3408fi
3409
3410    test -n "$CC" && break
3411  done
3412fi
3413if test -z "$CC"; then
3414  ac_ct_CC=$CC
3415  for ac_prog in gcc
3416do
3417  # Extract the first word of "$ac_prog", so it can be a program name with args.
3418set dummy $ac_prog; ac_word=$2
3419echo "$as_me:$LINENO: checking for $ac_word" >&5
3420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3421if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3422  echo $ECHO_N "(cached) $ECHO_C" >&6
3423else
3424  if test -n "$ac_ct_CC"; then
3425  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3426else
3427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428for as_dir in $PATH
3429do
3430  IFS=$as_save_IFS
3431  test -z "$as_dir" && as_dir=.
3432  for ac_exec_ext in '' $ac_executable_extensions; do
3433  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434    ac_cv_prog_ac_ct_CC="$ac_prog"
3435    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3436    break 2
3437  fi
3438done
3439done
3440
3441fi
3442fi
3443ac_ct_CC=$ac_cv_prog_ac_ct_CC
3444if test -n "$ac_ct_CC"; then
3445  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3446echo "${ECHO_T}$ac_ct_CC" >&6
3447else
3448  echo "$as_me:$LINENO: result: no" >&5
3449echo "${ECHO_T}no" >&6
3450fi
3451
3452  test -n "$ac_ct_CC" && break
3453done
3454
3455  CC=$ac_ct_CC
3456fi
3457
3458
3459test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3460See \`config.log' for more details." >&5
3461echo "$as_me: error: no acceptable C compiler found in \$PATH
3462See \`config.log' for more details." >&2;}
3463   { (exit 1); exit 1; }; }
3464
3465# Provide some information about the compiler.
3466echo "$as_me:$LINENO:" \
3467     "checking for C compiler version" >&5
3468ac_compiler=`set X $ac_compile; echo $2`
3469{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3470  (eval $ac_compiler --version </dev/null >&5) 2>&5
3471  ac_status=$?
3472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473  (exit $ac_status); }
3474{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3475  (eval $ac_compiler -v </dev/null >&5) 2>&5
3476  ac_status=$?
3477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478  (exit $ac_status); }
3479{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3480  (eval $ac_compiler -V </dev/null >&5) 2>&5
3481  ac_status=$?
3482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483  (exit $ac_status); }
3484
3485echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3486echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3487if test "${ac_cv_c_compiler_gnu+set}" = set; then
3488  echo $ECHO_N "(cached) $ECHO_C" >&6
3489else
3490  cat >conftest.$ac_ext <<_ACEOF
3491/* confdefs.h.  */
3492_ACEOF
3493cat confdefs.h >>conftest.$ac_ext
3494cat >>conftest.$ac_ext <<_ACEOF
3495/* end confdefs.h.  */
3496
3497int
3498main ()
3499{
3500#ifndef __GNUC__
3501       choke me
3502#endif
3503
3504  ;
3505  return 0;
3506}
3507_ACEOF
3508rm -f conftest.$ac_objext
3509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3510  (eval $ac_compile) 2>conftest.er1
3511  ac_status=$?
3512  grep -v '^ *+' conftest.er1 >conftest.err
3513  rm -f conftest.er1
3514  cat conftest.err >&5
3515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516  (exit $ac_status); } &&
3517	 { ac_try='test -z "$ac_c_werror_flag"
3518			 || test ! -s conftest.err'
3519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520  (eval $ac_try) 2>&5
3521  ac_status=$?
3522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523  (exit $ac_status); }; } &&
3524	 { ac_try='test -s conftest.$ac_objext'
3525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526  (eval $ac_try) 2>&5
3527  ac_status=$?
3528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529  (exit $ac_status); }; }; then
3530  ac_compiler_gnu=yes
3531else
3532  echo "$as_me: failed program was:" >&5
3533sed 's/^/| /' conftest.$ac_ext >&5
3534
3535ac_compiler_gnu=no
3536fi
3537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3538ac_cv_c_compiler_gnu=$ac_compiler_gnu
3539
3540fi
3541echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3542echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3543GCC=`test $ac_compiler_gnu = yes && echo yes`
3544ac_test_CFLAGS=${CFLAGS+set}
3545ac_save_CFLAGS=$CFLAGS
3546CFLAGS="-g"
3547echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3548echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3549if test "${ac_cv_prog_cc_g+set}" = set; then
3550  echo $ECHO_N "(cached) $ECHO_C" >&6
3551else
3552  cat >conftest.$ac_ext <<_ACEOF
3553/* confdefs.h.  */
3554_ACEOF
3555cat confdefs.h >>conftest.$ac_ext
3556cat >>conftest.$ac_ext <<_ACEOF
3557/* end confdefs.h.  */
3558
3559int
3560main ()
3561{
3562
3563  ;
3564  return 0;
3565}
3566_ACEOF
3567rm -f conftest.$ac_objext
3568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569  (eval $ac_compile) 2>conftest.er1
3570  ac_status=$?
3571  grep -v '^ *+' conftest.er1 >conftest.err
3572  rm -f conftest.er1
3573  cat conftest.err >&5
3574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575  (exit $ac_status); } &&
3576	 { ac_try='test -z "$ac_c_werror_flag"
3577			 || test ! -s conftest.err'
3578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579  (eval $ac_try) 2>&5
3580  ac_status=$?
3581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582  (exit $ac_status); }; } &&
3583	 { ac_try='test -s conftest.$ac_objext'
3584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585  (eval $ac_try) 2>&5
3586  ac_status=$?
3587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588  (exit $ac_status); }; }; then
3589  ac_cv_prog_cc_g=yes
3590else
3591  echo "$as_me: failed program was:" >&5
3592sed 's/^/| /' conftest.$ac_ext >&5
3593
3594ac_cv_prog_cc_g=no
3595fi
3596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3597fi
3598echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3599echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3600if test "$ac_test_CFLAGS" = set; then
3601  CFLAGS=$ac_save_CFLAGS
3602elif test $ac_cv_prog_cc_g = yes; then
3603  if test "$GCC" = yes; then
3604    CFLAGS="-g -O2"
3605  else
3606    CFLAGS="-g"
3607  fi
3608else
3609  if test "$GCC" = yes; then
3610    CFLAGS="-O2"
3611  else
3612    CFLAGS=
3613  fi
3614fi
3615echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3616echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3617if test "${ac_cv_prog_cc_stdc+set}" = set; then
3618  echo $ECHO_N "(cached) $ECHO_C" >&6
3619else
3620  ac_cv_prog_cc_stdc=no
3621ac_save_CC=$CC
3622cat >conftest.$ac_ext <<_ACEOF
3623/* confdefs.h.  */
3624_ACEOF
3625cat confdefs.h >>conftest.$ac_ext
3626cat >>conftest.$ac_ext <<_ACEOF
3627/* end confdefs.h.  */
3628#include <stdarg.h>
3629#include <stdio.h>
3630#include <sys/types.h>
3631#include <sys/stat.h>
3632/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3633struct buf { int x; };
3634FILE * (*rcsopen) (struct buf *, struct stat *, int);
3635static char *e (p, i)
3636     char **p;
3637     int i;
3638{
3639  return p[i];
3640}
3641static char *f (char * (*g) (char **, int), char **p, ...)
3642{
3643  char *s;
3644  va_list v;
3645  va_start (v,p);
3646  s = g (p, va_arg (v,int));
3647  va_end (v);
3648  return s;
3649}
3650
3651/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3652   function prototypes and stuff, but not '\xHH' hex character constants.
3653   These don't provoke an error unfortunately, instead are silently treated
3654   as 'x'.  The following induces an error, until -std1 is added to get
3655   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3656   array size at least.  It's necessary to write '\x00'==0 to get something
3657   that's true only with -std1.  */
3658int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3659
3660int test (int i, double x);
3661struct s1 {int (*f) (int a);};
3662struct s2 {int (*f) (double a);};
3663int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3664int argc;
3665char **argv;
3666int
3667main ()
3668{
3669return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3670  ;
3671  return 0;
3672}
3673_ACEOF
3674# Don't try gcc -ansi; that turns off useful extensions and
3675# breaks some systems' header files.
3676# AIX			-qlanglvl=ansi
3677# Ultrix and OSF/1	-std1
3678# HP-UX 10.20 and later	-Ae
3679# HP-UX older versions	-Aa -D_HPUX_SOURCE
3680# SVR4			-Xc -D__EXTENSIONS__
3681for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3682do
3683  CC="$ac_save_CC $ac_arg"
3684  rm -f conftest.$ac_objext
3685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3686  (eval $ac_compile) 2>conftest.er1
3687  ac_status=$?
3688  grep -v '^ *+' conftest.er1 >conftest.err
3689  rm -f conftest.er1
3690  cat conftest.err >&5
3691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692  (exit $ac_status); } &&
3693	 { ac_try='test -z "$ac_c_werror_flag"
3694			 || test ! -s conftest.err'
3695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696  (eval $ac_try) 2>&5
3697  ac_status=$?
3698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699  (exit $ac_status); }; } &&
3700	 { ac_try='test -s conftest.$ac_objext'
3701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702  (eval $ac_try) 2>&5
3703  ac_status=$?
3704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705  (exit $ac_status); }; }; then
3706  ac_cv_prog_cc_stdc=$ac_arg
3707break
3708else
3709  echo "$as_me: failed program was:" >&5
3710sed 's/^/| /' conftest.$ac_ext >&5
3711
3712fi
3713rm -f conftest.err conftest.$ac_objext
3714done
3715rm -f conftest.$ac_ext conftest.$ac_objext
3716CC=$ac_save_CC
3717
3718fi
3719
3720case "x$ac_cv_prog_cc_stdc" in
3721  x|xno)
3722    echo "$as_me:$LINENO: result: none needed" >&5
3723echo "${ECHO_T}none needed" >&6 ;;
3724  *)
3725    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3726echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3727    CC="$CC $ac_cv_prog_cc_stdc" ;;
3728esac
3729
3730# Some people use a C++ compiler to compile C.  Since we use `exit',
3731# in C++ we need to declare it.  In case someone uses the same compiler
3732# for both compiling C and C++ we need to have the C++ compiler decide
3733# the declaration of exit, since it's the most demanding environment.
3734cat >conftest.$ac_ext <<_ACEOF
3735#ifndef __cplusplus
3736  choke me
3737#endif
3738_ACEOF
3739rm -f conftest.$ac_objext
3740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3741  (eval $ac_compile) 2>conftest.er1
3742  ac_status=$?
3743  grep -v '^ *+' conftest.er1 >conftest.err
3744  rm -f conftest.er1
3745  cat conftest.err >&5
3746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747  (exit $ac_status); } &&
3748	 { ac_try='test -z "$ac_c_werror_flag"
3749			 || test ! -s conftest.err'
3750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751  (eval $ac_try) 2>&5
3752  ac_status=$?
3753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754  (exit $ac_status); }; } &&
3755	 { ac_try='test -s conftest.$ac_objext'
3756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757  (eval $ac_try) 2>&5
3758  ac_status=$?
3759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760  (exit $ac_status); }; }; then
3761  for ac_declaration in \
3762   '' \
3763   'extern "C" void std::exit (int) throw (); using std::exit;' \
3764   'extern "C" void std::exit (int); using std::exit;' \
3765   'extern "C" void exit (int) throw ();' \
3766   'extern "C" void exit (int);' \
3767   'void exit (int);'
3768do
3769  cat >conftest.$ac_ext <<_ACEOF
3770/* confdefs.h.  */
3771_ACEOF
3772cat confdefs.h >>conftest.$ac_ext
3773cat >>conftest.$ac_ext <<_ACEOF
3774/* end confdefs.h.  */
3775$ac_declaration
3776#include <stdlib.h>
3777int
3778main ()
3779{
3780exit (42);
3781  ;
3782  return 0;
3783}
3784_ACEOF
3785rm -f conftest.$ac_objext
3786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3787  (eval $ac_compile) 2>conftest.er1
3788  ac_status=$?
3789  grep -v '^ *+' conftest.er1 >conftest.err
3790  rm -f conftest.er1
3791  cat conftest.err >&5
3792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793  (exit $ac_status); } &&
3794	 { ac_try='test -z "$ac_c_werror_flag"
3795			 || test ! -s conftest.err'
3796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797  (eval $ac_try) 2>&5
3798  ac_status=$?
3799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800  (exit $ac_status); }; } &&
3801	 { ac_try='test -s conftest.$ac_objext'
3802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803  (eval $ac_try) 2>&5
3804  ac_status=$?
3805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806  (exit $ac_status); }; }; then
3807  :
3808else
3809  echo "$as_me: failed program was:" >&5
3810sed 's/^/| /' conftest.$ac_ext >&5
3811
3812continue
3813fi
3814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3815  cat >conftest.$ac_ext <<_ACEOF
3816/* confdefs.h.  */
3817_ACEOF
3818cat confdefs.h >>conftest.$ac_ext
3819cat >>conftest.$ac_ext <<_ACEOF
3820/* end confdefs.h.  */
3821$ac_declaration
3822int
3823main ()
3824{
3825exit (42);
3826  ;
3827  return 0;
3828}
3829_ACEOF
3830rm -f conftest.$ac_objext
3831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3832  (eval $ac_compile) 2>conftest.er1
3833  ac_status=$?
3834  grep -v '^ *+' conftest.er1 >conftest.err
3835  rm -f conftest.er1
3836  cat conftest.err >&5
3837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838  (exit $ac_status); } &&
3839	 { ac_try='test -z "$ac_c_werror_flag"
3840			 || test ! -s conftest.err'
3841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842  (eval $ac_try) 2>&5
3843  ac_status=$?
3844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845  (exit $ac_status); }; } &&
3846	 { ac_try='test -s conftest.$ac_objext'
3847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848  (eval $ac_try) 2>&5
3849  ac_status=$?
3850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851  (exit $ac_status); }; }; then
3852  break
3853else
3854  echo "$as_me: failed program was:" >&5
3855sed 's/^/| /' conftest.$ac_ext >&5
3856
3857fi
3858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3859done
3860rm -f conftest*
3861if test -n "$ac_declaration"; then
3862  echo '#ifdef __cplusplus' >>confdefs.h
3863  echo $ac_declaration      >>confdefs.h
3864  echo '#endif'             >>confdefs.h
3865fi
3866
3867else
3868  echo "$as_me: failed program was:" >&5
3869sed 's/^/| /' conftest.$ac_ext >&5
3870
3871fi
3872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3873ac_ext=c
3874ac_cpp='$CPP $CPPFLAGS'
3875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878
3879ac_ext=cc
3880ac_cpp='$CXXCPP $CPPFLAGS'
3881ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3882ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3883ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3884if test -n "$ac_tool_prefix"; then
3885  for ac_prog in $CCC g++
3886  do
3887    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3888set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3889echo "$as_me:$LINENO: checking for $ac_word" >&5
3890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3891if test "${ac_cv_prog_CXX+set}" = set; then
3892  echo $ECHO_N "(cached) $ECHO_C" >&6
3893else
3894  if test -n "$CXX"; then
3895  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3896else
3897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898for as_dir in $PATH
3899do
3900  IFS=$as_save_IFS
3901  test -z "$as_dir" && as_dir=.
3902  for ac_exec_ext in '' $ac_executable_extensions; do
3903  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3904    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3905    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3906    break 2
3907  fi
3908done
3909done
3910
3911fi
3912fi
3913CXX=$ac_cv_prog_CXX
3914if test -n "$CXX"; then
3915  echo "$as_me:$LINENO: result: $CXX" >&5
3916echo "${ECHO_T}$CXX" >&6
3917else
3918  echo "$as_me:$LINENO: result: no" >&5
3919echo "${ECHO_T}no" >&6
3920fi
3921
3922    test -n "$CXX" && break
3923  done
3924fi
3925if test -z "$CXX"; then
3926  ac_ct_CXX=$CXX
3927  for ac_prog in $CCC g++
3928do
3929  # Extract the first word of "$ac_prog", so it can be a program name with args.
3930set dummy $ac_prog; ac_word=$2
3931echo "$as_me:$LINENO: checking for $ac_word" >&5
3932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3933if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3934  echo $ECHO_N "(cached) $ECHO_C" >&6
3935else
3936  if test -n "$ac_ct_CXX"; then
3937  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3938else
3939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940for as_dir in $PATH
3941do
3942  IFS=$as_save_IFS
3943  test -z "$as_dir" && as_dir=.
3944  for ac_exec_ext in '' $ac_executable_extensions; do
3945  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3946    ac_cv_prog_ac_ct_CXX="$ac_prog"
3947    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3948    break 2
3949  fi
3950done
3951done
3952
3953fi
3954fi
3955ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3956if test -n "$ac_ct_CXX"; then
3957  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3958echo "${ECHO_T}$ac_ct_CXX" >&6
3959else
3960  echo "$as_me:$LINENO: result: no" >&5
3961echo "${ECHO_T}no" >&6
3962fi
3963
3964  test -n "$ac_ct_CXX" && break
3965done
3966test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3967
3968  CXX=$ac_ct_CXX
3969fi
3970
3971
3972# Provide some information about the compiler.
3973echo "$as_me:$LINENO:" \
3974     "checking for C++ compiler version" >&5
3975ac_compiler=`set X $ac_compile; echo $2`
3976{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3977  (eval $ac_compiler --version </dev/null >&5) 2>&5
3978  ac_status=$?
3979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980  (exit $ac_status); }
3981{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3982  (eval $ac_compiler -v </dev/null >&5) 2>&5
3983  ac_status=$?
3984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985  (exit $ac_status); }
3986{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3987  (eval $ac_compiler -V </dev/null >&5) 2>&5
3988  ac_status=$?
3989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990  (exit $ac_status); }
3991
3992echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3993echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3994if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3995  echo $ECHO_N "(cached) $ECHO_C" >&6
3996else
3997  cat >conftest.$ac_ext <<_ACEOF
3998/* confdefs.h.  */
3999_ACEOF
4000cat confdefs.h >>conftest.$ac_ext
4001cat >>conftest.$ac_ext <<_ACEOF
4002/* end confdefs.h.  */
4003
4004int
4005main ()
4006{
4007#ifndef __GNUC__
4008       choke me
4009#endif
4010
4011  ;
4012  return 0;
4013}
4014_ACEOF
4015rm -f conftest.$ac_objext
4016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4017  (eval $ac_compile) 2>conftest.er1
4018  ac_status=$?
4019  grep -v '^ *+' conftest.er1 >conftest.err
4020  rm -f conftest.er1
4021  cat conftest.err >&5
4022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023  (exit $ac_status); } &&
4024	 { ac_try='test -z "$ac_cxx_werror_flag"
4025			 || test ! -s conftest.err'
4026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027  (eval $ac_try) 2>&5
4028  ac_status=$?
4029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030  (exit $ac_status); }; } &&
4031	 { ac_try='test -s conftest.$ac_objext'
4032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033  (eval $ac_try) 2>&5
4034  ac_status=$?
4035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036  (exit $ac_status); }; }; then
4037  ac_compiler_gnu=yes
4038else
4039  echo "$as_me: failed program was:" >&5
4040sed 's/^/| /' conftest.$ac_ext >&5
4041
4042ac_compiler_gnu=no
4043fi
4044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4045ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4046
4047fi
4048echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4049echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4050GXX=`test $ac_compiler_gnu = yes && echo yes`
4051ac_test_CXXFLAGS=${CXXFLAGS+set}
4052ac_save_CXXFLAGS=$CXXFLAGS
4053CXXFLAGS="-g"
4054echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4055echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4056if test "${ac_cv_prog_cxx_g+set}" = set; then
4057  echo $ECHO_N "(cached) $ECHO_C" >&6
4058else
4059  cat >conftest.$ac_ext <<_ACEOF
4060/* confdefs.h.  */
4061_ACEOF
4062cat confdefs.h >>conftest.$ac_ext
4063cat >>conftest.$ac_ext <<_ACEOF
4064/* end confdefs.h.  */
4065
4066int
4067main ()
4068{
4069
4070  ;
4071  return 0;
4072}
4073_ACEOF
4074rm -f conftest.$ac_objext
4075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4076  (eval $ac_compile) 2>conftest.er1
4077  ac_status=$?
4078  grep -v '^ *+' conftest.er1 >conftest.err
4079  rm -f conftest.er1
4080  cat conftest.err >&5
4081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082  (exit $ac_status); } &&
4083	 { ac_try='test -z "$ac_cxx_werror_flag"
4084			 || test ! -s conftest.err'
4085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086  (eval $ac_try) 2>&5
4087  ac_status=$?
4088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089  (exit $ac_status); }; } &&
4090	 { ac_try='test -s conftest.$ac_objext'
4091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092  (eval $ac_try) 2>&5
4093  ac_status=$?
4094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095  (exit $ac_status); }; }; then
4096  ac_cv_prog_cxx_g=yes
4097else
4098  echo "$as_me: failed program was:" >&5
4099sed 's/^/| /' conftest.$ac_ext >&5
4100
4101ac_cv_prog_cxx_g=no
4102fi
4103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4104fi
4105echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4106echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4107if test "$ac_test_CXXFLAGS" = set; then
4108  CXXFLAGS=$ac_save_CXXFLAGS
4109elif test $ac_cv_prog_cxx_g = yes; then
4110  if test "$GXX" = yes; then
4111    CXXFLAGS="-g -O2"
4112  else
4113    CXXFLAGS="-g"
4114  fi
4115else
4116  if test "$GXX" = yes; then
4117    CXXFLAGS="-O2"
4118  else
4119    CXXFLAGS=
4120  fi
4121fi
4122for ac_declaration in \
4123   '' \
4124   'extern "C" void std::exit (int) throw (); using std::exit;' \
4125   'extern "C" void std::exit (int); using std::exit;' \
4126   'extern "C" void exit (int) throw ();' \
4127   'extern "C" void exit (int);' \
4128   'void exit (int);'
4129do
4130  cat >conftest.$ac_ext <<_ACEOF
4131/* confdefs.h.  */
4132_ACEOF
4133cat confdefs.h >>conftest.$ac_ext
4134cat >>conftest.$ac_ext <<_ACEOF
4135/* end confdefs.h.  */
4136$ac_declaration
4137#include <stdlib.h>
4138int
4139main ()
4140{
4141exit (42);
4142  ;
4143  return 0;
4144}
4145_ACEOF
4146rm -f conftest.$ac_objext
4147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4148  (eval $ac_compile) 2>conftest.er1
4149  ac_status=$?
4150  grep -v '^ *+' conftest.er1 >conftest.err
4151  rm -f conftest.er1
4152  cat conftest.err >&5
4153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154  (exit $ac_status); } &&
4155	 { ac_try='test -z "$ac_cxx_werror_flag"
4156			 || test ! -s conftest.err'
4157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158  (eval $ac_try) 2>&5
4159  ac_status=$?
4160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161  (exit $ac_status); }; } &&
4162	 { ac_try='test -s conftest.$ac_objext'
4163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164  (eval $ac_try) 2>&5
4165  ac_status=$?
4166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167  (exit $ac_status); }; }; then
4168  :
4169else
4170  echo "$as_me: failed program was:" >&5
4171sed 's/^/| /' conftest.$ac_ext >&5
4172
4173continue
4174fi
4175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4176  cat >conftest.$ac_ext <<_ACEOF
4177/* confdefs.h.  */
4178_ACEOF
4179cat confdefs.h >>conftest.$ac_ext
4180cat >>conftest.$ac_ext <<_ACEOF
4181/* end confdefs.h.  */
4182$ac_declaration
4183int
4184main ()
4185{
4186exit (42);
4187  ;
4188  return 0;
4189}
4190_ACEOF
4191rm -f conftest.$ac_objext
4192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4193  (eval $ac_compile) 2>conftest.er1
4194  ac_status=$?
4195  grep -v '^ *+' conftest.er1 >conftest.err
4196  rm -f conftest.er1
4197  cat conftest.err >&5
4198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199  (exit $ac_status); } &&
4200	 { ac_try='test -z "$ac_cxx_werror_flag"
4201			 || test ! -s conftest.err'
4202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203  (eval $ac_try) 2>&5
4204  ac_status=$?
4205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206  (exit $ac_status); }; } &&
4207	 { ac_try='test -s conftest.$ac_objext'
4208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209  (eval $ac_try) 2>&5
4210  ac_status=$?
4211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212  (exit $ac_status); }; }; then
4213  break
4214else
4215  echo "$as_me: failed program was:" >&5
4216sed 's/^/| /' conftest.$ac_ext >&5
4217
4218fi
4219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4220done
4221rm -f conftest*
4222if test -n "$ac_declaration"; then
4223  echo '#ifdef __cplusplus' >>confdefs.h
4224  echo $ac_declaration      >>confdefs.h
4225  echo '#endif'             >>confdefs.h
4226fi
4227
4228ac_ext=c
4229ac_cpp='$CPP $CPPFLAGS'
4230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233
4234echo "$as_me:$LINENO: checking " >&5
4235echo $ECHO_N "checking ... $ECHO_C" >&6
4236if test "${ac_cv_has_flex+set}" = set; then
4237  echo $ECHO_N "(cached) $ECHO_C" >&6
4238else
4239  for ac_prog in flex lex
4240do
4241  # Extract the first word of "$ac_prog", so it can be a program name with args.
4242set dummy $ac_prog; ac_word=$2
4243echo "$as_me:$LINENO: checking for $ac_word" >&5
4244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4245if test "${ac_cv_prog_LEX+set}" = set; then
4246  echo $ECHO_N "(cached) $ECHO_C" >&6
4247else
4248  if test -n "$LEX"; then
4249  ac_cv_prog_LEX="$LEX" # Let the user override the test.
4250else
4251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252for as_dir in $PATH
4253do
4254  IFS=$as_save_IFS
4255  test -z "$as_dir" && as_dir=.
4256  for ac_exec_ext in '' $ac_executable_extensions; do
4257  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4258    ac_cv_prog_LEX="$ac_prog"
4259    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260    break 2
4261  fi
4262done
4263done
4264
4265fi
4266fi
4267LEX=$ac_cv_prog_LEX
4268if test -n "$LEX"; then
4269  echo "$as_me:$LINENO: result: $LEX" >&5
4270echo "${ECHO_T}$LEX" >&6
4271else
4272  echo "$as_me:$LINENO: result: no" >&5
4273echo "${ECHO_T}no" >&6
4274fi
4275
4276  test -n "$LEX" && break
4277done
4278test -n "$LEX" || LEX=":"
4279
4280if test -z "$LEXLIB"
4281then
4282  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4283echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4284if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4285  echo $ECHO_N "(cached) $ECHO_C" >&6
4286else
4287  ac_check_lib_save_LIBS=$LIBS
4288LIBS="-lfl  $LIBS"
4289cat >conftest.$ac_ext <<_ACEOF
4290/* confdefs.h.  */
4291_ACEOF
4292cat confdefs.h >>conftest.$ac_ext
4293cat >>conftest.$ac_ext <<_ACEOF
4294/* end confdefs.h.  */
4295
4296/* Override any gcc2 internal prototype to avoid an error.  */
4297#ifdef __cplusplus
4298extern "C"
4299#endif
4300/* We use char because int might match the return type of a gcc2
4301   builtin and then its argument prototype would still apply.  */
4302char yywrap ();
4303int
4304main ()
4305{
4306yywrap ();
4307  ;
4308  return 0;
4309}
4310_ACEOF
4311rm -f conftest.$ac_objext conftest$ac_exeext
4312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4313  (eval $ac_link) 2>conftest.er1
4314  ac_status=$?
4315  grep -v '^ *+' conftest.er1 >conftest.err
4316  rm -f conftest.er1
4317  cat conftest.err >&5
4318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319  (exit $ac_status); } &&
4320	 { ac_try='test -z "$ac_c_werror_flag"
4321			 || test ! -s conftest.err'
4322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323  (eval $ac_try) 2>&5
4324  ac_status=$?
4325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326  (exit $ac_status); }; } &&
4327	 { ac_try='test -s conftest$ac_exeext'
4328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329  (eval $ac_try) 2>&5
4330  ac_status=$?
4331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332  (exit $ac_status); }; }; then
4333  ac_cv_lib_fl_yywrap=yes
4334else
4335  echo "$as_me: failed program was:" >&5
4336sed 's/^/| /' conftest.$ac_ext >&5
4337
4338ac_cv_lib_fl_yywrap=no
4339fi
4340rm -f conftest.err conftest.$ac_objext \
4341      conftest$ac_exeext conftest.$ac_ext
4342LIBS=$ac_check_lib_save_LIBS
4343fi
4344echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4345echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4346if test $ac_cv_lib_fl_yywrap = yes; then
4347  LEXLIB="-lfl"
4348else
4349  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4350echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4351if test "${ac_cv_lib_l_yywrap+set}" = set; then
4352  echo $ECHO_N "(cached) $ECHO_C" >&6
4353else
4354  ac_check_lib_save_LIBS=$LIBS
4355LIBS="-ll  $LIBS"
4356cat >conftest.$ac_ext <<_ACEOF
4357/* confdefs.h.  */
4358_ACEOF
4359cat confdefs.h >>conftest.$ac_ext
4360cat >>conftest.$ac_ext <<_ACEOF
4361/* end confdefs.h.  */
4362
4363/* Override any gcc2 internal prototype to avoid an error.  */
4364#ifdef __cplusplus
4365extern "C"
4366#endif
4367/* We use char because int might match the return type of a gcc2
4368   builtin and then its argument prototype would still apply.  */
4369char yywrap ();
4370int
4371main ()
4372{
4373yywrap ();
4374  ;
4375  return 0;
4376}
4377_ACEOF
4378rm -f conftest.$ac_objext conftest$ac_exeext
4379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4380  (eval $ac_link) 2>conftest.er1
4381  ac_status=$?
4382  grep -v '^ *+' conftest.er1 >conftest.err
4383  rm -f conftest.er1
4384  cat conftest.err >&5
4385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386  (exit $ac_status); } &&
4387	 { ac_try='test -z "$ac_c_werror_flag"
4388			 || test ! -s conftest.err'
4389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390  (eval $ac_try) 2>&5
4391  ac_status=$?
4392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393  (exit $ac_status); }; } &&
4394	 { ac_try='test -s conftest$ac_exeext'
4395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396  (eval $ac_try) 2>&5
4397  ac_status=$?
4398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399  (exit $ac_status); }; }; then
4400  ac_cv_lib_l_yywrap=yes
4401else
4402  echo "$as_me: failed program was:" >&5
4403sed 's/^/| /' conftest.$ac_ext >&5
4404
4405ac_cv_lib_l_yywrap=no
4406fi
4407rm -f conftest.err conftest.$ac_objext \
4408      conftest$ac_exeext conftest.$ac_ext
4409LIBS=$ac_check_lib_save_LIBS
4410fi
4411echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4412echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4413if test $ac_cv_lib_l_yywrap = yes; then
4414  LEXLIB="-ll"
4415fi
4416
4417fi
4418
4419fi
4420
4421if test "x$LEX" != "x:"; then
4422  echo "$as_me:$LINENO: checking lex output file root" >&5
4423echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4424if test "${ac_cv_prog_lex_root+set}" = set; then
4425  echo $ECHO_N "(cached) $ECHO_C" >&6
4426else
4427  # The minimal lex program is just a single line: %%.  But some broken lexes
4428# (Solaris, I think it was) want two %% lines, so accommodate them.
4429cat >conftest.l <<_ACEOF
4430%%
4431%%
4432_ACEOF
4433{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4434  (eval $LEX conftest.l) 2>&5
4435  ac_status=$?
4436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437  (exit $ac_status); }
4438if test -f lex.yy.c; then
4439  ac_cv_prog_lex_root=lex.yy
4440elif test -f lexyy.c; then
4441  ac_cv_prog_lex_root=lexyy
4442else
4443  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4444echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4445   { (exit 1); exit 1; }; }
4446fi
4447fi
4448echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4449echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4450rm -f conftest.l
4451LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4452
4453echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4454echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4455if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4456  echo $ECHO_N "(cached) $ECHO_C" >&6
4457else
4458  # POSIX says lex can declare yytext either as a pointer or an array; the
4459# default is implementation-dependent. Figure out which it is, since
4460# not all implementations provide the %pointer and %array declarations.
4461ac_cv_prog_lex_yytext_pointer=no
4462echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4463ac_save_LIBS=$LIBS
4464LIBS="$LIBS $LEXLIB"
4465cat >conftest.$ac_ext <<_ACEOF
4466`cat $LEX_OUTPUT_ROOT.c`
4467_ACEOF
4468rm -f conftest.$ac_objext conftest$ac_exeext
4469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4470  (eval $ac_link) 2>conftest.er1
4471  ac_status=$?
4472  grep -v '^ *+' conftest.er1 >conftest.err
4473  rm -f conftest.er1
4474  cat conftest.err >&5
4475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476  (exit $ac_status); } &&
4477	 { ac_try='test -z "$ac_c_werror_flag"
4478			 || test ! -s conftest.err'
4479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480  (eval $ac_try) 2>&5
4481  ac_status=$?
4482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483  (exit $ac_status); }; } &&
4484	 { ac_try='test -s conftest$ac_exeext'
4485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486  (eval $ac_try) 2>&5
4487  ac_status=$?
4488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489  (exit $ac_status); }; }; then
4490  ac_cv_prog_lex_yytext_pointer=yes
4491else
4492  echo "$as_me: failed program was:" >&5
4493sed 's/^/| /' conftest.$ac_ext >&5
4494
4495fi
4496rm -f conftest.err conftest.$ac_objext \
4497      conftest$ac_exeext conftest.$ac_ext
4498LIBS=$ac_save_LIBS
4499rm -f "${LEX_OUTPUT_ROOT}.c"
4500
4501fi
4502echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4503echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4504if test $ac_cv_prog_lex_yytext_pointer = yes; then
4505
4506cat >>confdefs.h <<\_ACEOF
4507#define YYTEXT_POINTER 1
4508_ACEOF
4509
4510fi
4511
4512fi
4513
4514fi
4515echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4516echo "${ECHO_T}$ac_cv_has_flex" >&6
4517if test "$LEX" != "flex"; then
4518  { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4519echo "$as_me: error: flex not found but required" >&2;}
4520   { (exit 1); exit 1; }; }
4521else
4522  FLEX=flex
4523
4524fi
4525
4526echo "$as_me:$LINENO: checking " >&5
4527echo $ECHO_N "checking ... $ECHO_C" >&6
4528if test "${llvm_cv_has_bison+set}" = set; then
4529  echo $ECHO_N "(cached) $ECHO_C" >&6
4530else
4531  for ac_prog in 'bison -y' byacc
4532do
4533  # Extract the first word of "$ac_prog", so it can be a program name with args.
4534set dummy $ac_prog; ac_word=$2
4535echo "$as_me:$LINENO: checking for $ac_word" >&5
4536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4537if test "${ac_cv_prog_YACC+set}" = set; then
4538  echo $ECHO_N "(cached) $ECHO_C" >&6
4539else
4540  if test -n "$YACC"; then
4541  ac_cv_prog_YACC="$YACC" # Let the user override the test.
4542else
4543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544for as_dir in $PATH
4545do
4546  IFS=$as_save_IFS
4547  test -z "$as_dir" && as_dir=.
4548  for ac_exec_ext in '' $ac_executable_extensions; do
4549  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4550    ac_cv_prog_YACC="$ac_prog"
4551    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4552    break 2
4553  fi
4554done
4555done
4556
4557fi
4558fi
4559YACC=$ac_cv_prog_YACC
4560if test -n "$YACC"; then
4561  echo "$as_me:$LINENO: result: $YACC" >&5
4562echo "${ECHO_T}$YACC" >&6
4563else
4564  echo "$as_me:$LINENO: result: no" >&5
4565echo "${ECHO_T}no" >&6
4566fi
4567
4568  test -n "$YACC" && break
4569done
4570test -n "$YACC" || YACC="yacc"
4571
4572fi
4573echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4574echo "${ECHO_T}$llvm_cv_has_bison" >&6
4575if test "$YACC" != "bison -y"; then
4576  { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4577echo "$as_me: error: bison not found but required" >&2;}
4578   { (exit 1); exit 1; }; }
4579else
4580  BISON=bison
4581
4582fi
4583
4584echo "$as_me:$LINENO: checking for GNU make" >&5
4585echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4586if test "${llvm_cv_gnu_make_command+set}" = set; then
4587  echo $ECHO_N "(cached) $ECHO_C" >&6
4588else
4589  llvm_cv_gnu_make_command=''
4590 for a in "$MAKE" make gmake gnumake ; do
4591  if test -z "$a" ; then continue ; fi ;
4592  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4593  then
4594   llvm_cv_gnu_make_command=$a ;
4595   break;
4596  fi
4597 done
4598fi
4599echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4600echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4601 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4602   ifGNUmake='' ;
4603 else
4604   ifGNUmake='#' ;
4605   echo "$as_me:$LINENO: result: \"Not found\"" >&5
4606echo "${ECHO_T}\"Not found\"" >&6;
4607 fi
4608
4609
4610echo "$as_me:$LINENO: checking whether ln -s works" >&5
4611echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4612LN_S=$as_ln_s
4613if test "$LN_S" = "ln -s"; then
4614  echo "$as_me:$LINENO: result: yes" >&5
4615echo "${ECHO_T}yes" >&6
4616else
4617  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4618echo "${ECHO_T}no, using $LN_S" >&6
4619fi
4620
4621# Extract the first word of "cmp", so it can be a program name with args.
4622set dummy cmp; ac_word=$2
4623echo "$as_me:$LINENO: checking for $ac_word" >&5
4624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4625if test "${ac_cv_path_CMP+set}" = set; then
4626  echo $ECHO_N "(cached) $ECHO_C" >&6
4627else
4628  case $CMP in
4629  [\\/]* | ?:[\\/]*)
4630  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4631  ;;
4632  *)
4633  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634for as_dir in $PATH
4635do
4636  IFS=$as_save_IFS
4637  test -z "$as_dir" && as_dir=.
4638  for ac_exec_ext in '' $ac_executable_extensions; do
4639  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4640    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4641    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4642    break 2
4643  fi
4644done
4645done
4646
4647  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4648  ;;
4649esac
4650fi
4651CMP=$ac_cv_path_CMP
4652
4653if test -n "$CMP"; then
4654  echo "$as_me:$LINENO: result: $CMP" >&5
4655echo "${ECHO_T}$CMP" >&6
4656else
4657  echo "$as_me:$LINENO: result: no" >&5
4658echo "${ECHO_T}no" >&6
4659fi
4660
4661# Extract the first word of "cp", so it can be a program name with args.
4662set dummy cp; ac_word=$2
4663echo "$as_me:$LINENO: checking for $ac_word" >&5
4664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4665if test "${ac_cv_path_CP+set}" = set; then
4666  echo $ECHO_N "(cached) $ECHO_C" >&6
4667else
4668  case $CP in
4669  [\\/]* | ?:[\\/]*)
4670  ac_cv_path_CP="$CP" # Let the user override the test with a path.
4671  ;;
4672  *)
4673  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674for as_dir in $PATH
4675do
4676  IFS=$as_save_IFS
4677  test -z "$as_dir" && as_dir=.
4678  for ac_exec_ext in '' $ac_executable_extensions; do
4679  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4680    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4681    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682    break 2
4683  fi
4684done
4685done
4686
4687  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4688  ;;
4689esac
4690fi
4691CP=$ac_cv_path_CP
4692
4693if test -n "$CP"; then
4694  echo "$as_me:$LINENO: result: $CP" >&5
4695echo "${ECHO_T}$CP" >&6
4696else
4697  echo "$as_me:$LINENO: result: no" >&5
4698echo "${ECHO_T}no" >&6
4699fi
4700
4701# Extract the first word of "date", so it can be a program name with args.
4702set dummy date; ac_word=$2
4703echo "$as_me:$LINENO: checking for $ac_word" >&5
4704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4705if test "${ac_cv_path_DATE+set}" = set; then
4706  echo $ECHO_N "(cached) $ECHO_C" >&6
4707else
4708  case $DATE in
4709  [\\/]* | ?:[\\/]*)
4710  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4711  ;;
4712  *)
4713  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714for as_dir in $PATH
4715do
4716  IFS=$as_save_IFS
4717  test -z "$as_dir" && as_dir=.
4718  for ac_exec_ext in '' $ac_executable_extensions; do
4719  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4720    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4721    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722    break 2
4723  fi
4724done
4725done
4726
4727  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4728  ;;
4729esac
4730fi
4731DATE=$ac_cv_path_DATE
4732
4733if test -n "$DATE"; then
4734  echo "$as_me:$LINENO: result: $DATE" >&5
4735echo "${ECHO_T}$DATE" >&6
4736else
4737  echo "$as_me:$LINENO: result: no" >&5
4738echo "${ECHO_T}no" >&6
4739fi
4740
4741# Extract the first word of "find", so it can be a program name with args.
4742set dummy find; ac_word=$2
4743echo "$as_me:$LINENO: checking for $ac_word" >&5
4744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4745if test "${ac_cv_path_FIND+set}" = set; then
4746  echo $ECHO_N "(cached) $ECHO_C" >&6
4747else
4748  case $FIND in
4749  [\\/]* | ?:[\\/]*)
4750  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4751  ;;
4752  *)
4753  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754for as_dir in $PATH
4755do
4756  IFS=$as_save_IFS
4757  test -z "$as_dir" && as_dir=.
4758  for ac_exec_ext in '' $ac_executable_extensions; do
4759  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4760    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4761    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762    break 2
4763  fi
4764done
4765done
4766
4767  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4768  ;;
4769esac
4770fi
4771FIND=$ac_cv_path_FIND
4772
4773if test -n "$FIND"; then
4774  echo "$as_me:$LINENO: result: $FIND" >&5
4775echo "${ECHO_T}$FIND" >&6
4776else
4777  echo "$as_me:$LINENO: result: no" >&5
4778echo "${ECHO_T}no" >&6
4779fi
4780
4781# Extract the first word of "grep", so it can be a program name with args.
4782set dummy grep; ac_word=$2
4783echo "$as_me:$LINENO: checking for $ac_word" >&5
4784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4785if test "${ac_cv_path_GREP+set}" = set; then
4786  echo $ECHO_N "(cached) $ECHO_C" >&6
4787else
4788  case $GREP in
4789  [\\/]* | ?:[\\/]*)
4790  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4791  ;;
4792  *)
4793  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794for as_dir in $PATH
4795do
4796  IFS=$as_save_IFS
4797  test -z "$as_dir" && as_dir=.
4798  for ac_exec_ext in '' $ac_executable_extensions; do
4799  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4800    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4801    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802    break 2
4803  fi
4804done
4805done
4806
4807  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4808  ;;
4809esac
4810fi
4811GREP=$ac_cv_path_GREP
4812
4813if test -n "$GREP"; then
4814  echo "$as_me:$LINENO: result: $GREP" >&5
4815echo "${ECHO_T}$GREP" >&6
4816else
4817  echo "$as_me:$LINENO: result: no" >&5
4818echo "${ECHO_T}no" >&6
4819fi
4820
4821# Extract the first word of "mkdir", so it can be a program name with args.
4822set dummy mkdir; ac_word=$2
4823echo "$as_me:$LINENO: checking for $ac_word" >&5
4824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4825if test "${ac_cv_path_MKDIR+set}" = set; then
4826  echo $ECHO_N "(cached) $ECHO_C" >&6
4827else
4828  case $MKDIR in
4829  [\\/]* | ?:[\\/]*)
4830  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4831  ;;
4832  *)
4833  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834for as_dir in $PATH
4835do
4836  IFS=$as_save_IFS
4837  test -z "$as_dir" && as_dir=.
4838  for ac_exec_ext in '' $ac_executable_extensions; do
4839  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4840    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4841    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842    break 2
4843  fi
4844done
4845done
4846
4847  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4848  ;;
4849esac
4850fi
4851MKDIR=$ac_cv_path_MKDIR
4852
4853if test -n "$MKDIR"; then
4854  echo "$as_me:$LINENO: result: $MKDIR" >&5
4855echo "${ECHO_T}$MKDIR" >&6
4856else
4857  echo "$as_me:$LINENO: result: no" >&5
4858echo "${ECHO_T}no" >&6
4859fi
4860
4861# Extract the first word of "mv", so it can be a program name with args.
4862set dummy mv; ac_word=$2
4863echo "$as_me:$LINENO: checking for $ac_word" >&5
4864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4865if test "${ac_cv_path_MV+set}" = set; then
4866  echo $ECHO_N "(cached) $ECHO_C" >&6
4867else
4868  case $MV in
4869  [\\/]* | ?:[\\/]*)
4870  ac_cv_path_MV="$MV" # Let the user override the test with a path.
4871  ;;
4872  *)
4873  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874for as_dir in $PATH
4875do
4876  IFS=$as_save_IFS
4877  test -z "$as_dir" && as_dir=.
4878  for ac_exec_ext in '' $ac_executable_extensions; do
4879  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4880    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4881    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882    break 2
4883  fi
4884done
4885done
4886
4887  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4888  ;;
4889esac
4890fi
4891MV=$ac_cv_path_MV
4892
4893if test -n "$MV"; then
4894  echo "$as_me:$LINENO: result: $MV" >&5
4895echo "${ECHO_T}$MV" >&6
4896else
4897  echo "$as_me:$LINENO: result: no" >&5
4898echo "${ECHO_T}no" >&6
4899fi
4900
4901if test -n "$ac_tool_prefix"; then
4902  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4903set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4904echo "$as_me:$LINENO: checking for $ac_word" >&5
4905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4906if test "${ac_cv_prog_RANLIB+set}" = set; then
4907  echo $ECHO_N "(cached) $ECHO_C" >&6
4908else
4909  if test -n "$RANLIB"; then
4910  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4911else
4912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913for as_dir in $PATH
4914do
4915  IFS=$as_save_IFS
4916  test -z "$as_dir" && as_dir=.
4917  for ac_exec_ext in '' $ac_executable_extensions; do
4918  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4919    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4920    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921    break 2
4922  fi
4923done
4924done
4925
4926fi
4927fi
4928RANLIB=$ac_cv_prog_RANLIB
4929if test -n "$RANLIB"; then
4930  echo "$as_me:$LINENO: result: $RANLIB" >&5
4931echo "${ECHO_T}$RANLIB" >&6
4932else
4933  echo "$as_me:$LINENO: result: no" >&5
4934echo "${ECHO_T}no" >&6
4935fi
4936
4937fi
4938if test -z "$ac_cv_prog_RANLIB"; then
4939  ac_ct_RANLIB=$RANLIB
4940  # Extract the first word of "ranlib", so it can be a program name with args.
4941set dummy ranlib; ac_word=$2
4942echo "$as_me:$LINENO: checking for $ac_word" >&5
4943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4944if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4945  echo $ECHO_N "(cached) $ECHO_C" >&6
4946else
4947  if test -n "$ac_ct_RANLIB"; then
4948  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4949else
4950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951for as_dir in $PATH
4952do
4953  IFS=$as_save_IFS
4954  test -z "$as_dir" && as_dir=.
4955  for ac_exec_ext in '' $ac_executable_extensions; do
4956  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4957    ac_cv_prog_ac_ct_RANLIB="ranlib"
4958    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4959    break 2
4960  fi
4961done
4962done
4963
4964  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4965fi
4966fi
4967ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4968if test -n "$ac_ct_RANLIB"; then
4969  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4970echo "${ECHO_T}$ac_ct_RANLIB" >&6
4971else
4972  echo "$as_me:$LINENO: result: no" >&5
4973echo "${ECHO_T}no" >&6
4974fi
4975
4976  RANLIB=$ac_ct_RANLIB
4977else
4978  RANLIB="$ac_cv_prog_RANLIB"
4979fi
4980
4981# Extract the first word of "rm", so it can be a program name with args.
4982set dummy rm; ac_word=$2
4983echo "$as_me:$LINENO: checking for $ac_word" >&5
4984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4985if test "${ac_cv_path_RM+set}" = set; then
4986  echo $ECHO_N "(cached) $ECHO_C" >&6
4987else
4988  case $RM in
4989  [\\/]* | ?:[\\/]*)
4990  ac_cv_path_RM="$RM" # Let the user override the test with a path.
4991  ;;
4992  *)
4993  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994for as_dir in $PATH
4995do
4996  IFS=$as_save_IFS
4997  test -z "$as_dir" && as_dir=.
4998  for ac_exec_ext in '' $ac_executable_extensions; do
4999  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5000    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5001    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5002    break 2
5003  fi
5004done
5005done
5006
5007  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5008  ;;
5009esac
5010fi
5011RM=$ac_cv_path_RM
5012
5013if test -n "$RM"; then
5014  echo "$as_me:$LINENO: result: $RM" >&5
5015echo "${ECHO_T}$RM" >&6
5016else
5017  echo "$as_me:$LINENO: result: no" >&5
5018echo "${ECHO_T}no" >&6
5019fi
5020
5021# Extract the first word of "sed", so it can be a program name with args.
5022set dummy sed; ac_word=$2
5023echo "$as_me:$LINENO: checking for $ac_word" >&5
5024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5025if test "${ac_cv_path_SED+set}" = set; then
5026  echo $ECHO_N "(cached) $ECHO_C" >&6
5027else
5028  case $SED in
5029  [\\/]* | ?:[\\/]*)
5030  ac_cv_path_SED="$SED" # Let the user override the test with a path.
5031  ;;
5032  *)
5033  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034for as_dir in $PATH
5035do
5036  IFS=$as_save_IFS
5037  test -z "$as_dir" && as_dir=.
5038  for ac_exec_ext in '' $ac_executable_extensions; do
5039  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5040    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5041    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042    break 2
5043  fi
5044done
5045done
5046
5047  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5048  ;;
5049esac
5050fi
5051SED=$ac_cv_path_SED
5052
5053if test -n "$SED"; then
5054  echo "$as_me:$LINENO: result: $SED" >&5
5055echo "${ECHO_T}$SED" >&6
5056else
5057  echo "$as_me:$LINENO: result: no" >&5
5058echo "${ECHO_T}no" >&6
5059fi
5060
5061# Extract the first word of "tar", so it can be a program name with args.
5062set dummy tar; ac_word=$2
5063echo "$as_me:$LINENO: checking for $ac_word" >&5
5064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5065if test "${ac_cv_path_TAR+set}" = set; then
5066  echo $ECHO_N "(cached) $ECHO_C" >&6
5067else
5068  case $TAR in
5069  [\\/]* | ?:[\\/]*)
5070  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5071  ;;
5072  *)
5073  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074for as_dir in $PATH
5075do
5076  IFS=$as_save_IFS
5077  test -z "$as_dir" && as_dir=.
5078  for ac_exec_ext in '' $ac_executable_extensions; do
5079  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5080    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5081    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5082    break 2
5083  fi
5084done
5085done
5086
5087  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5088  ;;
5089esac
5090fi
5091TAR=$ac_cv_path_TAR
5092
5093if test -n "$TAR"; then
5094  echo "$as_me:$LINENO: result: $TAR" >&5
5095echo "${ECHO_T}$TAR" >&6
5096else
5097  echo "$as_me:$LINENO: result: no" >&5
5098echo "${ECHO_T}no" >&6
5099fi
5100
5101# Extract the first word of "Graphviz", so it can be a program name with args.
5102set dummy Graphviz; ac_word=$2
5103echo "$as_me:$LINENO: checking for $ac_word" >&5
5104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5105if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5106  echo $ECHO_N "(cached) $ECHO_C" >&6
5107else
5108  case $GRAPHVIZ in
5109  [\\/]* | ?:[\\/]*)
5110  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5111  ;;
5112  *)
5113  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114for as_dir in $PATH
5115do
5116  IFS=$as_save_IFS
5117  test -z "$as_dir" && as_dir=.
5118  for ac_exec_ext in '' $ac_executable_extensions; do
5119  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5121    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5122    break 2
5123  fi
5124done
5125done
5126
5127  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5128  ;;
5129esac
5130fi
5131GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5132
5133if test -n "$GRAPHVIZ"; then
5134  echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5135echo "${ECHO_T}$GRAPHVIZ" >&6
5136else
5137  echo "$as_me:$LINENO: result: no" >&5
5138echo "${ECHO_T}no" >&6
5139fi
5140
5141if test "$GRAPHVIZ" != "echo Graphviz" ; then
5142
5143cat >>confdefs.h <<\_ACEOF
5144#define HAVE_GRAPHVIZ 1
5145_ACEOF
5146
5147
5148cat >>confdefs.h <<_ACEOF
5149#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5150_ACEOF
5151
5152fi
5153# Extract the first word of "gv", so it can be a program name with args.
5154set dummy gv; ac_word=$2
5155echo "$as_me:$LINENO: checking for $ac_word" >&5
5156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5157if test "${ac_cv_path_GV+set}" = set; then
5158  echo $ECHO_N "(cached) $ECHO_C" >&6
5159else
5160  case $GV in
5161  [\\/]* | ?:[\\/]*)
5162  ac_cv_path_GV="$GV" # Let the user override the test with a path.
5163  ;;
5164  *)
5165  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166for as_dir in $PATH
5167do
5168  IFS=$as_save_IFS
5169  test -z "$as_dir" && as_dir=.
5170  for ac_exec_ext in '' $ac_executable_extensions; do
5171  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5173    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5174    break 2
5175  fi
5176done
5177done
5178
5179  test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv"
5180  ;;
5181esac
5182fi
5183GV=$ac_cv_path_GV
5184
5185if test -n "$GV"; then
5186  echo "$as_me:$LINENO: result: $GV" >&5
5187echo "${ECHO_T}$GV" >&6
5188else
5189  echo "$as_me:$LINENO: result: no" >&5
5190echo "${ECHO_T}no" >&6
5191fi
5192
5193if test "$GV" != "echo gv" ; then
5194
5195cat >>confdefs.h <<\_ACEOF
5196#define HAVE_GV 1
5197_ACEOF
5198
5199
5200cat >>confdefs.h <<_ACEOF
5201#define LLVM_PATH_GV "$GV"
5202_ACEOF
5203
5204fi
5205
5206# Find a good install program.  We prefer a C program (faster),
5207# so one script is as good as another.  But avoid the broken or
5208# incompatible versions:
5209# SysV /etc/install, /usr/sbin/install
5210# SunOS /usr/etc/install
5211# IRIX /sbin/install
5212# AIX /bin/install
5213# AmigaOS /C/install, which installs bootblocks on floppy discs
5214# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5215# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5216# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5217# OS/2's system install, which has a completely different semantic
5218# ./install, which can be erroneously created by make from ./install.sh.
5219echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5220echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5221if test -z "$INSTALL"; then
5222if test "${ac_cv_path_install+set}" = set; then
5223  echo $ECHO_N "(cached) $ECHO_C" >&6
5224else
5225  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226for as_dir in $PATH
5227do
5228  IFS=$as_save_IFS
5229  test -z "$as_dir" && as_dir=.
5230  # Account for people who put trailing slashes in PATH elements.
5231case $as_dir/ in
5232  ./ | .// | /cC/* | \
5233  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5234  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5235  /usr/ucb/* ) ;;
5236  *)
5237    # OSF1 and SCO ODT 3.0 have their own names for install.
5238    # Don't use installbsd from OSF since it installs stuff as root
5239    # by default.
5240    for ac_prog in ginstall scoinst install; do
5241      for ac_exec_ext in '' $ac_executable_extensions; do
5242	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5243	  if test $ac_prog = install &&
5244	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5245	    # AIX install.  It has an incompatible calling convention.
5246	    :
5247	  elif test $ac_prog = install &&
5248	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5249	    # program-specific install script used by HP pwplus--don't use.
5250	    :
5251	  else
5252	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5253	    break 3
5254	  fi
5255	fi
5256      done
5257    done
5258    ;;
5259esac
5260done
5261
5262
5263fi
5264  if test "${ac_cv_path_install+set}" = set; then
5265    INSTALL=$ac_cv_path_install
5266  else
5267    # As a last resort, use the slow shell script.  We don't cache a
5268    # path for INSTALL within a source directory, because that will
5269    # break other packages using the cache if that directory is
5270    # removed, or if the path is relative.
5271    INSTALL=$ac_install_sh
5272  fi
5273fi
5274echo "$as_me:$LINENO: result: $INSTALL" >&5
5275echo "${ECHO_T}$INSTALL" >&6
5276
5277# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5278# It thinks the first close brace ends the variable substitution.
5279test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5280
5281test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5282
5283test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5284
5285
5286# Extract the first word of "bzip2", so it can be a program name with args.
5287set dummy bzip2; ac_word=$2
5288echo "$as_me:$LINENO: checking for $ac_word" >&5
5289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5290if test "${ac_cv_path_BZIP2+set}" = set; then
5291  echo $ECHO_N "(cached) $ECHO_C" >&6
5292else
5293  case $BZIP2 in
5294  [\\/]* | ?:[\\/]*)
5295  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5296  ;;
5297  *)
5298  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299for as_dir in $PATH
5300do
5301  IFS=$as_save_IFS
5302  test -z "$as_dir" && as_dir=.
5303  for ac_exec_ext in '' $ac_executable_extensions; do
5304  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5305    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5306    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5307    break 2
5308  fi
5309done
5310done
5311
5312  test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5313  ;;
5314esac
5315fi
5316BZIP2=$ac_cv_path_BZIP2
5317
5318if test -n "$BZIP2"; then
5319  echo "$as_me:$LINENO: result: $BZIP2" >&5
5320echo "${ECHO_T}$BZIP2" >&6
5321else
5322  echo "$as_me:$LINENO: result: no" >&5
5323echo "${ECHO_T}no" >&6
5324fi
5325
5326# Extract the first word of "dot", so it can be a program name with args.
5327set dummy dot; ac_word=$2
5328echo "$as_me:$LINENO: checking for $ac_word" >&5
5329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5330if test "${ac_cv_path_DOT+set}" = set; then
5331  echo $ECHO_N "(cached) $ECHO_C" >&6
5332else
5333  case $DOT in
5334  [\\/]* | ?:[\\/]*)
5335  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5336  ;;
5337  *)
5338  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339for as_dir in $PATH
5340do
5341  IFS=$as_save_IFS
5342  test -z "$as_dir" && as_dir=.
5343  for ac_exec_ext in '' $ac_executable_extensions; do
5344  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5345    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5346    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5347    break 2
5348  fi
5349done
5350done
5351
5352  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5353  ;;
5354esac
5355fi
5356DOT=$ac_cv_path_DOT
5357
5358if test -n "$DOT"; then
5359  echo "$as_me:$LINENO: result: $DOT" >&5
5360echo "${ECHO_T}$DOT" >&6
5361else
5362  echo "$as_me:$LINENO: result: no" >&5
5363echo "${ECHO_T}no" >&6
5364fi
5365
5366# Extract the first word of "doxygen", so it can be a program name with args.
5367set dummy doxygen; ac_word=$2
5368echo "$as_me:$LINENO: checking for $ac_word" >&5
5369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5370if test "${ac_cv_path_DOXYGEN+set}" = set; then
5371  echo $ECHO_N "(cached) $ECHO_C" >&6
5372else
5373  case $DOXYGEN in
5374  [\\/]* | ?:[\\/]*)
5375  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5376  ;;
5377  *)
5378  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379for as_dir in $PATH
5380do
5381  IFS=$as_save_IFS
5382  test -z "$as_dir" && as_dir=.
5383  for ac_exec_ext in '' $ac_executable_extensions; do
5384  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5385    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5386    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5387    break 2
5388  fi
5389done
5390done
5391
5392  test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5393  ;;
5394esac
5395fi
5396DOXYGEN=$ac_cv_path_DOXYGEN
5397
5398if test -n "$DOXYGEN"; then
5399  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5400echo "${ECHO_T}$DOXYGEN" >&6
5401else
5402  echo "$as_me:$LINENO: result: no" >&5
5403echo "${ECHO_T}no" >&6
5404fi
5405
5406# Extract the first word of "etags", so it can be a program name with args.
5407set dummy etags; ac_word=$2
5408echo "$as_me:$LINENO: checking for $ac_word" >&5
5409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5410if test "${ac_cv_path_ETAGS+set}" = set; then
5411  echo $ECHO_N "(cached) $ECHO_C" >&6
5412else
5413  case $ETAGS in
5414  [\\/]* | ?:[\\/]*)
5415  ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5416  ;;
5417  *)
5418  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419for as_dir in $PATH
5420do
5421  IFS=$as_save_IFS
5422  test -z "$as_dir" && as_dir=.
5423  for ac_exec_ext in '' $ac_executable_extensions; do
5424  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425    ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5426    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5427    break 2
5428  fi
5429done
5430done
5431
5432  test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5433  ;;
5434esac
5435fi
5436ETAGS=$ac_cv_path_ETAGS
5437
5438if test -n "$ETAGS"; then
5439  echo "$as_me:$LINENO: result: $ETAGS" >&5
5440echo "${ECHO_T}$ETAGS" >&6
5441else
5442  echo "$as_me:$LINENO: result: no" >&5
5443echo "${ECHO_T}no" >&6
5444fi
5445
5446# Extract the first word of "groff", so it can be a program name with args.
5447set dummy groff; ac_word=$2
5448echo "$as_me:$LINENO: checking for $ac_word" >&5
5449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5450if test "${ac_cv_path_GROFF+set}" = set; then
5451  echo $ECHO_N "(cached) $ECHO_C" >&6
5452else
5453  case $GROFF in
5454  [\\/]* | ?:[\\/]*)
5455  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5456  ;;
5457  *)
5458  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459for as_dir in $PATH
5460do
5461  IFS=$as_save_IFS
5462  test -z "$as_dir" && as_dir=.
5463  for ac_exec_ext in '' $ac_executable_extensions; do
5464  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5465    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5466    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5467    break 2
5468  fi
5469done
5470done
5471
5472  test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5473  ;;
5474esac
5475fi
5476GROFF=$ac_cv_path_GROFF
5477
5478if test -n "$GROFF"; then
5479  echo "$as_me:$LINENO: result: $GROFF" >&5
5480echo "${ECHO_T}$GROFF" >&6
5481else
5482  echo "$as_me:$LINENO: result: no" >&5
5483echo "${ECHO_T}no" >&6
5484fi
5485
5486# Extract the first word of "gzip", so it can be a program name with args.
5487set dummy gzip; ac_word=$2
5488echo "$as_me:$LINENO: checking for $ac_word" >&5
5489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5490if test "${ac_cv_path_GZIP+set}" = set; then
5491  echo $ECHO_N "(cached) $ECHO_C" >&6
5492else
5493  case $GZIP in
5494  [\\/]* | ?:[\\/]*)
5495  ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5496  ;;
5497  *)
5498  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499for as_dir in $PATH
5500do
5501  IFS=$as_save_IFS
5502  test -z "$as_dir" && as_dir=.
5503  for ac_exec_ext in '' $ac_executable_extensions; do
5504  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5505    ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5506    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5507    break 2
5508  fi
5509done
5510done
5511
5512  test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5513  ;;
5514esac
5515fi
5516GZIP=$ac_cv_path_GZIP
5517
5518if test -n "$GZIP"; then
5519  echo "$as_me:$LINENO: result: $GZIP" >&5
5520echo "${ECHO_T}$GZIP" >&6
5521else
5522  echo "$as_me:$LINENO: result: no" >&5
5523echo "${ECHO_T}no" >&6
5524fi
5525
5526# Extract the first word of "pod2html", so it can be a program name with args.
5527set dummy pod2html; ac_word=$2
5528echo "$as_me:$LINENO: checking for $ac_word" >&5
5529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5530if test "${ac_cv_path_POD2HTML+set}" = set; then
5531  echo $ECHO_N "(cached) $ECHO_C" >&6
5532else
5533  case $POD2HTML in
5534  [\\/]* | ?:[\\/]*)
5535  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5536  ;;
5537  *)
5538  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539for as_dir in $PATH
5540do
5541  IFS=$as_save_IFS
5542  test -z "$as_dir" && as_dir=.
5543  for ac_exec_ext in '' $ac_executable_extensions; do
5544  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5545    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5546    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5547    break 2
5548  fi
5549done
5550done
5551
5552  test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5553  ;;
5554esac
5555fi
5556POD2HTML=$ac_cv_path_POD2HTML
5557
5558if test -n "$POD2HTML"; then
5559  echo "$as_me:$LINENO: result: $POD2HTML" >&5
5560echo "${ECHO_T}$POD2HTML" >&6
5561else
5562  echo "$as_me:$LINENO: result: no" >&5
5563echo "${ECHO_T}no" >&6
5564fi
5565
5566# Extract the first word of "pod2man", so it can be a program name with args.
5567set dummy pod2man; ac_word=$2
5568echo "$as_me:$LINENO: checking for $ac_word" >&5
5569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5570if test "${ac_cv_path_POD2MAN+set}" = set; then
5571  echo $ECHO_N "(cached) $ECHO_C" >&6
5572else
5573  case $POD2MAN in
5574  [\\/]* | ?:[\\/]*)
5575  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5576  ;;
5577  *)
5578  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579for as_dir in $PATH
5580do
5581  IFS=$as_save_IFS
5582  test -z "$as_dir" && as_dir=.
5583  for ac_exec_ext in '' $ac_executable_extensions; do
5584  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5585    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5586    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5587    break 2
5588  fi
5589done
5590done
5591
5592  test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5593  ;;
5594esac
5595fi
5596POD2MAN=$ac_cv_path_POD2MAN
5597
5598if test -n "$POD2MAN"; then
5599  echo "$as_me:$LINENO: result: $POD2MAN" >&5
5600echo "${ECHO_T}$POD2MAN" >&6
5601else
5602  echo "$as_me:$LINENO: result: no" >&5
5603echo "${ECHO_T}no" >&6
5604fi
5605
5606# Extract the first word of "runtest", so it can be a program name with args.
5607set dummy runtest; ac_word=$2
5608echo "$as_me:$LINENO: checking for $ac_word" >&5
5609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5610if test "${ac_cv_path_RUNTEST+set}" = set; then
5611  echo $ECHO_N "(cached) $ECHO_C" >&6
5612else
5613  case $RUNTEST in
5614  [\\/]* | ?:[\\/]*)
5615  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5616  ;;
5617  *)
5618  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619for as_dir in $PATH
5620do
5621  IFS=$as_save_IFS
5622  test -z "$as_dir" && as_dir=.
5623  for ac_exec_ext in '' $ac_executable_extensions; do
5624  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5625    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5626    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5627    break 2
5628  fi
5629done
5630done
5631
5632  test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5633  ;;
5634esac
5635fi
5636RUNTEST=$ac_cv_path_RUNTEST
5637
5638if test -n "$RUNTEST"; then
5639  echo "$as_me:$LINENO: result: $RUNTEST" >&5
5640echo "${ECHO_T}$RUNTEST" >&6
5641else
5642  echo "$as_me:$LINENO: result: no" >&5
5643echo "${ECHO_T}no" >&6
5644fi
5645
5646
5647no_itcl=true
5648echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5649echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5650
5651# Check whether --with-tclinclude or --without-tclinclude was given.
5652if test "${with_tclinclude+set}" = set; then
5653  withval="$with_tclinclude"
5654  with_tclinclude=${withval}
5655else
5656  with_tclinclude=''
5657fi;
5658if test "${ac_cv_path_tclsh+set}" = set; then
5659  echo $ECHO_N "(cached) $ECHO_C" >&6
5660else
5661
5662if test x"${with_tclinclude}" != x ; then
5663  if test -f ${with_tclinclude}/tclsh ; then
5664    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5665  elif test -f ${with_tclinclude}/src/tclsh ; then
5666    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5667  else
5668    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5669echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5670   { (exit 1); exit 1; }; }
5671  fi
5672fi
5673
5674if test x"${ac_cv_path_tclsh}" = x ; then
5675  echo "$as_me:$LINENO: result: none" >&5
5676echo "${ECHO_T}none" >&6
5677  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
5678do
5679  # Extract the first word of "$ac_prog", so it can be a program name with args.
5680set dummy $ac_prog; ac_word=$2
5681echo "$as_me:$LINENO: checking for $ac_word" >&5
5682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5683if test "${ac_cv_path_TCLSH+set}" = set; then
5684  echo $ECHO_N "(cached) $ECHO_C" >&6
5685else
5686  case $TCLSH in
5687  [\\/]* | ?:[\\/]*)
5688  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5689  ;;
5690  *)
5691  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692for as_dir in $PATH
5693do
5694  IFS=$as_save_IFS
5695  test -z "$as_dir" && as_dir=.
5696  for ac_exec_ext in '' $ac_executable_extensions; do
5697  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5698    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5699    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5700    break 2
5701  fi
5702done
5703done
5704
5705  ;;
5706esac
5707fi
5708TCLSH=$ac_cv_path_TCLSH
5709
5710if test -n "$TCLSH"; then
5711  echo "$as_me:$LINENO: result: $TCLSH" >&5
5712echo "${ECHO_T}$TCLSH" >&6
5713else
5714  echo "$as_me:$LINENO: result: no" >&5
5715echo "${ECHO_T}no" >&6
5716fi
5717
5718  test -n "$TCLSH" && break
5719done
5720
5721  if test x"${TCLSH}" = x ; then
5722    ac_cv_path_tclsh='';
5723  else
5724    ac_cv_path_tclsh="${TCLSH}";
5725  fi
5726else
5727  echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5728echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5729  TCLSH="${ac_cv_path_tclsh}"
5730
5731fi
5732
5733fi
5734
5735# Extract the first word of "zip", so it can be a program name with args.
5736set dummy zip; ac_word=$2
5737echo "$as_me:$LINENO: checking for $ac_word" >&5
5738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5739if test "${ac_cv_path_ZIP+set}" = set; then
5740  echo $ECHO_N "(cached) $ECHO_C" >&6
5741else
5742  case $ZIP in
5743  [\\/]* | ?:[\\/]*)
5744  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5745  ;;
5746  *)
5747  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748for as_dir in $PATH
5749do
5750  IFS=$as_save_IFS
5751  test -z "$as_dir" && as_dir=.
5752  for ac_exec_ext in '' $ac_executable_extensions; do
5753  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5754    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5755    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5756    break 2
5757  fi
5758done
5759done
5760
5761  test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5762  ;;
5763esac
5764fi
5765ZIP=$ac_cv_path_ZIP
5766
5767if test -n "$ZIP"; then
5768  echo "$as_me:$LINENO: result: $ZIP" >&5
5769echo "${ECHO_T}$ZIP" >&6
5770else
5771  echo "$as_me:$LINENO: result: no" >&5
5772echo "${ECHO_T}no" >&6
5773fi
5774
5775
5776echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5777echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5778if test "${llvm_cv_link_use_r+set}" = set; then
5779  echo $ECHO_N "(cached) $ECHO_C" >&6
5780else
5781   ac_ext=c
5782ac_cpp='$CPP $CPPFLAGS'
5783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785ac_compiler_gnu=$ac_cv_c_compiler_gnu
5786
5787  oldcflags="$CFLAGS"
5788  CFLAGS="$CFLAGS -Wl,-R."
5789  cat >conftest.$ac_ext <<_ACEOF
5790/* confdefs.h.  */
5791_ACEOF
5792cat confdefs.h >>conftest.$ac_ext
5793cat >>conftest.$ac_ext <<_ACEOF
5794/* end confdefs.h.  */
5795
5796int
5797main ()
5798{
5799int main() { return 0; }
5800  ;
5801  return 0;
5802}
5803_ACEOF
5804rm -f conftest.$ac_objext conftest$ac_exeext
5805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5806  (eval $ac_link) 2>conftest.er1
5807  ac_status=$?
5808  grep -v '^ *+' conftest.er1 >conftest.err
5809  rm -f conftest.er1
5810  cat conftest.err >&5
5811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812  (exit $ac_status); } &&
5813	 { ac_try='test -z "$ac_c_werror_flag"
5814			 || test ! -s conftest.err'
5815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816  (eval $ac_try) 2>&5
5817  ac_status=$?
5818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819  (exit $ac_status); }; } &&
5820	 { ac_try='test -s conftest$ac_exeext'
5821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822  (eval $ac_try) 2>&5
5823  ac_status=$?
5824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825  (exit $ac_status); }; }; then
5826  llvm_cv_link_use_r=yes
5827else
5828  echo "$as_me: failed program was:" >&5
5829sed 's/^/| /' conftest.$ac_ext >&5
5830
5831llvm_cv_link_use_r=no
5832fi
5833rm -f conftest.err conftest.$ac_objext \
5834      conftest$ac_exeext conftest.$ac_ext
5835  CFLAGS="$oldcflags"
5836  ac_ext=c
5837ac_cpp='$CPP $CPPFLAGS'
5838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5840ac_compiler_gnu=$ac_cv_c_compiler_gnu
5841
5842
5843fi
5844echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5845echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5846if test "$llvm_cv_link_use_r" = yes ; then
5847
5848cat >>confdefs.h <<\_ACEOF
5849#define HAVE_LINK_R 1
5850_ACEOF
5851
5852  fi
5853
5854
5855
5856
5857echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5858echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5859if test "${ac_cv_c_const+set}" = set; then
5860  echo $ECHO_N "(cached) $ECHO_C" >&6
5861else
5862  cat >conftest.$ac_ext <<_ACEOF
5863/* confdefs.h.  */
5864_ACEOF
5865cat confdefs.h >>conftest.$ac_ext
5866cat >>conftest.$ac_ext <<_ACEOF
5867/* end confdefs.h.  */
5868
5869int
5870main ()
5871{
5872/* FIXME: Include the comments suggested by Paul. */
5873#ifndef __cplusplus
5874  /* Ultrix mips cc rejects this.  */
5875  typedef int charset[2];
5876  const charset x;
5877  /* SunOS 4.1.1 cc rejects this.  */
5878  char const *const *ccp;
5879  char **p;
5880  /* NEC SVR4.0.2 mips cc rejects this.  */
5881  struct point {int x, y;};
5882  static struct point const zero = {0,0};
5883  /* AIX XL C 1.02.0.0 rejects this.
5884     It does not let you subtract one const X* pointer from another in
5885     an arm of an if-expression whose if-part is not a constant
5886     expression */
5887  const char *g = "string";
5888  ccp = &g + (g ? g-g : 0);
5889  /* HPUX 7.0 cc rejects these. */
5890  ++ccp;
5891  p = (char**) ccp;
5892  ccp = (char const *const *) p;
5893  { /* SCO 3.2v4 cc rejects this.  */
5894    char *t;
5895    char const *s = 0 ? (char *) 0 : (char const *) 0;
5896
5897    *t++ = 0;
5898  }
5899  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5900    int x[] = {25, 17};
5901    const int *foo = &x[0];
5902    ++foo;
5903  }
5904  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5905    typedef const int *iptr;
5906    iptr p = 0;
5907    ++p;
5908  }
5909  { /* AIX XL C 1.02.0.0 rejects this saying
5910       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5911    struct s { int j; const int *ap[3]; };
5912    struct s *b; b->j = 5;
5913  }
5914  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5915    const int foo = 10;
5916  }
5917#endif
5918
5919  ;
5920  return 0;
5921}
5922_ACEOF
5923rm -f conftest.$ac_objext
5924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5925  (eval $ac_compile) 2>conftest.er1
5926  ac_status=$?
5927  grep -v '^ *+' conftest.er1 >conftest.err
5928  rm -f conftest.er1
5929  cat conftest.err >&5
5930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931  (exit $ac_status); } &&
5932	 { ac_try='test -z "$ac_c_werror_flag"
5933			 || test ! -s conftest.err'
5934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935  (eval $ac_try) 2>&5
5936  ac_status=$?
5937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938  (exit $ac_status); }; } &&
5939	 { ac_try='test -s conftest.$ac_objext'
5940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941  (eval $ac_try) 2>&5
5942  ac_status=$?
5943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944  (exit $ac_status); }; }; then
5945  ac_cv_c_const=yes
5946else
5947  echo "$as_me: failed program was:" >&5
5948sed 's/^/| /' conftest.$ac_ext >&5
5949
5950ac_cv_c_const=no
5951fi
5952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5953fi
5954echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5955echo "${ECHO_T}$ac_cv_c_const" >&6
5956if test $ac_cv_c_const = no; then
5957
5958cat >>confdefs.h <<\_ACEOF
5959#define const
5960_ACEOF
5961
5962fi
5963
5964
5965echo "$as_me:$LINENO: checking for egrep" >&5
5966echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5967if test "${ac_cv_prog_egrep+set}" = set; then
5968  echo $ECHO_N "(cached) $ECHO_C" >&6
5969else
5970  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5971    then ac_cv_prog_egrep='grep -E'
5972    else ac_cv_prog_egrep='egrep'
5973    fi
5974fi
5975echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5976echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5977 EGREP=$ac_cv_prog_egrep
5978
5979
5980echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5981echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5982if test "${ac_cv_header_stdc+set}" = set; then
5983  echo $ECHO_N "(cached) $ECHO_C" >&6
5984else
5985  cat >conftest.$ac_ext <<_ACEOF
5986/* confdefs.h.  */
5987_ACEOF
5988cat confdefs.h >>conftest.$ac_ext
5989cat >>conftest.$ac_ext <<_ACEOF
5990/* end confdefs.h.  */
5991#include <stdlib.h>
5992#include <stdarg.h>
5993#include <string.h>
5994#include <float.h>
5995
5996int
5997main ()
5998{
5999
6000  ;
6001  return 0;
6002}
6003_ACEOF
6004rm -f conftest.$ac_objext
6005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6006  (eval $ac_compile) 2>conftest.er1
6007  ac_status=$?
6008  grep -v '^ *+' conftest.er1 >conftest.err
6009  rm -f conftest.er1
6010  cat conftest.err >&5
6011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012  (exit $ac_status); } &&
6013	 { ac_try='test -z "$ac_c_werror_flag"
6014			 || test ! -s conftest.err'
6015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016  (eval $ac_try) 2>&5
6017  ac_status=$?
6018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019  (exit $ac_status); }; } &&
6020	 { ac_try='test -s conftest.$ac_objext'
6021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022  (eval $ac_try) 2>&5
6023  ac_status=$?
6024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025  (exit $ac_status); }; }; then
6026  ac_cv_header_stdc=yes
6027else
6028  echo "$as_me: failed program was:" >&5
6029sed 's/^/| /' conftest.$ac_ext >&5
6030
6031ac_cv_header_stdc=no
6032fi
6033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6034
6035if test $ac_cv_header_stdc = yes; then
6036  # SunOS 4.x string.h does not declare mem*, 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 <string.h>
6044
6045_ACEOF
6046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6047  $EGREP "memchr" >/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  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6058  cat >conftest.$ac_ext <<_ACEOF
6059/* confdefs.h.  */
6060_ACEOF
6061cat confdefs.h >>conftest.$ac_ext
6062cat >>conftest.$ac_ext <<_ACEOF
6063/* end confdefs.h.  */
6064#include <stdlib.h>
6065
6066_ACEOF
6067if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6068  $EGREP "free" >/dev/null 2>&1; then
6069  :
6070else
6071  ac_cv_header_stdc=no
6072fi
6073rm -f conftest*
6074
6075fi
6076
6077if test $ac_cv_header_stdc = yes; then
6078  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6079  if test "$cross_compiling" = yes; then
6080  :
6081else
6082  cat >conftest.$ac_ext <<_ACEOF
6083/* confdefs.h.  */
6084_ACEOF
6085cat confdefs.h >>conftest.$ac_ext
6086cat >>conftest.$ac_ext <<_ACEOF
6087/* end confdefs.h.  */
6088#include <ctype.h>
6089#if ((' ' & 0x0FF) == 0x020)
6090# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6091# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6092#else
6093# define ISLOWER(c) \
6094		   (('a' <= (c) && (c) <= 'i') \
6095		     || ('j' <= (c) && (c) <= 'r') \
6096		     || ('s' <= (c) && (c) <= 'z'))
6097# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6098#endif
6099
6100#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6101int
6102main ()
6103{
6104  int i;
6105  for (i = 0; i < 256; i++)
6106    if (XOR (islower (i), ISLOWER (i))
6107	|| toupper (i) != TOUPPER (i))
6108      exit(2);
6109  exit (0);
6110}
6111_ACEOF
6112rm -f conftest$ac_exeext
6113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6114  (eval $ac_link) 2>&5
6115  ac_status=$?
6116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119  (eval $ac_try) 2>&5
6120  ac_status=$?
6121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122  (exit $ac_status); }; }; then
6123  :
6124else
6125  echo "$as_me: program exited with status $ac_status" >&5
6126echo "$as_me: failed program was:" >&5
6127sed 's/^/| /' conftest.$ac_ext >&5
6128
6129( exit $ac_status )
6130ac_cv_header_stdc=no
6131fi
6132rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6133fi
6134fi
6135fi
6136echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6137echo "${ECHO_T}$ac_cv_header_stdc" >&6
6138if test $ac_cv_header_stdc = yes; then
6139
6140cat >>confdefs.h <<\_ACEOF
6141#define STDC_HEADERS 1
6142_ACEOF
6143
6144fi
6145
6146
6147
6148
6149
6150
6151ac_header_dirent=no
6152for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6153  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6154echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6155echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6156if eval "test \"\${$as_ac_Header+set}\" = set"; then
6157  echo $ECHO_N "(cached) $ECHO_C" >&6
6158else
6159  cat >conftest.$ac_ext <<_ACEOF
6160/* confdefs.h.  */
6161_ACEOF
6162cat confdefs.h >>conftest.$ac_ext
6163cat >>conftest.$ac_ext <<_ACEOF
6164/* end confdefs.h.  */
6165#include <sys/types.h>
6166#include <$ac_hdr>
6167
6168int
6169main ()
6170{
6171if ((DIR *) 0)
6172return 0;
6173  ;
6174  return 0;
6175}
6176_ACEOF
6177rm -f conftest.$ac_objext
6178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6179  (eval $ac_compile) 2>conftest.er1
6180  ac_status=$?
6181  grep -v '^ *+' conftest.er1 >conftest.err
6182  rm -f conftest.er1
6183  cat conftest.err >&5
6184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185  (exit $ac_status); } &&
6186	 { ac_try='test -z "$ac_c_werror_flag"
6187			 || test ! -s conftest.err'
6188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189  (eval $ac_try) 2>&5
6190  ac_status=$?
6191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192  (exit $ac_status); }; } &&
6193	 { ac_try='test -s conftest.$ac_objext'
6194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195  (eval $ac_try) 2>&5
6196  ac_status=$?
6197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198  (exit $ac_status); }; }; then
6199  eval "$as_ac_Header=yes"
6200else
6201  echo "$as_me: failed program was:" >&5
6202sed 's/^/| /' conftest.$ac_ext >&5
6203
6204eval "$as_ac_Header=no"
6205fi
6206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6207fi
6208echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6209echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6210if test `eval echo '${'$as_ac_Header'}'` = yes; then
6211  cat >>confdefs.h <<_ACEOF
6212#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6213_ACEOF
6214
6215ac_header_dirent=$ac_hdr; break
6216fi
6217
6218done
6219# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6220if test $ac_header_dirent = dirent.h; then
6221  echo "$as_me:$LINENO: checking for library containing opendir" >&5
6222echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6223if test "${ac_cv_search_opendir+set}" = set; then
6224  echo $ECHO_N "(cached) $ECHO_C" >&6
6225else
6226  ac_func_search_save_LIBS=$LIBS
6227ac_cv_search_opendir=no
6228cat >conftest.$ac_ext <<_ACEOF
6229/* confdefs.h.  */
6230_ACEOF
6231cat confdefs.h >>conftest.$ac_ext
6232cat >>conftest.$ac_ext <<_ACEOF
6233/* end confdefs.h.  */
6234
6235/* Override any gcc2 internal prototype to avoid an error.  */
6236#ifdef __cplusplus
6237extern "C"
6238#endif
6239/* We use char because int might match the return type of a gcc2
6240   builtin and then its argument prototype would still apply.  */
6241char opendir ();
6242int
6243main ()
6244{
6245opendir ();
6246  ;
6247  return 0;
6248}
6249_ACEOF
6250rm -f conftest.$ac_objext conftest$ac_exeext
6251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6252  (eval $ac_link) 2>conftest.er1
6253  ac_status=$?
6254  grep -v '^ *+' conftest.er1 >conftest.err
6255  rm -f conftest.er1
6256  cat conftest.err >&5
6257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258  (exit $ac_status); } &&
6259	 { ac_try='test -z "$ac_c_werror_flag"
6260			 || test ! -s conftest.err'
6261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262  (eval $ac_try) 2>&5
6263  ac_status=$?
6264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265  (exit $ac_status); }; } &&
6266	 { ac_try='test -s conftest$ac_exeext'
6267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268  (eval $ac_try) 2>&5
6269  ac_status=$?
6270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271  (exit $ac_status); }; }; then
6272  ac_cv_search_opendir="none required"
6273else
6274  echo "$as_me: failed program was:" >&5
6275sed 's/^/| /' conftest.$ac_ext >&5
6276
6277fi
6278rm -f conftest.err conftest.$ac_objext \
6279      conftest$ac_exeext conftest.$ac_ext
6280if test "$ac_cv_search_opendir" = no; then
6281  for ac_lib in dir; do
6282    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6283    cat >conftest.$ac_ext <<_ACEOF
6284/* confdefs.h.  */
6285_ACEOF
6286cat confdefs.h >>conftest.$ac_ext
6287cat >>conftest.$ac_ext <<_ACEOF
6288/* end confdefs.h.  */
6289
6290/* Override any gcc2 internal prototype to avoid an error.  */
6291#ifdef __cplusplus
6292extern "C"
6293#endif
6294/* We use char because int might match the return type of a gcc2
6295   builtin and then its argument prototype would still apply.  */
6296char opendir ();
6297int
6298main ()
6299{
6300opendir ();
6301  ;
6302  return 0;
6303}
6304_ACEOF
6305rm -f conftest.$ac_objext conftest$ac_exeext
6306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6307  (eval $ac_link) 2>conftest.er1
6308  ac_status=$?
6309  grep -v '^ *+' conftest.er1 >conftest.err
6310  rm -f conftest.er1
6311  cat conftest.err >&5
6312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313  (exit $ac_status); } &&
6314	 { ac_try='test -z "$ac_c_werror_flag"
6315			 || test ! -s conftest.err'
6316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317  (eval $ac_try) 2>&5
6318  ac_status=$?
6319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320  (exit $ac_status); }; } &&
6321	 { ac_try='test -s conftest$ac_exeext'
6322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323  (eval $ac_try) 2>&5
6324  ac_status=$?
6325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326  (exit $ac_status); }; }; then
6327  ac_cv_search_opendir="-l$ac_lib"
6328break
6329else
6330  echo "$as_me: failed program was:" >&5
6331sed 's/^/| /' conftest.$ac_ext >&5
6332
6333fi
6334rm -f conftest.err conftest.$ac_objext \
6335      conftest$ac_exeext conftest.$ac_ext
6336  done
6337fi
6338LIBS=$ac_func_search_save_LIBS
6339fi
6340echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6341echo "${ECHO_T}$ac_cv_search_opendir" >&6
6342if test "$ac_cv_search_opendir" != no; then
6343  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6344
6345fi
6346
6347else
6348  echo "$as_me:$LINENO: checking for library containing opendir" >&5
6349echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6350if test "${ac_cv_search_opendir+set}" = set; then
6351  echo $ECHO_N "(cached) $ECHO_C" >&6
6352else
6353  ac_func_search_save_LIBS=$LIBS
6354ac_cv_search_opendir=no
6355cat >conftest.$ac_ext <<_ACEOF
6356/* confdefs.h.  */
6357_ACEOF
6358cat confdefs.h >>conftest.$ac_ext
6359cat >>conftest.$ac_ext <<_ACEOF
6360/* end confdefs.h.  */
6361
6362/* Override any gcc2 internal prototype to avoid an error.  */
6363#ifdef __cplusplus
6364extern "C"
6365#endif
6366/* We use char because int might match the return type of a gcc2
6367   builtin and then its argument prototype would still apply.  */
6368char opendir ();
6369int
6370main ()
6371{
6372opendir ();
6373  ;
6374  return 0;
6375}
6376_ACEOF
6377rm -f conftest.$ac_objext conftest$ac_exeext
6378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6379  (eval $ac_link) 2>conftest.er1
6380  ac_status=$?
6381  grep -v '^ *+' conftest.er1 >conftest.err
6382  rm -f conftest.er1
6383  cat conftest.err >&5
6384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385  (exit $ac_status); } &&
6386	 { ac_try='test -z "$ac_c_werror_flag"
6387			 || test ! -s conftest.err'
6388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389  (eval $ac_try) 2>&5
6390  ac_status=$?
6391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392  (exit $ac_status); }; } &&
6393	 { ac_try='test -s conftest$ac_exeext'
6394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395  (eval $ac_try) 2>&5
6396  ac_status=$?
6397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398  (exit $ac_status); }; }; then
6399  ac_cv_search_opendir="none required"
6400else
6401  echo "$as_me: failed program was:" >&5
6402sed 's/^/| /' conftest.$ac_ext >&5
6403
6404fi
6405rm -f conftest.err conftest.$ac_objext \
6406      conftest$ac_exeext conftest.$ac_ext
6407if test "$ac_cv_search_opendir" = no; then
6408  for ac_lib in x; do
6409    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6410    cat >conftest.$ac_ext <<_ACEOF
6411/* confdefs.h.  */
6412_ACEOF
6413cat confdefs.h >>conftest.$ac_ext
6414cat >>conftest.$ac_ext <<_ACEOF
6415/* end confdefs.h.  */
6416
6417/* Override any gcc2 internal prototype to avoid an error.  */
6418#ifdef __cplusplus
6419extern "C"
6420#endif
6421/* We use char because int might match the return type of a gcc2
6422   builtin and then its argument prototype would still apply.  */
6423char opendir ();
6424int
6425main ()
6426{
6427opendir ();
6428  ;
6429  return 0;
6430}
6431_ACEOF
6432rm -f conftest.$ac_objext conftest$ac_exeext
6433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6434  (eval $ac_link) 2>conftest.er1
6435  ac_status=$?
6436  grep -v '^ *+' conftest.er1 >conftest.err
6437  rm -f conftest.er1
6438  cat conftest.err >&5
6439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440  (exit $ac_status); } &&
6441	 { ac_try='test -z "$ac_c_werror_flag"
6442			 || test ! -s conftest.err'
6443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444  (eval $ac_try) 2>&5
6445  ac_status=$?
6446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447  (exit $ac_status); }; } &&
6448	 { ac_try='test -s conftest$ac_exeext'
6449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450  (eval $ac_try) 2>&5
6451  ac_status=$?
6452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453  (exit $ac_status); }; }; then
6454  ac_cv_search_opendir="-l$ac_lib"
6455break
6456else
6457  echo "$as_me: failed program was:" >&5
6458sed 's/^/| /' conftest.$ac_ext >&5
6459
6460fi
6461rm -f conftest.err conftest.$ac_objext \
6462      conftest$ac_exeext conftest.$ac_ext
6463  done
6464fi
6465LIBS=$ac_func_search_save_LIBS
6466fi
6467echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6468echo "${ECHO_T}$ac_cv_search_opendir" >&6
6469if test "$ac_cv_search_opendir" != no; then
6470  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6471
6472fi
6473
6474fi
6475
6476# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6487		  inttypes.h stdint.h unistd.h
6488do
6489as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6490echo "$as_me:$LINENO: checking for $ac_header" >&5
6491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6492if eval "test \"\${$as_ac_Header+set}\" = set"; then
6493  echo $ECHO_N "(cached) $ECHO_C" >&6
6494else
6495  cat >conftest.$ac_ext <<_ACEOF
6496/* confdefs.h.  */
6497_ACEOF
6498cat confdefs.h >>conftest.$ac_ext
6499cat >>conftest.$ac_ext <<_ACEOF
6500/* end confdefs.h.  */
6501$ac_includes_default
6502
6503#include <$ac_header>
6504_ACEOF
6505rm -f conftest.$ac_objext
6506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6507  (eval $ac_compile) 2>conftest.er1
6508  ac_status=$?
6509  grep -v '^ *+' conftest.er1 >conftest.err
6510  rm -f conftest.er1
6511  cat conftest.err >&5
6512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513  (exit $ac_status); } &&
6514	 { ac_try='test -z "$ac_c_werror_flag"
6515			 || test ! -s conftest.err'
6516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517  (eval $ac_try) 2>&5
6518  ac_status=$?
6519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520  (exit $ac_status); }; } &&
6521	 { ac_try='test -s conftest.$ac_objext'
6522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523  (eval $ac_try) 2>&5
6524  ac_status=$?
6525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526  (exit $ac_status); }; }; then
6527  eval "$as_ac_Header=yes"
6528else
6529  echo "$as_me: failed program was:" >&5
6530sed 's/^/| /' conftest.$ac_ext >&5
6531
6532eval "$as_ac_Header=no"
6533fi
6534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6535fi
6536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6537echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6538if test `eval echo '${'$as_ac_Header'}'` = yes; then
6539  cat >>confdefs.h <<_ACEOF
6540#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6541_ACEOF
6542
6543fi
6544
6545done
6546
6547
6548
6549for ac_header in dlfcn.h
6550do
6551as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6552if eval "test \"\${$as_ac_Header+set}\" = set"; then
6553  echo "$as_me:$LINENO: checking for $ac_header" >&5
6554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6555if eval "test \"\${$as_ac_Header+set}\" = set"; then
6556  echo $ECHO_N "(cached) $ECHO_C" >&6
6557fi
6558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6559echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6560else
6561  # Is the header compilable?
6562echo "$as_me:$LINENO: checking $ac_header usability" >&5
6563echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6564cat >conftest.$ac_ext <<_ACEOF
6565/* confdefs.h.  */
6566_ACEOF
6567cat confdefs.h >>conftest.$ac_ext
6568cat >>conftest.$ac_ext <<_ACEOF
6569/* end confdefs.h.  */
6570$ac_includes_default
6571#include <$ac_header>
6572_ACEOF
6573rm -f conftest.$ac_objext
6574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6575  (eval $ac_compile) 2>conftest.er1
6576  ac_status=$?
6577  grep -v '^ *+' conftest.er1 >conftest.err
6578  rm -f conftest.er1
6579  cat conftest.err >&5
6580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581  (exit $ac_status); } &&
6582	 { ac_try='test -z "$ac_c_werror_flag"
6583			 || test ! -s conftest.err'
6584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585  (eval $ac_try) 2>&5
6586  ac_status=$?
6587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588  (exit $ac_status); }; } &&
6589	 { ac_try='test -s conftest.$ac_objext'
6590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591  (eval $ac_try) 2>&5
6592  ac_status=$?
6593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594  (exit $ac_status); }; }; then
6595  ac_header_compiler=yes
6596else
6597  echo "$as_me: failed program was:" >&5
6598sed 's/^/| /' conftest.$ac_ext >&5
6599
6600ac_header_compiler=no
6601fi
6602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6603echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6604echo "${ECHO_T}$ac_header_compiler" >&6
6605
6606# Is the header present?
6607echo "$as_me:$LINENO: checking $ac_header presence" >&5
6608echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6609cat >conftest.$ac_ext <<_ACEOF
6610/* confdefs.h.  */
6611_ACEOF
6612cat confdefs.h >>conftest.$ac_ext
6613cat >>conftest.$ac_ext <<_ACEOF
6614/* end confdefs.h.  */
6615#include <$ac_header>
6616_ACEOF
6617if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6618  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6619  ac_status=$?
6620  grep -v '^ *+' conftest.er1 >conftest.err
6621  rm -f conftest.er1
6622  cat conftest.err >&5
6623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624  (exit $ac_status); } >/dev/null; then
6625  if test -s conftest.err; then
6626    ac_cpp_err=$ac_c_preproc_warn_flag
6627    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6628  else
6629    ac_cpp_err=
6630  fi
6631else
6632  ac_cpp_err=yes
6633fi
6634if test -z "$ac_cpp_err"; then
6635  ac_header_preproc=yes
6636else
6637  echo "$as_me: failed program was:" >&5
6638sed 's/^/| /' conftest.$ac_ext >&5
6639
6640  ac_header_preproc=no
6641fi
6642rm -f conftest.err conftest.$ac_ext
6643echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6644echo "${ECHO_T}$ac_header_preproc" >&6
6645
6646# So?  What about this header?
6647case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6648  yes:no: )
6649    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6650echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6651    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6652echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6653    ac_header_preproc=yes
6654    ;;
6655  no:yes:* )
6656    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6657echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6658    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6659echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6660    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6661echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6662    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6663echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6664    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6665echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6666    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6667echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6668    (
6669      cat <<\_ASBOX
6670## ----------------------------------- ##
6671## Report this to llvmbugs@cs.uiuc.edu ##
6672## ----------------------------------- ##
6673_ASBOX
6674    ) |
6675      sed "s/^/$as_me: WARNING:     /" >&2
6676    ;;
6677esac
6678echo "$as_me:$LINENO: checking for $ac_header" >&5
6679echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6680if eval "test \"\${$as_ac_Header+set}\" = set"; then
6681  echo $ECHO_N "(cached) $ECHO_C" >&6
6682else
6683  eval "$as_ac_Header=\$ac_header_preproc"
6684fi
6685echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6686echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6687
6688fi
6689if test `eval echo '${'$as_ac_Header'}'` = yes; then
6690  cat >>confdefs.h <<_ACEOF
6691#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6692_ACEOF
6693
6694fi
6695
6696done
6697
6698# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6699if test "${enable_ltdl_install+set}" = set; then
6700  enableval="$enable_ltdl_install"
6701
6702fi;
6703
6704
6705
6706if test x"${enable_ltdl_install-no}" != xno; then
6707  INSTALL_LTDL_TRUE=
6708  INSTALL_LTDL_FALSE='#'
6709else
6710  INSTALL_LTDL_TRUE='#'
6711  INSTALL_LTDL_FALSE=
6712fi
6713
6714
6715
6716if test x"${enable_ltdl_convenience-no}" != xno; then
6717  CONVENIENCE_LTDL_TRUE=
6718  CONVENIENCE_LTDL_FALSE='#'
6719else
6720  CONVENIENCE_LTDL_TRUE='#'
6721  CONVENIENCE_LTDL_FALSE=
6722fi
6723
6724
6725echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6726echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6727library_names_spec=
6728libname_spec='lib$name'
6729soname_spec=
6730shrext_cmds=".so"
6731postinstall_cmds=
6732postuninstall_cmds=
6733finish_cmds=
6734finish_eval=
6735shlibpath_var=
6736shlibpath_overrides_runpath=unknown
6737version_type=none
6738dynamic_linker="$host_os ld.so"
6739sys_lib_dlsearch_path_spec="/lib /usr/lib"
6740if test "$GCC" = yes; then
6741  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6742  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6743    # if the path contains ";" then we assume it to be the separator
6744    # otherwise default to the standard path separator (i.e. ":") - it is
6745    # assumed that no part of a normal pathname contains ";" but that should
6746    # okay in the real world where ";" in dirpaths is itself problematic.
6747    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6748  else
6749    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6750  fi
6751else
6752  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6753fi
6754need_lib_prefix=unknown
6755hardcode_into_libs=no
6756
6757# when you set need_version to no, make sure it does not cause -set_version
6758# flags to be left without arguments
6759need_version=unknown
6760
6761case $host_os in
6762aix3*)
6763  version_type=linux
6764  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6765  shlibpath_var=LIBPATH
6766
6767  # AIX 3 has no versioning support, so we append a major version to the name.
6768  soname_spec='${libname}${release}${shared_ext}$major'
6769  ;;
6770
6771aix4* | aix5*)
6772  version_type=linux
6773  need_lib_prefix=no
6774  need_version=no
6775  hardcode_into_libs=yes
6776  if test "$host_cpu" = ia64; then
6777    # AIX 5 supports IA64
6778    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6779    shlibpath_var=LD_LIBRARY_PATH
6780  else
6781    # With GCC up to 2.95.x, collect2 would create an import file
6782    # for dependence libraries.  The import file would start with
6783    # the line `#! .'.  This would cause the generated library to
6784    # depend on `.', always an invalid library.  This was fixed in
6785    # development snapshots of GCC prior to 3.0.
6786    case $host_os in
6787      aix4 | aix4.[01] | aix4.[01].*)
6788      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6789	   echo ' yes '
6790	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6791	:
6792      else
6793	can_build_shared=no
6794      fi
6795      ;;
6796    esac
6797    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6798    # soname into executable. Probably we can add versioning support to
6799    # collect2, so additional links can be useful in future.
6800    if test "$aix_use_runtimelinking" = yes; then
6801      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6802      # instead of lib<name>.a to let people know that these are not
6803      # typical AIX shared libraries.
6804      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6805    else
6806      # We preserve .a as extension for shared libraries through AIX4.2
6807      # and later when we are not doing run time linking.
6808      library_names_spec='${libname}${release}.a $libname.a'
6809      soname_spec='${libname}${release}${shared_ext}$major'
6810    fi
6811    shlibpath_var=LIBPATH
6812  fi
6813  ;;
6814
6815amigaos*)
6816  library_names_spec='$libname.ixlibrary $libname.a'
6817  # Create ${libname}_ixlibrary.a entries in /sys/libs.
6818  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'
6819  ;;
6820
6821beos*)
6822  library_names_spec='${libname}${shared_ext}'
6823  dynamic_linker="$host_os ld.so"
6824  shlibpath_var=LIBRARY_PATH
6825  ;;
6826
6827bsdi[45]*)
6828  version_type=linux
6829  need_version=no
6830  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6831  soname_spec='${libname}${release}${shared_ext}$major'
6832  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6833  shlibpath_var=LD_LIBRARY_PATH
6834  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6835  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6836  # the default ld.so.conf also contains /usr/contrib/lib and
6837  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6838  # libtool to hard-code these into programs
6839  ;;
6840
6841cygwin* | mingw* | pw32*)
6842  version_type=windows
6843  shrext_cmds=".dll"
6844  need_version=no
6845  need_lib_prefix=no
6846
6847  case $GCC,$host_os in
6848  yes,cygwin* | yes,mingw* | yes,pw32*)
6849    library_names_spec='$libname.dll.a'
6850    # DLL is installed to $(libdir)/../bin by postinstall_cmds
6851    postinstall_cmds='base_file=`basename \${file}`~
6852      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6853      dldir=$destdir/`dirname \$dlpath`~
6854      test -d \$dldir || mkdir -p \$dldir~
6855      $install_prog $dir/$dlname \$dldir/$dlname'
6856    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6857      dlpath=$dir/\$dldll~
6858       $rm \$dlpath'
6859    shlibpath_overrides_runpath=yes
6860
6861    case $host_os in
6862    cygwin*)
6863      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6864      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6865      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6866      ;;
6867    mingw*)
6868      # MinGW DLLs use traditional 'lib' prefix
6869      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6870      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6871      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6872        # It is most probably a Windows format PATH printed by
6873        # mingw gcc, but we are running on Cygwin. Gcc prints its search
6874        # path with ; separators, and with drive letters. We can handle the
6875        # drive letters (cygwin fileutils understands them), so leave them,
6876        # especially as we might pass files found there to a mingw objdump,
6877        # which wouldn't understand a cygwinified path. Ahh.
6878        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6879      else
6880        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6881      fi
6882      ;;
6883    pw32*)
6884      # pw32 DLLs use 'pw' prefix rather than 'lib'
6885      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6886      ;;
6887    esac
6888    ;;
6889
6890  *)
6891    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6892    ;;
6893  esac
6894  dynamic_linker='Win32 ld.exe'
6895  # FIXME: first we should search . and the directory the executable is in
6896  shlibpath_var=PATH
6897  ;;
6898
6899darwin* | rhapsody*)
6900  dynamic_linker="$host_os dyld"
6901  version_type=darwin
6902  need_lib_prefix=no
6903  need_version=no
6904  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6905  soname_spec='${libname}${release}${major}$shared_ext'
6906  shlibpath_overrides_runpath=yes
6907  shlibpath_var=DYLD_LIBRARY_PATH
6908  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6909  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6910  if test "$GCC" = yes; then
6911    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"`
6912  else
6913    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6914  fi
6915  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6916  ;;
6917
6918dgux*)
6919  version_type=linux
6920  need_lib_prefix=no
6921  need_version=no
6922  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6923  soname_spec='${libname}${release}${shared_ext}$major'
6924  shlibpath_var=LD_LIBRARY_PATH
6925  ;;
6926
6927freebsd1*)
6928  dynamic_linker=no
6929  ;;
6930
6931kfreebsd*-gnu)
6932  version_type=linux
6933  need_lib_prefix=no
6934  need_version=no
6935  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6936  soname_spec='${libname}${release}${shared_ext}$major'
6937  shlibpath_var=LD_LIBRARY_PATH
6938  shlibpath_overrides_runpath=no
6939  hardcode_into_libs=yes
6940  dynamic_linker='GNU ld.so'
6941  ;;
6942
6943freebsd*)
6944  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6945  version_type=freebsd-$objformat
6946  case $version_type in
6947    freebsd-elf*)
6948      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6949      need_version=no
6950      need_lib_prefix=no
6951      ;;
6952    freebsd-*)
6953      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6954      need_version=yes
6955      ;;
6956  esac
6957  shlibpath_var=LD_LIBRARY_PATH
6958  case $host_os in
6959  freebsd2*)
6960    shlibpath_overrides_runpath=yes
6961    ;;
6962  freebsd3.01* | freebsdelf3.01*)
6963    shlibpath_overrides_runpath=yes
6964    hardcode_into_libs=yes
6965    ;;
6966  *) # from 3.2 on
6967    shlibpath_overrides_runpath=no
6968    hardcode_into_libs=yes
6969    ;;
6970  esac
6971  ;;
6972
6973gnu*)
6974  version_type=linux
6975  need_lib_prefix=no
6976  need_version=no
6977  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6978  soname_spec='${libname}${release}${shared_ext}$major'
6979  shlibpath_var=LD_LIBRARY_PATH
6980  hardcode_into_libs=yes
6981  ;;
6982
6983hpux9* | hpux10* | hpux11*)
6984  # Give a soname corresponding to the major version so that dld.sl refuses to
6985  # link against other versions.
6986  version_type=sunos
6987  need_lib_prefix=no
6988  need_version=no
6989  case "$host_cpu" in
6990  ia64*)
6991    shrext_cmds='.so'
6992    hardcode_into_libs=yes
6993    dynamic_linker="$host_os dld.so"
6994    shlibpath_var=LD_LIBRARY_PATH
6995    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6996    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6997    soname_spec='${libname}${release}${shared_ext}$major'
6998    if test "X$HPUX_IA64_MODE" = X32; then
6999      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7000    else
7001      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7002    fi
7003    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7004    ;;
7005   hppa*64*)
7006     shrext_cmds='.sl'
7007     hardcode_into_libs=yes
7008     dynamic_linker="$host_os dld.sl"
7009     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7010     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7011     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7012     soname_spec='${libname}${release}${shared_ext}$major'
7013     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7014     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7015     ;;
7016   *)
7017    shrext_cmds='.sl'
7018    dynamic_linker="$host_os dld.sl"
7019    shlibpath_var=SHLIB_PATH
7020    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7021    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7022    soname_spec='${libname}${release}${shared_ext}$major'
7023    ;;
7024  esac
7025  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7026  postinstall_cmds='chmod 555 $lib'
7027  ;;
7028
7029irix5* | irix6* | nonstopux*)
7030  case $host_os in
7031    nonstopux*) version_type=nonstopux ;;
7032    *)
7033	if test "$lt_cv_prog_gnu_ld" = yes; then
7034		version_type=linux
7035	else
7036		version_type=irix
7037	fi ;;
7038  esac
7039  need_lib_prefix=no
7040  need_version=no
7041  soname_spec='${libname}${release}${shared_ext}$major'
7042  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7043  case $host_os in
7044  irix5* | nonstopux*)
7045    libsuff= shlibsuff=
7046    ;;
7047  *)
7048    case $LD in # libtool.m4 will add one of these switches to LD
7049    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7050      libsuff= shlibsuff= libmagic=32-bit;;
7051    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7052      libsuff=32 shlibsuff=N32 libmagic=N32;;
7053    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7054      libsuff=64 shlibsuff=64 libmagic=64-bit;;
7055    *) libsuff= shlibsuff= libmagic=never-match;;
7056    esac
7057    ;;
7058  esac
7059  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7060  shlibpath_overrides_runpath=no
7061  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7062  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7063  hardcode_into_libs=yes
7064  ;;
7065
7066# No shared lib support for Linux oldld, aout, or coff.
7067linux*oldld* | linux*aout* | linux*coff*)
7068  dynamic_linker=no
7069  ;;
7070
7071# This must be Linux ELF.
7072linux*)
7073  version_type=linux
7074  need_lib_prefix=no
7075  need_version=no
7076  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7077  soname_spec='${libname}${release}${shared_ext}$major'
7078  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7079  shlibpath_var=LD_LIBRARY_PATH
7080  shlibpath_overrides_runpath=no
7081  # This implies no fast_install, which is unacceptable.
7082  # Some rework will be needed to allow for fast_install
7083  # before this can be enabled.
7084  hardcode_into_libs=yes
7085
7086  # Append ld.so.conf contents to the search path
7087  if test -f /etc/ld.so.conf; then
7088    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7089    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7090  fi
7091
7092  # We used to test for /lib/ld.so.1 and disable shared libraries on
7093  # powerpc, because MkLinux only supported shared libraries with the
7094  # GNU dynamic linker.  Since this was broken with cross compilers,
7095  # most powerpc-linux boxes support dynamic linking these days and
7096  # people can always --disable-shared, the test was removed, and we
7097  # assume the GNU/Linux dynamic linker is in use.
7098  dynamic_linker='GNU/Linux ld.so'
7099  ;;
7100
7101knetbsd*-gnu)
7102  version_type=linux
7103  need_lib_prefix=no
7104  need_version=no
7105  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7106  soname_spec='${libname}${release}${shared_ext}$major'
7107  shlibpath_var=LD_LIBRARY_PATH
7108  shlibpath_overrides_runpath=no
7109  hardcode_into_libs=yes
7110  dynamic_linker='GNU ld.so'
7111  ;;
7112
7113netbsd*)
7114  version_type=sunos
7115  need_lib_prefix=no
7116  need_version=no
7117  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7118    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7119    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7120    dynamic_linker='NetBSD (a.out) ld.so'
7121  else
7122    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7123    soname_spec='${libname}${release}${shared_ext}$major'
7124    dynamic_linker='NetBSD ld.elf_so'
7125  fi
7126  shlibpath_var=LD_LIBRARY_PATH
7127  shlibpath_overrides_runpath=yes
7128  hardcode_into_libs=yes
7129  ;;
7130
7131newsos6)
7132  version_type=linux
7133  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7134  shlibpath_var=LD_LIBRARY_PATH
7135  shlibpath_overrides_runpath=yes
7136  ;;
7137
7138nto-qnx*)
7139  version_type=linux
7140  need_lib_prefix=no
7141  need_version=no
7142  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7143  soname_spec='${libname}${release}${shared_ext}$major'
7144  shlibpath_var=LD_LIBRARY_PATH
7145  shlibpath_overrides_runpath=yes
7146  ;;
7147
7148openbsd*)
7149  version_type=sunos
7150  need_lib_prefix=no
7151  need_version=no
7152  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7153  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7154  shlibpath_var=LD_LIBRARY_PATH
7155  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7156    case $host_os in
7157      openbsd2.[89] | openbsd2.[89].*)
7158	shlibpath_overrides_runpath=no
7159	;;
7160      *)
7161	shlibpath_overrides_runpath=yes
7162	;;
7163      esac
7164  else
7165    shlibpath_overrides_runpath=yes
7166  fi
7167  ;;
7168
7169os2*)
7170  libname_spec='$name'
7171  shrext_cmds=".dll"
7172  need_lib_prefix=no
7173  library_names_spec='$libname${shared_ext} $libname.a'
7174  dynamic_linker='OS/2 ld.exe'
7175  shlibpath_var=LIBPATH
7176  ;;
7177
7178osf3* | osf4* | osf5*)
7179  version_type=osf
7180  need_lib_prefix=no
7181  need_version=no
7182  soname_spec='${libname}${release}${shared_ext}$major'
7183  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7184  shlibpath_var=LD_LIBRARY_PATH
7185  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7186  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7187  ;;
7188
7189sco3.2v5*)
7190  version_type=osf
7191  soname_spec='${libname}${release}${shared_ext}$major'
7192  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7193  shlibpath_var=LD_LIBRARY_PATH
7194  ;;
7195
7196solaris*)
7197  version_type=linux
7198  need_lib_prefix=no
7199  need_version=no
7200  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7201  soname_spec='${libname}${release}${shared_ext}$major'
7202  shlibpath_var=LD_LIBRARY_PATH
7203  shlibpath_overrides_runpath=yes
7204  hardcode_into_libs=yes
7205  # ldd complains unless libraries are executable
7206  postinstall_cmds='chmod +x $lib'
7207  ;;
7208
7209sunos4*)
7210  version_type=sunos
7211  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7212  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7213  shlibpath_var=LD_LIBRARY_PATH
7214  shlibpath_overrides_runpath=yes
7215  if test "$with_gnu_ld" = yes; then
7216    need_lib_prefix=no
7217  fi
7218  need_version=yes
7219  ;;
7220
7221sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7222  version_type=linux
7223  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7224  soname_spec='${libname}${release}${shared_ext}$major'
7225  shlibpath_var=LD_LIBRARY_PATH
7226  case $host_vendor in
7227    sni)
7228      shlibpath_overrides_runpath=no
7229      need_lib_prefix=no
7230      export_dynamic_flag_spec='${wl}-Blargedynsym'
7231      runpath_var=LD_RUN_PATH
7232      ;;
7233    siemens)
7234      need_lib_prefix=no
7235      ;;
7236    motorola)
7237      need_lib_prefix=no
7238      need_version=no
7239      shlibpath_overrides_runpath=no
7240      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7241      ;;
7242  esac
7243  ;;
7244
7245sysv4*MP*)
7246  if test -d /usr/nec ;then
7247    version_type=linux
7248    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7249    soname_spec='$libname${shared_ext}.$major'
7250    shlibpath_var=LD_LIBRARY_PATH
7251  fi
7252  ;;
7253
7254uts4*)
7255  version_type=linux
7256  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7257  soname_spec='${libname}${release}${shared_ext}$major'
7258  shlibpath_var=LD_LIBRARY_PATH
7259  ;;
7260
7261*)
7262  dynamic_linker=no
7263  ;;
7264esac
7265echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7266echo "${ECHO_T}$dynamic_linker" >&6
7267test "$dynamic_linker" = no && can_build_shared=no
7268
7269
7270echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7271echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7272if test "${libltdl_cv_shlibext+set}" = set; then
7273  echo $ECHO_N "(cached) $ECHO_C" >&6
7274else
7275
7276module=yes
7277eval libltdl_cv_shlibext=$shrext_cmds
7278
7279fi
7280echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7281echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7282if test -n "$libltdl_cv_shlibext"; then
7283
7284cat >>confdefs.h <<_ACEOF
7285#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7286_ACEOF
7287
7288fi
7289
7290
7291echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7292echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7293if test "${libltdl_cv_shlibpath_var+set}" = set; then
7294  echo $ECHO_N "(cached) $ECHO_C" >&6
7295else
7296  libltdl_cv_shlibpath_var="$shlibpath_var"
7297fi
7298echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7299echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7300if test -n "$libltdl_cv_shlibpath_var"; then
7301
7302cat >>confdefs.h <<_ACEOF
7303#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7304_ACEOF
7305
7306fi
7307
7308
7309echo "$as_me:$LINENO: checking for the default library search path" >&5
7310echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7311if test "${libltdl_cv_sys_search_path+set}" = set; then
7312  echo $ECHO_N "(cached) $ECHO_C" >&6
7313else
7314  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7315fi
7316echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7317echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7318if test -n "$libltdl_cv_sys_search_path"; then
7319  sys_search_path=
7320  for dir in $libltdl_cv_sys_search_path; do
7321    if test -z "$sys_search_path"; then
7322      sys_search_path="$dir"
7323    else
7324      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7325    fi
7326  done
7327
7328cat >>confdefs.h <<_ACEOF
7329#define LTDL_SYSSEARCHPATH "$sys_search_path"
7330_ACEOF
7331
7332fi
7333
7334echo "$as_me:$LINENO: checking for objdir" >&5
7335echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7336if test "${libltdl_cv_objdir+set}" = set; then
7337  echo $ECHO_N "(cached) $ECHO_C" >&6
7338else
7339  libltdl_cv_objdir="$objdir"
7340  if test -n "$objdir"; then
7341    :
7342  else
7343    rm -f .libs 2>/dev/null
7344    mkdir .libs 2>/dev/null
7345    if test -d .libs; then
7346      libltdl_cv_objdir=.libs
7347    else
7348      # MS-DOS does not allow filenames that begin with a dot.
7349      libltdl_cv_objdir=_libs
7350    fi
7351  rmdir .libs 2>/dev/null
7352  fi
7353
7354fi
7355echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7356echo "${ECHO_T}$libltdl_cv_objdir" >&6
7357
7358cat >>confdefs.h <<_ACEOF
7359#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7360_ACEOF
7361
7362
7363echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7364echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7365if test "${lt_cv_path_NM+set}" = set; then
7366  echo $ECHO_N "(cached) $ECHO_C" >&6
7367else
7368  if test -n "$NM"; then
7369  # Let the user override the test.
7370  lt_cv_path_NM="$NM"
7371else
7372  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7373  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7374    IFS="$lt_save_ifs"
7375    test -z "$ac_dir" && ac_dir=.
7376    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7377    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7378      # Check to see if the nm accepts a BSD-compat flag.
7379      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7380      #   nm: unknown option "B" ignored
7381      # Tru64's nm complains that /dev/null is an invalid object file
7382      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7383      */dev/null* | *'Invalid file or object type'*)
7384	lt_cv_path_NM="$tmp_nm -B"
7385	break
7386        ;;
7387      *)
7388	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7389	*/dev/null*)
7390	  lt_cv_path_NM="$tmp_nm -p"
7391	  break
7392	  ;;
7393	*)
7394	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7395	  continue # so that we can try to find one that supports BSD flags
7396	  ;;
7397	esac
7398      esac
7399    fi
7400  done
7401  IFS="$lt_save_ifs"
7402  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7403fi
7404fi
7405echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7406echo "${ECHO_T}$lt_cv_path_NM" >&6
7407NM="$lt_cv_path_NM"
7408
7409
7410
7411
7412
7413# Check for command to grab the raw symbol name followed by C symbol from nm.
7414echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7415echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7416if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7417  echo $ECHO_N "(cached) $ECHO_C" >&6
7418else
7419
7420# These are sane defaults that work on at least a few old systems.
7421# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7422
7423# Character class describing NM global symbol codes.
7424symcode='[BCDEGRST]'
7425
7426# Regexp to match symbols that can be accessed directly from C.
7427sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7428
7429# Transform the above into a raw symbol and a C symbol.
7430symxfrm='\1 \2\3 \3'
7431
7432# Transform an extracted symbol line into a proper C declaration
7433lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7434
7435# Transform an extracted symbol line into symbol name and symbol address
7436lt_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
7438# Define system-specific variables.
7439case $host_os in
7440aix*)
7441  symcode='[BCDT]'
7442  ;;
7443cygwin* | mingw* | pw32*)
7444  symcode='[ABCDGISTW]'
7445  ;;
7446hpux*) # Its linker distinguishes data from code symbols
7447  if test "$host_cpu" = ia64; then
7448    symcode='[ABCDEGRST]'
7449  fi
7450  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7451  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'"
7452  ;;
7453linux*)
7454  if test "$host_cpu" = ia64; then
7455    symcode='[ABCDGIRSTW]'
7456    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7457    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'"
7458  fi
7459  ;;
7460irix* | nonstopux*)
7461  symcode='[BCDEGRST]'
7462  ;;
7463osf*)
7464  symcode='[BCDEGQRST]'
7465  ;;
7466solaris* | sysv5*)
7467  symcode='[BDRT]'
7468  ;;
7469sysv4)
7470  symcode='[DFNSTU]'
7471  ;;
7472esac
7473
7474# Handle CRLF in mingw tool chain
7475opt_cr=
7476case $build_os in
7477mingw*)
7478  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7479  ;;
7480esac
7481
7482# If we're using GNU nm, then use its standard symbol codes.
7483case `$NM -V 2>&1` in
7484*GNU* | *'with BFD'*)
7485  symcode='[ABCDGIRSTW]' ;;
7486esac
7487
7488# Try without a prefix undercore, then with it.
7489for ac_symprfx in "" "_"; do
7490
7491  # Write the raw and C identifiers.
7492  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7493
7494  # Check to see that the pipe works correctly.
7495  pipe_works=no
7496
7497  rm -f conftest*
7498  cat > conftest.$ac_ext <<EOF
7499#ifdef __cplusplus
7500extern "C" {
7501#endif
7502char nm_test_var;
7503void nm_test_func(){}
7504#ifdef __cplusplus
7505}
7506#endif
7507int main(){nm_test_var='a';nm_test_func();return(0);}
7508EOF
7509
7510  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7511  (eval $ac_compile) 2>&5
7512  ac_status=$?
7513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514  (exit $ac_status); }; then
7515    # Now try to grab the symbols.
7516    nlist=conftest.nm
7517    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7518  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7519  ac_status=$?
7520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521  (exit $ac_status); } && test -s "$nlist"; then
7522      # Try sorting and uniquifying the output.
7523      if sort "$nlist" | uniq > "$nlist"T; then
7524	mv -f "$nlist"T "$nlist"
7525      else
7526	rm -f "$nlist"T
7527      fi
7528
7529      # Make sure that we snagged all the symbols we need.
7530      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7531	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7532	  cat <<EOF > conftest.$ac_ext
7533#ifdef __cplusplus
7534extern "C" {
7535#endif
7536
7537EOF
7538	  # Now generate the symbol file.
7539	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7540
7541	  cat <<EOF >> conftest.$ac_ext
7542#if defined (__STDC__) && __STDC__
7543# define lt_ptr_t void *
7544#else
7545# define lt_ptr_t char *
7546# define const
7547#endif
7548
7549/* The mapping between symbol names and symbols. */
7550const struct {
7551  const char *name;
7552  lt_ptr_t address;
7553}
7554lt_preloaded_symbols[] =
7555{
7556EOF
7557	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7558	  cat <<\EOF >> conftest.$ac_ext
7559  {0, (lt_ptr_t) 0}
7560};
7561
7562#ifdef __cplusplus
7563}
7564#endif
7565EOF
7566	  # Now try linking the two files.
7567	  mv conftest.$ac_objext conftstm.$ac_objext
7568	  lt_save_LIBS="$LIBS"
7569	  lt_save_CFLAGS="$CFLAGS"
7570	  LIBS="conftstm.$ac_objext"
7571	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7572	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7573  (eval $ac_link) 2>&5
7574  ac_status=$?
7575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7577	    pipe_works=yes
7578	  fi
7579	  LIBS="$lt_save_LIBS"
7580	  CFLAGS="$lt_save_CFLAGS"
7581	else
7582	  echo "cannot find nm_test_func in $nlist" >&5
7583	fi
7584      else
7585	echo "cannot find nm_test_var in $nlist" >&5
7586      fi
7587    else
7588      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7589    fi
7590  else
7591    echo "$progname: failed program was:" >&5
7592    cat conftest.$ac_ext >&5
7593  fi
7594  rm -f conftest* conftst*
7595
7596  # Do not use the global_symbol_pipe unless it works.
7597  if test "$pipe_works" = yes; then
7598    break
7599  else
7600    lt_cv_sys_global_symbol_pipe=
7601  fi
7602done
7603
7604fi
7605
7606if test -z "$lt_cv_sys_global_symbol_pipe"; then
7607  lt_cv_sys_global_symbol_to_cdecl=
7608fi
7609if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7610  echo "$as_me:$LINENO: result: failed" >&5
7611echo "${ECHO_T}failed" >&6
7612else
7613  echo "$as_me:$LINENO: result: ok" >&5
7614echo "${ECHO_T}ok" >&6
7615fi
7616
7617
7618echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7619echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7620if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7621  echo $ECHO_N "(cached) $ECHO_C" >&6
7622else
7623  if test -n "$lt_cv_sys_global_symbol_pipe"; then
7624    libltdl_cv_preloaded_symbols=yes
7625  else
7626    libltdl_cv_preloaded_symbols=no
7627  fi
7628
7629fi
7630echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7631echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7632if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7633
7634cat >>confdefs.h <<\_ACEOF
7635#define HAVE_PRELOADED_SYMBOLS 1
7636_ACEOF
7637
7638fi
7639
7640LIBADD_DL=
7641
7642ac_ext=c
7643ac_cpp='$CPP $CPPFLAGS'
7644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7646ac_compiler_gnu=$ac_cv_c_compiler_gnu
7647
7648
7649echo "$as_me:$LINENO: checking for shl_load" >&5
7650echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7651if test "${ac_cv_func_shl_load+set}" = set; then
7652  echo $ECHO_N "(cached) $ECHO_C" >&6
7653else
7654  cat >conftest.$ac_ext <<_ACEOF
7655/* confdefs.h.  */
7656_ACEOF
7657cat confdefs.h >>conftest.$ac_ext
7658cat >>conftest.$ac_ext <<_ACEOF
7659/* end confdefs.h.  */
7660/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7661   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7662#define shl_load innocuous_shl_load
7663
7664/* System header to define __stub macros and hopefully few prototypes,
7665    which can conflict with char shl_load (); below.
7666    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7667    <limits.h> exists even on freestanding compilers.  */
7668
7669#ifdef __STDC__
7670# include <limits.h>
7671#else
7672# include <assert.h>
7673#endif
7674
7675#undef shl_load
7676
7677/* Override any gcc2 internal prototype to avoid an error.  */
7678#ifdef __cplusplus
7679extern "C"
7680{
7681#endif
7682/* We use char because int might match the return type of a gcc2
7683   builtin and then its argument prototype would still apply.  */
7684char shl_load ();
7685/* The GNU C library defines this for functions which it implements
7686    to always fail with ENOSYS.  Some functions are actually named
7687    something starting with __ and the normal name is an alias.  */
7688#if defined (__stub_shl_load) || defined (__stub___shl_load)
7689choke me
7690#else
7691char (*f) () = shl_load;
7692#endif
7693#ifdef __cplusplus
7694}
7695#endif
7696
7697int
7698main ()
7699{
7700return f != shl_load;
7701  ;
7702  return 0;
7703}
7704_ACEOF
7705rm -f conftest.$ac_objext conftest$ac_exeext
7706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7707  (eval $ac_link) 2>conftest.er1
7708  ac_status=$?
7709  grep -v '^ *+' conftest.er1 >conftest.err
7710  rm -f conftest.er1
7711  cat conftest.err >&5
7712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713  (exit $ac_status); } &&
7714	 { ac_try='test -z "$ac_c_werror_flag"
7715			 || test ! -s conftest.err'
7716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717  (eval $ac_try) 2>&5
7718  ac_status=$?
7719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720  (exit $ac_status); }; } &&
7721	 { ac_try='test -s conftest$ac_exeext'
7722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723  (eval $ac_try) 2>&5
7724  ac_status=$?
7725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726  (exit $ac_status); }; }; then
7727  ac_cv_func_shl_load=yes
7728else
7729  echo "$as_me: failed program was:" >&5
7730sed 's/^/| /' conftest.$ac_ext >&5
7731
7732ac_cv_func_shl_load=no
7733fi
7734rm -f conftest.err conftest.$ac_objext \
7735      conftest$ac_exeext conftest.$ac_ext
7736fi
7737echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7738echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7739if test $ac_cv_func_shl_load = yes; then
7740
7741cat >>confdefs.h <<\_ACEOF
7742#define HAVE_SHL_LOAD 1
7743_ACEOF
7744
7745else
7746  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7747echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7748if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7749  echo $ECHO_N "(cached) $ECHO_C" >&6
7750else
7751  ac_check_lib_save_LIBS=$LIBS
7752LIBS="-ldld  $LIBS"
7753cat >conftest.$ac_ext <<_ACEOF
7754/* confdefs.h.  */
7755_ACEOF
7756cat confdefs.h >>conftest.$ac_ext
7757cat >>conftest.$ac_ext <<_ACEOF
7758/* end confdefs.h.  */
7759
7760/* Override any gcc2 internal prototype to avoid an error.  */
7761#ifdef __cplusplus
7762extern "C"
7763#endif
7764/* We use char because int might match the return type of a gcc2
7765   builtin and then its argument prototype would still apply.  */
7766char shl_load ();
7767int
7768main ()
7769{
7770shl_load ();
7771  ;
7772  return 0;
7773}
7774_ACEOF
7775rm -f conftest.$ac_objext conftest$ac_exeext
7776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7777  (eval $ac_link) 2>conftest.er1
7778  ac_status=$?
7779  grep -v '^ *+' conftest.er1 >conftest.err
7780  rm -f conftest.er1
7781  cat conftest.err >&5
7782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783  (exit $ac_status); } &&
7784	 { ac_try='test -z "$ac_c_werror_flag"
7785			 || test ! -s conftest.err'
7786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787  (eval $ac_try) 2>&5
7788  ac_status=$?
7789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790  (exit $ac_status); }; } &&
7791	 { ac_try='test -s conftest$ac_exeext'
7792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7793  (eval $ac_try) 2>&5
7794  ac_status=$?
7795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796  (exit $ac_status); }; }; then
7797  ac_cv_lib_dld_shl_load=yes
7798else
7799  echo "$as_me: failed program was:" >&5
7800sed 's/^/| /' conftest.$ac_ext >&5
7801
7802ac_cv_lib_dld_shl_load=no
7803fi
7804rm -f conftest.err conftest.$ac_objext \
7805      conftest$ac_exeext conftest.$ac_ext
7806LIBS=$ac_check_lib_save_LIBS
7807fi
7808echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7809echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7810if test $ac_cv_lib_dld_shl_load = yes; then
7811
7812cat >>confdefs.h <<\_ACEOF
7813#define HAVE_SHL_LOAD 1
7814_ACEOF
7815
7816	LIBADD_DL="$LIBADD_DL -ldld"
7817else
7818  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7819echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7820if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7821  echo $ECHO_N "(cached) $ECHO_C" >&6
7822else
7823  ac_check_lib_save_LIBS=$LIBS
7824LIBS="-ldl  $LIBS"
7825cat >conftest.$ac_ext <<_ACEOF
7826/* confdefs.h.  */
7827_ACEOF
7828cat confdefs.h >>conftest.$ac_ext
7829cat >>conftest.$ac_ext <<_ACEOF
7830/* end confdefs.h.  */
7831
7832/* Override any gcc2 internal prototype to avoid an error.  */
7833#ifdef __cplusplus
7834extern "C"
7835#endif
7836/* We use char because int might match the return type of a gcc2
7837   builtin and then its argument prototype would still apply.  */
7838char dlopen ();
7839int
7840main ()
7841{
7842dlopen ();
7843  ;
7844  return 0;
7845}
7846_ACEOF
7847rm -f conftest.$ac_objext conftest$ac_exeext
7848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7849  (eval $ac_link) 2>conftest.er1
7850  ac_status=$?
7851  grep -v '^ *+' conftest.er1 >conftest.err
7852  rm -f conftest.er1
7853  cat conftest.err >&5
7854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855  (exit $ac_status); } &&
7856	 { ac_try='test -z "$ac_c_werror_flag"
7857			 || test ! -s conftest.err'
7858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859  (eval $ac_try) 2>&5
7860  ac_status=$?
7861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862  (exit $ac_status); }; } &&
7863	 { ac_try='test -s conftest$ac_exeext'
7864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865  (eval $ac_try) 2>&5
7866  ac_status=$?
7867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868  (exit $ac_status); }; }; then
7869  ac_cv_lib_dl_dlopen=yes
7870else
7871  echo "$as_me: failed program was:" >&5
7872sed 's/^/| /' conftest.$ac_ext >&5
7873
7874ac_cv_lib_dl_dlopen=no
7875fi
7876rm -f conftest.err conftest.$ac_objext \
7877      conftest$ac_exeext conftest.$ac_ext
7878LIBS=$ac_check_lib_save_LIBS
7879fi
7880echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7881echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7882if test $ac_cv_lib_dl_dlopen = yes; then
7883
7884cat >>confdefs.h <<\_ACEOF
7885#define HAVE_LIBDL 1
7886_ACEOF
7887
7888	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7889else
7890  cat >conftest.$ac_ext <<_ACEOF
7891/* confdefs.h.  */
7892_ACEOF
7893cat confdefs.h >>conftest.$ac_ext
7894cat >>conftest.$ac_ext <<_ACEOF
7895/* end confdefs.h.  */
7896#if HAVE_DLFCN_H
7897#  include <dlfcn.h>
7898#endif
7899
7900int
7901main ()
7902{
7903dlopen(0, 0);
7904  ;
7905  return 0;
7906}
7907_ACEOF
7908rm -f conftest.$ac_objext conftest$ac_exeext
7909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7910  (eval $ac_link) 2>conftest.er1
7911  ac_status=$?
7912  grep -v '^ *+' conftest.er1 >conftest.err
7913  rm -f conftest.er1
7914  cat conftest.err >&5
7915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916  (exit $ac_status); } &&
7917	 { ac_try='test -z "$ac_c_werror_flag"
7918			 || test ! -s conftest.err'
7919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920  (eval $ac_try) 2>&5
7921  ac_status=$?
7922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923  (exit $ac_status); }; } &&
7924	 { ac_try='test -s conftest$ac_exeext'
7925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926  (eval $ac_try) 2>&5
7927  ac_status=$?
7928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929  (exit $ac_status); }; }; then
7930
7931cat >>confdefs.h <<\_ACEOF
7932#define HAVE_LIBDL 1
7933_ACEOF
7934 libltdl_cv_func_dlopen="yes"
7935else
7936  echo "$as_me: failed program was:" >&5
7937sed 's/^/| /' conftest.$ac_ext >&5
7938
7939echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7940echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7941if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7942  echo $ECHO_N "(cached) $ECHO_C" >&6
7943else
7944  ac_check_lib_save_LIBS=$LIBS
7945LIBS="-lsvld  $LIBS"
7946cat >conftest.$ac_ext <<_ACEOF
7947/* confdefs.h.  */
7948_ACEOF
7949cat confdefs.h >>conftest.$ac_ext
7950cat >>conftest.$ac_ext <<_ACEOF
7951/* end confdefs.h.  */
7952
7953/* Override any gcc2 internal prototype to avoid an error.  */
7954#ifdef __cplusplus
7955extern "C"
7956#endif
7957/* We use char because int might match the return type of a gcc2
7958   builtin and then its argument prototype would still apply.  */
7959char dlopen ();
7960int
7961main ()
7962{
7963dlopen ();
7964  ;
7965  return 0;
7966}
7967_ACEOF
7968rm -f conftest.$ac_objext conftest$ac_exeext
7969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7970  (eval $ac_link) 2>conftest.er1
7971  ac_status=$?
7972  grep -v '^ *+' conftest.er1 >conftest.err
7973  rm -f conftest.er1
7974  cat conftest.err >&5
7975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976  (exit $ac_status); } &&
7977	 { ac_try='test -z "$ac_c_werror_flag"
7978			 || test ! -s conftest.err'
7979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980  (eval $ac_try) 2>&5
7981  ac_status=$?
7982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983  (exit $ac_status); }; } &&
7984	 { ac_try='test -s conftest$ac_exeext'
7985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7986  (eval $ac_try) 2>&5
7987  ac_status=$?
7988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989  (exit $ac_status); }; }; then
7990  ac_cv_lib_svld_dlopen=yes
7991else
7992  echo "$as_me: failed program was:" >&5
7993sed 's/^/| /' conftest.$ac_ext >&5
7994
7995ac_cv_lib_svld_dlopen=no
7996fi
7997rm -f conftest.err conftest.$ac_objext \
7998      conftest$ac_exeext conftest.$ac_ext
7999LIBS=$ac_check_lib_save_LIBS
8000fi
8001echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8002echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8003if test $ac_cv_lib_svld_dlopen = yes; then
8004
8005cat >>confdefs.h <<\_ACEOF
8006#define HAVE_LIBDL 1
8007_ACEOF
8008
8009	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8010else
8011  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8012echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8013if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8014  echo $ECHO_N "(cached) $ECHO_C" >&6
8015else
8016  ac_check_lib_save_LIBS=$LIBS
8017LIBS="-ldld  $LIBS"
8018cat >conftest.$ac_ext <<_ACEOF
8019/* confdefs.h.  */
8020_ACEOF
8021cat confdefs.h >>conftest.$ac_ext
8022cat >>conftest.$ac_ext <<_ACEOF
8023/* end confdefs.h.  */
8024
8025/* Override any gcc2 internal prototype to avoid an error.  */
8026#ifdef __cplusplus
8027extern "C"
8028#endif
8029/* We use char because int might match the return type of a gcc2
8030   builtin and then its argument prototype would still apply.  */
8031char dld_link ();
8032int
8033main ()
8034{
8035dld_link ();
8036  ;
8037  return 0;
8038}
8039_ACEOF
8040rm -f conftest.$ac_objext conftest$ac_exeext
8041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8042  (eval $ac_link) 2>conftest.er1
8043  ac_status=$?
8044  grep -v '^ *+' conftest.er1 >conftest.err
8045  rm -f conftest.er1
8046  cat conftest.err >&5
8047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048  (exit $ac_status); } &&
8049	 { ac_try='test -z "$ac_c_werror_flag"
8050			 || test ! -s conftest.err'
8051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052  (eval $ac_try) 2>&5
8053  ac_status=$?
8054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055  (exit $ac_status); }; } &&
8056	 { ac_try='test -s conftest$ac_exeext'
8057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058  (eval $ac_try) 2>&5
8059  ac_status=$?
8060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061  (exit $ac_status); }; }; then
8062  ac_cv_lib_dld_dld_link=yes
8063else
8064  echo "$as_me: failed program was:" >&5
8065sed 's/^/| /' conftest.$ac_ext >&5
8066
8067ac_cv_lib_dld_dld_link=no
8068fi
8069rm -f conftest.err conftest.$ac_objext \
8070      conftest$ac_exeext conftest.$ac_ext
8071LIBS=$ac_check_lib_save_LIBS
8072fi
8073echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8074echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8075if test $ac_cv_lib_dld_dld_link = yes; then
8076
8077cat >>confdefs.h <<\_ACEOF
8078#define HAVE_DLD 1
8079_ACEOF
8080
8081	 	LIBADD_DL="$LIBADD_DL -ldld"
8082else
8083  echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8084echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8085if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8086  echo $ECHO_N "(cached) $ECHO_C" >&6
8087else
8088  cat >conftest.$ac_ext <<_ACEOF
8089/* confdefs.h.  */
8090_ACEOF
8091cat confdefs.h >>conftest.$ac_ext
8092cat >>conftest.$ac_ext <<_ACEOF
8093/* end confdefs.h.  */
8094/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8095   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8096#define _dyld_func_lookup innocuous__dyld_func_lookup
8097
8098/* System header to define __stub macros and hopefully few prototypes,
8099    which can conflict with char _dyld_func_lookup (); below.
8100    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8101    <limits.h> exists even on freestanding compilers.  */
8102
8103#ifdef __STDC__
8104# include <limits.h>
8105#else
8106# include <assert.h>
8107#endif
8108
8109#undef _dyld_func_lookup
8110
8111/* Override any gcc2 internal prototype to avoid an error.  */
8112#ifdef __cplusplus
8113extern "C"
8114{
8115#endif
8116/* We use char because int might match the return type of a gcc2
8117   builtin and then its argument prototype would still apply.  */
8118char _dyld_func_lookup ();
8119/* The GNU C library defines this for functions which it implements
8120    to always fail with ENOSYS.  Some functions are actually named
8121    something starting with __ and the normal name is an alias.  */
8122#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8123choke me
8124#else
8125char (*f) () = _dyld_func_lookup;
8126#endif
8127#ifdef __cplusplus
8128}
8129#endif
8130
8131int
8132main ()
8133{
8134return f != _dyld_func_lookup;
8135  ;
8136  return 0;
8137}
8138_ACEOF
8139rm -f conftest.$ac_objext conftest$ac_exeext
8140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8141  (eval $ac_link) 2>conftest.er1
8142  ac_status=$?
8143  grep -v '^ *+' conftest.er1 >conftest.err
8144  rm -f conftest.er1
8145  cat conftest.err >&5
8146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147  (exit $ac_status); } &&
8148	 { ac_try='test -z "$ac_c_werror_flag"
8149			 || test ! -s conftest.err'
8150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151  (eval $ac_try) 2>&5
8152  ac_status=$?
8153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154  (exit $ac_status); }; } &&
8155	 { ac_try='test -s conftest$ac_exeext'
8156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157  (eval $ac_try) 2>&5
8158  ac_status=$?
8159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160  (exit $ac_status); }; }; then
8161  ac_cv_func__dyld_func_lookup=yes
8162else
8163  echo "$as_me: failed program was:" >&5
8164sed 's/^/| /' conftest.$ac_ext >&5
8165
8166ac_cv_func__dyld_func_lookup=no
8167fi
8168rm -f conftest.err conftest.$ac_objext \
8169      conftest$ac_exeext conftest.$ac_ext
8170fi
8171echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8172echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8173if test $ac_cv_func__dyld_func_lookup = yes; then
8174
8175cat >>confdefs.h <<\_ACEOF
8176#define HAVE_DYLD 1
8177_ACEOF
8178
8179fi
8180
8181
8182fi
8183
8184
8185fi
8186
8187
8188fi
8189rm -f conftest.err conftest.$ac_objext \
8190      conftest$ac_exeext conftest.$ac_ext
8191
8192fi
8193
8194
8195fi
8196
8197
8198fi
8199
8200
8201if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8202then
8203  lt_save_LIBS="$LIBS"
8204  LIBS="$LIBS $LIBADD_DL"
8205
8206for ac_func in dlerror
8207do
8208as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8209echo "$as_me:$LINENO: checking for $ac_func" >&5
8210echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8211if eval "test \"\${$as_ac_var+set}\" = set"; then
8212  echo $ECHO_N "(cached) $ECHO_C" >&6
8213else
8214  cat >conftest.$ac_ext <<_ACEOF
8215/* confdefs.h.  */
8216_ACEOF
8217cat confdefs.h >>conftest.$ac_ext
8218cat >>conftest.$ac_ext <<_ACEOF
8219/* end confdefs.h.  */
8220/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8221   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8222#define $ac_func innocuous_$ac_func
8223
8224/* System header to define __stub macros and hopefully few prototypes,
8225    which can conflict with char $ac_func (); below.
8226    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8227    <limits.h> exists even on freestanding compilers.  */
8228
8229#ifdef __STDC__
8230# include <limits.h>
8231#else
8232# include <assert.h>
8233#endif
8234
8235#undef $ac_func
8236
8237/* Override any gcc2 internal prototype to avoid an error.  */
8238#ifdef __cplusplus
8239extern "C"
8240{
8241#endif
8242/* We use char because int might match the return type of a gcc2
8243   builtin and then its argument prototype would still apply.  */
8244char $ac_func ();
8245/* The GNU C library defines this for functions which it implements
8246    to always fail with ENOSYS.  Some functions are actually named
8247    something starting with __ and the normal name is an alias.  */
8248#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8249choke me
8250#else
8251char (*f) () = $ac_func;
8252#endif
8253#ifdef __cplusplus
8254}
8255#endif
8256
8257int
8258main ()
8259{
8260return f != $ac_func;
8261  ;
8262  return 0;
8263}
8264_ACEOF
8265rm -f conftest.$ac_objext conftest$ac_exeext
8266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8267  (eval $ac_link) 2>conftest.er1
8268  ac_status=$?
8269  grep -v '^ *+' conftest.er1 >conftest.err
8270  rm -f conftest.er1
8271  cat conftest.err >&5
8272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273  (exit $ac_status); } &&
8274	 { ac_try='test -z "$ac_c_werror_flag"
8275			 || test ! -s conftest.err'
8276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8277  (eval $ac_try) 2>&5
8278  ac_status=$?
8279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280  (exit $ac_status); }; } &&
8281	 { ac_try='test -s conftest$ac_exeext'
8282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8283  (eval $ac_try) 2>&5
8284  ac_status=$?
8285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286  (exit $ac_status); }; }; then
8287  eval "$as_ac_var=yes"
8288else
8289  echo "$as_me: failed program was:" >&5
8290sed 's/^/| /' conftest.$ac_ext >&5
8291
8292eval "$as_ac_var=no"
8293fi
8294rm -f conftest.err conftest.$ac_objext \
8295      conftest$ac_exeext conftest.$ac_ext
8296fi
8297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8298echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8299if test `eval echo '${'$as_ac_var'}'` = yes; then
8300  cat >>confdefs.h <<_ACEOF
8301#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8302_ACEOF
8303
8304fi
8305done
8306
8307  LIBS="$lt_save_LIBS"
8308fi
8309ac_ext=c
8310ac_cpp='$CPP $CPPFLAGS'
8311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8313ac_compiler_gnu=$ac_cv_c_compiler_gnu
8314
8315
8316
8317echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8318echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8319if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8320  echo $ECHO_N "(cached) $ECHO_C" >&6
8321else
8322  ac_cv_sys_symbol_underscore=no
8323  cat > conftest.$ac_ext <<EOF
8324void nm_test_func(){}
8325int main(){nm_test_func;return 0;}
8326EOF
8327  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8328  (eval $ac_compile) 2>&5
8329  ac_status=$?
8330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331  (exit $ac_status); }; then
8332    # Now try to grab the symbols.
8333    ac_nlist=conftest.nm
8334    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8335  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8336  ac_status=$?
8337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338  (exit $ac_status); } && test -s "$ac_nlist"; then
8339      # See whether the symbols have a leading underscore.
8340      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8341        ac_cv_sys_symbol_underscore=yes
8342      else
8343        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8344	  :
8345        else
8346	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8347        fi
8348      fi
8349    else
8350      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8351    fi
8352  else
8353    echo "configure: failed program was:" >&5
8354    cat conftest.c >&5
8355  fi
8356  rm -rf conftest*
8357
8358fi
8359echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8360echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8361
8362
8363if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8364  if test x"$libltdl_cv_func_dlopen" = xyes ||
8365     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8366	echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8367echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8368if test "${libltdl_cv_need_uscore+set}" = set; then
8369  echo $ECHO_N "(cached) $ECHO_C" >&6
8370else
8371  libltdl_cv_need_uscore=unknown
8372          save_LIBS="$LIBS"
8373          LIBS="$LIBS $LIBADD_DL"
8374	  if test "$cross_compiling" = yes; then :
8375  libltdl_cv_need_uscore=cross
8376else
8377  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8378  lt_status=$lt_dlunknown
8379  cat > conftest.$ac_ext <<EOF
8380#line 8380 "configure"
8381#include "confdefs.h"
8382
8383#if HAVE_DLFCN_H
8384#include <dlfcn.h>
8385#endif
8386
8387#include <stdio.h>
8388
8389#ifdef RTLD_GLOBAL
8390#  define LT_DLGLOBAL		RTLD_GLOBAL
8391#else
8392#  ifdef DL_GLOBAL
8393#    define LT_DLGLOBAL		DL_GLOBAL
8394#  else
8395#    define LT_DLGLOBAL		0
8396#  endif
8397#endif
8398
8399/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8400   find out it does not work in some platform. */
8401#ifndef LT_DLLAZY_OR_NOW
8402#  ifdef RTLD_LAZY
8403#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8404#  else
8405#    ifdef DL_LAZY
8406#      define LT_DLLAZY_OR_NOW		DL_LAZY
8407#    else
8408#      ifdef RTLD_NOW
8409#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8410#      else
8411#        ifdef DL_NOW
8412#          define LT_DLLAZY_OR_NOW	DL_NOW
8413#        else
8414#          define LT_DLLAZY_OR_NOW	0
8415#        endif
8416#      endif
8417#    endif
8418#  endif
8419#endif
8420
8421#ifdef __cplusplus
8422extern "C" void exit (int);
8423#endif
8424
8425void fnord() { int i=42;}
8426int main ()
8427{
8428  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8429  int status = $lt_dlunknown;
8430
8431  if (self)
8432    {
8433      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8434      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8435      /* dlclose (self); */
8436    }
8437
8438    exit (status);
8439}
8440EOF
8441  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8442  (eval $ac_link) 2>&5
8443  ac_status=$?
8444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8446    (./conftest; exit; ) 2>/dev/null
8447    lt_status=$?
8448    case x$lt_status in
8449      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8450      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8451      x$lt_unknown|x*)  ;;
8452    esac
8453  else :
8454    # compilation failed
8455
8456  fi
8457fi
8458rm -fr conftest*
8459
8460	  LIBS="$save_LIBS"
8461
8462fi
8463echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8464echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8465  fi
8466fi
8467
8468if test x"$libltdl_cv_need_uscore" = xyes; then
8469
8470cat >>confdefs.h <<\_ACEOF
8471#define NEED_USCORE 1
8472_ACEOF
8473
8474fi
8475
8476
8477echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8478echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8479if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8480  echo $ECHO_N "(cached) $ECHO_C" >&6
8481else
8482  # PORTME does your system automatically load deplibs for dlopen?
8483  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8484  # For now, we just catch OSes we know something about -- in the
8485  # future, we'll try test this programmatically.
8486  libltdl_cv_sys_dlopen_deplibs=unknown
8487  case "$host_os" in
8488  aix3*|aix4.1.*|aix4.2.*)
8489    # Unknown whether this is true for these versions of AIX, but
8490    # we want this `case' here to explicitly catch those versions.
8491    libltdl_cv_sys_dlopen_deplibs=unknown
8492    ;;
8493  aix[45]*)
8494    libltdl_cv_sys_dlopen_deplibs=yes
8495    ;;
8496  darwin*)
8497    # Assuming the user has installed a libdl from somewhere, this is true
8498    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8499    libltdl_cv_sys_dlopen_deplibs=yes
8500    ;;
8501  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8502    # GNU and its variants, using gnu ld.so (Glibc)
8503    libltdl_cv_sys_dlopen_deplibs=yes
8504    ;;
8505  hpux10*|hpux11*)
8506    libltdl_cv_sys_dlopen_deplibs=yes
8507    ;;
8508  irix[12345]*|irix6.[01]*)
8509    # Catch all versions of IRIX before 6.2, and indicate that we don't
8510    # know how it worked for any of those versions.
8511    libltdl_cv_sys_dlopen_deplibs=unknown
8512    ;;
8513  irix*)
8514    # The case above catches anything before 6.2, and it's known that
8515    # at 6.2 and later dlopen does load deplibs.
8516    libltdl_cv_sys_dlopen_deplibs=yes
8517    ;;
8518  netbsd*)
8519    libltdl_cv_sys_dlopen_deplibs=yes
8520    ;;
8521  openbsd*)
8522    libltdl_cv_sys_dlopen_deplibs=yes
8523    ;;
8524  osf[1234]*)
8525    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8526    # it did *not* use an RPATH in a shared library to find objects the
8527    # library depends on, so we explictly say `no'.
8528    libltdl_cv_sys_dlopen_deplibs=no
8529    ;;
8530  osf5.0|osf5.0a|osf5.1)
8531    # dlopen *does* load deplibs and with the right loader patch applied
8532    # it even uses RPATH in a shared library to search for shared objects
8533    # that the library depends on, but there's no easy way to know if that
8534    # patch is installed.  Since this is the case, all we can really
8535    # say is unknown -- it depends on the patch being installed.  If
8536    # it is, this changes to `yes'.  Without it, it would be `no'.
8537    libltdl_cv_sys_dlopen_deplibs=unknown
8538    ;;
8539  osf*)
8540    # the two cases above should catch all versions of osf <= 5.1.  Read
8541    # the comments above for what we know about them.
8542    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8543    # is used to find them so we can finally say `yes'.
8544    libltdl_cv_sys_dlopen_deplibs=yes
8545    ;;
8546  solaris*)
8547    libltdl_cv_sys_dlopen_deplibs=yes
8548    ;;
8549  esac
8550
8551fi
8552echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8553echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8554if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8555
8556cat >>confdefs.h <<\_ACEOF
8557#define LTDL_DLOPEN_DEPLIBS 1
8558_ACEOF
8559
8560fi
8561
8562
8563for ac_header in argz.h
8564do
8565as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8566if eval "test \"\${$as_ac_Header+set}\" = set"; then
8567  echo "$as_me:$LINENO: checking for $ac_header" >&5
8568echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8569if eval "test \"\${$as_ac_Header+set}\" = set"; then
8570  echo $ECHO_N "(cached) $ECHO_C" >&6
8571fi
8572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8573echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8574else
8575  # Is the header compilable?
8576echo "$as_me:$LINENO: checking $ac_header usability" >&5
8577echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8578cat >conftest.$ac_ext <<_ACEOF
8579/* confdefs.h.  */
8580_ACEOF
8581cat confdefs.h >>conftest.$ac_ext
8582cat >>conftest.$ac_ext <<_ACEOF
8583/* end confdefs.h.  */
8584$ac_includes_default
8585#include <$ac_header>
8586_ACEOF
8587rm -f conftest.$ac_objext
8588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8589  (eval $ac_compile) 2>conftest.er1
8590  ac_status=$?
8591  grep -v '^ *+' conftest.er1 >conftest.err
8592  rm -f conftest.er1
8593  cat conftest.err >&5
8594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595  (exit $ac_status); } &&
8596	 { ac_try='test -z "$ac_c_werror_flag"
8597			 || test ! -s conftest.err'
8598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599  (eval $ac_try) 2>&5
8600  ac_status=$?
8601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602  (exit $ac_status); }; } &&
8603	 { ac_try='test -s conftest.$ac_objext'
8604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605  (eval $ac_try) 2>&5
8606  ac_status=$?
8607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608  (exit $ac_status); }; }; then
8609  ac_header_compiler=yes
8610else
8611  echo "$as_me: failed program was:" >&5
8612sed 's/^/| /' conftest.$ac_ext >&5
8613
8614ac_header_compiler=no
8615fi
8616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8617echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8618echo "${ECHO_T}$ac_header_compiler" >&6
8619
8620# Is the header present?
8621echo "$as_me:$LINENO: checking $ac_header presence" >&5
8622echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8623cat >conftest.$ac_ext <<_ACEOF
8624/* confdefs.h.  */
8625_ACEOF
8626cat confdefs.h >>conftest.$ac_ext
8627cat >>conftest.$ac_ext <<_ACEOF
8628/* end confdefs.h.  */
8629#include <$ac_header>
8630_ACEOF
8631if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8632  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8633  ac_status=$?
8634  grep -v '^ *+' conftest.er1 >conftest.err
8635  rm -f conftest.er1
8636  cat conftest.err >&5
8637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638  (exit $ac_status); } >/dev/null; then
8639  if test -s conftest.err; then
8640    ac_cpp_err=$ac_c_preproc_warn_flag
8641    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8642  else
8643    ac_cpp_err=
8644  fi
8645else
8646  ac_cpp_err=yes
8647fi
8648if test -z "$ac_cpp_err"; then
8649  ac_header_preproc=yes
8650else
8651  echo "$as_me: failed program was:" >&5
8652sed 's/^/| /' conftest.$ac_ext >&5
8653
8654  ac_header_preproc=no
8655fi
8656rm -f conftest.err conftest.$ac_ext
8657echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8658echo "${ECHO_T}$ac_header_preproc" >&6
8659
8660# So?  What about this header?
8661case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8662  yes:no: )
8663    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8664echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8665    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8666echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8667    ac_header_preproc=yes
8668    ;;
8669  no:yes:* )
8670    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8671echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8672    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8673echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8674    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8675echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8676    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8677echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8678    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8679echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8680    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8681echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8682    (
8683      cat <<\_ASBOX
8684## ----------------------------------- ##
8685## Report this to llvmbugs@cs.uiuc.edu ##
8686## ----------------------------------- ##
8687_ASBOX
8688    ) |
8689      sed "s/^/$as_me: WARNING:     /" >&2
8690    ;;
8691esac
8692echo "$as_me:$LINENO: checking for $ac_header" >&5
8693echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8694if eval "test \"\${$as_ac_Header+set}\" = set"; then
8695  echo $ECHO_N "(cached) $ECHO_C" >&6
8696else
8697  eval "$as_ac_Header=\$ac_header_preproc"
8698fi
8699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8700echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8701
8702fi
8703if test `eval echo '${'$as_ac_Header'}'` = yes; then
8704  cat >>confdefs.h <<_ACEOF
8705#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8706_ACEOF
8707
8708fi
8709
8710done
8711
8712
8713echo "$as_me:$LINENO: checking for error_t" >&5
8714echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8715if test "${ac_cv_type_error_t+set}" = set; then
8716  echo $ECHO_N "(cached) $ECHO_C" >&6
8717else
8718  cat >conftest.$ac_ext <<_ACEOF
8719/* confdefs.h.  */
8720_ACEOF
8721cat confdefs.h >>conftest.$ac_ext
8722cat >>conftest.$ac_ext <<_ACEOF
8723/* end confdefs.h.  */
8724#if HAVE_ARGZ_H
8725#  include <argz.h>
8726#endif
8727
8728int
8729main ()
8730{
8731if ((error_t *) 0)
8732  return 0;
8733if (sizeof (error_t))
8734  return 0;
8735  ;
8736  return 0;
8737}
8738_ACEOF
8739rm -f conftest.$ac_objext
8740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8741  (eval $ac_compile) 2>conftest.er1
8742  ac_status=$?
8743  grep -v '^ *+' conftest.er1 >conftest.err
8744  rm -f conftest.er1
8745  cat conftest.err >&5
8746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747  (exit $ac_status); } &&
8748	 { ac_try='test -z "$ac_c_werror_flag"
8749			 || test ! -s conftest.err'
8750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8751  (eval $ac_try) 2>&5
8752  ac_status=$?
8753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754  (exit $ac_status); }; } &&
8755	 { ac_try='test -s conftest.$ac_objext'
8756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8757  (eval $ac_try) 2>&5
8758  ac_status=$?
8759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760  (exit $ac_status); }; }; then
8761  ac_cv_type_error_t=yes
8762else
8763  echo "$as_me: failed program was:" >&5
8764sed 's/^/| /' conftest.$ac_ext >&5
8765
8766ac_cv_type_error_t=no
8767fi
8768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8769fi
8770echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8771echo "${ECHO_T}$ac_cv_type_error_t" >&6
8772if test $ac_cv_type_error_t = yes; then
8773
8774cat >>confdefs.h <<_ACEOF
8775#define HAVE_ERROR_T 1
8776_ACEOF
8777
8778
8779else
8780
8781cat >>confdefs.h <<\_ACEOF
8782#define error_t int
8783_ACEOF
8784
8785fi
8786
8787
8788
8789
8790
8791
8792
8793for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8794do
8795as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8796echo "$as_me:$LINENO: checking for $ac_func" >&5
8797echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8798if eval "test \"\${$as_ac_var+set}\" = set"; then
8799  echo $ECHO_N "(cached) $ECHO_C" >&6
8800else
8801  cat >conftest.$ac_ext <<_ACEOF
8802/* confdefs.h.  */
8803_ACEOF
8804cat confdefs.h >>conftest.$ac_ext
8805cat >>conftest.$ac_ext <<_ACEOF
8806/* end confdefs.h.  */
8807/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8808   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8809#define $ac_func innocuous_$ac_func
8810
8811/* System header to define __stub macros and hopefully few prototypes,
8812    which can conflict with char $ac_func (); below.
8813    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8814    <limits.h> exists even on freestanding compilers.  */
8815
8816#ifdef __STDC__
8817# include <limits.h>
8818#else
8819# include <assert.h>
8820#endif
8821
8822#undef $ac_func
8823
8824/* Override any gcc2 internal prototype to avoid an error.  */
8825#ifdef __cplusplus
8826extern "C"
8827{
8828#endif
8829/* We use char because int might match the return type of a gcc2
8830   builtin and then its argument prototype would still apply.  */
8831char $ac_func ();
8832/* The GNU C library defines this for functions which it implements
8833    to always fail with ENOSYS.  Some functions are actually named
8834    something starting with __ and the normal name is an alias.  */
8835#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8836choke me
8837#else
8838char (*f) () = $ac_func;
8839#endif
8840#ifdef __cplusplus
8841}
8842#endif
8843
8844int
8845main ()
8846{
8847return f != $ac_func;
8848  ;
8849  return 0;
8850}
8851_ACEOF
8852rm -f conftest.$ac_objext conftest$ac_exeext
8853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8854  (eval $ac_link) 2>conftest.er1
8855  ac_status=$?
8856  grep -v '^ *+' conftest.er1 >conftest.err
8857  rm -f conftest.er1
8858  cat conftest.err >&5
8859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860  (exit $ac_status); } &&
8861	 { ac_try='test -z "$ac_c_werror_flag"
8862			 || test ! -s conftest.err'
8863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864  (eval $ac_try) 2>&5
8865  ac_status=$?
8866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867  (exit $ac_status); }; } &&
8868	 { ac_try='test -s conftest$ac_exeext'
8869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870  (eval $ac_try) 2>&5
8871  ac_status=$?
8872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873  (exit $ac_status); }; }; then
8874  eval "$as_ac_var=yes"
8875else
8876  echo "$as_me: failed program was:" >&5
8877sed 's/^/| /' conftest.$ac_ext >&5
8878
8879eval "$as_ac_var=no"
8880fi
8881rm -f conftest.err conftest.$ac_objext \
8882      conftest$ac_exeext conftest.$ac_ext
8883fi
8884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8885echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8886if test `eval echo '${'$as_ac_var'}'` = yes; then
8887  cat >>confdefs.h <<_ACEOF
8888#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8889_ACEOF
8890
8891fi
8892done
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8922		  stdio.h unistd.h
8923do
8924as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8925if eval "test \"\${$as_ac_Header+set}\" = set"; then
8926  echo "$as_me:$LINENO: checking for $ac_header" >&5
8927echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8928if eval "test \"\${$as_ac_Header+set}\" = set"; then
8929  echo $ECHO_N "(cached) $ECHO_C" >&6
8930fi
8931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8932echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8933else
8934  # Is the header compilable?
8935echo "$as_me:$LINENO: checking $ac_header usability" >&5
8936echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8937cat >conftest.$ac_ext <<_ACEOF
8938/* confdefs.h.  */
8939_ACEOF
8940cat confdefs.h >>conftest.$ac_ext
8941cat >>conftest.$ac_ext <<_ACEOF
8942/* end confdefs.h.  */
8943$ac_includes_default
8944#include <$ac_header>
8945_ACEOF
8946rm -f conftest.$ac_objext
8947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8948  (eval $ac_compile) 2>conftest.er1
8949  ac_status=$?
8950  grep -v '^ *+' conftest.er1 >conftest.err
8951  rm -f conftest.er1
8952  cat conftest.err >&5
8953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954  (exit $ac_status); } &&
8955	 { ac_try='test -z "$ac_c_werror_flag"
8956			 || test ! -s conftest.err'
8957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958  (eval $ac_try) 2>&5
8959  ac_status=$?
8960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961  (exit $ac_status); }; } &&
8962	 { ac_try='test -s conftest.$ac_objext'
8963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964  (eval $ac_try) 2>&5
8965  ac_status=$?
8966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967  (exit $ac_status); }; }; then
8968  ac_header_compiler=yes
8969else
8970  echo "$as_me: failed program was:" >&5
8971sed 's/^/| /' conftest.$ac_ext >&5
8972
8973ac_header_compiler=no
8974fi
8975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8976echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8977echo "${ECHO_T}$ac_header_compiler" >&6
8978
8979# Is the header present?
8980echo "$as_me:$LINENO: checking $ac_header presence" >&5
8981echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8982cat >conftest.$ac_ext <<_ACEOF
8983/* confdefs.h.  */
8984_ACEOF
8985cat confdefs.h >>conftest.$ac_ext
8986cat >>conftest.$ac_ext <<_ACEOF
8987/* end confdefs.h.  */
8988#include <$ac_header>
8989_ACEOF
8990if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8991  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8992  ac_status=$?
8993  grep -v '^ *+' conftest.er1 >conftest.err
8994  rm -f conftest.er1
8995  cat conftest.err >&5
8996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997  (exit $ac_status); } >/dev/null; then
8998  if test -s conftest.err; then
8999    ac_cpp_err=$ac_c_preproc_warn_flag
9000    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9001  else
9002    ac_cpp_err=
9003  fi
9004else
9005  ac_cpp_err=yes
9006fi
9007if test -z "$ac_cpp_err"; then
9008  ac_header_preproc=yes
9009else
9010  echo "$as_me: failed program was:" >&5
9011sed 's/^/| /' conftest.$ac_ext >&5
9012
9013  ac_header_preproc=no
9014fi
9015rm -f conftest.err conftest.$ac_ext
9016echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9017echo "${ECHO_T}$ac_header_preproc" >&6
9018
9019# So?  What about this header?
9020case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9021  yes:no: )
9022    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9023echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9024    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9025echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9026    ac_header_preproc=yes
9027    ;;
9028  no:yes:* )
9029    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9030echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9031    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9032echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9033    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9034echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9035    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9036echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9037    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9038echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9039    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9040echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9041    (
9042      cat <<\_ASBOX
9043## ----------------------------------- ##
9044## Report this to llvmbugs@cs.uiuc.edu ##
9045## ----------------------------------- ##
9046_ASBOX
9047    ) |
9048      sed "s/^/$as_me: WARNING:     /" >&2
9049    ;;
9050esac
9051echo "$as_me:$LINENO: checking for $ac_header" >&5
9052echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9053if eval "test \"\${$as_ac_Header+set}\" = set"; then
9054  echo $ECHO_N "(cached) $ECHO_C" >&6
9055else
9056  eval "$as_ac_Header=\$ac_header_preproc"
9057fi
9058echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9059echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9060
9061fi
9062if test `eval echo '${'$as_ac_Header'}'` = yes; then
9063  cat >>confdefs.h <<_ACEOF
9064#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9065_ACEOF
9066
9067fi
9068
9069done
9070
9071
9072
9073
9074
9075for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9076do
9077as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9078if eval "test \"\${$as_ac_Header+set}\" = set"; then
9079  echo "$as_me:$LINENO: checking for $ac_header" >&5
9080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9081if eval "test \"\${$as_ac_Header+set}\" = set"; then
9082  echo $ECHO_N "(cached) $ECHO_C" >&6
9083fi
9084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9085echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9086else
9087  # Is the header compilable?
9088echo "$as_me:$LINENO: checking $ac_header usability" >&5
9089echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9090cat >conftest.$ac_ext <<_ACEOF
9091/* confdefs.h.  */
9092_ACEOF
9093cat confdefs.h >>conftest.$ac_ext
9094cat >>conftest.$ac_ext <<_ACEOF
9095/* end confdefs.h.  */
9096$ac_includes_default
9097#include <$ac_header>
9098_ACEOF
9099rm -f conftest.$ac_objext
9100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9101  (eval $ac_compile) 2>conftest.er1
9102  ac_status=$?
9103  grep -v '^ *+' conftest.er1 >conftest.err
9104  rm -f conftest.er1
9105  cat conftest.err >&5
9106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107  (exit $ac_status); } &&
9108	 { ac_try='test -z "$ac_c_werror_flag"
9109			 || test ! -s conftest.err'
9110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111  (eval $ac_try) 2>&5
9112  ac_status=$?
9113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114  (exit $ac_status); }; } &&
9115	 { ac_try='test -s conftest.$ac_objext'
9116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117  (eval $ac_try) 2>&5
9118  ac_status=$?
9119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120  (exit $ac_status); }; }; then
9121  ac_header_compiler=yes
9122else
9123  echo "$as_me: failed program was:" >&5
9124sed 's/^/| /' conftest.$ac_ext >&5
9125
9126ac_header_compiler=no
9127fi
9128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9129echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9130echo "${ECHO_T}$ac_header_compiler" >&6
9131
9132# Is the header present?
9133echo "$as_me:$LINENO: checking $ac_header presence" >&5
9134echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9135cat >conftest.$ac_ext <<_ACEOF
9136/* confdefs.h.  */
9137_ACEOF
9138cat confdefs.h >>conftest.$ac_ext
9139cat >>conftest.$ac_ext <<_ACEOF
9140/* end confdefs.h.  */
9141#include <$ac_header>
9142_ACEOF
9143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9144  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9145  ac_status=$?
9146  grep -v '^ *+' conftest.er1 >conftest.err
9147  rm -f conftest.er1
9148  cat conftest.err >&5
9149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150  (exit $ac_status); } >/dev/null; then
9151  if test -s conftest.err; then
9152    ac_cpp_err=$ac_c_preproc_warn_flag
9153    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9154  else
9155    ac_cpp_err=
9156  fi
9157else
9158  ac_cpp_err=yes
9159fi
9160if test -z "$ac_cpp_err"; then
9161  ac_header_preproc=yes
9162else
9163  echo "$as_me: failed program was:" >&5
9164sed 's/^/| /' conftest.$ac_ext >&5
9165
9166  ac_header_preproc=no
9167fi
9168rm -f conftest.err conftest.$ac_ext
9169echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9170echo "${ECHO_T}$ac_header_preproc" >&6
9171
9172# So?  What about this header?
9173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9174  yes:no: )
9175    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9176echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9177    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9178echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9179    ac_header_preproc=yes
9180    ;;
9181  no:yes:* )
9182    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9183echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9184    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9185echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9186    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9187echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9188    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9189echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9190    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9191echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9192    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9193echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9194    (
9195      cat <<\_ASBOX
9196## ----------------------------------- ##
9197## Report this to llvmbugs@cs.uiuc.edu ##
9198## ----------------------------------- ##
9199_ASBOX
9200    ) |
9201      sed "s/^/$as_me: WARNING:     /" >&2
9202    ;;
9203esac
9204echo "$as_me:$LINENO: checking for $ac_header" >&5
9205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9206if eval "test \"\${$as_ac_Header+set}\" = set"; then
9207  echo $ECHO_N "(cached) $ECHO_C" >&6
9208else
9209  eval "$as_ac_Header=\$ac_header_preproc"
9210fi
9211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9212echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9213
9214fi
9215if test `eval echo '${'$as_ac_Header'}'` = yes; then
9216  cat >>confdefs.h <<_ACEOF
9217#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9218_ACEOF
9219
9220fi
9221
9222done
9223
9224
9225
9226for ac_header in string.h strings.h
9227do
9228as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9229if eval "test \"\${$as_ac_Header+set}\" = set"; then
9230  echo "$as_me:$LINENO: checking for $ac_header" >&5
9231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9232if eval "test \"\${$as_ac_Header+set}\" = set"; then
9233  echo $ECHO_N "(cached) $ECHO_C" >&6
9234fi
9235echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9236echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9237else
9238  # Is the header compilable?
9239echo "$as_me:$LINENO: checking $ac_header usability" >&5
9240echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9241cat >conftest.$ac_ext <<_ACEOF
9242/* confdefs.h.  */
9243_ACEOF
9244cat confdefs.h >>conftest.$ac_ext
9245cat >>conftest.$ac_ext <<_ACEOF
9246/* end confdefs.h.  */
9247$ac_includes_default
9248#include <$ac_header>
9249_ACEOF
9250rm -f conftest.$ac_objext
9251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9252  (eval $ac_compile) 2>conftest.er1
9253  ac_status=$?
9254  grep -v '^ *+' conftest.er1 >conftest.err
9255  rm -f conftest.er1
9256  cat conftest.err >&5
9257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258  (exit $ac_status); } &&
9259	 { ac_try='test -z "$ac_c_werror_flag"
9260			 || test ! -s conftest.err'
9261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262  (eval $ac_try) 2>&5
9263  ac_status=$?
9264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265  (exit $ac_status); }; } &&
9266	 { ac_try='test -s conftest.$ac_objext'
9267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268  (eval $ac_try) 2>&5
9269  ac_status=$?
9270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271  (exit $ac_status); }; }; then
9272  ac_header_compiler=yes
9273else
9274  echo "$as_me: failed program was:" >&5
9275sed 's/^/| /' conftest.$ac_ext >&5
9276
9277ac_header_compiler=no
9278fi
9279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9280echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9281echo "${ECHO_T}$ac_header_compiler" >&6
9282
9283# Is the header present?
9284echo "$as_me:$LINENO: checking $ac_header presence" >&5
9285echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9286cat >conftest.$ac_ext <<_ACEOF
9287/* confdefs.h.  */
9288_ACEOF
9289cat confdefs.h >>conftest.$ac_ext
9290cat >>conftest.$ac_ext <<_ACEOF
9291/* end confdefs.h.  */
9292#include <$ac_header>
9293_ACEOF
9294if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9295  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9296  ac_status=$?
9297  grep -v '^ *+' conftest.er1 >conftest.err
9298  rm -f conftest.er1
9299  cat conftest.err >&5
9300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301  (exit $ac_status); } >/dev/null; then
9302  if test -s conftest.err; then
9303    ac_cpp_err=$ac_c_preproc_warn_flag
9304    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9305  else
9306    ac_cpp_err=
9307  fi
9308else
9309  ac_cpp_err=yes
9310fi
9311if test -z "$ac_cpp_err"; then
9312  ac_header_preproc=yes
9313else
9314  echo "$as_me: failed program was:" >&5
9315sed 's/^/| /' conftest.$ac_ext >&5
9316
9317  ac_header_preproc=no
9318fi
9319rm -f conftest.err conftest.$ac_ext
9320echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9321echo "${ECHO_T}$ac_header_preproc" >&6
9322
9323# So?  What about this header?
9324case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9325  yes:no: )
9326    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9327echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9328    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9329echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9330    ac_header_preproc=yes
9331    ;;
9332  no:yes:* )
9333    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9334echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9335    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9336echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9337    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9338echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9339    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9340echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9341    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9342echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9343    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9344echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9345    (
9346      cat <<\_ASBOX
9347## ----------------------------------- ##
9348## Report this to llvmbugs@cs.uiuc.edu ##
9349## ----------------------------------- ##
9350_ASBOX
9351    ) |
9352      sed "s/^/$as_me: WARNING:     /" >&2
9353    ;;
9354esac
9355echo "$as_me:$LINENO: checking for $ac_header" >&5
9356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9357if eval "test \"\${$as_ac_Header+set}\" = set"; then
9358  echo $ECHO_N "(cached) $ECHO_C" >&6
9359else
9360  eval "$as_ac_Header=\$ac_header_preproc"
9361fi
9362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9363echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9364
9365fi
9366if test `eval echo '${'$as_ac_Header'}'` = yes; then
9367  cat >>confdefs.h <<_ACEOF
9368#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9369_ACEOF
9370 break
9371fi
9372
9373done
9374
9375
9376
9377
9378for ac_func in strchr index
9379do
9380as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9381echo "$as_me:$LINENO: checking for $ac_func" >&5
9382echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9383if eval "test \"\${$as_ac_var+set}\" = set"; then
9384  echo $ECHO_N "(cached) $ECHO_C" >&6
9385else
9386  cat >conftest.$ac_ext <<_ACEOF
9387/* confdefs.h.  */
9388_ACEOF
9389cat confdefs.h >>conftest.$ac_ext
9390cat >>conftest.$ac_ext <<_ACEOF
9391/* end confdefs.h.  */
9392/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9393   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9394#define $ac_func innocuous_$ac_func
9395
9396/* System header to define __stub macros and hopefully few prototypes,
9397    which can conflict with char $ac_func (); below.
9398    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9399    <limits.h> exists even on freestanding compilers.  */
9400
9401#ifdef __STDC__
9402# include <limits.h>
9403#else
9404# include <assert.h>
9405#endif
9406
9407#undef $ac_func
9408
9409/* Override any gcc2 internal prototype to avoid an error.  */
9410#ifdef __cplusplus
9411extern "C"
9412{
9413#endif
9414/* We use char because int might match the return type of a gcc2
9415   builtin and then its argument prototype would still apply.  */
9416char $ac_func ();
9417/* The GNU C library defines this for functions which it implements
9418    to always fail with ENOSYS.  Some functions are actually named
9419    something starting with __ and the normal name is an alias.  */
9420#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9421choke me
9422#else
9423char (*f) () = $ac_func;
9424#endif
9425#ifdef __cplusplus
9426}
9427#endif
9428
9429int
9430main ()
9431{
9432return f != $ac_func;
9433  ;
9434  return 0;
9435}
9436_ACEOF
9437rm -f conftest.$ac_objext conftest$ac_exeext
9438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9439  (eval $ac_link) 2>conftest.er1
9440  ac_status=$?
9441  grep -v '^ *+' conftest.er1 >conftest.err
9442  rm -f conftest.er1
9443  cat conftest.err >&5
9444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445  (exit $ac_status); } &&
9446	 { ac_try='test -z "$ac_c_werror_flag"
9447			 || test ! -s conftest.err'
9448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449  (eval $ac_try) 2>&5
9450  ac_status=$?
9451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452  (exit $ac_status); }; } &&
9453	 { ac_try='test -s conftest$ac_exeext'
9454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455  (eval $ac_try) 2>&5
9456  ac_status=$?
9457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458  (exit $ac_status); }; }; then
9459  eval "$as_ac_var=yes"
9460else
9461  echo "$as_me: failed program was:" >&5
9462sed 's/^/| /' conftest.$ac_ext >&5
9463
9464eval "$as_ac_var=no"
9465fi
9466rm -f conftest.err conftest.$ac_objext \
9467      conftest$ac_exeext conftest.$ac_ext
9468fi
9469echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9470echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9471if test `eval echo '${'$as_ac_var'}'` = yes; then
9472  cat >>confdefs.h <<_ACEOF
9473#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9474_ACEOF
9475 break
9476fi
9477done
9478
9479
9480
9481for ac_func in strrchr rindex
9482do
9483as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9484echo "$as_me:$LINENO: checking for $ac_func" >&5
9485echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9486if eval "test \"\${$as_ac_var+set}\" = set"; then
9487  echo $ECHO_N "(cached) $ECHO_C" >&6
9488else
9489  cat >conftest.$ac_ext <<_ACEOF
9490/* confdefs.h.  */
9491_ACEOF
9492cat confdefs.h >>conftest.$ac_ext
9493cat >>conftest.$ac_ext <<_ACEOF
9494/* end confdefs.h.  */
9495/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9496   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9497#define $ac_func innocuous_$ac_func
9498
9499/* System header to define __stub macros and hopefully few prototypes,
9500    which can conflict with char $ac_func (); below.
9501    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9502    <limits.h> exists even on freestanding compilers.  */
9503
9504#ifdef __STDC__
9505# include <limits.h>
9506#else
9507# include <assert.h>
9508#endif
9509
9510#undef $ac_func
9511
9512/* Override any gcc2 internal prototype to avoid an error.  */
9513#ifdef __cplusplus
9514extern "C"
9515{
9516#endif
9517/* We use char because int might match the return type of a gcc2
9518   builtin and then its argument prototype would still apply.  */
9519char $ac_func ();
9520/* The GNU C library defines this for functions which it implements
9521    to always fail with ENOSYS.  Some functions are actually named
9522    something starting with __ and the normal name is an alias.  */
9523#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9524choke me
9525#else
9526char (*f) () = $ac_func;
9527#endif
9528#ifdef __cplusplus
9529}
9530#endif
9531
9532int
9533main ()
9534{
9535return f != $ac_func;
9536  ;
9537  return 0;
9538}
9539_ACEOF
9540rm -f conftest.$ac_objext conftest$ac_exeext
9541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9542  (eval $ac_link) 2>conftest.er1
9543  ac_status=$?
9544  grep -v '^ *+' conftest.er1 >conftest.err
9545  rm -f conftest.er1
9546  cat conftest.err >&5
9547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548  (exit $ac_status); } &&
9549	 { ac_try='test -z "$ac_c_werror_flag"
9550			 || test ! -s conftest.err'
9551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552  (eval $ac_try) 2>&5
9553  ac_status=$?
9554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555  (exit $ac_status); }; } &&
9556	 { ac_try='test -s conftest$ac_exeext'
9557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558  (eval $ac_try) 2>&5
9559  ac_status=$?
9560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561  (exit $ac_status); }; }; then
9562  eval "$as_ac_var=yes"
9563else
9564  echo "$as_me: failed program was:" >&5
9565sed 's/^/| /' conftest.$ac_ext >&5
9566
9567eval "$as_ac_var=no"
9568fi
9569rm -f conftest.err conftest.$ac_objext \
9570      conftest$ac_exeext conftest.$ac_ext
9571fi
9572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9573echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9574if test `eval echo '${'$as_ac_var'}'` = yes; then
9575  cat >>confdefs.h <<_ACEOF
9576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9577_ACEOF
9578 break
9579fi
9580done
9581
9582
9583
9584for ac_func in memcpy bcopy
9585do
9586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9587echo "$as_me:$LINENO: checking for $ac_func" >&5
9588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9589if eval "test \"\${$as_ac_var+set}\" = set"; then
9590  echo $ECHO_N "(cached) $ECHO_C" >&6
9591else
9592  cat >conftest.$ac_ext <<_ACEOF
9593/* confdefs.h.  */
9594_ACEOF
9595cat confdefs.h >>conftest.$ac_ext
9596cat >>conftest.$ac_ext <<_ACEOF
9597/* end confdefs.h.  */
9598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9599   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9600#define $ac_func innocuous_$ac_func
9601
9602/* System header to define __stub macros and hopefully few prototypes,
9603    which can conflict with char $ac_func (); below.
9604    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9605    <limits.h> exists even on freestanding compilers.  */
9606
9607#ifdef __STDC__
9608# include <limits.h>
9609#else
9610# include <assert.h>
9611#endif
9612
9613#undef $ac_func
9614
9615/* Override any gcc2 internal prototype to avoid an error.  */
9616#ifdef __cplusplus
9617extern "C"
9618{
9619#endif
9620/* We use char because int might match the return type of a gcc2
9621   builtin and then its argument prototype would still apply.  */
9622char $ac_func ();
9623/* The GNU C library defines this for functions which it implements
9624    to always fail with ENOSYS.  Some functions are actually named
9625    something starting with __ and the normal name is an alias.  */
9626#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9627choke me
9628#else
9629char (*f) () = $ac_func;
9630#endif
9631#ifdef __cplusplus
9632}
9633#endif
9634
9635int
9636main ()
9637{
9638return f != $ac_func;
9639  ;
9640  return 0;
9641}
9642_ACEOF
9643rm -f conftest.$ac_objext conftest$ac_exeext
9644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9645  (eval $ac_link) 2>conftest.er1
9646  ac_status=$?
9647  grep -v '^ *+' conftest.er1 >conftest.err
9648  rm -f conftest.er1
9649  cat conftest.err >&5
9650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651  (exit $ac_status); } &&
9652	 { ac_try='test -z "$ac_c_werror_flag"
9653			 || test ! -s conftest.err'
9654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655  (eval $ac_try) 2>&5
9656  ac_status=$?
9657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658  (exit $ac_status); }; } &&
9659	 { ac_try='test -s conftest$ac_exeext'
9660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9661  (eval $ac_try) 2>&5
9662  ac_status=$?
9663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664  (exit $ac_status); }; }; then
9665  eval "$as_ac_var=yes"
9666else
9667  echo "$as_me: failed program was:" >&5
9668sed 's/^/| /' conftest.$ac_ext >&5
9669
9670eval "$as_ac_var=no"
9671fi
9672rm -f conftest.err conftest.$ac_objext \
9673      conftest$ac_exeext conftest.$ac_ext
9674fi
9675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9676echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9677if test `eval echo '${'$as_ac_var'}'` = yes; then
9678  cat >>confdefs.h <<_ACEOF
9679#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9680_ACEOF
9681 break
9682fi
9683done
9684
9685
9686
9687for ac_func in memmove strcmp
9688do
9689as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9690echo "$as_me:$LINENO: checking for $ac_func" >&5
9691echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9692if eval "test \"\${$as_ac_var+set}\" = set"; then
9693  echo $ECHO_N "(cached) $ECHO_C" >&6
9694else
9695  cat >conftest.$ac_ext <<_ACEOF
9696/* confdefs.h.  */
9697_ACEOF
9698cat confdefs.h >>conftest.$ac_ext
9699cat >>conftest.$ac_ext <<_ACEOF
9700/* end confdefs.h.  */
9701/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9702   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9703#define $ac_func innocuous_$ac_func
9704
9705/* System header to define __stub macros and hopefully few prototypes,
9706    which can conflict with char $ac_func (); below.
9707    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9708    <limits.h> exists even on freestanding compilers.  */
9709
9710#ifdef __STDC__
9711# include <limits.h>
9712#else
9713# include <assert.h>
9714#endif
9715
9716#undef $ac_func
9717
9718/* Override any gcc2 internal prototype to avoid an error.  */
9719#ifdef __cplusplus
9720extern "C"
9721{
9722#endif
9723/* We use char because int might match the return type of a gcc2
9724   builtin and then its argument prototype would still apply.  */
9725char $ac_func ();
9726/* The GNU C library defines this for functions which it implements
9727    to always fail with ENOSYS.  Some functions are actually named
9728    something starting with __ and the normal name is an alias.  */
9729#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9730choke me
9731#else
9732char (*f) () = $ac_func;
9733#endif
9734#ifdef __cplusplus
9735}
9736#endif
9737
9738int
9739main ()
9740{
9741return f != $ac_func;
9742  ;
9743  return 0;
9744}
9745_ACEOF
9746rm -f conftest.$ac_objext conftest$ac_exeext
9747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9748  (eval $ac_link) 2>conftest.er1
9749  ac_status=$?
9750  grep -v '^ *+' conftest.er1 >conftest.err
9751  rm -f conftest.er1
9752  cat conftest.err >&5
9753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754  (exit $ac_status); } &&
9755	 { ac_try='test -z "$ac_c_werror_flag"
9756			 || test ! -s conftest.err'
9757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758  (eval $ac_try) 2>&5
9759  ac_status=$?
9760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761  (exit $ac_status); }; } &&
9762	 { ac_try='test -s conftest$ac_exeext'
9763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764  (eval $ac_try) 2>&5
9765  ac_status=$?
9766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767  (exit $ac_status); }; }; then
9768  eval "$as_ac_var=yes"
9769else
9770  echo "$as_me: failed program was:" >&5
9771sed 's/^/| /' conftest.$ac_ext >&5
9772
9773eval "$as_ac_var=no"
9774fi
9775rm -f conftest.err conftest.$ac_objext \
9776      conftest$ac_exeext conftest.$ac_ext
9777fi
9778echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9779echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9780if test `eval echo '${'$as_ac_var'}'` = yes; then
9781  cat >>confdefs.h <<_ACEOF
9782#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9783_ACEOF
9784
9785fi
9786done
9787
9788
9789
9790
9791for ac_func in closedir opendir readdir
9792do
9793as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9794echo "$as_me:$LINENO: checking for $ac_func" >&5
9795echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9796if eval "test \"\${$as_ac_var+set}\" = set"; then
9797  echo $ECHO_N "(cached) $ECHO_C" >&6
9798else
9799  cat >conftest.$ac_ext <<_ACEOF
9800/* confdefs.h.  */
9801_ACEOF
9802cat confdefs.h >>conftest.$ac_ext
9803cat >>conftest.$ac_ext <<_ACEOF
9804/* end confdefs.h.  */
9805/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9806   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9807#define $ac_func innocuous_$ac_func
9808
9809/* System header to define __stub macros and hopefully few prototypes,
9810    which can conflict with char $ac_func (); below.
9811    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9812    <limits.h> exists even on freestanding compilers.  */
9813
9814#ifdef __STDC__
9815# include <limits.h>
9816#else
9817# include <assert.h>
9818#endif
9819
9820#undef $ac_func
9821
9822/* Override any gcc2 internal prototype to avoid an error.  */
9823#ifdef __cplusplus
9824extern "C"
9825{
9826#endif
9827/* We use char because int might match the return type of a gcc2
9828   builtin and then its argument prototype would still apply.  */
9829char $ac_func ();
9830/* The GNU C library defines this for functions which it implements
9831    to always fail with ENOSYS.  Some functions are actually named
9832    something starting with __ and the normal name is an alias.  */
9833#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9834choke me
9835#else
9836char (*f) () = $ac_func;
9837#endif
9838#ifdef __cplusplus
9839}
9840#endif
9841
9842int
9843main ()
9844{
9845return f != $ac_func;
9846  ;
9847  return 0;
9848}
9849_ACEOF
9850rm -f conftest.$ac_objext conftest$ac_exeext
9851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9852  (eval $ac_link) 2>conftest.er1
9853  ac_status=$?
9854  grep -v '^ *+' conftest.er1 >conftest.err
9855  rm -f conftest.er1
9856  cat conftest.err >&5
9857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858  (exit $ac_status); } &&
9859	 { ac_try='test -z "$ac_c_werror_flag"
9860			 || test ! -s conftest.err'
9861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862  (eval $ac_try) 2>&5
9863  ac_status=$?
9864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865  (exit $ac_status); }; } &&
9866	 { ac_try='test -s conftest$ac_exeext'
9867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868  (eval $ac_try) 2>&5
9869  ac_status=$?
9870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871  (exit $ac_status); }; }; then
9872  eval "$as_ac_var=yes"
9873else
9874  echo "$as_me: failed program was:" >&5
9875sed 's/^/| /' conftest.$ac_ext >&5
9876
9877eval "$as_ac_var=no"
9878fi
9879rm -f conftest.err conftest.$ac_objext \
9880      conftest$ac_exeext conftest.$ac_ext
9881fi
9882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9883echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9884if test `eval echo '${'$as_ac_var'}'` = yes; then
9885  cat >>confdefs.h <<_ACEOF
9886#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9887_ACEOF
9888
9889fi
9890done
9891
9892
9893# Check whether --enable-shared or --disable-shared was given.
9894if test "${enable_shared+set}" = set; then
9895  enableval="$enable_shared"
9896  p=${PACKAGE-default}
9897    case $enableval in
9898    yes) enable_shared=yes ;;
9899    no) enable_shared=no ;;
9900    *)
9901      enable_shared=no
9902      # Look at the argument we got.  We use all the common list separators.
9903      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9904      for pkg in $enableval; do
9905	IFS="$lt_save_ifs"
9906	if test "X$pkg" = "X$p"; then
9907	  enable_shared=yes
9908	fi
9909      done
9910      IFS="$lt_save_ifs"
9911      ;;
9912    esac
9913else
9914  enable_shared=yes
9915fi;
9916
9917# Check whether --enable-static or --disable-static was given.
9918if test "${enable_static+set}" = set; then
9919  enableval="$enable_static"
9920  p=${PACKAGE-default}
9921    case $enableval in
9922    yes) enable_static=yes ;;
9923    no) enable_static=no ;;
9924    *)
9925     enable_static=no
9926      # Look at the argument we got.  We use all the common list separators.
9927      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9928      for pkg in $enableval; do
9929	IFS="$lt_save_ifs"
9930	if test "X$pkg" = "X$p"; then
9931	  enable_static=yes
9932	fi
9933      done
9934      IFS="$lt_save_ifs"
9935      ;;
9936    esac
9937else
9938  enable_static=yes
9939fi;
9940
9941# Check whether --enable-fast-install or --disable-fast-install was given.
9942if test "${enable_fast_install+set}" = set; then
9943  enableval="$enable_fast_install"
9944  p=${PACKAGE-default}
9945    case $enableval in
9946    yes) enable_fast_install=yes ;;
9947    no) enable_fast_install=no ;;
9948    *)
9949      enable_fast_install=no
9950      # Look at the argument we got.  We use all the common list separators.
9951      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9952      for pkg in $enableval; do
9953	IFS="$lt_save_ifs"
9954	if test "X$pkg" = "X$p"; then
9955	  enable_fast_install=yes
9956	fi
9957      done
9958      IFS="$lt_save_ifs"
9959      ;;
9960    esac
9961else
9962  enable_fast_install=yes
9963fi;
9964
9965echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9966echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9967if test "${lt_cv_path_SED+set}" = set; then
9968  echo $ECHO_N "(cached) $ECHO_C" >&6
9969else
9970  # Loop through the user's path and test for sed and gsed.
9971# Then use that list of sed's as ones to test for truncation.
9972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9973for as_dir in $PATH
9974do
9975  IFS=$as_save_IFS
9976  test -z "$as_dir" && as_dir=.
9977  for lt_ac_prog in sed gsed; do
9978    for ac_exec_ext in '' $ac_executable_extensions; do
9979      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9980        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9981      fi
9982    done
9983  done
9984done
9985lt_ac_max=0
9986lt_ac_count=0
9987# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9988# along with /bin/sed that truncates output.
9989for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9990  test ! -f $lt_ac_sed && break
9991  cat /dev/null > conftest.in
9992  lt_ac_count=0
9993  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9994  # Check for GNU sed and select it if it is found.
9995  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9996    lt_cv_path_SED=$lt_ac_sed
9997    break
9998  fi
9999  while true; do
10000    cat conftest.in conftest.in >conftest.tmp
10001    mv conftest.tmp conftest.in
10002    cp conftest.in conftest.nl
10003    echo >>conftest.nl
10004    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10005    cmp -s conftest.out conftest.nl || break
10006    # 10000 chars as input seems more than enough
10007    test $lt_ac_count -gt 10 && break
10008    lt_ac_count=`expr $lt_ac_count + 1`
10009    if test $lt_ac_count -gt $lt_ac_max; then
10010      lt_ac_max=$lt_ac_count
10011      lt_cv_path_SED=$lt_ac_sed
10012    fi
10013  done
10014done
10015
10016fi
10017
10018SED=$lt_cv_path_SED
10019echo "$as_me:$LINENO: result: $SED" >&5
10020echo "${ECHO_T}$SED" >&6
10021
10022
10023# Check whether --with-gnu-ld or --without-gnu-ld was given.
10024if test "${with_gnu_ld+set}" = set; then
10025  withval="$with_gnu_ld"
10026  test "$withval" = no || with_gnu_ld=yes
10027else
10028  with_gnu_ld=no
10029fi;
10030ac_prog=ld
10031if test "$GCC" = yes; then
10032  # Check if gcc -print-prog-name=ld gives a path.
10033  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10034echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10035  case $host in
10036  *-*-mingw*)
10037    # gcc leaves a trailing carriage return which upsets mingw
10038    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10039  *)
10040    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10041  esac
10042  case $ac_prog in
10043    # Accept absolute paths.
10044    [\\/]* | ?:[\\/]*)
10045      re_direlt='/[^/][^/]*/\.\./'
10046      # Canonicalize the pathname of ld
10047      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10048      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10049	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10050      done
10051      test -z "$LD" && LD="$ac_prog"
10052      ;;
10053  "")
10054    # If it fails, then pretend we aren't using GCC.
10055    ac_prog=ld
10056    ;;
10057  *)
10058    # If it is relative, then search for the first ld in PATH.
10059    with_gnu_ld=unknown
10060    ;;
10061  esac
10062elif test "$with_gnu_ld" = yes; then
10063  echo "$as_me:$LINENO: checking for GNU ld" >&5
10064echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10065else
10066  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10067echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10068fi
10069if test "${lt_cv_path_LD+set}" = set; then
10070  echo $ECHO_N "(cached) $ECHO_C" >&6
10071else
10072  if test -z "$LD"; then
10073  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10074  for ac_dir in $PATH; do
10075    IFS="$lt_save_ifs"
10076    test -z "$ac_dir" && ac_dir=.
10077    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10078      lt_cv_path_LD="$ac_dir/$ac_prog"
10079      # Check to see if the program is GNU ld.  I'd rather use --version,
10080      # but apparently some GNU ld's only accept -v.
10081      # Break only if it was the GNU/non-GNU ld that we prefer.
10082      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10083      *GNU* | *'with BFD'*)
10084	test "$with_gnu_ld" != no && break
10085	;;
10086      *)
10087	test "$with_gnu_ld" != yes && break
10088	;;
10089      esac
10090    fi
10091  done
10092  IFS="$lt_save_ifs"
10093else
10094  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10095fi
10096fi
10097
10098LD="$lt_cv_path_LD"
10099if test -n "$LD"; then
10100  echo "$as_me:$LINENO: result: $LD" >&5
10101echo "${ECHO_T}$LD" >&6
10102else
10103  echo "$as_me:$LINENO: result: no" >&5
10104echo "${ECHO_T}no" >&6
10105fi
10106test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10107echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10108   { (exit 1); exit 1; }; }
10109echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10110echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10111if test "${lt_cv_prog_gnu_ld+set}" = set; then
10112  echo $ECHO_N "(cached) $ECHO_C" >&6
10113else
10114  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10115case `$LD -v 2>&1 </dev/null` in
10116*GNU* | *'with BFD'*)
10117  lt_cv_prog_gnu_ld=yes
10118  ;;
10119*)
10120  lt_cv_prog_gnu_ld=no
10121  ;;
10122esac
10123fi
10124echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10125echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10126with_gnu_ld=$lt_cv_prog_gnu_ld
10127
10128
10129echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10130echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10131if test "${lt_cv_ld_reload_flag+set}" = set; then
10132  echo $ECHO_N "(cached) $ECHO_C" >&6
10133else
10134  lt_cv_ld_reload_flag='-r'
10135fi
10136echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10137echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10138reload_flag=$lt_cv_ld_reload_flag
10139case $reload_flag in
10140"" | " "*) ;;
10141*) reload_flag=" $reload_flag" ;;
10142esac
10143reload_cmds='$LD$reload_flag -o $output$reload_objs'
10144case $host_os in
10145  darwin*)
10146    if test "$GCC" = yes; then
10147      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10148    else
10149      reload_cmds='$LD$reload_flag -o $output$reload_objs'
10150    fi
10151    ;;
10152esac
10153
10154echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10155echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10156if test "${lt_cv_deplibs_check_method+set}" = set; then
10157  echo $ECHO_N "(cached) $ECHO_C" >&6
10158else
10159  lt_cv_file_magic_cmd='$MAGIC_CMD'
10160lt_cv_file_magic_test_file=
10161lt_cv_deplibs_check_method='unknown'
10162# Need to set the preceding variable on all platforms that support
10163# interlibrary dependencies.
10164# 'none' -- dependencies not supported.
10165# `unknown' -- same as none, but documents that we really don't know.
10166# 'pass_all' -- all dependencies passed with no checks.
10167# 'test_compile' -- check by making test program.
10168# 'file_magic [[regex]]' -- check by looking for files in library path
10169# which responds to the $file_magic_cmd with a given extended regex.
10170# If you have `file' or equivalent on your system and you're not sure
10171# whether `pass_all' will *always* work, you probably want this one.
10172
10173case $host_os in
10174aix4* | aix5*)
10175  lt_cv_deplibs_check_method=pass_all
10176  ;;
10177
10178beos*)
10179  lt_cv_deplibs_check_method=pass_all
10180  ;;
10181
10182bsdi[45]*)
10183  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10184  lt_cv_file_magic_cmd='/usr/bin/file -L'
10185  lt_cv_file_magic_test_file=/shlib/libc.so
10186  ;;
10187
10188cygwin*)
10189  # func_win32_libid is a shell function defined in ltmain.sh
10190  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10191  lt_cv_file_magic_cmd='func_win32_libid'
10192  ;;
10193
10194mingw* | pw32*)
10195  # Base MSYS/MinGW do not provide the 'file' command needed by
10196  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10197  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10198  lt_cv_file_magic_cmd='$OBJDUMP -f'
10199  ;;
10200
10201darwin* | rhapsody*)
10202  lt_cv_deplibs_check_method=pass_all
10203  ;;
10204
10205freebsd* | kfreebsd*-gnu)
10206  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10207    case $host_cpu in
10208    i*86 )
10209      # Not sure whether the presence of OpenBSD here was a mistake.
10210      # Let's accept both of them until this is cleared up.
10211      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10212      lt_cv_file_magic_cmd=/usr/bin/file
10213      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10214      ;;
10215    esac
10216  else
10217    lt_cv_deplibs_check_method=pass_all
10218  fi
10219  ;;
10220
10221gnu*)
10222  lt_cv_deplibs_check_method=pass_all
10223  ;;
10224
10225hpux10.20* | hpux11*)
10226  lt_cv_file_magic_cmd=/usr/bin/file
10227  case "$host_cpu" in
10228  ia64*)
10229    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10230    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10231    ;;
10232  hppa*64*)
10233    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]'
10234    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10235    ;;
10236  *)
10237    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10238    lt_cv_file_magic_test_file=/usr/lib/libc.sl
10239    ;;
10240  esac
10241  ;;
10242
10243irix5* | irix6* | nonstopux*)
10244  case $LD in
10245  *-32|*"-32 ") libmagic=32-bit;;
10246  *-n32|*"-n32 ") libmagic=N32;;
10247  *-64|*"-64 ") libmagic=64-bit;;
10248  *) libmagic=never-match;;
10249  esac
10250  lt_cv_deplibs_check_method=pass_all
10251  ;;
10252
10253# This must be Linux ELF.
10254linux*)
10255  lt_cv_deplibs_check_method=pass_all
10256  ;;
10257
10258netbsd*)
10259  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10260    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10261  else
10262    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10263  fi
10264  ;;
10265
10266newos6*)
10267  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10268  lt_cv_file_magic_cmd=/usr/bin/file
10269  lt_cv_file_magic_test_file=/usr/lib/libnls.so
10270  ;;
10271
10272nto-qnx*)
10273  lt_cv_deplibs_check_method=unknown
10274  ;;
10275
10276openbsd*)
10277  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10278    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10279  else
10280    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10281  fi
10282  ;;
10283
10284osf3* | osf4* | osf5*)
10285  lt_cv_deplibs_check_method=pass_all
10286  ;;
10287
10288sco3.2v5*)
10289  lt_cv_deplibs_check_method=pass_all
10290  ;;
10291
10292solaris*)
10293  lt_cv_deplibs_check_method=pass_all
10294  ;;
10295
10296sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10297  case $host_vendor in
10298  motorola)
10299    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]'
10300    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10301    ;;
10302  ncr)
10303    lt_cv_deplibs_check_method=pass_all
10304    ;;
10305  sequent)
10306    lt_cv_file_magic_cmd='/bin/file'
10307    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10308    ;;
10309  sni)
10310    lt_cv_file_magic_cmd='/bin/file'
10311    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10312    lt_cv_file_magic_test_file=/lib/libc.so
10313    ;;
10314  siemens)
10315    lt_cv_deplibs_check_method=pass_all
10316    ;;
10317  esac
10318  ;;
10319
10320sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10321  lt_cv_deplibs_check_method=pass_all
10322  ;;
10323esac
10324
10325fi
10326echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10327echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10328file_magic_cmd=$lt_cv_file_magic_cmd
10329deplibs_check_method=$lt_cv_deplibs_check_method
10330test -z "$deplibs_check_method" && deplibs_check_method=unknown
10331
10332
10333
10334# If no C compiler was specified, use CC.
10335LTCC=${LTCC-"$CC"}
10336
10337# Allow CC to be a program name with arguments.
10338compiler=$CC
10339
10340# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10341if test "${enable_libtool_lock+set}" = set; then
10342  enableval="$enable_libtool_lock"
10343
10344fi;
10345test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10346
10347# Some flags need to be propagated to the compiler or linker for good
10348# libtool support.
10349case $host in
10350ia64-*-hpux*)
10351  # Find out which ABI we are using.
10352  echo 'int i;' > conftest.$ac_ext
10353  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10354  (eval $ac_compile) 2>&5
10355  ac_status=$?
10356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357  (exit $ac_status); }; then
10358    case `/usr/bin/file conftest.$ac_objext` in
10359    *ELF-32*)
10360      HPUX_IA64_MODE="32"
10361      ;;
10362    *ELF-64*)
10363      HPUX_IA64_MODE="64"
10364      ;;
10365    esac
10366  fi
10367  rm -rf conftest*
10368  ;;
10369*-*-irix6*)
10370  # Find out which ABI we are using.
10371  echo '#line 10371 "configure"' > conftest.$ac_ext
10372  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10373  (eval $ac_compile) 2>&5
10374  ac_status=$?
10375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376  (exit $ac_status); }; then
10377   if test "$lt_cv_prog_gnu_ld" = yes; then
10378    case `/usr/bin/file conftest.$ac_objext` in
10379    *32-bit*)
10380      LD="${LD-ld} -melf32bsmip"
10381      ;;
10382    *N32*)
10383      LD="${LD-ld} -melf32bmipn32"
10384      ;;
10385    *64-bit*)
10386      LD="${LD-ld} -melf64bmip"
10387      ;;
10388    esac
10389   else
10390    case `/usr/bin/file conftest.$ac_objext` in
10391    *32-bit*)
10392      LD="${LD-ld} -32"
10393      ;;
10394    *N32*)
10395      LD="${LD-ld} -n32"
10396      ;;
10397    *64-bit*)
10398      LD="${LD-ld} -64"
10399      ;;
10400    esac
10401   fi
10402  fi
10403  rm -rf conftest*
10404  ;;
10405
10406x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10407  # Find out which ABI we are using.
10408  echo 'int i;' > conftest.$ac_ext
10409  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10410  (eval $ac_compile) 2>&5
10411  ac_status=$?
10412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413  (exit $ac_status); }; then
10414    case "`/usr/bin/file conftest.o`" in
10415    *32-bit*)
10416      case $host in
10417        x86_64-*linux*)
10418          LD="${LD-ld} -m elf_i386"
10419          ;;
10420        ppc64-*linux*|powerpc64-*linux*)
10421          LD="${LD-ld} -m elf32ppclinux"
10422          ;;
10423        s390x-*linux*)
10424          LD="${LD-ld} -m elf_s390"
10425          ;;
10426        sparc64-*linux*)
10427          LD="${LD-ld} -m elf32_sparc"
10428          ;;
10429      esac
10430      ;;
10431    *64-bit*)
10432      case $host in
10433        x86_64-*linux*)
10434          LD="${LD-ld} -m elf_x86_64"
10435          ;;
10436        ppc*-*linux*|powerpc*-*linux*)
10437          LD="${LD-ld} -m elf64ppc"
10438          ;;
10439        s390*-*linux*)
10440          LD="${LD-ld} -m elf64_s390"
10441          ;;
10442        sparc*-*linux*)
10443          LD="${LD-ld} -m elf64_sparc"
10444          ;;
10445      esac
10446      ;;
10447    esac
10448  fi
10449  rm -rf conftest*
10450  ;;
10451
10452*-*-sco3.2v5*)
10453  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10454  SAVE_CFLAGS="$CFLAGS"
10455  CFLAGS="$CFLAGS -belf"
10456  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10457echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10458if test "${lt_cv_cc_needs_belf+set}" = set; then
10459  echo $ECHO_N "(cached) $ECHO_C" >&6
10460else
10461  ac_ext=c
10462ac_cpp='$CPP $CPPFLAGS'
10463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10465ac_compiler_gnu=$ac_cv_c_compiler_gnu
10466
10467     cat >conftest.$ac_ext <<_ACEOF
10468/* confdefs.h.  */
10469_ACEOF
10470cat confdefs.h >>conftest.$ac_ext
10471cat >>conftest.$ac_ext <<_ACEOF
10472/* end confdefs.h.  */
10473
10474_ACEOF
10475rm -f conftest.$ac_objext conftest$ac_exeext
10476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10477  (eval $ac_link) 2>conftest.er1
10478  ac_status=$?
10479  grep -v '^ *+' conftest.er1 >conftest.err
10480  rm -f conftest.er1
10481  cat conftest.err >&5
10482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483  (exit $ac_status); } &&
10484	 { ac_try='test -z "$ac_c_werror_flag"
10485			 || test ! -s conftest.err'
10486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487  (eval $ac_try) 2>&5
10488  ac_status=$?
10489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490  (exit $ac_status); }; } &&
10491	 { ac_try='test -s conftest$ac_exeext'
10492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493  (eval $ac_try) 2>&5
10494  ac_status=$?
10495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496  (exit $ac_status); }; }; then
10497  lt_cv_cc_needs_belf=yes
10498else
10499  echo "$as_me: failed program was:" >&5
10500sed 's/^/| /' conftest.$ac_ext >&5
10501
10502lt_cv_cc_needs_belf=no
10503fi
10504rm -f conftest.err conftest.$ac_objext \
10505      conftest$ac_exeext conftest.$ac_ext
10506     ac_ext=c
10507ac_cpp='$CPP $CPPFLAGS'
10508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10510ac_compiler_gnu=$ac_cv_c_compiler_gnu
10511
10512fi
10513echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10514echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10515  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10516    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10517    CFLAGS="$SAVE_CFLAGS"
10518  fi
10519  ;;
10520
10521esac
10522
10523need_locks="$enable_libtool_lock"
10524
10525
10526
10527
10528if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10529    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10530    (test "X$CXX" != "Xg++"))) ; then
10531  ac_ext=cc
10532ac_cpp='$CXXCPP $CPPFLAGS'
10533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10536echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10537echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10538if test -z "$CXXCPP"; then
10539  if test "${ac_cv_prog_CXXCPP+set}" = set; then
10540  echo $ECHO_N "(cached) $ECHO_C" >&6
10541else
10542      # Double quotes because CXXCPP needs to be expanded
10543    for CXXCPP in "$CXX -E" "/lib/cpp"
10544    do
10545      ac_preproc_ok=false
10546for ac_cxx_preproc_warn_flag in '' yes
10547do
10548  # Use a header file that comes with gcc, so configuring glibc
10549  # with a fresh cross-compiler works.
10550  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10551  # <limits.h> exists even on freestanding compilers.
10552  # On the NeXT, cc -E runs the code through the compiler's parser,
10553  # not just through cpp. "Syntax error" is here to catch this case.
10554  cat >conftest.$ac_ext <<_ACEOF
10555/* confdefs.h.  */
10556_ACEOF
10557cat confdefs.h >>conftest.$ac_ext
10558cat >>conftest.$ac_ext <<_ACEOF
10559/* end confdefs.h.  */
10560#ifdef __STDC__
10561# include <limits.h>
10562#else
10563# include <assert.h>
10564#endif
10565		     Syntax error
10566_ACEOF
10567if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10568  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10569  ac_status=$?
10570  grep -v '^ *+' conftest.er1 >conftest.err
10571  rm -f conftest.er1
10572  cat conftest.err >&5
10573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574  (exit $ac_status); } >/dev/null; then
10575  if test -s conftest.err; then
10576    ac_cpp_err=$ac_cxx_preproc_warn_flag
10577    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10578  else
10579    ac_cpp_err=
10580  fi
10581else
10582  ac_cpp_err=yes
10583fi
10584if test -z "$ac_cpp_err"; then
10585  :
10586else
10587  echo "$as_me: failed program was:" >&5
10588sed 's/^/| /' conftest.$ac_ext >&5
10589
10590  # Broken: fails on valid input.
10591continue
10592fi
10593rm -f conftest.err conftest.$ac_ext
10594
10595  # OK, works on sane cases.  Now check whether non-existent headers
10596  # can be detected and how.
10597  cat >conftest.$ac_ext <<_ACEOF
10598/* confdefs.h.  */
10599_ACEOF
10600cat confdefs.h >>conftest.$ac_ext
10601cat >>conftest.$ac_ext <<_ACEOF
10602/* end confdefs.h.  */
10603#include <ac_nonexistent.h>
10604_ACEOF
10605if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10606  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10607  ac_status=$?
10608  grep -v '^ *+' conftest.er1 >conftest.err
10609  rm -f conftest.er1
10610  cat conftest.err >&5
10611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612  (exit $ac_status); } >/dev/null; then
10613  if test -s conftest.err; then
10614    ac_cpp_err=$ac_cxx_preproc_warn_flag
10615    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10616  else
10617    ac_cpp_err=
10618  fi
10619else
10620  ac_cpp_err=yes
10621fi
10622if test -z "$ac_cpp_err"; then
10623  # Broken: success on invalid input.
10624continue
10625else
10626  echo "$as_me: failed program was:" >&5
10627sed 's/^/| /' conftest.$ac_ext >&5
10628
10629  # Passes both tests.
10630ac_preproc_ok=:
10631break
10632fi
10633rm -f conftest.err conftest.$ac_ext
10634
10635done
10636# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10637rm -f conftest.err conftest.$ac_ext
10638if $ac_preproc_ok; then
10639  break
10640fi
10641
10642    done
10643    ac_cv_prog_CXXCPP=$CXXCPP
10644
10645fi
10646  CXXCPP=$ac_cv_prog_CXXCPP
10647else
10648  ac_cv_prog_CXXCPP=$CXXCPP
10649fi
10650echo "$as_me:$LINENO: result: $CXXCPP" >&5
10651echo "${ECHO_T}$CXXCPP" >&6
10652ac_preproc_ok=false
10653for ac_cxx_preproc_warn_flag in '' yes
10654do
10655  # Use a header file that comes with gcc, so configuring glibc
10656  # with a fresh cross-compiler works.
10657  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10658  # <limits.h> exists even on freestanding compilers.
10659  # On the NeXT, cc -E runs the code through the compiler's parser,
10660  # not just through cpp. "Syntax error" is here to catch this case.
10661  cat >conftest.$ac_ext <<_ACEOF
10662/* confdefs.h.  */
10663_ACEOF
10664cat confdefs.h >>conftest.$ac_ext
10665cat >>conftest.$ac_ext <<_ACEOF
10666/* end confdefs.h.  */
10667#ifdef __STDC__
10668# include <limits.h>
10669#else
10670# include <assert.h>
10671#endif
10672		     Syntax error
10673_ACEOF
10674if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10675  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10676  ac_status=$?
10677  grep -v '^ *+' conftest.er1 >conftest.err
10678  rm -f conftest.er1
10679  cat conftest.err >&5
10680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681  (exit $ac_status); } >/dev/null; then
10682  if test -s conftest.err; then
10683    ac_cpp_err=$ac_cxx_preproc_warn_flag
10684    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10685  else
10686    ac_cpp_err=
10687  fi
10688else
10689  ac_cpp_err=yes
10690fi
10691if test -z "$ac_cpp_err"; then
10692  :
10693else
10694  echo "$as_me: failed program was:" >&5
10695sed 's/^/| /' conftest.$ac_ext >&5
10696
10697  # Broken: fails on valid input.
10698continue
10699fi
10700rm -f conftest.err conftest.$ac_ext
10701
10702  # OK, works on sane cases.  Now check whether non-existent headers
10703  # can be detected and how.
10704  cat >conftest.$ac_ext <<_ACEOF
10705/* confdefs.h.  */
10706_ACEOF
10707cat confdefs.h >>conftest.$ac_ext
10708cat >>conftest.$ac_ext <<_ACEOF
10709/* end confdefs.h.  */
10710#include <ac_nonexistent.h>
10711_ACEOF
10712if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10713  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10714  ac_status=$?
10715  grep -v '^ *+' conftest.er1 >conftest.err
10716  rm -f conftest.er1
10717  cat conftest.err >&5
10718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719  (exit $ac_status); } >/dev/null; then
10720  if test -s conftest.err; then
10721    ac_cpp_err=$ac_cxx_preproc_warn_flag
10722    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10723  else
10724    ac_cpp_err=
10725  fi
10726else
10727  ac_cpp_err=yes
10728fi
10729if test -z "$ac_cpp_err"; then
10730  # Broken: success on invalid input.
10731continue
10732else
10733  echo "$as_me: failed program was:" >&5
10734sed 's/^/| /' conftest.$ac_ext >&5
10735
10736  # Passes both tests.
10737ac_preproc_ok=:
10738break
10739fi
10740rm -f conftest.err conftest.$ac_ext
10741
10742done
10743# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10744rm -f conftest.err conftest.$ac_ext
10745if $ac_preproc_ok; then
10746  :
10747else
10748  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10749See \`config.log' for more details." >&5
10750echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10751See \`config.log' for more details." >&2;}
10752   { (exit 1); exit 1; }; }
10753fi
10754
10755ac_ext=cc
10756ac_cpp='$CXXCPP $CPPFLAGS'
10757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10760
10761fi
10762
10763
10764ac_ext=f
10765ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10766ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10767ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10768if test -n "$ac_tool_prefix"; then
10769  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10770  do
10771    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10772set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10773echo "$as_me:$LINENO: checking for $ac_word" >&5
10774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10775if test "${ac_cv_prog_F77+set}" = set; then
10776  echo $ECHO_N "(cached) $ECHO_C" >&6
10777else
10778  if test -n "$F77"; then
10779  ac_cv_prog_F77="$F77" # Let the user override the test.
10780else
10781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10782for as_dir in $PATH
10783do
10784  IFS=$as_save_IFS
10785  test -z "$as_dir" && as_dir=.
10786  for ac_exec_ext in '' $ac_executable_extensions; do
10787  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10788    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10789    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10790    break 2
10791  fi
10792done
10793done
10794
10795fi
10796fi
10797F77=$ac_cv_prog_F77
10798if test -n "$F77"; then
10799  echo "$as_me:$LINENO: result: $F77" >&5
10800echo "${ECHO_T}$F77" >&6
10801else
10802  echo "$as_me:$LINENO: result: no" >&5
10803echo "${ECHO_T}no" >&6
10804fi
10805
10806    test -n "$F77" && break
10807  done
10808fi
10809if test -z "$F77"; then
10810  ac_ct_F77=$F77
10811  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10812do
10813  # Extract the first word of "$ac_prog", so it can be a program name with args.
10814set dummy $ac_prog; ac_word=$2
10815echo "$as_me:$LINENO: checking for $ac_word" >&5
10816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10817if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10818  echo $ECHO_N "(cached) $ECHO_C" >&6
10819else
10820  if test -n "$ac_ct_F77"; then
10821  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10822else
10823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10824for as_dir in $PATH
10825do
10826  IFS=$as_save_IFS
10827  test -z "$as_dir" && as_dir=.
10828  for ac_exec_ext in '' $ac_executable_extensions; do
10829  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10830    ac_cv_prog_ac_ct_F77="$ac_prog"
10831    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10832    break 2
10833  fi
10834done
10835done
10836
10837fi
10838fi
10839ac_ct_F77=$ac_cv_prog_ac_ct_F77
10840if test -n "$ac_ct_F77"; then
10841  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10842echo "${ECHO_T}$ac_ct_F77" >&6
10843else
10844  echo "$as_me:$LINENO: result: no" >&5
10845echo "${ECHO_T}no" >&6
10846fi
10847
10848  test -n "$ac_ct_F77" && break
10849done
10850
10851  F77=$ac_ct_F77
10852fi
10853
10854
10855# Provide some information about the compiler.
10856echo "$as_me:10856:" \
10857     "checking for Fortran 77 compiler version" >&5
10858ac_compiler=`set X $ac_compile; echo $2`
10859{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10860  (eval $ac_compiler --version </dev/null >&5) 2>&5
10861  ac_status=$?
10862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863  (exit $ac_status); }
10864{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10865  (eval $ac_compiler -v </dev/null >&5) 2>&5
10866  ac_status=$?
10867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868  (exit $ac_status); }
10869{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10870  (eval $ac_compiler -V </dev/null >&5) 2>&5
10871  ac_status=$?
10872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873  (exit $ac_status); }
10874rm -f a.out
10875
10876# If we don't use `.F' as extension, the preprocessor is not run on the
10877# input file.  (Note that this only needs to work for GNU compilers.)
10878ac_save_ext=$ac_ext
10879ac_ext=F
10880echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10881echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10882if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10883  echo $ECHO_N "(cached) $ECHO_C" >&6
10884else
10885  cat >conftest.$ac_ext <<_ACEOF
10886      program main
10887#ifndef __GNUC__
10888       choke me
10889#endif
10890
10891      end
10892_ACEOF
10893rm -f conftest.$ac_objext
10894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10895  (eval $ac_compile) 2>conftest.er1
10896  ac_status=$?
10897  grep -v '^ *+' conftest.er1 >conftest.err
10898  rm -f conftest.er1
10899  cat conftest.err >&5
10900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901  (exit $ac_status); } &&
10902	 { ac_try='test -z "$ac_f77_werror_flag"
10903			 || test ! -s conftest.err'
10904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905  (eval $ac_try) 2>&5
10906  ac_status=$?
10907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908  (exit $ac_status); }; } &&
10909	 { ac_try='test -s conftest.$ac_objext'
10910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911  (eval $ac_try) 2>&5
10912  ac_status=$?
10913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914  (exit $ac_status); }; }; then
10915  ac_compiler_gnu=yes
10916else
10917  echo "$as_me: failed program was:" >&5
10918sed 's/^/| /' conftest.$ac_ext >&5
10919
10920ac_compiler_gnu=no
10921fi
10922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10923ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10924
10925fi
10926echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10927echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10928ac_ext=$ac_save_ext
10929ac_test_FFLAGS=${FFLAGS+set}
10930ac_save_FFLAGS=$FFLAGS
10931FFLAGS=
10932echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10933echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10934if test "${ac_cv_prog_f77_g+set}" = set; then
10935  echo $ECHO_N "(cached) $ECHO_C" >&6
10936else
10937  FFLAGS=-g
10938cat >conftest.$ac_ext <<_ACEOF
10939      program main
10940
10941      end
10942_ACEOF
10943rm -f conftest.$ac_objext
10944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10945  (eval $ac_compile) 2>conftest.er1
10946  ac_status=$?
10947  grep -v '^ *+' conftest.er1 >conftest.err
10948  rm -f conftest.er1
10949  cat conftest.err >&5
10950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951  (exit $ac_status); } &&
10952	 { ac_try='test -z "$ac_f77_werror_flag"
10953			 || test ! -s conftest.err'
10954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10955  (eval $ac_try) 2>&5
10956  ac_status=$?
10957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958  (exit $ac_status); }; } &&
10959	 { ac_try='test -s conftest.$ac_objext'
10960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10961  (eval $ac_try) 2>&5
10962  ac_status=$?
10963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964  (exit $ac_status); }; }; then
10965  ac_cv_prog_f77_g=yes
10966else
10967  echo "$as_me: failed program was:" >&5
10968sed 's/^/| /' conftest.$ac_ext >&5
10969
10970ac_cv_prog_f77_g=no
10971fi
10972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10973
10974fi
10975echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10976echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10977if test "$ac_test_FFLAGS" = set; then
10978  FFLAGS=$ac_save_FFLAGS
10979elif test $ac_cv_prog_f77_g = yes; then
10980  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10981    FFLAGS="-g -O2"
10982  else
10983    FFLAGS="-g"
10984  fi
10985else
10986  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10987    FFLAGS="-O2"
10988  else
10989    FFLAGS=
10990  fi
10991fi
10992
10993G77=`test $ac_compiler_gnu = yes && echo yes`
10994ac_ext=c
10995ac_cpp='$CPP $CPPFLAGS'
10996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10998ac_compiler_gnu=$ac_cv_c_compiler_gnu
10999
11000
11001
11002# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11003
11004# find the maximum length of command line arguments
11005echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11006echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11007if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11008  echo $ECHO_N "(cached) $ECHO_C" >&6
11009else
11010    i=0
11011  teststring="ABCD"
11012
11013  case $build_os in
11014  msdosdjgpp*)
11015    # On DJGPP, this test can blow up pretty badly due to problems in libc
11016    # (any single argument exceeding 2000 bytes causes a buffer overrun
11017    # during glob expansion).  Even if it were fixed, the result of this
11018    # check would be larger than it should be.
11019    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11020    ;;
11021
11022  gnu*)
11023    # Under GNU Hurd, this test is not required because there is
11024    # no limit to the length of command line arguments.
11025    # Libtool will interpret -1 as no limit whatsoever
11026    lt_cv_sys_max_cmd_len=-1;
11027    ;;
11028
11029  cygwin* | mingw*)
11030    # On Win9x/ME, this test blows up -- it succeeds, but takes
11031    # about 5 minutes as the teststring grows exponentially.
11032    # Worse, since 9x/ME are not pre-emptively multitasking,
11033    # you end up with a "frozen" computer, even though with patience
11034    # the test eventually succeeds (with a max line length of 256k).
11035    # Instead, let's just punt: use the minimum linelength reported by
11036    # all of the supported platforms: 8192 (on NT/2K/XP).
11037    lt_cv_sys_max_cmd_len=8192;
11038    ;;
11039
11040  amigaos*)
11041    # On AmigaOS with pdksh, this test takes hours, literally.
11042    # So we just punt and use a minimum line length of 8192.
11043    lt_cv_sys_max_cmd_len=8192;
11044    ;;
11045
11046  netbsd* | freebsd* | openbsd* | darwin* )
11047    # This has been around since 386BSD, at least.  Likely further.
11048    if test -x /sbin/sysctl; then
11049      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11050    elif test -x /usr/sbin/sysctl; then
11051      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11052    else
11053      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11054    fi
11055    # And add a safety zone
11056    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11057    ;;
11058
11059 *)
11060    # If test is not a shell built-in, we'll probably end up computing a
11061    # maximum length that is only half of the actual maximum length, but
11062    # we can't tell.
11063    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11064    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11065	       = "XX$teststring") >/dev/null 2>&1 &&
11066	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
11067	    lt_cv_sys_max_cmd_len=$new_result &&
11068	    test $i != 17 # 1/2 MB should be enough
11069    do
11070      i=`expr $i + 1`
11071      teststring=$teststring$teststring
11072    done
11073    teststring=
11074    # Add a significant safety factor because C++ compilers can tack on massive
11075    # amounts of additional arguments before passing them to the linker.
11076    # It appears as though 1/2 is a usable value.
11077    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11078    ;;
11079  esac
11080
11081fi
11082
11083if test -n $lt_cv_sys_max_cmd_len ; then
11084  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11085echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11086else
11087  echo "$as_me:$LINENO: result: none" >&5
11088echo "${ECHO_T}none" >&6
11089fi
11090
11091
11092
11093
11094# Check for command to grab the raw symbol name followed by C symbol from nm.
11095echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11096echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11097if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11098  echo $ECHO_N "(cached) $ECHO_C" >&6
11099else
11100
11101# These are sane defaults that work on at least a few old systems.
11102# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11103
11104# Character class describing NM global symbol codes.
11105symcode='[BCDEGRST]'
11106
11107# Regexp to match symbols that can be accessed directly from C.
11108sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11109
11110# Transform the above into a raw symbol and a C symbol.
11111symxfrm='\1 \2\3 \3'
11112
11113# Transform an extracted symbol line into a proper C declaration
11114lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11115
11116# Transform an extracted symbol line into symbol name and symbol address
11117lt_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
11119# Define system-specific variables.
11120case $host_os in
11121aix*)
11122  symcode='[BCDT]'
11123  ;;
11124cygwin* | mingw* | pw32*)
11125  symcode='[ABCDGISTW]'
11126  ;;
11127hpux*) # Its linker distinguishes data from code symbols
11128  if test "$host_cpu" = ia64; then
11129    symcode='[ABCDEGRST]'
11130  fi
11131  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11132  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'"
11133  ;;
11134linux*)
11135  if test "$host_cpu" = ia64; then
11136    symcode='[ABCDGIRSTW]'
11137    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11138    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'"
11139  fi
11140  ;;
11141irix* | nonstopux*)
11142  symcode='[BCDEGRST]'
11143  ;;
11144osf*)
11145  symcode='[BCDEGQRST]'
11146  ;;
11147solaris* | sysv5*)
11148  symcode='[BDRT]'
11149  ;;
11150sysv4)
11151  symcode='[DFNSTU]'
11152  ;;
11153esac
11154
11155# Handle CRLF in mingw tool chain
11156opt_cr=
11157case $build_os in
11158mingw*)
11159  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11160  ;;
11161esac
11162
11163# If we're using GNU nm, then use its standard symbol codes.
11164case `$NM -V 2>&1` in
11165*GNU* | *'with BFD'*)
11166  symcode='[ABCDGIRSTW]' ;;
11167esac
11168
11169# Try without a prefix undercore, then with it.
11170for ac_symprfx in "" "_"; do
11171
11172  # Write the raw and C identifiers.
11173  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11174
11175  # Check to see that the pipe works correctly.
11176  pipe_works=no
11177
11178  rm -f conftest*
11179  cat > conftest.$ac_ext <<EOF
11180#ifdef __cplusplus
11181extern "C" {
11182#endif
11183char nm_test_var;
11184void nm_test_func(){}
11185#ifdef __cplusplus
11186}
11187#endif
11188int main(){nm_test_var='a';nm_test_func();return(0);}
11189EOF
11190
11191  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11192  (eval $ac_compile) 2>&5
11193  ac_status=$?
11194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195  (exit $ac_status); }; then
11196    # Now try to grab the symbols.
11197    nlist=conftest.nm
11198    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11199  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11200  ac_status=$?
11201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202  (exit $ac_status); } && test -s "$nlist"; then
11203      # Try sorting and uniquifying the output.
11204      if sort "$nlist" | uniq > "$nlist"T; then
11205	mv -f "$nlist"T "$nlist"
11206      else
11207	rm -f "$nlist"T
11208      fi
11209
11210      # Make sure that we snagged all the symbols we need.
11211      if grep ' nm_test_var$' "$nlist" >/dev/null; then
11212	if grep ' nm_test_func$' "$nlist" >/dev/null; then
11213	  cat <<EOF > conftest.$ac_ext
11214#ifdef __cplusplus
11215extern "C" {
11216#endif
11217
11218EOF
11219	  # Now generate the symbol file.
11220	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11221
11222	  cat <<EOF >> conftest.$ac_ext
11223#if defined (__STDC__) && __STDC__
11224# define lt_ptr_t void *
11225#else
11226# define lt_ptr_t char *
11227# define const
11228#endif
11229
11230/* The mapping between symbol names and symbols. */
11231const struct {
11232  const char *name;
11233  lt_ptr_t address;
11234}
11235lt_preloaded_symbols[] =
11236{
11237EOF
11238	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11239	  cat <<\EOF >> conftest.$ac_ext
11240  {0, (lt_ptr_t) 0}
11241};
11242
11243#ifdef __cplusplus
11244}
11245#endif
11246EOF
11247	  # Now try linking the two files.
11248	  mv conftest.$ac_objext conftstm.$ac_objext
11249	  lt_save_LIBS="$LIBS"
11250	  lt_save_CFLAGS="$CFLAGS"
11251	  LIBS="conftstm.$ac_objext"
11252	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11253	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11254  (eval $ac_link) 2>&5
11255  ac_status=$?
11256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257  (exit $ac_status); } && test -s conftest${ac_exeext}; then
11258	    pipe_works=yes
11259	  fi
11260	  LIBS="$lt_save_LIBS"
11261	  CFLAGS="$lt_save_CFLAGS"
11262	else
11263	  echo "cannot find nm_test_func in $nlist" >&5
11264	fi
11265      else
11266	echo "cannot find nm_test_var in $nlist" >&5
11267      fi
11268    else
11269      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11270    fi
11271  else
11272    echo "$progname: failed program was:" >&5
11273    cat conftest.$ac_ext >&5
11274  fi
11275  rm -f conftest* conftst*
11276
11277  # Do not use the global_symbol_pipe unless it works.
11278  if test "$pipe_works" = yes; then
11279    break
11280  else
11281    lt_cv_sys_global_symbol_pipe=
11282  fi
11283done
11284
11285fi
11286
11287if test -z "$lt_cv_sys_global_symbol_pipe"; then
11288  lt_cv_sys_global_symbol_to_cdecl=
11289fi
11290if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11291  echo "$as_me:$LINENO: result: failed" >&5
11292echo "${ECHO_T}failed" >&6
11293else
11294  echo "$as_me:$LINENO: result: ok" >&5
11295echo "${ECHO_T}ok" >&6
11296fi
11297
11298echo "$as_me:$LINENO: checking for objdir" >&5
11299echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11300if test "${lt_cv_objdir+set}" = set; then
11301  echo $ECHO_N "(cached) $ECHO_C" >&6
11302else
11303  rm -f .libs 2>/dev/null
11304mkdir .libs 2>/dev/null
11305if test -d .libs; then
11306  lt_cv_objdir=.libs
11307else
11308  # MS-DOS does not allow filenames that begin with a dot.
11309  lt_cv_objdir=_libs
11310fi
11311rmdir .libs 2>/dev/null
11312fi
11313echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11314echo "${ECHO_T}$lt_cv_objdir" >&6
11315objdir=$lt_cv_objdir
11316
11317
11318
11319
11320
11321case $host_os in
11322aix3*)
11323  # AIX sometimes has problems with the GCC collect2 program.  For some
11324  # reason, if we set the COLLECT_NAMES environment variable, the problems
11325  # vanish in a puff of smoke.
11326  if test "X${COLLECT_NAMES+set}" != Xset; then
11327    COLLECT_NAMES=
11328    export COLLECT_NAMES
11329  fi
11330  ;;
11331esac
11332
11333# Sed substitution that helps us do robust quoting.  It backslashifies
11334# metacharacters that are still active within double-quoted strings.
11335Xsed='sed -e s/^X//'
11336sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11337
11338# Same as above, but do not quote variable references.
11339double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11340
11341# Sed substitution to delay expansion of an escaped shell variable in a
11342# double_quote_subst'ed string.
11343delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11344
11345# Sed substitution to avoid accidental globbing in evaled expressions
11346no_glob_subst='s/\*/\\\*/g'
11347
11348# Constants:
11349rm="rm -f"
11350
11351# Global variables:
11352default_ofile=mklib
11353can_build_shared=yes
11354
11355# All known linkers require a `.a' archive for static linking (except M$VC,
11356# which needs '.lib').
11357libext=a
11358ltmain="$ac_aux_dir/ltmain.sh"
11359ofile="$default_ofile"
11360with_gnu_ld="$lt_cv_prog_gnu_ld"
11361
11362if test -n "$ac_tool_prefix"; then
11363  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11364set dummy ${ac_tool_prefix}ar; ac_word=$2
11365echo "$as_me:$LINENO: checking for $ac_word" >&5
11366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11367if test "${ac_cv_prog_AR+set}" = set; then
11368  echo $ECHO_N "(cached) $ECHO_C" >&6
11369else
11370  if test -n "$AR"; then
11371  ac_cv_prog_AR="$AR" # Let the user override the test.
11372else
11373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374for as_dir in $PATH
11375do
11376  IFS=$as_save_IFS
11377  test -z "$as_dir" && as_dir=.
11378  for ac_exec_ext in '' $ac_executable_extensions; do
11379  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11380    ac_cv_prog_AR="${ac_tool_prefix}ar"
11381    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11382    break 2
11383  fi
11384done
11385done
11386
11387fi
11388fi
11389AR=$ac_cv_prog_AR
11390if test -n "$AR"; then
11391  echo "$as_me:$LINENO: result: $AR" >&5
11392echo "${ECHO_T}$AR" >&6
11393else
11394  echo "$as_me:$LINENO: result: no" >&5
11395echo "${ECHO_T}no" >&6
11396fi
11397
11398fi
11399if test -z "$ac_cv_prog_AR"; then
11400  ac_ct_AR=$AR
11401  # Extract the first word of "ar", so it can be a program name with args.
11402set dummy ar; ac_word=$2
11403echo "$as_me:$LINENO: checking for $ac_word" >&5
11404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11405if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11406  echo $ECHO_N "(cached) $ECHO_C" >&6
11407else
11408  if test -n "$ac_ct_AR"; then
11409  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11410else
11411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11412for as_dir in $PATH
11413do
11414  IFS=$as_save_IFS
11415  test -z "$as_dir" && as_dir=.
11416  for ac_exec_ext in '' $ac_executable_extensions; do
11417  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11418    ac_cv_prog_ac_ct_AR="ar"
11419    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11420    break 2
11421  fi
11422done
11423done
11424
11425  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11426fi
11427fi
11428ac_ct_AR=$ac_cv_prog_ac_ct_AR
11429if test -n "$ac_ct_AR"; then
11430  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11431echo "${ECHO_T}$ac_ct_AR" >&6
11432else
11433  echo "$as_me:$LINENO: result: no" >&5
11434echo "${ECHO_T}no" >&6
11435fi
11436
11437  AR=$ac_ct_AR
11438else
11439  AR="$ac_cv_prog_AR"
11440fi
11441
11442if test -n "$ac_tool_prefix"; then
11443  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11444set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11445echo "$as_me:$LINENO: checking for $ac_word" >&5
11446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11447if test "${ac_cv_prog_RANLIB+set}" = set; then
11448  echo $ECHO_N "(cached) $ECHO_C" >&6
11449else
11450  if test -n "$RANLIB"; then
11451  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11452else
11453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11454for as_dir in $PATH
11455do
11456  IFS=$as_save_IFS
11457  test -z "$as_dir" && as_dir=.
11458  for ac_exec_ext in '' $ac_executable_extensions; do
11459  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11460    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11461    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11462    break 2
11463  fi
11464done
11465done
11466
11467fi
11468fi
11469RANLIB=$ac_cv_prog_RANLIB
11470if test -n "$RANLIB"; then
11471  echo "$as_me:$LINENO: result: $RANLIB" >&5
11472echo "${ECHO_T}$RANLIB" >&6
11473else
11474  echo "$as_me:$LINENO: result: no" >&5
11475echo "${ECHO_T}no" >&6
11476fi
11477
11478fi
11479if test -z "$ac_cv_prog_RANLIB"; then
11480  ac_ct_RANLIB=$RANLIB
11481  # Extract the first word of "ranlib", so it can be a program name with args.
11482set dummy ranlib; ac_word=$2
11483echo "$as_me:$LINENO: checking for $ac_word" >&5
11484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11485if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11486  echo $ECHO_N "(cached) $ECHO_C" >&6
11487else
11488  if test -n "$ac_ct_RANLIB"; then
11489  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11490else
11491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11492for as_dir in $PATH
11493do
11494  IFS=$as_save_IFS
11495  test -z "$as_dir" && as_dir=.
11496  for ac_exec_ext in '' $ac_executable_extensions; do
11497  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11498    ac_cv_prog_ac_ct_RANLIB="ranlib"
11499    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11500    break 2
11501  fi
11502done
11503done
11504
11505  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11506fi
11507fi
11508ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11509if test -n "$ac_ct_RANLIB"; then
11510  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11511echo "${ECHO_T}$ac_ct_RANLIB" >&6
11512else
11513  echo "$as_me:$LINENO: result: no" >&5
11514echo "${ECHO_T}no" >&6
11515fi
11516
11517  RANLIB=$ac_ct_RANLIB
11518else
11519  RANLIB="$ac_cv_prog_RANLIB"
11520fi
11521
11522if test -n "$ac_tool_prefix"; then
11523  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11524set dummy ${ac_tool_prefix}strip; ac_word=$2
11525echo "$as_me:$LINENO: checking for $ac_word" >&5
11526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11527if test "${ac_cv_prog_STRIP+set}" = set; then
11528  echo $ECHO_N "(cached) $ECHO_C" >&6
11529else
11530  if test -n "$STRIP"; then
11531  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11532else
11533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11534for as_dir in $PATH
11535do
11536  IFS=$as_save_IFS
11537  test -z "$as_dir" && as_dir=.
11538  for ac_exec_ext in '' $ac_executable_extensions; do
11539  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11540    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11541    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11542    break 2
11543  fi
11544done
11545done
11546
11547fi
11548fi
11549STRIP=$ac_cv_prog_STRIP
11550if test -n "$STRIP"; then
11551  echo "$as_me:$LINENO: result: $STRIP" >&5
11552echo "${ECHO_T}$STRIP" >&6
11553else
11554  echo "$as_me:$LINENO: result: no" >&5
11555echo "${ECHO_T}no" >&6
11556fi
11557
11558fi
11559if test -z "$ac_cv_prog_STRIP"; then
11560  ac_ct_STRIP=$STRIP
11561  # Extract the first word of "strip", so it can be a program name with args.
11562set dummy strip; ac_word=$2
11563echo "$as_me:$LINENO: checking for $ac_word" >&5
11564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11565if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11566  echo $ECHO_N "(cached) $ECHO_C" >&6
11567else
11568  if test -n "$ac_ct_STRIP"; then
11569  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11570else
11571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11572for as_dir in $PATH
11573do
11574  IFS=$as_save_IFS
11575  test -z "$as_dir" && as_dir=.
11576  for ac_exec_ext in '' $ac_executable_extensions; do
11577  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11578    ac_cv_prog_ac_ct_STRIP="strip"
11579    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11580    break 2
11581  fi
11582done
11583done
11584
11585  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11586fi
11587fi
11588ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11589if test -n "$ac_ct_STRIP"; then
11590  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11591echo "${ECHO_T}$ac_ct_STRIP" >&6
11592else
11593  echo "$as_me:$LINENO: result: no" >&5
11594echo "${ECHO_T}no" >&6
11595fi
11596
11597  STRIP=$ac_ct_STRIP
11598else
11599  STRIP="$ac_cv_prog_STRIP"
11600fi
11601
11602
11603old_CC="$CC"
11604old_CFLAGS="$CFLAGS"
11605
11606# Set sane defaults for various variables
11607test -z "$AR" && AR=ar
11608test -z "$AR_FLAGS" && AR_FLAGS=cru
11609test -z "$AS" && AS=as
11610test -z "$CC" && CC=cc
11611test -z "$LTCC" && LTCC=$CC
11612test -z "$DLLTOOL" && DLLTOOL=dlltool
11613test -z "$LD" && LD=ld
11614test -z "$LN_S" && LN_S="ln -s"
11615test -z "$MAGIC_CMD" && MAGIC_CMD=file
11616test -z "$NM" && NM=nm
11617test -z "$SED" && SED=sed
11618test -z "$OBJDUMP" && OBJDUMP=objdump
11619test -z "$RANLIB" && RANLIB=:
11620test -z "$STRIP" && STRIP=:
11621test -z "$ac_objext" && ac_objext=o
11622
11623# Determine commands to create old-style static archives.
11624old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11625old_postinstall_cmds='chmod 644 $oldlib'
11626old_postuninstall_cmds=
11627
11628if test -n "$RANLIB"; then
11629  case $host_os in
11630  openbsd*)
11631    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11632    ;;
11633  *)
11634    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11635    ;;
11636  esac
11637  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11638fi
11639
11640cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11641
11642# Only perform the check for file, if the check method requires it
11643case $deplibs_check_method in
11644file_magic*)
11645  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11646    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11647echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11648if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11649  echo $ECHO_N "(cached) $ECHO_C" >&6
11650else
11651  case $MAGIC_CMD in
11652[\\/*] |  ?:[\\/]*)
11653  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11654  ;;
11655*)
11656  lt_save_MAGIC_CMD="$MAGIC_CMD"
11657  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11658  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11659  for ac_dir in $ac_dummy; do
11660    IFS="$lt_save_ifs"
11661    test -z "$ac_dir" && ac_dir=.
11662    if test -f $ac_dir/${ac_tool_prefix}file; then
11663      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11664      if test -n "$file_magic_test_file"; then
11665	case $deplibs_check_method in
11666	"file_magic "*)
11667	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11668	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11669	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11670	    $EGREP "$file_magic_regex" > /dev/null; then
11671	    :
11672	  else
11673	    cat <<EOF 1>&2
11674
11675*** Warning: the command libtool uses to detect shared libraries,
11676*** $file_magic_cmd, produces output that libtool cannot recognize.
11677*** The result is that libtool may fail to recognize shared libraries
11678*** as such.  This will affect the creation of libtool libraries that
11679*** depend on shared libraries, but programs linked with such libtool
11680*** libraries will work regardless of this problem.  Nevertheless, you
11681*** may want to report the problem to your system manager and/or to
11682*** bug-libtool@gnu.org
11683
11684EOF
11685	  fi ;;
11686	esac
11687      fi
11688      break
11689    fi
11690  done
11691  IFS="$lt_save_ifs"
11692  MAGIC_CMD="$lt_save_MAGIC_CMD"
11693  ;;
11694esac
11695fi
11696
11697MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11698if test -n "$MAGIC_CMD"; then
11699  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11700echo "${ECHO_T}$MAGIC_CMD" >&6
11701else
11702  echo "$as_me:$LINENO: result: no" >&5
11703echo "${ECHO_T}no" >&6
11704fi
11705
11706if test -z "$lt_cv_path_MAGIC_CMD"; then
11707  if test -n "$ac_tool_prefix"; then
11708    echo "$as_me:$LINENO: checking for file" >&5
11709echo $ECHO_N "checking for file... $ECHO_C" >&6
11710if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11711  echo $ECHO_N "(cached) $ECHO_C" >&6
11712else
11713  case $MAGIC_CMD in
11714[\\/*] |  ?:[\\/]*)
11715  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11716  ;;
11717*)
11718  lt_save_MAGIC_CMD="$MAGIC_CMD"
11719  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11720  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11721  for ac_dir in $ac_dummy; do
11722    IFS="$lt_save_ifs"
11723    test -z "$ac_dir" && ac_dir=.
11724    if test -f $ac_dir/file; then
11725      lt_cv_path_MAGIC_CMD="$ac_dir/file"
11726      if test -n "$file_magic_test_file"; then
11727	case $deplibs_check_method in
11728	"file_magic "*)
11729	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11730	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11731	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11732	    $EGREP "$file_magic_regex" > /dev/null; then
11733	    :
11734	  else
11735	    cat <<EOF 1>&2
11736
11737*** Warning: the command libtool uses to detect shared libraries,
11738*** $file_magic_cmd, produces output that libtool cannot recognize.
11739*** The result is that libtool may fail to recognize shared libraries
11740*** as such.  This will affect the creation of libtool libraries that
11741*** depend on shared libraries, but programs linked with such libtool
11742*** libraries will work regardless of this problem.  Nevertheless, you
11743*** may want to report the problem to your system manager and/or to
11744*** bug-libtool@gnu.org
11745
11746EOF
11747	  fi ;;
11748	esac
11749      fi
11750      break
11751    fi
11752  done
11753  IFS="$lt_save_ifs"
11754  MAGIC_CMD="$lt_save_MAGIC_CMD"
11755  ;;
11756esac
11757fi
11758
11759MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11760if test -n "$MAGIC_CMD"; then
11761  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11762echo "${ECHO_T}$MAGIC_CMD" >&6
11763else
11764  echo "$as_me:$LINENO: result: no" >&5
11765echo "${ECHO_T}no" >&6
11766fi
11767
11768  else
11769    MAGIC_CMD=:
11770  fi
11771fi
11772
11773  fi
11774  ;;
11775esac
11776
11777enable_dlopen=yes
11778enable_win32_dll=no
11779
11780# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11781if test "${enable_libtool_lock+set}" = set; then
11782  enableval="$enable_libtool_lock"
11783
11784fi;
11785test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11786
11787
11788# Check whether --with-pic or --without-pic was given.
11789if test "${with_pic+set}" = set; then
11790  withval="$with_pic"
11791  pic_mode="$withval"
11792else
11793  pic_mode=default
11794fi;
11795test -z "$pic_mode" && pic_mode=default
11796
11797# Use C for the default configuration in the libtool script
11798tagname=
11799lt_save_CC="$CC"
11800ac_ext=c
11801ac_cpp='$CPP $CPPFLAGS'
11802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11804ac_compiler_gnu=$ac_cv_c_compiler_gnu
11805
11806
11807# Source file extension for C test sources.
11808ac_ext=c
11809
11810# Object file extension for compiled C test sources.
11811objext=o
11812objext=$objext
11813
11814# Code to be used in simple compile tests
11815lt_simple_compile_test_code="int some_variable = 0;\n"
11816
11817# Code to be used in simple link tests
11818lt_simple_link_test_code='int main(){return(0);}\n'
11819
11820
11821# If no C compiler was specified, use CC.
11822LTCC=${LTCC-"$CC"}
11823
11824# Allow CC to be a program name with arguments.
11825compiler=$CC
11826
11827
11828#
11829# Check for any special shared library compilation flags.
11830#
11831lt_prog_cc_shlib=
11832if test "$GCC" = no; then
11833  case $host_os in
11834  sco3.2v5*)
11835    lt_prog_cc_shlib='-belf'
11836    ;;
11837  esac
11838fi
11839if test -n "$lt_prog_cc_shlib"; then
11840  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11841echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11842  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
11843  else
11844    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11845echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11846    lt_cv_prog_cc_can_build_shared=no
11847  fi
11848fi
11849
11850
11851#
11852# Check to make sure the static flag actually works.
11853#
11854echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11855echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11856if test "${lt_prog_compiler_static_works+set}" = set; then
11857  echo $ECHO_N "(cached) $ECHO_C" >&6
11858else
11859  lt_prog_compiler_static_works=no
11860   save_LDFLAGS="$LDFLAGS"
11861   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11862   printf "$lt_simple_link_test_code" > conftest.$ac_ext
11863   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11864     # The compiler can only warn and ignore the option if not recognized
11865     # So say no if there are warnings
11866     if test -s conftest.err; then
11867       # Append any errors to the config.log.
11868       cat conftest.err 1>&5
11869     else
11870       lt_prog_compiler_static_works=yes
11871     fi
11872   fi
11873   $rm conftest*
11874   LDFLAGS="$save_LDFLAGS"
11875
11876fi
11877echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11878echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11879
11880if test x"$lt_prog_compiler_static_works" = xyes; then
11881    :
11882else
11883    lt_prog_compiler_static=
11884fi
11885
11886
11887
11888
11889lt_prog_compiler_no_builtin_flag=
11890
11891if test "$GCC" = yes; then
11892  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11893
11894
11895echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11896echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11897if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11898  echo $ECHO_N "(cached) $ECHO_C" >&6
11899else
11900  lt_cv_prog_compiler_rtti_exceptions=no
11901  ac_outfile=conftest.$ac_objext
11902   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11903   lt_compiler_flag="-fno-rtti -fno-exceptions"
11904   # Insert the option either (1) after the last *FLAGS variable, or
11905   # (2) before a word containing "conftest.", or (3) at the end.
11906   # Note that $ac_compile itself does not contain backslashes and begins
11907   # with a dollar sign (not a hyphen), so the echo should work correctly.
11908   # The option is referenced via a variable to avoid confusing sed.
11909   lt_compile=`echo "$ac_compile" | $SED \
11910   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11911   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11912   -e 's:$: $lt_compiler_flag:'`
11913   (eval echo "\"\$as_me:11913: $lt_compile\"" >&5)
11914   (eval "$lt_compile" 2>conftest.err)
11915   ac_status=$?
11916   cat conftest.err >&5
11917   echo "$as_me:11917: \$? = $ac_status" >&5
11918   if (exit $ac_status) && test -s "$ac_outfile"; then
11919     # The compiler can only warn and ignore the option if not recognized
11920     # So say no if there are warnings
11921     if test ! -s conftest.err; then
11922       lt_cv_prog_compiler_rtti_exceptions=yes
11923     fi
11924   fi
11925   $rm conftest*
11926
11927fi
11928echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11929echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11930
11931if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11932    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11933else
11934    :
11935fi
11936
11937fi
11938
11939lt_prog_compiler_wl=
11940lt_prog_compiler_pic=
11941lt_prog_compiler_static=
11942
11943echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11944echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11945
11946  if test "$GCC" = yes; then
11947    lt_prog_compiler_wl='-Wl,'
11948    lt_prog_compiler_static='-static'
11949
11950    case $host_os in
11951      aix*)
11952      # All AIX code is PIC.
11953      if test "$host_cpu" = ia64; then
11954	# AIX 5 now supports IA64 processor
11955	lt_prog_compiler_static='-Bstatic'
11956      fi
11957      ;;
11958
11959    amigaos*)
11960      # FIXME: we need at least 68020 code to build shared libraries, but
11961      # adding the `-m68020' flag to GCC prevents building anything better,
11962      # like `-m68040'.
11963      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11964      ;;
11965
11966    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11967      # PIC is the default for these OSes.
11968      ;;
11969
11970    mingw* | pw32* | os2*)
11971      # This hack is so that the source file can tell whether it is being
11972      # built for inclusion in a dll (and should export symbols for example).
11973      lt_prog_compiler_pic='-DDLL_EXPORT'
11974      ;;
11975
11976    darwin* | rhapsody*)
11977      # PIC is the default on this platform
11978      # Common symbols not allowed in MH_DYLIB files
11979      lt_prog_compiler_pic='-fno-common'
11980      ;;
11981
11982    msdosdjgpp*)
11983      # Just because we use GCC doesn't mean we suddenly get shared libraries
11984      # on systems that don't support them.
11985      lt_prog_compiler_can_build_shared=no
11986      enable_shared=no
11987      ;;
11988
11989    sysv4*MP*)
11990      if test -d /usr/nec; then
11991	lt_prog_compiler_pic=-Kconform_pic
11992      fi
11993      ;;
11994
11995    hpux*)
11996      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11997      # not for PA HP-UX.
11998      case "$host_cpu" in
11999      hppa*64*|ia64*)
12000	# +Z the default
12001	;;
12002      *)
12003	lt_prog_compiler_pic='-fPIC'
12004	;;
12005      esac
12006      ;;
12007
12008    *)
12009      lt_prog_compiler_pic='-fPIC'
12010      ;;
12011    esac
12012  else
12013    # PORTME Check for flag to pass linker flags through the system compiler.
12014    case $host_os in
12015    aix*)
12016      lt_prog_compiler_wl='-Wl,'
12017      if test "$host_cpu" = ia64; then
12018	# AIX 5 now supports IA64 processor
12019	lt_prog_compiler_static='-Bstatic'
12020      else
12021	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12022      fi
12023      ;;
12024      darwin*)
12025        # PIC is the default on this platform
12026        # Common symbols not allowed in MH_DYLIB files
12027       case "$cc_basename" in
12028         xlc*)
12029         lt_prog_compiler_pic='-qnocommon'
12030         lt_prog_compiler_wl='-Wl,'
12031         ;;
12032       esac
12033       ;;
12034
12035    mingw* | pw32* | os2*)
12036      # This hack is so that the source file can tell whether it is being
12037      # built for inclusion in a dll (and should export symbols for example).
12038      lt_prog_compiler_pic='-DDLL_EXPORT'
12039      ;;
12040
12041    hpux9* | hpux10* | hpux11*)
12042      lt_prog_compiler_wl='-Wl,'
12043      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12044      # not for PA HP-UX.
12045      case "$host_cpu" in
12046      hppa*64*|ia64*)
12047	# +Z the default
12048	;;
12049      *)
12050	lt_prog_compiler_pic='+Z'
12051	;;
12052      esac
12053      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12054      lt_prog_compiler_static='${wl}-a ${wl}archive'
12055      ;;
12056
12057    irix5* | irix6* | nonstopux*)
12058      lt_prog_compiler_wl='-Wl,'
12059      # PIC (with -KPIC) is the default.
12060      lt_prog_compiler_static='-non_shared'
12061      ;;
12062
12063    newsos6)
12064      lt_prog_compiler_pic='-KPIC'
12065      lt_prog_compiler_static='-Bstatic'
12066      ;;
12067
12068    linux*)
12069      case $CC in
12070      icc* | ecc*)
12071	lt_prog_compiler_wl='-Wl,'
12072	lt_prog_compiler_pic='-KPIC'
12073	lt_prog_compiler_static='-static'
12074        ;;
12075      ccc*)
12076        lt_prog_compiler_wl='-Wl,'
12077        # All Alpha code is PIC.
12078        lt_prog_compiler_static='-non_shared'
12079        ;;
12080      esac
12081      ;;
12082
12083    osf3* | osf4* | osf5*)
12084      lt_prog_compiler_wl='-Wl,'
12085      # All OSF/1 code is PIC.
12086      lt_prog_compiler_static='-non_shared'
12087      ;;
12088
12089    sco3.2v5*)
12090      lt_prog_compiler_pic='-Kpic'
12091      lt_prog_compiler_static='-dn'
12092      ;;
12093
12094    solaris*)
12095      lt_prog_compiler_wl='-Wl,'
12096      lt_prog_compiler_pic='-KPIC'
12097      lt_prog_compiler_static='-Bstatic'
12098      ;;
12099
12100    sunos4*)
12101      lt_prog_compiler_wl='-Qoption ld '
12102      lt_prog_compiler_pic='-PIC'
12103      lt_prog_compiler_static='-Bstatic'
12104      ;;
12105
12106    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12107      lt_prog_compiler_wl='-Wl,'
12108      lt_prog_compiler_pic='-KPIC'
12109      lt_prog_compiler_static='-Bstatic'
12110      ;;
12111
12112    sysv4*MP*)
12113      if test -d /usr/nec ;then
12114	lt_prog_compiler_pic='-Kconform_pic'
12115	lt_prog_compiler_static='-Bstatic'
12116      fi
12117      ;;
12118
12119    uts4*)
12120      lt_prog_compiler_pic='-pic'
12121      lt_prog_compiler_static='-Bstatic'
12122      ;;
12123
12124    *)
12125      lt_prog_compiler_can_build_shared=no
12126      ;;
12127    esac
12128  fi
12129
12130echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12131echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12132
12133#
12134# Check to make sure the PIC flag actually works.
12135#
12136if test -n "$lt_prog_compiler_pic"; then
12137
12138echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12139echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12140if test "${lt_prog_compiler_pic_works+set}" = set; then
12141  echo $ECHO_N "(cached) $ECHO_C" >&6
12142else
12143  lt_prog_compiler_pic_works=no
12144  ac_outfile=conftest.$ac_objext
12145   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12146   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12147   # Insert the option either (1) after the last *FLAGS variable, or
12148   # (2) before a word containing "conftest.", or (3) at the end.
12149   # Note that $ac_compile itself does not contain backslashes and begins
12150   # with a dollar sign (not a hyphen), so the echo should work correctly.
12151   # The option is referenced via a variable to avoid confusing sed.
12152   lt_compile=`echo "$ac_compile" | $SED \
12153   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12154   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12155   -e 's:$: $lt_compiler_flag:'`
12156   (eval echo "\"\$as_me:12156: $lt_compile\"" >&5)
12157   (eval "$lt_compile" 2>conftest.err)
12158   ac_status=$?
12159   cat conftest.err >&5
12160   echo "$as_me:12160: \$? = $ac_status" >&5
12161   if (exit $ac_status) && test -s "$ac_outfile"; then
12162     # The compiler can only warn and ignore the option if not recognized
12163     # So say no if there are warnings
12164     if test ! -s conftest.err; then
12165       lt_prog_compiler_pic_works=yes
12166     fi
12167   fi
12168   $rm conftest*
12169
12170fi
12171echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12172echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12173
12174if test x"$lt_prog_compiler_pic_works" = xyes; then
12175    case $lt_prog_compiler_pic in
12176     "" | " "*) ;;
12177     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12178     esac
12179else
12180    lt_prog_compiler_pic=
12181     lt_prog_compiler_can_build_shared=no
12182fi
12183
12184fi
12185case "$host_os" in
12186  # For platforms which do not support PIC, -DPIC is meaningless:
12187  *djgpp*)
12188    lt_prog_compiler_pic=
12189    ;;
12190  *)
12191    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12192    ;;
12193esac
12194
12195echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12196echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12197if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12198  echo $ECHO_N "(cached) $ECHO_C" >&6
12199else
12200  lt_cv_prog_compiler_c_o=no
12201   $rm -r conftest 2>/dev/null
12202   mkdir conftest
12203   cd conftest
12204   mkdir out
12205   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12206
12207   lt_compiler_flag="-o out/conftest2.$ac_objext"
12208   # Insert the option either (1) after the last *FLAGS variable, or
12209   # (2) before a word containing "conftest.", or (3) at the end.
12210   # Note that $ac_compile itself does not contain backslashes and begins
12211   # with a dollar sign (not a hyphen), so the echo should work correctly.
12212   lt_compile=`echo "$ac_compile" | $SED \
12213   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12214   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12215   -e 's:$: $lt_compiler_flag:'`
12216   (eval echo "\"\$as_me:12216: $lt_compile\"" >&5)
12217   (eval "$lt_compile" 2>out/conftest.err)
12218   ac_status=$?
12219   cat out/conftest.err >&5
12220   echo "$as_me:12220: \$? = $ac_status" >&5
12221   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12222   then
12223     # The compiler can only warn and ignore the option if not recognized
12224     # So say no if there are warnings
12225     if test ! -s out/conftest.err; then
12226       lt_cv_prog_compiler_c_o=yes
12227     fi
12228   fi
12229   chmod u+w .
12230   $rm conftest*
12231   # SGI C++ compiler will create directory out/ii_files/ for
12232   # template instantiation
12233   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12234   $rm out/* && rmdir out
12235   cd ..
12236   rmdir conftest
12237   $rm conftest*
12238
12239fi
12240echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12241echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12242
12243
12244hard_links="nottested"
12245if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12246  # do not overwrite the value of need_locks provided by the user
12247  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12248echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12249  hard_links=yes
12250  $rm conftest*
12251  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12252  touch conftest.a
12253  ln conftest.a conftest.b 2>&5 || hard_links=no
12254  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12255  echo "$as_me:$LINENO: result: $hard_links" >&5
12256echo "${ECHO_T}$hard_links" >&6
12257  if test "$hard_links" = no; then
12258    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12259echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12260    need_locks=warn
12261  fi
12262else
12263  need_locks=no
12264fi
12265
12266echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12267echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12268
12269  runpath_var=
12270  allow_undefined_flag=
12271  enable_shared_with_static_runtimes=no
12272  archive_cmds=
12273  archive_expsym_cmds=
12274  old_archive_From_new_cmds=
12275  old_archive_from_expsyms_cmds=
12276  export_dynamic_flag_spec=
12277  whole_archive_flag_spec=
12278  thread_safe_flag_spec=
12279  hardcode_libdir_flag_spec=
12280  hardcode_libdir_flag_spec_ld=
12281  hardcode_libdir_separator=
12282  hardcode_direct=no
12283  hardcode_minus_L=no
12284  hardcode_shlibpath_var=unsupported
12285  link_all_deplibs=unknown
12286  hardcode_automatic=no
12287  module_cmds=
12288  module_expsym_cmds=
12289  always_export_symbols=no
12290  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12291  # include_expsyms should be a list of space-separated symbols to be *always*
12292  # included in the symbol list
12293  include_expsyms=
12294  # exclude_expsyms can be an extended regexp of symbols to exclude
12295  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12296  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12297  # as well as any symbol that contains `d'.
12298  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12299  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12300  # platforms (ab)use it in PIC code, but their linkers get confused if
12301  # the symbol is explicitly referenced.  Since portable code cannot
12302  # rely on this symbol name, it's probably fine to never include it in
12303  # preloaded symbol tables.
12304  extract_expsyms_cmds=
12305
12306  case $host_os in
12307  cygwin* | mingw* | pw32*)
12308    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12309    # When not using gcc, we currently assume that we are using
12310    # Microsoft Visual C++.
12311    if test "$GCC" != yes; then
12312      with_gnu_ld=no
12313    fi
12314    ;;
12315  openbsd*)
12316    with_gnu_ld=no
12317    ;;
12318  esac
12319
12320  ld_shlibs=yes
12321  if test "$with_gnu_ld" = yes; then
12322    # If archive_cmds runs LD, not CC, wlarc should be empty
12323    wlarc='${wl}'
12324
12325    # See if GNU ld supports shared libraries.
12326    case $host_os in
12327    aix3* | aix4* | aix5*)
12328      # On AIX/PPC, the GNU linker is very broken
12329      if test "$host_cpu" != ia64; then
12330	ld_shlibs=no
12331	cat <<EOF 1>&2
12332
12333*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12334*** to be unable to reliably create shared libraries on AIX.
12335*** Therefore, libtool is disabling shared libraries support.  If you
12336*** really care for shared libraries, you may want to modify your PATH
12337*** so that a non-GNU linker is found, and then restart.
12338
12339EOF
12340      fi
12341      ;;
12342
12343    amigaos*)
12344      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)'
12345      hardcode_libdir_flag_spec='-L$libdir'
12346      hardcode_minus_L=yes
12347
12348      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12349      # that the semantics of dynamic libraries on AmigaOS, at least up
12350      # to version 4, is to share data among multiple programs linked
12351      # with the same dynamic library.  Since this doesn't match the
12352      # behavior of shared libraries on other platforms, we can't use
12353      # them.
12354      ld_shlibs=no
12355      ;;
12356
12357    beos*)
12358      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12359	allow_undefined_flag=unsupported
12360	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12361	# support --undefined.  This deserves some investigation.  FIXME
12362	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12363      else
12364	ld_shlibs=no
12365      fi
12366      ;;
12367
12368    cygwin* | mingw* | pw32*)
12369      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12370      # as there is no search path for DLLs.
12371      hardcode_libdir_flag_spec='-L$libdir'
12372      allow_undefined_flag=unsupported
12373      always_export_symbols=no
12374      enable_shared_with_static_runtimes=yes
12375      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12376
12377      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12378        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12379	# If the export-symbols file already is a .def file (1st line
12380	# is EXPORTS), use it as is; otherwise, prepend...
12381	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12382	  cp $export_symbols $output_objdir/$soname.def;
12383	else
12384	  echo EXPORTS > $output_objdir/$soname.def;
12385	  cat $export_symbols >> $output_objdir/$soname.def;
12386	fi~
12387	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12388      else
12389	ld_shlibs=no
12390      fi
12391      ;;
12392
12393    netbsd*)
12394      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12395	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12396	wlarc=
12397      else
12398	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12399	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12400      fi
12401      ;;
12402
12403    solaris* | sysv5*)
12404      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12405	ld_shlibs=no
12406	cat <<EOF 1>&2
12407
12408*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12409*** create shared libraries on Solaris systems.  Therefore, libtool
12410*** is disabling shared libraries support.  We urge you to upgrade GNU
12411*** binutils to release 2.9.1 or newer.  Another option is to modify
12412*** your PATH or compiler configuration so that the native linker is
12413*** used, and then restart.
12414
12415EOF
12416      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12417	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12418	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12419      else
12420	ld_shlibs=no
12421      fi
12422      ;;
12423
12424    sunos4*)
12425      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12426      wlarc=
12427      hardcode_direct=yes
12428      hardcode_shlibpath_var=no
12429      ;;
12430
12431  linux*)
12432    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12433        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12434	archive_cmds="$tmp_archive_cmds"
12435      supports_anon_versioning=no
12436      case `$LD -v 2>/dev/null` in
12437        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12438        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12439        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12440        *\ 2.11.*) ;; # other 2.11 versions
12441        *) supports_anon_versioning=yes ;;
12442      esac
12443      if test $supports_anon_versioning = yes; then
12444        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12445cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12446$echo "local: *; };" >> $output_objdir/$libname.ver~
12447        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12448      else
12449        archive_expsym_cmds="$tmp_archive_cmds"
12450      fi
12451    else
12452      ld_shlibs=no
12453    fi
12454    ;;
12455
12456    *)
12457      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12458	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12459	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12460      else
12461	ld_shlibs=no
12462      fi
12463      ;;
12464    esac
12465
12466    if test "$ld_shlibs" = yes; then
12467      runpath_var=LD_RUN_PATH
12468      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12469      export_dynamic_flag_spec='${wl}--export-dynamic'
12470      # ancient GNU ld didn't support --whole-archive et. al.
12471      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12472 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12473      else
12474  	whole_archive_flag_spec=
12475      fi
12476    fi
12477  else
12478    # PORTME fill in a description of your system's linker (not GNU ld)
12479    case $host_os in
12480    aix3*)
12481      allow_undefined_flag=unsupported
12482      always_export_symbols=yes
12483      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'
12484      # Note: this linker hardcodes the directories in LIBPATH if there
12485      # are no directories specified by -L.
12486      hardcode_minus_L=yes
12487      if test "$GCC" = yes && test -z "$link_static_flag"; then
12488	# Neither direct hardcoding nor static linking is supported with a
12489	# broken collect2.
12490	hardcode_direct=unsupported
12491      fi
12492      ;;
12493
12494    aix4* | aix5*)
12495      if test "$host_cpu" = ia64; then
12496	# On IA64, the linker does run time linking by default, so we don't
12497	# have to do anything special.
12498	aix_use_runtimelinking=no
12499	exp_sym_flag='-Bexport'
12500	no_entry_flag=""
12501      else
12502	# If we're using GNU nm, then we don't want the "-C" option.
12503	# -C means demangle to AIX nm, but means don't demangle with GNU nm
12504	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12505	  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'
12506	else
12507	  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'
12508	fi
12509	aix_use_runtimelinking=no
12510
12511	# Test if we are trying to use run time linking or normal
12512	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12513	# need to do runtime linking.
12514	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12515	  for ld_flag in $LDFLAGS; do
12516  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12517  	    aix_use_runtimelinking=yes
12518  	    break
12519  	  fi
12520	  done
12521	esac
12522
12523	exp_sym_flag='-bexport'
12524	no_entry_flag='-bnoentry'
12525      fi
12526
12527      # When large executables or shared objects are built, AIX ld can
12528      # have problems creating the table of contents.  If linking a library
12529      # or program results in "error TOC overflow" add -mminimal-toc to
12530      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12531      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12532
12533      archive_cmds=''
12534      hardcode_direct=yes
12535      hardcode_libdir_separator=':'
12536      link_all_deplibs=yes
12537
12538      if test "$GCC" = yes; then
12539	case $host_os in aix4.012|aix4.012.*)
12540	# We only want to do this on AIX 4.2 and lower, the check
12541	# below for broken collect2 doesn't work under 4.3+
12542	  collect2name=`${CC} -print-prog-name=collect2`
12543	  if test -f "$collect2name" && \
12544  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
12545	  then
12546  	  # We have reworked collect2
12547  	  hardcode_direct=yes
12548	  else
12549  	  # We have old collect2
12550  	  hardcode_direct=unsupported
12551  	  # It fails to find uninstalled libraries when the uninstalled
12552  	  # path is not listed in the libpath.  Setting hardcode_minus_L
12553  	  # to unsupported forces relinking
12554  	  hardcode_minus_L=yes
12555  	  hardcode_libdir_flag_spec='-L$libdir'
12556  	  hardcode_libdir_separator=
12557	  fi
12558	esac
12559	shared_flag='-shared'
12560      else
12561	# not using gcc
12562	if test "$host_cpu" = ia64; then
12563  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12564  	# chokes on -Wl,-G. The following line is correct:
12565	  shared_flag='-G'
12566	else
12567  	if test "$aix_use_runtimelinking" = yes; then
12568	    shared_flag='${wl}-G'
12569	  else
12570	    shared_flag='${wl}-bM:SRE'
12571  	fi
12572	fi
12573      fi
12574
12575      # It seems that -bexpall does not export symbols beginning with
12576      # underscore (_), so it is better to generate a list of symbols to export.
12577      always_export_symbols=yes
12578      if test "$aix_use_runtimelinking" = yes; then
12579	# Warning - without using the other runtime loading flags (-brtl),
12580	# -berok will link without error, but may produce a broken library.
12581	allow_undefined_flag='-berok'
12582       # Determine the default libpath from the value encoded in an empty executable.
12583       cat >conftest.$ac_ext <<_ACEOF
12584/* confdefs.h.  */
12585_ACEOF
12586cat confdefs.h >>conftest.$ac_ext
12587cat >>conftest.$ac_ext <<_ACEOF
12588/* end confdefs.h.  */
12589
12590int
12591main ()
12592{
12593
12594  ;
12595  return 0;
12596}
12597_ACEOF
12598rm -f conftest.$ac_objext conftest$ac_exeext
12599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12600  (eval $ac_link) 2>conftest.er1
12601  ac_status=$?
12602  grep -v '^ *+' conftest.er1 >conftest.err
12603  rm -f conftest.er1
12604  cat conftest.err >&5
12605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606  (exit $ac_status); } &&
12607	 { ac_try='test -z "$ac_c_werror_flag"
12608			 || test ! -s conftest.err'
12609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610  (eval $ac_try) 2>&5
12611  ac_status=$?
12612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613  (exit $ac_status); }; } &&
12614	 { ac_try='test -s conftest$ac_exeext'
12615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616  (eval $ac_try) 2>&5
12617  ac_status=$?
12618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619  (exit $ac_status); }; }; then
12620
12621aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12622}'`
12623# Check for a 64-bit object if we didn't find anything.
12624if 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; }
12625}'`; fi
12626else
12627  echo "$as_me: failed program was:" >&5
12628sed 's/^/| /' conftest.$ac_ext >&5
12629
12630fi
12631rm -f conftest.err conftest.$ac_objext \
12632      conftest$ac_exeext conftest.$ac_ext
12633if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12634
12635       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12636	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"
12637       else
12638	if test "$host_cpu" = ia64; then
12639	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12640	  allow_undefined_flag="-z nodefs"
12641	  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"
12642	else
12643	 # Determine the default libpath from the value encoded in an empty executable.
12644	 cat >conftest.$ac_ext <<_ACEOF
12645/* confdefs.h.  */
12646_ACEOF
12647cat confdefs.h >>conftest.$ac_ext
12648cat >>conftest.$ac_ext <<_ACEOF
12649/* end confdefs.h.  */
12650
12651int
12652main ()
12653{
12654
12655  ;
12656  return 0;
12657}
12658_ACEOF
12659rm -f conftest.$ac_objext conftest$ac_exeext
12660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12661  (eval $ac_link) 2>conftest.er1
12662  ac_status=$?
12663  grep -v '^ *+' conftest.er1 >conftest.err
12664  rm -f conftest.er1
12665  cat conftest.err >&5
12666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667  (exit $ac_status); } &&
12668	 { ac_try='test -z "$ac_c_werror_flag"
12669			 || test ! -s conftest.err'
12670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671  (eval $ac_try) 2>&5
12672  ac_status=$?
12673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674  (exit $ac_status); }; } &&
12675	 { ac_try='test -s conftest$ac_exeext'
12676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677  (eval $ac_try) 2>&5
12678  ac_status=$?
12679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680  (exit $ac_status); }; }; then
12681
12682aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12683}'`
12684# Check for a 64-bit object if we didn't find anything.
12685if 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; }
12686}'`; fi
12687else
12688  echo "$as_me: failed program was:" >&5
12689sed 's/^/| /' conftest.$ac_ext >&5
12690
12691fi
12692rm -f conftest.err conftest.$ac_objext \
12693      conftest$ac_exeext conftest.$ac_ext
12694if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12695
12696	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12697	  # Warning - without using the other run time loading flags,
12698	  # -berok will link without error, but may produce a broken library.
12699	  no_undefined_flag=' ${wl}-bernotok'
12700	  allow_undefined_flag=' ${wl}-berok'
12701	  # -bexpall does not export symbols beginning with underscore (_)
12702	  always_export_symbols=yes
12703	  # Exported symbols can be pulled into shared objects from archives
12704	  whole_archive_flag_spec=' '
12705	  archive_cmds_need_lc=yes
12706	  # This is similar to how AIX traditionally builds it's shared libraries.
12707	  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'
12708	fi
12709      fi
12710      ;;
12711
12712    amigaos*)
12713      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)'
12714      hardcode_libdir_flag_spec='-L$libdir'
12715      hardcode_minus_L=yes
12716      # see comment about different semantics on the GNU ld section
12717      ld_shlibs=no
12718      ;;
12719
12720    bsdi[45]*)
12721      export_dynamic_flag_spec=-rdynamic
12722      ;;
12723
12724    cygwin* | mingw* | pw32*)
12725      # When not using gcc, we currently assume that we are using
12726      # Microsoft Visual C++.
12727      # hardcode_libdir_flag_spec is actually meaningless, as there is
12728      # no search path for DLLs.
12729      hardcode_libdir_flag_spec=' '
12730      allow_undefined_flag=unsupported
12731      # Tell ltmain to make .lib files, not .a files.
12732      libext=lib
12733      # Tell ltmain to make .dll files, not .so files.
12734      shrext_cmds=".dll"
12735      # FIXME: Setting linknames here is a bad hack.
12736      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12737      # The linker will automatically build a .lib file if we build a DLL.
12738      old_archive_From_new_cmds='true'
12739      # FIXME: Should let the user specify the lib program.
12740      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12741      fix_srcfile_path='`cygpath -w "$srcfile"`'
12742      enable_shared_with_static_runtimes=yes
12743      ;;
12744
12745    darwin* | rhapsody*)
12746      case "$host_os" in
12747        rhapsody* | darwin1.[012])
12748         allow_undefined_flag='${wl}-undefined ${wl}suppress'
12749         ;;
12750       *) # Darwin 1.3 on
12751         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12752           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12753         else
12754           case ${MACOSX_DEPLOYMENT_TARGET} in
12755             10.[012])
12756               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12757               ;;
12758             10.*)
12759               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12760               ;;
12761           esac
12762         fi
12763         ;;
12764      esac
12765      archive_cmds_need_lc=no
12766      hardcode_direct=no
12767      hardcode_automatic=yes
12768      hardcode_shlibpath_var=unsupported
12769      whole_archive_flag_spec=''
12770      link_all_deplibs=yes
12771    if test "$GCC" = yes ; then
12772    	output_verbose_link_cmd='echo'
12773        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12774      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12775      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12776      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}'
12777      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}'
12778    else
12779      case "$cc_basename" in
12780        xlc*)
12781         output_verbose_link_cmd='echo'
12782         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12783         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12784          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12785         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}'
12786          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}'
12787          ;;
12788       *)
12789         ld_shlibs=no
12790          ;;
12791      esac
12792    fi
12793      ;;
12794
12795    dgux*)
12796      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12797      hardcode_libdir_flag_spec='-L$libdir'
12798      hardcode_shlibpath_var=no
12799      ;;
12800
12801    freebsd1*)
12802      ld_shlibs=no
12803      ;;
12804
12805    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12806    # support.  Future versions do this automatically, but an explicit c++rt0.o
12807    # does not break anything, and helps significantly (at the cost of a little
12808    # extra space).
12809    freebsd2.2*)
12810      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12811      hardcode_libdir_flag_spec='-R$libdir'
12812      hardcode_direct=yes
12813      hardcode_shlibpath_var=no
12814      ;;
12815
12816    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12817    freebsd2*)
12818      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12819      hardcode_direct=yes
12820      hardcode_minus_L=yes
12821      hardcode_shlibpath_var=no
12822      ;;
12823
12824    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12825    freebsd* | kfreebsd*-gnu)
12826      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12827      hardcode_libdir_flag_spec='-R$libdir'
12828      hardcode_direct=yes
12829      hardcode_shlibpath_var=no
12830      ;;
12831
12832    hpux9*)
12833      if test "$GCC" = yes; then
12834	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'
12835      else
12836	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'
12837      fi
12838      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12839      hardcode_libdir_separator=:
12840      hardcode_direct=yes
12841
12842      # hardcode_minus_L: Not really in the search PATH,
12843      # but as the default location of the library.
12844      hardcode_minus_L=yes
12845      export_dynamic_flag_spec='${wl}-E'
12846      ;;
12847
12848    hpux10* | hpux11*)
12849      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12850	case "$host_cpu" in
12851	hppa*64*|ia64*)
12852	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12853	  ;;
12854	*)
12855	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12856	  ;;
12857	esac
12858      else
12859	case "$host_cpu" in
12860	hppa*64*|ia64*)
12861	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12862	  ;;
12863	*)
12864	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12865	  ;;
12866	esac
12867      fi
12868      if test "$with_gnu_ld" = no; then
12869	case "$host_cpu" in
12870	hppa*64*)
12871	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12872	  hardcode_libdir_flag_spec_ld='+b $libdir'
12873	  hardcode_libdir_separator=:
12874	  hardcode_direct=no
12875	  hardcode_shlibpath_var=no
12876	  ;;
12877	ia64*)
12878	  hardcode_libdir_flag_spec='-L$libdir'
12879	  hardcode_direct=no
12880	  hardcode_shlibpath_var=no
12881
12882	  # hardcode_minus_L: Not really in the search PATH,
12883	  # but as the default location of the library.
12884	  hardcode_minus_L=yes
12885	  ;;
12886	*)
12887	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12888	  hardcode_libdir_separator=:
12889	  hardcode_direct=yes
12890	  export_dynamic_flag_spec='${wl}-E'
12891
12892	  # hardcode_minus_L: Not really in the search PATH,
12893	  # but as the default location of the library.
12894	  hardcode_minus_L=yes
12895	  ;;
12896	esac
12897      fi
12898      ;;
12899
12900    irix5* | irix6* | nonstopux*)
12901      if test "$GCC" = yes; then
12902	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'
12903      else
12904	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'
12905	hardcode_libdir_flag_spec_ld='-rpath $libdir'
12906      fi
12907      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12908      hardcode_libdir_separator=:
12909      link_all_deplibs=yes
12910      ;;
12911
12912    netbsd*)
12913      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12914	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12915      else
12916	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12917      fi
12918      hardcode_libdir_flag_spec='-R$libdir'
12919      hardcode_direct=yes
12920      hardcode_shlibpath_var=no
12921      ;;
12922
12923    newsos6)
12924      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12925      hardcode_direct=yes
12926      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12927      hardcode_libdir_separator=:
12928      hardcode_shlibpath_var=no
12929      ;;
12930
12931    openbsd*)
12932      hardcode_direct=yes
12933      hardcode_shlibpath_var=no
12934      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12935	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12936	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12937	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12938	export_dynamic_flag_spec='${wl}-E'
12939      else
12940       case $host_os in
12941	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12942	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12943	   hardcode_libdir_flag_spec='-R$libdir'
12944	   ;;
12945	 *)
12946	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12947	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12948	   ;;
12949       esac
12950      fi
12951      ;;
12952
12953    os2*)
12954      hardcode_libdir_flag_spec='-L$libdir'
12955      hardcode_minus_L=yes
12956      allow_undefined_flag=unsupported
12957      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'
12958      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12959      ;;
12960
12961    osf3*)
12962      if test "$GCC" = yes; then
12963	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12964	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'
12965      else
12966	allow_undefined_flag=' -expect_unresolved \*'
12967	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'
12968      fi
12969      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12970      hardcode_libdir_separator=:
12971      ;;
12972
12973    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12974      if test "$GCC" = yes; then
12975	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12976	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'
12977	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12978      else
12979	allow_undefined_flag=' -expect_unresolved \*'
12980	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'
12981	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12982	$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'
12983
12984	# Both c and cxx compiler support -rpath directly
12985	hardcode_libdir_flag_spec='-rpath $libdir'
12986      fi
12987      hardcode_libdir_separator=:
12988      ;;
12989
12990    sco3.2v5*)
12991      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12992      hardcode_shlibpath_var=no
12993      export_dynamic_flag_spec='${wl}-Bexport'
12994      runpath_var=LD_RUN_PATH
12995      hardcode_runpath_var=yes
12996      ;;
12997
12998    solaris*)
12999      no_undefined_flag=' -z text'
13000      if test "$GCC" = yes; then
13001	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13002	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13003	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13004      else
13005	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13006	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13007  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13008      fi
13009      hardcode_libdir_flag_spec='-R$libdir'
13010      hardcode_shlibpath_var=no
13011      case $host_os in
13012      solaris2.[0-5] | solaris2.[0-5].*) ;;
13013      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13014	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13015      esac
13016      link_all_deplibs=yes
13017      ;;
13018
13019    sunos4*)
13020      if test "x$host_vendor" = xsequent; then
13021	# Use $CC to link under sequent, because it throws in some extra .o
13022	# files that make .init and .fini sections work.
13023	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13024      else
13025	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13026      fi
13027      hardcode_libdir_flag_spec='-L$libdir'
13028      hardcode_direct=yes
13029      hardcode_minus_L=yes
13030      hardcode_shlibpath_var=no
13031      ;;
13032
13033    sysv4)
13034      case $host_vendor in
13035	sni)
13036	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13037	  hardcode_direct=yes # is this really true???
13038	;;
13039	siemens)
13040	  ## LD is ld it makes a PLAMLIB
13041	  ## CC just makes a GrossModule.
13042	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13043	  reload_cmds='$CC -r -o $output$reload_objs'
13044	  hardcode_direct=no
13045        ;;
13046	motorola)
13047	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13048	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13049	;;
13050      esac
13051      runpath_var='LD_RUN_PATH'
13052      hardcode_shlibpath_var=no
13053      ;;
13054
13055    sysv4.3*)
13056      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13057      hardcode_shlibpath_var=no
13058      export_dynamic_flag_spec='-Bexport'
13059      ;;
13060
13061    sysv4*MP*)
13062      if test -d /usr/nec; then
13063	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13064	hardcode_shlibpath_var=no
13065	runpath_var=LD_RUN_PATH
13066	hardcode_runpath_var=yes
13067	ld_shlibs=yes
13068      fi
13069      ;;
13070
13071    sysv4.2uw2*)
13072      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13073      hardcode_direct=yes
13074      hardcode_minus_L=no
13075      hardcode_shlibpath_var=no
13076      hardcode_runpath_var=yes
13077      runpath_var=LD_RUN_PATH
13078      ;;
13079
13080   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13081      no_undefined_flag='${wl}-z ${wl}text'
13082      if test "$GCC" = yes; then
13083	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13084      else
13085	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13086      fi
13087      runpath_var='LD_RUN_PATH'
13088      hardcode_shlibpath_var=no
13089      ;;
13090
13091    sysv5*)
13092      no_undefined_flag=' -z text'
13093      # $CC -shared without GNU ld will not create a library from C++
13094      # object files and a static libstdc++, better avoid it by now
13095      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13096      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13097  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13098      hardcode_libdir_flag_spec=
13099      hardcode_shlibpath_var=no
13100      runpath_var='LD_RUN_PATH'
13101      ;;
13102
13103    uts4*)
13104      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13105      hardcode_libdir_flag_spec='-L$libdir'
13106      hardcode_shlibpath_var=no
13107      ;;
13108
13109    *)
13110      ld_shlibs=no
13111      ;;
13112    esac
13113  fi
13114
13115echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13116echo "${ECHO_T}$ld_shlibs" >&6
13117test "$ld_shlibs" = no && can_build_shared=no
13118
13119variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13120if test "$GCC" = yes; then
13121  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13122fi
13123
13124#
13125# Do we need to explicitly link libc?
13126#
13127case "x$archive_cmds_need_lc" in
13128x|xyes)
13129  # Assume -lc should be added
13130  archive_cmds_need_lc=yes
13131
13132  if test "$enable_shared" = yes && test "$GCC" = yes; then
13133    case $archive_cmds in
13134    *'~'*)
13135      # FIXME: we may have to deal with multi-command sequences.
13136      ;;
13137    '$CC '*)
13138      # Test whether the compiler implicitly links with -lc since on some
13139      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13140      # to ld, don't add -lc before -lgcc.
13141      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13142echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13143      $rm conftest*
13144      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13145
13146      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13147  (eval $ac_compile) 2>&5
13148  ac_status=$?
13149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150  (exit $ac_status); } 2>conftest.err; then
13151        soname=conftest
13152        lib=conftest
13153        libobjs=conftest.$ac_objext
13154        deplibs=
13155        wl=$lt_prog_compiler_wl
13156        compiler_flags=-v
13157        linker_flags=-v
13158        verstring=
13159        output_objdir=.
13160        libname=conftest
13161        lt_save_allow_undefined_flag=$allow_undefined_flag
13162        allow_undefined_flag=
13163        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13164  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13165  ac_status=$?
13166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167  (exit $ac_status); }
13168        then
13169	  archive_cmds_need_lc=no
13170        else
13171	  archive_cmds_need_lc=yes
13172        fi
13173        allow_undefined_flag=$lt_save_allow_undefined_flag
13174      else
13175        cat conftest.err 1>&5
13176      fi
13177      $rm conftest*
13178      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13179echo "${ECHO_T}$archive_cmds_need_lc" >&6
13180      ;;
13181    esac
13182  fi
13183  ;;
13184esac
13185
13186echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13187echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13188library_names_spec=
13189libname_spec='lib$name'
13190soname_spec=
13191shrext_cmds=".so"
13192postinstall_cmds=
13193postuninstall_cmds=
13194finish_cmds=
13195finish_eval=
13196shlibpath_var=
13197shlibpath_overrides_runpath=unknown
13198version_type=none
13199dynamic_linker="$host_os ld.so"
13200sys_lib_dlsearch_path_spec="/lib /usr/lib"
13201if test "$GCC" = yes; then
13202  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13203  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13204    # if the path contains ";" then we assume it to be the separator
13205    # otherwise default to the standard path separator (i.e. ":") - it is
13206    # assumed that no part of a normal pathname contains ";" but that should
13207    # okay in the real world where ";" in dirpaths is itself problematic.
13208    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13209  else
13210    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13211  fi
13212else
13213  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13214fi
13215need_lib_prefix=unknown
13216hardcode_into_libs=no
13217
13218# when you set need_version to no, make sure it does not cause -set_version
13219# flags to be left without arguments
13220need_version=unknown
13221
13222case $host_os in
13223aix3*)
13224  version_type=linux
13225  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13226  shlibpath_var=LIBPATH
13227
13228  # AIX 3 has no versioning support, so we append a major version to the name.
13229  soname_spec='${libname}${release}${shared_ext}$major'
13230  ;;
13231
13232aix4* | aix5*)
13233  version_type=linux
13234  need_lib_prefix=no
13235  need_version=no
13236  hardcode_into_libs=yes
13237  if test "$host_cpu" = ia64; then
13238    # AIX 5 supports IA64
13239    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13240    shlibpath_var=LD_LIBRARY_PATH
13241  else
13242    # With GCC up to 2.95.x, collect2 would create an import file
13243    # for dependence libraries.  The import file would start with
13244    # the line `#! .'.  This would cause the generated library to
13245    # depend on `.', always an invalid library.  This was fixed in
13246    # development snapshots of GCC prior to 3.0.
13247    case $host_os in
13248      aix4 | aix4.[01] | aix4.[01].*)
13249      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13250	   echo ' yes '
13251	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13252	:
13253      else
13254	can_build_shared=no
13255      fi
13256      ;;
13257    esac
13258    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13259    # soname into executable. Probably we can add versioning support to
13260    # collect2, so additional links can be useful in future.
13261    if test "$aix_use_runtimelinking" = yes; then
13262      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13263      # instead of lib<name>.a to let people know that these are not
13264      # typical AIX shared libraries.
13265      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13266    else
13267      # We preserve .a as extension for shared libraries through AIX4.2
13268      # and later when we are not doing run time linking.
13269      library_names_spec='${libname}${release}.a $libname.a'
13270      soname_spec='${libname}${release}${shared_ext}$major'
13271    fi
13272    shlibpath_var=LIBPATH
13273  fi
13274  ;;
13275
13276amigaos*)
13277  library_names_spec='$libname.ixlibrary $libname.a'
13278  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13279  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'
13280  ;;
13281
13282beos*)
13283  library_names_spec='${libname}${shared_ext}'
13284  dynamic_linker="$host_os ld.so"
13285  shlibpath_var=LIBRARY_PATH
13286  ;;
13287
13288bsdi[45]*)
13289  version_type=linux
13290  need_version=no
13291  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13292  soname_spec='${libname}${release}${shared_ext}$major'
13293  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13294  shlibpath_var=LD_LIBRARY_PATH
13295  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13296  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13297  # the default ld.so.conf also contains /usr/contrib/lib and
13298  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13299  # libtool to hard-code these into programs
13300  ;;
13301
13302cygwin* | mingw* | pw32*)
13303  version_type=windows
13304  shrext_cmds=".dll"
13305  need_version=no
13306  need_lib_prefix=no
13307
13308  case $GCC,$host_os in
13309  yes,cygwin* | yes,mingw* | yes,pw32*)
13310    library_names_spec='$libname.dll.a'
13311    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13312    postinstall_cmds='base_file=`basename \${file}`~
13313      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13314      dldir=$destdir/`dirname \$dlpath`~
13315      test -d \$dldir || mkdir -p \$dldir~
13316      $install_prog $dir/$dlname \$dldir/$dlname'
13317    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13318      dlpath=$dir/\$dldll~
13319       $rm \$dlpath'
13320    shlibpath_overrides_runpath=yes
13321
13322    case $host_os in
13323    cygwin*)
13324      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13325      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13326      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13327      ;;
13328    mingw*)
13329      # MinGW DLLs use traditional 'lib' prefix
13330      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13331      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13332      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13333        # It is most probably a Windows format PATH printed by
13334        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13335        # path with ; separators, and with drive letters. We can handle the
13336        # drive letters (cygwin fileutils understands them), so leave them,
13337        # especially as we might pass files found there to a mingw objdump,
13338        # which wouldn't understand a cygwinified path. Ahh.
13339        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13340      else
13341        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13342      fi
13343      ;;
13344    pw32*)
13345      # pw32 DLLs use 'pw' prefix rather than 'lib'
13346      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13347      ;;
13348    esac
13349    ;;
13350
13351  *)
13352    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13353    ;;
13354  esac
13355  dynamic_linker='Win32 ld.exe'
13356  # FIXME: first we should search . and the directory the executable is in
13357  shlibpath_var=PATH
13358  ;;
13359
13360darwin* | rhapsody*)
13361  dynamic_linker="$host_os dyld"
13362  version_type=darwin
13363  need_lib_prefix=no
13364  need_version=no
13365  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13366  soname_spec='${libname}${release}${major}$shared_ext'
13367  shlibpath_overrides_runpath=yes
13368  shlibpath_var=DYLD_LIBRARY_PATH
13369  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13370  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13371  if test "$GCC" = yes; then
13372    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"`
13373  else
13374    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13375  fi
13376  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13377  ;;
13378
13379dgux*)
13380  version_type=linux
13381  need_lib_prefix=no
13382  need_version=no
13383  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13384  soname_spec='${libname}${release}${shared_ext}$major'
13385  shlibpath_var=LD_LIBRARY_PATH
13386  ;;
13387
13388freebsd1*)
13389  dynamic_linker=no
13390  ;;
13391
13392kfreebsd*-gnu)
13393  version_type=linux
13394  need_lib_prefix=no
13395  need_version=no
13396  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13397  soname_spec='${libname}${release}${shared_ext}$major'
13398  shlibpath_var=LD_LIBRARY_PATH
13399  shlibpath_overrides_runpath=no
13400  hardcode_into_libs=yes
13401  dynamic_linker='GNU ld.so'
13402  ;;
13403
13404freebsd*)
13405  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13406  version_type=freebsd-$objformat
13407  case $version_type in
13408    freebsd-elf*)
13409      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13410      need_version=no
13411      need_lib_prefix=no
13412      ;;
13413    freebsd-*)
13414      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13415      need_version=yes
13416      ;;
13417  esac
13418  shlibpath_var=LD_LIBRARY_PATH
13419  case $host_os in
13420  freebsd2*)
13421    shlibpath_overrides_runpath=yes
13422    ;;
13423  freebsd3.01* | freebsdelf3.01*)
13424    shlibpath_overrides_runpath=yes
13425    hardcode_into_libs=yes
13426    ;;
13427  *) # from 3.2 on
13428    shlibpath_overrides_runpath=no
13429    hardcode_into_libs=yes
13430    ;;
13431  esac
13432  ;;
13433
13434gnu*)
13435  version_type=linux
13436  need_lib_prefix=no
13437  need_version=no
13438  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13439  soname_spec='${libname}${release}${shared_ext}$major'
13440  shlibpath_var=LD_LIBRARY_PATH
13441  hardcode_into_libs=yes
13442  ;;
13443
13444hpux9* | hpux10* | hpux11*)
13445  # Give a soname corresponding to the major version so that dld.sl refuses to
13446  # link against other versions.
13447  version_type=sunos
13448  need_lib_prefix=no
13449  need_version=no
13450  case "$host_cpu" in
13451  ia64*)
13452    shrext_cmds='.so'
13453    hardcode_into_libs=yes
13454    dynamic_linker="$host_os dld.so"
13455    shlibpath_var=LD_LIBRARY_PATH
13456    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13457    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13458    soname_spec='${libname}${release}${shared_ext}$major'
13459    if test "X$HPUX_IA64_MODE" = X32; then
13460      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13461    else
13462      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13463    fi
13464    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13465    ;;
13466   hppa*64*)
13467     shrext_cmds='.sl'
13468     hardcode_into_libs=yes
13469     dynamic_linker="$host_os dld.sl"
13470     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13471     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13472     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13473     soname_spec='${libname}${release}${shared_ext}$major'
13474     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13475     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13476     ;;
13477   *)
13478    shrext_cmds='.sl'
13479    dynamic_linker="$host_os dld.sl"
13480    shlibpath_var=SHLIB_PATH
13481    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13482    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13483    soname_spec='${libname}${release}${shared_ext}$major'
13484    ;;
13485  esac
13486  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13487  postinstall_cmds='chmod 555 $lib'
13488  ;;
13489
13490irix5* | irix6* | nonstopux*)
13491  case $host_os in
13492    nonstopux*) version_type=nonstopux ;;
13493    *)
13494	if test "$lt_cv_prog_gnu_ld" = yes; then
13495		version_type=linux
13496	else
13497		version_type=irix
13498	fi ;;
13499  esac
13500  need_lib_prefix=no
13501  need_version=no
13502  soname_spec='${libname}${release}${shared_ext}$major'
13503  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13504  case $host_os in
13505  irix5* | nonstopux*)
13506    libsuff= shlibsuff=
13507    ;;
13508  *)
13509    case $LD in # libtool.m4 will add one of these switches to LD
13510    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13511      libsuff= shlibsuff= libmagic=32-bit;;
13512    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13513      libsuff=32 shlibsuff=N32 libmagic=N32;;
13514    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13515      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13516    *) libsuff= shlibsuff= libmagic=never-match;;
13517    esac
13518    ;;
13519  esac
13520  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13521  shlibpath_overrides_runpath=no
13522  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13523  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13524  hardcode_into_libs=yes
13525  ;;
13526
13527# No shared lib support for Linux oldld, aout, or coff.
13528linux*oldld* | linux*aout* | linux*coff*)
13529  dynamic_linker=no
13530  ;;
13531
13532# This must be Linux ELF.
13533linux*)
13534  version_type=linux
13535  need_lib_prefix=no
13536  need_version=no
13537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13538  soname_spec='${libname}${release}${shared_ext}$major'
13539  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13540  shlibpath_var=LD_LIBRARY_PATH
13541  shlibpath_overrides_runpath=no
13542  # This implies no fast_install, which is unacceptable.
13543  # Some rework will be needed to allow for fast_install
13544  # before this can be enabled.
13545  hardcode_into_libs=yes
13546
13547  # Append ld.so.conf contents to the search path
13548  if test -f /etc/ld.so.conf; then
13549    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13550    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13551  fi
13552
13553  # We used to test for /lib/ld.so.1 and disable shared libraries on
13554  # powerpc, because MkLinux only supported shared libraries with the
13555  # GNU dynamic linker.  Since this was broken with cross compilers,
13556  # most powerpc-linux boxes support dynamic linking these days and
13557  # people can always --disable-shared, the test was removed, and we
13558  # assume the GNU/Linux dynamic linker is in use.
13559  dynamic_linker='GNU/Linux ld.so'
13560  ;;
13561
13562knetbsd*-gnu)
13563  version_type=linux
13564  need_lib_prefix=no
13565  need_version=no
13566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13567  soname_spec='${libname}${release}${shared_ext}$major'
13568  shlibpath_var=LD_LIBRARY_PATH
13569  shlibpath_overrides_runpath=no
13570  hardcode_into_libs=yes
13571  dynamic_linker='GNU ld.so'
13572  ;;
13573
13574netbsd*)
13575  version_type=sunos
13576  need_lib_prefix=no
13577  need_version=no
13578  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13579    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13580    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13581    dynamic_linker='NetBSD (a.out) ld.so'
13582  else
13583    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13584    soname_spec='${libname}${release}${shared_ext}$major'
13585    dynamic_linker='NetBSD ld.elf_so'
13586  fi
13587  shlibpath_var=LD_LIBRARY_PATH
13588  shlibpath_overrides_runpath=yes
13589  hardcode_into_libs=yes
13590  ;;
13591
13592newsos6)
13593  version_type=linux
13594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13595  shlibpath_var=LD_LIBRARY_PATH
13596  shlibpath_overrides_runpath=yes
13597  ;;
13598
13599nto-qnx*)
13600  version_type=linux
13601  need_lib_prefix=no
13602  need_version=no
13603  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13604  soname_spec='${libname}${release}${shared_ext}$major'
13605  shlibpath_var=LD_LIBRARY_PATH
13606  shlibpath_overrides_runpath=yes
13607  ;;
13608
13609openbsd*)
13610  version_type=sunos
13611  need_lib_prefix=no
13612  need_version=no
13613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13614  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13615  shlibpath_var=LD_LIBRARY_PATH
13616  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13617    case $host_os in
13618      openbsd2.[89] | openbsd2.[89].*)
13619	shlibpath_overrides_runpath=no
13620	;;
13621      *)
13622	shlibpath_overrides_runpath=yes
13623	;;
13624      esac
13625  else
13626    shlibpath_overrides_runpath=yes
13627  fi
13628  ;;
13629
13630os2*)
13631  libname_spec='$name'
13632  shrext_cmds=".dll"
13633  need_lib_prefix=no
13634  library_names_spec='$libname${shared_ext} $libname.a'
13635  dynamic_linker='OS/2 ld.exe'
13636  shlibpath_var=LIBPATH
13637  ;;
13638
13639osf3* | osf4* | osf5*)
13640  version_type=osf
13641  need_lib_prefix=no
13642  need_version=no
13643  soname_spec='${libname}${release}${shared_ext}$major'
13644  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13645  shlibpath_var=LD_LIBRARY_PATH
13646  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13647  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13648  ;;
13649
13650sco3.2v5*)
13651  version_type=osf
13652  soname_spec='${libname}${release}${shared_ext}$major'
13653  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13654  shlibpath_var=LD_LIBRARY_PATH
13655  ;;
13656
13657solaris*)
13658  version_type=linux
13659  need_lib_prefix=no
13660  need_version=no
13661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13662  soname_spec='${libname}${release}${shared_ext}$major'
13663  shlibpath_var=LD_LIBRARY_PATH
13664  shlibpath_overrides_runpath=yes
13665  hardcode_into_libs=yes
13666  # ldd complains unless libraries are executable
13667  postinstall_cmds='chmod +x $lib'
13668  ;;
13669
13670sunos4*)
13671  version_type=sunos
13672  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13673  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13674  shlibpath_var=LD_LIBRARY_PATH
13675  shlibpath_overrides_runpath=yes
13676  if test "$with_gnu_ld" = yes; then
13677    need_lib_prefix=no
13678  fi
13679  need_version=yes
13680  ;;
13681
13682sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13683  version_type=linux
13684  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13685  soname_spec='${libname}${release}${shared_ext}$major'
13686  shlibpath_var=LD_LIBRARY_PATH
13687  case $host_vendor in
13688    sni)
13689      shlibpath_overrides_runpath=no
13690      need_lib_prefix=no
13691      export_dynamic_flag_spec='${wl}-Blargedynsym'
13692      runpath_var=LD_RUN_PATH
13693      ;;
13694    siemens)
13695      need_lib_prefix=no
13696      ;;
13697    motorola)
13698      need_lib_prefix=no
13699      need_version=no
13700      shlibpath_overrides_runpath=no
13701      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13702      ;;
13703  esac
13704  ;;
13705
13706sysv4*MP*)
13707  if test -d /usr/nec ;then
13708    version_type=linux
13709    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13710    soname_spec='$libname${shared_ext}.$major'
13711    shlibpath_var=LD_LIBRARY_PATH
13712  fi
13713  ;;
13714
13715uts4*)
13716  version_type=linux
13717  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13718  soname_spec='${libname}${release}${shared_ext}$major'
13719  shlibpath_var=LD_LIBRARY_PATH
13720  ;;
13721
13722*)
13723  dynamic_linker=no
13724  ;;
13725esac
13726echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13727echo "${ECHO_T}$dynamic_linker" >&6
13728test "$dynamic_linker" = no && can_build_shared=no
13729
13730echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13731echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13732hardcode_action=
13733if test -n "$hardcode_libdir_flag_spec" || \
13734   test -n "$runpath_var" || \
13735   test "X$hardcode_automatic" = "Xyes" ; then
13736
13737  # We can hardcode non-existant directories.
13738  if test "$hardcode_direct" != no &&
13739     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13740     # have to relink, otherwise we might link with an installed library
13741     # when we should be linking with a yet-to-be-installed one
13742     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13743     test "$hardcode_minus_L" != no; then
13744    # Linking always hardcodes the temporary library directory.
13745    hardcode_action=relink
13746  else
13747    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13748    hardcode_action=immediate
13749  fi
13750else
13751  # We cannot hardcode anything, or else we can only hardcode existing
13752  # directories.
13753  hardcode_action=unsupported
13754fi
13755echo "$as_me:$LINENO: result: $hardcode_action" >&5
13756echo "${ECHO_T}$hardcode_action" >&6
13757
13758if test "$hardcode_action" = relink; then
13759  # Fast installation is not supported
13760  enable_fast_install=no
13761elif test "$shlibpath_overrides_runpath" = yes ||
13762     test "$enable_shared" = no; then
13763  # Fast installation is not necessary
13764  enable_fast_install=needless
13765fi
13766
13767striplib=
13768old_striplib=
13769echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13770echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13771if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13772  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13773  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13774  echo "$as_me:$LINENO: result: yes" >&5
13775echo "${ECHO_T}yes" >&6
13776else
13777# FIXME - insert some real tests, host_os isn't really good enough
13778  case $host_os in
13779   darwin*)
13780       if test -n "$STRIP" ; then
13781         striplib="$STRIP -x"
13782         echo "$as_me:$LINENO: result: yes" >&5
13783echo "${ECHO_T}yes" >&6
13784       else
13785  echo "$as_me:$LINENO: result: no" >&5
13786echo "${ECHO_T}no" >&6
13787fi
13788       ;;
13789   *)
13790  echo "$as_me:$LINENO: result: no" >&5
13791echo "${ECHO_T}no" >&6
13792    ;;
13793  esac
13794fi
13795
13796if test "x$enable_dlopen" != xyes; then
13797  enable_dlopen=unknown
13798  enable_dlopen_self=unknown
13799  enable_dlopen_self_static=unknown
13800else
13801  lt_cv_dlopen=no
13802  lt_cv_dlopen_libs=
13803
13804  case $host_os in
13805  beos*)
13806    lt_cv_dlopen="load_add_on"
13807    lt_cv_dlopen_libs=
13808    lt_cv_dlopen_self=yes
13809    ;;
13810
13811  mingw* | pw32*)
13812    lt_cv_dlopen="LoadLibrary"
13813    lt_cv_dlopen_libs=
13814   ;;
13815
13816  cygwin*)
13817    lt_cv_dlopen="dlopen"
13818    lt_cv_dlopen_libs=
13819   ;;
13820
13821  darwin*)
13822  # if libdl is installed we need to link against it
13823    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13824echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13825if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13826  echo $ECHO_N "(cached) $ECHO_C" >&6
13827else
13828  ac_check_lib_save_LIBS=$LIBS
13829LIBS="-ldl  $LIBS"
13830cat >conftest.$ac_ext <<_ACEOF
13831/* confdefs.h.  */
13832_ACEOF
13833cat confdefs.h >>conftest.$ac_ext
13834cat >>conftest.$ac_ext <<_ACEOF
13835/* end confdefs.h.  */
13836
13837/* Override any gcc2 internal prototype to avoid an error.  */
13838#ifdef __cplusplus
13839extern "C"
13840#endif
13841/* We use char because int might match the return type of a gcc2
13842   builtin and then its argument prototype would still apply.  */
13843char dlopen ();
13844int
13845main ()
13846{
13847dlopen ();
13848  ;
13849  return 0;
13850}
13851_ACEOF
13852rm -f conftest.$ac_objext conftest$ac_exeext
13853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13854  (eval $ac_link) 2>conftest.er1
13855  ac_status=$?
13856  grep -v '^ *+' conftest.er1 >conftest.err
13857  rm -f conftest.er1
13858  cat conftest.err >&5
13859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860  (exit $ac_status); } &&
13861	 { ac_try='test -z "$ac_c_werror_flag"
13862			 || test ! -s conftest.err'
13863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864  (eval $ac_try) 2>&5
13865  ac_status=$?
13866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867  (exit $ac_status); }; } &&
13868	 { ac_try='test -s conftest$ac_exeext'
13869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870  (eval $ac_try) 2>&5
13871  ac_status=$?
13872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873  (exit $ac_status); }; }; then
13874  ac_cv_lib_dl_dlopen=yes
13875else
13876  echo "$as_me: failed program was:" >&5
13877sed 's/^/| /' conftest.$ac_ext >&5
13878
13879ac_cv_lib_dl_dlopen=no
13880fi
13881rm -f conftest.err conftest.$ac_objext \
13882      conftest$ac_exeext conftest.$ac_ext
13883LIBS=$ac_check_lib_save_LIBS
13884fi
13885echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13886echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13887if test $ac_cv_lib_dl_dlopen = yes; then
13888  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13889else
13890
13891    lt_cv_dlopen="dyld"
13892    lt_cv_dlopen_libs=
13893    lt_cv_dlopen_self=yes
13894
13895fi
13896
13897   ;;
13898
13899  *)
13900    echo "$as_me:$LINENO: checking for shl_load" >&5
13901echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13902if test "${ac_cv_func_shl_load+set}" = set; then
13903  echo $ECHO_N "(cached) $ECHO_C" >&6
13904else
13905  cat >conftest.$ac_ext <<_ACEOF
13906/* confdefs.h.  */
13907_ACEOF
13908cat confdefs.h >>conftest.$ac_ext
13909cat >>conftest.$ac_ext <<_ACEOF
13910/* end confdefs.h.  */
13911/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13912   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13913#define shl_load innocuous_shl_load
13914
13915/* System header to define __stub macros and hopefully few prototypes,
13916    which can conflict with char shl_load (); below.
13917    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13918    <limits.h> exists even on freestanding compilers.  */
13919
13920#ifdef __STDC__
13921# include <limits.h>
13922#else
13923# include <assert.h>
13924#endif
13925
13926#undef shl_load
13927
13928/* Override any gcc2 internal prototype to avoid an error.  */
13929#ifdef __cplusplus
13930extern "C"
13931{
13932#endif
13933/* We use char because int might match the return type of a gcc2
13934   builtin and then its argument prototype would still apply.  */
13935char shl_load ();
13936/* The GNU C library defines this for functions which it implements
13937    to always fail with ENOSYS.  Some functions are actually named
13938    something starting with __ and the normal name is an alias.  */
13939#if defined (__stub_shl_load) || defined (__stub___shl_load)
13940choke me
13941#else
13942char (*f) () = shl_load;
13943#endif
13944#ifdef __cplusplus
13945}
13946#endif
13947
13948int
13949main ()
13950{
13951return f != shl_load;
13952  ;
13953  return 0;
13954}
13955_ACEOF
13956rm -f conftest.$ac_objext conftest$ac_exeext
13957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13958  (eval $ac_link) 2>conftest.er1
13959  ac_status=$?
13960  grep -v '^ *+' conftest.er1 >conftest.err
13961  rm -f conftest.er1
13962  cat conftest.err >&5
13963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964  (exit $ac_status); } &&
13965	 { ac_try='test -z "$ac_c_werror_flag"
13966			 || test ! -s conftest.err'
13967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968  (eval $ac_try) 2>&5
13969  ac_status=$?
13970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971  (exit $ac_status); }; } &&
13972	 { ac_try='test -s conftest$ac_exeext'
13973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974  (eval $ac_try) 2>&5
13975  ac_status=$?
13976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977  (exit $ac_status); }; }; then
13978  ac_cv_func_shl_load=yes
13979else
13980  echo "$as_me: failed program was:" >&5
13981sed 's/^/| /' conftest.$ac_ext >&5
13982
13983ac_cv_func_shl_load=no
13984fi
13985rm -f conftest.err conftest.$ac_objext \
13986      conftest$ac_exeext conftest.$ac_ext
13987fi
13988echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13989echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13990if test $ac_cv_func_shl_load = yes; then
13991  lt_cv_dlopen="shl_load"
13992else
13993  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13994echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13995if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13996  echo $ECHO_N "(cached) $ECHO_C" >&6
13997else
13998  ac_check_lib_save_LIBS=$LIBS
13999LIBS="-ldld  $LIBS"
14000cat >conftest.$ac_ext <<_ACEOF
14001/* confdefs.h.  */
14002_ACEOF
14003cat confdefs.h >>conftest.$ac_ext
14004cat >>conftest.$ac_ext <<_ACEOF
14005/* end confdefs.h.  */
14006
14007/* Override any gcc2 internal prototype to avoid an error.  */
14008#ifdef __cplusplus
14009extern "C"
14010#endif
14011/* We use char because int might match the return type of a gcc2
14012   builtin and then its argument prototype would still apply.  */
14013char shl_load ();
14014int
14015main ()
14016{
14017shl_load ();
14018  ;
14019  return 0;
14020}
14021_ACEOF
14022rm -f conftest.$ac_objext conftest$ac_exeext
14023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14024  (eval $ac_link) 2>conftest.er1
14025  ac_status=$?
14026  grep -v '^ *+' conftest.er1 >conftest.err
14027  rm -f conftest.er1
14028  cat conftest.err >&5
14029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030  (exit $ac_status); } &&
14031	 { ac_try='test -z "$ac_c_werror_flag"
14032			 || test ! -s conftest.err'
14033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034  (eval $ac_try) 2>&5
14035  ac_status=$?
14036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037  (exit $ac_status); }; } &&
14038	 { ac_try='test -s conftest$ac_exeext'
14039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040  (eval $ac_try) 2>&5
14041  ac_status=$?
14042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043  (exit $ac_status); }; }; then
14044  ac_cv_lib_dld_shl_load=yes
14045else
14046  echo "$as_me: failed program was:" >&5
14047sed 's/^/| /' conftest.$ac_ext >&5
14048
14049ac_cv_lib_dld_shl_load=no
14050fi
14051rm -f conftest.err conftest.$ac_objext \
14052      conftest$ac_exeext conftest.$ac_ext
14053LIBS=$ac_check_lib_save_LIBS
14054fi
14055echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14056echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14057if test $ac_cv_lib_dld_shl_load = yes; then
14058  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14059else
14060  echo "$as_me:$LINENO: checking for dlopen" >&5
14061echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14062if test "${ac_cv_func_dlopen+set}" = set; then
14063  echo $ECHO_N "(cached) $ECHO_C" >&6
14064else
14065  cat >conftest.$ac_ext <<_ACEOF
14066/* confdefs.h.  */
14067_ACEOF
14068cat confdefs.h >>conftest.$ac_ext
14069cat >>conftest.$ac_ext <<_ACEOF
14070/* end confdefs.h.  */
14071/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14072   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14073#define dlopen innocuous_dlopen
14074
14075/* System header to define __stub macros and hopefully few prototypes,
14076    which can conflict with char dlopen (); below.
14077    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14078    <limits.h> exists even on freestanding compilers.  */
14079
14080#ifdef __STDC__
14081# include <limits.h>
14082#else
14083# include <assert.h>
14084#endif
14085
14086#undef dlopen
14087
14088/* Override any gcc2 internal prototype to avoid an error.  */
14089#ifdef __cplusplus
14090extern "C"
14091{
14092#endif
14093/* We use char because int might match the return type of a gcc2
14094   builtin and then its argument prototype would still apply.  */
14095char dlopen ();
14096/* The GNU C library defines this for functions which it implements
14097    to always fail with ENOSYS.  Some functions are actually named
14098    something starting with __ and the normal name is an alias.  */
14099#if defined (__stub_dlopen) || defined (__stub___dlopen)
14100choke me
14101#else
14102char (*f) () = dlopen;
14103#endif
14104#ifdef __cplusplus
14105}
14106#endif
14107
14108int
14109main ()
14110{
14111return f != dlopen;
14112  ;
14113  return 0;
14114}
14115_ACEOF
14116rm -f conftest.$ac_objext conftest$ac_exeext
14117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14118  (eval $ac_link) 2>conftest.er1
14119  ac_status=$?
14120  grep -v '^ *+' conftest.er1 >conftest.err
14121  rm -f conftest.er1
14122  cat conftest.err >&5
14123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124  (exit $ac_status); } &&
14125	 { ac_try='test -z "$ac_c_werror_flag"
14126			 || test ! -s conftest.err'
14127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128  (eval $ac_try) 2>&5
14129  ac_status=$?
14130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131  (exit $ac_status); }; } &&
14132	 { ac_try='test -s conftest$ac_exeext'
14133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134  (eval $ac_try) 2>&5
14135  ac_status=$?
14136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137  (exit $ac_status); }; }; then
14138  ac_cv_func_dlopen=yes
14139else
14140  echo "$as_me: failed program was:" >&5
14141sed 's/^/| /' conftest.$ac_ext >&5
14142
14143ac_cv_func_dlopen=no
14144fi
14145rm -f conftest.err conftest.$ac_objext \
14146      conftest$ac_exeext conftest.$ac_ext
14147fi
14148echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14149echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14150if test $ac_cv_func_dlopen = yes; then
14151  lt_cv_dlopen="dlopen"
14152else
14153  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14154echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14155if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14156  echo $ECHO_N "(cached) $ECHO_C" >&6
14157else
14158  ac_check_lib_save_LIBS=$LIBS
14159LIBS="-ldl  $LIBS"
14160cat >conftest.$ac_ext <<_ACEOF
14161/* confdefs.h.  */
14162_ACEOF
14163cat confdefs.h >>conftest.$ac_ext
14164cat >>conftest.$ac_ext <<_ACEOF
14165/* end confdefs.h.  */
14166
14167/* Override any gcc2 internal prototype to avoid an error.  */
14168#ifdef __cplusplus
14169extern "C"
14170#endif
14171/* We use char because int might match the return type of a gcc2
14172   builtin and then its argument prototype would still apply.  */
14173char dlopen ();
14174int
14175main ()
14176{
14177dlopen ();
14178  ;
14179  return 0;
14180}
14181_ACEOF
14182rm -f conftest.$ac_objext conftest$ac_exeext
14183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14184  (eval $ac_link) 2>conftest.er1
14185  ac_status=$?
14186  grep -v '^ *+' conftest.er1 >conftest.err
14187  rm -f conftest.er1
14188  cat conftest.err >&5
14189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190  (exit $ac_status); } &&
14191	 { ac_try='test -z "$ac_c_werror_flag"
14192			 || test ! -s conftest.err'
14193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194  (eval $ac_try) 2>&5
14195  ac_status=$?
14196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197  (exit $ac_status); }; } &&
14198	 { ac_try='test -s conftest$ac_exeext'
14199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200  (eval $ac_try) 2>&5
14201  ac_status=$?
14202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203  (exit $ac_status); }; }; then
14204  ac_cv_lib_dl_dlopen=yes
14205else
14206  echo "$as_me: failed program was:" >&5
14207sed 's/^/| /' conftest.$ac_ext >&5
14208
14209ac_cv_lib_dl_dlopen=no
14210fi
14211rm -f conftest.err conftest.$ac_objext \
14212      conftest$ac_exeext conftest.$ac_ext
14213LIBS=$ac_check_lib_save_LIBS
14214fi
14215echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14216echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14217if test $ac_cv_lib_dl_dlopen = yes; then
14218  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14219else
14220  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14221echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14222if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14223  echo $ECHO_N "(cached) $ECHO_C" >&6
14224else
14225  ac_check_lib_save_LIBS=$LIBS
14226LIBS="-lsvld  $LIBS"
14227cat >conftest.$ac_ext <<_ACEOF
14228/* confdefs.h.  */
14229_ACEOF
14230cat confdefs.h >>conftest.$ac_ext
14231cat >>conftest.$ac_ext <<_ACEOF
14232/* end confdefs.h.  */
14233
14234/* Override any gcc2 internal prototype to avoid an error.  */
14235#ifdef __cplusplus
14236extern "C"
14237#endif
14238/* We use char because int might match the return type of a gcc2
14239   builtin and then its argument prototype would still apply.  */
14240char dlopen ();
14241int
14242main ()
14243{
14244dlopen ();
14245  ;
14246  return 0;
14247}
14248_ACEOF
14249rm -f conftest.$ac_objext conftest$ac_exeext
14250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14251  (eval $ac_link) 2>conftest.er1
14252  ac_status=$?
14253  grep -v '^ *+' conftest.er1 >conftest.err
14254  rm -f conftest.er1
14255  cat conftest.err >&5
14256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257  (exit $ac_status); } &&
14258	 { ac_try='test -z "$ac_c_werror_flag"
14259			 || test ! -s conftest.err'
14260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261  (eval $ac_try) 2>&5
14262  ac_status=$?
14263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264  (exit $ac_status); }; } &&
14265	 { ac_try='test -s conftest$ac_exeext'
14266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267  (eval $ac_try) 2>&5
14268  ac_status=$?
14269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270  (exit $ac_status); }; }; then
14271  ac_cv_lib_svld_dlopen=yes
14272else
14273  echo "$as_me: failed program was:" >&5
14274sed 's/^/| /' conftest.$ac_ext >&5
14275
14276ac_cv_lib_svld_dlopen=no
14277fi
14278rm -f conftest.err conftest.$ac_objext \
14279      conftest$ac_exeext conftest.$ac_ext
14280LIBS=$ac_check_lib_save_LIBS
14281fi
14282echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14283echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14284if test $ac_cv_lib_svld_dlopen = yes; then
14285  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14286else
14287  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14288echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14289if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14290  echo $ECHO_N "(cached) $ECHO_C" >&6
14291else
14292  ac_check_lib_save_LIBS=$LIBS
14293LIBS="-ldld  $LIBS"
14294cat >conftest.$ac_ext <<_ACEOF
14295/* confdefs.h.  */
14296_ACEOF
14297cat confdefs.h >>conftest.$ac_ext
14298cat >>conftest.$ac_ext <<_ACEOF
14299/* end confdefs.h.  */
14300
14301/* Override any gcc2 internal prototype to avoid an error.  */
14302#ifdef __cplusplus
14303extern "C"
14304#endif
14305/* We use char because int might match the return type of a gcc2
14306   builtin and then its argument prototype would still apply.  */
14307char dld_link ();
14308int
14309main ()
14310{
14311dld_link ();
14312  ;
14313  return 0;
14314}
14315_ACEOF
14316rm -f conftest.$ac_objext conftest$ac_exeext
14317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14318  (eval $ac_link) 2>conftest.er1
14319  ac_status=$?
14320  grep -v '^ *+' conftest.er1 >conftest.err
14321  rm -f conftest.er1
14322  cat conftest.err >&5
14323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324  (exit $ac_status); } &&
14325	 { ac_try='test -z "$ac_c_werror_flag"
14326			 || test ! -s conftest.err'
14327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328  (eval $ac_try) 2>&5
14329  ac_status=$?
14330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331  (exit $ac_status); }; } &&
14332	 { ac_try='test -s conftest$ac_exeext'
14333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14334  (eval $ac_try) 2>&5
14335  ac_status=$?
14336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337  (exit $ac_status); }; }; then
14338  ac_cv_lib_dld_dld_link=yes
14339else
14340  echo "$as_me: failed program was:" >&5
14341sed 's/^/| /' conftest.$ac_ext >&5
14342
14343ac_cv_lib_dld_dld_link=no
14344fi
14345rm -f conftest.err conftest.$ac_objext \
14346      conftest$ac_exeext conftest.$ac_ext
14347LIBS=$ac_check_lib_save_LIBS
14348fi
14349echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14350echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14351if test $ac_cv_lib_dld_dld_link = yes; then
14352  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14353fi
14354
14355
14356fi
14357
14358
14359fi
14360
14361
14362fi
14363
14364
14365fi
14366
14367
14368fi
14369
14370    ;;
14371  esac
14372
14373  if test "x$lt_cv_dlopen" != xno; then
14374    enable_dlopen=yes
14375  else
14376    enable_dlopen=no
14377  fi
14378
14379  case $lt_cv_dlopen in
14380  dlopen)
14381    save_CPPFLAGS="$CPPFLAGS"
14382    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14383
14384    save_LDFLAGS="$LDFLAGS"
14385    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14386
14387    save_LIBS="$LIBS"
14388    LIBS="$lt_cv_dlopen_libs $LIBS"
14389
14390    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14391echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14392if test "${lt_cv_dlopen_self+set}" = set; then
14393  echo $ECHO_N "(cached) $ECHO_C" >&6
14394else
14395  	  if test "$cross_compiling" = yes; then :
14396  lt_cv_dlopen_self=cross
14397else
14398  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14399  lt_status=$lt_dlunknown
14400  cat > conftest.$ac_ext <<EOF
14401#line 14401 "configure"
14402#include "confdefs.h"
14403
14404#if HAVE_DLFCN_H
14405#include <dlfcn.h>
14406#endif
14407
14408#include <stdio.h>
14409
14410#ifdef RTLD_GLOBAL
14411#  define LT_DLGLOBAL		RTLD_GLOBAL
14412#else
14413#  ifdef DL_GLOBAL
14414#    define LT_DLGLOBAL		DL_GLOBAL
14415#  else
14416#    define LT_DLGLOBAL		0
14417#  endif
14418#endif
14419
14420/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14421   find out it does not work in some platform. */
14422#ifndef LT_DLLAZY_OR_NOW
14423#  ifdef RTLD_LAZY
14424#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14425#  else
14426#    ifdef DL_LAZY
14427#      define LT_DLLAZY_OR_NOW		DL_LAZY
14428#    else
14429#      ifdef RTLD_NOW
14430#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14431#      else
14432#        ifdef DL_NOW
14433#          define LT_DLLAZY_OR_NOW	DL_NOW
14434#        else
14435#          define LT_DLLAZY_OR_NOW	0
14436#        endif
14437#      endif
14438#    endif
14439#  endif
14440#endif
14441
14442#ifdef __cplusplus
14443extern "C" void exit (int);
14444#endif
14445
14446void fnord() { int i=42;}
14447int main ()
14448{
14449  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14450  int status = $lt_dlunknown;
14451
14452  if (self)
14453    {
14454      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14455      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14456      /* dlclose (self); */
14457    }
14458
14459    exit (status);
14460}
14461EOF
14462  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14463  (eval $ac_link) 2>&5
14464  ac_status=$?
14465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14467    (./conftest; exit; ) 2>/dev/null
14468    lt_status=$?
14469    case x$lt_status in
14470      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14471      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14472      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14473    esac
14474  else :
14475    # compilation failed
14476    lt_cv_dlopen_self=no
14477  fi
14478fi
14479rm -fr conftest*
14480
14481
14482fi
14483echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14484echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14485
14486    if test "x$lt_cv_dlopen_self" = xyes; then
14487      LDFLAGS="$LDFLAGS $link_static_flag"
14488      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14489echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14490if test "${lt_cv_dlopen_self_static+set}" = set; then
14491  echo $ECHO_N "(cached) $ECHO_C" >&6
14492else
14493  	  if test "$cross_compiling" = yes; then :
14494  lt_cv_dlopen_self_static=cross
14495else
14496  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14497  lt_status=$lt_dlunknown
14498  cat > conftest.$ac_ext <<EOF
14499#line 14499 "configure"
14500#include "confdefs.h"
14501
14502#if HAVE_DLFCN_H
14503#include <dlfcn.h>
14504#endif
14505
14506#include <stdio.h>
14507
14508#ifdef RTLD_GLOBAL
14509#  define LT_DLGLOBAL		RTLD_GLOBAL
14510#else
14511#  ifdef DL_GLOBAL
14512#    define LT_DLGLOBAL		DL_GLOBAL
14513#  else
14514#    define LT_DLGLOBAL		0
14515#  endif
14516#endif
14517
14518/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14519   find out it does not work in some platform. */
14520#ifndef LT_DLLAZY_OR_NOW
14521#  ifdef RTLD_LAZY
14522#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14523#  else
14524#    ifdef DL_LAZY
14525#      define LT_DLLAZY_OR_NOW		DL_LAZY
14526#    else
14527#      ifdef RTLD_NOW
14528#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14529#      else
14530#        ifdef DL_NOW
14531#          define LT_DLLAZY_OR_NOW	DL_NOW
14532#        else
14533#          define LT_DLLAZY_OR_NOW	0
14534#        endif
14535#      endif
14536#    endif
14537#  endif
14538#endif
14539
14540#ifdef __cplusplus
14541extern "C" void exit (int);
14542#endif
14543
14544void fnord() { int i=42;}
14545int main ()
14546{
14547  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14548  int status = $lt_dlunknown;
14549
14550  if (self)
14551    {
14552      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14553      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14554      /* dlclose (self); */
14555    }
14556
14557    exit (status);
14558}
14559EOF
14560  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14561  (eval $ac_link) 2>&5
14562  ac_status=$?
14563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14565    (./conftest; exit; ) 2>/dev/null
14566    lt_status=$?
14567    case x$lt_status in
14568      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14569      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14570      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14571    esac
14572  else :
14573    # compilation failed
14574    lt_cv_dlopen_self_static=no
14575  fi
14576fi
14577rm -fr conftest*
14578
14579
14580fi
14581echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14582echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14583    fi
14584
14585    CPPFLAGS="$save_CPPFLAGS"
14586    LDFLAGS="$save_LDFLAGS"
14587    LIBS="$save_LIBS"
14588    ;;
14589  esac
14590
14591  case $lt_cv_dlopen_self in
14592  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14593  *) enable_dlopen_self=unknown ;;
14594  esac
14595
14596  case $lt_cv_dlopen_self_static in
14597  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14598  *) enable_dlopen_self_static=unknown ;;
14599  esac
14600fi
14601
14602
14603# Report which librarie types wil actually be built
14604echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14605echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14606echo "$as_me:$LINENO: result: $can_build_shared" >&5
14607echo "${ECHO_T}$can_build_shared" >&6
14608
14609echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14610echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14611test "$can_build_shared" = "no" && enable_shared=no
14612
14613# On AIX, shared libraries and static libraries use the same namespace, and
14614# are all built from PIC.
14615case "$host_os" in
14616aix3*)
14617  test "$enable_shared" = yes && enable_static=no
14618  if test -n "$RANLIB"; then
14619    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14620    postinstall_cmds='$RANLIB $lib'
14621  fi
14622  ;;
14623
14624aix4* | aix5*)
14625  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14626    test "$enable_shared" = yes && enable_static=no
14627  fi
14628    ;;
14629esac
14630echo "$as_me:$LINENO: result: $enable_shared" >&5
14631echo "${ECHO_T}$enable_shared" >&6
14632
14633echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14634echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14635# Make sure either enable_shared or enable_static is yes.
14636test "$enable_shared" = yes || enable_static=yes
14637echo "$as_me:$LINENO: result: $enable_static" >&5
14638echo "${ECHO_T}$enable_static" >&6
14639
14640# The else clause should only fire when bootstrapping the
14641# libtool distribution, otherwise you forgot to ship ltmain.sh
14642# with your package, and you will get complaints that there are
14643# no rules to generate ltmain.sh.
14644if test -f "$ltmain"; then
14645  # See if we are running on zsh, and set the options which allow our commands through
14646  # without removal of \ escapes.
14647  if test -n "${ZSH_VERSION+set}" ; then
14648    setopt NO_GLOB_SUBST
14649  fi
14650  # Now quote all the things that may contain metacharacters while being
14651  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14652  # variables and quote the copies for generation of the libtool script.
14653  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14654    SED SHELL STRIP \
14655    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14656    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14657    deplibs_check_method reload_flag reload_cmds need_locks \
14658    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14659    lt_cv_sys_global_symbol_to_c_name_address \
14660    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14661    old_postinstall_cmds old_postuninstall_cmds \
14662    compiler \
14663    CC \
14664    LD \
14665    lt_prog_compiler_wl \
14666    lt_prog_compiler_pic \
14667    lt_prog_compiler_static \
14668    lt_prog_compiler_no_builtin_flag \
14669    export_dynamic_flag_spec \
14670    thread_safe_flag_spec \
14671    whole_archive_flag_spec \
14672    enable_shared_with_static_runtimes \
14673    old_archive_cmds \
14674    old_archive_from_new_cmds \
14675    predep_objects \
14676    postdep_objects \
14677    predeps \
14678    postdeps \
14679    compiler_lib_search_path \
14680    archive_cmds \
14681    archive_expsym_cmds \
14682    postinstall_cmds \
14683    postuninstall_cmds \
14684    old_archive_from_expsyms_cmds \
14685    allow_undefined_flag \
14686    no_undefined_flag \
14687    export_symbols_cmds \
14688    hardcode_libdir_flag_spec \
14689    hardcode_libdir_flag_spec_ld \
14690    hardcode_libdir_separator \
14691    hardcode_automatic \
14692    module_cmds \
14693    module_expsym_cmds \
14694    lt_cv_prog_compiler_c_o \
14695    exclude_expsyms \
14696    include_expsyms; do
14697
14698    case $var in
14699    old_archive_cmds | \
14700    old_archive_from_new_cmds | \
14701    archive_cmds | \
14702    archive_expsym_cmds | \
14703    module_cmds | \
14704    module_expsym_cmds | \
14705    old_archive_from_expsyms_cmds | \
14706    export_symbols_cmds | \
14707    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14708    postinstall_cmds | postuninstall_cmds | \
14709    old_postinstall_cmds | old_postuninstall_cmds | \
14710    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14711      # Double-quote double-evaled strings.
14712      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14713      ;;
14714    *)
14715      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14716      ;;
14717    esac
14718  done
14719
14720  case $lt_echo in
14721  *'\$0 --fallback-echo"')
14722    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14723    ;;
14724  esac
14725
14726cfgfile="${ofile}T"
14727  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14728  $rm -f "$cfgfile"
14729  { echo "$as_me:$LINENO: creating $ofile" >&5
14730echo "$as_me: creating $ofile" >&6;}
14731
14732  cat <<__EOF__ >> "$cfgfile"
14733#! $SHELL
14734
14735# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14736# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14737# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14738#
14739# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14740# Free Software Foundation, Inc.
14741#
14742# This file is part of GNU Libtool:
14743# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14744#
14745# This program is free software; you can redistribute it and/or modify
14746# it under the terms of the GNU General Public License as published by
14747# the Free Software Foundation; either version 2 of the License, or
14748# (at your option) any later version.
14749#
14750# This program is distributed in the hope that it will be useful, but
14751# WITHOUT ANY WARRANTY; without even the implied warranty of
14752# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14753# General Public License for more details.
14754#
14755# You should have received a copy of the GNU General Public License
14756# along with this program; if not, write to the Free Software
14757# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14758#
14759# As a special exception to the GNU General Public License, if you
14760# distribute this file as part of a program that contains a
14761# configuration script generated by Autoconf, you may include it under
14762# the same distribution terms that you use for the rest of that program.
14763
14764# A sed program that does not truncate output.
14765SED=$lt_SED
14766
14767# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14768Xsed="$SED -e s/^X//"
14769
14770# The HP-UX ksh and POSIX shell print the target directory to stdout
14771# if CDPATH is set.
14772(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14773
14774# The names of the tagged configurations supported by this script.
14775available_tags=
14776
14777# ### BEGIN LIBTOOL CONFIG
14778
14779# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14780
14781# Shell to use when invoking shell scripts.
14782SHELL=$lt_SHELL
14783
14784# Whether or not to build shared libraries.
14785build_libtool_libs=$enable_shared
14786
14787# Whether or not to build static libraries.
14788build_old_libs=$enable_static
14789
14790# Whether or not to add -lc for building shared libraries.
14791build_libtool_need_lc=$archive_cmds_need_lc
14792
14793# Whether or not to disallow shared libs when runtime libs are static
14794allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14795
14796# Whether or not to optimize for fast installation.
14797fast_install=$enable_fast_install
14798
14799# The host system.
14800host_alias=$host_alias
14801host=$host
14802
14803# An echo program that does not interpret backslashes.
14804echo=$lt_echo
14805
14806# The archiver.
14807AR=$lt_AR
14808AR_FLAGS=$lt_AR_FLAGS
14809
14810# A C compiler.
14811LTCC=$lt_LTCC
14812
14813# A language-specific compiler.
14814CC=$lt_compiler
14815
14816# Is the compiler the GNU C compiler?
14817with_gcc=$GCC
14818
14819# An ERE matcher.
14820EGREP=$lt_EGREP
14821
14822# The linker used to build libraries.
14823LD=$lt_LD
14824
14825# Whether we need hard or soft links.
14826LN_S=$lt_LN_S
14827
14828# A BSD-compatible nm program.
14829NM=$lt_NM
14830
14831# A symbol stripping program
14832STRIP=$lt_STRIP
14833
14834# Used to examine libraries when file_magic_cmd begins "file"
14835MAGIC_CMD=$MAGIC_CMD
14836
14837# Used on cygwin: DLL creation program.
14838DLLTOOL="$DLLTOOL"
14839
14840# Used on cygwin: object dumper.
14841OBJDUMP="$OBJDUMP"
14842
14843# Used on cygwin: assembler.
14844AS="$AS"
14845
14846# The name of the directory that contains temporary libtool files.
14847objdir=$objdir
14848
14849# How to create reloadable object files.
14850reload_flag=$lt_reload_flag
14851reload_cmds=$lt_reload_cmds
14852
14853# How to pass a linker flag through the compiler.
14854wl=$lt_lt_prog_compiler_wl
14855
14856# Object file suffix (normally "o").
14857objext="$ac_objext"
14858
14859# Old archive suffix (normally "a").
14860libext="$libext"
14861
14862# Shared library suffix (normally ".so").
14863shrext_cmds='$shrext_cmds'
14864
14865# Executable file suffix (normally "").
14866exeext="$exeext"
14867
14868# Additional compiler flags for building library objects.
14869pic_flag=$lt_lt_prog_compiler_pic
14870pic_mode=$pic_mode
14871
14872# What is the maximum length of a command?
14873max_cmd_len=$lt_cv_sys_max_cmd_len
14874
14875# Does compiler simultaneously support -c and -o options?
14876compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14877
14878# Must we lock files when doing compilation ?
14879need_locks=$lt_need_locks
14880
14881# Do we need the lib prefix for modules?
14882need_lib_prefix=$need_lib_prefix
14883
14884# Do we need a version for libraries?
14885need_version=$need_version
14886
14887# Whether dlopen is supported.
14888dlopen_support=$enable_dlopen
14889
14890# Whether dlopen of programs is supported.
14891dlopen_self=$enable_dlopen_self
14892
14893# Whether dlopen of statically linked programs is supported.
14894dlopen_self_static=$enable_dlopen_self_static
14895
14896# Compiler flag to prevent dynamic linking.
14897link_static_flag=$lt_lt_prog_compiler_static
14898
14899# Compiler flag to turn off builtin functions.
14900no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14901
14902# Compiler flag to allow reflexive dlopens.
14903export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14904
14905# Compiler flag to generate shared objects directly from archives.
14906whole_archive_flag_spec=$lt_whole_archive_flag_spec
14907
14908# Compiler flag to generate thread-safe objects.
14909thread_safe_flag_spec=$lt_thread_safe_flag_spec
14910
14911# Library versioning type.
14912version_type=$version_type
14913
14914# Format of library name prefix.
14915libname_spec=$lt_libname_spec
14916
14917# List of archive names.  First name is the real one, the rest are links.
14918# The last name is the one that the linker finds with -lNAME.
14919library_names_spec=$lt_library_names_spec
14920
14921# The coded name of the library, if different from the real name.
14922soname_spec=$lt_soname_spec
14923
14924# Commands used to build and install an old-style archive.
14925RANLIB=$lt_RANLIB
14926old_archive_cmds=$lt_old_archive_cmds
14927old_postinstall_cmds=$lt_old_postinstall_cmds
14928old_postuninstall_cmds=$lt_old_postuninstall_cmds
14929
14930# Create an old-style archive from a shared archive.
14931old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14932
14933# Create a temporary old-style archive to link instead of a shared archive.
14934old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14935
14936# Commands used to build and install a shared archive.
14937archive_cmds=$lt_archive_cmds
14938archive_expsym_cmds=$lt_archive_expsym_cmds
14939postinstall_cmds=$lt_postinstall_cmds
14940postuninstall_cmds=$lt_postuninstall_cmds
14941
14942# Commands used to build a loadable module (assumed same as above if empty)
14943module_cmds=$lt_module_cmds
14944module_expsym_cmds=$lt_module_expsym_cmds
14945
14946# Commands to strip libraries.
14947old_striplib=$lt_old_striplib
14948striplib=$lt_striplib
14949
14950# Dependencies to place before the objects being linked to create a
14951# shared library.
14952predep_objects=$lt_predep_objects
14953
14954# Dependencies to place after the objects being linked to create a
14955# shared library.
14956postdep_objects=$lt_postdep_objects
14957
14958# Dependencies to place before the objects being linked to create a
14959# shared library.
14960predeps=$lt_predeps
14961
14962# Dependencies to place after the objects being linked to create a
14963# shared library.
14964postdeps=$lt_postdeps
14965
14966# The library search path used internally by the compiler when linking
14967# a shared library.
14968compiler_lib_search_path=$lt_compiler_lib_search_path
14969
14970# Method to check whether dependent libraries are shared objects.
14971deplibs_check_method=$lt_deplibs_check_method
14972
14973# Command to use when deplibs_check_method == file_magic.
14974file_magic_cmd=$lt_file_magic_cmd
14975
14976# Flag that allows shared libraries with undefined symbols to be built.
14977allow_undefined_flag=$lt_allow_undefined_flag
14978
14979# Flag that forces no undefined symbols.
14980no_undefined_flag=$lt_no_undefined_flag
14981
14982# Commands used to finish a libtool library installation in a directory.
14983finish_cmds=$lt_finish_cmds
14984
14985# Same as above, but a single script fragment to be evaled but not shown.
14986finish_eval=$lt_finish_eval
14987
14988# Take the output of nm and produce a listing of raw symbols and C names.
14989global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14990
14991# Transform the output of nm in a proper C declaration
14992global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14993
14994# Transform the output of nm in a C name address pair
14995global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14996
14997# This is the shared library runtime path variable.
14998runpath_var=$runpath_var
14999
15000# This is the shared library path variable.
15001shlibpath_var=$shlibpath_var
15002
15003# Is shlibpath searched before the hard-coded library search path?
15004shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15005
15006# How to hardcode a shared library path into an executable.
15007hardcode_action=$hardcode_action
15008
15009# Whether we should hardcode library paths into libraries.
15010hardcode_into_libs=$hardcode_into_libs
15011
15012# Flag to hardcode \$libdir into a binary during linking.
15013# This must work even if \$libdir does not exist.
15014hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15015
15016# If ld is used when linking, flag to hardcode \$libdir into
15017# a binary during linking. This must work even if \$libdir does
15018# not exist.
15019hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15020
15021# Whether we need a single -rpath flag with a separated argument.
15022hardcode_libdir_separator=$lt_hardcode_libdir_separator
15023
15024# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15025# resulting binary.
15026hardcode_direct=$hardcode_direct
15027
15028# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15029# resulting binary.
15030hardcode_minus_L=$hardcode_minus_L
15031
15032# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15033# the resulting binary.
15034hardcode_shlibpath_var=$hardcode_shlibpath_var
15035
15036# Set to yes if building a shared library automatically hardcodes DIR into the library
15037# and all subsequent libraries and executables linked against it.
15038hardcode_automatic=$hardcode_automatic
15039
15040# Variables whose values should be saved in libtool wrapper scripts and
15041# restored at relink time.
15042variables_saved_for_relink="$variables_saved_for_relink"
15043
15044# Whether libtool must link a program against all its dependency libraries.
15045link_all_deplibs=$link_all_deplibs
15046
15047# Compile-time system search path for libraries
15048sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15049
15050# Run-time system search path for libraries
15051sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15052
15053# Fix the shell variable \$srcfile for the compiler.
15054fix_srcfile_path="$fix_srcfile_path"
15055
15056# Set to yes if exported symbols are required.
15057always_export_symbols=$always_export_symbols
15058
15059# The commands to list exported symbols.
15060export_symbols_cmds=$lt_export_symbols_cmds
15061
15062# The commands to extract the exported symbol list from a shared archive.
15063extract_expsyms_cmds=$lt_extract_expsyms_cmds
15064
15065# Symbols that should not be listed in the preloaded symbols.
15066exclude_expsyms=$lt_exclude_expsyms
15067
15068# Symbols that must always be exported.
15069include_expsyms=$lt_include_expsyms
15070
15071# ### END LIBTOOL CONFIG
15072
15073__EOF__
15074
15075
15076  case $host_os in
15077  aix3*)
15078    cat <<\EOF >> "$cfgfile"
15079
15080# AIX sometimes has problems with the GCC collect2 program.  For some
15081# reason, if we set the COLLECT_NAMES environment variable, the problems
15082# vanish in a puff of smoke.
15083if test "X${COLLECT_NAMES+set}" != Xset; then
15084  COLLECT_NAMES=
15085  export COLLECT_NAMES
15086fi
15087EOF
15088    ;;
15089  esac
15090
15091  # We use sed instead of cat because bash on DJGPP gets confused if
15092  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15093  # text mode, it properly converts lines to CR/LF.  This bash problem
15094  # is reportedly fixed, but why not run on old versions too?
15095  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15096
15097  mv -f "$cfgfile" "$ofile" || \
15098    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15099  chmod +x "$ofile"
15100
15101else
15102  # If there is no Makefile yet, we rely on a make rule to execute
15103  # `config.status --recheck' to rerun these tests and create the
15104  # libtool script then.
15105  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15106  if test -f "$ltmain_in"; then
15107    test -f Makefile && make "$ltmain"
15108  fi
15109fi
15110
15111
15112ac_ext=c
15113ac_cpp='$CPP $CPPFLAGS'
15114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15116ac_compiler_gnu=$ac_cv_c_compiler_gnu
15117
15118CC="$lt_save_CC"
15119
15120
15121# Check whether --with-tags or --without-tags was given.
15122if test "${with_tags+set}" = set; then
15123  withval="$with_tags"
15124  tagnames="$withval"
15125fi;
15126
15127if test -f "$ltmain" && test -n "$tagnames"; then
15128  if test ! -f "${ofile}"; then
15129    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15130echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15131  fi
15132
15133  if test -z "$LTCC"; then
15134    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15135    if test -z "$LTCC"; then
15136      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15137echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15138    else
15139      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15140echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15141    fi
15142  fi
15143
15144  # Extract list of available tagged configurations in $ofile.
15145  # Note that this assumes the entire list is on one line.
15146  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15147
15148  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15149  for tagname in $tagnames; do
15150    IFS="$lt_save_ifs"
15151    # Check whether tagname contains only valid characters
15152    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15153    "") ;;
15154    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15155echo "$as_me: error: invalid tag name: $tagname" >&2;}
15156   { (exit 1); exit 1; }; }
15157	;;
15158    esac
15159
15160    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15161    then
15162      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15163echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15164   { (exit 1); exit 1; }; }
15165    fi
15166
15167    # Update the list of available tags.
15168    if test -n "$tagname"; then
15169      echo appending configuration tag "$tagname" to $ofile
15170
15171      case $tagname in
15172      CXX)
15173	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15174	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15175	    (test "X$CXX" != "Xg++"))) ; then
15176	  ac_ext=cc
15177ac_cpp='$CXXCPP $CPPFLAGS'
15178ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15179ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15180ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15181
15182
15183
15184
15185archive_cmds_need_lc_CXX=no
15186allow_undefined_flag_CXX=
15187always_export_symbols_CXX=no
15188archive_expsym_cmds_CXX=
15189export_dynamic_flag_spec_CXX=
15190hardcode_direct_CXX=no
15191hardcode_libdir_flag_spec_CXX=
15192hardcode_libdir_flag_spec_ld_CXX=
15193hardcode_libdir_separator_CXX=
15194hardcode_minus_L_CXX=no
15195hardcode_automatic_CXX=no
15196module_cmds_CXX=
15197module_expsym_cmds_CXX=
15198link_all_deplibs_CXX=unknown
15199old_archive_cmds_CXX=$old_archive_cmds
15200no_undefined_flag_CXX=
15201whole_archive_flag_spec_CXX=
15202enable_shared_with_static_runtimes_CXX=no
15203
15204# Dependencies to place before and after the object being linked:
15205predep_objects_CXX=
15206postdep_objects_CXX=
15207predeps_CXX=
15208postdeps_CXX=
15209compiler_lib_search_path_CXX=
15210
15211# Source file extension for C++ test sources.
15212ac_ext=cc
15213
15214# Object file extension for compiled C++ test sources.
15215objext=o
15216objext_CXX=$objext
15217
15218# Code to be used in simple compile tests
15219lt_simple_compile_test_code="int some_variable = 0;\n"
15220
15221# Code to be used in simple link tests
15222lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15223
15224# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15225
15226# If no C compiler was specified, use CC.
15227LTCC=${LTCC-"$CC"}
15228
15229# Allow CC to be a program name with arguments.
15230compiler=$CC
15231
15232
15233# Allow CC to be a program name with arguments.
15234lt_save_CC=$CC
15235lt_save_LD=$LD
15236lt_save_GCC=$GCC
15237GCC=$GXX
15238lt_save_with_gnu_ld=$with_gnu_ld
15239lt_save_path_LD=$lt_cv_path_LD
15240if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15241  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15242else
15243  unset lt_cv_prog_gnu_ld
15244fi
15245if test -n "${lt_cv_path_LDCXX+set}"; then
15246  lt_cv_path_LD=$lt_cv_path_LDCXX
15247else
15248  unset lt_cv_path_LD
15249fi
15250test -z "${LDCXX+set}" || LD=$LDCXX
15251CC=${CXX-"c++"}
15252compiler=$CC
15253compiler_CXX=$CC
15254cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15255
15256# We don't want -fno-exception wen compiling C++ code, so set the
15257# no_builtin_flag separately
15258if test "$GXX" = yes; then
15259  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15260else
15261  lt_prog_compiler_no_builtin_flag_CXX=
15262fi
15263
15264if test "$GXX" = yes; then
15265  # Set up default GNU C++ configuration
15266
15267
15268# Check whether --with-gnu-ld or --without-gnu-ld was given.
15269if test "${with_gnu_ld+set}" = set; then
15270  withval="$with_gnu_ld"
15271  test "$withval" = no || with_gnu_ld=yes
15272else
15273  with_gnu_ld=no
15274fi;
15275ac_prog=ld
15276if test "$GCC" = yes; then
15277  # Check if gcc -print-prog-name=ld gives a path.
15278  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15279echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15280  case $host in
15281  *-*-mingw*)
15282    # gcc leaves a trailing carriage return which upsets mingw
15283    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15284  *)
15285    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15286  esac
15287  case $ac_prog in
15288    # Accept absolute paths.
15289    [\\/]* | ?:[\\/]*)
15290      re_direlt='/[^/][^/]*/\.\./'
15291      # Canonicalize the pathname of ld
15292      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15293      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15294	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15295      done
15296      test -z "$LD" && LD="$ac_prog"
15297      ;;
15298  "")
15299    # If it fails, then pretend we aren't using GCC.
15300    ac_prog=ld
15301    ;;
15302  *)
15303    # If it is relative, then search for the first ld in PATH.
15304    with_gnu_ld=unknown
15305    ;;
15306  esac
15307elif test "$with_gnu_ld" = yes; then
15308  echo "$as_me:$LINENO: checking for GNU ld" >&5
15309echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15310else
15311  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15312echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15313fi
15314if test "${lt_cv_path_LD+set}" = set; then
15315  echo $ECHO_N "(cached) $ECHO_C" >&6
15316else
15317  if test -z "$LD"; then
15318  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15319  for ac_dir in $PATH; do
15320    IFS="$lt_save_ifs"
15321    test -z "$ac_dir" && ac_dir=.
15322    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15323      lt_cv_path_LD="$ac_dir/$ac_prog"
15324      # Check to see if the program is GNU ld.  I'd rather use --version,
15325      # but apparently some GNU ld's only accept -v.
15326      # Break only if it was the GNU/non-GNU ld that we prefer.
15327      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15328      *GNU* | *'with BFD'*)
15329	test "$with_gnu_ld" != no && break
15330	;;
15331      *)
15332	test "$with_gnu_ld" != yes && break
15333	;;
15334      esac
15335    fi
15336  done
15337  IFS="$lt_save_ifs"
15338else
15339  lt_cv_path_LD="$LD" # Let the user override the test with a path.
15340fi
15341fi
15342
15343LD="$lt_cv_path_LD"
15344if test -n "$LD"; then
15345  echo "$as_me:$LINENO: result: $LD" >&5
15346echo "${ECHO_T}$LD" >&6
15347else
15348  echo "$as_me:$LINENO: result: no" >&5
15349echo "${ECHO_T}no" >&6
15350fi
15351test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15352echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15353   { (exit 1); exit 1; }; }
15354echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15355echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15356if test "${lt_cv_prog_gnu_ld+set}" = set; then
15357  echo $ECHO_N "(cached) $ECHO_C" >&6
15358else
15359  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15360case `$LD -v 2>&1 </dev/null` in
15361*GNU* | *'with BFD'*)
15362  lt_cv_prog_gnu_ld=yes
15363  ;;
15364*)
15365  lt_cv_prog_gnu_ld=no
15366  ;;
15367esac
15368fi
15369echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15370echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15371with_gnu_ld=$lt_cv_prog_gnu_ld
15372
15373
15374
15375  # Check if GNU C++ uses GNU ld as the underlying linker, since the
15376  # archiving commands below assume that GNU ld is being used.
15377  if test "$with_gnu_ld" = yes; then
15378    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15379    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'
15380
15381    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15382    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15383
15384    # If archive_cmds runs LD, not CC, wlarc should be empty
15385    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15386    #     investigate it a little bit more. (MM)
15387    wlarc='${wl}'
15388
15389    # ancient GNU ld didn't support --whole-archive et. al.
15390    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15391	grep 'no-whole-archive' > /dev/null; then
15392      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15393    else
15394      whole_archive_flag_spec_CXX=
15395    fi
15396  else
15397    with_gnu_ld=no
15398    wlarc=
15399
15400    # A generic and very simple default shared library creation
15401    # command for GNU C++ for the case where it uses the native
15402    # linker, instead of GNU ld.  If possible, this setting should
15403    # overridden to take advantage of the native linker features on
15404    # the platform it is being used on.
15405    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15406  fi
15407
15408  # Commands to make compiler produce verbose output that lists
15409  # what "hidden" libraries, object files and flags are used when
15410  # linking a shared library.
15411  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15412
15413else
15414  GXX=no
15415  with_gnu_ld=no
15416  wlarc=
15417fi
15418
15419# PORTME: fill in a description of your system's C++ link characteristics
15420echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15421echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15422ld_shlibs_CXX=yes
15423case $host_os in
15424  aix3*)
15425    # FIXME: insert proper C++ library support
15426    ld_shlibs_CXX=no
15427    ;;
15428  aix4* | aix5*)
15429    if test "$host_cpu" = ia64; then
15430      # On IA64, the linker does run time linking by default, so we don't
15431      # have to do anything special.
15432      aix_use_runtimelinking=no
15433      exp_sym_flag='-Bexport'
15434      no_entry_flag=""
15435    else
15436      aix_use_runtimelinking=no
15437
15438      # Test if we are trying to use run time linking or normal
15439      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15440      # need to do runtime linking.
15441      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15442	for ld_flag in $LDFLAGS; do
15443	  case $ld_flag in
15444	  *-brtl*)
15445	    aix_use_runtimelinking=yes
15446	    break
15447	    ;;
15448	  esac
15449	done
15450      esac
15451
15452      exp_sym_flag='-bexport'
15453      no_entry_flag='-bnoentry'
15454    fi
15455
15456    # When large executables or shared objects are built, AIX ld can
15457    # have problems creating the table of contents.  If linking a library
15458    # or program results in "error TOC overflow" add -mminimal-toc to
15459    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15460    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15461
15462    archive_cmds_CXX=''
15463    hardcode_direct_CXX=yes
15464    hardcode_libdir_separator_CXX=':'
15465    link_all_deplibs_CXX=yes
15466
15467    if test "$GXX" = yes; then
15468      case $host_os in aix4.012|aix4.012.*)
15469      # We only want to do this on AIX 4.2 and lower, the check
15470      # below for broken collect2 doesn't work under 4.3+
15471	collect2name=`${CC} -print-prog-name=collect2`
15472	if test -f "$collect2name" && \
15473	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15474	then
15475	  # We have reworked collect2
15476	  hardcode_direct_CXX=yes
15477	else
15478	  # We have old collect2
15479	  hardcode_direct_CXX=unsupported
15480	  # It fails to find uninstalled libraries when the uninstalled
15481	  # path is not listed in the libpath.  Setting hardcode_minus_L
15482	  # to unsupported forces relinking
15483	  hardcode_minus_L_CXX=yes
15484	  hardcode_libdir_flag_spec_CXX='-L$libdir'
15485	  hardcode_libdir_separator_CXX=
15486	fi
15487      esac
15488      shared_flag='-shared'
15489    else
15490      # not using gcc
15491      if test "$host_cpu" = ia64; then
15492	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15493	# chokes on -Wl,-G. The following line is correct:
15494	shared_flag='-G'
15495      else
15496	if test "$aix_use_runtimelinking" = yes; then
15497	  shared_flag='${wl}-G'
15498	else
15499	  shared_flag='${wl}-bM:SRE'
15500	fi
15501      fi
15502    fi
15503
15504    # It seems that -bexpall does not export symbols beginning with
15505    # underscore (_), so it is better to generate a list of symbols to export.
15506    always_export_symbols_CXX=yes
15507    if test "$aix_use_runtimelinking" = yes; then
15508      # Warning - without using the other runtime loading flags (-brtl),
15509      # -berok will link without error, but may produce a broken library.
15510      allow_undefined_flag_CXX='-berok'
15511      # Determine the default libpath from the value encoded in an empty executable.
15512      cat >conftest.$ac_ext <<_ACEOF
15513/* confdefs.h.  */
15514_ACEOF
15515cat confdefs.h >>conftest.$ac_ext
15516cat >>conftest.$ac_ext <<_ACEOF
15517/* end confdefs.h.  */
15518
15519int
15520main ()
15521{
15522
15523  ;
15524  return 0;
15525}
15526_ACEOF
15527rm -f conftest.$ac_objext conftest$ac_exeext
15528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15529  (eval $ac_link) 2>conftest.er1
15530  ac_status=$?
15531  grep -v '^ *+' conftest.er1 >conftest.err
15532  rm -f conftest.er1
15533  cat conftest.err >&5
15534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535  (exit $ac_status); } &&
15536	 { ac_try='test -z "$ac_cxx_werror_flag"
15537			 || test ! -s conftest.err'
15538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539  (eval $ac_try) 2>&5
15540  ac_status=$?
15541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542  (exit $ac_status); }; } &&
15543	 { ac_try='test -s conftest$ac_exeext'
15544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545  (eval $ac_try) 2>&5
15546  ac_status=$?
15547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548  (exit $ac_status); }; }; then
15549
15550aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15551}'`
15552# Check for a 64-bit object if we didn't find anything.
15553if 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; }
15554}'`; fi
15555else
15556  echo "$as_me: failed program was:" >&5
15557sed 's/^/| /' conftest.$ac_ext >&5
15558
15559fi
15560rm -f conftest.err conftest.$ac_objext \
15561      conftest$ac_exeext conftest.$ac_ext
15562if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15563
15564      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15565
15566      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"
15567     else
15568      if test "$host_cpu" = ia64; then
15569	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15570	allow_undefined_flag_CXX="-z nodefs"
15571	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"
15572      else
15573	# Determine the default libpath from the value encoded in an empty executable.
15574	cat >conftest.$ac_ext <<_ACEOF
15575/* confdefs.h.  */
15576_ACEOF
15577cat confdefs.h >>conftest.$ac_ext
15578cat >>conftest.$ac_ext <<_ACEOF
15579/* end confdefs.h.  */
15580
15581int
15582main ()
15583{
15584
15585  ;
15586  return 0;
15587}
15588_ACEOF
15589rm -f conftest.$ac_objext conftest$ac_exeext
15590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15591  (eval $ac_link) 2>conftest.er1
15592  ac_status=$?
15593  grep -v '^ *+' conftest.er1 >conftest.err
15594  rm -f conftest.er1
15595  cat conftest.err >&5
15596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597  (exit $ac_status); } &&
15598	 { ac_try='test -z "$ac_cxx_werror_flag"
15599			 || test ! -s conftest.err'
15600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601  (eval $ac_try) 2>&5
15602  ac_status=$?
15603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604  (exit $ac_status); }; } &&
15605	 { ac_try='test -s conftest$ac_exeext'
15606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607  (eval $ac_try) 2>&5
15608  ac_status=$?
15609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610  (exit $ac_status); }; }; then
15611
15612aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15613}'`
15614# Check for a 64-bit object if we didn't find anything.
15615if 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; }
15616}'`; fi
15617else
15618  echo "$as_me: failed program was:" >&5
15619sed 's/^/| /' conftest.$ac_ext >&5
15620
15621fi
15622rm -f conftest.err conftest.$ac_objext \
15623      conftest$ac_exeext conftest.$ac_ext
15624if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15625
15626	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15627	# Warning - without using the other run time loading flags,
15628	# -berok will link without error, but may produce a broken library.
15629	no_undefined_flag_CXX=' ${wl}-bernotok'
15630	allow_undefined_flag_CXX=' ${wl}-berok'
15631	# -bexpall does not export symbols beginning with underscore (_)
15632	always_export_symbols_CXX=yes
15633	# Exported symbols can be pulled into shared objects from archives
15634	whole_archive_flag_spec_CXX=' '
15635	archive_cmds_need_lc_CXX=yes
15636	# This is similar to how AIX traditionally builds it's shared libraries.
15637	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'
15638      fi
15639    fi
15640    ;;
15641  chorus*)
15642    case $cc_basename in
15643      *)
15644	# FIXME: insert proper C++ library support
15645	ld_shlibs_CXX=no
15646	;;
15647    esac
15648    ;;
15649
15650
15651  cygwin* | mingw* | pw32*)
15652    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15653    # as there is no search path for DLLs.
15654    hardcode_libdir_flag_spec_CXX='-L$libdir'
15655    allow_undefined_flag_CXX=unsupported
15656    always_export_symbols_CXX=no
15657    enable_shared_with_static_runtimes_CXX=yes
15658
15659    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15660      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'
15661      # If the export-symbols file already is a .def file (1st line
15662      # is EXPORTS), use it as is; otherwise, prepend...
15663      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15664	cp $export_symbols $output_objdir/$soname.def;
15665      else
15666	echo EXPORTS > $output_objdir/$soname.def;
15667	cat $export_symbols >> $output_objdir/$soname.def;
15668      fi~
15669      $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'
15670    else
15671      ld_shlibs_CXX=no
15672    fi
15673  ;;
15674      darwin* | rhapsody*)
15675        case "$host_os" in
15676        rhapsody* | darwin1.[012])
15677         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15678         ;;
15679       *) # Darwin 1.3 on
15680         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15681           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15682         else
15683           case ${MACOSX_DEPLOYMENT_TARGET} in
15684             10.[012])
15685               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15686               ;;
15687             10.*)
15688               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15689               ;;
15690           esac
15691         fi
15692         ;;
15693        esac
15694      archive_cmds_need_lc_CXX=no
15695      hardcode_direct_CXX=no
15696      hardcode_automatic_CXX=yes
15697      hardcode_shlibpath_var_CXX=unsupported
15698      whole_archive_flag_spec_CXX=''
15699      link_all_deplibs_CXX=yes
15700
15701    if test "$GXX" = yes ; then
15702      lt_int_apple_cc_single_mod=no
15703      output_verbose_link_cmd='echo'
15704      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15705       lt_int_apple_cc_single_mod=yes
15706      fi
15707      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15708       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15709      else
15710          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'
15711        fi
15712        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15713        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15714          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15715            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}'
15716          else
15717            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}'
15718          fi
15719            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}'
15720      else
15721      case "$cc_basename" in
15722        xlc*)
15723         output_verbose_link_cmd='echo'
15724          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'
15725          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15726          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15727          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}'
15728          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}'
15729          ;;
15730       *)
15731         ld_shlibs_CXX=no
15732          ;;
15733      esac
15734      fi
15735        ;;
15736
15737  dgux*)
15738    case $cc_basename in
15739      ec++)
15740	# FIXME: insert proper C++ library support
15741	ld_shlibs_CXX=no
15742	;;
15743      ghcx)
15744	# Green Hills C++ Compiler
15745	# FIXME: insert proper C++ library support
15746	ld_shlibs_CXX=no
15747	;;
15748      *)
15749	# FIXME: insert proper C++ library support
15750	ld_shlibs_CXX=no
15751	;;
15752    esac
15753    ;;
15754  freebsd12*)
15755    # C++ shared libraries reported to be fairly broken before switch to ELF
15756    ld_shlibs_CXX=no
15757    ;;
15758  freebsd-elf*)
15759    archive_cmds_need_lc_CXX=no
15760    ;;
15761  freebsd* | kfreebsd*-gnu)
15762    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15763    # conventions
15764    ld_shlibs_CXX=yes
15765    ;;
15766  gnu*)
15767    ;;
15768  hpux9*)
15769    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15770    hardcode_libdir_separator_CXX=:
15771    export_dynamic_flag_spec_CXX='${wl}-E'
15772    hardcode_direct_CXX=yes
15773    hardcode_minus_L_CXX=yes # Not in the search PATH,
15774				# but as the default
15775				# location of the library.
15776
15777    case $cc_basename in
15778    CC)
15779      # FIXME: insert proper C++ library support
15780      ld_shlibs_CXX=no
15781      ;;
15782    aCC)
15783      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'
15784      # Commands to make compiler produce verbose output that lists
15785      # what "hidden" libraries, object files and flags are used when
15786      # linking a shared library.
15787      #
15788      # There doesn't appear to be a way to prevent this compiler from
15789      # explicitly linking system object files so we need to strip them
15790      # from the output so that they don't get included in the library
15791      # dependencies.
15792      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'
15793      ;;
15794    *)
15795      if test "$GXX" = yes; then
15796        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'
15797      else
15798        # FIXME: insert proper C++ library support
15799        ld_shlibs_CXX=no
15800      fi
15801      ;;
15802    esac
15803    ;;
15804  hpux10*|hpux11*)
15805    if test $with_gnu_ld = no; then
15806      case "$host_cpu" in
15807      hppa*64*)
15808	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15809	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15810	hardcode_libdir_separator_CXX=:
15811        ;;
15812      ia64*)
15813	hardcode_libdir_flag_spec_CXX='-L$libdir'
15814        ;;
15815      *)
15816	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15817	hardcode_libdir_separator_CXX=:
15818	export_dynamic_flag_spec_CXX='${wl}-E'
15819        ;;
15820      esac
15821    fi
15822    case "$host_cpu" in
15823    hppa*64*)
15824      hardcode_direct_CXX=no
15825      hardcode_shlibpath_var_CXX=no
15826      ;;
15827    ia64*)
15828      hardcode_direct_CXX=no
15829      hardcode_shlibpath_var_CXX=no
15830      hardcode_minus_L_CXX=yes # Not in the search PATH,
15831					      # but as the default
15832					      # location of the library.
15833      ;;
15834    *)
15835      hardcode_direct_CXX=yes
15836      hardcode_minus_L_CXX=yes # Not in the search PATH,
15837					      # but as the default
15838					      # location of the library.
15839      ;;
15840    esac
15841
15842    case $cc_basename in
15843      CC)
15844	# FIXME: insert proper C++ library support
15845	ld_shlibs_CXX=no
15846	;;
15847      aCC)
15848	case "$host_cpu" in
15849	hppa*64*|ia64*)
15850	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15851	  ;;
15852	*)
15853	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15854	  ;;
15855	esac
15856	# Commands to make compiler produce verbose output that lists
15857	# what "hidden" libraries, object files and flags are used when
15858	# linking a shared library.
15859	#
15860	# There doesn't appear to be a way to prevent this compiler from
15861	# explicitly linking system object files so we need to strip them
15862	# from the output so that they don't get included in the library
15863	# dependencies.
15864	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'
15865	;;
15866      *)
15867	if test "$GXX" = yes; then
15868	  if test $with_gnu_ld = no; then
15869	    case "$host_cpu" in
15870	    ia64*|hppa*64*)
15871	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15872	      ;;
15873	    *)
15874	      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'
15875	      ;;
15876	    esac
15877	  fi
15878	else
15879	  # FIXME: insert proper C++ library support
15880	  ld_shlibs_CXX=no
15881	fi
15882	;;
15883    esac
15884    ;;
15885  irix5* | irix6*)
15886    case $cc_basename in
15887      CC)
15888	# SGI C++
15889	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'
15890
15891	# Archives containing C++ object files must be created using
15892	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15893	# necessary to make sure instantiated templates are included
15894	# in the archive.
15895	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15896	;;
15897      *)
15898	if test "$GXX" = yes; then
15899	  if test "$with_gnu_ld" = no; then
15900	    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'
15901	  else
15902	    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'
15903	  fi
15904	fi
15905	link_all_deplibs_CXX=yes
15906	;;
15907    esac
15908    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15909    hardcode_libdir_separator_CXX=:
15910    ;;
15911  linux*)
15912    case $cc_basename in
15913      KCC)
15914	# Kuck and Associates, Inc. (KAI) C++ Compiler
15915
15916	# KCC will only create a shared library if the output file
15917	# ends with ".so" (or ".sl" for HP-UX), so rename the library
15918	# to its proper name (with version) after linking.
15919	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'
15920	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'
15921	# Commands to make compiler produce verbose output that lists
15922	# what "hidden" libraries, object files and flags are used when
15923	# linking a shared library.
15924	#
15925	# There doesn't appear to be a way to prevent this compiler from
15926	# explicitly linking system object files so we need to strip them
15927	# from the output so that they don't get included in the library
15928	# dependencies.
15929	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'
15930
15931	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15932	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15933
15934	# Archives containing C++ object files must be created using
15935	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
15936	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15937	;;
15938      icpc)
15939	# Intel C++
15940	with_gnu_ld=yes
15941	# version 8.0 and above of icpc choke on multiply defined symbols
15942	# if we add $predep_objects and $postdep_objects, however 7.1 and
15943	# earlier do not add the objects themselves.
15944	case `$CC -V 2>&1` in
15945	*"Version 7."*)
15946  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15947  	  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'
15948	  ;;
15949	*)  # Version 8.0 or newer
15950  	  archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15951  	archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15952	  ;;
15953	esac
15954	archive_cmds_need_lc_CXX=no
15955	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15956	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15957	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15958	;;
15959      cxx)
15960	# Compaq C++
15961	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15962	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'
15963
15964	runpath_var=LD_RUN_PATH
15965	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15966	hardcode_libdir_separator_CXX=:
15967
15968	# Commands to make compiler produce verbose output that lists
15969	# what "hidden" libraries, object files and flags are used when
15970	# linking a shared library.
15971	#
15972	# There doesn't appear to be a way to prevent this compiler from
15973	# explicitly linking system object files so we need to strip them
15974	# from the output so that they don't get included in the library
15975	# dependencies.
15976	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'
15977	;;
15978    esac
15979    ;;
15980  lynxos*)
15981    # FIXME: insert proper C++ library support
15982    ld_shlibs_CXX=no
15983    ;;
15984  m88k*)
15985    # FIXME: insert proper C++ library support
15986    ld_shlibs_CXX=no
15987    ;;
15988  mvs*)
15989    case $cc_basename in
15990      cxx)
15991	# FIXME: insert proper C++ library support
15992	ld_shlibs_CXX=no
15993	;;
15994      *)
15995	# FIXME: insert proper C++ library support
15996	ld_shlibs_CXX=no
15997	;;
15998    esac
15999    ;;
16000  netbsd*)
16001    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16002      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16003      wlarc=
16004      hardcode_libdir_flag_spec_CXX='-R$libdir'
16005      hardcode_direct_CXX=yes
16006      hardcode_shlibpath_var_CXX=no
16007    fi
16008    # Workaround some broken pre-1.5 toolchains
16009    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16010    ;;
16011  openbsd2*)
16012    # C++ shared libraries are fairly broken
16013    ld_shlibs_CXX=no
16014    ;;
16015  openbsd*)
16016    hardcode_direct_CXX=yes
16017    hardcode_shlibpath_var_CXX=no
16018    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16019    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16020    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16021      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16022      export_dynamic_flag_spec_CXX='${wl}-E'
16023      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16024    fi
16025    output_verbose_link_cmd='echo'
16026    ;;
16027  osf3*)
16028    case $cc_basename in
16029      KCC)
16030	# Kuck and Associates, Inc. (KAI) C++ Compiler
16031
16032	# KCC will only create a shared library if the output file
16033	# ends with ".so" (or ".sl" for HP-UX), so rename the library
16034	# to its proper name (with version) after linking.
16035	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'
16036
16037	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16038	hardcode_libdir_separator_CXX=:
16039
16040	# Archives containing C++ object files must be created using
16041	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
16042	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16043
16044	;;
16045      RCC)
16046	# Rational C++ 2.4.1
16047	# FIXME: insert proper C++ library support
16048	ld_shlibs_CXX=no
16049	;;
16050      cxx)
16051	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16052	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'
16053
16054	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16055	hardcode_libdir_separator_CXX=:
16056
16057	# Commands to make compiler produce verbose output that lists
16058	# what "hidden" libraries, object files and flags are used when
16059	# linking a shared library.
16060	#
16061	# There doesn't appear to be a way to prevent this compiler from
16062	# explicitly linking system object files so we need to strip them
16063	# from the output so that they don't get included in the library
16064	# dependencies.
16065	output_verbose_link_cmd='templist=`$CC -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'
16066	;;
16067      *)
16068	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16069	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16070	  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'
16071
16072	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16073	  hardcode_libdir_separator_CXX=:
16074
16075	  # Commands to make compiler produce verbose output that lists
16076	  # what "hidden" libraries, object files and flags are used when
16077	  # linking a shared library.
16078	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16079
16080	else
16081	  # FIXME: insert proper C++ library support
16082	  ld_shlibs_CXX=no
16083	fi
16084	;;
16085    esac
16086    ;;
16087  osf4* | osf5*)
16088    case $cc_basename in
16089      KCC)
16090	# Kuck and Associates, Inc. (KAI) C++ Compiler
16091
16092	# KCC will only create a shared library if the output file
16093	# ends with ".so" (or ".sl" for HP-UX), so rename the library
16094	# to its proper name (with version) after linking.
16095	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'
16096
16097	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16098	hardcode_libdir_separator_CXX=:
16099
16100	# Archives containing C++ object files must be created using
16101	# the KAI C++ compiler.
16102	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16103	;;
16104      RCC)
16105	# Rational C++ 2.4.1
16106	# FIXME: insert proper C++ library support
16107	ld_shlibs_CXX=no
16108	;;
16109      cxx)
16110	allow_undefined_flag_CXX=' -expect_unresolved \*'
16111	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'
16112	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16113	  echo "-hidden">> $lib.exp~
16114	  $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~
16115	  $rm $lib.exp'
16116
16117	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16118	hardcode_libdir_separator_CXX=:
16119
16120	# Commands to make compiler produce verbose output that lists
16121	# what "hidden" libraries, object files and flags are used when
16122	# linking a shared library.
16123	#
16124	# There doesn't appear to be a way to prevent this compiler from
16125	# explicitly linking system object files so we need to strip them
16126	# from the output so that they don't get included in the library
16127	# dependencies.
16128	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'
16129	;;
16130      *)
16131	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16132	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16133	 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'
16134
16135	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16136	  hardcode_libdir_separator_CXX=:
16137
16138	  # Commands to make compiler produce verbose output that lists
16139	  # what "hidden" libraries, object files and flags are used when
16140	  # linking a shared library.
16141	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16142
16143	else
16144	  # FIXME: insert proper C++ library support
16145	  ld_shlibs_CXX=no
16146	fi
16147	;;
16148    esac
16149    ;;
16150  psos*)
16151    # FIXME: insert proper C++ library support
16152    ld_shlibs_CXX=no
16153    ;;
16154  sco*)
16155    archive_cmds_need_lc_CXX=no
16156    case $cc_basename in
16157      CC)
16158	# FIXME: insert proper C++ library support
16159	ld_shlibs_CXX=no
16160	;;
16161      *)
16162	# FIXME: insert proper C++ library support
16163	ld_shlibs_CXX=no
16164	;;
16165    esac
16166    ;;
16167  sunos4*)
16168    case $cc_basename in
16169      CC)
16170	# Sun C++ 4.x
16171	# FIXME: insert proper C++ library support
16172	ld_shlibs_CXX=no
16173	;;
16174      lcc)
16175	# Lucid
16176	# FIXME: insert proper C++ library support
16177	ld_shlibs_CXX=no
16178	;;
16179      *)
16180	# FIXME: insert proper C++ library support
16181	ld_shlibs_CXX=no
16182	;;
16183    esac
16184    ;;
16185  solaris*)
16186    case $cc_basename in
16187      CC)
16188	# Sun C++ 4.2, 5.x and Centerline C++
16189	no_undefined_flag_CXX=' -zdefs'
16190	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16191	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16192	$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'
16193
16194	hardcode_libdir_flag_spec_CXX='-R$libdir'
16195	hardcode_shlibpath_var_CXX=no
16196	case $host_os in
16197	  solaris2.0-5 | solaris2.0-5.*) ;;
16198	  *)
16199	    # The C++ compiler is used as linker so we must use $wl
16200	    # flag to pass the commands to the underlying system
16201	    # linker.
16202	    # Supported since Solaris 2.6 (maybe 2.5.1?)
16203	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16204	    ;;
16205	esac
16206	link_all_deplibs_CXX=yes
16207
16208	# Commands to make compiler produce verbose output that lists
16209	# what "hidden" libraries, object files and flags are used when
16210	# linking a shared library.
16211	#
16212	# There doesn't appear to be a way to prevent this compiler from
16213	# explicitly linking system object files so we need to strip them
16214	# from the output so that they don't get included in the library
16215	# dependencies.
16216	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'
16217
16218	# Archives containing C++ object files must be created using
16219	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
16220	# necessary to make sure instantiated templates are included
16221	# in the archive.
16222	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16223	;;
16224      gcx)
16225	# Green Hills C++ Compiler
16226	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16227
16228	# The C++ compiler must be used to create the archive.
16229	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16230	;;
16231      *)
16232	# GNU C++ compiler with Solaris linker
16233	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16234	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16235	  if $CC --version | grep -v '^2\.7' > /dev/null; then
16236	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16237	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16238		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16239
16240	    # Commands to make compiler produce verbose output that lists
16241	    # what "hidden" libraries, object files and flags are used when
16242	    # linking a shared library.
16243	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16244	  else
16245	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
16246	    # platform.
16247	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16248	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16249		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16250
16251	    # Commands to make compiler produce verbose output that lists
16252	    # what "hidden" libraries, object files and flags are used when
16253	    # linking a shared library.
16254	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16255	  fi
16256
16257	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16258	fi
16259	;;
16260    esac
16261    ;;
16262  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16263    archive_cmds_need_lc_CXX=no
16264    ;;
16265  tandem*)
16266    case $cc_basename in
16267      NCC)
16268	# NonStop-UX NCC 3.20
16269	# FIXME: insert proper C++ library support
16270	ld_shlibs_CXX=no
16271	;;
16272      *)
16273	# FIXME: insert proper C++ library support
16274	ld_shlibs_CXX=no
16275	;;
16276    esac
16277    ;;
16278  vxworks*)
16279    # FIXME: insert proper C++ library support
16280    ld_shlibs_CXX=no
16281    ;;
16282  *)
16283    # FIXME: insert proper C++ library support
16284    ld_shlibs_CXX=no
16285    ;;
16286esac
16287echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16288echo "${ECHO_T}$ld_shlibs_CXX" >&6
16289test "$ld_shlibs_CXX" = no && can_build_shared=no
16290
16291GCC_CXX="$GXX"
16292LD_CXX="$LD"
16293
16294
16295cat > conftest.$ac_ext <<EOF
16296class Foo
16297{
16298public:
16299  Foo (void) { a = 0; }
16300private:
16301  int a;
16302};
16303EOF
16304
16305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16306  (eval $ac_compile) 2>&5
16307  ac_status=$?
16308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309  (exit $ac_status); }; then
16310  # Parse the compiler output and extract the necessary
16311  # objects, libraries and library flags.
16312
16313  # Sentinel used to keep track of whether or not we are before
16314  # the conftest object file.
16315  pre_test_object_deps_done=no
16316
16317  # The `*' in the case matches for architectures that use `case' in
16318  # $output_verbose_cmd can trigger glob expansion during the loop
16319  # eval without this substitution.
16320  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16321
16322  for p in `eval $output_verbose_link_cmd`; do
16323    case $p in
16324
16325    -L* | -R* | -l*)
16326       # Some compilers place space between "-{L,R}" and the path.
16327       # Remove the space.
16328       if test $p = "-L" \
16329	  || test $p = "-R"; then
16330	 prev=$p
16331	 continue
16332       else
16333	 prev=
16334       fi
16335
16336       if test "$pre_test_object_deps_done" = no; then
16337	 case $p in
16338	 -L* | -R*)
16339	   # Internal compiler library paths should come after those
16340	   # provided the user.  The postdeps already come after the
16341	   # user supplied libs so there is no need to process them.
16342	   if test -z "$compiler_lib_search_path_CXX"; then
16343	     compiler_lib_search_path_CXX="${prev}${p}"
16344	   else
16345	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16346	   fi
16347	   ;;
16348	 # The "-l" case would never come before the object being
16349	 # linked, so don't bother handling this case.
16350	 esac
16351       else
16352	 if test -z "$postdeps_CXX"; then
16353	   postdeps_CXX="${prev}${p}"
16354	 else
16355	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16356	 fi
16357       fi
16358       ;;
16359
16360    *.$objext)
16361       # This assumes that the test object file only shows up
16362       # once in the compiler output.
16363       if test "$p" = "conftest.$objext"; then
16364	 pre_test_object_deps_done=yes
16365	 continue
16366       fi
16367
16368       if test "$pre_test_object_deps_done" = no; then
16369	 if test -z "$predep_objects_CXX"; then
16370	   predep_objects_CXX="$p"
16371	 else
16372	   predep_objects_CXX="$predep_objects_CXX $p"
16373	 fi
16374       else
16375	 if test -z "$postdep_objects_CXX"; then
16376	   postdep_objects_CXX="$p"
16377	 else
16378	   postdep_objects_CXX="$postdep_objects_CXX $p"
16379	 fi
16380       fi
16381       ;;
16382
16383    *) ;; # Ignore the rest.
16384
16385    esac
16386  done
16387
16388  # Clean up.
16389  rm -f a.out a.exe
16390else
16391  echo "libtool.m4: error: problem compiling CXX test program"
16392fi
16393
16394$rm -f confest.$objext
16395
16396case " $postdeps_CXX " in
16397*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16398esac
16399
16400lt_prog_compiler_wl_CXX=
16401lt_prog_compiler_pic_CXX=
16402lt_prog_compiler_static_CXX=
16403
16404echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16405echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16406
16407  # C++ specific cases for pic, static, wl, etc.
16408  if test "$GXX" = yes; then
16409    lt_prog_compiler_wl_CXX='-Wl,'
16410    lt_prog_compiler_static_CXX='-static'
16411
16412    case $host_os in
16413    aix*)
16414      # All AIX code is PIC.
16415      if test "$host_cpu" = ia64; then
16416	# AIX 5 now supports IA64 processor
16417	lt_prog_compiler_static_CXX='-Bstatic'
16418      fi
16419      ;;
16420    amigaos*)
16421      # FIXME: we need at least 68020 code to build shared libraries, but
16422      # adding the `-m68020' flag to GCC prevents building anything better,
16423      # like `-m68040'.
16424      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16425      ;;
16426    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16427      # PIC is the default for these OSes.
16428      ;;
16429    mingw* | os2* | pw32*)
16430      # This hack is so that the source file can tell whether it is being
16431      # built for inclusion in a dll (and should export symbols for example).
16432      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16433      ;;
16434    darwin* | rhapsody*)
16435      # PIC is the default on this platform
16436      # Common symbols not allowed in MH_DYLIB files
16437      lt_prog_compiler_pic_CXX='-fno-common'
16438      ;;
16439    *djgpp*)
16440      # DJGPP does not support shared libraries at all
16441      lt_prog_compiler_pic_CXX=
16442      ;;
16443    sysv4*MP*)
16444      if test -d /usr/nec; then
16445	lt_prog_compiler_pic_CXX=-Kconform_pic
16446      fi
16447      ;;
16448    hpux*)
16449      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16450      # not for PA HP-UX.
16451      case "$host_cpu" in
16452      hppa*64*|ia64*)
16453	;;
16454      *)
16455	lt_prog_compiler_pic_CXX='-fPIC'
16456	;;
16457      esac
16458      ;;
16459    *)
16460      lt_prog_compiler_pic_CXX='-fPIC'
16461      ;;
16462    esac
16463  else
16464    case $host_os in
16465      aix4* | aix5*)
16466	# All AIX code is PIC.
16467	if test "$host_cpu" = ia64; then
16468	  # AIX 5 now supports IA64 processor
16469	  lt_prog_compiler_static_CXX='-Bstatic'
16470	else
16471	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16472	fi
16473	;;
16474      chorus*)
16475	case $cc_basename in
16476	cxch68)
16477	  # Green Hills C++ Compiler
16478	  # _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"
16479	  ;;
16480	esac
16481	;;
16482       darwin*)
16483         # PIC is the default on this platform
16484         # Common symbols not allowed in MH_DYLIB files
16485         case "$cc_basename" in
16486           xlc*)
16487           lt_prog_compiler_pic_CXX='-qnocommon'
16488           lt_prog_compiler_wl_CXX='-Wl,'
16489           ;;
16490         esac
16491       ;;
16492      dgux*)
16493	case $cc_basename in
16494	  ec++)
16495	    lt_prog_compiler_pic_CXX='-KPIC'
16496	    ;;
16497	  ghcx)
16498	    # Green Hills C++ Compiler
16499	    lt_prog_compiler_pic_CXX='-pic'
16500	    ;;
16501	  *)
16502	    ;;
16503	esac
16504	;;
16505      freebsd* | kfreebsd*-gnu)
16506	# FreeBSD uses GNU C++
16507	;;
16508      hpux9* | hpux10* | hpux11*)
16509	case $cc_basename in
16510	  CC)
16511	    lt_prog_compiler_wl_CXX='-Wl,'
16512	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16513	    if test "$host_cpu" != ia64; then
16514	      lt_prog_compiler_pic_CXX='+Z'
16515	    fi
16516	    ;;
16517	  aCC)
16518	    lt_prog_compiler_wl_CXX='-Wl,'
16519	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16520	    case "$host_cpu" in
16521	    hppa*64*|ia64*)
16522	      # +Z the default
16523	      ;;
16524	    *)
16525	      lt_prog_compiler_pic_CXX='+Z'
16526	      ;;
16527	    esac
16528	    ;;
16529	  *)
16530	    ;;
16531	esac
16532	;;
16533      irix5* | irix6* | nonstopux*)
16534	case $cc_basename in
16535	  CC)
16536	    lt_prog_compiler_wl_CXX='-Wl,'
16537	    lt_prog_compiler_static_CXX='-non_shared'
16538	    # CC pic flag -KPIC is the default.
16539	    ;;
16540	  *)
16541	    ;;
16542	esac
16543	;;
16544      linux*)
16545	case $cc_basename in
16546	  KCC)
16547	    # KAI C++ Compiler
16548	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16549	    lt_prog_compiler_pic_CXX='-fPIC'
16550	    ;;
16551	  icpc)
16552	    # Intel C++
16553	    lt_prog_compiler_wl_CXX='-Wl,'
16554	    lt_prog_compiler_pic_CXX='-KPIC'
16555	    lt_prog_compiler_static_CXX='-static'
16556	    ;;
16557	  cxx)
16558	    # Compaq C++
16559	    # Make sure the PIC flag is empty.  It appears that all Alpha
16560	    # Linux and Compaq Tru64 Unix objects are PIC.
16561	    lt_prog_compiler_pic_CXX=
16562	    lt_prog_compiler_static_CXX='-non_shared'
16563	    ;;
16564	  *)
16565	    ;;
16566	esac
16567	;;
16568      lynxos*)
16569	;;
16570      m88k*)
16571	;;
16572      mvs*)
16573	case $cc_basename in
16574	  cxx)
16575	    lt_prog_compiler_pic_CXX='-W c,exportall'
16576	    ;;
16577	  *)
16578	    ;;
16579	esac
16580	;;
16581      netbsd*)
16582	;;
16583      osf3* | osf4* | osf5*)
16584	case $cc_basename in
16585	  KCC)
16586	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16587	    ;;
16588	  RCC)
16589	    # Rational C++ 2.4.1
16590	    lt_prog_compiler_pic_CXX='-pic'
16591	    ;;
16592	  cxx)
16593	    # Digital/Compaq C++
16594	    lt_prog_compiler_wl_CXX='-Wl,'
16595	    # Make sure the PIC flag is empty.  It appears that all Alpha
16596	    # Linux and Compaq Tru64 Unix objects are PIC.
16597	    lt_prog_compiler_pic_CXX=
16598	    lt_prog_compiler_static_CXX='-non_shared'
16599	    ;;
16600	  *)
16601	    ;;
16602	esac
16603	;;
16604      psos*)
16605	;;
16606      sco*)
16607	case $cc_basename in
16608	  CC)
16609	    lt_prog_compiler_pic_CXX='-fPIC'
16610	    ;;
16611	  *)
16612	    ;;
16613	esac
16614	;;
16615      solaris*)
16616	case $cc_basename in
16617	  CC)
16618	    # Sun C++ 4.2, 5.x and Centerline C++
16619	    lt_prog_compiler_pic_CXX='-KPIC'
16620	    lt_prog_compiler_static_CXX='-Bstatic'
16621	    lt_prog_compiler_wl_CXX='-Qoption ld '
16622	    ;;
16623	  gcx)
16624	    # Green Hills C++ Compiler
16625	    lt_prog_compiler_pic_CXX='-PIC'
16626	    ;;
16627	  *)
16628	    ;;
16629	esac
16630	;;
16631      sunos4*)
16632	case $cc_basename in
16633	  CC)
16634	    # Sun C++ 4.x
16635	    lt_prog_compiler_pic_CXX='-pic'
16636	    lt_prog_compiler_static_CXX='-Bstatic'
16637	    ;;
16638	  lcc)
16639	    # Lucid
16640	    lt_prog_compiler_pic_CXX='-pic'
16641	    ;;
16642	  *)
16643	    ;;
16644	esac
16645	;;
16646      tandem*)
16647	case $cc_basename in
16648	  NCC)
16649	    # NonStop-UX NCC 3.20
16650	    lt_prog_compiler_pic_CXX='-KPIC'
16651	    ;;
16652	  *)
16653	    ;;
16654	esac
16655	;;
16656      unixware*)
16657	;;
16658      vxworks*)
16659	;;
16660      *)
16661	lt_prog_compiler_can_build_shared_CXX=no
16662	;;
16663    esac
16664  fi
16665
16666echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16667echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16668
16669#
16670# Check to make sure the PIC flag actually works.
16671#
16672if test -n "$lt_prog_compiler_pic_CXX"; then
16673
16674echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16675echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16676if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16677  echo $ECHO_N "(cached) $ECHO_C" >&6
16678else
16679  lt_prog_compiler_pic_works_CXX=no
16680  ac_outfile=conftest.$ac_objext
16681   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16682   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16683   # Insert the option either (1) after the last *FLAGS variable, or
16684   # (2) before a word containing "conftest.", or (3) at the end.
16685   # Note that $ac_compile itself does not contain backslashes and begins
16686   # with a dollar sign (not a hyphen), so the echo should work correctly.
16687   # The option is referenced via a variable to avoid confusing sed.
16688   lt_compile=`echo "$ac_compile" | $SED \
16689   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16690   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16691   -e 's:$: $lt_compiler_flag:'`
16692   (eval echo "\"\$as_me:16692: $lt_compile\"" >&5)
16693   (eval "$lt_compile" 2>conftest.err)
16694   ac_status=$?
16695   cat conftest.err >&5
16696   echo "$as_me:16696: \$? = $ac_status" >&5
16697   if (exit $ac_status) && test -s "$ac_outfile"; then
16698     # The compiler can only warn and ignore the option if not recognized
16699     # So say no if there are warnings
16700     if test ! -s conftest.err; then
16701       lt_prog_compiler_pic_works_CXX=yes
16702     fi
16703   fi
16704   $rm conftest*
16705
16706fi
16707echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16708echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16709
16710if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16711    case $lt_prog_compiler_pic_CXX in
16712     "" | " "*) ;;
16713     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16714     esac
16715else
16716    lt_prog_compiler_pic_CXX=
16717     lt_prog_compiler_can_build_shared_CXX=no
16718fi
16719
16720fi
16721case "$host_os" in
16722  # For platforms which do not support PIC, -DPIC is meaningless:
16723  *djgpp*)
16724    lt_prog_compiler_pic_CXX=
16725    ;;
16726  *)
16727    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16728    ;;
16729esac
16730
16731echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16732echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16733if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16734  echo $ECHO_N "(cached) $ECHO_C" >&6
16735else
16736  lt_cv_prog_compiler_c_o_CXX=no
16737   $rm -r conftest 2>/dev/null
16738   mkdir conftest
16739   cd conftest
16740   mkdir out
16741   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16742
16743   lt_compiler_flag="-o out/conftest2.$ac_objext"
16744   # Insert the option either (1) after the last *FLAGS variable, or
16745   # (2) before a word containing "conftest.", or (3) at the end.
16746   # Note that $ac_compile itself does not contain backslashes and begins
16747   # with a dollar sign (not a hyphen), so the echo should work correctly.
16748   lt_compile=`echo "$ac_compile" | $SED \
16749   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16750   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16751   -e 's:$: $lt_compiler_flag:'`
16752   (eval echo "\"\$as_me:16752: $lt_compile\"" >&5)
16753   (eval "$lt_compile" 2>out/conftest.err)
16754   ac_status=$?
16755   cat out/conftest.err >&5
16756   echo "$as_me:16756: \$? = $ac_status" >&5
16757   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16758   then
16759     # The compiler can only warn and ignore the option if not recognized
16760     # So say no if there are warnings
16761     if test ! -s out/conftest.err; then
16762       lt_cv_prog_compiler_c_o_CXX=yes
16763     fi
16764   fi
16765   chmod u+w .
16766   $rm conftest*
16767   # SGI C++ compiler will create directory out/ii_files/ for
16768   # template instantiation
16769   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16770   $rm out/* && rmdir out
16771   cd ..
16772   rmdir conftest
16773   $rm conftest*
16774
16775fi
16776echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16777echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16778
16779
16780hard_links="nottested"
16781if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16782  # do not overwrite the value of need_locks provided by the user
16783  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16784echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16785  hard_links=yes
16786  $rm conftest*
16787  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16788  touch conftest.a
16789  ln conftest.a conftest.b 2>&5 || hard_links=no
16790  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16791  echo "$as_me:$LINENO: result: $hard_links" >&5
16792echo "${ECHO_T}$hard_links" >&6
16793  if test "$hard_links" = no; then
16794    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16795echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16796    need_locks=warn
16797  fi
16798else
16799  need_locks=no
16800fi
16801
16802echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16803echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16804
16805  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16806  case $host_os in
16807  aix4* | aix5*)
16808    # If we're using GNU nm, then we don't want the "-C" option.
16809    # -C means demangle to AIX nm, but means don't demangle with GNU nm
16810    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16811      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'
16812    else
16813      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'
16814    fi
16815    ;;
16816  pw32*)
16817    export_symbols_cmds_CXX="$ltdll_cmds"
16818  ;;
16819  cygwin* | mingw*)
16820    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16821  ;;
16822  *)
16823    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16824  ;;
16825  esac
16826
16827echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16828echo "${ECHO_T}$ld_shlibs_CXX" >&6
16829test "$ld_shlibs_CXX" = no && can_build_shared=no
16830
16831variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16832if test "$GCC" = yes; then
16833  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16834fi
16835
16836#
16837# Do we need to explicitly link libc?
16838#
16839case "x$archive_cmds_need_lc_CXX" in
16840x|xyes)
16841  # Assume -lc should be added
16842  archive_cmds_need_lc_CXX=yes
16843
16844  if test "$enable_shared" = yes && test "$GCC" = yes; then
16845    case $archive_cmds_CXX in
16846    *'~'*)
16847      # FIXME: we may have to deal with multi-command sequences.
16848      ;;
16849    '$CC '*)
16850      # Test whether the compiler implicitly links with -lc since on some
16851      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16852      # to ld, don't add -lc before -lgcc.
16853      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16854echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16855      $rm conftest*
16856      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16857
16858      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16859  (eval $ac_compile) 2>&5
16860  ac_status=$?
16861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862  (exit $ac_status); } 2>conftest.err; then
16863        soname=conftest
16864        lib=conftest
16865        libobjs=conftest.$ac_objext
16866        deplibs=
16867        wl=$lt_prog_compiler_wl_CXX
16868        compiler_flags=-v
16869        linker_flags=-v
16870        verstring=
16871        output_objdir=.
16872        libname=conftest
16873        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16874        allow_undefined_flag_CXX=
16875        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16876  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16877  ac_status=$?
16878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879  (exit $ac_status); }
16880        then
16881	  archive_cmds_need_lc_CXX=no
16882        else
16883	  archive_cmds_need_lc_CXX=yes
16884        fi
16885        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16886      else
16887        cat conftest.err 1>&5
16888      fi
16889      $rm conftest*
16890      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16891echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16892      ;;
16893    esac
16894  fi
16895  ;;
16896esac
16897
16898echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16899echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16900library_names_spec=
16901libname_spec='lib$name'
16902soname_spec=
16903shrext_cmds=".so"
16904postinstall_cmds=
16905postuninstall_cmds=
16906finish_cmds=
16907finish_eval=
16908shlibpath_var=
16909shlibpath_overrides_runpath=unknown
16910version_type=none
16911dynamic_linker="$host_os ld.so"
16912sys_lib_dlsearch_path_spec="/lib /usr/lib"
16913if test "$GCC" = yes; then
16914  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16915  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16916    # if the path contains ";" then we assume it to be the separator
16917    # otherwise default to the standard path separator (i.e. ":") - it is
16918    # assumed that no part of a normal pathname contains ";" but that should
16919    # okay in the real world where ";" in dirpaths is itself problematic.
16920    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16921  else
16922    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16923  fi
16924else
16925  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16926fi
16927need_lib_prefix=unknown
16928hardcode_into_libs=no
16929
16930# when you set need_version to no, make sure it does not cause -set_version
16931# flags to be left without arguments
16932need_version=unknown
16933
16934case $host_os in
16935aix3*)
16936  version_type=linux
16937  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16938  shlibpath_var=LIBPATH
16939
16940  # AIX 3 has no versioning support, so we append a major version to the name.
16941  soname_spec='${libname}${release}${shared_ext}$major'
16942  ;;
16943
16944aix4* | aix5*)
16945  version_type=linux
16946  need_lib_prefix=no
16947  need_version=no
16948  hardcode_into_libs=yes
16949  if test "$host_cpu" = ia64; then
16950    # AIX 5 supports IA64
16951    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16952    shlibpath_var=LD_LIBRARY_PATH
16953  else
16954    # With GCC up to 2.95.x, collect2 would create an import file
16955    # for dependence libraries.  The import file would start with
16956    # the line `#! .'.  This would cause the generated library to
16957    # depend on `.', always an invalid library.  This was fixed in
16958    # development snapshots of GCC prior to 3.0.
16959    case $host_os in
16960      aix4 | aix4.[01] | aix4.[01].*)
16961      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16962	   echo ' yes '
16963	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16964	:
16965      else
16966	can_build_shared=no
16967      fi
16968      ;;
16969    esac
16970    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16971    # soname into executable. Probably we can add versioning support to
16972    # collect2, so additional links can be useful in future.
16973    if test "$aix_use_runtimelinking" = yes; then
16974      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16975      # instead of lib<name>.a to let people know that these are not
16976      # typical AIX shared libraries.
16977      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16978    else
16979      # We preserve .a as extension for shared libraries through AIX4.2
16980      # and later when we are not doing run time linking.
16981      library_names_spec='${libname}${release}.a $libname.a'
16982      soname_spec='${libname}${release}${shared_ext}$major'
16983    fi
16984    shlibpath_var=LIBPATH
16985  fi
16986  ;;
16987
16988amigaos*)
16989  library_names_spec='$libname.ixlibrary $libname.a'
16990  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16991  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'
16992  ;;
16993
16994beos*)
16995  library_names_spec='${libname}${shared_ext}'
16996  dynamic_linker="$host_os ld.so"
16997  shlibpath_var=LIBRARY_PATH
16998  ;;
16999
17000bsdi[45]*)
17001  version_type=linux
17002  need_version=no
17003  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17004  soname_spec='${libname}${release}${shared_ext}$major'
17005  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17006  shlibpath_var=LD_LIBRARY_PATH
17007  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17008  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17009  # the default ld.so.conf also contains /usr/contrib/lib and
17010  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17011  # libtool to hard-code these into programs
17012  ;;
17013
17014cygwin* | mingw* | pw32*)
17015  version_type=windows
17016  shrext_cmds=".dll"
17017  need_version=no
17018  need_lib_prefix=no
17019
17020  case $GCC,$host_os in
17021  yes,cygwin* | yes,mingw* | yes,pw32*)
17022    library_names_spec='$libname.dll.a'
17023    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17024    postinstall_cmds='base_file=`basename \${file}`~
17025      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17026      dldir=$destdir/`dirname \$dlpath`~
17027      test -d \$dldir || mkdir -p \$dldir~
17028      $install_prog $dir/$dlname \$dldir/$dlname'
17029    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17030      dlpath=$dir/\$dldll~
17031       $rm \$dlpath'
17032    shlibpath_overrides_runpath=yes
17033
17034    case $host_os in
17035    cygwin*)
17036      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17037      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17038      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17039      ;;
17040    mingw*)
17041      # MinGW DLLs use traditional 'lib' prefix
17042      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17043      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17044      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17045        # It is most probably a Windows format PATH printed by
17046        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17047        # path with ; separators, and with drive letters. We can handle the
17048        # drive letters (cygwin fileutils understands them), so leave them,
17049        # especially as we might pass files found there to a mingw objdump,
17050        # which wouldn't understand a cygwinified path. Ahh.
17051        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17052      else
17053        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17054      fi
17055      ;;
17056    pw32*)
17057      # pw32 DLLs use 'pw' prefix rather than 'lib'
17058      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17059      ;;
17060    esac
17061    ;;
17062
17063  *)
17064    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17065    ;;
17066  esac
17067  dynamic_linker='Win32 ld.exe'
17068  # FIXME: first we should search . and the directory the executable is in
17069  shlibpath_var=PATH
17070  ;;
17071
17072darwin* | rhapsody*)
17073  dynamic_linker="$host_os dyld"
17074  version_type=darwin
17075  need_lib_prefix=no
17076  need_version=no
17077  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17078  soname_spec='${libname}${release}${major}$shared_ext'
17079  shlibpath_overrides_runpath=yes
17080  shlibpath_var=DYLD_LIBRARY_PATH
17081  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17082  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17083  if test "$GCC" = yes; then
17084    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"`
17085  else
17086    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17087  fi
17088  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17089  ;;
17090
17091dgux*)
17092  version_type=linux
17093  need_lib_prefix=no
17094  need_version=no
17095  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17096  soname_spec='${libname}${release}${shared_ext}$major'
17097  shlibpath_var=LD_LIBRARY_PATH
17098  ;;
17099
17100freebsd1*)
17101  dynamic_linker=no
17102  ;;
17103
17104kfreebsd*-gnu)
17105  version_type=linux
17106  need_lib_prefix=no
17107  need_version=no
17108  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17109  soname_spec='${libname}${release}${shared_ext}$major'
17110  shlibpath_var=LD_LIBRARY_PATH
17111  shlibpath_overrides_runpath=no
17112  hardcode_into_libs=yes
17113  dynamic_linker='GNU ld.so'
17114  ;;
17115
17116freebsd*)
17117  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17118  version_type=freebsd-$objformat
17119  case $version_type in
17120    freebsd-elf*)
17121      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17122      need_version=no
17123      need_lib_prefix=no
17124      ;;
17125    freebsd-*)
17126      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17127      need_version=yes
17128      ;;
17129  esac
17130  shlibpath_var=LD_LIBRARY_PATH
17131  case $host_os in
17132  freebsd2*)
17133    shlibpath_overrides_runpath=yes
17134    ;;
17135  freebsd3.01* | freebsdelf3.01*)
17136    shlibpath_overrides_runpath=yes
17137    hardcode_into_libs=yes
17138    ;;
17139  *) # from 3.2 on
17140    shlibpath_overrides_runpath=no
17141    hardcode_into_libs=yes
17142    ;;
17143  esac
17144  ;;
17145
17146gnu*)
17147  version_type=linux
17148  need_lib_prefix=no
17149  need_version=no
17150  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17151  soname_spec='${libname}${release}${shared_ext}$major'
17152  shlibpath_var=LD_LIBRARY_PATH
17153  hardcode_into_libs=yes
17154  ;;
17155
17156hpux9* | hpux10* | hpux11*)
17157  # Give a soname corresponding to the major version so that dld.sl refuses to
17158  # link against other versions.
17159  version_type=sunos
17160  need_lib_prefix=no
17161  need_version=no
17162  case "$host_cpu" in
17163  ia64*)
17164    shrext_cmds='.so'
17165    hardcode_into_libs=yes
17166    dynamic_linker="$host_os dld.so"
17167    shlibpath_var=LD_LIBRARY_PATH
17168    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17169    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17170    soname_spec='${libname}${release}${shared_ext}$major'
17171    if test "X$HPUX_IA64_MODE" = X32; then
17172      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17173    else
17174      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17175    fi
17176    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17177    ;;
17178   hppa*64*)
17179     shrext_cmds='.sl'
17180     hardcode_into_libs=yes
17181     dynamic_linker="$host_os dld.sl"
17182     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17183     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17184     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17185     soname_spec='${libname}${release}${shared_ext}$major'
17186     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17187     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17188     ;;
17189   *)
17190    shrext_cmds='.sl'
17191    dynamic_linker="$host_os dld.sl"
17192    shlibpath_var=SHLIB_PATH
17193    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17194    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17195    soname_spec='${libname}${release}${shared_ext}$major'
17196    ;;
17197  esac
17198  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17199  postinstall_cmds='chmod 555 $lib'
17200  ;;
17201
17202irix5* | irix6* | nonstopux*)
17203  case $host_os in
17204    nonstopux*) version_type=nonstopux ;;
17205    *)
17206	if test "$lt_cv_prog_gnu_ld" = yes; then
17207		version_type=linux
17208	else
17209		version_type=irix
17210	fi ;;
17211  esac
17212  need_lib_prefix=no
17213  need_version=no
17214  soname_spec='${libname}${release}${shared_ext}$major'
17215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17216  case $host_os in
17217  irix5* | nonstopux*)
17218    libsuff= shlibsuff=
17219    ;;
17220  *)
17221    case $LD in # libtool.m4 will add one of these switches to LD
17222    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17223      libsuff= shlibsuff= libmagic=32-bit;;
17224    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17225      libsuff=32 shlibsuff=N32 libmagic=N32;;
17226    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17227      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17228    *) libsuff= shlibsuff= libmagic=never-match;;
17229    esac
17230    ;;
17231  esac
17232  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17233  shlibpath_overrides_runpath=no
17234  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17235  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17236  hardcode_into_libs=yes
17237  ;;
17238
17239# No shared lib support for Linux oldld, aout, or coff.
17240linux*oldld* | linux*aout* | linux*coff*)
17241  dynamic_linker=no
17242  ;;
17243
17244# This must be Linux ELF.
17245linux*)
17246  version_type=linux
17247  need_lib_prefix=no
17248  need_version=no
17249  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17250  soname_spec='${libname}${release}${shared_ext}$major'
17251  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17252  shlibpath_var=LD_LIBRARY_PATH
17253  shlibpath_overrides_runpath=no
17254  # This implies no fast_install, which is unacceptable.
17255  # Some rework will be needed to allow for fast_install
17256  # before this can be enabled.
17257  hardcode_into_libs=yes
17258
17259  # Append ld.so.conf contents to the search path
17260  if test -f /etc/ld.so.conf; then
17261    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17262    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17263  fi
17264
17265  # We used to test for /lib/ld.so.1 and disable shared libraries on
17266  # powerpc, because MkLinux only supported shared libraries with the
17267  # GNU dynamic linker.  Since this was broken with cross compilers,
17268  # most powerpc-linux boxes support dynamic linking these days and
17269  # people can always --disable-shared, the test was removed, and we
17270  # assume the GNU/Linux dynamic linker is in use.
17271  dynamic_linker='GNU/Linux ld.so'
17272  ;;
17273
17274knetbsd*-gnu)
17275  version_type=linux
17276  need_lib_prefix=no
17277  need_version=no
17278  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17279  soname_spec='${libname}${release}${shared_ext}$major'
17280  shlibpath_var=LD_LIBRARY_PATH
17281  shlibpath_overrides_runpath=no
17282  hardcode_into_libs=yes
17283  dynamic_linker='GNU ld.so'
17284  ;;
17285
17286netbsd*)
17287  version_type=sunos
17288  need_lib_prefix=no
17289  need_version=no
17290  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17291    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17292    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17293    dynamic_linker='NetBSD (a.out) ld.so'
17294  else
17295    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17296    soname_spec='${libname}${release}${shared_ext}$major'
17297    dynamic_linker='NetBSD ld.elf_so'
17298  fi
17299  shlibpath_var=LD_LIBRARY_PATH
17300  shlibpath_overrides_runpath=yes
17301  hardcode_into_libs=yes
17302  ;;
17303
17304newsos6)
17305  version_type=linux
17306  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17307  shlibpath_var=LD_LIBRARY_PATH
17308  shlibpath_overrides_runpath=yes
17309  ;;
17310
17311nto-qnx*)
17312  version_type=linux
17313  need_lib_prefix=no
17314  need_version=no
17315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17316  soname_spec='${libname}${release}${shared_ext}$major'
17317  shlibpath_var=LD_LIBRARY_PATH
17318  shlibpath_overrides_runpath=yes
17319  ;;
17320
17321openbsd*)
17322  version_type=sunos
17323  need_lib_prefix=no
17324  need_version=no
17325  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17326  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17327  shlibpath_var=LD_LIBRARY_PATH
17328  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17329    case $host_os in
17330      openbsd2.[89] | openbsd2.[89].*)
17331	shlibpath_overrides_runpath=no
17332	;;
17333      *)
17334	shlibpath_overrides_runpath=yes
17335	;;
17336      esac
17337  else
17338    shlibpath_overrides_runpath=yes
17339  fi
17340  ;;
17341
17342os2*)
17343  libname_spec='$name'
17344  shrext_cmds=".dll"
17345  need_lib_prefix=no
17346  library_names_spec='$libname${shared_ext} $libname.a'
17347  dynamic_linker='OS/2 ld.exe'
17348  shlibpath_var=LIBPATH
17349  ;;
17350
17351osf3* | osf4* | osf5*)
17352  version_type=osf
17353  need_lib_prefix=no
17354  need_version=no
17355  soname_spec='${libname}${release}${shared_ext}$major'
17356  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17357  shlibpath_var=LD_LIBRARY_PATH
17358  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17359  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17360  ;;
17361
17362sco3.2v5*)
17363  version_type=osf
17364  soname_spec='${libname}${release}${shared_ext}$major'
17365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17366  shlibpath_var=LD_LIBRARY_PATH
17367  ;;
17368
17369solaris*)
17370  version_type=linux
17371  need_lib_prefix=no
17372  need_version=no
17373  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17374  soname_spec='${libname}${release}${shared_ext}$major'
17375  shlibpath_var=LD_LIBRARY_PATH
17376  shlibpath_overrides_runpath=yes
17377  hardcode_into_libs=yes
17378  # ldd complains unless libraries are executable
17379  postinstall_cmds='chmod +x $lib'
17380  ;;
17381
17382sunos4*)
17383  version_type=sunos
17384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17385  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17386  shlibpath_var=LD_LIBRARY_PATH
17387  shlibpath_overrides_runpath=yes
17388  if test "$with_gnu_ld" = yes; then
17389    need_lib_prefix=no
17390  fi
17391  need_version=yes
17392  ;;
17393
17394sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17395  version_type=linux
17396  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17397  soname_spec='${libname}${release}${shared_ext}$major'
17398  shlibpath_var=LD_LIBRARY_PATH
17399  case $host_vendor in
17400    sni)
17401      shlibpath_overrides_runpath=no
17402      need_lib_prefix=no
17403      export_dynamic_flag_spec='${wl}-Blargedynsym'
17404      runpath_var=LD_RUN_PATH
17405      ;;
17406    siemens)
17407      need_lib_prefix=no
17408      ;;
17409    motorola)
17410      need_lib_prefix=no
17411      need_version=no
17412      shlibpath_overrides_runpath=no
17413      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17414      ;;
17415  esac
17416  ;;
17417
17418sysv4*MP*)
17419  if test -d /usr/nec ;then
17420    version_type=linux
17421    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17422    soname_spec='$libname${shared_ext}.$major'
17423    shlibpath_var=LD_LIBRARY_PATH
17424  fi
17425  ;;
17426
17427uts4*)
17428  version_type=linux
17429  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17430  soname_spec='${libname}${release}${shared_ext}$major'
17431  shlibpath_var=LD_LIBRARY_PATH
17432  ;;
17433
17434*)
17435  dynamic_linker=no
17436  ;;
17437esac
17438echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17439echo "${ECHO_T}$dynamic_linker" >&6
17440test "$dynamic_linker" = no && can_build_shared=no
17441
17442echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17443echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17444hardcode_action_CXX=
17445if test -n "$hardcode_libdir_flag_spec_CXX" || \
17446   test -n "$runpath_var_CXX" || \
17447   test "X$hardcode_automatic_CXX" = "Xyes" ; then
17448
17449  # We can hardcode non-existant directories.
17450  if test "$hardcode_direct_CXX" != no &&
17451     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17452     # have to relink, otherwise we might link with an installed library
17453     # when we should be linking with a yet-to-be-installed one
17454     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17455     test "$hardcode_minus_L_CXX" != no; then
17456    # Linking always hardcodes the temporary library directory.
17457    hardcode_action_CXX=relink
17458  else
17459    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17460    hardcode_action_CXX=immediate
17461  fi
17462else
17463  # We cannot hardcode anything, or else we can only hardcode existing
17464  # directories.
17465  hardcode_action_CXX=unsupported
17466fi
17467echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17468echo "${ECHO_T}$hardcode_action_CXX" >&6
17469
17470if test "$hardcode_action_CXX" = relink; then
17471  # Fast installation is not supported
17472  enable_fast_install=no
17473elif test "$shlibpath_overrides_runpath" = yes ||
17474     test "$enable_shared" = no; then
17475  # Fast installation is not necessary
17476  enable_fast_install=needless
17477fi
17478
17479striplib=
17480old_striplib=
17481echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17482echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17483if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17484  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17485  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17486  echo "$as_me:$LINENO: result: yes" >&5
17487echo "${ECHO_T}yes" >&6
17488else
17489# FIXME - insert some real tests, host_os isn't really good enough
17490  case $host_os in
17491   darwin*)
17492       if test -n "$STRIP" ; then
17493         striplib="$STRIP -x"
17494         echo "$as_me:$LINENO: result: yes" >&5
17495echo "${ECHO_T}yes" >&6
17496       else
17497  echo "$as_me:$LINENO: result: no" >&5
17498echo "${ECHO_T}no" >&6
17499fi
17500       ;;
17501   *)
17502  echo "$as_me:$LINENO: result: no" >&5
17503echo "${ECHO_T}no" >&6
17504    ;;
17505  esac
17506fi
17507
17508if test "x$enable_dlopen" != xyes; then
17509  enable_dlopen=unknown
17510  enable_dlopen_self=unknown
17511  enable_dlopen_self_static=unknown
17512else
17513  lt_cv_dlopen=no
17514  lt_cv_dlopen_libs=
17515
17516  case $host_os in
17517  beos*)
17518    lt_cv_dlopen="load_add_on"
17519    lt_cv_dlopen_libs=
17520    lt_cv_dlopen_self=yes
17521    ;;
17522
17523  mingw* | pw32*)
17524    lt_cv_dlopen="LoadLibrary"
17525    lt_cv_dlopen_libs=
17526   ;;
17527
17528  cygwin*)
17529    lt_cv_dlopen="dlopen"
17530    lt_cv_dlopen_libs=
17531   ;;
17532
17533  darwin*)
17534  # if libdl is installed we need to link against it
17535    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17536echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17537if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17538  echo $ECHO_N "(cached) $ECHO_C" >&6
17539else
17540  ac_check_lib_save_LIBS=$LIBS
17541LIBS="-ldl  $LIBS"
17542cat >conftest.$ac_ext <<_ACEOF
17543/* confdefs.h.  */
17544_ACEOF
17545cat confdefs.h >>conftest.$ac_ext
17546cat >>conftest.$ac_ext <<_ACEOF
17547/* end confdefs.h.  */
17548
17549/* Override any gcc2 internal prototype to avoid an error.  */
17550#ifdef __cplusplus
17551extern "C"
17552#endif
17553/* We use char because int might match the return type of a gcc2
17554   builtin and then its argument prototype would still apply.  */
17555char dlopen ();
17556int
17557main ()
17558{
17559dlopen ();
17560  ;
17561  return 0;
17562}
17563_ACEOF
17564rm -f conftest.$ac_objext conftest$ac_exeext
17565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17566  (eval $ac_link) 2>conftest.er1
17567  ac_status=$?
17568  grep -v '^ *+' conftest.er1 >conftest.err
17569  rm -f conftest.er1
17570  cat conftest.err >&5
17571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572  (exit $ac_status); } &&
17573	 { ac_try='test -z "$ac_cxx_werror_flag"
17574			 || test ! -s conftest.err'
17575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576  (eval $ac_try) 2>&5
17577  ac_status=$?
17578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579  (exit $ac_status); }; } &&
17580	 { ac_try='test -s conftest$ac_exeext'
17581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582  (eval $ac_try) 2>&5
17583  ac_status=$?
17584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585  (exit $ac_status); }; }; then
17586  ac_cv_lib_dl_dlopen=yes
17587else
17588  echo "$as_me: failed program was:" >&5
17589sed 's/^/| /' conftest.$ac_ext >&5
17590
17591ac_cv_lib_dl_dlopen=no
17592fi
17593rm -f conftest.err conftest.$ac_objext \
17594      conftest$ac_exeext conftest.$ac_ext
17595LIBS=$ac_check_lib_save_LIBS
17596fi
17597echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17598echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17599if test $ac_cv_lib_dl_dlopen = yes; then
17600  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17601else
17602
17603    lt_cv_dlopen="dyld"
17604    lt_cv_dlopen_libs=
17605    lt_cv_dlopen_self=yes
17606
17607fi
17608
17609   ;;
17610
17611  *)
17612    echo "$as_me:$LINENO: checking for shl_load" >&5
17613echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17614if test "${ac_cv_func_shl_load+set}" = set; then
17615  echo $ECHO_N "(cached) $ECHO_C" >&6
17616else
17617  cat >conftest.$ac_ext <<_ACEOF
17618/* confdefs.h.  */
17619_ACEOF
17620cat confdefs.h >>conftest.$ac_ext
17621cat >>conftest.$ac_ext <<_ACEOF
17622/* end confdefs.h.  */
17623/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17624   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17625#define shl_load innocuous_shl_load
17626
17627/* System header to define __stub macros and hopefully few prototypes,
17628    which can conflict with char shl_load (); below.
17629    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17630    <limits.h> exists even on freestanding compilers.  */
17631
17632#ifdef __STDC__
17633# include <limits.h>
17634#else
17635# include <assert.h>
17636#endif
17637
17638#undef shl_load
17639
17640/* Override any gcc2 internal prototype to avoid an error.  */
17641#ifdef __cplusplus
17642extern "C"
17643{
17644#endif
17645/* We use char because int might match the return type of a gcc2
17646   builtin and then its argument prototype would still apply.  */
17647char shl_load ();
17648/* The GNU C library defines this for functions which it implements
17649    to always fail with ENOSYS.  Some functions are actually named
17650    something starting with __ and the normal name is an alias.  */
17651#if defined (__stub_shl_load) || defined (__stub___shl_load)
17652choke me
17653#else
17654char (*f) () = shl_load;
17655#endif
17656#ifdef __cplusplus
17657}
17658#endif
17659
17660int
17661main ()
17662{
17663return f != shl_load;
17664  ;
17665  return 0;
17666}
17667_ACEOF
17668rm -f conftest.$ac_objext conftest$ac_exeext
17669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17670  (eval $ac_link) 2>conftest.er1
17671  ac_status=$?
17672  grep -v '^ *+' conftest.er1 >conftest.err
17673  rm -f conftest.er1
17674  cat conftest.err >&5
17675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676  (exit $ac_status); } &&
17677	 { ac_try='test -z "$ac_cxx_werror_flag"
17678			 || test ! -s conftest.err'
17679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680  (eval $ac_try) 2>&5
17681  ac_status=$?
17682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683  (exit $ac_status); }; } &&
17684	 { ac_try='test -s conftest$ac_exeext'
17685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686  (eval $ac_try) 2>&5
17687  ac_status=$?
17688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689  (exit $ac_status); }; }; then
17690  ac_cv_func_shl_load=yes
17691else
17692  echo "$as_me: failed program was:" >&5
17693sed 's/^/| /' conftest.$ac_ext >&5
17694
17695ac_cv_func_shl_load=no
17696fi
17697rm -f conftest.err conftest.$ac_objext \
17698      conftest$ac_exeext conftest.$ac_ext
17699fi
17700echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17701echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17702if test $ac_cv_func_shl_load = yes; then
17703  lt_cv_dlopen="shl_load"
17704else
17705  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17706echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17707if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17708  echo $ECHO_N "(cached) $ECHO_C" >&6
17709else
17710  ac_check_lib_save_LIBS=$LIBS
17711LIBS="-ldld  $LIBS"
17712cat >conftest.$ac_ext <<_ACEOF
17713/* confdefs.h.  */
17714_ACEOF
17715cat confdefs.h >>conftest.$ac_ext
17716cat >>conftest.$ac_ext <<_ACEOF
17717/* end confdefs.h.  */
17718
17719/* Override any gcc2 internal prototype to avoid an error.  */
17720#ifdef __cplusplus
17721extern "C"
17722#endif
17723/* We use char because int might match the return type of a gcc2
17724   builtin and then its argument prototype would still apply.  */
17725char shl_load ();
17726int
17727main ()
17728{
17729shl_load ();
17730  ;
17731  return 0;
17732}
17733_ACEOF
17734rm -f conftest.$ac_objext conftest$ac_exeext
17735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17736  (eval $ac_link) 2>conftest.er1
17737  ac_status=$?
17738  grep -v '^ *+' conftest.er1 >conftest.err
17739  rm -f conftest.er1
17740  cat conftest.err >&5
17741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742  (exit $ac_status); } &&
17743	 { ac_try='test -z "$ac_cxx_werror_flag"
17744			 || test ! -s conftest.err'
17745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746  (eval $ac_try) 2>&5
17747  ac_status=$?
17748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749  (exit $ac_status); }; } &&
17750	 { ac_try='test -s conftest$ac_exeext'
17751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752  (eval $ac_try) 2>&5
17753  ac_status=$?
17754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755  (exit $ac_status); }; }; then
17756  ac_cv_lib_dld_shl_load=yes
17757else
17758  echo "$as_me: failed program was:" >&5
17759sed 's/^/| /' conftest.$ac_ext >&5
17760
17761ac_cv_lib_dld_shl_load=no
17762fi
17763rm -f conftest.err conftest.$ac_objext \
17764      conftest$ac_exeext conftest.$ac_ext
17765LIBS=$ac_check_lib_save_LIBS
17766fi
17767echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17768echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17769if test $ac_cv_lib_dld_shl_load = yes; then
17770  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17771else
17772  echo "$as_me:$LINENO: checking for dlopen" >&5
17773echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17774if test "${ac_cv_func_dlopen+set}" = set; then
17775  echo $ECHO_N "(cached) $ECHO_C" >&6
17776else
17777  cat >conftest.$ac_ext <<_ACEOF
17778/* confdefs.h.  */
17779_ACEOF
17780cat confdefs.h >>conftest.$ac_ext
17781cat >>conftest.$ac_ext <<_ACEOF
17782/* end confdefs.h.  */
17783/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17784   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17785#define dlopen innocuous_dlopen
17786
17787/* System header to define __stub macros and hopefully few prototypes,
17788    which can conflict with char dlopen (); below.
17789    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17790    <limits.h> exists even on freestanding compilers.  */
17791
17792#ifdef __STDC__
17793# include <limits.h>
17794#else
17795# include <assert.h>
17796#endif
17797
17798#undef dlopen
17799
17800/* Override any gcc2 internal prototype to avoid an error.  */
17801#ifdef __cplusplus
17802extern "C"
17803{
17804#endif
17805/* We use char because int might match the return type of a gcc2
17806   builtin and then its argument prototype would still apply.  */
17807char dlopen ();
17808/* The GNU C library defines this for functions which it implements
17809    to always fail with ENOSYS.  Some functions are actually named
17810    something starting with __ and the normal name is an alias.  */
17811#if defined (__stub_dlopen) || defined (__stub___dlopen)
17812choke me
17813#else
17814char (*f) () = dlopen;
17815#endif
17816#ifdef __cplusplus
17817}
17818#endif
17819
17820int
17821main ()
17822{
17823return f != dlopen;
17824  ;
17825  return 0;
17826}
17827_ACEOF
17828rm -f conftest.$ac_objext conftest$ac_exeext
17829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17830  (eval $ac_link) 2>conftest.er1
17831  ac_status=$?
17832  grep -v '^ *+' conftest.er1 >conftest.err
17833  rm -f conftest.er1
17834  cat conftest.err >&5
17835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836  (exit $ac_status); } &&
17837	 { ac_try='test -z "$ac_cxx_werror_flag"
17838			 || test ! -s conftest.err'
17839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840  (eval $ac_try) 2>&5
17841  ac_status=$?
17842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843  (exit $ac_status); }; } &&
17844	 { ac_try='test -s conftest$ac_exeext'
17845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846  (eval $ac_try) 2>&5
17847  ac_status=$?
17848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849  (exit $ac_status); }; }; then
17850  ac_cv_func_dlopen=yes
17851else
17852  echo "$as_me: failed program was:" >&5
17853sed 's/^/| /' conftest.$ac_ext >&5
17854
17855ac_cv_func_dlopen=no
17856fi
17857rm -f conftest.err conftest.$ac_objext \
17858      conftest$ac_exeext conftest.$ac_ext
17859fi
17860echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17861echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17862if test $ac_cv_func_dlopen = yes; then
17863  lt_cv_dlopen="dlopen"
17864else
17865  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17866echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17867if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17868  echo $ECHO_N "(cached) $ECHO_C" >&6
17869else
17870  ac_check_lib_save_LIBS=$LIBS
17871LIBS="-ldl  $LIBS"
17872cat >conftest.$ac_ext <<_ACEOF
17873/* confdefs.h.  */
17874_ACEOF
17875cat confdefs.h >>conftest.$ac_ext
17876cat >>conftest.$ac_ext <<_ACEOF
17877/* end confdefs.h.  */
17878
17879/* Override any gcc2 internal prototype to avoid an error.  */
17880#ifdef __cplusplus
17881extern "C"
17882#endif
17883/* We use char because int might match the return type of a gcc2
17884   builtin and then its argument prototype would still apply.  */
17885char dlopen ();
17886int
17887main ()
17888{
17889dlopen ();
17890  ;
17891  return 0;
17892}
17893_ACEOF
17894rm -f conftest.$ac_objext conftest$ac_exeext
17895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17896  (eval $ac_link) 2>conftest.er1
17897  ac_status=$?
17898  grep -v '^ *+' conftest.er1 >conftest.err
17899  rm -f conftest.er1
17900  cat conftest.err >&5
17901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902  (exit $ac_status); } &&
17903	 { ac_try='test -z "$ac_cxx_werror_flag"
17904			 || test ! -s conftest.err'
17905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17906  (eval $ac_try) 2>&5
17907  ac_status=$?
17908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909  (exit $ac_status); }; } &&
17910	 { ac_try='test -s conftest$ac_exeext'
17911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17912  (eval $ac_try) 2>&5
17913  ac_status=$?
17914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915  (exit $ac_status); }; }; then
17916  ac_cv_lib_dl_dlopen=yes
17917else
17918  echo "$as_me: failed program was:" >&5
17919sed 's/^/| /' conftest.$ac_ext >&5
17920
17921ac_cv_lib_dl_dlopen=no
17922fi
17923rm -f conftest.err conftest.$ac_objext \
17924      conftest$ac_exeext conftest.$ac_ext
17925LIBS=$ac_check_lib_save_LIBS
17926fi
17927echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17928echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17929if test $ac_cv_lib_dl_dlopen = yes; then
17930  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17931else
17932  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17933echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17934if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17935  echo $ECHO_N "(cached) $ECHO_C" >&6
17936else
17937  ac_check_lib_save_LIBS=$LIBS
17938LIBS="-lsvld  $LIBS"
17939cat >conftest.$ac_ext <<_ACEOF
17940/* confdefs.h.  */
17941_ACEOF
17942cat confdefs.h >>conftest.$ac_ext
17943cat >>conftest.$ac_ext <<_ACEOF
17944/* end confdefs.h.  */
17945
17946/* Override any gcc2 internal prototype to avoid an error.  */
17947#ifdef __cplusplus
17948extern "C"
17949#endif
17950/* We use char because int might match the return type of a gcc2
17951   builtin and then its argument prototype would still apply.  */
17952char dlopen ();
17953int
17954main ()
17955{
17956dlopen ();
17957  ;
17958  return 0;
17959}
17960_ACEOF
17961rm -f conftest.$ac_objext conftest$ac_exeext
17962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17963  (eval $ac_link) 2>conftest.er1
17964  ac_status=$?
17965  grep -v '^ *+' conftest.er1 >conftest.err
17966  rm -f conftest.er1
17967  cat conftest.err >&5
17968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969  (exit $ac_status); } &&
17970	 { ac_try='test -z "$ac_cxx_werror_flag"
17971			 || test ! -s conftest.err'
17972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973  (eval $ac_try) 2>&5
17974  ac_status=$?
17975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976  (exit $ac_status); }; } &&
17977	 { ac_try='test -s conftest$ac_exeext'
17978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17979  (eval $ac_try) 2>&5
17980  ac_status=$?
17981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982  (exit $ac_status); }; }; then
17983  ac_cv_lib_svld_dlopen=yes
17984else
17985  echo "$as_me: failed program was:" >&5
17986sed 's/^/| /' conftest.$ac_ext >&5
17987
17988ac_cv_lib_svld_dlopen=no
17989fi
17990rm -f conftest.err conftest.$ac_objext \
17991      conftest$ac_exeext conftest.$ac_ext
17992LIBS=$ac_check_lib_save_LIBS
17993fi
17994echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17995echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17996if test $ac_cv_lib_svld_dlopen = yes; then
17997  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17998else
17999  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18000echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18001if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18002  echo $ECHO_N "(cached) $ECHO_C" >&6
18003else
18004  ac_check_lib_save_LIBS=$LIBS
18005LIBS="-ldld  $LIBS"
18006cat >conftest.$ac_ext <<_ACEOF
18007/* confdefs.h.  */
18008_ACEOF
18009cat confdefs.h >>conftest.$ac_ext
18010cat >>conftest.$ac_ext <<_ACEOF
18011/* end confdefs.h.  */
18012
18013/* Override any gcc2 internal prototype to avoid an error.  */
18014#ifdef __cplusplus
18015extern "C"
18016#endif
18017/* We use char because int might match the return type of a gcc2
18018   builtin and then its argument prototype would still apply.  */
18019char dld_link ();
18020int
18021main ()
18022{
18023dld_link ();
18024  ;
18025  return 0;
18026}
18027_ACEOF
18028rm -f conftest.$ac_objext conftest$ac_exeext
18029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18030  (eval $ac_link) 2>conftest.er1
18031  ac_status=$?
18032  grep -v '^ *+' conftest.er1 >conftest.err
18033  rm -f conftest.er1
18034  cat conftest.err >&5
18035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036  (exit $ac_status); } &&
18037	 { ac_try='test -z "$ac_cxx_werror_flag"
18038			 || test ! -s conftest.err'
18039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18040  (eval $ac_try) 2>&5
18041  ac_status=$?
18042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043  (exit $ac_status); }; } &&
18044	 { ac_try='test -s conftest$ac_exeext'
18045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18046  (eval $ac_try) 2>&5
18047  ac_status=$?
18048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049  (exit $ac_status); }; }; then
18050  ac_cv_lib_dld_dld_link=yes
18051else
18052  echo "$as_me: failed program was:" >&5
18053sed 's/^/| /' conftest.$ac_ext >&5
18054
18055ac_cv_lib_dld_dld_link=no
18056fi
18057rm -f conftest.err conftest.$ac_objext \
18058      conftest$ac_exeext conftest.$ac_ext
18059LIBS=$ac_check_lib_save_LIBS
18060fi
18061echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18062echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18063if test $ac_cv_lib_dld_dld_link = yes; then
18064  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18065fi
18066
18067
18068fi
18069
18070
18071fi
18072
18073
18074fi
18075
18076
18077fi
18078
18079
18080fi
18081
18082    ;;
18083  esac
18084
18085  if test "x$lt_cv_dlopen" != xno; then
18086    enable_dlopen=yes
18087  else
18088    enable_dlopen=no
18089  fi
18090
18091  case $lt_cv_dlopen in
18092  dlopen)
18093    save_CPPFLAGS="$CPPFLAGS"
18094    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18095
18096    save_LDFLAGS="$LDFLAGS"
18097    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18098
18099    save_LIBS="$LIBS"
18100    LIBS="$lt_cv_dlopen_libs $LIBS"
18101
18102    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18103echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18104if test "${lt_cv_dlopen_self+set}" = set; then
18105  echo $ECHO_N "(cached) $ECHO_C" >&6
18106else
18107  	  if test "$cross_compiling" = yes; then :
18108  lt_cv_dlopen_self=cross
18109else
18110  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18111  lt_status=$lt_dlunknown
18112  cat > conftest.$ac_ext <<EOF
18113#line 18113 "configure"
18114#include "confdefs.h"
18115
18116#if HAVE_DLFCN_H
18117#include <dlfcn.h>
18118#endif
18119
18120#include <stdio.h>
18121
18122#ifdef RTLD_GLOBAL
18123#  define LT_DLGLOBAL		RTLD_GLOBAL
18124#else
18125#  ifdef DL_GLOBAL
18126#    define LT_DLGLOBAL		DL_GLOBAL
18127#  else
18128#    define LT_DLGLOBAL		0
18129#  endif
18130#endif
18131
18132/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18133   find out it does not work in some platform. */
18134#ifndef LT_DLLAZY_OR_NOW
18135#  ifdef RTLD_LAZY
18136#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18137#  else
18138#    ifdef DL_LAZY
18139#      define LT_DLLAZY_OR_NOW		DL_LAZY
18140#    else
18141#      ifdef RTLD_NOW
18142#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18143#      else
18144#        ifdef DL_NOW
18145#          define LT_DLLAZY_OR_NOW	DL_NOW
18146#        else
18147#          define LT_DLLAZY_OR_NOW	0
18148#        endif
18149#      endif
18150#    endif
18151#  endif
18152#endif
18153
18154#ifdef __cplusplus
18155extern "C" void exit (int);
18156#endif
18157
18158void fnord() { int i=42;}
18159int main ()
18160{
18161  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18162  int status = $lt_dlunknown;
18163
18164  if (self)
18165    {
18166      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18167      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18168      /* dlclose (self); */
18169    }
18170
18171    exit (status);
18172}
18173EOF
18174  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18175  (eval $ac_link) 2>&5
18176  ac_status=$?
18177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18179    (./conftest; exit; ) 2>/dev/null
18180    lt_status=$?
18181    case x$lt_status in
18182      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18183      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18184      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18185    esac
18186  else :
18187    # compilation failed
18188    lt_cv_dlopen_self=no
18189  fi
18190fi
18191rm -fr conftest*
18192
18193
18194fi
18195echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18196echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18197
18198    if test "x$lt_cv_dlopen_self" = xyes; then
18199      LDFLAGS="$LDFLAGS $link_static_flag"
18200      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18201echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18202if test "${lt_cv_dlopen_self_static+set}" = set; then
18203  echo $ECHO_N "(cached) $ECHO_C" >&6
18204else
18205  	  if test "$cross_compiling" = yes; then :
18206  lt_cv_dlopen_self_static=cross
18207else
18208  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18209  lt_status=$lt_dlunknown
18210  cat > conftest.$ac_ext <<EOF
18211#line 18211 "configure"
18212#include "confdefs.h"
18213
18214#if HAVE_DLFCN_H
18215#include <dlfcn.h>
18216#endif
18217
18218#include <stdio.h>
18219
18220#ifdef RTLD_GLOBAL
18221#  define LT_DLGLOBAL		RTLD_GLOBAL
18222#else
18223#  ifdef DL_GLOBAL
18224#    define LT_DLGLOBAL		DL_GLOBAL
18225#  else
18226#    define LT_DLGLOBAL		0
18227#  endif
18228#endif
18229
18230/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18231   find out it does not work in some platform. */
18232#ifndef LT_DLLAZY_OR_NOW
18233#  ifdef RTLD_LAZY
18234#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18235#  else
18236#    ifdef DL_LAZY
18237#      define LT_DLLAZY_OR_NOW		DL_LAZY
18238#    else
18239#      ifdef RTLD_NOW
18240#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18241#      else
18242#        ifdef DL_NOW
18243#          define LT_DLLAZY_OR_NOW	DL_NOW
18244#        else
18245#          define LT_DLLAZY_OR_NOW	0
18246#        endif
18247#      endif
18248#    endif
18249#  endif
18250#endif
18251
18252#ifdef __cplusplus
18253extern "C" void exit (int);
18254#endif
18255
18256void fnord() { int i=42;}
18257int main ()
18258{
18259  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18260  int status = $lt_dlunknown;
18261
18262  if (self)
18263    {
18264      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18265      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18266      /* dlclose (self); */
18267    }
18268
18269    exit (status);
18270}
18271EOF
18272  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18273  (eval $ac_link) 2>&5
18274  ac_status=$?
18275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18277    (./conftest; exit; ) 2>/dev/null
18278    lt_status=$?
18279    case x$lt_status in
18280      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18281      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18282      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18283    esac
18284  else :
18285    # compilation failed
18286    lt_cv_dlopen_self_static=no
18287  fi
18288fi
18289rm -fr conftest*
18290
18291
18292fi
18293echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18294echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18295    fi
18296
18297    CPPFLAGS="$save_CPPFLAGS"
18298    LDFLAGS="$save_LDFLAGS"
18299    LIBS="$save_LIBS"
18300    ;;
18301  esac
18302
18303  case $lt_cv_dlopen_self in
18304  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18305  *) enable_dlopen_self=unknown ;;
18306  esac
18307
18308  case $lt_cv_dlopen_self_static in
18309  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18310  *) enable_dlopen_self_static=unknown ;;
18311  esac
18312fi
18313
18314
18315# The else clause should only fire when bootstrapping the
18316# libtool distribution, otherwise you forgot to ship ltmain.sh
18317# with your package, and you will get complaints that there are
18318# no rules to generate ltmain.sh.
18319if test -f "$ltmain"; then
18320  # See if we are running on zsh, and set the options which allow our commands through
18321  # without removal of \ escapes.
18322  if test -n "${ZSH_VERSION+set}" ; then
18323    setopt NO_GLOB_SUBST
18324  fi
18325  # Now quote all the things that may contain metacharacters while being
18326  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18327  # variables and quote the copies for generation of the libtool script.
18328  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18329    SED SHELL STRIP \
18330    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18331    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18332    deplibs_check_method reload_flag reload_cmds need_locks \
18333    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18334    lt_cv_sys_global_symbol_to_c_name_address \
18335    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18336    old_postinstall_cmds old_postuninstall_cmds \
18337    compiler_CXX \
18338    CC_CXX \
18339    LD_CXX \
18340    lt_prog_compiler_wl_CXX \
18341    lt_prog_compiler_pic_CXX \
18342    lt_prog_compiler_static_CXX \
18343    lt_prog_compiler_no_builtin_flag_CXX \
18344    export_dynamic_flag_spec_CXX \
18345    thread_safe_flag_spec_CXX \
18346    whole_archive_flag_spec_CXX \
18347    enable_shared_with_static_runtimes_CXX \
18348    old_archive_cmds_CXX \
18349    old_archive_from_new_cmds_CXX \
18350    predep_objects_CXX \
18351    postdep_objects_CXX \
18352    predeps_CXX \
18353    postdeps_CXX \
18354    compiler_lib_search_path_CXX \
18355    archive_cmds_CXX \
18356    archive_expsym_cmds_CXX \
18357    postinstall_cmds_CXX \
18358    postuninstall_cmds_CXX \
18359    old_archive_from_expsyms_cmds_CXX \
18360    allow_undefined_flag_CXX \
18361    no_undefined_flag_CXX \
18362    export_symbols_cmds_CXX \
18363    hardcode_libdir_flag_spec_CXX \
18364    hardcode_libdir_flag_spec_ld_CXX \
18365    hardcode_libdir_separator_CXX \
18366    hardcode_automatic_CXX \
18367    module_cmds_CXX \
18368    module_expsym_cmds_CXX \
18369    lt_cv_prog_compiler_c_o_CXX \
18370    exclude_expsyms_CXX \
18371    include_expsyms_CXX; do
18372
18373    case $var in
18374    old_archive_cmds_CXX | \
18375    old_archive_from_new_cmds_CXX | \
18376    archive_cmds_CXX | \
18377    archive_expsym_cmds_CXX | \
18378    module_cmds_CXX | \
18379    module_expsym_cmds_CXX | \
18380    old_archive_from_expsyms_cmds_CXX | \
18381    export_symbols_cmds_CXX | \
18382    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18383    postinstall_cmds | postuninstall_cmds | \
18384    old_postinstall_cmds | old_postuninstall_cmds | \
18385    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18386      # Double-quote double-evaled strings.
18387      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18388      ;;
18389    *)
18390      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18391      ;;
18392    esac
18393  done
18394
18395  case $lt_echo in
18396  *'\$0 --fallback-echo"')
18397    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18398    ;;
18399  esac
18400
18401cfgfile="$ofile"
18402
18403  cat <<__EOF__ >> "$cfgfile"
18404# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18405
18406# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18407
18408# Shell to use when invoking shell scripts.
18409SHELL=$lt_SHELL
18410
18411# Whether or not to build shared libraries.
18412build_libtool_libs=$enable_shared
18413
18414# Whether or not to build static libraries.
18415build_old_libs=$enable_static
18416
18417# Whether or not to add -lc for building shared libraries.
18418build_libtool_need_lc=$archive_cmds_need_lc_CXX
18419
18420# Whether or not to disallow shared libs when runtime libs are static
18421allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18422
18423# Whether or not to optimize for fast installation.
18424fast_install=$enable_fast_install
18425
18426# The host system.
18427host_alias=$host_alias
18428host=$host
18429
18430# An echo program that does not interpret backslashes.
18431echo=$lt_echo
18432
18433# The archiver.
18434AR=$lt_AR
18435AR_FLAGS=$lt_AR_FLAGS
18436
18437# A C compiler.
18438LTCC=$lt_LTCC
18439
18440# A language-specific compiler.
18441CC=$lt_compiler_CXX
18442
18443# Is the compiler the GNU C compiler?
18444with_gcc=$GCC_CXX
18445
18446# An ERE matcher.
18447EGREP=$lt_EGREP
18448
18449# The linker used to build libraries.
18450LD=$lt_LD_CXX
18451
18452# Whether we need hard or soft links.
18453LN_S=$lt_LN_S
18454
18455# A BSD-compatible nm program.
18456NM=$lt_NM
18457
18458# A symbol stripping program
18459STRIP=$lt_STRIP
18460
18461# Used to examine libraries when file_magic_cmd begins "file"
18462MAGIC_CMD=$MAGIC_CMD
18463
18464# Used on cygwin: DLL creation program.
18465DLLTOOL="$DLLTOOL"
18466
18467# Used on cygwin: object dumper.
18468OBJDUMP="$OBJDUMP"
18469
18470# Used on cygwin: assembler.
18471AS="$AS"
18472
18473# The name of the directory that contains temporary libtool files.
18474objdir=$objdir
18475
18476# How to create reloadable object files.
18477reload_flag=$lt_reload_flag
18478reload_cmds=$lt_reload_cmds
18479
18480# How to pass a linker flag through the compiler.
18481wl=$lt_lt_prog_compiler_wl_CXX
18482
18483# Object file suffix (normally "o").
18484objext="$ac_objext"
18485
18486# Old archive suffix (normally "a").
18487libext="$libext"
18488
18489# Shared library suffix (normally ".so").
18490shrext_cmds='$shrext_cmds'
18491
18492# Executable file suffix (normally "").
18493exeext="$exeext"
18494
18495# Additional compiler flags for building library objects.
18496pic_flag=$lt_lt_prog_compiler_pic_CXX
18497pic_mode=$pic_mode
18498
18499# What is the maximum length of a command?
18500max_cmd_len=$lt_cv_sys_max_cmd_len
18501
18502# Does compiler simultaneously support -c and -o options?
18503compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18504
18505# Must we lock files when doing compilation ?
18506need_locks=$lt_need_locks
18507
18508# Do we need the lib prefix for modules?
18509need_lib_prefix=$need_lib_prefix
18510
18511# Do we need a version for libraries?
18512need_version=$need_version
18513
18514# Whether dlopen is supported.
18515dlopen_support=$enable_dlopen
18516
18517# Whether dlopen of programs is supported.
18518dlopen_self=$enable_dlopen_self
18519
18520# Whether dlopen of statically linked programs is supported.
18521dlopen_self_static=$enable_dlopen_self_static
18522
18523# Compiler flag to prevent dynamic linking.
18524link_static_flag=$lt_lt_prog_compiler_static_CXX
18525
18526# Compiler flag to turn off builtin functions.
18527no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18528
18529# Compiler flag to allow reflexive dlopens.
18530export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18531
18532# Compiler flag to generate shared objects directly from archives.
18533whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18534
18535# Compiler flag to generate thread-safe objects.
18536thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18537
18538# Library versioning type.
18539version_type=$version_type
18540
18541# Format of library name prefix.
18542libname_spec=$lt_libname_spec
18543
18544# List of archive names.  First name is the real one, the rest are links.
18545# The last name is the one that the linker finds with -lNAME.
18546library_names_spec=$lt_library_names_spec
18547
18548# The coded name of the library, if different from the real name.
18549soname_spec=$lt_soname_spec
18550
18551# Commands used to build and install an old-style archive.
18552RANLIB=$lt_RANLIB
18553old_archive_cmds=$lt_old_archive_cmds_CXX
18554old_postinstall_cmds=$lt_old_postinstall_cmds
18555old_postuninstall_cmds=$lt_old_postuninstall_cmds
18556
18557# Create an old-style archive from a shared archive.
18558old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18559
18560# Create a temporary old-style archive to link instead of a shared archive.
18561old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18562
18563# Commands used to build and install a shared archive.
18564archive_cmds=$lt_archive_cmds_CXX
18565archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18566postinstall_cmds=$lt_postinstall_cmds
18567postuninstall_cmds=$lt_postuninstall_cmds
18568
18569# Commands used to build a loadable module (assumed same as above if empty)
18570module_cmds=$lt_module_cmds_CXX
18571module_expsym_cmds=$lt_module_expsym_cmds_CXX
18572
18573# Commands to strip libraries.
18574old_striplib=$lt_old_striplib
18575striplib=$lt_striplib
18576
18577# Dependencies to place before the objects being linked to create a
18578# shared library.
18579predep_objects=$lt_predep_objects_CXX
18580
18581# Dependencies to place after the objects being linked to create a
18582# shared library.
18583postdep_objects=$lt_postdep_objects_CXX
18584
18585# Dependencies to place before the objects being linked to create a
18586# shared library.
18587predeps=$lt_predeps_CXX
18588
18589# Dependencies to place after the objects being linked to create a
18590# shared library.
18591postdeps=$lt_postdeps_CXX
18592
18593# The library search path used internally by the compiler when linking
18594# a shared library.
18595compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18596
18597# Method to check whether dependent libraries are shared objects.
18598deplibs_check_method=$lt_deplibs_check_method
18599
18600# Command to use when deplibs_check_method == file_magic.
18601file_magic_cmd=$lt_file_magic_cmd
18602
18603# Flag that allows shared libraries with undefined symbols to be built.
18604allow_undefined_flag=$lt_allow_undefined_flag_CXX
18605
18606# Flag that forces no undefined symbols.
18607no_undefined_flag=$lt_no_undefined_flag_CXX
18608
18609# Commands used to finish a libtool library installation in a directory.
18610finish_cmds=$lt_finish_cmds
18611
18612# Same as above, but a single script fragment to be evaled but not shown.
18613finish_eval=$lt_finish_eval
18614
18615# Take the output of nm and produce a listing of raw symbols and C names.
18616global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18617
18618# Transform the output of nm in a proper C declaration
18619global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18620
18621# Transform the output of nm in a C name address pair
18622global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18623
18624# This is the shared library runtime path variable.
18625runpath_var=$runpath_var
18626
18627# This is the shared library path variable.
18628shlibpath_var=$shlibpath_var
18629
18630# Is shlibpath searched before the hard-coded library search path?
18631shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18632
18633# How to hardcode a shared library path into an executable.
18634hardcode_action=$hardcode_action_CXX
18635
18636# Whether we should hardcode library paths into libraries.
18637hardcode_into_libs=$hardcode_into_libs
18638
18639# Flag to hardcode \$libdir into a binary during linking.
18640# This must work even if \$libdir does not exist.
18641hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18642
18643# If ld is used when linking, flag to hardcode \$libdir into
18644# a binary during linking. This must work even if \$libdir does
18645# not exist.
18646hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18647
18648# Whether we need a single -rpath flag with a separated argument.
18649hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18650
18651# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18652# resulting binary.
18653hardcode_direct=$hardcode_direct_CXX
18654
18655# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18656# resulting binary.
18657hardcode_minus_L=$hardcode_minus_L_CXX
18658
18659# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18660# the resulting binary.
18661hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18662
18663# Set to yes if building a shared library automatically hardcodes DIR into the library
18664# and all subsequent libraries and executables linked against it.
18665hardcode_automatic=$hardcode_automatic_CXX
18666
18667# Variables whose values should be saved in libtool wrapper scripts and
18668# restored at relink time.
18669variables_saved_for_relink="$variables_saved_for_relink"
18670
18671# Whether libtool must link a program against all its dependency libraries.
18672link_all_deplibs=$link_all_deplibs_CXX
18673
18674# Compile-time system search path for libraries
18675sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18676
18677# Run-time system search path for libraries
18678sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18679
18680# Fix the shell variable \$srcfile for the compiler.
18681fix_srcfile_path="$fix_srcfile_path_CXX"
18682
18683# Set to yes if exported symbols are required.
18684always_export_symbols=$always_export_symbols_CXX
18685
18686# The commands to list exported symbols.
18687export_symbols_cmds=$lt_export_symbols_cmds_CXX
18688
18689# The commands to extract the exported symbol list from a shared archive.
18690extract_expsyms_cmds=$lt_extract_expsyms_cmds
18691
18692# Symbols that should not be listed in the preloaded symbols.
18693exclude_expsyms=$lt_exclude_expsyms_CXX
18694
18695# Symbols that must always be exported.
18696include_expsyms=$lt_include_expsyms_CXX
18697
18698# ### END LIBTOOL TAG CONFIG: $tagname
18699
18700__EOF__
18701
18702
18703else
18704  # If there is no Makefile yet, we rely on a make rule to execute
18705  # `config.status --recheck' to rerun these tests and create the
18706  # libtool script then.
18707  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18708  if test -f "$ltmain_in"; then
18709    test -f Makefile && make "$ltmain"
18710  fi
18711fi
18712
18713
18714ac_ext=c
18715ac_cpp='$CPP $CPPFLAGS'
18716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18718ac_compiler_gnu=$ac_cv_c_compiler_gnu
18719
18720CC=$lt_save_CC
18721LDCXX=$LD
18722LD=$lt_save_LD
18723GCC=$lt_save_GCC
18724with_gnu_ldcxx=$with_gnu_ld
18725with_gnu_ld=$lt_save_with_gnu_ld
18726lt_cv_path_LDCXX=$lt_cv_path_LD
18727lt_cv_path_LD=$lt_save_path_LD
18728lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18729lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18730
18731	else
18732	  tagname=""
18733	fi
18734	;;
18735
18736      F77)
18737	if test -n "$F77" && test "X$F77" != "Xno"; then
18738
18739ac_ext=f
18740ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18741ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18742ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18743
18744
18745archive_cmds_need_lc_F77=no
18746allow_undefined_flag_F77=
18747always_export_symbols_F77=no
18748archive_expsym_cmds_F77=
18749export_dynamic_flag_spec_F77=
18750hardcode_direct_F77=no
18751hardcode_libdir_flag_spec_F77=
18752hardcode_libdir_flag_spec_ld_F77=
18753hardcode_libdir_separator_F77=
18754hardcode_minus_L_F77=no
18755hardcode_automatic_F77=no
18756module_cmds_F77=
18757module_expsym_cmds_F77=
18758link_all_deplibs_F77=unknown
18759old_archive_cmds_F77=$old_archive_cmds
18760no_undefined_flag_F77=
18761whole_archive_flag_spec_F77=
18762enable_shared_with_static_runtimes_F77=no
18763
18764# Source file extension for f77 test sources.
18765ac_ext=f
18766
18767# Object file extension for compiled f77 test sources.
18768objext=o
18769objext_F77=$objext
18770
18771# Code to be used in simple compile tests
18772lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18773
18774# Code to be used in simple link tests
18775lt_simple_link_test_code="      program t\n      end\n"
18776
18777# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18778
18779# If no C compiler was specified, use CC.
18780LTCC=${LTCC-"$CC"}
18781
18782# Allow CC to be a program name with arguments.
18783compiler=$CC
18784
18785
18786# Allow CC to be a program name with arguments.
18787lt_save_CC="$CC"
18788CC=${F77-"f77"}
18789compiler=$CC
18790compiler_F77=$CC
18791cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18792
18793echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18794echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18795echo "$as_me:$LINENO: result: $can_build_shared" >&5
18796echo "${ECHO_T}$can_build_shared" >&6
18797
18798echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18799echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18800test "$can_build_shared" = "no" && enable_shared=no
18801
18802# On AIX, shared libraries and static libraries use the same namespace, and
18803# are all built from PIC.
18804case "$host_os" in
18805aix3*)
18806  test "$enable_shared" = yes && enable_static=no
18807  if test -n "$RANLIB"; then
18808    archive_cmds="$archive_cmds~\$RANLIB \$lib"
18809    postinstall_cmds='$RANLIB $lib'
18810  fi
18811  ;;
18812aix4* | aix5*)
18813  test "$enable_shared" = yes && enable_static=no
18814  ;;
18815esac
18816echo "$as_me:$LINENO: result: $enable_shared" >&5
18817echo "${ECHO_T}$enable_shared" >&6
18818
18819echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18820echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18821# Make sure either enable_shared or enable_static is yes.
18822test "$enable_shared" = yes || enable_static=yes
18823echo "$as_me:$LINENO: result: $enable_static" >&5
18824echo "${ECHO_T}$enable_static" >&6
18825
18826test "$ld_shlibs_F77" = no && can_build_shared=no
18827
18828GCC_F77="$G77"
18829LD_F77="$LD"
18830
18831lt_prog_compiler_wl_F77=
18832lt_prog_compiler_pic_F77=
18833lt_prog_compiler_static_F77=
18834
18835echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18836echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18837
18838  if test "$GCC" = yes; then
18839    lt_prog_compiler_wl_F77='-Wl,'
18840    lt_prog_compiler_static_F77='-static'
18841
18842    case $host_os in
18843      aix*)
18844      # All AIX code is PIC.
18845      if test "$host_cpu" = ia64; then
18846	# AIX 5 now supports IA64 processor
18847	lt_prog_compiler_static_F77='-Bstatic'
18848      fi
18849      ;;
18850
18851    amigaos*)
18852      # FIXME: we need at least 68020 code to build shared libraries, but
18853      # adding the `-m68020' flag to GCC prevents building anything better,
18854      # like `-m68040'.
18855      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18856      ;;
18857
18858    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18859      # PIC is the default for these OSes.
18860      ;;
18861
18862    mingw* | pw32* | os2*)
18863      # This hack is so that the source file can tell whether it is being
18864      # built for inclusion in a dll (and should export symbols for example).
18865      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18866      ;;
18867
18868    darwin* | rhapsody*)
18869      # PIC is the default on this platform
18870      # Common symbols not allowed in MH_DYLIB files
18871      lt_prog_compiler_pic_F77='-fno-common'
18872      ;;
18873
18874    msdosdjgpp*)
18875      # Just because we use GCC doesn't mean we suddenly get shared libraries
18876      # on systems that don't support them.
18877      lt_prog_compiler_can_build_shared_F77=no
18878      enable_shared=no
18879      ;;
18880
18881    sysv4*MP*)
18882      if test -d /usr/nec; then
18883	lt_prog_compiler_pic_F77=-Kconform_pic
18884      fi
18885      ;;
18886
18887    hpux*)
18888      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18889      # not for PA HP-UX.
18890      case "$host_cpu" in
18891      hppa*64*|ia64*)
18892	# +Z the default
18893	;;
18894      *)
18895	lt_prog_compiler_pic_F77='-fPIC'
18896	;;
18897      esac
18898      ;;
18899
18900    *)
18901      lt_prog_compiler_pic_F77='-fPIC'
18902      ;;
18903    esac
18904  else
18905    # PORTME Check for flag to pass linker flags through the system compiler.
18906    case $host_os in
18907    aix*)
18908      lt_prog_compiler_wl_F77='-Wl,'
18909      if test "$host_cpu" = ia64; then
18910	# AIX 5 now supports IA64 processor
18911	lt_prog_compiler_static_F77='-Bstatic'
18912      else
18913	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18914      fi
18915      ;;
18916      darwin*)
18917        # PIC is the default on this platform
18918        # Common symbols not allowed in MH_DYLIB files
18919       case "$cc_basename" in
18920         xlc*)
18921         lt_prog_compiler_pic_F77='-qnocommon'
18922         lt_prog_compiler_wl_F77='-Wl,'
18923         ;;
18924       esac
18925       ;;
18926
18927    mingw* | pw32* | os2*)
18928      # This hack is so that the source file can tell whether it is being
18929      # built for inclusion in a dll (and should export symbols for example).
18930      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18931      ;;
18932
18933    hpux9* | hpux10* | hpux11*)
18934      lt_prog_compiler_wl_F77='-Wl,'
18935      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18936      # not for PA HP-UX.
18937      case "$host_cpu" in
18938      hppa*64*|ia64*)
18939	# +Z the default
18940	;;
18941      *)
18942	lt_prog_compiler_pic_F77='+Z'
18943	;;
18944      esac
18945      # Is there a better lt_prog_compiler_static that works with the bundled CC?
18946      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18947      ;;
18948
18949    irix5* | irix6* | nonstopux*)
18950      lt_prog_compiler_wl_F77='-Wl,'
18951      # PIC (with -KPIC) is the default.
18952      lt_prog_compiler_static_F77='-non_shared'
18953      ;;
18954
18955    newsos6)
18956      lt_prog_compiler_pic_F77='-KPIC'
18957      lt_prog_compiler_static_F77='-Bstatic'
18958      ;;
18959
18960    linux*)
18961      case $CC in
18962      icc* | ecc*)
18963	lt_prog_compiler_wl_F77='-Wl,'
18964	lt_prog_compiler_pic_F77='-KPIC'
18965	lt_prog_compiler_static_F77='-static'
18966        ;;
18967      ccc*)
18968        lt_prog_compiler_wl_F77='-Wl,'
18969        # All Alpha code is PIC.
18970        lt_prog_compiler_static_F77='-non_shared'
18971        ;;
18972      esac
18973      ;;
18974
18975    osf3* | osf4* | osf5*)
18976      lt_prog_compiler_wl_F77='-Wl,'
18977      # All OSF/1 code is PIC.
18978      lt_prog_compiler_static_F77='-non_shared'
18979      ;;
18980
18981    sco3.2v5*)
18982      lt_prog_compiler_pic_F77='-Kpic'
18983      lt_prog_compiler_static_F77='-dn'
18984      ;;
18985
18986    solaris*)
18987      lt_prog_compiler_wl_F77='-Wl,'
18988      lt_prog_compiler_pic_F77='-KPIC'
18989      lt_prog_compiler_static_F77='-Bstatic'
18990      ;;
18991
18992    sunos4*)
18993      lt_prog_compiler_wl_F77='-Qoption ld '
18994      lt_prog_compiler_pic_F77='-PIC'
18995      lt_prog_compiler_static_F77='-Bstatic'
18996      ;;
18997
18998    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18999      lt_prog_compiler_wl_F77='-Wl,'
19000      lt_prog_compiler_pic_F77='-KPIC'
19001      lt_prog_compiler_static_F77='-Bstatic'
19002      ;;
19003
19004    sysv4*MP*)
19005      if test -d /usr/nec ;then
19006	lt_prog_compiler_pic_F77='-Kconform_pic'
19007	lt_prog_compiler_static_F77='-Bstatic'
19008      fi
19009      ;;
19010
19011    uts4*)
19012      lt_prog_compiler_pic_F77='-pic'
19013      lt_prog_compiler_static_F77='-Bstatic'
19014      ;;
19015
19016    *)
19017      lt_prog_compiler_can_build_shared_F77=no
19018      ;;
19019    esac
19020  fi
19021
19022echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19023echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19024
19025#
19026# Check to make sure the PIC flag actually works.
19027#
19028if test -n "$lt_prog_compiler_pic_F77"; then
19029
19030echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19031echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19032if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19033  echo $ECHO_N "(cached) $ECHO_C" >&6
19034else
19035  lt_prog_compiler_pic_works_F77=no
19036  ac_outfile=conftest.$ac_objext
19037   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19038   lt_compiler_flag="$lt_prog_compiler_pic_F77"
19039   # Insert the option either (1) after the last *FLAGS variable, or
19040   # (2) before a word containing "conftest.", or (3) at the end.
19041   # Note that $ac_compile itself does not contain backslashes and begins
19042   # with a dollar sign (not a hyphen), so the echo should work correctly.
19043   # The option is referenced via a variable to avoid confusing sed.
19044   lt_compile=`echo "$ac_compile" | $SED \
19045   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19046   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19047   -e 's:$: $lt_compiler_flag:'`
19048   (eval echo "\"\$as_me:19048: $lt_compile\"" >&5)
19049   (eval "$lt_compile" 2>conftest.err)
19050   ac_status=$?
19051   cat conftest.err >&5
19052   echo "$as_me:19052: \$? = $ac_status" >&5
19053   if (exit $ac_status) && test -s "$ac_outfile"; then
19054     # The compiler can only warn and ignore the option if not recognized
19055     # So say no if there are warnings
19056     if test ! -s conftest.err; then
19057       lt_prog_compiler_pic_works_F77=yes
19058     fi
19059   fi
19060   $rm conftest*
19061
19062fi
19063echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19064echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19065
19066if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19067    case $lt_prog_compiler_pic_F77 in
19068     "" | " "*) ;;
19069     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19070     esac
19071else
19072    lt_prog_compiler_pic_F77=
19073     lt_prog_compiler_can_build_shared_F77=no
19074fi
19075
19076fi
19077case "$host_os" in
19078  # For platforms which do not support PIC, -DPIC is meaningless:
19079  *djgpp*)
19080    lt_prog_compiler_pic_F77=
19081    ;;
19082  *)
19083    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19084    ;;
19085esac
19086
19087echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19088echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19089if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19090  echo $ECHO_N "(cached) $ECHO_C" >&6
19091else
19092  lt_cv_prog_compiler_c_o_F77=no
19093   $rm -r conftest 2>/dev/null
19094   mkdir conftest
19095   cd conftest
19096   mkdir out
19097   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19098
19099   lt_compiler_flag="-o out/conftest2.$ac_objext"
19100   # Insert the option either (1) after the last *FLAGS variable, or
19101   # (2) before a word containing "conftest.", or (3) at the end.
19102   # Note that $ac_compile itself does not contain backslashes and begins
19103   # with a dollar sign (not a hyphen), so the echo should work correctly.
19104   lt_compile=`echo "$ac_compile" | $SED \
19105   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19106   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19107   -e 's:$: $lt_compiler_flag:'`
19108   (eval echo "\"\$as_me:19108: $lt_compile\"" >&5)
19109   (eval "$lt_compile" 2>out/conftest.err)
19110   ac_status=$?
19111   cat out/conftest.err >&5
19112   echo "$as_me:19112: \$? = $ac_status" >&5
19113   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19114   then
19115     # The compiler can only warn and ignore the option if not recognized
19116     # So say no if there are warnings
19117     if test ! -s out/conftest.err; then
19118       lt_cv_prog_compiler_c_o_F77=yes
19119     fi
19120   fi
19121   chmod u+w .
19122   $rm conftest*
19123   # SGI C++ compiler will create directory out/ii_files/ for
19124   # template instantiation
19125   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19126   $rm out/* && rmdir out
19127   cd ..
19128   rmdir conftest
19129   $rm conftest*
19130
19131fi
19132echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19133echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19134
19135
19136hard_links="nottested"
19137if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19138  # do not overwrite the value of need_locks provided by the user
19139  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19140echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19141  hard_links=yes
19142  $rm conftest*
19143  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19144  touch conftest.a
19145  ln conftest.a conftest.b 2>&5 || hard_links=no
19146  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19147  echo "$as_me:$LINENO: result: $hard_links" >&5
19148echo "${ECHO_T}$hard_links" >&6
19149  if test "$hard_links" = no; then
19150    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19151echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19152    need_locks=warn
19153  fi
19154else
19155  need_locks=no
19156fi
19157
19158echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19159echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19160
19161  runpath_var=
19162  allow_undefined_flag_F77=
19163  enable_shared_with_static_runtimes_F77=no
19164  archive_cmds_F77=
19165  archive_expsym_cmds_F77=
19166  old_archive_From_new_cmds_F77=
19167  old_archive_from_expsyms_cmds_F77=
19168  export_dynamic_flag_spec_F77=
19169  whole_archive_flag_spec_F77=
19170  thread_safe_flag_spec_F77=
19171  hardcode_libdir_flag_spec_F77=
19172  hardcode_libdir_flag_spec_ld_F77=
19173  hardcode_libdir_separator_F77=
19174  hardcode_direct_F77=no
19175  hardcode_minus_L_F77=no
19176  hardcode_shlibpath_var_F77=unsupported
19177  link_all_deplibs_F77=unknown
19178  hardcode_automatic_F77=no
19179  module_cmds_F77=
19180  module_expsym_cmds_F77=
19181  always_export_symbols_F77=no
19182  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19183  # include_expsyms should be a list of space-separated symbols to be *always*
19184  # included in the symbol list
19185  include_expsyms_F77=
19186  # exclude_expsyms can be an extended regexp of symbols to exclude
19187  # it will be wrapped by ` (' and `)$', so one must not match beginning or
19188  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19189  # as well as any symbol that contains `d'.
19190  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19191  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19192  # platforms (ab)use it in PIC code, but their linkers get confused if
19193  # the symbol is explicitly referenced.  Since portable code cannot
19194  # rely on this symbol name, it's probably fine to never include it in
19195  # preloaded symbol tables.
19196  extract_expsyms_cmds=
19197
19198  case $host_os in
19199  cygwin* | mingw* | pw32*)
19200    # FIXME: the MSVC++ port hasn't been tested in a loooong time
19201    # When not using gcc, we currently assume that we are using
19202    # Microsoft Visual C++.
19203    if test "$GCC" != yes; then
19204      with_gnu_ld=no
19205    fi
19206    ;;
19207  openbsd*)
19208    with_gnu_ld=no
19209    ;;
19210  esac
19211
19212  ld_shlibs_F77=yes
19213  if test "$with_gnu_ld" = yes; then
19214    # If archive_cmds runs LD, not CC, wlarc should be empty
19215    wlarc='${wl}'
19216
19217    # See if GNU ld supports shared libraries.
19218    case $host_os in
19219    aix3* | aix4* | aix5*)
19220      # On AIX/PPC, the GNU linker is very broken
19221      if test "$host_cpu" != ia64; then
19222	ld_shlibs_F77=no
19223	cat <<EOF 1>&2
19224
19225*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19226*** to be unable to reliably create shared libraries on AIX.
19227*** Therefore, libtool is disabling shared libraries support.  If you
19228*** really care for shared libraries, you may want to modify your PATH
19229*** so that a non-GNU linker is found, and then restart.
19230
19231EOF
19232      fi
19233      ;;
19234
19235    amigaos*)
19236      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)'
19237      hardcode_libdir_flag_spec_F77='-L$libdir'
19238      hardcode_minus_L_F77=yes
19239
19240      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19241      # that the semantics of dynamic libraries on AmigaOS, at least up
19242      # to version 4, is to share data among multiple programs linked
19243      # with the same dynamic library.  Since this doesn't match the
19244      # behavior of shared libraries on other platforms, we can't use
19245      # them.
19246      ld_shlibs_F77=no
19247      ;;
19248
19249    beos*)
19250      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19251	allow_undefined_flag_F77=unsupported
19252	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19253	# support --undefined.  This deserves some investigation.  FIXME
19254	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19255      else
19256	ld_shlibs_F77=no
19257      fi
19258      ;;
19259
19260    cygwin* | mingw* | pw32*)
19261      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19262      # as there is no search path for DLLs.
19263      hardcode_libdir_flag_spec_F77='-L$libdir'
19264      allow_undefined_flag_F77=unsupported
19265      always_export_symbols_F77=no
19266      enable_shared_with_static_runtimes_F77=yes
19267      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19268
19269      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19270        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19271	# If the export-symbols file already is a .def file (1st line
19272	# is EXPORTS), use it as is; otherwise, prepend...
19273	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19274	  cp $export_symbols $output_objdir/$soname.def;
19275	else
19276	  echo EXPORTS > $output_objdir/$soname.def;
19277	  cat $export_symbols >> $output_objdir/$soname.def;
19278	fi~
19279	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19280      else
19281	ld_shlibs=no
19282      fi
19283      ;;
19284
19285    netbsd*)
19286      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19287	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19288	wlarc=
19289      else
19290	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19291	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19292      fi
19293      ;;
19294
19295    solaris* | sysv5*)
19296      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19297	ld_shlibs_F77=no
19298	cat <<EOF 1>&2
19299
19300*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19301*** create shared libraries on Solaris systems.  Therefore, libtool
19302*** is disabling shared libraries support.  We urge you to upgrade GNU
19303*** binutils to release 2.9.1 or newer.  Another option is to modify
19304*** your PATH or compiler configuration so that the native linker is
19305*** used, and then restart.
19306
19307EOF
19308      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19309	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19310	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19311      else
19312	ld_shlibs_F77=no
19313      fi
19314      ;;
19315
19316    sunos4*)
19317      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19318      wlarc=
19319      hardcode_direct_F77=yes
19320      hardcode_shlibpath_var_F77=no
19321      ;;
19322
19323  linux*)
19324    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19325        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19326	archive_cmds_F77="$tmp_archive_cmds"
19327      supports_anon_versioning=no
19328      case `$LD -v 2>/dev/null` in
19329        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19330        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19331        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19332        *\ 2.11.*) ;; # other 2.11 versions
19333        *) supports_anon_versioning=yes ;;
19334      esac
19335      if test $supports_anon_versioning = yes; then
19336        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19337cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19338$echo "local: *; };" >> $output_objdir/$libname.ver~
19339        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19340      else
19341        archive_expsym_cmds_F77="$tmp_archive_cmds"
19342      fi
19343    else
19344      ld_shlibs_F77=no
19345    fi
19346    ;;
19347
19348    *)
19349      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19350	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19351	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19352      else
19353	ld_shlibs_F77=no
19354      fi
19355      ;;
19356    esac
19357
19358    if test "$ld_shlibs_F77" = yes; then
19359      runpath_var=LD_RUN_PATH
19360      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19361      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19362      # ancient GNU ld didn't support --whole-archive et. al.
19363      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19364 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19365      else
19366  	whole_archive_flag_spec_F77=
19367      fi
19368    fi
19369  else
19370    # PORTME fill in a description of your system's linker (not GNU ld)
19371    case $host_os in
19372    aix3*)
19373      allow_undefined_flag_F77=unsupported
19374      always_export_symbols_F77=yes
19375      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'
19376      # Note: this linker hardcodes the directories in LIBPATH if there
19377      # are no directories specified by -L.
19378      hardcode_minus_L_F77=yes
19379      if test "$GCC" = yes && test -z "$link_static_flag"; then
19380	# Neither direct hardcoding nor static linking is supported with a
19381	# broken collect2.
19382	hardcode_direct_F77=unsupported
19383      fi
19384      ;;
19385
19386    aix4* | aix5*)
19387      if test "$host_cpu" = ia64; then
19388	# On IA64, the linker does run time linking by default, so we don't
19389	# have to do anything special.
19390	aix_use_runtimelinking=no
19391	exp_sym_flag='-Bexport'
19392	no_entry_flag=""
19393      else
19394	# If we're using GNU nm, then we don't want the "-C" option.
19395	# -C means demangle to AIX nm, but means don't demangle with GNU nm
19396	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19397	  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'
19398	else
19399	  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'
19400	fi
19401	aix_use_runtimelinking=no
19402
19403	# Test if we are trying to use run time linking or normal
19404	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19405	# need to do runtime linking.
19406	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19407	  for ld_flag in $LDFLAGS; do
19408  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19409  	    aix_use_runtimelinking=yes
19410  	    break
19411  	  fi
19412	  done
19413	esac
19414
19415	exp_sym_flag='-bexport'
19416	no_entry_flag='-bnoentry'
19417      fi
19418
19419      # When large executables or shared objects are built, AIX ld can
19420      # have problems creating the table of contents.  If linking a library
19421      # or program results in "error TOC overflow" add -mminimal-toc to
19422      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19423      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19424
19425      archive_cmds_F77=''
19426      hardcode_direct_F77=yes
19427      hardcode_libdir_separator_F77=':'
19428      link_all_deplibs_F77=yes
19429
19430      if test "$GCC" = yes; then
19431	case $host_os in aix4.012|aix4.012.*)
19432	# We only want to do this on AIX 4.2 and lower, the check
19433	# below for broken collect2 doesn't work under 4.3+
19434	  collect2name=`${CC} -print-prog-name=collect2`
19435	  if test -f "$collect2name" && \
19436  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
19437	  then
19438  	  # We have reworked collect2
19439  	  hardcode_direct_F77=yes
19440	  else
19441  	  # We have old collect2
19442  	  hardcode_direct_F77=unsupported
19443  	  # It fails to find uninstalled libraries when the uninstalled
19444  	  # path is not listed in the libpath.  Setting hardcode_minus_L
19445  	  # to unsupported forces relinking
19446  	  hardcode_minus_L_F77=yes
19447  	  hardcode_libdir_flag_spec_F77='-L$libdir'
19448  	  hardcode_libdir_separator_F77=
19449	  fi
19450	esac
19451	shared_flag='-shared'
19452      else
19453	# not using gcc
19454	if test "$host_cpu" = ia64; then
19455  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19456  	# chokes on -Wl,-G. The following line is correct:
19457	  shared_flag='-G'
19458	else
19459  	if test "$aix_use_runtimelinking" = yes; then
19460	    shared_flag='${wl}-G'
19461	  else
19462	    shared_flag='${wl}-bM:SRE'
19463  	fi
19464	fi
19465      fi
19466
19467      # It seems that -bexpall does not export symbols beginning with
19468      # underscore (_), so it is better to generate a list of symbols to export.
19469      always_export_symbols_F77=yes
19470      if test "$aix_use_runtimelinking" = yes; then
19471	# Warning - without using the other runtime loading flags (-brtl),
19472	# -berok will link without error, but may produce a broken library.
19473	allow_undefined_flag_F77='-berok'
19474       # Determine the default libpath from the value encoded in an empty executable.
19475       cat >conftest.$ac_ext <<_ACEOF
19476      program main
19477
19478      end
19479_ACEOF
19480rm -f conftest.$ac_objext conftest$ac_exeext
19481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19482  (eval $ac_link) 2>conftest.er1
19483  ac_status=$?
19484  grep -v '^ *+' conftest.er1 >conftest.err
19485  rm -f conftest.er1
19486  cat conftest.err >&5
19487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488  (exit $ac_status); } &&
19489	 { ac_try='test -z "$ac_f77_werror_flag"
19490			 || test ! -s conftest.err'
19491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492  (eval $ac_try) 2>&5
19493  ac_status=$?
19494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495  (exit $ac_status); }; } &&
19496	 { ac_try='test -s conftest$ac_exeext'
19497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498  (eval $ac_try) 2>&5
19499  ac_status=$?
19500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501  (exit $ac_status); }; }; then
19502
19503aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19504}'`
19505# Check for a 64-bit object if we didn't find anything.
19506if 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; }
19507}'`; fi
19508else
19509  echo "$as_me: failed program was:" >&5
19510sed 's/^/| /' conftest.$ac_ext >&5
19511
19512fi
19513rm -f conftest.err conftest.$ac_objext \
19514      conftest$ac_exeext conftest.$ac_ext
19515if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19516
19517       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19518	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"
19519       else
19520	if test "$host_cpu" = ia64; then
19521	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19522	  allow_undefined_flag_F77="-z nodefs"
19523	  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"
19524	else
19525	 # Determine the default libpath from the value encoded in an empty executable.
19526	 cat >conftest.$ac_ext <<_ACEOF
19527      program main
19528
19529      end
19530_ACEOF
19531rm -f conftest.$ac_objext conftest$ac_exeext
19532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19533  (eval $ac_link) 2>conftest.er1
19534  ac_status=$?
19535  grep -v '^ *+' conftest.er1 >conftest.err
19536  rm -f conftest.er1
19537  cat conftest.err >&5
19538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539  (exit $ac_status); } &&
19540	 { ac_try='test -z "$ac_f77_werror_flag"
19541			 || test ! -s conftest.err'
19542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19543  (eval $ac_try) 2>&5
19544  ac_status=$?
19545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546  (exit $ac_status); }; } &&
19547	 { ac_try='test -s conftest$ac_exeext'
19548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19549  (eval $ac_try) 2>&5
19550  ac_status=$?
19551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552  (exit $ac_status); }; }; then
19553
19554aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19555}'`
19556# Check for a 64-bit object if we didn't find anything.
19557if 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; }
19558}'`; fi
19559else
19560  echo "$as_me: failed program was:" >&5
19561sed 's/^/| /' conftest.$ac_ext >&5
19562
19563fi
19564rm -f conftest.err conftest.$ac_objext \
19565      conftest$ac_exeext conftest.$ac_ext
19566if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19567
19568	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19569	  # Warning - without using the other run time loading flags,
19570	  # -berok will link without error, but may produce a broken library.
19571	  no_undefined_flag_F77=' ${wl}-bernotok'
19572	  allow_undefined_flag_F77=' ${wl}-berok'
19573	  # -bexpall does not export symbols beginning with underscore (_)
19574	  always_export_symbols_F77=yes
19575	  # Exported symbols can be pulled into shared objects from archives
19576	  whole_archive_flag_spec_F77=' '
19577	  archive_cmds_need_lc_F77=yes
19578	  # This is similar to how AIX traditionally builds it's shared libraries.
19579	  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'
19580	fi
19581      fi
19582      ;;
19583
19584    amigaos*)
19585      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)'
19586      hardcode_libdir_flag_spec_F77='-L$libdir'
19587      hardcode_minus_L_F77=yes
19588      # see comment about different semantics on the GNU ld section
19589      ld_shlibs_F77=no
19590      ;;
19591
19592    bsdi[45]*)
19593      export_dynamic_flag_spec_F77=-rdynamic
19594      ;;
19595
19596    cygwin* | mingw* | pw32*)
19597      # When not using gcc, we currently assume that we are using
19598      # Microsoft Visual C++.
19599      # hardcode_libdir_flag_spec is actually meaningless, as there is
19600      # no search path for DLLs.
19601      hardcode_libdir_flag_spec_F77=' '
19602      allow_undefined_flag_F77=unsupported
19603      # Tell ltmain to make .lib files, not .a files.
19604      libext=lib
19605      # Tell ltmain to make .dll files, not .so files.
19606      shrext_cmds=".dll"
19607      # FIXME: Setting linknames here is a bad hack.
19608      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19609      # The linker will automatically build a .lib file if we build a DLL.
19610      old_archive_From_new_cmds_F77='true'
19611      # FIXME: Should let the user specify the lib program.
19612      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19613      fix_srcfile_path='`cygpath -w "$srcfile"`'
19614      enable_shared_with_static_runtimes_F77=yes
19615      ;;
19616
19617    darwin* | rhapsody*)
19618      case "$host_os" in
19619        rhapsody* | darwin1.[012])
19620         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19621         ;;
19622       *) # Darwin 1.3 on
19623         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19624           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19625         else
19626           case ${MACOSX_DEPLOYMENT_TARGET} in
19627             10.[012])
19628               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19629               ;;
19630             10.*)
19631               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19632               ;;
19633           esac
19634         fi
19635         ;;
19636      esac
19637      archive_cmds_need_lc_F77=no
19638      hardcode_direct_F77=no
19639      hardcode_automatic_F77=yes
19640      hardcode_shlibpath_var_F77=unsupported
19641      whole_archive_flag_spec_F77=''
19642      link_all_deplibs_F77=yes
19643    if test "$GCC" = yes ; then
19644    	output_verbose_link_cmd='echo'
19645        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19646      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19647      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19648      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}'
19649      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}'
19650    else
19651      case "$cc_basename" in
19652        xlc*)
19653         output_verbose_link_cmd='echo'
19654         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19655         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19656          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19657         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}'
19658          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}'
19659          ;;
19660       *)
19661         ld_shlibs_F77=no
19662          ;;
19663      esac
19664    fi
19665      ;;
19666
19667    dgux*)
19668      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19669      hardcode_libdir_flag_spec_F77='-L$libdir'
19670      hardcode_shlibpath_var_F77=no
19671      ;;
19672
19673    freebsd1*)
19674      ld_shlibs_F77=no
19675      ;;
19676
19677    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19678    # support.  Future versions do this automatically, but an explicit c++rt0.o
19679    # does not break anything, and helps significantly (at the cost of a little
19680    # extra space).
19681    freebsd2.2*)
19682      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19683      hardcode_libdir_flag_spec_F77='-R$libdir'
19684      hardcode_direct_F77=yes
19685      hardcode_shlibpath_var_F77=no
19686      ;;
19687
19688    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19689    freebsd2*)
19690      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19691      hardcode_direct_F77=yes
19692      hardcode_minus_L_F77=yes
19693      hardcode_shlibpath_var_F77=no
19694      ;;
19695
19696    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19697    freebsd* | kfreebsd*-gnu)
19698      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19699      hardcode_libdir_flag_spec_F77='-R$libdir'
19700      hardcode_direct_F77=yes
19701      hardcode_shlibpath_var_F77=no
19702      ;;
19703
19704    hpux9*)
19705      if test "$GCC" = yes; then
19706	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'
19707      else
19708	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'
19709      fi
19710      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19711      hardcode_libdir_separator_F77=:
19712      hardcode_direct_F77=yes
19713
19714      # hardcode_minus_L: Not really in the search PATH,
19715      # but as the default location of the library.
19716      hardcode_minus_L_F77=yes
19717      export_dynamic_flag_spec_F77='${wl}-E'
19718      ;;
19719
19720    hpux10* | hpux11*)
19721      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19722	case "$host_cpu" in
19723	hppa*64*|ia64*)
19724	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19725	  ;;
19726	*)
19727	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19728	  ;;
19729	esac
19730      else
19731	case "$host_cpu" in
19732	hppa*64*|ia64*)
19733	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19734	  ;;
19735	*)
19736	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19737	  ;;
19738	esac
19739      fi
19740      if test "$with_gnu_ld" = no; then
19741	case "$host_cpu" in
19742	hppa*64*)
19743	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19744	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19745	  hardcode_libdir_separator_F77=:
19746	  hardcode_direct_F77=no
19747	  hardcode_shlibpath_var_F77=no
19748	  ;;
19749	ia64*)
19750	  hardcode_libdir_flag_spec_F77='-L$libdir'
19751	  hardcode_direct_F77=no
19752	  hardcode_shlibpath_var_F77=no
19753
19754	  # hardcode_minus_L: Not really in the search PATH,
19755	  # but as the default location of the library.
19756	  hardcode_minus_L_F77=yes
19757	  ;;
19758	*)
19759	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19760	  hardcode_libdir_separator_F77=:
19761	  hardcode_direct_F77=yes
19762	  export_dynamic_flag_spec_F77='${wl}-E'
19763
19764	  # hardcode_minus_L: Not really in the search PATH,
19765	  # but as the default location of the library.
19766	  hardcode_minus_L_F77=yes
19767	  ;;
19768	esac
19769      fi
19770      ;;
19771
19772    irix5* | irix6* | nonstopux*)
19773      if test "$GCC" = yes; then
19774	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'
19775      else
19776	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'
19777	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19778      fi
19779      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19780      hardcode_libdir_separator_F77=:
19781      link_all_deplibs_F77=yes
19782      ;;
19783
19784    netbsd*)
19785      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19786	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19787      else
19788	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19789      fi
19790      hardcode_libdir_flag_spec_F77='-R$libdir'
19791      hardcode_direct_F77=yes
19792      hardcode_shlibpath_var_F77=no
19793      ;;
19794
19795    newsos6)
19796      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19797      hardcode_direct_F77=yes
19798      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19799      hardcode_libdir_separator_F77=:
19800      hardcode_shlibpath_var_F77=no
19801      ;;
19802
19803    openbsd*)
19804      hardcode_direct_F77=yes
19805      hardcode_shlibpath_var_F77=no
19806      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19807	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19808	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19809	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19810	export_dynamic_flag_spec_F77='${wl}-E'
19811      else
19812       case $host_os in
19813	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19814	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19815	   hardcode_libdir_flag_spec_F77='-R$libdir'
19816	   ;;
19817	 *)
19818	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19819	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19820	   ;;
19821       esac
19822      fi
19823      ;;
19824
19825    os2*)
19826      hardcode_libdir_flag_spec_F77='-L$libdir'
19827      hardcode_minus_L_F77=yes
19828      allow_undefined_flag_F77=unsupported
19829      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'
19830      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19831      ;;
19832
19833    osf3*)
19834      if test "$GCC" = yes; then
19835	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19836	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'
19837      else
19838	allow_undefined_flag_F77=' -expect_unresolved \*'
19839	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'
19840      fi
19841      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19842      hardcode_libdir_separator_F77=:
19843      ;;
19844
19845    osf4* | osf5*)	# as osf3* with the addition of -msym flag
19846      if test "$GCC" = yes; then
19847	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19848	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'
19849	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19850      else
19851	allow_undefined_flag_F77=' -expect_unresolved \*'
19852	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'
19853	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~
19854	$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'
19855
19856	# Both c and cxx compiler support -rpath directly
19857	hardcode_libdir_flag_spec_F77='-rpath $libdir'
19858      fi
19859      hardcode_libdir_separator_F77=:
19860      ;;
19861
19862    sco3.2v5*)
19863      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19864      hardcode_shlibpath_var_F77=no
19865      export_dynamic_flag_spec_F77='${wl}-Bexport'
19866      runpath_var=LD_RUN_PATH
19867      hardcode_runpath_var=yes
19868      ;;
19869
19870    solaris*)
19871      no_undefined_flag_F77=' -z text'
19872      if test "$GCC" = yes; then
19873	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19874	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19875	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19876      else
19877	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19878	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19879  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19880      fi
19881      hardcode_libdir_flag_spec_F77='-R$libdir'
19882      hardcode_shlibpath_var_F77=no
19883      case $host_os in
19884      solaris2.[0-5] | solaris2.[0-5].*) ;;
19885      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19886	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19887      esac
19888      link_all_deplibs_F77=yes
19889      ;;
19890
19891    sunos4*)
19892      if test "x$host_vendor" = xsequent; then
19893	# Use $CC to link under sequent, because it throws in some extra .o
19894	# files that make .init and .fini sections work.
19895	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19896      else
19897	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19898      fi
19899      hardcode_libdir_flag_spec_F77='-L$libdir'
19900      hardcode_direct_F77=yes
19901      hardcode_minus_L_F77=yes
19902      hardcode_shlibpath_var_F77=no
19903      ;;
19904
19905    sysv4)
19906      case $host_vendor in
19907	sni)
19908	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19909	  hardcode_direct_F77=yes # is this really true???
19910	;;
19911	siemens)
19912	  ## LD is ld it makes a PLAMLIB
19913	  ## CC just makes a GrossModule.
19914	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19915	  reload_cmds_F77='$CC -r -o $output$reload_objs'
19916	  hardcode_direct_F77=no
19917        ;;
19918	motorola)
19919	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19920	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19921	;;
19922      esac
19923      runpath_var='LD_RUN_PATH'
19924      hardcode_shlibpath_var_F77=no
19925      ;;
19926
19927    sysv4.3*)
19928      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19929      hardcode_shlibpath_var_F77=no
19930      export_dynamic_flag_spec_F77='-Bexport'
19931      ;;
19932
19933    sysv4*MP*)
19934      if test -d /usr/nec; then
19935	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19936	hardcode_shlibpath_var_F77=no
19937	runpath_var=LD_RUN_PATH
19938	hardcode_runpath_var=yes
19939	ld_shlibs_F77=yes
19940      fi
19941      ;;
19942
19943    sysv4.2uw2*)
19944      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19945      hardcode_direct_F77=yes
19946      hardcode_minus_L_F77=no
19947      hardcode_shlibpath_var_F77=no
19948      hardcode_runpath_var=yes
19949      runpath_var=LD_RUN_PATH
19950      ;;
19951
19952   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19953      no_undefined_flag_F77='${wl}-z ${wl}text'
19954      if test "$GCC" = yes; then
19955	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19956      else
19957	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19958      fi
19959      runpath_var='LD_RUN_PATH'
19960      hardcode_shlibpath_var_F77=no
19961      ;;
19962
19963    sysv5*)
19964      no_undefined_flag_F77=' -z text'
19965      # $CC -shared without GNU ld will not create a library from C++
19966      # object files and a static libstdc++, better avoid it by now
19967      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19968      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19969  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19970      hardcode_libdir_flag_spec_F77=
19971      hardcode_shlibpath_var_F77=no
19972      runpath_var='LD_RUN_PATH'
19973      ;;
19974
19975    uts4*)
19976      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19977      hardcode_libdir_flag_spec_F77='-L$libdir'
19978      hardcode_shlibpath_var_F77=no
19979      ;;
19980
19981    *)
19982      ld_shlibs_F77=no
19983      ;;
19984    esac
19985  fi
19986
19987echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19988echo "${ECHO_T}$ld_shlibs_F77" >&6
19989test "$ld_shlibs_F77" = no && can_build_shared=no
19990
19991variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19992if test "$GCC" = yes; then
19993  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19994fi
19995
19996#
19997# Do we need to explicitly link libc?
19998#
19999case "x$archive_cmds_need_lc_F77" in
20000x|xyes)
20001  # Assume -lc should be added
20002  archive_cmds_need_lc_F77=yes
20003
20004  if test "$enable_shared" = yes && test "$GCC" = yes; then
20005    case $archive_cmds_F77 in
20006    *'~'*)
20007      # FIXME: we may have to deal with multi-command sequences.
20008      ;;
20009    '$CC '*)
20010      # Test whether the compiler implicitly links with -lc since on some
20011      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20012      # to ld, don't add -lc before -lgcc.
20013      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20014echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20015      $rm conftest*
20016      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20017
20018      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20019  (eval $ac_compile) 2>&5
20020  ac_status=$?
20021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022  (exit $ac_status); } 2>conftest.err; then
20023        soname=conftest
20024        lib=conftest
20025        libobjs=conftest.$ac_objext
20026        deplibs=
20027        wl=$lt_prog_compiler_wl_F77
20028        compiler_flags=-v
20029        linker_flags=-v
20030        verstring=
20031        output_objdir=.
20032        libname=conftest
20033        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20034        allow_undefined_flag_F77=
20035        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20036  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20037  ac_status=$?
20038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039  (exit $ac_status); }
20040        then
20041	  archive_cmds_need_lc_F77=no
20042        else
20043	  archive_cmds_need_lc_F77=yes
20044        fi
20045        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20046      else
20047        cat conftest.err 1>&5
20048      fi
20049      $rm conftest*
20050      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20051echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20052      ;;
20053    esac
20054  fi
20055  ;;
20056esac
20057
20058echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20059echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20060library_names_spec=
20061libname_spec='lib$name'
20062soname_spec=
20063shrext_cmds=".so"
20064postinstall_cmds=
20065postuninstall_cmds=
20066finish_cmds=
20067finish_eval=
20068shlibpath_var=
20069shlibpath_overrides_runpath=unknown
20070version_type=none
20071dynamic_linker="$host_os ld.so"
20072sys_lib_dlsearch_path_spec="/lib /usr/lib"
20073if test "$GCC" = yes; then
20074  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20075  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20076    # if the path contains ";" then we assume it to be the separator
20077    # otherwise default to the standard path separator (i.e. ":") - it is
20078    # assumed that no part of a normal pathname contains ";" but that should
20079    # okay in the real world where ";" in dirpaths is itself problematic.
20080    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20081  else
20082    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20083  fi
20084else
20085  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20086fi
20087need_lib_prefix=unknown
20088hardcode_into_libs=no
20089
20090# when you set need_version to no, make sure it does not cause -set_version
20091# flags to be left without arguments
20092need_version=unknown
20093
20094case $host_os in
20095aix3*)
20096  version_type=linux
20097  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20098  shlibpath_var=LIBPATH
20099
20100  # AIX 3 has no versioning support, so we append a major version to the name.
20101  soname_spec='${libname}${release}${shared_ext}$major'
20102  ;;
20103
20104aix4* | aix5*)
20105  version_type=linux
20106  need_lib_prefix=no
20107  need_version=no
20108  hardcode_into_libs=yes
20109  if test "$host_cpu" = ia64; then
20110    # AIX 5 supports IA64
20111    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20112    shlibpath_var=LD_LIBRARY_PATH
20113  else
20114    # With GCC up to 2.95.x, collect2 would create an import file
20115    # for dependence libraries.  The import file would start with
20116    # the line `#! .'.  This would cause the generated library to
20117    # depend on `.', always an invalid library.  This was fixed in
20118    # development snapshots of GCC prior to 3.0.
20119    case $host_os in
20120      aix4 | aix4.[01] | aix4.[01].*)
20121      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20122	   echo ' yes '
20123	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20124	:
20125      else
20126	can_build_shared=no
20127      fi
20128      ;;
20129    esac
20130    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20131    # soname into executable. Probably we can add versioning support to
20132    # collect2, so additional links can be useful in future.
20133    if test "$aix_use_runtimelinking" = yes; then
20134      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20135      # instead of lib<name>.a to let people know that these are not
20136      # typical AIX shared libraries.
20137      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20138    else
20139      # We preserve .a as extension for shared libraries through AIX4.2
20140      # and later when we are not doing run time linking.
20141      library_names_spec='${libname}${release}.a $libname.a'
20142      soname_spec='${libname}${release}${shared_ext}$major'
20143    fi
20144    shlibpath_var=LIBPATH
20145  fi
20146  ;;
20147
20148amigaos*)
20149  library_names_spec='$libname.ixlibrary $libname.a'
20150  # Create ${libname}_ixlibrary.a entries in /sys/libs.
20151  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'
20152  ;;
20153
20154beos*)
20155  library_names_spec='${libname}${shared_ext}'
20156  dynamic_linker="$host_os ld.so"
20157  shlibpath_var=LIBRARY_PATH
20158  ;;
20159
20160bsdi[45]*)
20161  version_type=linux
20162  need_version=no
20163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20164  soname_spec='${libname}${release}${shared_ext}$major'
20165  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20166  shlibpath_var=LD_LIBRARY_PATH
20167  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20168  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20169  # the default ld.so.conf also contains /usr/contrib/lib and
20170  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20171  # libtool to hard-code these into programs
20172  ;;
20173
20174cygwin* | mingw* | pw32*)
20175  version_type=windows
20176  shrext_cmds=".dll"
20177  need_version=no
20178  need_lib_prefix=no
20179
20180  case $GCC,$host_os in
20181  yes,cygwin* | yes,mingw* | yes,pw32*)
20182    library_names_spec='$libname.dll.a'
20183    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20184    postinstall_cmds='base_file=`basename \${file}`~
20185      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20186      dldir=$destdir/`dirname \$dlpath`~
20187      test -d \$dldir || mkdir -p \$dldir~
20188      $install_prog $dir/$dlname \$dldir/$dlname'
20189    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20190      dlpath=$dir/\$dldll~
20191       $rm \$dlpath'
20192    shlibpath_overrides_runpath=yes
20193
20194    case $host_os in
20195    cygwin*)
20196      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20197      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20198      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20199      ;;
20200    mingw*)
20201      # MinGW DLLs use traditional 'lib' prefix
20202      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20203      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20204      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20205        # It is most probably a Windows format PATH printed by
20206        # mingw gcc, but we are running on Cygwin. Gcc prints its search
20207        # path with ; separators, and with drive letters. We can handle the
20208        # drive letters (cygwin fileutils understands them), so leave them,
20209        # especially as we might pass files found there to a mingw objdump,
20210        # which wouldn't understand a cygwinified path. Ahh.
20211        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20212      else
20213        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20214      fi
20215      ;;
20216    pw32*)
20217      # pw32 DLLs use 'pw' prefix rather than 'lib'
20218      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20219      ;;
20220    esac
20221    ;;
20222
20223  *)
20224    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20225    ;;
20226  esac
20227  dynamic_linker='Win32 ld.exe'
20228  # FIXME: first we should search . and the directory the executable is in
20229  shlibpath_var=PATH
20230  ;;
20231
20232darwin* | rhapsody*)
20233  dynamic_linker="$host_os dyld"
20234  version_type=darwin
20235  need_lib_prefix=no
20236  need_version=no
20237  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20238  soname_spec='${libname}${release}${major}$shared_ext'
20239  shlibpath_overrides_runpath=yes
20240  shlibpath_var=DYLD_LIBRARY_PATH
20241  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20242  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20243  if test "$GCC" = yes; then
20244    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"`
20245  else
20246    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20247  fi
20248  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20249  ;;
20250
20251dgux*)
20252  version_type=linux
20253  need_lib_prefix=no
20254  need_version=no
20255  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20256  soname_spec='${libname}${release}${shared_ext}$major'
20257  shlibpath_var=LD_LIBRARY_PATH
20258  ;;
20259
20260freebsd1*)
20261  dynamic_linker=no
20262  ;;
20263
20264kfreebsd*-gnu)
20265  version_type=linux
20266  need_lib_prefix=no
20267  need_version=no
20268  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20269  soname_spec='${libname}${release}${shared_ext}$major'
20270  shlibpath_var=LD_LIBRARY_PATH
20271  shlibpath_overrides_runpath=no
20272  hardcode_into_libs=yes
20273  dynamic_linker='GNU ld.so'
20274  ;;
20275
20276freebsd*)
20277  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20278  version_type=freebsd-$objformat
20279  case $version_type in
20280    freebsd-elf*)
20281      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20282      need_version=no
20283      need_lib_prefix=no
20284      ;;
20285    freebsd-*)
20286      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20287      need_version=yes
20288      ;;
20289  esac
20290  shlibpath_var=LD_LIBRARY_PATH
20291  case $host_os in
20292  freebsd2*)
20293    shlibpath_overrides_runpath=yes
20294    ;;
20295  freebsd3.01* | freebsdelf3.01*)
20296    shlibpath_overrides_runpath=yes
20297    hardcode_into_libs=yes
20298    ;;
20299  *) # from 3.2 on
20300    shlibpath_overrides_runpath=no
20301    hardcode_into_libs=yes
20302    ;;
20303  esac
20304  ;;
20305
20306gnu*)
20307  version_type=linux
20308  need_lib_prefix=no
20309  need_version=no
20310  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20311  soname_spec='${libname}${release}${shared_ext}$major'
20312  shlibpath_var=LD_LIBRARY_PATH
20313  hardcode_into_libs=yes
20314  ;;
20315
20316hpux9* | hpux10* | hpux11*)
20317  # Give a soname corresponding to the major version so that dld.sl refuses to
20318  # link against other versions.
20319  version_type=sunos
20320  need_lib_prefix=no
20321  need_version=no
20322  case "$host_cpu" in
20323  ia64*)
20324    shrext_cmds='.so'
20325    hardcode_into_libs=yes
20326    dynamic_linker="$host_os dld.so"
20327    shlibpath_var=LD_LIBRARY_PATH
20328    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20329    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20330    soname_spec='${libname}${release}${shared_ext}$major'
20331    if test "X$HPUX_IA64_MODE" = X32; then
20332      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20333    else
20334      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20335    fi
20336    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20337    ;;
20338   hppa*64*)
20339     shrext_cmds='.sl'
20340     hardcode_into_libs=yes
20341     dynamic_linker="$host_os dld.sl"
20342     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20343     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20344     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20345     soname_spec='${libname}${release}${shared_ext}$major'
20346     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20347     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20348     ;;
20349   *)
20350    shrext_cmds='.sl'
20351    dynamic_linker="$host_os dld.sl"
20352    shlibpath_var=SHLIB_PATH
20353    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20354    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20355    soname_spec='${libname}${release}${shared_ext}$major'
20356    ;;
20357  esac
20358  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20359  postinstall_cmds='chmod 555 $lib'
20360  ;;
20361
20362irix5* | irix6* | nonstopux*)
20363  case $host_os in
20364    nonstopux*) version_type=nonstopux ;;
20365    *)
20366	if test "$lt_cv_prog_gnu_ld" = yes; then
20367		version_type=linux
20368	else
20369		version_type=irix
20370	fi ;;
20371  esac
20372  need_lib_prefix=no
20373  need_version=no
20374  soname_spec='${libname}${release}${shared_ext}$major'
20375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20376  case $host_os in
20377  irix5* | nonstopux*)
20378    libsuff= shlibsuff=
20379    ;;
20380  *)
20381    case $LD in # libtool.m4 will add one of these switches to LD
20382    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20383      libsuff= shlibsuff= libmagic=32-bit;;
20384    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20385      libsuff=32 shlibsuff=N32 libmagic=N32;;
20386    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20387      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20388    *) libsuff= shlibsuff= libmagic=never-match;;
20389    esac
20390    ;;
20391  esac
20392  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20393  shlibpath_overrides_runpath=no
20394  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20395  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20396  hardcode_into_libs=yes
20397  ;;
20398
20399# No shared lib support for Linux oldld, aout, or coff.
20400linux*oldld* | linux*aout* | linux*coff*)
20401  dynamic_linker=no
20402  ;;
20403
20404# This must be Linux ELF.
20405linux*)
20406  version_type=linux
20407  need_lib_prefix=no
20408  need_version=no
20409  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20410  soname_spec='${libname}${release}${shared_ext}$major'
20411  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20412  shlibpath_var=LD_LIBRARY_PATH
20413  shlibpath_overrides_runpath=no
20414  # This implies no fast_install, which is unacceptable.
20415  # Some rework will be needed to allow for fast_install
20416  # before this can be enabled.
20417  hardcode_into_libs=yes
20418
20419  # Append ld.so.conf contents to the search path
20420  if test -f /etc/ld.so.conf; then
20421    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20422    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20423  fi
20424
20425  # We used to test for /lib/ld.so.1 and disable shared libraries on
20426  # powerpc, because MkLinux only supported shared libraries with the
20427  # GNU dynamic linker.  Since this was broken with cross compilers,
20428  # most powerpc-linux boxes support dynamic linking these days and
20429  # people can always --disable-shared, the test was removed, and we
20430  # assume the GNU/Linux dynamic linker is in use.
20431  dynamic_linker='GNU/Linux ld.so'
20432  ;;
20433
20434knetbsd*-gnu)
20435  version_type=linux
20436  need_lib_prefix=no
20437  need_version=no
20438  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20439  soname_spec='${libname}${release}${shared_ext}$major'
20440  shlibpath_var=LD_LIBRARY_PATH
20441  shlibpath_overrides_runpath=no
20442  hardcode_into_libs=yes
20443  dynamic_linker='GNU ld.so'
20444  ;;
20445
20446netbsd*)
20447  version_type=sunos
20448  need_lib_prefix=no
20449  need_version=no
20450  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20451    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20452    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20453    dynamic_linker='NetBSD (a.out) ld.so'
20454  else
20455    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20456    soname_spec='${libname}${release}${shared_ext}$major'
20457    dynamic_linker='NetBSD ld.elf_so'
20458  fi
20459  shlibpath_var=LD_LIBRARY_PATH
20460  shlibpath_overrides_runpath=yes
20461  hardcode_into_libs=yes
20462  ;;
20463
20464newsos6)
20465  version_type=linux
20466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20467  shlibpath_var=LD_LIBRARY_PATH
20468  shlibpath_overrides_runpath=yes
20469  ;;
20470
20471nto-qnx*)
20472  version_type=linux
20473  need_lib_prefix=no
20474  need_version=no
20475  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20476  soname_spec='${libname}${release}${shared_ext}$major'
20477  shlibpath_var=LD_LIBRARY_PATH
20478  shlibpath_overrides_runpath=yes
20479  ;;
20480
20481openbsd*)
20482  version_type=sunos
20483  need_lib_prefix=no
20484  need_version=no
20485  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20486  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20487  shlibpath_var=LD_LIBRARY_PATH
20488  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20489    case $host_os in
20490      openbsd2.[89] | openbsd2.[89].*)
20491	shlibpath_overrides_runpath=no
20492	;;
20493      *)
20494	shlibpath_overrides_runpath=yes
20495	;;
20496      esac
20497  else
20498    shlibpath_overrides_runpath=yes
20499  fi
20500  ;;
20501
20502os2*)
20503  libname_spec='$name'
20504  shrext_cmds=".dll"
20505  need_lib_prefix=no
20506  library_names_spec='$libname${shared_ext} $libname.a'
20507  dynamic_linker='OS/2 ld.exe'
20508  shlibpath_var=LIBPATH
20509  ;;
20510
20511osf3* | osf4* | osf5*)
20512  version_type=osf
20513  need_lib_prefix=no
20514  need_version=no
20515  soname_spec='${libname}${release}${shared_ext}$major'
20516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20517  shlibpath_var=LD_LIBRARY_PATH
20518  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20519  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20520  ;;
20521
20522sco3.2v5*)
20523  version_type=osf
20524  soname_spec='${libname}${release}${shared_ext}$major'
20525  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20526  shlibpath_var=LD_LIBRARY_PATH
20527  ;;
20528
20529solaris*)
20530  version_type=linux
20531  need_lib_prefix=no
20532  need_version=no
20533  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20534  soname_spec='${libname}${release}${shared_ext}$major'
20535  shlibpath_var=LD_LIBRARY_PATH
20536  shlibpath_overrides_runpath=yes
20537  hardcode_into_libs=yes
20538  # ldd complains unless libraries are executable
20539  postinstall_cmds='chmod +x $lib'
20540  ;;
20541
20542sunos4*)
20543  version_type=sunos
20544  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20545  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20546  shlibpath_var=LD_LIBRARY_PATH
20547  shlibpath_overrides_runpath=yes
20548  if test "$with_gnu_ld" = yes; then
20549    need_lib_prefix=no
20550  fi
20551  need_version=yes
20552  ;;
20553
20554sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20555  version_type=linux
20556  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20557  soname_spec='${libname}${release}${shared_ext}$major'
20558  shlibpath_var=LD_LIBRARY_PATH
20559  case $host_vendor in
20560    sni)
20561      shlibpath_overrides_runpath=no
20562      need_lib_prefix=no
20563      export_dynamic_flag_spec='${wl}-Blargedynsym'
20564      runpath_var=LD_RUN_PATH
20565      ;;
20566    siemens)
20567      need_lib_prefix=no
20568      ;;
20569    motorola)
20570      need_lib_prefix=no
20571      need_version=no
20572      shlibpath_overrides_runpath=no
20573      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20574      ;;
20575  esac
20576  ;;
20577
20578sysv4*MP*)
20579  if test -d /usr/nec ;then
20580    version_type=linux
20581    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20582    soname_spec='$libname${shared_ext}.$major'
20583    shlibpath_var=LD_LIBRARY_PATH
20584  fi
20585  ;;
20586
20587uts4*)
20588  version_type=linux
20589  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20590  soname_spec='${libname}${release}${shared_ext}$major'
20591  shlibpath_var=LD_LIBRARY_PATH
20592  ;;
20593
20594*)
20595  dynamic_linker=no
20596  ;;
20597esac
20598echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20599echo "${ECHO_T}$dynamic_linker" >&6
20600test "$dynamic_linker" = no && can_build_shared=no
20601
20602echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20603echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20604hardcode_action_F77=
20605if test -n "$hardcode_libdir_flag_spec_F77" || \
20606   test -n "$runpath_var_F77" || \
20607   test "X$hardcode_automatic_F77" = "Xyes" ; then
20608
20609  # We can hardcode non-existant directories.
20610  if test "$hardcode_direct_F77" != no &&
20611     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20612     # have to relink, otherwise we might link with an installed library
20613     # when we should be linking with a yet-to-be-installed one
20614     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20615     test "$hardcode_minus_L_F77" != no; then
20616    # Linking always hardcodes the temporary library directory.
20617    hardcode_action_F77=relink
20618  else
20619    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20620    hardcode_action_F77=immediate
20621  fi
20622else
20623  # We cannot hardcode anything, or else we can only hardcode existing
20624  # directories.
20625  hardcode_action_F77=unsupported
20626fi
20627echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20628echo "${ECHO_T}$hardcode_action_F77" >&6
20629
20630if test "$hardcode_action_F77" = relink; then
20631  # Fast installation is not supported
20632  enable_fast_install=no
20633elif test "$shlibpath_overrides_runpath" = yes ||
20634     test "$enable_shared" = no; then
20635  # Fast installation is not necessary
20636  enable_fast_install=needless
20637fi
20638
20639striplib=
20640old_striplib=
20641echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20642echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20643if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20644  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20645  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20646  echo "$as_me:$LINENO: result: yes" >&5
20647echo "${ECHO_T}yes" >&6
20648else
20649# FIXME - insert some real tests, host_os isn't really good enough
20650  case $host_os in
20651   darwin*)
20652       if test -n "$STRIP" ; then
20653         striplib="$STRIP -x"
20654         echo "$as_me:$LINENO: result: yes" >&5
20655echo "${ECHO_T}yes" >&6
20656       else
20657  echo "$as_me:$LINENO: result: no" >&5
20658echo "${ECHO_T}no" >&6
20659fi
20660       ;;
20661   *)
20662  echo "$as_me:$LINENO: result: no" >&5
20663echo "${ECHO_T}no" >&6
20664    ;;
20665  esac
20666fi
20667
20668
20669
20670# The else clause should only fire when bootstrapping the
20671# libtool distribution, otherwise you forgot to ship ltmain.sh
20672# with your package, and you will get complaints that there are
20673# no rules to generate ltmain.sh.
20674if test -f "$ltmain"; then
20675  # See if we are running on zsh, and set the options which allow our commands through
20676  # without removal of \ escapes.
20677  if test -n "${ZSH_VERSION+set}" ; then
20678    setopt NO_GLOB_SUBST
20679  fi
20680  # Now quote all the things that may contain metacharacters while being
20681  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20682  # variables and quote the copies for generation of the libtool script.
20683  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20684    SED SHELL STRIP \
20685    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20686    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20687    deplibs_check_method reload_flag reload_cmds need_locks \
20688    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20689    lt_cv_sys_global_symbol_to_c_name_address \
20690    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20691    old_postinstall_cmds old_postuninstall_cmds \
20692    compiler_F77 \
20693    CC_F77 \
20694    LD_F77 \
20695    lt_prog_compiler_wl_F77 \
20696    lt_prog_compiler_pic_F77 \
20697    lt_prog_compiler_static_F77 \
20698    lt_prog_compiler_no_builtin_flag_F77 \
20699    export_dynamic_flag_spec_F77 \
20700    thread_safe_flag_spec_F77 \
20701    whole_archive_flag_spec_F77 \
20702    enable_shared_with_static_runtimes_F77 \
20703    old_archive_cmds_F77 \
20704    old_archive_from_new_cmds_F77 \
20705    predep_objects_F77 \
20706    postdep_objects_F77 \
20707    predeps_F77 \
20708    postdeps_F77 \
20709    compiler_lib_search_path_F77 \
20710    archive_cmds_F77 \
20711    archive_expsym_cmds_F77 \
20712    postinstall_cmds_F77 \
20713    postuninstall_cmds_F77 \
20714    old_archive_from_expsyms_cmds_F77 \
20715    allow_undefined_flag_F77 \
20716    no_undefined_flag_F77 \
20717    export_symbols_cmds_F77 \
20718    hardcode_libdir_flag_spec_F77 \
20719    hardcode_libdir_flag_spec_ld_F77 \
20720    hardcode_libdir_separator_F77 \
20721    hardcode_automatic_F77 \
20722    module_cmds_F77 \
20723    module_expsym_cmds_F77 \
20724    lt_cv_prog_compiler_c_o_F77 \
20725    exclude_expsyms_F77 \
20726    include_expsyms_F77; do
20727
20728    case $var in
20729    old_archive_cmds_F77 | \
20730    old_archive_from_new_cmds_F77 | \
20731    archive_cmds_F77 | \
20732    archive_expsym_cmds_F77 | \
20733    module_cmds_F77 | \
20734    module_expsym_cmds_F77 | \
20735    old_archive_from_expsyms_cmds_F77 | \
20736    export_symbols_cmds_F77 | \
20737    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20738    postinstall_cmds | postuninstall_cmds | \
20739    old_postinstall_cmds | old_postuninstall_cmds | \
20740    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20741      # Double-quote double-evaled strings.
20742      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20743      ;;
20744    *)
20745      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20746      ;;
20747    esac
20748  done
20749
20750  case $lt_echo in
20751  *'\$0 --fallback-echo"')
20752    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20753    ;;
20754  esac
20755
20756cfgfile="$ofile"
20757
20758  cat <<__EOF__ >> "$cfgfile"
20759# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20760
20761# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20762
20763# Shell to use when invoking shell scripts.
20764SHELL=$lt_SHELL
20765
20766# Whether or not to build shared libraries.
20767build_libtool_libs=$enable_shared
20768
20769# Whether or not to build static libraries.
20770build_old_libs=$enable_static
20771
20772# Whether or not to add -lc for building shared libraries.
20773build_libtool_need_lc=$archive_cmds_need_lc_F77
20774
20775# Whether or not to disallow shared libs when runtime libs are static
20776allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20777
20778# Whether or not to optimize for fast installation.
20779fast_install=$enable_fast_install
20780
20781# The host system.
20782host_alias=$host_alias
20783host=$host
20784
20785# An echo program that does not interpret backslashes.
20786echo=$lt_echo
20787
20788# The archiver.
20789AR=$lt_AR
20790AR_FLAGS=$lt_AR_FLAGS
20791
20792# A C compiler.
20793LTCC=$lt_LTCC
20794
20795# A language-specific compiler.
20796CC=$lt_compiler_F77
20797
20798# Is the compiler the GNU C compiler?
20799with_gcc=$GCC_F77
20800
20801# An ERE matcher.
20802EGREP=$lt_EGREP
20803
20804# The linker used to build libraries.
20805LD=$lt_LD_F77
20806
20807# Whether we need hard or soft links.
20808LN_S=$lt_LN_S
20809
20810# A BSD-compatible nm program.
20811NM=$lt_NM
20812
20813# A symbol stripping program
20814STRIP=$lt_STRIP
20815
20816# Used to examine libraries when file_magic_cmd begins "file"
20817MAGIC_CMD=$MAGIC_CMD
20818
20819# Used on cygwin: DLL creation program.
20820DLLTOOL="$DLLTOOL"
20821
20822# Used on cygwin: object dumper.
20823OBJDUMP="$OBJDUMP"
20824
20825# Used on cygwin: assembler.
20826AS="$AS"
20827
20828# The name of the directory that contains temporary libtool files.
20829objdir=$objdir
20830
20831# How to create reloadable object files.
20832reload_flag=$lt_reload_flag
20833reload_cmds=$lt_reload_cmds
20834
20835# How to pass a linker flag through the compiler.
20836wl=$lt_lt_prog_compiler_wl_F77
20837
20838# Object file suffix (normally "o").
20839objext="$ac_objext"
20840
20841# Old archive suffix (normally "a").
20842libext="$libext"
20843
20844# Shared library suffix (normally ".so").
20845shrext_cmds='$shrext_cmds'
20846
20847# Executable file suffix (normally "").
20848exeext="$exeext"
20849
20850# Additional compiler flags for building library objects.
20851pic_flag=$lt_lt_prog_compiler_pic_F77
20852pic_mode=$pic_mode
20853
20854# What is the maximum length of a command?
20855max_cmd_len=$lt_cv_sys_max_cmd_len
20856
20857# Does compiler simultaneously support -c and -o options?
20858compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20859
20860# Must we lock files when doing compilation ?
20861need_locks=$lt_need_locks
20862
20863# Do we need the lib prefix for modules?
20864need_lib_prefix=$need_lib_prefix
20865
20866# Do we need a version for libraries?
20867need_version=$need_version
20868
20869# Whether dlopen is supported.
20870dlopen_support=$enable_dlopen
20871
20872# Whether dlopen of programs is supported.
20873dlopen_self=$enable_dlopen_self
20874
20875# Whether dlopen of statically linked programs is supported.
20876dlopen_self_static=$enable_dlopen_self_static
20877
20878# Compiler flag to prevent dynamic linking.
20879link_static_flag=$lt_lt_prog_compiler_static_F77
20880
20881# Compiler flag to turn off builtin functions.
20882no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20883
20884# Compiler flag to allow reflexive dlopens.
20885export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20886
20887# Compiler flag to generate shared objects directly from archives.
20888whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20889
20890# Compiler flag to generate thread-safe objects.
20891thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20892
20893# Library versioning type.
20894version_type=$version_type
20895
20896# Format of library name prefix.
20897libname_spec=$lt_libname_spec
20898
20899# List of archive names.  First name is the real one, the rest are links.
20900# The last name is the one that the linker finds with -lNAME.
20901library_names_spec=$lt_library_names_spec
20902
20903# The coded name of the library, if different from the real name.
20904soname_spec=$lt_soname_spec
20905
20906# Commands used to build and install an old-style archive.
20907RANLIB=$lt_RANLIB
20908old_archive_cmds=$lt_old_archive_cmds_F77
20909old_postinstall_cmds=$lt_old_postinstall_cmds
20910old_postuninstall_cmds=$lt_old_postuninstall_cmds
20911
20912# Create an old-style archive from a shared archive.
20913old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20914
20915# Create a temporary old-style archive to link instead of a shared archive.
20916old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20917
20918# Commands used to build and install a shared archive.
20919archive_cmds=$lt_archive_cmds_F77
20920archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20921postinstall_cmds=$lt_postinstall_cmds
20922postuninstall_cmds=$lt_postuninstall_cmds
20923
20924# Commands used to build a loadable module (assumed same as above if empty)
20925module_cmds=$lt_module_cmds_F77
20926module_expsym_cmds=$lt_module_expsym_cmds_F77
20927
20928# Commands to strip libraries.
20929old_striplib=$lt_old_striplib
20930striplib=$lt_striplib
20931
20932# Dependencies to place before the objects being linked to create a
20933# shared library.
20934predep_objects=$lt_predep_objects_F77
20935
20936# Dependencies to place after the objects being linked to create a
20937# shared library.
20938postdep_objects=$lt_postdep_objects_F77
20939
20940# Dependencies to place before the objects being linked to create a
20941# shared library.
20942predeps=$lt_predeps_F77
20943
20944# Dependencies to place after the objects being linked to create a
20945# shared library.
20946postdeps=$lt_postdeps_F77
20947
20948# The library search path used internally by the compiler when linking
20949# a shared library.
20950compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20951
20952# Method to check whether dependent libraries are shared objects.
20953deplibs_check_method=$lt_deplibs_check_method
20954
20955# Command to use when deplibs_check_method == file_magic.
20956file_magic_cmd=$lt_file_magic_cmd
20957
20958# Flag that allows shared libraries with undefined symbols to be built.
20959allow_undefined_flag=$lt_allow_undefined_flag_F77
20960
20961# Flag that forces no undefined symbols.
20962no_undefined_flag=$lt_no_undefined_flag_F77
20963
20964# Commands used to finish a libtool library installation in a directory.
20965finish_cmds=$lt_finish_cmds
20966
20967# Same as above, but a single script fragment to be evaled but not shown.
20968finish_eval=$lt_finish_eval
20969
20970# Take the output of nm and produce a listing of raw symbols and C names.
20971global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20972
20973# Transform the output of nm in a proper C declaration
20974global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20975
20976# Transform the output of nm in a C name address pair
20977global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20978
20979# This is the shared library runtime path variable.
20980runpath_var=$runpath_var
20981
20982# This is the shared library path variable.
20983shlibpath_var=$shlibpath_var
20984
20985# Is shlibpath searched before the hard-coded library search path?
20986shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20987
20988# How to hardcode a shared library path into an executable.
20989hardcode_action=$hardcode_action_F77
20990
20991# Whether we should hardcode library paths into libraries.
20992hardcode_into_libs=$hardcode_into_libs
20993
20994# Flag to hardcode \$libdir into a binary during linking.
20995# This must work even if \$libdir does not exist.
20996hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20997
20998# If ld is used when linking, flag to hardcode \$libdir into
20999# a binary during linking. This must work even if \$libdir does
21000# not exist.
21001hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21002
21003# Whether we need a single -rpath flag with a separated argument.
21004hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21005
21006# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21007# resulting binary.
21008hardcode_direct=$hardcode_direct_F77
21009
21010# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21011# resulting binary.
21012hardcode_minus_L=$hardcode_minus_L_F77
21013
21014# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21015# the resulting binary.
21016hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21017
21018# Set to yes if building a shared library automatically hardcodes DIR into the library
21019# and all subsequent libraries and executables linked against it.
21020hardcode_automatic=$hardcode_automatic_F77
21021
21022# Variables whose values should be saved in libtool wrapper scripts and
21023# restored at relink time.
21024variables_saved_for_relink="$variables_saved_for_relink"
21025
21026# Whether libtool must link a program against all its dependency libraries.
21027link_all_deplibs=$link_all_deplibs_F77
21028
21029# Compile-time system search path for libraries
21030sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21031
21032# Run-time system search path for libraries
21033sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21034
21035# Fix the shell variable \$srcfile for the compiler.
21036fix_srcfile_path="$fix_srcfile_path_F77"
21037
21038# Set to yes if exported symbols are required.
21039always_export_symbols=$always_export_symbols_F77
21040
21041# The commands to list exported symbols.
21042export_symbols_cmds=$lt_export_symbols_cmds_F77
21043
21044# The commands to extract the exported symbol list from a shared archive.
21045extract_expsyms_cmds=$lt_extract_expsyms_cmds
21046
21047# Symbols that should not be listed in the preloaded symbols.
21048exclude_expsyms=$lt_exclude_expsyms_F77
21049
21050# Symbols that must always be exported.
21051include_expsyms=$lt_include_expsyms_F77
21052
21053# ### END LIBTOOL TAG CONFIG: $tagname
21054
21055__EOF__
21056
21057
21058else
21059  # If there is no Makefile yet, we rely on a make rule to execute
21060  # `config.status --recheck' to rerun these tests and create the
21061  # libtool script then.
21062  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21063  if test -f "$ltmain_in"; then
21064    test -f Makefile && make "$ltmain"
21065  fi
21066fi
21067
21068
21069ac_ext=c
21070ac_cpp='$CPP $CPPFLAGS'
21071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21073ac_compiler_gnu=$ac_cv_c_compiler_gnu
21074
21075CC="$lt_save_CC"
21076
21077	else
21078	  tagname=""
21079	fi
21080	;;
21081
21082      GCJ)
21083	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21084	  ac_ext=c
21085ac_cpp='$CPP $CPPFLAGS'
21086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21088ac_compiler_gnu=$ac_cv_c_compiler_gnu
21089
21090
21091# Source file extension for Java test sources.
21092ac_ext=java
21093
21094# Object file extension for compiled Java test sources.
21095objext=o
21096objext_GCJ=$objext
21097
21098# Code to be used in simple compile tests
21099lt_simple_compile_test_code="class foo {}\n"
21100
21101# Code to be used in simple link tests
21102lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21103
21104# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21105
21106# If no C compiler was specified, use CC.
21107LTCC=${LTCC-"$CC"}
21108
21109# Allow CC to be a program name with arguments.
21110compiler=$CC
21111
21112
21113# Allow CC to be a program name with arguments.
21114lt_save_CC="$CC"
21115CC=${GCJ-"gcj"}
21116compiler=$CC
21117compiler_GCJ=$CC
21118
21119# GCJ did not exist at the time GCC didn't implicitly link libc in.
21120archive_cmds_need_lc_GCJ=no
21121
21122
21123lt_prog_compiler_no_builtin_flag_GCJ=
21124
21125if test "$GCC" = yes; then
21126  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21127
21128
21129echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21130echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21131if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21132  echo $ECHO_N "(cached) $ECHO_C" >&6
21133else
21134  lt_cv_prog_compiler_rtti_exceptions=no
21135  ac_outfile=conftest.$ac_objext
21136   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21137   lt_compiler_flag="-fno-rtti -fno-exceptions"
21138   # Insert the option either (1) after the last *FLAGS variable, or
21139   # (2) before a word containing "conftest.", or (3) at the end.
21140   # Note that $ac_compile itself does not contain backslashes and begins
21141   # with a dollar sign (not a hyphen), so the echo should work correctly.
21142   # The option is referenced via a variable to avoid confusing sed.
21143   lt_compile=`echo "$ac_compile" | $SED \
21144   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21145   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21146   -e 's:$: $lt_compiler_flag:'`
21147   (eval echo "\"\$as_me:21147: $lt_compile\"" >&5)
21148   (eval "$lt_compile" 2>conftest.err)
21149   ac_status=$?
21150   cat conftest.err >&5
21151   echo "$as_me:21151: \$? = $ac_status" >&5
21152   if (exit $ac_status) && test -s "$ac_outfile"; then
21153     # The compiler can only warn and ignore the option if not recognized
21154     # So say no if there are warnings
21155     if test ! -s conftest.err; then
21156       lt_cv_prog_compiler_rtti_exceptions=yes
21157     fi
21158   fi
21159   $rm conftest*
21160
21161fi
21162echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21163echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21164
21165if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21166    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21167else
21168    :
21169fi
21170
21171fi
21172
21173lt_prog_compiler_wl_GCJ=
21174lt_prog_compiler_pic_GCJ=
21175lt_prog_compiler_static_GCJ=
21176
21177echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21178echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21179
21180  if test "$GCC" = yes; then
21181    lt_prog_compiler_wl_GCJ='-Wl,'
21182    lt_prog_compiler_static_GCJ='-static'
21183
21184    case $host_os in
21185      aix*)
21186      # All AIX code is PIC.
21187      if test "$host_cpu" = ia64; then
21188	# AIX 5 now supports IA64 processor
21189	lt_prog_compiler_static_GCJ='-Bstatic'
21190      fi
21191      ;;
21192
21193    amigaos*)
21194      # FIXME: we need at least 68020 code to build shared libraries, but
21195      # adding the `-m68020' flag to GCC prevents building anything better,
21196      # like `-m68040'.
21197      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21198      ;;
21199
21200    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21201      # PIC is the default for these OSes.
21202      ;;
21203
21204    mingw* | pw32* | os2*)
21205      # This hack is so that the source file can tell whether it is being
21206      # built for inclusion in a dll (and should export symbols for example).
21207      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21208      ;;
21209
21210    darwin* | rhapsody*)
21211      # PIC is the default on this platform
21212      # Common symbols not allowed in MH_DYLIB files
21213      lt_prog_compiler_pic_GCJ='-fno-common'
21214      ;;
21215
21216    msdosdjgpp*)
21217      # Just because we use GCC doesn't mean we suddenly get shared libraries
21218      # on systems that don't support them.
21219      lt_prog_compiler_can_build_shared_GCJ=no
21220      enable_shared=no
21221      ;;
21222
21223    sysv4*MP*)
21224      if test -d /usr/nec; then
21225	lt_prog_compiler_pic_GCJ=-Kconform_pic
21226      fi
21227      ;;
21228
21229    hpux*)
21230      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21231      # not for PA HP-UX.
21232      case "$host_cpu" in
21233      hppa*64*|ia64*)
21234	# +Z the default
21235	;;
21236      *)
21237	lt_prog_compiler_pic_GCJ='-fPIC'
21238	;;
21239      esac
21240      ;;
21241
21242    *)
21243      lt_prog_compiler_pic_GCJ='-fPIC'
21244      ;;
21245    esac
21246  else
21247    # PORTME Check for flag to pass linker flags through the system compiler.
21248    case $host_os in
21249    aix*)
21250      lt_prog_compiler_wl_GCJ='-Wl,'
21251      if test "$host_cpu" = ia64; then
21252	# AIX 5 now supports IA64 processor
21253	lt_prog_compiler_static_GCJ='-Bstatic'
21254      else
21255	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21256      fi
21257      ;;
21258      darwin*)
21259        # PIC is the default on this platform
21260        # Common symbols not allowed in MH_DYLIB files
21261       case "$cc_basename" in
21262         xlc*)
21263         lt_prog_compiler_pic_GCJ='-qnocommon'
21264         lt_prog_compiler_wl_GCJ='-Wl,'
21265         ;;
21266       esac
21267       ;;
21268
21269    mingw* | pw32* | os2*)
21270      # This hack is so that the source file can tell whether it is being
21271      # built for inclusion in a dll (and should export symbols for example).
21272      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21273      ;;
21274
21275    hpux9* | hpux10* | hpux11*)
21276      lt_prog_compiler_wl_GCJ='-Wl,'
21277      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21278      # not for PA HP-UX.
21279      case "$host_cpu" in
21280      hppa*64*|ia64*)
21281	# +Z the default
21282	;;
21283      *)
21284	lt_prog_compiler_pic_GCJ='+Z'
21285	;;
21286      esac
21287      # Is there a better lt_prog_compiler_static that works with the bundled CC?
21288      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21289      ;;
21290
21291    irix5* | irix6* | nonstopux*)
21292      lt_prog_compiler_wl_GCJ='-Wl,'
21293      # PIC (with -KPIC) is the default.
21294      lt_prog_compiler_static_GCJ='-non_shared'
21295      ;;
21296
21297    newsos6)
21298      lt_prog_compiler_pic_GCJ='-KPIC'
21299      lt_prog_compiler_static_GCJ='-Bstatic'
21300      ;;
21301
21302    linux*)
21303      case $CC in
21304      icc* | ecc*)
21305	lt_prog_compiler_wl_GCJ='-Wl,'
21306	lt_prog_compiler_pic_GCJ='-KPIC'
21307	lt_prog_compiler_static_GCJ='-static'
21308        ;;
21309      ccc*)
21310        lt_prog_compiler_wl_GCJ='-Wl,'
21311        # All Alpha code is PIC.
21312        lt_prog_compiler_static_GCJ='-non_shared'
21313        ;;
21314      esac
21315      ;;
21316
21317    osf3* | osf4* | osf5*)
21318      lt_prog_compiler_wl_GCJ='-Wl,'
21319      # All OSF/1 code is PIC.
21320      lt_prog_compiler_static_GCJ='-non_shared'
21321      ;;
21322
21323    sco3.2v5*)
21324      lt_prog_compiler_pic_GCJ='-Kpic'
21325      lt_prog_compiler_static_GCJ='-dn'
21326      ;;
21327
21328    solaris*)
21329      lt_prog_compiler_wl_GCJ='-Wl,'
21330      lt_prog_compiler_pic_GCJ='-KPIC'
21331      lt_prog_compiler_static_GCJ='-Bstatic'
21332      ;;
21333
21334    sunos4*)
21335      lt_prog_compiler_wl_GCJ='-Qoption ld '
21336      lt_prog_compiler_pic_GCJ='-PIC'
21337      lt_prog_compiler_static_GCJ='-Bstatic'
21338      ;;
21339
21340    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21341      lt_prog_compiler_wl_GCJ='-Wl,'
21342      lt_prog_compiler_pic_GCJ='-KPIC'
21343      lt_prog_compiler_static_GCJ='-Bstatic'
21344      ;;
21345
21346    sysv4*MP*)
21347      if test -d /usr/nec ;then
21348	lt_prog_compiler_pic_GCJ='-Kconform_pic'
21349	lt_prog_compiler_static_GCJ='-Bstatic'
21350      fi
21351      ;;
21352
21353    uts4*)
21354      lt_prog_compiler_pic_GCJ='-pic'
21355      lt_prog_compiler_static_GCJ='-Bstatic'
21356      ;;
21357
21358    *)
21359      lt_prog_compiler_can_build_shared_GCJ=no
21360      ;;
21361    esac
21362  fi
21363
21364echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21365echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21366
21367#
21368# Check to make sure the PIC flag actually works.
21369#
21370if test -n "$lt_prog_compiler_pic_GCJ"; then
21371
21372echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21373echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21374if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21375  echo $ECHO_N "(cached) $ECHO_C" >&6
21376else
21377  lt_prog_compiler_pic_works_GCJ=no
21378  ac_outfile=conftest.$ac_objext
21379   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21380   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21381   # Insert the option either (1) after the last *FLAGS variable, or
21382   # (2) before a word containing "conftest.", or (3) at the end.
21383   # Note that $ac_compile itself does not contain backslashes and begins
21384   # with a dollar sign (not a hyphen), so the echo should work correctly.
21385   # The option is referenced via a variable to avoid confusing sed.
21386   lt_compile=`echo "$ac_compile" | $SED \
21387   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21388   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21389   -e 's:$: $lt_compiler_flag:'`
21390   (eval echo "\"\$as_me:21390: $lt_compile\"" >&5)
21391   (eval "$lt_compile" 2>conftest.err)
21392   ac_status=$?
21393   cat conftest.err >&5
21394   echo "$as_me:21394: \$? = $ac_status" >&5
21395   if (exit $ac_status) && test -s "$ac_outfile"; then
21396     # The compiler can only warn and ignore the option if not recognized
21397     # So say no if there are warnings
21398     if test ! -s conftest.err; then
21399       lt_prog_compiler_pic_works_GCJ=yes
21400     fi
21401   fi
21402   $rm conftest*
21403
21404fi
21405echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21406echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21407
21408if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21409    case $lt_prog_compiler_pic_GCJ in
21410     "" | " "*) ;;
21411     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21412     esac
21413else
21414    lt_prog_compiler_pic_GCJ=
21415     lt_prog_compiler_can_build_shared_GCJ=no
21416fi
21417
21418fi
21419case "$host_os" in
21420  # For platforms which do not support PIC, -DPIC is meaningless:
21421  *djgpp*)
21422    lt_prog_compiler_pic_GCJ=
21423    ;;
21424  *)
21425    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21426    ;;
21427esac
21428
21429echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21430echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21431if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21432  echo $ECHO_N "(cached) $ECHO_C" >&6
21433else
21434  lt_cv_prog_compiler_c_o_GCJ=no
21435   $rm -r conftest 2>/dev/null
21436   mkdir conftest
21437   cd conftest
21438   mkdir out
21439   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21440
21441   lt_compiler_flag="-o out/conftest2.$ac_objext"
21442   # Insert the option either (1) after the last *FLAGS variable, or
21443   # (2) before a word containing "conftest.", or (3) at the end.
21444   # Note that $ac_compile itself does not contain backslashes and begins
21445   # with a dollar sign (not a hyphen), so the echo should work correctly.
21446   lt_compile=`echo "$ac_compile" | $SED \
21447   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21448   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21449   -e 's:$: $lt_compiler_flag:'`
21450   (eval echo "\"\$as_me:21450: $lt_compile\"" >&5)
21451   (eval "$lt_compile" 2>out/conftest.err)
21452   ac_status=$?
21453   cat out/conftest.err >&5
21454   echo "$as_me:21454: \$? = $ac_status" >&5
21455   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21456   then
21457     # The compiler can only warn and ignore the option if not recognized
21458     # So say no if there are warnings
21459     if test ! -s out/conftest.err; then
21460       lt_cv_prog_compiler_c_o_GCJ=yes
21461     fi
21462   fi
21463   chmod u+w .
21464   $rm conftest*
21465   # SGI C++ compiler will create directory out/ii_files/ for
21466   # template instantiation
21467   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21468   $rm out/* && rmdir out
21469   cd ..
21470   rmdir conftest
21471   $rm conftest*
21472
21473fi
21474echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21475echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21476
21477
21478hard_links="nottested"
21479if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21480  # do not overwrite the value of need_locks provided by the user
21481  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21482echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21483  hard_links=yes
21484  $rm conftest*
21485  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21486  touch conftest.a
21487  ln conftest.a conftest.b 2>&5 || hard_links=no
21488  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21489  echo "$as_me:$LINENO: result: $hard_links" >&5
21490echo "${ECHO_T}$hard_links" >&6
21491  if test "$hard_links" = no; then
21492    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21493echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21494    need_locks=warn
21495  fi
21496else
21497  need_locks=no
21498fi
21499
21500echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21501echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21502
21503  runpath_var=
21504  allow_undefined_flag_GCJ=
21505  enable_shared_with_static_runtimes_GCJ=no
21506  archive_cmds_GCJ=
21507  archive_expsym_cmds_GCJ=
21508  old_archive_From_new_cmds_GCJ=
21509  old_archive_from_expsyms_cmds_GCJ=
21510  export_dynamic_flag_spec_GCJ=
21511  whole_archive_flag_spec_GCJ=
21512  thread_safe_flag_spec_GCJ=
21513  hardcode_libdir_flag_spec_GCJ=
21514  hardcode_libdir_flag_spec_ld_GCJ=
21515  hardcode_libdir_separator_GCJ=
21516  hardcode_direct_GCJ=no
21517  hardcode_minus_L_GCJ=no
21518  hardcode_shlibpath_var_GCJ=unsupported
21519  link_all_deplibs_GCJ=unknown
21520  hardcode_automatic_GCJ=no
21521  module_cmds_GCJ=
21522  module_expsym_cmds_GCJ=
21523  always_export_symbols_GCJ=no
21524  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21525  # include_expsyms should be a list of space-separated symbols to be *always*
21526  # included in the symbol list
21527  include_expsyms_GCJ=
21528  # exclude_expsyms can be an extended regexp of symbols to exclude
21529  # it will be wrapped by ` (' and `)$', so one must not match beginning or
21530  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21531  # as well as any symbol that contains `d'.
21532  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21533  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21534  # platforms (ab)use it in PIC code, but their linkers get confused if
21535  # the symbol is explicitly referenced.  Since portable code cannot
21536  # rely on this symbol name, it's probably fine to never include it in
21537  # preloaded symbol tables.
21538  extract_expsyms_cmds=
21539
21540  case $host_os in
21541  cygwin* | mingw* | pw32*)
21542    # FIXME: the MSVC++ port hasn't been tested in a loooong time
21543    # When not using gcc, we currently assume that we are using
21544    # Microsoft Visual C++.
21545    if test "$GCC" != yes; then
21546      with_gnu_ld=no
21547    fi
21548    ;;
21549  openbsd*)
21550    with_gnu_ld=no
21551    ;;
21552  esac
21553
21554  ld_shlibs_GCJ=yes
21555  if test "$with_gnu_ld" = yes; then
21556    # If archive_cmds runs LD, not CC, wlarc should be empty
21557    wlarc='${wl}'
21558
21559    # See if GNU ld supports shared libraries.
21560    case $host_os in
21561    aix3* | aix4* | aix5*)
21562      # On AIX/PPC, the GNU linker is very broken
21563      if test "$host_cpu" != ia64; then
21564	ld_shlibs_GCJ=no
21565	cat <<EOF 1>&2
21566
21567*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21568*** to be unable to reliably create shared libraries on AIX.
21569*** Therefore, libtool is disabling shared libraries support.  If you
21570*** really care for shared libraries, you may want to modify your PATH
21571*** so that a non-GNU linker is found, and then restart.
21572
21573EOF
21574      fi
21575      ;;
21576
21577    amigaos*)
21578      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)'
21579      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21580      hardcode_minus_L_GCJ=yes
21581
21582      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21583      # that the semantics of dynamic libraries on AmigaOS, at least up
21584      # to version 4, is to share data among multiple programs linked
21585      # with the same dynamic library.  Since this doesn't match the
21586      # behavior of shared libraries on other platforms, we can't use
21587      # them.
21588      ld_shlibs_GCJ=no
21589      ;;
21590
21591    beos*)
21592      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21593	allow_undefined_flag_GCJ=unsupported
21594	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21595	# support --undefined.  This deserves some investigation.  FIXME
21596	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21597      else
21598	ld_shlibs_GCJ=no
21599      fi
21600      ;;
21601
21602    cygwin* | mingw* | pw32*)
21603      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21604      # as there is no search path for DLLs.
21605      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21606      allow_undefined_flag_GCJ=unsupported
21607      always_export_symbols_GCJ=no
21608      enable_shared_with_static_runtimes_GCJ=yes
21609      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21610
21611      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21612        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21613	# If the export-symbols file already is a .def file (1st line
21614	# is EXPORTS), use it as is; otherwise, prepend...
21615	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21616	  cp $export_symbols $output_objdir/$soname.def;
21617	else
21618	  echo EXPORTS > $output_objdir/$soname.def;
21619	  cat $export_symbols >> $output_objdir/$soname.def;
21620	fi~
21621	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21622      else
21623	ld_shlibs=no
21624      fi
21625      ;;
21626
21627    netbsd*)
21628      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21629	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21630	wlarc=
21631      else
21632	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21633	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21634      fi
21635      ;;
21636
21637    solaris* | sysv5*)
21638      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21639	ld_shlibs_GCJ=no
21640	cat <<EOF 1>&2
21641
21642*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21643*** create shared libraries on Solaris systems.  Therefore, libtool
21644*** is disabling shared libraries support.  We urge you to upgrade GNU
21645*** binutils to release 2.9.1 or newer.  Another option is to modify
21646*** your PATH or compiler configuration so that the native linker is
21647*** used, and then restart.
21648
21649EOF
21650      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21651	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21652	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21653      else
21654	ld_shlibs_GCJ=no
21655      fi
21656      ;;
21657
21658    sunos4*)
21659      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21660      wlarc=
21661      hardcode_direct_GCJ=yes
21662      hardcode_shlibpath_var_GCJ=no
21663      ;;
21664
21665  linux*)
21666    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21667        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21668	archive_cmds_GCJ="$tmp_archive_cmds"
21669      supports_anon_versioning=no
21670      case `$LD -v 2>/dev/null` in
21671        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21672        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21673        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21674        *\ 2.11.*) ;; # other 2.11 versions
21675        *) supports_anon_versioning=yes ;;
21676      esac
21677      if test $supports_anon_versioning = yes; then
21678        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21679cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21680$echo "local: *; };" >> $output_objdir/$libname.ver~
21681        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21682      else
21683        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21684      fi
21685    else
21686      ld_shlibs_GCJ=no
21687    fi
21688    ;;
21689
21690    *)
21691      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21692	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21693	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21694      else
21695	ld_shlibs_GCJ=no
21696      fi
21697      ;;
21698    esac
21699
21700    if test "$ld_shlibs_GCJ" = yes; then
21701      runpath_var=LD_RUN_PATH
21702      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21703      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21704      # ancient GNU ld didn't support --whole-archive et. al.
21705      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21706 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21707      else
21708  	whole_archive_flag_spec_GCJ=
21709      fi
21710    fi
21711  else
21712    # PORTME fill in a description of your system's linker (not GNU ld)
21713    case $host_os in
21714    aix3*)
21715      allow_undefined_flag_GCJ=unsupported
21716      always_export_symbols_GCJ=yes
21717      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'
21718      # Note: this linker hardcodes the directories in LIBPATH if there
21719      # are no directories specified by -L.
21720      hardcode_minus_L_GCJ=yes
21721      if test "$GCC" = yes && test -z "$link_static_flag"; then
21722	# Neither direct hardcoding nor static linking is supported with a
21723	# broken collect2.
21724	hardcode_direct_GCJ=unsupported
21725      fi
21726      ;;
21727
21728    aix4* | aix5*)
21729      if test "$host_cpu" = ia64; then
21730	# On IA64, the linker does run time linking by default, so we don't
21731	# have to do anything special.
21732	aix_use_runtimelinking=no
21733	exp_sym_flag='-Bexport'
21734	no_entry_flag=""
21735      else
21736	# If we're using GNU nm, then we don't want the "-C" option.
21737	# -C means demangle to AIX nm, but means don't demangle with GNU nm
21738	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21739	  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'
21740	else
21741	  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'
21742	fi
21743	aix_use_runtimelinking=no
21744
21745	# Test if we are trying to use run time linking or normal
21746	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
21747	# need to do runtime linking.
21748	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21749	  for ld_flag in $LDFLAGS; do
21750  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21751  	    aix_use_runtimelinking=yes
21752  	    break
21753  	  fi
21754	  done
21755	esac
21756
21757	exp_sym_flag='-bexport'
21758	no_entry_flag='-bnoentry'
21759      fi
21760
21761      # When large executables or shared objects are built, AIX ld can
21762      # have problems creating the table of contents.  If linking a library
21763      # or program results in "error TOC overflow" add -mminimal-toc to
21764      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21765      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21766
21767      archive_cmds_GCJ=''
21768      hardcode_direct_GCJ=yes
21769      hardcode_libdir_separator_GCJ=':'
21770      link_all_deplibs_GCJ=yes
21771
21772      if test "$GCC" = yes; then
21773	case $host_os in aix4.012|aix4.012.*)
21774	# We only want to do this on AIX 4.2 and lower, the check
21775	# below for broken collect2 doesn't work under 4.3+
21776	  collect2name=`${CC} -print-prog-name=collect2`
21777	  if test -f "$collect2name" && \
21778  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
21779	  then
21780  	  # We have reworked collect2
21781  	  hardcode_direct_GCJ=yes
21782	  else
21783  	  # We have old collect2
21784  	  hardcode_direct_GCJ=unsupported
21785  	  # It fails to find uninstalled libraries when the uninstalled
21786  	  # path is not listed in the libpath.  Setting hardcode_minus_L
21787  	  # to unsupported forces relinking
21788  	  hardcode_minus_L_GCJ=yes
21789  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
21790  	  hardcode_libdir_separator_GCJ=
21791	  fi
21792	esac
21793	shared_flag='-shared'
21794      else
21795	# not using gcc
21796	if test "$host_cpu" = ia64; then
21797  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21798  	# chokes on -Wl,-G. The following line is correct:
21799	  shared_flag='-G'
21800	else
21801  	if test "$aix_use_runtimelinking" = yes; then
21802	    shared_flag='${wl}-G'
21803	  else
21804	    shared_flag='${wl}-bM:SRE'
21805  	fi
21806	fi
21807      fi
21808
21809      # It seems that -bexpall does not export symbols beginning with
21810      # underscore (_), so it is better to generate a list of symbols to export.
21811      always_export_symbols_GCJ=yes
21812      if test "$aix_use_runtimelinking" = yes; then
21813	# Warning - without using the other runtime loading flags (-brtl),
21814	# -berok will link without error, but may produce a broken library.
21815	allow_undefined_flag_GCJ='-berok'
21816       # Determine the default libpath from the value encoded in an empty executable.
21817       cat >conftest.$ac_ext <<_ACEOF
21818/* confdefs.h.  */
21819_ACEOF
21820cat confdefs.h >>conftest.$ac_ext
21821cat >>conftest.$ac_ext <<_ACEOF
21822/* end confdefs.h.  */
21823
21824int
21825main ()
21826{
21827
21828  ;
21829  return 0;
21830}
21831_ACEOF
21832rm -f conftest.$ac_objext conftest$ac_exeext
21833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21834  (eval $ac_link) 2>conftest.er1
21835  ac_status=$?
21836  grep -v '^ *+' conftest.er1 >conftest.err
21837  rm -f conftest.er1
21838  cat conftest.err >&5
21839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840  (exit $ac_status); } &&
21841	 { ac_try='test -z "$ac_c_werror_flag"
21842			 || test ! -s conftest.err'
21843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21844  (eval $ac_try) 2>&5
21845  ac_status=$?
21846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847  (exit $ac_status); }; } &&
21848	 { ac_try='test -s conftest$ac_exeext'
21849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21850  (eval $ac_try) 2>&5
21851  ac_status=$?
21852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853  (exit $ac_status); }; }; then
21854
21855aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21856}'`
21857# Check for a 64-bit object if we didn't find anything.
21858if 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; }
21859}'`; fi
21860else
21861  echo "$as_me: failed program was:" >&5
21862sed 's/^/| /' conftest.$ac_ext >&5
21863
21864fi
21865rm -f conftest.err conftest.$ac_objext \
21866      conftest$ac_exeext conftest.$ac_ext
21867if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21868
21869       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21870	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"
21871       else
21872	if test "$host_cpu" = ia64; then
21873	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21874	  allow_undefined_flag_GCJ="-z nodefs"
21875	  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"
21876	else
21877	 # Determine the default libpath from the value encoded in an empty executable.
21878	 cat >conftest.$ac_ext <<_ACEOF
21879/* confdefs.h.  */
21880_ACEOF
21881cat confdefs.h >>conftest.$ac_ext
21882cat >>conftest.$ac_ext <<_ACEOF
21883/* end confdefs.h.  */
21884
21885int
21886main ()
21887{
21888
21889  ;
21890  return 0;
21891}
21892_ACEOF
21893rm -f conftest.$ac_objext conftest$ac_exeext
21894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21895  (eval $ac_link) 2>conftest.er1
21896  ac_status=$?
21897  grep -v '^ *+' conftest.er1 >conftest.err
21898  rm -f conftest.er1
21899  cat conftest.err >&5
21900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901  (exit $ac_status); } &&
21902	 { ac_try='test -z "$ac_c_werror_flag"
21903			 || test ! -s conftest.err'
21904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21905  (eval $ac_try) 2>&5
21906  ac_status=$?
21907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908  (exit $ac_status); }; } &&
21909	 { ac_try='test -s conftest$ac_exeext'
21910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21911  (eval $ac_try) 2>&5
21912  ac_status=$?
21913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914  (exit $ac_status); }; }; then
21915
21916aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21917}'`
21918# Check for a 64-bit object if we didn't find anything.
21919if 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; }
21920}'`; fi
21921else
21922  echo "$as_me: failed program was:" >&5
21923sed 's/^/| /' conftest.$ac_ext >&5
21924
21925fi
21926rm -f conftest.err conftest.$ac_objext \
21927      conftest$ac_exeext conftest.$ac_ext
21928if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21929
21930	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21931	  # Warning - without using the other run time loading flags,
21932	  # -berok will link without error, but may produce a broken library.
21933	  no_undefined_flag_GCJ=' ${wl}-bernotok'
21934	  allow_undefined_flag_GCJ=' ${wl}-berok'
21935	  # -bexpall does not export symbols beginning with underscore (_)
21936	  always_export_symbols_GCJ=yes
21937	  # Exported symbols can be pulled into shared objects from archives
21938	  whole_archive_flag_spec_GCJ=' '
21939	  archive_cmds_need_lc_GCJ=yes
21940	  # This is similar to how AIX traditionally builds it's shared libraries.
21941	  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'
21942	fi
21943      fi
21944      ;;
21945
21946    amigaos*)
21947      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)'
21948      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21949      hardcode_minus_L_GCJ=yes
21950      # see comment about different semantics on the GNU ld section
21951      ld_shlibs_GCJ=no
21952      ;;
21953
21954    bsdi[45]*)
21955      export_dynamic_flag_spec_GCJ=-rdynamic
21956      ;;
21957
21958    cygwin* | mingw* | pw32*)
21959      # When not using gcc, we currently assume that we are using
21960      # Microsoft Visual C++.
21961      # hardcode_libdir_flag_spec is actually meaningless, as there is
21962      # no search path for DLLs.
21963      hardcode_libdir_flag_spec_GCJ=' '
21964      allow_undefined_flag_GCJ=unsupported
21965      # Tell ltmain to make .lib files, not .a files.
21966      libext=lib
21967      # Tell ltmain to make .dll files, not .so files.
21968      shrext_cmds=".dll"
21969      # FIXME: Setting linknames here is a bad hack.
21970      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21971      # The linker will automatically build a .lib file if we build a DLL.
21972      old_archive_From_new_cmds_GCJ='true'
21973      # FIXME: Should let the user specify the lib program.
21974      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21975      fix_srcfile_path='`cygpath -w "$srcfile"`'
21976      enable_shared_with_static_runtimes_GCJ=yes
21977      ;;
21978
21979    darwin* | rhapsody*)
21980      case "$host_os" in
21981        rhapsody* | darwin1.[012])
21982         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21983         ;;
21984       *) # Darwin 1.3 on
21985         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21986           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21987         else
21988           case ${MACOSX_DEPLOYMENT_TARGET} in
21989             10.[012])
21990               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21991               ;;
21992             10.*)
21993               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21994               ;;
21995           esac
21996         fi
21997         ;;
21998      esac
21999      archive_cmds_need_lc_GCJ=no
22000      hardcode_direct_GCJ=no
22001      hardcode_automatic_GCJ=yes
22002      hardcode_shlibpath_var_GCJ=unsupported
22003      whole_archive_flag_spec_GCJ=''
22004      link_all_deplibs_GCJ=yes
22005    if test "$GCC" = yes ; then
22006    	output_verbose_link_cmd='echo'
22007        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22008      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22009      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22010      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}'
22011      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}'
22012    else
22013      case "$cc_basename" in
22014        xlc*)
22015         output_verbose_link_cmd='echo'
22016         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22017         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22018          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22019         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}'
22020          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}'
22021          ;;
22022       *)
22023         ld_shlibs_GCJ=no
22024          ;;
22025      esac
22026    fi
22027      ;;
22028
22029    dgux*)
22030      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22031      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22032      hardcode_shlibpath_var_GCJ=no
22033      ;;
22034
22035    freebsd1*)
22036      ld_shlibs_GCJ=no
22037      ;;
22038
22039    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22040    # support.  Future versions do this automatically, but an explicit c++rt0.o
22041    # does not break anything, and helps significantly (at the cost of a little
22042    # extra space).
22043    freebsd2.2*)
22044      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22045      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22046      hardcode_direct_GCJ=yes
22047      hardcode_shlibpath_var_GCJ=no
22048      ;;
22049
22050    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22051    freebsd2*)
22052      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22053      hardcode_direct_GCJ=yes
22054      hardcode_minus_L_GCJ=yes
22055      hardcode_shlibpath_var_GCJ=no
22056      ;;
22057
22058    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22059    freebsd* | kfreebsd*-gnu)
22060      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22061      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22062      hardcode_direct_GCJ=yes
22063      hardcode_shlibpath_var_GCJ=no
22064      ;;
22065
22066    hpux9*)
22067      if test "$GCC" = yes; then
22068	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'
22069      else
22070	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'
22071      fi
22072      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22073      hardcode_libdir_separator_GCJ=:
22074      hardcode_direct_GCJ=yes
22075
22076      # hardcode_minus_L: Not really in the search PATH,
22077      # but as the default location of the library.
22078      hardcode_minus_L_GCJ=yes
22079      export_dynamic_flag_spec_GCJ='${wl}-E'
22080      ;;
22081
22082    hpux10* | hpux11*)
22083      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22084	case "$host_cpu" in
22085	hppa*64*|ia64*)
22086	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22087	  ;;
22088	*)
22089	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22090	  ;;
22091	esac
22092      else
22093	case "$host_cpu" in
22094	hppa*64*|ia64*)
22095	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22096	  ;;
22097	*)
22098	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22099	  ;;
22100	esac
22101      fi
22102      if test "$with_gnu_ld" = no; then
22103	case "$host_cpu" in
22104	hppa*64*)
22105	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22106	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22107	  hardcode_libdir_separator_GCJ=:
22108	  hardcode_direct_GCJ=no
22109	  hardcode_shlibpath_var_GCJ=no
22110	  ;;
22111	ia64*)
22112	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
22113	  hardcode_direct_GCJ=no
22114	  hardcode_shlibpath_var_GCJ=no
22115
22116	  # hardcode_minus_L: Not really in the search PATH,
22117	  # but as the default location of the library.
22118	  hardcode_minus_L_GCJ=yes
22119	  ;;
22120	*)
22121	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22122	  hardcode_libdir_separator_GCJ=:
22123	  hardcode_direct_GCJ=yes
22124	  export_dynamic_flag_spec_GCJ='${wl}-E'
22125
22126	  # hardcode_minus_L: Not really in the search PATH,
22127	  # but as the default location of the library.
22128	  hardcode_minus_L_GCJ=yes
22129	  ;;
22130	esac
22131      fi
22132      ;;
22133
22134    irix5* | irix6* | nonstopux*)
22135      if test "$GCC" = yes; then
22136	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'
22137      else
22138	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'
22139	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22140      fi
22141      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22142      hardcode_libdir_separator_GCJ=:
22143      link_all_deplibs_GCJ=yes
22144      ;;
22145
22146    netbsd*)
22147      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22148	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22149      else
22150	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22151      fi
22152      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22153      hardcode_direct_GCJ=yes
22154      hardcode_shlibpath_var_GCJ=no
22155      ;;
22156
22157    newsos6)
22158      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22159      hardcode_direct_GCJ=yes
22160      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22161      hardcode_libdir_separator_GCJ=:
22162      hardcode_shlibpath_var_GCJ=no
22163      ;;
22164
22165    openbsd*)
22166      hardcode_direct_GCJ=yes
22167      hardcode_shlibpath_var_GCJ=no
22168      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22169	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22170	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22171	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22172	export_dynamic_flag_spec_GCJ='${wl}-E'
22173      else
22174       case $host_os in
22175	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22176	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22177	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
22178	   ;;
22179	 *)
22180	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22181	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22182	   ;;
22183       esac
22184      fi
22185      ;;
22186
22187    os2*)
22188      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22189      hardcode_minus_L_GCJ=yes
22190      allow_undefined_flag_GCJ=unsupported
22191      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'
22192      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22193      ;;
22194
22195    osf3*)
22196      if test "$GCC" = yes; then
22197	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22198	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'
22199      else
22200	allow_undefined_flag_GCJ=' -expect_unresolved \*'
22201	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'
22202      fi
22203      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22204      hardcode_libdir_separator_GCJ=:
22205      ;;
22206
22207    osf4* | osf5*)	# as osf3* with the addition of -msym flag
22208      if test "$GCC" = yes; then
22209	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22210	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'
22211	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22212      else
22213	allow_undefined_flag_GCJ=' -expect_unresolved \*'
22214	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'
22215	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~
22216	$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'
22217
22218	# Both c and cxx compiler support -rpath directly
22219	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22220      fi
22221      hardcode_libdir_separator_GCJ=:
22222      ;;
22223
22224    sco3.2v5*)
22225      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22226      hardcode_shlibpath_var_GCJ=no
22227      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22228      runpath_var=LD_RUN_PATH
22229      hardcode_runpath_var=yes
22230      ;;
22231
22232    solaris*)
22233      no_undefined_flag_GCJ=' -z text'
22234      if test "$GCC" = yes; then
22235	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22236	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22237	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22238      else
22239	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22240	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22241  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22242      fi
22243      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22244      hardcode_shlibpath_var_GCJ=no
22245      case $host_os in
22246      solaris2.[0-5] | solaris2.[0-5].*) ;;
22247      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22248	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22249      esac
22250      link_all_deplibs_GCJ=yes
22251      ;;
22252
22253    sunos4*)
22254      if test "x$host_vendor" = xsequent; then
22255	# Use $CC to link under sequent, because it throws in some extra .o
22256	# files that make .init and .fini sections work.
22257	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22258      else
22259	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22260      fi
22261      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22262      hardcode_direct_GCJ=yes
22263      hardcode_minus_L_GCJ=yes
22264      hardcode_shlibpath_var_GCJ=no
22265      ;;
22266
22267    sysv4)
22268      case $host_vendor in
22269	sni)
22270	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22271	  hardcode_direct_GCJ=yes # is this really true???
22272	;;
22273	siemens)
22274	  ## LD is ld it makes a PLAMLIB
22275	  ## CC just makes a GrossModule.
22276	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22277	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22278	  hardcode_direct_GCJ=no
22279        ;;
22280	motorola)
22281	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22282	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22283	;;
22284      esac
22285      runpath_var='LD_RUN_PATH'
22286      hardcode_shlibpath_var_GCJ=no
22287      ;;
22288
22289    sysv4.3*)
22290      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22291      hardcode_shlibpath_var_GCJ=no
22292      export_dynamic_flag_spec_GCJ='-Bexport'
22293      ;;
22294
22295    sysv4*MP*)
22296      if test -d /usr/nec; then
22297	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22298	hardcode_shlibpath_var_GCJ=no
22299	runpath_var=LD_RUN_PATH
22300	hardcode_runpath_var=yes
22301	ld_shlibs_GCJ=yes
22302      fi
22303      ;;
22304
22305    sysv4.2uw2*)
22306      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22307      hardcode_direct_GCJ=yes
22308      hardcode_minus_L_GCJ=no
22309      hardcode_shlibpath_var_GCJ=no
22310      hardcode_runpath_var=yes
22311      runpath_var=LD_RUN_PATH
22312      ;;
22313
22314   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22315      no_undefined_flag_GCJ='${wl}-z ${wl}text'
22316      if test "$GCC" = yes; then
22317	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22318      else
22319	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22320      fi
22321      runpath_var='LD_RUN_PATH'
22322      hardcode_shlibpath_var_GCJ=no
22323      ;;
22324
22325    sysv5*)
22326      no_undefined_flag_GCJ=' -z text'
22327      # $CC -shared without GNU ld will not create a library from C++
22328      # object files and a static libstdc++, better avoid it by now
22329      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22330      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22331  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22332      hardcode_libdir_flag_spec_GCJ=
22333      hardcode_shlibpath_var_GCJ=no
22334      runpath_var='LD_RUN_PATH'
22335      ;;
22336
22337    uts4*)
22338      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22339      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22340      hardcode_shlibpath_var_GCJ=no
22341      ;;
22342
22343    *)
22344      ld_shlibs_GCJ=no
22345      ;;
22346    esac
22347  fi
22348
22349echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22350echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22351test "$ld_shlibs_GCJ" = no && can_build_shared=no
22352
22353variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22354if test "$GCC" = yes; then
22355  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22356fi
22357
22358#
22359# Do we need to explicitly link libc?
22360#
22361case "x$archive_cmds_need_lc_GCJ" in
22362x|xyes)
22363  # Assume -lc should be added
22364  archive_cmds_need_lc_GCJ=yes
22365
22366  if test "$enable_shared" = yes && test "$GCC" = yes; then
22367    case $archive_cmds_GCJ in
22368    *'~'*)
22369      # FIXME: we may have to deal with multi-command sequences.
22370      ;;
22371    '$CC '*)
22372      # Test whether the compiler implicitly links with -lc since on some
22373      # systems, -lgcc has to come before -lc. If gcc already passes -lc
22374      # to ld, don't add -lc before -lgcc.
22375      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22376echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22377      $rm conftest*
22378      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22379
22380      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22381  (eval $ac_compile) 2>&5
22382  ac_status=$?
22383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384  (exit $ac_status); } 2>conftest.err; then
22385        soname=conftest
22386        lib=conftest
22387        libobjs=conftest.$ac_objext
22388        deplibs=
22389        wl=$lt_prog_compiler_wl_GCJ
22390        compiler_flags=-v
22391        linker_flags=-v
22392        verstring=
22393        output_objdir=.
22394        libname=conftest
22395        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22396        allow_undefined_flag_GCJ=
22397        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22398  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22399  ac_status=$?
22400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401  (exit $ac_status); }
22402        then
22403	  archive_cmds_need_lc_GCJ=no
22404        else
22405	  archive_cmds_need_lc_GCJ=yes
22406        fi
22407        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22408      else
22409        cat conftest.err 1>&5
22410      fi
22411      $rm conftest*
22412      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22413echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22414      ;;
22415    esac
22416  fi
22417  ;;
22418esac
22419
22420echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22421echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22422library_names_spec=
22423libname_spec='lib$name'
22424soname_spec=
22425shrext_cmds=".so"
22426postinstall_cmds=
22427postuninstall_cmds=
22428finish_cmds=
22429finish_eval=
22430shlibpath_var=
22431shlibpath_overrides_runpath=unknown
22432version_type=none
22433dynamic_linker="$host_os ld.so"
22434sys_lib_dlsearch_path_spec="/lib /usr/lib"
22435if test "$GCC" = yes; then
22436  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22437  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22438    # if the path contains ";" then we assume it to be the separator
22439    # otherwise default to the standard path separator (i.e. ":") - it is
22440    # assumed that no part of a normal pathname contains ";" but that should
22441    # okay in the real world where ";" in dirpaths is itself problematic.
22442    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22443  else
22444    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22445  fi
22446else
22447  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22448fi
22449need_lib_prefix=unknown
22450hardcode_into_libs=no
22451
22452# when you set need_version to no, make sure it does not cause -set_version
22453# flags to be left without arguments
22454need_version=unknown
22455
22456case $host_os in
22457aix3*)
22458  version_type=linux
22459  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22460  shlibpath_var=LIBPATH
22461
22462  # AIX 3 has no versioning support, so we append a major version to the name.
22463  soname_spec='${libname}${release}${shared_ext}$major'
22464  ;;
22465
22466aix4* | aix5*)
22467  version_type=linux
22468  need_lib_prefix=no
22469  need_version=no
22470  hardcode_into_libs=yes
22471  if test "$host_cpu" = ia64; then
22472    # AIX 5 supports IA64
22473    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22474    shlibpath_var=LD_LIBRARY_PATH
22475  else
22476    # With GCC up to 2.95.x, collect2 would create an import file
22477    # for dependence libraries.  The import file would start with
22478    # the line `#! .'.  This would cause the generated library to
22479    # depend on `.', always an invalid library.  This was fixed in
22480    # development snapshots of GCC prior to 3.0.
22481    case $host_os in
22482      aix4 | aix4.[01] | aix4.[01].*)
22483      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22484	   echo ' yes '
22485	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22486	:
22487      else
22488	can_build_shared=no
22489      fi
22490      ;;
22491    esac
22492    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22493    # soname into executable. Probably we can add versioning support to
22494    # collect2, so additional links can be useful in future.
22495    if test "$aix_use_runtimelinking" = yes; then
22496      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22497      # instead of lib<name>.a to let people know that these are not
22498      # typical AIX shared libraries.
22499      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22500    else
22501      # We preserve .a as extension for shared libraries through AIX4.2
22502      # and later when we are not doing run time linking.
22503      library_names_spec='${libname}${release}.a $libname.a'
22504      soname_spec='${libname}${release}${shared_ext}$major'
22505    fi
22506    shlibpath_var=LIBPATH
22507  fi
22508  ;;
22509
22510amigaos*)
22511  library_names_spec='$libname.ixlibrary $libname.a'
22512  # Create ${libname}_ixlibrary.a entries in /sys/libs.
22513  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'
22514  ;;
22515
22516beos*)
22517  library_names_spec='${libname}${shared_ext}'
22518  dynamic_linker="$host_os ld.so"
22519  shlibpath_var=LIBRARY_PATH
22520  ;;
22521
22522bsdi[45]*)
22523  version_type=linux
22524  need_version=no
22525  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22526  soname_spec='${libname}${release}${shared_ext}$major'
22527  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22528  shlibpath_var=LD_LIBRARY_PATH
22529  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22530  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22531  # the default ld.so.conf also contains /usr/contrib/lib and
22532  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22533  # libtool to hard-code these into programs
22534  ;;
22535
22536cygwin* | mingw* | pw32*)
22537  version_type=windows
22538  shrext_cmds=".dll"
22539  need_version=no
22540  need_lib_prefix=no
22541
22542  case $GCC,$host_os in
22543  yes,cygwin* | yes,mingw* | yes,pw32*)
22544    library_names_spec='$libname.dll.a'
22545    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22546    postinstall_cmds='base_file=`basename \${file}`~
22547      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22548      dldir=$destdir/`dirname \$dlpath`~
22549      test -d \$dldir || mkdir -p \$dldir~
22550      $install_prog $dir/$dlname \$dldir/$dlname'
22551    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22552      dlpath=$dir/\$dldll~
22553       $rm \$dlpath'
22554    shlibpath_overrides_runpath=yes
22555
22556    case $host_os in
22557    cygwin*)
22558      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22559      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22560      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22561      ;;
22562    mingw*)
22563      # MinGW DLLs use traditional 'lib' prefix
22564      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22565      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22566      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22567        # It is most probably a Windows format PATH printed by
22568        # mingw gcc, but we are running on Cygwin. Gcc prints its search
22569        # path with ; separators, and with drive letters. We can handle the
22570        # drive letters (cygwin fileutils understands them), so leave them,
22571        # especially as we might pass files found there to a mingw objdump,
22572        # which wouldn't understand a cygwinified path. Ahh.
22573        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22574      else
22575        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22576      fi
22577      ;;
22578    pw32*)
22579      # pw32 DLLs use 'pw' prefix rather than 'lib'
22580      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22581      ;;
22582    esac
22583    ;;
22584
22585  *)
22586    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22587    ;;
22588  esac
22589  dynamic_linker='Win32 ld.exe'
22590  # FIXME: first we should search . and the directory the executable is in
22591  shlibpath_var=PATH
22592  ;;
22593
22594darwin* | rhapsody*)
22595  dynamic_linker="$host_os dyld"
22596  version_type=darwin
22597  need_lib_prefix=no
22598  need_version=no
22599  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22600  soname_spec='${libname}${release}${major}$shared_ext'
22601  shlibpath_overrides_runpath=yes
22602  shlibpath_var=DYLD_LIBRARY_PATH
22603  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22604  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22605  if test "$GCC" = yes; then
22606    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"`
22607  else
22608    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22609  fi
22610  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22611  ;;
22612
22613dgux*)
22614  version_type=linux
22615  need_lib_prefix=no
22616  need_version=no
22617  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22618  soname_spec='${libname}${release}${shared_ext}$major'
22619  shlibpath_var=LD_LIBRARY_PATH
22620  ;;
22621
22622freebsd1*)
22623  dynamic_linker=no
22624  ;;
22625
22626kfreebsd*-gnu)
22627  version_type=linux
22628  need_lib_prefix=no
22629  need_version=no
22630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22631  soname_spec='${libname}${release}${shared_ext}$major'
22632  shlibpath_var=LD_LIBRARY_PATH
22633  shlibpath_overrides_runpath=no
22634  hardcode_into_libs=yes
22635  dynamic_linker='GNU ld.so'
22636  ;;
22637
22638freebsd*)
22639  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22640  version_type=freebsd-$objformat
22641  case $version_type in
22642    freebsd-elf*)
22643      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22644      need_version=no
22645      need_lib_prefix=no
22646      ;;
22647    freebsd-*)
22648      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22649      need_version=yes
22650      ;;
22651  esac
22652  shlibpath_var=LD_LIBRARY_PATH
22653  case $host_os in
22654  freebsd2*)
22655    shlibpath_overrides_runpath=yes
22656    ;;
22657  freebsd3.01* | freebsdelf3.01*)
22658    shlibpath_overrides_runpath=yes
22659    hardcode_into_libs=yes
22660    ;;
22661  *) # from 3.2 on
22662    shlibpath_overrides_runpath=no
22663    hardcode_into_libs=yes
22664    ;;
22665  esac
22666  ;;
22667
22668gnu*)
22669  version_type=linux
22670  need_lib_prefix=no
22671  need_version=no
22672  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22673  soname_spec='${libname}${release}${shared_ext}$major'
22674  shlibpath_var=LD_LIBRARY_PATH
22675  hardcode_into_libs=yes
22676  ;;
22677
22678hpux9* | hpux10* | hpux11*)
22679  # Give a soname corresponding to the major version so that dld.sl refuses to
22680  # link against other versions.
22681  version_type=sunos
22682  need_lib_prefix=no
22683  need_version=no
22684  case "$host_cpu" in
22685  ia64*)
22686    shrext_cmds='.so'
22687    hardcode_into_libs=yes
22688    dynamic_linker="$host_os dld.so"
22689    shlibpath_var=LD_LIBRARY_PATH
22690    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22691    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22692    soname_spec='${libname}${release}${shared_ext}$major'
22693    if test "X$HPUX_IA64_MODE" = X32; then
22694      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22695    else
22696      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22697    fi
22698    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22699    ;;
22700   hppa*64*)
22701     shrext_cmds='.sl'
22702     hardcode_into_libs=yes
22703     dynamic_linker="$host_os dld.sl"
22704     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22705     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22706     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22707     soname_spec='${libname}${release}${shared_ext}$major'
22708     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22709     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22710     ;;
22711   *)
22712    shrext_cmds='.sl'
22713    dynamic_linker="$host_os dld.sl"
22714    shlibpath_var=SHLIB_PATH
22715    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22716    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22717    soname_spec='${libname}${release}${shared_ext}$major'
22718    ;;
22719  esac
22720  # HP-UX runs *really* slowly unless shared libraries are mode 555.
22721  postinstall_cmds='chmod 555 $lib'
22722  ;;
22723
22724irix5* | irix6* | nonstopux*)
22725  case $host_os in
22726    nonstopux*) version_type=nonstopux ;;
22727    *)
22728	if test "$lt_cv_prog_gnu_ld" = yes; then
22729		version_type=linux
22730	else
22731		version_type=irix
22732	fi ;;
22733  esac
22734  need_lib_prefix=no
22735  need_version=no
22736  soname_spec='${libname}${release}${shared_ext}$major'
22737  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22738  case $host_os in
22739  irix5* | nonstopux*)
22740    libsuff= shlibsuff=
22741    ;;
22742  *)
22743    case $LD in # libtool.m4 will add one of these switches to LD
22744    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22745      libsuff= shlibsuff= libmagic=32-bit;;
22746    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22747      libsuff=32 shlibsuff=N32 libmagic=N32;;
22748    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22749      libsuff=64 shlibsuff=64 libmagic=64-bit;;
22750    *) libsuff= shlibsuff= libmagic=never-match;;
22751    esac
22752    ;;
22753  esac
22754  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22755  shlibpath_overrides_runpath=no
22756  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22757  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22758  hardcode_into_libs=yes
22759  ;;
22760
22761# No shared lib support for Linux oldld, aout, or coff.
22762linux*oldld* | linux*aout* | linux*coff*)
22763  dynamic_linker=no
22764  ;;
22765
22766# This must be Linux ELF.
22767linux*)
22768  version_type=linux
22769  need_lib_prefix=no
22770  need_version=no
22771  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22772  soname_spec='${libname}${release}${shared_ext}$major'
22773  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22774  shlibpath_var=LD_LIBRARY_PATH
22775  shlibpath_overrides_runpath=no
22776  # This implies no fast_install, which is unacceptable.
22777  # Some rework will be needed to allow for fast_install
22778  # before this can be enabled.
22779  hardcode_into_libs=yes
22780
22781  # Append ld.so.conf contents to the search path
22782  if test -f /etc/ld.so.conf; then
22783    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22784    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22785  fi
22786
22787  # We used to test for /lib/ld.so.1 and disable shared libraries on
22788  # powerpc, because MkLinux only supported shared libraries with the
22789  # GNU dynamic linker.  Since this was broken with cross compilers,
22790  # most powerpc-linux boxes support dynamic linking these days and
22791  # people can always --disable-shared, the test was removed, and we
22792  # assume the GNU/Linux dynamic linker is in use.
22793  dynamic_linker='GNU/Linux ld.so'
22794  ;;
22795
22796knetbsd*-gnu)
22797  version_type=linux
22798  need_lib_prefix=no
22799  need_version=no
22800  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22801  soname_spec='${libname}${release}${shared_ext}$major'
22802  shlibpath_var=LD_LIBRARY_PATH
22803  shlibpath_overrides_runpath=no
22804  hardcode_into_libs=yes
22805  dynamic_linker='GNU ld.so'
22806  ;;
22807
22808netbsd*)
22809  version_type=sunos
22810  need_lib_prefix=no
22811  need_version=no
22812  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22813    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22814    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22815    dynamic_linker='NetBSD (a.out) ld.so'
22816  else
22817    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22818    soname_spec='${libname}${release}${shared_ext}$major'
22819    dynamic_linker='NetBSD ld.elf_so'
22820  fi
22821  shlibpath_var=LD_LIBRARY_PATH
22822  shlibpath_overrides_runpath=yes
22823  hardcode_into_libs=yes
22824  ;;
22825
22826newsos6)
22827  version_type=linux
22828  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22829  shlibpath_var=LD_LIBRARY_PATH
22830  shlibpath_overrides_runpath=yes
22831  ;;
22832
22833nto-qnx*)
22834  version_type=linux
22835  need_lib_prefix=no
22836  need_version=no
22837  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22838  soname_spec='${libname}${release}${shared_ext}$major'
22839  shlibpath_var=LD_LIBRARY_PATH
22840  shlibpath_overrides_runpath=yes
22841  ;;
22842
22843openbsd*)
22844  version_type=sunos
22845  need_lib_prefix=no
22846  need_version=no
22847  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22848  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22849  shlibpath_var=LD_LIBRARY_PATH
22850  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22851    case $host_os in
22852      openbsd2.[89] | openbsd2.[89].*)
22853	shlibpath_overrides_runpath=no
22854	;;
22855      *)
22856	shlibpath_overrides_runpath=yes
22857	;;
22858      esac
22859  else
22860    shlibpath_overrides_runpath=yes
22861  fi
22862  ;;
22863
22864os2*)
22865  libname_spec='$name'
22866  shrext_cmds=".dll"
22867  need_lib_prefix=no
22868  library_names_spec='$libname${shared_ext} $libname.a'
22869  dynamic_linker='OS/2 ld.exe'
22870  shlibpath_var=LIBPATH
22871  ;;
22872
22873osf3* | osf4* | osf5*)
22874  version_type=osf
22875  need_lib_prefix=no
22876  need_version=no
22877  soname_spec='${libname}${release}${shared_ext}$major'
22878  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22879  shlibpath_var=LD_LIBRARY_PATH
22880  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22881  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22882  ;;
22883
22884sco3.2v5*)
22885  version_type=osf
22886  soname_spec='${libname}${release}${shared_ext}$major'
22887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22888  shlibpath_var=LD_LIBRARY_PATH
22889  ;;
22890
22891solaris*)
22892  version_type=linux
22893  need_lib_prefix=no
22894  need_version=no
22895  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22896  soname_spec='${libname}${release}${shared_ext}$major'
22897  shlibpath_var=LD_LIBRARY_PATH
22898  shlibpath_overrides_runpath=yes
22899  hardcode_into_libs=yes
22900  # ldd complains unless libraries are executable
22901  postinstall_cmds='chmod +x $lib'
22902  ;;
22903
22904sunos4*)
22905  version_type=sunos
22906  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22907  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22908  shlibpath_var=LD_LIBRARY_PATH
22909  shlibpath_overrides_runpath=yes
22910  if test "$with_gnu_ld" = yes; then
22911    need_lib_prefix=no
22912  fi
22913  need_version=yes
22914  ;;
22915
22916sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22917  version_type=linux
22918  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22919  soname_spec='${libname}${release}${shared_ext}$major'
22920  shlibpath_var=LD_LIBRARY_PATH
22921  case $host_vendor in
22922    sni)
22923      shlibpath_overrides_runpath=no
22924      need_lib_prefix=no
22925      export_dynamic_flag_spec='${wl}-Blargedynsym'
22926      runpath_var=LD_RUN_PATH
22927      ;;
22928    siemens)
22929      need_lib_prefix=no
22930      ;;
22931    motorola)
22932      need_lib_prefix=no
22933      need_version=no
22934      shlibpath_overrides_runpath=no
22935      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22936      ;;
22937  esac
22938  ;;
22939
22940sysv4*MP*)
22941  if test -d /usr/nec ;then
22942    version_type=linux
22943    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22944    soname_spec='$libname${shared_ext}.$major'
22945    shlibpath_var=LD_LIBRARY_PATH
22946  fi
22947  ;;
22948
22949uts4*)
22950  version_type=linux
22951  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22952  soname_spec='${libname}${release}${shared_ext}$major'
22953  shlibpath_var=LD_LIBRARY_PATH
22954  ;;
22955
22956*)
22957  dynamic_linker=no
22958  ;;
22959esac
22960echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22961echo "${ECHO_T}$dynamic_linker" >&6
22962test "$dynamic_linker" = no && can_build_shared=no
22963
22964echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22965echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22966hardcode_action_GCJ=
22967if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22968   test -n "$runpath_var_GCJ" || \
22969   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22970
22971  # We can hardcode non-existant directories.
22972  if test "$hardcode_direct_GCJ" != no &&
22973     # If the only mechanism to avoid hardcoding is shlibpath_var, we
22974     # have to relink, otherwise we might link with an installed library
22975     # when we should be linking with a yet-to-be-installed one
22976     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22977     test "$hardcode_minus_L_GCJ" != no; then
22978    # Linking always hardcodes the temporary library directory.
22979    hardcode_action_GCJ=relink
22980  else
22981    # We can link without hardcoding, and we can hardcode nonexisting dirs.
22982    hardcode_action_GCJ=immediate
22983  fi
22984else
22985  # We cannot hardcode anything, or else we can only hardcode existing
22986  # directories.
22987  hardcode_action_GCJ=unsupported
22988fi
22989echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22990echo "${ECHO_T}$hardcode_action_GCJ" >&6
22991
22992if test "$hardcode_action_GCJ" = relink; then
22993  # Fast installation is not supported
22994  enable_fast_install=no
22995elif test "$shlibpath_overrides_runpath" = yes ||
22996     test "$enable_shared" = no; then
22997  # Fast installation is not necessary
22998  enable_fast_install=needless
22999fi
23000
23001striplib=
23002old_striplib=
23003echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23004echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23005if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23006  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23007  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23008  echo "$as_me:$LINENO: result: yes" >&5
23009echo "${ECHO_T}yes" >&6
23010else
23011# FIXME - insert some real tests, host_os isn't really good enough
23012  case $host_os in
23013   darwin*)
23014       if test -n "$STRIP" ; then
23015         striplib="$STRIP -x"
23016         echo "$as_me:$LINENO: result: yes" >&5
23017echo "${ECHO_T}yes" >&6
23018       else
23019  echo "$as_me:$LINENO: result: no" >&5
23020echo "${ECHO_T}no" >&6
23021fi
23022       ;;
23023   *)
23024  echo "$as_me:$LINENO: result: no" >&5
23025echo "${ECHO_T}no" >&6
23026    ;;
23027  esac
23028fi
23029
23030if test "x$enable_dlopen" != xyes; then
23031  enable_dlopen=unknown
23032  enable_dlopen_self=unknown
23033  enable_dlopen_self_static=unknown
23034else
23035  lt_cv_dlopen=no
23036  lt_cv_dlopen_libs=
23037
23038  case $host_os in
23039  beos*)
23040    lt_cv_dlopen="load_add_on"
23041    lt_cv_dlopen_libs=
23042    lt_cv_dlopen_self=yes
23043    ;;
23044
23045  mingw* | pw32*)
23046    lt_cv_dlopen="LoadLibrary"
23047    lt_cv_dlopen_libs=
23048   ;;
23049
23050  cygwin*)
23051    lt_cv_dlopen="dlopen"
23052    lt_cv_dlopen_libs=
23053   ;;
23054
23055  darwin*)
23056  # if libdl is installed we need to link against it
23057    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23058echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23059if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23060  echo $ECHO_N "(cached) $ECHO_C" >&6
23061else
23062  ac_check_lib_save_LIBS=$LIBS
23063LIBS="-ldl  $LIBS"
23064cat >conftest.$ac_ext <<_ACEOF
23065/* confdefs.h.  */
23066_ACEOF
23067cat confdefs.h >>conftest.$ac_ext
23068cat >>conftest.$ac_ext <<_ACEOF
23069/* end confdefs.h.  */
23070
23071/* Override any gcc2 internal prototype to avoid an error.  */
23072#ifdef __cplusplus
23073extern "C"
23074#endif
23075/* We use char because int might match the return type of a gcc2
23076   builtin and then its argument prototype would still apply.  */
23077char dlopen ();
23078int
23079main ()
23080{
23081dlopen ();
23082  ;
23083  return 0;
23084}
23085_ACEOF
23086rm -f conftest.$ac_objext conftest$ac_exeext
23087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23088  (eval $ac_link) 2>conftest.er1
23089  ac_status=$?
23090  grep -v '^ *+' conftest.er1 >conftest.err
23091  rm -f conftest.er1
23092  cat conftest.err >&5
23093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094  (exit $ac_status); } &&
23095	 { ac_try='test -z "$ac_c_werror_flag"
23096			 || test ! -s conftest.err'
23097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23098  (eval $ac_try) 2>&5
23099  ac_status=$?
23100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101  (exit $ac_status); }; } &&
23102	 { ac_try='test -s conftest$ac_exeext'
23103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23104  (eval $ac_try) 2>&5
23105  ac_status=$?
23106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107  (exit $ac_status); }; }; then
23108  ac_cv_lib_dl_dlopen=yes
23109else
23110  echo "$as_me: failed program was:" >&5
23111sed 's/^/| /' conftest.$ac_ext >&5
23112
23113ac_cv_lib_dl_dlopen=no
23114fi
23115rm -f conftest.err conftest.$ac_objext \
23116      conftest$ac_exeext conftest.$ac_ext
23117LIBS=$ac_check_lib_save_LIBS
23118fi
23119echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23120echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23121if test $ac_cv_lib_dl_dlopen = yes; then
23122  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23123else
23124
23125    lt_cv_dlopen="dyld"
23126    lt_cv_dlopen_libs=
23127    lt_cv_dlopen_self=yes
23128
23129fi
23130
23131   ;;
23132
23133  *)
23134    echo "$as_me:$LINENO: checking for shl_load" >&5
23135echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23136if test "${ac_cv_func_shl_load+set}" = set; then
23137  echo $ECHO_N "(cached) $ECHO_C" >&6
23138else
23139  cat >conftest.$ac_ext <<_ACEOF
23140/* confdefs.h.  */
23141_ACEOF
23142cat confdefs.h >>conftest.$ac_ext
23143cat >>conftest.$ac_ext <<_ACEOF
23144/* end confdefs.h.  */
23145/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23146   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23147#define shl_load innocuous_shl_load
23148
23149/* System header to define __stub macros and hopefully few prototypes,
23150    which can conflict with char shl_load (); below.
23151    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23152    <limits.h> exists even on freestanding compilers.  */
23153
23154#ifdef __STDC__
23155# include <limits.h>
23156#else
23157# include <assert.h>
23158#endif
23159
23160#undef shl_load
23161
23162/* Override any gcc2 internal prototype to avoid an error.  */
23163#ifdef __cplusplus
23164extern "C"
23165{
23166#endif
23167/* We use char because int might match the return type of a gcc2
23168   builtin and then its argument prototype would still apply.  */
23169char shl_load ();
23170/* The GNU C library defines this for functions which it implements
23171    to always fail with ENOSYS.  Some functions are actually named
23172    something starting with __ and the normal name is an alias.  */
23173#if defined (__stub_shl_load) || defined (__stub___shl_load)
23174choke me
23175#else
23176char (*f) () = shl_load;
23177#endif
23178#ifdef __cplusplus
23179}
23180#endif
23181
23182int
23183main ()
23184{
23185return f != shl_load;
23186  ;
23187  return 0;
23188}
23189_ACEOF
23190rm -f conftest.$ac_objext conftest$ac_exeext
23191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23192  (eval $ac_link) 2>conftest.er1
23193  ac_status=$?
23194  grep -v '^ *+' conftest.er1 >conftest.err
23195  rm -f conftest.er1
23196  cat conftest.err >&5
23197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198  (exit $ac_status); } &&
23199	 { ac_try='test -z "$ac_c_werror_flag"
23200			 || test ! -s conftest.err'
23201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23202  (eval $ac_try) 2>&5
23203  ac_status=$?
23204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205  (exit $ac_status); }; } &&
23206	 { ac_try='test -s conftest$ac_exeext'
23207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23208  (eval $ac_try) 2>&5
23209  ac_status=$?
23210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211  (exit $ac_status); }; }; then
23212  ac_cv_func_shl_load=yes
23213else
23214  echo "$as_me: failed program was:" >&5
23215sed 's/^/| /' conftest.$ac_ext >&5
23216
23217ac_cv_func_shl_load=no
23218fi
23219rm -f conftest.err conftest.$ac_objext \
23220      conftest$ac_exeext conftest.$ac_ext
23221fi
23222echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23223echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23224if test $ac_cv_func_shl_load = yes; then
23225  lt_cv_dlopen="shl_load"
23226else
23227  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23228echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23229if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23230  echo $ECHO_N "(cached) $ECHO_C" >&6
23231else
23232  ac_check_lib_save_LIBS=$LIBS
23233LIBS="-ldld  $LIBS"
23234cat >conftest.$ac_ext <<_ACEOF
23235/* confdefs.h.  */
23236_ACEOF
23237cat confdefs.h >>conftest.$ac_ext
23238cat >>conftest.$ac_ext <<_ACEOF
23239/* end confdefs.h.  */
23240
23241/* Override any gcc2 internal prototype to avoid an error.  */
23242#ifdef __cplusplus
23243extern "C"
23244#endif
23245/* We use char because int might match the return type of a gcc2
23246   builtin and then its argument prototype would still apply.  */
23247char shl_load ();
23248int
23249main ()
23250{
23251shl_load ();
23252  ;
23253  return 0;
23254}
23255_ACEOF
23256rm -f conftest.$ac_objext conftest$ac_exeext
23257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23258  (eval $ac_link) 2>conftest.er1
23259  ac_status=$?
23260  grep -v '^ *+' conftest.er1 >conftest.err
23261  rm -f conftest.er1
23262  cat conftest.err >&5
23263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264  (exit $ac_status); } &&
23265	 { ac_try='test -z "$ac_c_werror_flag"
23266			 || test ! -s conftest.err'
23267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23268  (eval $ac_try) 2>&5
23269  ac_status=$?
23270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271  (exit $ac_status); }; } &&
23272	 { ac_try='test -s conftest$ac_exeext'
23273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23274  (eval $ac_try) 2>&5
23275  ac_status=$?
23276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277  (exit $ac_status); }; }; then
23278  ac_cv_lib_dld_shl_load=yes
23279else
23280  echo "$as_me: failed program was:" >&5
23281sed 's/^/| /' conftest.$ac_ext >&5
23282
23283ac_cv_lib_dld_shl_load=no
23284fi
23285rm -f conftest.err conftest.$ac_objext \
23286      conftest$ac_exeext conftest.$ac_ext
23287LIBS=$ac_check_lib_save_LIBS
23288fi
23289echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23290echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23291if test $ac_cv_lib_dld_shl_load = yes; then
23292  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23293else
23294  echo "$as_me:$LINENO: checking for dlopen" >&5
23295echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23296if test "${ac_cv_func_dlopen+set}" = set; then
23297  echo $ECHO_N "(cached) $ECHO_C" >&6
23298else
23299  cat >conftest.$ac_ext <<_ACEOF
23300/* confdefs.h.  */
23301_ACEOF
23302cat confdefs.h >>conftest.$ac_ext
23303cat >>conftest.$ac_ext <<_ACEOF
23304/* end confdefs.h.  */
23305/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23306   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23307#define dlopen innocuous_dlopen
23308
23309/* System header to define __stub macros and hopefully few prototypes,
23310    which can conflict with char dlopen (); below.
23311    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23312    <limits.h> exists even on freestanding compilers.  */
23313
23314#ifdef __STDC__
23315# include <limits.h>
23316#else
23317# include <assert.h>
23318#endif
23319
23320#undef dlopen
23321
23322/* Override any gcc2 internal prototype to avoid an error.  */
23323#ifdef __cplusplus
23324extern "C"
23325{
23326#endif
23327/* We use char because int might match the return type of a gcc2
23328   builtin and then its argument prototype would still apply.  */
23329char dlopen ();
23330/* The GNU C library defines this for functions which it implements
23331    to always fail with ENOSYS.  Some functions are actually named
23332    something starting with __ and the normal name is an alias.  */
23333#if defined (__stub_dlopen) || defined (__stub___dlopen)
23334choke me
23335#else
23336char (*f) () = dlopen;
23337#endif
23338#ifdef __cplusplus
23339}
23340#endif
23341
23342int
23343main ()
23344{
23345return f != dlopen;
23346  ;
23347  return 0;
23348}
23349_ACEOF
23350rm -f conftest.$ac_objext conftest$ac_exeext
23351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23352  (eval $ac_link) 2>conftest.er1
23353  ac_status=$?
23354  grep -v '^ *+' conftest.er1 >conftest.err
23355  rm -f conftest.er1
23356  cat conftest.err >&5
23357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358  (exit $ac_status); } &&
23359	 { ac_try='test -z "$ac_c_werror_flag"
23360			 || test ! -s conftest.err'
23361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23362  (eval $ac_try) 2>&5
23363  ac_status=$?
23364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365  (exit $ac_status); }; } &&
23366	 { ac_try='test -s conftest$ac_exeext'
23367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23368  (eval $ac_try) 2>&5
23369  ac_status=$?
23370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371  (exit $ac_status); }; }; then
23372  ac_cv_func_dlopen=yes
23373else
23374  echo "$as_me: failed program was:" >&5
23375sed 's/^/| /' conftest.$ac_ext >&5
23376
23377ac_cv_func_dlopen=no
23378fi
23379rm -f conftest.err conftest.$ac_objext \
23380      conftest$ac_exeext conftest.$ac_ext
23381fi
23382echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23383echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23384if test $ac_cv_func_dlopen = yes; then
23385  lt_cv_dlopen="dlopen"
23386else
23387  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23388echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23389if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23390  echo $ECHO_N "(cached) $ECHO_C" >&6
23391else
23392  ac_check_lib_save_LIBS=$LIBS
23393LIBS="-ldl  $LIBS"
23394cat >conftest.$ac_ext <<_ACEOF
23395/* confdefs.h.  */
23396_ACEOF
23397cat confdefs.h >>conftest.$ac_ext
23398cat >>conftest.$ac_ext <<_ACEOF
23399/* end confdefs.h.  */
23400
23401/* Override any gcc2 internal prototype to avoid an error.  */
23402#ifdef __cplusplus
23403extern "C"
23404#endif
23405/* We use char because int might match the return type of a gcc2
23406   builtin and then its argument prototype would still apply.  */
23407char dlopen ();
23408int
23409main ()
23410{
23411dlopen ();
23412  ;
23413  return 0;
23414}
23415_ACEOF
23416rm -f conftest.$ac_objext conftest$ac_exeext
23417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23418  (eval $ac_link) 2>conftest.er1
23419  ac_status=$?
23420  grep -v '^ *+' conftest.er1 >conftest.err
23421  rm -f conftest.er1
23422  cat conftest.err >&5
23423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424  (exit $ac_status); } &&
23425	 { ac_try='test -z "$ac_c_werror_flag"
23426			 || test ! -s conftest.err'
23427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23428  (eval $ac_try) 2>&5
23429  ac_status=$?
23430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23431  (exit $ac_status); }; } &&
23432	 { ac_try='test -s conftest$ac_exeext'
23433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23434  (eval $ac_try) 2>&5
23435  ac_status=$?
23436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437  (exit $ac_status); }; }; then
23438  ac_cv_lib_dl_dlopen=yes
23439else
23440  echo "$as_me: failed program was:" >&5
23441sed 's/^/| /' conftest.$ac_ext >&5
23442
23443ac_cv_lib_dl_dlopen=no
23444fi
23445rm -f conftest.err conftest.$ac_objext \
23446      conftest$ac_exeext conftest.$ac_ext
23447LIBS=$ac_check_lib_save_LIBS
23448fi
23449echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23450echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23451if test $ac_cv_lib_dl_dlopen = yes; then
23452  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23453else
23454  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23455echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23456if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23457  echo $ECHO_N "(cached) $ECHO_C" >&6
23458else
23459  ac_check_lib_save_LIBS=$LIBS
23460LIBS="-lsvld  $LIBS"
23461cat >conftest.$ac_ext <<_ACEOF
23462/* confdefs.h.  */
23463_ACEOF
23464cat confdefs.h >>conftest.$ac_ext
23465cat >>conftest.$ac_ext <<_ACEOF
23466/* end confdefs.h.  */
23467
23468/* Override any gcc2 internal prototype to avoid an error.  */
23469#ifdef __cplusplus
23470extern "C"
23471#endif
23472/* We use char because int might match the return type of a gcc2
23473   builtin and then its argument prototype would still apply.  */
23474char dlopen ();
23475int
23476main ()
23477{
23478dlopen ();
23479  ;
23480  return 0;
23481}
23482_ACEOF
23483rm -f conftest.$ac_objext conftest$ac_exeext
23484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23485  (eval $ac_link) 2>conftest.er1
23486  ac_status=$?
23487  grep -v '^ *+' conftest.er1 >conftest.err
23488  rm -f conftest.er1
23489  cat conftest.err >&5
23490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491  (exit $ac_status); } &&
23492	 { ac_try='test -z "$ac_c_werror_flag"
23493			 || test ! -s conftest.err'
23494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23495  (eval $ac_try) 2>&5
23496  ac_status=$?
23497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498  (exit $ac_status); }; } &&
23499	 { ac_try='test -s conftest$ac_exeext'
23500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23501  (eval $ac_try) 2>&5
23502  ac_status=$?
23503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504  (exit $ac_status); }; }; then
23505  ac_cv_lib_svld_dlopen=yes
23506else
23507  echo "$as_me: failed program was:" >&5
23508sed 's/^/| /' conftest.$ac_ext >&5
23509
23510ac_cv_lib_svld_dlopen=no
23511fi
23512rm -f conftest.err conftest.$ac_objext \
23513      conftest$ac_exeext conftest.$ac_ext
23514LIBS=$ac_check_lib_save_LIBS
23515fi
23516echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23517echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23518if test $ac_cv_lib_svld_dlopen = yes; then
23519  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23520else
23521  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23522echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23523if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23524  echo $ECHO_N "(cached) $ECHO_C" >&6
23525else
23526  ac_check_lib_save_LIBS=$LIBS
23527LIBS="-ldld  $LIBS"
23528cat >conftest.$ac_ext <<_ACEOF
23529/* confdefs.h.  */
23530_ACEOF
23531cat confdefs.h >>conftest.$ac_ext
23532cat >>conftest.$ac_ext <<_ACEOF
23533/* end confdefs.h.  */
23534
23535/* Override any gcc2 internal prototype to avoid an error.  */
23536#ifdef __cplusplus
23537extern "C"
23538#endif
23539/* We use char because int might match the return type of a gcc2
23540   builtin and then its argument prototype would still apply.  */
23541char dld_link ();
23542int
23543main ()
23544{
23545dld_link ();
23546  ;
23547  return 0;
23548}
23549_ACEOF
23550rm -f conftest.$ac_objext conftest$ac_exeext
23551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23552  (eval $ac_link) 2>conftest.er1
23553  ac_status=$?
23554  grep -v '^ *+' conftest.er1 >conftest.err
23555  rm -f conftest.er1
23556  cat conftest.err >&5
23557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558  (exit $ac_status); } &&
23559	 { ac_try='test -z "$ac_c_werror_flag"
23560			 || test ! -s conftest.err'
23561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23562  (eval $ac_try) 2>&5
23563  ac_status=$?
23564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565  (exit $ac_status); }; } &&
23566	 { ac_try='test -s conftest$ac_exeext'
23567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23568  (eval $ac_try) 2>&5
23569  ac_status=$?
23570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571  (exit $ac_status); }; }; then
23572  ac_cv_lib_dld_dld_link=yes
23573else
23574  echo "$as_me: failed program was:" >&5
23575sed 's/^/| /' conftest.$ac_ext >&5
23576
23577ac_cv_lib_dld_dld_link=no
23578fi
23579rm -f conftest.err conftest.$ac_objext \
23580      conftest$ac_exeext conftest.$ac_ext
23581LIBS=$ac_check_lib_save_LIBS
23582fi
23583echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23584echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23585if test $ac_cv_lib_dld_dld_link = yes; then
23586  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23587fi
23588
23589
23590fi
23591
23592
23593fi
23594
23595
23596fi
23597
23598
23599fi
23600
23601
23602fi
23603
23604    ;;
23605  esac
23606
23607  if test "x$lt_cv_dlopen" != xno; then
23608    enable_dlopen=yes
23609  else
23610    enable_dlopen=no
23611  fi
23612
23613  case $lt_cv_dlopen in
23614  dlopen)
23615    save_CPPFLAGS="$CPPFLAGS"
23616    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23617
23618    save_LDFLAGS="$LDFLAGS"
23619    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23620
23621    save_LIBS="$LIBS"
23622    LIBS="$lt_cv_dlopen_libs $LIBS"
23623
23624    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23625echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23626if test "${lt_cv_dlopen_self+set}" = set; then
23627  echo $ECHO_N "(cached) $ECHO_C" >&6
23628else
23629  	  if test "$cross_compiling" = yes; then :
23630  lt_cv_dlopen_self=cross
23631else
23632  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23633  lt_status=$lt_dlunknown
23634  cat > conftest.$ac_ext <<EOF
23635#line 23635 "configure"
23636#include "confdefs.h"
23637
23638#if HAVE_DLFCN_H
23639#include <dlfcn.h>
23640#endif
23641
23642#include <stdio.h>
23643
23644#ifdef RTLD_GLOBAL
23645#  define LT_DLGLOBAL		RTLD_GLOBAL
23646#else
23647#  ifdef DL_GLOBAL
23648#    define LT_DLGLOBAL		DL_GLOBAL
23649#  else
23650#    define LT_DLGLOBAL		0
23651#  endif
23652#endif
23653
23654/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23655   find out it does not work in some platform. */
23656#ifndef LT_DLLAZY_OR_NOW
23657#  ifdef RTLD_LAZY
23658#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
23659#  else
23660#    ifdef DL_LAZY
23661#      define LT_DLLAZY_OR_NOW		DL_LAZY
23662#    else
23663#      ifdef RTLD_NOW
23664#        define LT_DLLAZY_OR_NOW	RTLD_NOW
23665#      else
23666#        ifdef DL_NOW
23667#          define LT_DLLAZY_OR_NOW	DL_NOW
23668#        else
23669#          define LT_DLLAZY_OR_NOW	0
23670#        endif
23671#      endif
23672#    endif
23673#  endif
23674#endif
23675
23676#ifdef __cplusplus
23677extern "C" void exit (int);
23678#endif
23679
23680void fnord() { int i=42;}
23681int main ()
23682{
23683  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23684  int status = $lt_dlunknown;
23685
23686  if (self)
23687    {
23688      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23689      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23690      /* dlclose (self); */
23691    }
23692
23693    exit (status);
23694}
23695EOF
23696  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23697  (eval $ac_link) 2>&5
23698  ac_status=$?
23699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23701    (./conftest; exit; ) 2>/dev/null
23702    lt_status=$?
23703    case x$lt_status in
23704      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23705      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23706      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23707    esac
23708  else :
23709    # compilation failed
23710    lt_cv_dlopen_self=no
23711  fi
23712fi
23713rm -fr conftest*
23714
23715
23716fi
23717echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23718echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23719
23720    if test "x$lt_cv_dlopen_self" = xyes; then
23721      LDFLAGS="$LDFLAGS $link_static_flag"
23722      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23723echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23724if test "${lt_cv_dlopen_self_static+set}" = set; then
23725  echo $ECHO_N "(cached) $ECHO_C" >&6
23726else
23727  	  if test "$cross_compiling" = yes; then :
23728  lt_cv_dlopen_self_static=cross
23729else
23730  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23731  lt_status=$lt_dlunknown
23732  cat > conftest.$ac_ext <<EOF
23733#line 23733 "configure"
23734#include "confdefs.h"
23735
23736#if HAVE_DLFCN_H
23737#include <dlfcn.h>
23738#endif
23739
23740#include <stdio.h>
23741
23742#ifdef RTLD_GLOBAL
23743#  define LT_DLGLOBAL		RTLD_GLOBAL
23744#else
23745#  ifdef DL_GLOBAL
23746#    define LT_DLGLOBAL		DL_GLOBAL
23747#  else
23748#    define LT_DLGLOBAL		0
23749#  endif
23750#endif
23751
23752/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23753   find out it does not work in some platform. */
23754#ifndef LT_DLLAZY_OR_NOW
23755#  ifdef RTLD_LAZY
23756#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
23757#  else
23758#    ifdef DL_LAZY
23759#      define LT_DLLAZY_OR_NOW		DL_LAZY
23760#    else
23761#      ifdef RTLD_NOW
23762#        define LT_DLLAZY_OR_NOW	RTLD_NOW
23763#      else
23764#        ifdef DL_NOW
23765#          define LT_DLLAZY_OR_NOW	DL_NOW
23766#        else
23767#          define LT_DLLAZY_OR_NOW	0
23768#        endif
23769#      endif
23770#    endif
23771#  endif
23772#endif
23773
23774#ifdef __cplusplus
23775extern "C" void exit (int);
23776#endif
23777
23778void fnord() { int i=42;}
23779int main ()
23780{
23781  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23782  int status = $lt_dlunknown;
23783
23784  if (self)
23785    {
23786      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23787      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23788      /* dlclose (self); */
23789    }
23790
23791    exit (status);
23792}
23793EOF
23794  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23795  (eval $ac_link) 2>&5
23796  ac_status=$?
23797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23799    (./conftest; exit; ) 2>/dev/null
23800    lt_status=$?
23801    case x$lt_status in
23802      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23803      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23804      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23805    esac
23806  else :
23807    # compilation failed
23808    lt_cv_dlopen_self_static=no
23809  fi
23810fi
23811rm -fr conftest*
23812
23813
23814fi
23815echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23816echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23817    fi
23818
23819    CPPFLAGS="$save_CPPFLAGS"
23820    LDFLAGS="$save_LDFLAGS"
23821    LIBS="$save_LIBS"
23822    ;;
23823  esac
23824
23825  case $lt_cv_dlopen_self in
23826  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23827  *) enable_dlopen_self=unknown ;;
23828  esac
23829
23830  case $lt_cv_dlopen_self_static in
23831  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23832  *) enable_dlopen_self_static=unknown ;;
23833  esac
23834fi
23835
23836
23837# The else clause should only fire when bootstrapping the
23838# libtool distribution, otherwise you forgot to ship ltmain.sh
23839# with your package, and you will get complaints that there are
23840# no rules to generate ltmain.sh.
23841if test -f "$ltmain"; then
23842  # See if we are running on zsh, and set the options which allow our commands through
23843  # without removal of \ escapes.
23844  if test -n "${ZSH_VERSION+set}" ; then
23845    setopt NO_GLOB_SUBST
23846  fi
23847  # Now quote all the things that may contain metacharacters while being
23848  # careful not to overquote the AC_SUBSTed values.  We take copies of the
23849  # variables and quote the copies for generation of the libtool script.
23850  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23851    SED SHELL STRIP \
23852    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23853    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23854    deplibs_check_method reload_flag reload_cmds need_locks \
23855    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23856    lt_cv_sys_global_symbol_to_c_name_address \
23857    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23858    old_postinstall_cmds old_postuninstall_cmds \
23859    compiler_GCJ \
23860    CC_GCJ \
23861    LD_GCJ \
23862    lt_prog_compiler_wl_GCJ \
23863    lt_prog_compiler_pic_GCJ \
23864    lt_prog_compiler_static_GCJ \
23865    lt_prog_compiler_no_builtin_flag_GCJ \
23866    export_dynamic_flag_spec_GCJ \
23867    thread_safe_flag_spec_GCJ \
23868    whole_archive_flag_spec_GCJ \
23869    enable_shared_with_static_runtimes_GCJ \
23870    old_archive_cmds_GCJ \
23871    old_archive_from_new_cmds_GCJ \
23872    predep_objects_GCJ \
23873    postdep_objects_GCJ \
23874    predeps_GCJ \
23875    postdeps_GCJ \
23876    compiler_lib_search_path_GCJ \
23877    archive_cmds_GCJ \
23878    archive_expsym_cmds_GCJ \
23879    postinstall_cmds_GCJ \
23880    postuninstall_cmds_GCJ \
23881    old_archive_from_expsyms_cmds_GCJ \
23882    allow_undefined_flag_GCJ \
23883    no_undefined_flag_GCJ \
23884    export_symbols_cmds_GCJ \
23885    hardcode_libdir_flag_spec_GCJ \
23886    hardcode_libdir_flag_spec_ld_GCJ \
23887    hardcode_libdir_separator_GCJ \
23888    hardcode_automatic_GCJ \
23889    module_cmds_GCJ \
23890    module_expsym_cmds_GCJ \
23891    lt_cv_prog_compiler_c_o_GCJ \
23892    exclude_expsyms_GCJ \
23893    include_expsyms_GCJ; do
23894
23895    case $var in
23896    old_archive_cmds_GCJ | \
23897    old_archive_from_new_cmds_GCJ | \
23898    archive_cmds_GCJ | \
23899    archive_expsym_cmds_GCJ | \
23900    module_cmds_GCJ | \
23901    module_expsym_cmds_GCJ | \
23902    old_archive_from_expsyms_cmds_GCJ | \
23903    export_symbols_cmds_GCJ | \
23904    extract_expsyms_cmds | reload_cmds | finish_cmds | \
23905    postinstall_cmds | postuninstall_cmds | \
23906    old_postinstall_cmds | old_postuninstall_cmds | \
23907    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23908      # Double-quote double-evaled strings.
23909      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23910      ;;
23911    *)
23912      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23913      ;;
23914    esac
23915  done
23916
23917  case $lt_echo in
23918  *'\$0 --fallback-echo"')
23919    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23920    ;;
23921  esac
23922
23923cfgfile="$ofile"
23924
23925  cat <<__EOF__ >> "$cfgfile"
23926# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23927
23928# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23929
23930# Shell to use when invoking shell scripts.
23931SHELL=$lt_SHELL
23932
23933# Whether or not to build shared libraries.
23934build_libtool_libs=$enable_shared
23935
23936# Whether or not to build static libraries.
23937build_old_libs=$enable_static
23938
23939# Whether or not to add -lc for building shared libraries.
23940build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23941
23942# Whether or not to disallow shared libs when runtime libs are static
23943allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23944
23945# Whether or not to optimize for fast installation.
23946fast_install=$enable_fast_install
23947
23948# The host system.
23949host_alias=$host_alias
23950host=$host
23951
23952# An echo program that does not interpret backslashes.
23953echo=$lt_echo
23954
23955# The archiver.
23956AR=$lt_AR
23957AR_FLAGS=$lt_AR_FLAGS
23958
23959# A C compiler.
23960LTCC=$lt_LTCC
23961
23962# A language-specific compiler.
23963CC=$lt_compiler_GCJ
23964
23965# Is the compiler the GNU C compiler?
23966with_gcc=$GCC_GCJ
23967
23968# An ERE matcher.
23969EGREP=$lt_EGREP
23970
23971# The linker used to build libraries.
23972LD=$lt_LD_GCJ
23973
23974# Whether we need hard or soft links.
23975LN_S=$lt_LN_S
23976
23977# A BSD-compatible nm program.
23978NM=$lt_NM
23979
23980# A symbol stripping program
23981STRIP=$lt_STRIP
23982
23983# Used to examine libraries when file_magic_cmd begins "file"
23984MAGIC_CMD=$MAGIC_CMD
23985
23986# Used on cygwin: DLL creation program.
23987DLLTOOL="$DLLTOOL"
23988
23989# Used on cygwin: object dumper.
23990OBJDUMP="$OBJDUMP"
23991
23992# Used on cygwin: assembler.
23993AS="$AS"
23994
23995# The name of the directory that contains temporary libtool files.
23996objdir=$objdir
23997
23998# How to create reloadable object files.
23999reload_flag=$lt_reload_flag
24000reload_cmds=$lt_reload_cmds
24001
24002# How to pass a linker flag through the compiler.
24003wl=$lt_lt_prog_compiler_wl_GCJ
24004
24005# Object file suffix (normally "o").
24006objext="$ac_objext"
24007
24008# Old archive suffix (normally "a").
24009libext="$libext"
24010
24011# Shared library suffix (normally ".so").
24012shrext_cmds='$shrext_cmds'
24013
24014# Executable file suffix (normally "").
24015exeext="$exeext"
24016
24017# Additional compiler flags for building library objects.
24018pic_flag=$lt_lt_prog_compiler_pic_GCJ
24019pic_mode=$pic_mode
24020
24021# What is the maximum length of a command?
24022max_cmd_len=$lt_cv_sys_max_cmd_len
24023
24024# Does compiler simultaneously support -c and -o options?
24025compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24026
24027# Must we lock files when doing compilation ?
24028need_locks=$lt_need_locks
24029
24030# Do we need the lib prefix for modules?
24031need_lib_prefix=$need_lib_prefix
24032
24033# Do we need a version for libraries?
24034need_version=$need_version
24035
24036# Whether dlopen is supported.
24037dlopen_support=$enable_dlopen
24038
24039# Whether dlopen of programs is supported.
24040dlopen_self=$enable_dlopen_self
24041
24042# Whether dlopen of statically linked programs is supported.
24043dlopen_self_static=$enable_dlopen_self_static
24044
24045# Compiler flag to prevent dynamic linking.
24046link_static_flag=$lt_lt_prog_compiler_static_GCJ
24047
24048# Compiler flag to turn off builtin functions.
24049no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24050
24051# Compiler flag to allow reflexive dlopens.
24052export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24053
24054# Compiler flag to generate shared objects directly from archives.
24055whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24056
24057# Compiler flag to generate thread-safe objects.
24058thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24059
24060# Library versioning type.
24061version_type=$version_type
24062
24063# Format of library name prefix.
24064libname_spec=$lt_libname_spec
24065
24066# List of archive names.  First name is the real one, the rest are links.
24067# The last name is the one that the linker finds with -lNAME.
24068library_names_spec=$lt_library_names_spec
24069
24070# The coded name of the library, if different from the real name.
24071soname_spec=$lt_soname_spec
24072
24073# Commands used to build and install an old-style archive.
24074RANLIB=$lt_RANLIB
24075old_archive_cmds=$lt_old_archive_cmds_GCJ
24076old_postinstall_cmds=$lt_old_postinstall_cmds
24077old_postuninstall_cmds=$lt_old_postuninstall_cmds
24078
24079# Create an old-style archive from a shared archive.
24080old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24081
24082# Create a temporary old-style archive to link instead of a shared archive.
24083old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24084
24085# Commands used to build and install a shared archive.
24086archive_cmds=$lt_archive_cmds_GCJ
24087archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24088postinstall_cmds=$lt_postinstall_cmds
24089postuninstall_cmds=$lt_postuninstall_cmds
24090
24091# Commands used to build a loadable module (assumed same as above if empty)
24092module_cmds=$lt_module_cmds_GCJ
24093module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24094
24095# Commands to strip libraries.
24096old_striplib=$lt_old_striplib
24097striplib=$lt_striplib
24098
24099# Dependencies to place before the objects being linked to create a
24100# shared library.
24101predep_objects=$lt_predep_objects_GCJ
24102
24103# Dependencies to place after the objects being linked to create a
24104# shared library.
24105postdep_objects=$lt_postdep_objects_GCJ
24106
24107# Dependencies to place before the objects being linked to create a
24108# shared library.
24109predeps=$lt_predeps_GCJ
24110
24111# Dependencies to place after the objects being linked to create a
24112# shared library.
24113postdeps=$lt_postdeps_GCJ
24114
24115# The library search path used internally by the compiler when linking
24116# a shared library.
24117compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24118
24119# Method to check whether dependent libraries are shared objects.
24120deplibs_check_method=$lt_deplibs_check_method
24121
24122# Command to use when deplibs_check_method == file_magic.
24123file_magic_cmd=$lt_file_magic_cmd
24124
24125# Flag that allows shared libraries with undefined symbols to be built.
24126allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24127
24128# Flag that forces no undefined symbols.
24129no_undefined_flag=$lt_no_undefined_flag_GCJ
24130
24131# Commands used to finish a libtool library installation in a directory.
24132finish_cmds=$lt_finish_cmds
24133
24134# Same as above, but a single script fragment to be evaled but not shown.
24135finish_eval=$lt_finish_eval
24136
24137# Take the output of nm and produce a listing of raw symbols and C names.
24138global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24139
24140# Transform the output of nm in a proper C declaration
24141global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24142
24143# Transform the output of nm in a C name address pair
24144global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24145
24146# This is the shared library runtime path variable.
24147runpath_var=$runpath_var
24148
24149# This is the shared library path variable.
24150shlibpath_var=$shlibpath_var
24151
24152# Is shlibpath searched before the hard-coded library search path?
24153shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24154
24155# How to hardcode a shared library path into an executable.
24156hardcode_action=$hardcode_action_GCJ
24157
24158# Whether we should hardcode library paths into libraries.
24159hardcode_into_libs=$hardcode_into_libs
24160
24161# Flag to hardcode \$libdir into a binary during linking.
24162# This must work even if \$libdir does not exist.
24163hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24164
24165# If ld is used when linking, flag to hardcode \$libdir into
24166# a binary during linking. This must work even if \$libdir does
24167# not exist.
24168hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24169
24170# Whether we need a single -rpath flag with a separated argument.
24171hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24172
24173# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24174# resulting binary.
24175hardcode_direct=$hardcode_direct_GCJ
24176
24177# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24178# resulting binary.
24179hardcode_minus_L=$hardcode_minus_L_GCJ
24180
24181# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24182# the resulting binary.
24183hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24184
24185# Set to yes if building a shared library automatically hardcodes DIR into the library
24186# and all subsequent libraries and executables linked against it.
24187hardcode_automatic=$hardcode_automatic_GCJ
24188
24189# Variables whose values should be saved in libtool wrapper scripts and
24190# restored at relink time.
24191variables_saved_for_relink="$variables_saved_for_relink"
24192
24193# Whether libtool must link a program against all its dependency libraries.
24194link_all_deplibs=$link_all_deplibs_GCJ
24195
24196# Compile-time system search path for libraries
24197sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24198
24199# Run-time system search path for libraries
24200sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24201
24202# Fix the shell variable \$srcfile for the compiler.
24203fix_srcfile_path="$fix_srcfile_path_GCJ"
24204
24205# Set to yes if exported symbols are required.
24206always_export_symbols=$always_export_symbols_GCJ
24207
24208# The commands to list exported symbols.
24209export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24210
24211# The commands to extract the exported symbol list from a shared archive.
24212extract_expsyms_cmds=$lt_extract_expsyms_cmds
24213
24214# Symbols that should not be listed in the preloaded symbols.
24215exclude_expsyms=$lt_exclude_expsyms_GCJ
24216
24217# Symbols that must always be exported.
24218include_expsyms=$lt_include_expsyms_GCJ
24219
24220# ### END LIBTOOL TAG CONFIG: $tagname
24221
24222__EOF__
24223
24224
24225else
24226  # If there is no Makefile yet, we rely on a make rule to execute
24227  # `config.status --recheck' to rerun these tests and create the
24228  # libtool script then.
24229  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24230  if test -f "$ltmain_in"; then
24231    test -f Makefile && make "$ltmain"
24232  fi
24233fi
24234
24235
24236ac_ext=c
24237ac_cpp='$CPP $CPPFLAGS'
24238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24240ac_compiler_gnu=$ac_cv_c_compiler_gnu
24241
24242CC="$lt_save_CC"
24243
24244	else
24245	  tagname=""
24246	fi
24247	;;
24248
24249      RC)
24250	ac_ext=c
24251ac_cpp='$CPP $CPPFLAGS'
24252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24254ac_compiler_gnu=$ac_cv_c_compiler_gnu
24255
24256
24257# Source file extension for RC test sources.
24258ac_ext=rc
24259
24260# Object file extension for compiled RC test sources.
24261objext=o
24262objext_RC=$objext
24263
24264# Code to be used in simple compile tests
24265lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24266
24267# Code to be used in simple link tests
24268lt_simple_link_test_code="$lt_simple_compile_test_code"
24269
24270# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24271
24272# If no C compiler was specified, use CC.
24273LTCC=${LTCC-"$CC"}
24274
24275# Allow CC to be a program name with arguments.
24276compiler=$CC
24277
24278
24279# Allow CC to be a program name with arguments.
24280lt_save_CC="$CC"
24281CC=${RC-"windres"}
24282compiler=$CC
24283compiler_RC=$CC
24284lt_cv_prog_compiler_c_o_RC=yes
24285
24286# The else clause should only fire when bootstrapping the
24287# libtool distribution, otherwise you forgot to ship ltmain.sh
24288# with your package, and you will get complaints that there are
24289# no rules to generate ltmain.sh.
24290if test -f "$ltmain"; then
24291  # See if we are running on zsh, and set the options which allow our commands through
24292  # without removal of \ escapes.
24293  if test -n "${ZSH_VERSION+set}" ; then
24294    setopt NO_GLOB_SUBST
24295  fi
24296  # Now quote all the things that may contain metacharacters while being
24297  # careful not to overquote the AC_SUBSTed values.  We take copies of the
24298  # variables and quote the copies for generation of the libtool script.
24299  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24300    SED SHELL STRIP \
24301    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24302    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24303    deplibs_check_method reload_flag reload_cmds need_locks \
24304    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24305    lt_cv_sys_global_symbol_to_c_name_address \
24306    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24307    old_postinstall_cmds old_postuninstall_cmds \
24308    compiler_RC \
24309    CC_RC \
24310    LD_RC \
24311    lt_prog_compiler_wl_RC \
24312    lt_prog_compiler_pic_RC \
24313    lt_prog_compiler_static_RC \
24314    lt_prog_compiler_no_builtin_flag_RC \
24315    export_dynamic_flag_spec_RC \
24316    thread_safe_flag_spec_RC \
24317    whole_archive_flag_spec_RC \
24318    enable_shared_with_static_runtimes_RC \
24319    old_archive_cmds_RC \
24320    old_archive_from_new_cmds_RC \
24321    predep_objects_RC \
24322    postdep_objects_RC \
24323    predeps_RC \
24324    postdeps_RC \
24325    compiler_lib_search_path_RC \
24326    archive_cmds_RC \
24327    archive_expsym_cmds_RC \
24328    postinstall_cmds_RC \
24329    postuninstall_cmds_RC \
24330    old_archive_from_expsyms_cmds_RC \
24331    allow_undefined_flag_RC \
24332    no_undefined_flag_RC \
24333    export_symbols_cmds_RC \
24334    hardcode_libdir_flag_spec_RC \
24335    hardcode_libdir_flag_spec_ld_RC \
24336    hardcode_libdir_separator_RC \
24337    hardcode_automatic_RC \
24338    module_cmds_RC \
24339    module_expsym_cmds_RC \
24340    lt_cv_prog_compiler_c_o_RC \
24341    exclude_expsyms_RC \
24342    include_expsyms_RC; do
24343
24344    case $var in
24345    old_archive_cmds_RC | \
24346    old_archive_from_new_cmds_RC | \
24347    archive_cmds_RC | \
24348    archive_expsym_cmds_RC | \
24349    module_cmds_RC | \
24350    module_expsym_cmds_RC | \
24351    old_archive_from_expsyms_cmds_RC | \
24352    export_symbols_cmds_RC | \
24353    extract_expsyms_cmds | reload_cmds | finish_cmds | \
24354    postinstall_cmds | postuninstall_cmds | \
24355    old_postinstall_cmds | old_postuninstall_cmds | \
24356    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24357      # Double-quote double-evaled strings.
24358      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24359      ;;
24360    *)
24361      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24362      ;;
24363    esac
24364  done
24365
24366  case $lt_echo in
24367  *'\$0 --fallback-echo"')
24368    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24369    ;;
24370  esac
24371
24372cfgfile="$ofile"
24373
24374  cat <<__EOF__ >> "$cfgfile"
24375# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24376
24377# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24378
24379# Shell to use when invoking shell scripts.
24380SHELL=$lt_SHELL
24381
24382# Whether or not to build shared libraries.
24383build_libtool_libs=$enable_shared
24384
24385# Whether or not to build static libraries.
24386build_old_libs=$enable_static
24387
24388# Whether or not to add -lc for building shared libraries.
24389build_libtool_need_lc=$archive_cmds_need_lc_RC
24390
24391# Whether or not to disallow shared libs when runtime libs are static
24392allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24393
24394# Whether or not to optimize for fast installation.
24395fast_install=$enable_fast_install
24396
24397# The host system.
24398host_alias=$host_alias
24399host=$host
24400
24401# An echo program that does not interpret backslashes.
24402echo=$lt_echo
24403
24404# The archiver.
24405AR=$lt_AR
24406AR_FLAGS=$lt_AR_FLAGS
24407
24408# A C compiler.
24409LTCC=$lt_LTCC
24410
24411# A language-specific compiler.
24412CC=$lt_compiler_RC
24413
24414# Is the compiler the GNU C compiler?
24415with_gcc=$GCC_RC
24416
24417# An ERE matcher.
24418EGREP=$lt_EGREP
24419
24420# The linker used to build libraries.
24421LD=$lt_LD_RC
24422
24423# Whether we need hard or soft links.
24424LN_S=$lt_LN_S
24425
24426# A BSD-compatible nm program.
24427NM=$lt_NM
24428
24429# A symbol stripping program
24430STRIP=$lt_STRIP
24431
24432# Used to examine libraries when file_magic_cmd begins "file"
24433MAGIC_CMD=$MAGIC_CMD
24434
24435# Used on cygwin: DLL creation program.
24436DLLTOOL="$DLLTOOL"
24437
24438# Used on cygwin: object dumper.
24439OBJDUMP="$OBJDUMP"
24440
24441# Used on cygwin: assembler.
24442AS="$AS"
24443
24444# The name of the directory that contains temporary libtool files.
24445objdir=$objdir
24446
24447# How to create reloadable object files.
24448reload_flag=$lt_reload_flag
24449reload_cmds=$lt_reload_cmds
24450
24451# How to pass a linker flag through the compiler.
24452wl=$lt_lt_prog_compiler_wl_RC
24453
24454# Object file suffix (normally "o").
24455objext="$ac_objext"
24456
24457# Old archive suffix (normally "a").
24458libext="$libext"
24459
24460# Shared library suffix (normally ".so").
24461shrext_cmds='$shrext_cmds'
24462
24463# Executable file suffix (normally "").
24464exeext="$exeext"
24465
24466# Additional compiler flags for building library objects.
24467pic_flag=$lt_lt_prog_compiler_pic_RC
24468pic_mode=$pic_mode
24469
24470# What is the maximum length of a command?
24471max_cmd_len=$lt_cv_sys_max_cmd_len
24472
24473# Does compiler simultaneously support -c and -o options?
24474compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24475
24476# Must we lock files when doing compilation ?
24477need_locks=$lt_need_locks
24478
24479# Do we need the lib prefix for modules?
24480need_lib_prefix=$need_lib_prefix
24481
24482# Do we need a version for libraries?
24483need_version=$need_version
24484
24485# Whether dlopen is supported.
24486dlopen_support=$enable_dlopen
24487
24488# Whether dlopen of programs is supported.
24489dlopen_self=$enable_dlopen_self
24490
24491# Whether dlopen of statically linked programs is supported.
24492dlopen_self_static=$enable_dlopen_self_static
24493
24494# Compiler flag to prevent dynamic linking.
24495link_static_flag=$lt_lt_prog_compiler_static_RC
24496
24497# Compiler flag to turn off builtin functions.
24498no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24499
24500# Compiler flag to allow reflexive dlopens.
24501export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24502
24503# Compiler flag to generate shared objects directly from archives.
24504whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24505
24506# Compiler flag to generate thread-safe objects.
24507thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24508
24509# Library versioning type.
24510version_type=$version_type
24511
24512# Format of library name prefix.
24513libname_spec=$lt_libname_spec
24514
24515# List of archive names.  First name is the real one, the rest are links.
24516# The last name is the one that the linker finds with -lNAME.
24517library_names_spec=$lt_library_names_spec
24518
24519# The coded name of the library, if different from the real name.
24520soname_spec=$lt_soname_spec
24521
24522# Commands used to build and install an old-style archive.
24523RANLIB=$lt_RANLIB
24524old_archive_cmds=$lt_old_archive_cmds_RC
24525old_postinstall_cmds=$lt_old_postinstall_cmds
24526old_postuninstall_cmds=$lt_old_postuninstall_cmds
24527
24528# Create an old-style archive from a shared archive.
24529old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24530
24531# Create a temporary old-style archive to link instead of a shared archive.
24532old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24533
24534# Commands used to build and install a shared archive.
24535archive_cmds=$lt_archive_cmds_RC
24536archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24537postinstall_cmds=$lt_postinstall_cmds
24538postuninstall_cmds=$lt_postuninstall_cmds
24539
24540# Commands used to build a loadable module (assumed same as above if empty)
24541module_cmds=$lt_module_cmds_RC
24542module_expsym_cmds=$lt_module_expsym_cmds_RC
24543
24544# Commands to strip libraries.
24545old_striplib=$lt_old_striplib
24546striplib=$lt_striplib
24547
24548# Dependencies to place before the objects being linked to create a
24549# shared library.
24550predep_objects=$lt_predep_objects_RC
24551
24552# Dependencies to place after the objects being linked to create a
24553# shared library.
24554postdep_objects=$lt_postdep_objects_RC
24555
24556# Dependencies to place before the objects being linked to create a
24557# shared library.
24558predeps=$lt_predeps_RC
24559
24560# Dependencies to place after the objects being linked to create a
24561# shared library.
24562postdeps=$lt_postdeps_RC
24563
24564# The library search path used internally by the compiler when linking
24565# a shared library.
24566compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24567
24568# Method to check whether dependent libraries are shared objects.
24569deplibs_check_method=$lt_deplibs_check_method
24570
24571# Command to use when deplibs_check_method == file_magic.
24572file_magic_cmd=$lt_file_magic_cmd
24573
24574# Flag that allows shared libraries with undefined symbols to be built.
24575allow_undefined_flag=$lt_allow_undefined_flag_RC
24576
24577# Flag that forces no undefined symbols.
24578no_undefined_flag=$lt_no_undefined_flag_RC
24579
24580# Commands used to finish a libtool library installation in a directory.
24581finish_cmds=$lt_finish_cmds
24582
24583# Same as above, but a single script fragment to be evaled but not shown.
24584finish_eval=$lt_finish_eval
24585
24586# Take the output of nm and produce a listing of raw symbols and C names.
24587global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24588
24589# Transform the output of nm in a proper C declaration
24590global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24591
24592# Transform the output of nm in a C name address pair
24593global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24594
24595# This is the shared library runtime path variable.
24596runpath_var=$runpath_var
24597
24598# This is the shared library path variable.
24599shlibpath_var=$shlibpath_var
24600
24601# Is shlibpath searched before the hard-coded library search path?
24602shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24603
24604# How to hardcode a shared library path into an executable.
24605hardcode_action=$hardcode_action_RC
24606
24607# Whether we should hardcode library paths into libraries.
24608hardcode_into_libs=$hardcode_into_libs
24609
24610# Flag to hardcode \$libdir into a binary during linking.
24611# This must work even if \$libdir does not exist.
24612hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24613
24614# If ld is used when linking, flag to hardcode \$libdir into
24615# a binary during linking. This must work even if \$libdir does
24616# not exist.
24617hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24618
24619# Whether we need a single -rpath flag with a separated argument.
24620hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24621
24622# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24623# resulting binary.
24624hardcode_direct=$hardcode_direct_RC
24625
24626# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24627# resulting binary.
24628hardcode_minus_L=$hardcode_minus_L_RC
24629
24630# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24631# the resulting binary.
24632hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24633
24634# Set to yes if building a shared library automatically hardcodes DIR into the library
24635# and all subsequent libraries and executables linked against it.
24636hardcode_automatic=$hardcode_automatic_RC
24637
24638# Variables whose values should be saved in libtool wrapper scripts and
24639# restored at relink time.
24640variables_saved_for_relink="$variables_saved_for_relink"
24641
24642# Whether libtool must link a program against all its dependency libraries.
24643link_all_deplibs=$link_all_deplibs_RC
24644
24645# Compile-time system search path for libraries
24646sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24647
24648# Run-time system search path for libraries
24649sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24650
24651# Fix the shell variable \$srcfile for the compiler.
24652fix_srcfile_path="$fix_srcfile_path_RC"
24653
24654# Set to yes if exported symbols are required.
24655always_export_symbols=$always_export_symbols_RC
24656
24657# The commands to list exported symbols.
24658export_symbols_cmds=$lt_export_symbols_cmds_RC
24659
24660# The commands to extract the exported symbol list from a shared archive.
24661extract_expsyms_cmds=$lt_extract_expsyms_cmds
24662
24663# Symbols that should not be listed in the preloaded symbols.
24664exclude_expsyms=$lt_exclude_expsyms_RC
24665
24666# Symbols that must always be exported.
24667include_expsyms=$lt_include_expsyms_RC
24668
24669# ### END LIBTOOL TAG CONFIG: $tagname
24670
24671__EOF__
24672
24673
24674else
24675  # If there is no Makefile yet, we rely on a make rule to execute
24676  # `config.status --recheck' to rerun these tests and create the
24677  # libtool script then.
24678  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24679  if test -f "$ltmain_in"; then
24680    test -f Makefile && make "$ltmain"
24681  fi
24682fi
24683
24684
24685ac_ext=c
24686ac_cpp='$CPP $CPPFLAGS'
24687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24689ac_compiler_gnu=$ac_cv_c_compiler_gnu
24690
24691CC="$lt_save_CC"
24692
24693	;;
24694
24695      *)
24696	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24697echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24698   { (exit 1); exit 1; }; }
24699	;;
24700      esac
24701
24702      # Append the new tag name to the list of available tags.
24703      if test -n "$tagname" ; then
24704      available_tags="$available_tags $tagname"
24705    fi
24706    fi
24707  done
24708  IFS="$lt_save_ifs"
24709
24710  # Now substitute the updated list of available tags.
24711  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24712    mv "${ofile}T" "$ofile"
24713    chmod +x "$ofile"
24714  else
24715    rm -f "${ofile}T"
24716    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24717echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24718   { (exit 1); exit 1; }; }
24719  fi
24720fi
24721
24722
24723
24724# This can be used to rebuild libtool when needed
24725LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24726
24727# Always use our own libtool.
24728LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24729
24730# Prevent multiple expansion
24731
24732
24733
24734
24735
24736
24737
24738
24739
24740
24741
24742
24743
24744
24745
24746
24747
24748
24749
24750
24751
24752if test "$lt_cv_dlopen_self" = "yes" ; then
24753
24754cat >>confdefs.h <<\_ACEOF
24755#define CAN_DLOPEN_SELF 1
24756_ACEOF
24757
24758fi
24759
24760etags_version=`$ETAGS --version 2>&1`
24761case "$etags_version" in
24762	*Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24763	*GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24764	*) ETAGSFLAGS="" ;;
24765esac
24766ETAGSFLAGS=$ETAGSFLAGS
24767
24768
24769if test "$WITH_LLVMGCCDIR" = "default" ; then
24770  LLVMGCC="llvm-gcc${EXEEXT}"
24771  LLVMGXX="llvm-g++${EXEEXT}"
24772  # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24773set dummy $LLVMGCC; ac_word=$2
24774echo "$as_me:$LINENO: checking for $ac_word" >&5
24775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24776if test "${ac_cv_path_LLVMGCC+set}" = set; then
24777  echo $ECHO_N "(cached) $ECHO_C" >&6
24778else
24779  case $LLVMGCC in
24780  [\\/]* | ?:[\\/]*)
24781  ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24782  ;;
24783  *)
24784  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24785for as_dir in $PATH
24786do
24787  IFS=$as_save_IFS
24788  test -z "$as_dir" && as_dir=.
24789  for ac_exec_ext in '' $ac_executable_extensions; do
24790  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24791    ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24792    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24793    break 2
24794  fi
24795done
24796done
24797
24798  ;;
24799esac
24800fi
24801LLVMGCC=$ac_cv_path_LLVMGCC
24802
24803if test -n "$LLVMGCC"; then
24804  echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24805echo "${ECHO_T}$LLVMGCC" >&6
24806else
24807  echo "$as_me:$LINENO: result: no" >&5
24808echo "${ECHO_T}no" >&6
24809fi
24810
24811  # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24812set dummy $LLVMGXX; ac_word=$2
24813echo "$as_me:$LINENO: checking for $ac_word" >&5
24814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24815if test "${ac_cv_path_LLVMGXX+set}" = set; then
24816  echo $ECHO_N "(cached) $ECHO_C" >&6
24817else
24818  case $LLVMGXX in
24819  [\\/]* | ?:[\\/]*)
24820  ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24821  ;;
24822  *)
24823  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24824for as_dir in $PATH
24825do
24826  IFS=$as_save_IFS
24827  test -z "$as_dir" && as_dir=.
24828  for ac_exec_ext in '' $ac_executable_extensions; do
24829  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24830    ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24831    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24832    break 2
24833  fi
24834done
24835done
24836
24837  ;;
24838esac
24839fi
24840LLVMGXX=$ac_cv_path_LLVMGXX
24841
24842if test -n "$LLVMGXX"; then
24843  echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24844echo "${ECHO_T}$LLVMGXX" >&6
24845else
24846  echo "$as_me:$LINENO: result: no" >&5
24847echo "${ECHO_T}no" >&6
24848fi
24849
24850else
24851  LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24852  LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
24853  LLVMGCC=$LLVMGCC
24854
24855  LLVMGXX=$LLVMGXX
24856
24857fi
24858
24859echo "$as_me:$LINENO: checking tool compatibility" >&5
24860echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24861
24862ICC=no
24863IXX=no
24864case $CC in
24865  icc*|icpc*)
24866    ICC=yes
24867    IXX=yes
24868    ;;
24869   *)
24870    ;;
24871esac
24872
24873if test "$GCC" != "yes" && test "$ICC" != "yes"
24874then
24875  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24876echo "$as_me: error: gcc|icc required but not found" >&2;}
24877   { (exit 1); exit 1; }; }
24878fi
24879
24880if test "$GXX" != "yes" && test "$IXX" != "yes"
24881then
24882  { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24883echo "$as_me: error: g++|icc required but not found" >&2;}
24884   { (exit 1); exit 1; }; }
24885fi
24886
24887if test "$GCC" = "yes"
24888then
24889  gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
24890  if test "$gccmajor" -lt "3"
24891  then
24892    { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24893echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24894   { (exit 1); exit 1; }; }
24895  fi
24896fi
24897
24898if test -z "$llvm_cv_gnu_make_command"
24899then
24900  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24901echo "$as_me: error: GNU Make required but not found" >&2;}
24902   { (exit 1); exit 1; }; }
24903fi
24904
24905echo "$as_me:$LINENO: result: ok" >&5
24906echo "${ECHO_T}ok" >&6
24907
24908
24909
24910echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24911echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24912if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24913  echo $ECHO_N "(cached) $ECHO_C" >&6
24914else
24915  ac_check_lib_save_LIBS=$LIBS
24916LIBS="-lelf  $LIBS"
24917cat >conftest.$ac_ext <<_ACEOF
24918/* confdefs.h.  */
24919_ACEOF
24920cat confdefs.h >>conftest.$ac_ext
24921cat >>conftest.$ac_ext <<_ACEOF
24922/* end confdefs.h.  */
24923
24924/* Override any gcc2 internal prototype to avoid an error.  */
24925#ifdef __cplusplus
24926extern "C"
24927#endif
24928/* We use char because int might match the return type of a gcc2
24929   builtin and then its argument prototype would still apply.  */
24930char elf_begin ();
24931int
24932main ()
24933{
24934elf_begin ();
24935  ;
24936  return 0;
24937}
24938_ACEOF
24939rm -f conftest.$ac_objext conftest$ac_exeext
24940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24941  (eval $ac_link) 2>conftest.er1
24942  ac_status=$?
24943  grep -v '^ *+' conftest.er1 >conftest.err
24944  rm -f conftest.er1
24945  cat conftest.err >&5
24946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947  (exit $ac_status); } &&
24948	 { ac_try='test -z "$ac_c_werror_flag"
24949			 || test ! -s conftest.err'
24950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24951  (eval $ac_try) 2>&5
24952  ac_status=$?
24953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954  (exit $ac_status); }; } &&
24955	 { ac_try='test -s conftest$ac_exeext'
24956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24957  (eval $ac_try) 2>&5
24958  ac_status=$?
24959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960  (exit $ac_status); }; }; then
24961  ac_cv_lib_elf_elf_begin=yes
24962else
24963  echo "$as_me: failed program was:" >&5
24964sed 's/^/| /' conftest.$ac_ext >&5
24965
24966ac_cv_lib_elf_elf_begin=no
24967fi
24968rm -f conftest.err conftest.$ac_objext \
24969      conftest$ac_exeext conftest.$ac_ext
24970LIBS=$ac_check_lib_save_LIBS
24971fi
24972echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24973echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24974if test $ac_cv_lib_elf_elf_begin = yes; then
24975  cat >>confdefs.h <<_ACEOF
24976#define HAVE_LIBELF 1
24977_ACEOF
24978
24979  LIBS="-lelf $LIBS"
24980
24981fi
24982
24983
24984echo "$as_me:$LINENO: checking for sin in -lm" >&5
24985echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
24986if test "${ac_cv_lib_m_sin+set}" = set; then
24987  echo $ECHO_N "(cached) $ECHO_C" >&6
24988else
24989  ac_check_lib_save_LIBS=$LIBS
24990LIBS="-lm  $LIBS"
24991cat >conftest.$ac_ext <<_ACEOF
24992/* confdefs.h.  */
24993_ACEOF
24994cat confdefs.h >>conftest.$ac_ext
24995cat >>conftest.$ac_ext <<_ACEOF
24996/* end confdefs.h.  */
24997
24998/* Override any gcc2 internal prototype to avoid an error.  */
24999#ifdef __cplusplus
25000extern "C"
25001#endif
25002/* We use char because int might match the return type of a gcc2
25003   builtin and then its argument prototype would still apply.  */
25004char sin ();
25005int
25006main ()
25007{
25008sin ();
25009  ;
25010  return 0;
25011}
25012_ACEOF
25013rm -f conftest.$ac_objext conftest$ac_exeext
25014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25015  (eval $ac_link) 2>conftest.er1
25016  ac_status=$?
25017  grep -v '^ *+' conftest.er1 >conftest.err
25018  rm -f conftest.er1
25019  cat conftest.err >&5
25020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25021  (exit $ac_status); } &&
25022	 { ac_try='test -z "$ac_c_werror_flag"
25023			 || test ! -s conftest.err'
25024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25025  (eval $ac_try) 2>&5
25026  ac_status=$?
25027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028  (exit $ac_status); }; } &&
25029	 { ac_try='test -s conftest$ac_exeext'
25030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25031  (eval $ac_try) 2>&5
25032  ac_status=$?
25033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034  (exit $ac_status); }; }; then
25035  ac_cv_lib_m_sin=yes
25036else
25037  echo "$as_me: failed program was:" >&5
25038sed 's/^/| /' conftest.$ac_ext >&5
25039
25040ac_cv_lib_m_sin=no
25041fi
25042rm -f conftest.err conftest.$ac_objext \
25043      conftest$ac_exeext conftest.$ac_ext
25044LIBS=$ac_check_lib_save_LIBS
25045fi
25046echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25047echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25048if test $ac_cv_lib_m_sin = yes; then
25049  cat >>confdefs.h <<_ACEOF
25050#define HAVE_LIBM 1
25051_ACEOF
25052
25053  LIBS="-lm $LIBS"
25054
25055fi
25056
25057
25058echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25059echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25060if test "${ac_cv_search_lt_dlopen+set}" = set; then
25061  echo $ECHO_N "(cached) $ECHO_C" >&6
25062else
25063  ac_func_search_save_LIBS=$LIBS
25064ac_cv_search_lt_dlopen=no
25065cat >conftest.$ac_ext <<_ACEOF
25066/* confdefs.h.  */
25067_ACEOF
25068cat confdefs.h >>conftest.$ac_ext
25069cat >>conftest.$ac_ext <<_ACEOF
25070/* end confdefs.h.  */
25071
25072/* Override any gcc2 internal prototype to avoid an error.  */
25073#ifdef __cplusplus
25074extern "C"
25075#endif
25076/* We use char because int might match the return type of a gcc2
25077   builtin and then its argument prototype would still apply.  */
25078char lt_dlopen ();
25079int
25080main ()
25081{
25082lt_dlopen ();
25083  ;
25084  return 0;
25085}
25086_ACEOF
25087rm -f conftest.$ac_objext conftest$ac_exeext
25088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25089  (eval $ac_link) 2>conftest.er1
25090  ac_status=$?
25091  grep -v '^ *+' conftest.er1 >conftest.err
25092  rm -f conftest.er1
25093  cat conftest.err >&5
25094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095  (exit $ac_status); } &&
25096	 { ac_try='test -z "$ac_c_werror_flag"
25097			 || test ! -s conftest.err'
25098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25099  (eval $ac_try) 2>&5
25100  ac_status=$?
25101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102  (exit $ac_status); }; } &&
25103	 { ac_try='test -s conftest$ac_exeext'
25104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25105  (eval $ac_try) 2>&5
25106  ac_status=$?
25107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108  (exit $ac_status); }; }; then
25109  ac_cv_search_lt_dlopen="none required"
25110else
25111  echo "$as_me: failed program was:" >&5
25112sed 's/^/| /' conftest.$ac_ext >&5
25113
25114fi
25115rm -f conftest.err conftest.$ac_objext \
25116      conftest$ac_exeext conftest.$ac_ext
25117if test "$ac_cv_search_lt_dlopen" = no; then
25118  for ac_lib in ltdl; do
25119    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25120    cat >conftest.$ac_ext <<_ACEOF
25121/* confdefs.h.  */
25122_ACEOF
25123cat confdefs.h >>conftest.$ac_ext
25124cat >>conftest.$ac_ext <<_ACEOF
25125/* end confdefs.h.  */
25126
25127/* Override any gcc2 internal prototype to avoid an error.  */
25128#ifdef __cplusplus
25129extern "C"
25130#endif
25131/* We use char because int might match the return type of a gcc2
25132   builtin and then its argument prototype would still apply.  */
25133char lt_dlopen ();
25134int
25135main ()
25136{
25137lt_dlopen ();
25138  ;
25139  return 0;
25140}
25141_ACEOF
25142rm -f conftest.$ac_objext conftest$ac_exeext
25143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25144  (eval $ac_link) 2>conftest.er1
25145  ac_status=$?
25146  grep -v '^ *+' conftest.er1 >conftest.err
25147  rm -f conftest.er1
25148  cat conftest.err >&5
25149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150  (exit $ac_status); } &&
25151	 { ac_try='test -z "$ac_c_werror_flag"
25152			 || test ! -s conftest.err'
25153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25154  (eval $ac_try) 2>&5
25155  ac_status=$?
25156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157  (exit $ac_status); }; } &&
25158	 { ac_try='test -s conftest$ac_exeext'
25159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25160  (eval $ac_try) 2>&5
25161  ac_status=$?
25162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163  (exit $ac_status); }; }; then
25164  ac_cv_search_lt_dlopen="-l$ac_lib"
25165break
25166else
25167  echo "$as_me: failed program was:" >&5
25168sed 's/^/| /' conftest.$ac_ext >&5
25169
25170fi
25171rm -f conftest.err conftest.$ac_objext \
25172      conftest$ac_exeext conftest.$ac_ext
25173  done
25174fi
25175LIBS=$ac_func_search_save_LIBS
25176fi
25177echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25178echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25179if test "$ac_cv_search_lt_dlopen" != no; then
25180  test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25181
25182cat >>confdefs.h <<\_ACEOF
25183#define HAVE_LT_DLOPEN 1
25184_ACEOF
25185
25186else
25187  { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25188                           not be available" >&5
25189echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25190                           not be available" >&2;}
25191fi
25192
25193
25194echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25195echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25196if test "${ac_cv_search_dlopen+set}" = set; then
25197  echo $ECHO_N "(cached) $ECHO_C" >&6
25198else
25199  ac_func_search_save_LIBS=$LIBS
25200ac_cv_search_dlopen=no
25201cat >conftest.$ac_ext <<_ACEOF
25202/* confdefs.h.  */
25203_ACEOF
25204cat confdefs.h >>conftest.$ac_ext
25205cat >>conftest.$ac_ext <<_ACEOF
25206/* end confdefs.h.  */
25207
25208/* Override any gcc2 internal prototype to avoid an error.  */
25209#ifdef __cplusplus
25210extern "C"
25211#endif
25212/* We use char because int might match the return type of a gcc2
25213   builtin and then its argument prototype would still apply.  */
25214char dlopen ();
25215int
25216main ()
25217{
25218dlopen ();
25219  ;
25220  return 0;
25221}
25222_ACEOF
25223rm -f conftest.$ac_objext conftest$ac_exeext
25224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25225  (eval $ac_link) 2>conftest.er1
25226  ac_status=$?
25227  grep -v '^ *+' conftest.er1 >conftest.err
25228  rm -f conftest.er1
25229  cat conftest.err >&5
25230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231  (exit $ac_status); } &&
25232	 { ac_try='test -z "$ac_c_werror_flag"
25233			 || test ! -s conftest.err'
25234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25235  (eval $ac_try) 2>&5
25236  ac_status=$?
25237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238  (exit $ac_status); }; } &&
25239	 { ac_try='test -s conftest$ac_exeext'
25240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25241  (eval $ac_try) 2>&5
25242  ac_status=$?
25243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244  (exit $ac_status); }; }; then
25245  ac_cv_search_dlopen="none required"
25246else
25247  echo "$as_me: failed program was:" >&5
25248sed 's/^/| /' conftest.$ac_ext >&5
25249
25250fi
25251rm -f conftest.err conftest.$ac_objext \
25252      conftest$ac_exeext conftest.$ac_ext
25253if test "$ac_cv_search_dlopen" = no; then
25254  for ac_lib in dl; do
25255    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25256    cat >conftest.$ac_ext <<_ACEOF
25257/* confdefs.h.  */
25258_ACEOF
25259cat confdefs.h >>conftest.$ac_ext
25260cat >>conftest.$ac_ext <<_ACEOF
25261/* end confdefs.h.  */
25262
25263/* Override any gcc2 internal prototype to avoid an error.  */
25264#ifdef __cplusplus
25265extern "C"
25266#endif
25267/* We use char because int might match the return type of a gcc2
25268   builtin and then its argument prototype would still apply.  */
25269char dlopen ();
25270int
25271main ()
25272{
25273dlopen ();
25274  ;
25275  return 0;
25276}
25277_ACEOF
25278rm -f conftest.$ac_objext conftest$ac_exeext
25279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25280  (eval $ac_link) 2>conftest.er1
25281  ac_status=$?
25282  grep -v '^ *+' conftest.er1 >conftest.err
25283  rm -f conftest.er1
25284  cat conftest.err >&5
25285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286  (exit $ac_status); } &&
25287	 { ac_try='test -z "$ac_c_werror_flag"
25288			 || test ! -s conftest.err'
25289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25290  (eval $ac_try) 2>&5
25291  ac_status=$?
25292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293  (exit $ac_status); }; } &&
25294	 { ac_try='test -s conftest$ac_exeext'
25295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25296  (eval $ac_try) 2>&5
25297  ac_status=$?
25298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299  (exit $ac_status); }; }; then
25300  ac_cv_search_dlopen="-l$ac_lib"
25301break
25302else
25303  echo "$as_me: failed program was:" >&5
25304sed 's/^/| /' conftest.$ac_ext >&5
25305
25306fi
25307rm -f conftest.err conftest.$ac_objext \
25308      conftest$ac_exeext conftest.$ac_ext
25309  done
25310fi
25311LIBS=$ac_func_search_save_LIBS
25312fi
25313echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25314echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25315if test "$ac_cv_search_dlopen" != no; then
25316  test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25317
25318cat >>confdefs.h <<\_ACEOF
25319#define HAVE_DLOPEN 1
25320_ACEOF
25321
25322else
25323  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25324echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25325fi
25326
25327
25328echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25329echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25330if test "${ac_cv_search_mallinfo+set}" = set; then
25331  echo $ECHO_N "(cached) $ECHO_C" >&6
25332else
25333  ac_func_search_save_LIBS=$LIBS
25334ac_cv_search_mallinfo=no
25335cat >conftest.$ac_ext <<_ACEOF
25336/* confdefs.h.  */
25337_ACEOF
25338cat confdefs.h >>conftest.$ac_ext
25339cat >>conftest.$ac_ext <<_ACEOF
25340/* end confdefs.h.  */
25341
25342/* Override any gcc2 internal prototype to avoid an error.  */
25343#ifdef __cplusplus
25344extern "C"
25345#endif
25346/* We use char because int might match the return type of a gcc2
25347   builtin and then its argument prototype would still apply.  */
25348char mallinfo ();
25349int
25350main ()
25351{
25352mallinfo ();
25353  ;
25354  return 0;
25355}
25356_ACEOF
25357rm -f conftest.$ac_objext conftest$ac_exeext
25358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25359  (eval $ac_link) 2>conftest.er1
25360  ac_status=$?
25361  grep -v '^ *+' conftest.er1 >conftest.err
25362  rm -f conftest.er1
25363  cat conftest.err >&5
25364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365  (exit $ac_status); } &&
25366	 { ac_try='test -z "$ac_c_werror_flag"
25367			 || test ! -s conftest.err'
25368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25369  (eval $ac_try) 2>&5
25370  ac_status=$?
25371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25372  (exit $ac_status); }; } &&
25373	 { ac_try='test -s conftest$ac_exeext'
25374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25375  (eval $ac_try) 2>&5
25376  ac_status=$?
25377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25378  (exit $ac_status); }; }; then
25379  ac_cv_search_mallinfo="none required"
25380else
25381  echo "$as_me: failed program was:" >&5
25382sed 's/^/| /' conftest.$ac_ext >&5
25383
25384fi
25385rm -f conftest.err conftest.$ac_objext \
25386      conftest$ac_exeext conftest.$ac_ext
25387if test "$ac_cv_search_mallinfo" = no; then
25388  for ac_lib in malloc; do
25389    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25390    cat >conftest.$ac_ext <<_ACEOF
25391/* confdefs.h.  */
25392_ACEOF
25393cat confdefs.h >>conftest.$ac_ext
25394cat >>conftest.$ac_ext <<_ACEOF
25395/* end confdefs.h.  */
25396
25397/* Override any gcc2 internal prototype to avoid an error.  */
25398#ifdef __cplusplus
25399extern "C"
25400#endif
25401/* We use char because int might match the return type of a gcc2
25402   builtin and then its argument prototype would still apply.  */
25403char mallinfo ();
25404int
25405main ()
25406{
25407mallinfo ();
25408  ;
25409  return 0;
25410}
25411_ACEOF
25412rm -f conftest.$ac_objext conftest$ac_exeext
25413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25414  (eval $ac_link) 2>conftest.er1
25415  ac_status=$?
25416  grep -v '^ *+' conftest.er1 >conftest.err
25417  rm -f conftest.er1
25418  cat conftest.err >&5
25419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25420  (exit $ac_status); } &&
25421	 { ac_try='test -z "$ac_c_werror_flag"
25422			 || test ! -s conftest.err'
25423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25424  (eval $ac_try) 2>&5
25425  ac_status=$?
25426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427  (exit $ac_status); }; } &&
25428	 { ac_try='test -s conftest$ac_exeext'
25429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25430  (eval $ac_try) 2>&5
25431  ac_status=$?
25432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433  (exit $ac_status); }; }; then
25434  ac_cv_search_mallinfo="-l$ac_lib"
25435break
25436else
25437  echo "$as_me: failed program was:" >&5
25438sed 's/^/| /' conftest.$ac_ext >&5
25439
25440fi
25441rm -f conftest.err conftest.$ac_objext \
25442      conftest$ac_exeext conftest.$ac_ext
25443  done
25444fi
25445LIBS=$ac_func_search_save_LIBS
25446fi
25447echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25448echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25449if test "$ac_cv_search_mallinfo" != no; then
25450  test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25451
25452cat >>confdefs.h <<\_ACEOF
25453#define HAVE_MALLINFO 1
25454_ACEOF
25455
25456fi
25457
25458
25459if test "$ENABLE_THREADS" -eq 1 ; then
25460
25461echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25462echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25463if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25464  echo $ECHO_N "(cached) $ECHO_C" >&6
25465else
25466  ac_check_lib_save_LIBS=$LIBS
25467LIBS="-lpthread  $LIBS"
25468cat >conftest.$ac_ext <<_ACEOF
25469/* confdefs.h.  */
25470_ACEOF
25471cat confdefs.h >>conftest.$ac_ext
25472cat >>conftest.$ac_ext <<_ACEOF
25473/* end confdefs.h.  */
25474
25475/* Override any gcc2 internal prototype to avoid an error.  */
25476#ifdef __cplusplus
25477extern "C"
25478#endif
25479/* We use char because int might match the return type of a gcc2
25480   builtin and then its argument prototype would still apply.  */
25481char pthread_mutex_init ();
25482int
25483main ()
25484{
25485pthread_mutex_init ();
25486  ;
25487  return 0;
25488}
25489_ACEOF
25490rm -f conftest.$ac_objext conftest$ac_exeext
25491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25492  (eval $ac_link) 2>conftest.er1
25493  ac_status=$?
25494  grep -v '^ *+' conftest.er1 >conftest.err
25495  rm -f conftest.er1
25496  cat conftest.err >&5
25497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498  (exit $ac_status); } &&
25499	 { ac_try='test -z "$ac_c_werror_flag"
25500			 || test ! -s conftest.err'
25501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25502  (eval $ac_try) 2>&5
25503  ac_status=$?
25504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25505  (exit $ac_status); }; } &&
25506	 { ac_try='test -s conftest$ac_exeext'
25507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25508  (eval $ac_try) 2>&5
25509  ac_status=$?
25510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511  (exit $ac_status); }; }; then
25512  ac_cv_lib_pthread_pthread_mutex_init=yes
25513else
25514  echo "$as_me: failed program was:" >&5
25515sed 's/^/| /' conftest.$ac_ext >&5
25516
25517ac_cv_lib_pthread_pthread_mutex_init=no
25518fi
25519rm -f conftest.err conftest.$ac_objext \
25520      conftest$ac_exeext conftest.$ac_ext
25521LIBS=$ac_check_lib_save_LIBS
25522fi
25523echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25524echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25525if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25526  cat >>confdefs.h <<_ACEOF
25527#define HAVE_LIBPTHREAD 1
25528_ACEOF
25529
25530  LIBS="-lpthread $LIBS"
25531
25532fi
25533
25534  echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25535echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25536if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25537  echo $ECHO_N "(cached) $ECHO_C" >&6
25538else
25539  ac_func_search_save_LIBS=$LIBS
25540ac_cv_search_pthread_mutex_lock=no
25541cat >conftest.$ac_ext <<_ACEOF
25542/* confdefs.h.  */
25543_ACEOF
25544cat confdefs.h >>conftest.$ac_ext
25545cat >>conftest.$ac_ext <<_ACEOF
25546/* end confdefs.h.  */
25547
25548/* Override any gcc2 internal prototype to avoid an error.  */
25549#ifdef __cplusplus
25550extern "C"
25551#endif
25552/* We use char because int might match the return type of a gcc2
25553   builtin and then its argument prototype would still apply.  */
25554char pthread_mutex_lock ();
25555int
25556main ()
25557{
25558pthread_mutex_lock ();
25559  ;
25560  return 0;
25561}
25562_ACEOF
25563rm -f conftest.$ac_objext conftest$ac_exeext
25564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25565  (eval $ac_link) 2>conftest.er1
25566  ac_status=$?
25567  grep -v '^ *+' conftest.er1 >conftest.err
25568  rm -f conftest.er1
25569  cat conftest.err >&5
25570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25571  (exit $ac_status); } &&
25572	 { ac_try='test -z "$ac_c_werror_flag"
25573			 || test ! -s conftest.err'
25574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25575  (eval $ac_try) 2>&5
25576  ac_status=$?
25577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578  (exit $ac_status); }; } &&
25579	 { ac_try='test -s conftest$ac_exeext'
25580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25581  (eval $ac_try) 2>&5
25582  ac_status=$?
25583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584  (exit $ac_status); }; }; then
25585  ac_cv_search_pthread_mutex_lock="none required"
25586else
25587  echo "$as_me: failed program was:" >&5
25588sed 's/^/| /' conftest.$ac_ext >&5
25589
25590fi
25591rm -f conftest.err conftest.$ac_objext \
25592      conftest$ac_exeext conftest.$ac_ext
25593if test "$ac_cv_search_pthread_mutex_lock" = no; then
25594  for ac_lib in pthread; do
25595    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25596    cat >conftest.$ac_ext <<_ACEOF
25597/* confdefs.h.  */
25598_ACEOF
25599cat confdefs.h >>conftest.$ac_ext
25600cat >>conftest.$ac_ext <<_ACEOF
25601/* end confdefs.h.  */
25602
25603/* Override any gcc2 internal prototype to avoid an error.  */
25604#ifdef __cplusplus
25605extern "C"
25606#endif
25607/* We use char because int might match the return type of a gcc2
25608   builtin and then its argument prototype would still apply.  */
25609char pthread_mutex_lock ();
25610int
25611main ()
25612{
25613pthread_mutex_lock ();
25614  ;
25615  return 0;
25616}
25617_ACEOF
25618rm -f conftest.$ac_objext conftest$ac_exeext
25619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25620  (eval $ac_link) 2>conftest.er1
25621  ac_status=$?
25622  grep -v '^ *+' conftest.er1 >conftest.err
25623  rm -f conftest.er1
25624  cat conftest.err >&5
25625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626  (exit $ac_status); } &&
25627	 { ac_try='test -z "$ac_c_werror_flag"
25628			 || test ! -s conftest.err'
25629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25630  (eval $ac_try) 2>&5
25631  ac_status=$?
25632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25633  (exit $ac_status); }; } &&
25634	 { ac_try='test -s conftest$ac_exeext'
25635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25636  (eval $ac_try) 2>&5
25637  ac_status=$?
25638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639  (exit $ac_status); }; }; then
25640  ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25641break
25642else
25643  echo "$as_me: failed program was:" >&5
25644sed 's/^/| /' conftest.$ac_ext >&5
25645
25646fi
25647rm -f conftest.err conftest.$ac_objext \
25648      conftest$ac_exeext conftest.$ac_ext
25649  done
25650fi
25651LIBS=$ac_func_search_save_LIBS
25652fi
25653echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25654echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25655if test "$ac_cv_search_pthread_mutex_lock" != no; then
25656  test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25657
25658cat >>confdefs.h <<\_ACEOF
25659#define HAVE_PTHREAD_MUTEX_LOCK 1
25660_ACEOF
25661
25662fi
25663
25664fi
25665
25666
25667
25668
25669
25670
25671
25672ac_header_dirent=no
25673for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25674  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25675echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25676echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25677if eval "test \"\${$as_ac_Header+set}\" = set"; then
25678  echo $ECHO_N "(cached) $ECHO_C" >&6
25679else
25680  cat >conftest.$ac_ext <<_ACEOF
25681/* confdefs.h.  */
25682_ACEOF
25683cat confdefs.h >>conftest.$ac_ext
25684cat >>conftest.$ac_ext <<_ACEOF
25685/* end confdefs.h.  */
25686#include <sys/types.h>
25687#include <$ac_hdr>
25688
25689int
25690main ()
25691{
25692if ((DIR *) 0)
25693return 0;
25694  ;
25695  return 0;
25696}
25697_ACEOF
25698rm -f conftest.$ac_objext
25699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25700  (eval $ac_compile) 2>conftest.er1
25701  ac_status=$?
25702  grep -v '^ *+' conftest.er1 >conftest.err
25703  rm -f conftest.er1
25704  cat conftest.err >&5
25705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706  (exit $ac_status); } &&
25707	 { ac_try='test -z "$ac_c_werror_flag"
25708			 || test ! -s conftest.err'
25709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25710  (eval $ac_try) 2>&5
25711  ac_status=$?
25712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713  (exit $ac_status); }; } &&
25714	 { ac_try='test -s conftest.$ac_objext'
25715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25716  (eval $ac_try) 2>&5
25717  ac_status=$?
25718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719  (exit $ac_status); }; }; then
25720  eval "$as_ac_Header=yes"
25721else
25722  echo "$as_me: failed program was:" >&5
25723sed 's/^/| /' conftest.$ac_ext >&5
25724
25725eval "$as_ac_Header=no"
25726fi
25727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25728fi
25729echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25730echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25731if test `eval echo '${'$as_ac_Header'}'` = yes; then
25732  cat >>confdefs.h <<_ACEOF
25733#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25734_ACEOF
25735
25736ac_header_dirent=$ac_hdr; break
25737fi
25738
25739done
25740# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25741if test $ac_header_dirent = dirent.h; then
25742  echo "$as_me:$LINENO: checking for library containing opendir" >&5
25743echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25744if test "${ac_cv_search_opendir+set}" = set; then
25745  echo $ECHO_N "(cached) $ECHO_C" >&6
25746else
25747  ac_func_search_save_LIBS=$LIBS
25748ac_cv_search_opendir=no
25749cat >conftest.$ac_ext <<_ACEOF
25750/* confdefs.h.  */
25751_ACEOF
25752cat confdefs.h >>conftest.$ac_ext
25753cat >>conftest.$ac_ext <<_ACEOF
25754/* end confdefs.h.  */
25755
25756/* Override any gcc2 internal prototype to avoid an error.  */
25757#ifdef __cplusplus
25758extern "C"
25759#endif
25760/* We use char because int might match the return type of a gcc2
25761   builtin and then its argument prototype would still apply.  */
25762char opendir ();
25763int
25764main ()
25765{
25766opendir ();
25767  ;
25768  return 0;
25769}
25770_ACEOF
25771rm -f conftest.$ac_objext conftest$ac_exeext
25772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25773  (eval $ac_link) 2>conftest.er1
25774  ac_status=$?
25775  grep -v '^ *+' conftest.er1 >conftest.err
25776  rm -f conftest.er1
25777  cat conftest.err >&5
25778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779  (exit $ac_status); } &&
25780	 { ac_try='test -z "$ac_c_werror_flag"
25781			 || test ! -s conftest.err'
25782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25783  (eval $ac_try) 2>&5
25784  ac_status=$?
25785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25786  (exit $ac_status); }; } &&
25787	 { ac_try='test -s conftest$ac_exeext'
25788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25789  (eval $ac_try) 2>&5
25790  ac_status=$?
25791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25792  (exit $ac_status); }; }; then
25793  ac_cv_search_opendir="none required"
25794else
25795  echo "$as_me: failed program was:" >&5
25796sed 's/^/| /' conftest.$ac_ext >&5
25797
25798fi
25799rm -f conftest.err conftest.$ac_objext \
25800      conftest$ac_exeext conftest.$ac_ext
25801if test "$ac_cv_search_opendir" = no; then
25802  for ac_lib in dir; do
25803    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25804    cat >conftest.$ac_ext <<_ACEOF
25805/* confdefs.h.  */
25806_ACEOF
25807cat confdefs.h >>conftest.$ac_ext
25808cat >>conftest.$ac_ext <<_ACEOF
25809/* end confdefs.h.  */
25810
25811/* Override any gcc2 internal prototype to avoid an error.  */
25812#ifdef __cplusplus
25813extern "C"
25814#endif
25815/* We use char because int might match the return type of a gcc2
25816   builtin and then its argument prototype would still apply.  */
25817char opendir ();
25818int
25819main ()
25820{
25821opendir ();
25822  ;
25823  return 0;
25824}
25825_ACEOF
25826rm -f conftest.$ac_objext conftest$ac_exeext
25827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25828  (eval $ac_link) 2>conftest.er1
25829  ac_status=$?
25830  grep -v '^ *+' conftest.er1 >conftest.err
25831  rm -f conftest.er1
25832  cat conftest.err >&5
25833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834  (exit $ac_status); } &&
25835	 { ac_try='test -z "$ac_c_werror_flag"
25836			 || test ! -s conftest.err'
25837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25838  (eval $ac_try) 2>&5
25839  ac_status=$?
25840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841  (exit $ac_status); }; } &&
25842	 { ac_try='test -s conftest$ac_exeext'
25843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25844  (eval $ac_try) 2>&5
25845  ac_status=$?
25846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25847  (exit $ac_status); }; }; then
25848  ac_cv_search_opendir="-l$ac_lib"
25849break
25850else
25851  echo "$as_me: failed program was:" >&5
25852sed 's/^/| /' conftest.$ac_ext >&5
25853
25854fi
25855rm -f conftest.err conftest.$ac_objext \
25856      conftest$ac_exeext conftest.$ac_ext
25857  done
25858fi
25859LIBS=$ac_func_search_save_LIBS
25860fi
25861echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25862echo "${ECHO_T}$ac_cv_search_opendir" >&6
25863if test "$ac_cv_search_opendir" != no; then
25864  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25865
25866fi
25867
25868else
25869  echo "$as_me:$LINENO: checking for library containing opendir" >&5
25870echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25871if test "${ac_cv_search_opendir+set}" = set; then
25872  echo $ECHO_N "(cached) $ECHO_C" >&6
25873else
25874  ac_func_search_save_LIBS=$LIBS
25875ac_cv_search_opendir=no
25876cat >conftest.$ac_ext <<_ACEOF
25877/* confdefs.h.  */
25878_ACEOF
25879cat confdefs.h >>conftest.$ac_ext
25880cat >>conftest.$ac_ext <<_ACEOF
25881/* end confdefs.h.  */
25882
25883/* Override any gcc2 internal prototype to avoid an error.  */
25884#ifdef __cplusplus
25885extern "C"
25886#endif
25887/* We use char because int might match the return type of a gcc2
25888   builtin and then its argument prototype would still apply.  */
25889char opendir ();
25890int
25891main ()
25892{
25893opendir ();
25894  ;
25895  return 0;
25896}
25897_ACEOF
25898rm -f conftest.$ac_objext conftest$ac_exeext
25899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25900  (eval $ac_link) 2>conftest.er1
25901  ac_status=$?
25902  grep -v '^ *+' conftest.er1 >conftest.err
25903  rm -f conftest.er1
25904  cat conftest.err >&5
25905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25906  (exit $ac_status); } &&
25907	 { ac_try='test -z "$ac_c_werror_flag"
25908			 || test ! -s conftest.err'
25909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25910  (eval $ac_try) 2>&5
25911  ac_status=$?
25912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25913  (exit $ac_status); }; } &&
25914	 { ac_try='test -s conftest$ac_exeext'
25915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25916  (eval $ac_try) 2>&5
25917  ac_status=$?
25918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25919  (exit $ac_status); }; }; then
25920  ac_cv_search_opendir="none required"
25921else
25922  echo "$as_me: failed program was:" >&5
25923sed 's/^/| /' conftest.$ac_ext >&5
25924
25925fi
25926rm -f conftest.err conftest.$ac_objext \
25927      conftest$ac_exeext conftest.$ac_ext
25928if test "$ac_cv_search_opendir" = no; then
25929  for ac_lib in x; do
25930    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25931    cat >conftest.$ac_ext <<_ACEOF
25932/* confdefs.h.  */
25933_ACEOF
25934cat confdefs.h >>conftest.$ac_ext
25935cat >>conftest.$ac_ext <<_ACEOF
25936/* end confdefs.h.  */
25937
25938/* Override any gcc2 internal prototype to avoid an error.  */
25939#ifdef __cplusplus
25940extern "C"
25941#endif
25942/* We use char because int might match the return type of a gcc2
25943   builtin and then its argument prototype would still apply.  */
25944char opendir ();
25945int
25946main ()
25947{
25948opendir ();
25949  ;
25950  return 0;
25951}
25952_ACEOF
25953rm -f conftest.$ac_objext conftest$ac_exeext
25954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25955  (eval $ac_link) 2>conftest.er1
25956  ac_status=$?
25957  grep -v '^ *+' conftest.er1 >conftest.err
25958  rm -f conftest.er1
25959  cat conftest.err >&5
25960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961  (exit $ac_status); } &&
25962	 { ac_try='test -z "$ac_c_werror_flag"
25963			 || test ! -s conftest.err'
25964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25965  (eval $ac_try) 2>&5
25966  ac_status=$?
25967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968  (exit $ac_status); }; } &&
25969	 { ac_try='test -s conftest$ac_exeext'
25970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25971  (eval $ac_try) 2>&5
25972  ac_status=$?
25973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974  (exit $ac_status); }; }; then
25975  ac_cv_search_opendir="-l$ac_lib"
25976break
25977else
25978  echo "$as_me: failed program was:" >&5
25979sed 's/^/| /' conftest.$ac_ext >&5
25980
25981fi
25982rm -f conftest.err conftest.$ac_objext \
25983      conftest$ac_exeext conftest.$ac_ext
25984  done
25985fi
25986LIBS=$ac_func_search_save_LIBS
25987fi
25988echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25989echo "${ECHO_T}$ac_cv_search_opendir" >&6
25990if test "$ac_cv_search_opendir" != no; then
25991  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25992
25993fi
25994
25995fi
25996
25997echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25998echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25999if test "${ac_cv_header_mmap_anon+set}" = set; then
26000  echo $ECHO_N "(cached) $ECHO_C" >&6
26001else
26002   ac_ext=c
26003ac_cpp='$CPP $CPPFLAGS'
26004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26006ac_compiler_gnu=$ac_cv_c_compiler_gnu
26007
26008  cat >conftest.$ac_ext <<_ACEOF
26009/* confdefs.h.  */
26010_ACEOF
26011cat confdefs.h >>conftest.$ac_ext
26012cat >>conftest.$ac_ext <<_ACEOF
26013/* end confdefs.h.  */
26014#include <sys/mman.h>
26015#include <unistd.h>
26016#include <fcntl.h>
26017int
26018main ()
26019{
26020mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26021  ;
26022  return 0;
26023}
26024_ACEOF
26025rm -f conftest.$ac_objext
26026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26027  (eval $ac_compile) 2>conftest.er1
26028  ac_status=$?
26029  grep -v '^ *+' conftest.er1 >conftest.err
26030  rm -f conftest.er1
26031  cat conftest.err >&5
26032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033  (exit $ac_status); } &&
26034	 { ac_try='test -z "$ac_c_werror_flag"
26035			 || test ! -s conftest.err'
26036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26037  (eval $ac_try) 2>&5
26038  ac_status=$?
26039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040  (exit $ac_status); }; } &&
26041	 { ac_try='test -s conftest.$ac_objext'
26042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26043  (eval $ac_try) 2>&5
26044  ac_status=$?
26045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046  (exit $ac_status); }; }; then
26047  ac_cv_header_mmap_anon=yes
26048else
26049  echo "$as_me: failed program was:" >&5
26050sed 's/^/| /' conftest.$ac_ext >&5
26051
26052ac_cv_header_mmap_anon=no
26053fi
26054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26055  ac_ext=c
26056ac_cpp='$CPP $CPPFLAGS'
26057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26059ac_compiler_gnu=$ac_cv_c_compiler_gnu
26060
26061
26062fi
26063echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26064echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26065if test "$ac_cv_header_mmap_anon" = yes; then
26066
26067cat >>confdefs.h <<\_ACEOF
26068#define HAVE_MMAP_ANONYMOUS 1
26069_ACEOF
26070
26071fi
26072
26073echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26074echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26075if test "${ac_cv_header_stat_broken+set}" = set; then
26076  echo $ECHO_N "(cached) $ECHO_C" >&6
26077else
26078  cat >conftest.$ac_ext <<_ACEOF
26079/* confdefs.h.  */
26080_ACEOF
26081cat confdefs.h >>conftest.$ac_ext
26082cat >>conftest.$ac_ext <<_ACEOF
26083/* end confdefs.h.  */
26084#include <sys/types.h>
26085#include <sys/stat.h>
26086
26087#if defined(S_ISBLK) && defined(S_IFDIR)
26088# if S_ISBLK (S_IFDIR)
26089You lose.
26090# endif
26091#endif
26092
26093#if defined(S_ISBLK) && defined(S_IFCHR)
26094# if S_ISBLK (S_IFCHR)
26095You lose.
26096# endif
26097#endif
26098
26099#if defined(S_ISLNK) && defined(S_IFREG)
26100# if S_ISLNK (S_IFREG)
26101You lose.
26102# endif
26103#endif
26104
26105#if defined(S_ISSOCK) && defined(S_IFREG)
26106# if S_ISSOCK (S_IFREG)
26107You lose.
26108# endif
26109#endif
26110
26111_ACEOF
26112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26113  $EGREP "You lose" >/dev/null 2>&1; then
26114  ac_cv_header_stat_broken=yes
26115else
26116  ac_cv_header_stat_broken=no
26117fi
26118rm -f conftest*
26119
26120fi
26121echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26122echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26123if test $ac_cv_header_stat_broken = yes; then
26124
26125cat >>confdefs.h <<\_ACEOF
26126#define STAT_MACROS_BROKEN 1
26127_ACEOF
26128
26129fi
26130
26131echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26132echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26133if test "${ac_cv_header_stdc+set}" = set; then
26134  echo $ECHO_N "(cached) $ECHO_C" >&6
26135else
26136  cat >conftest.$ac_ext <<_ACEOF
26137/* confdefs.h.  */
26138_ACEOF
26139cat confdefs.h >>conftest.$ac_ext
26140cat >>conftest.$ac_ext <<_ACEOF
26141/* end confdefs.h.  */
26142#include <stdlib.h>
26143#include <stdarg.h>
26144#include <string.h>
26145#include <float.h>
26146
26147int
26148main ()
26149{
26150
26151  ;
26152  return 0;
26153}
26154_ACEOF
26155rm -f conftest.$ac_objext
26156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26157  (eval $ac_compile) 2>conftest.er1
26158  ac_status=$?
26159  grep -v '^ *+' conftest.er1 >conftest.err
26160  rm -f conftest.er1
26161  cat conftest.err >&5
26162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26163  (exit $ac_status); } &&
26164	 { ac_try='test -z "$ac_c_werror_flag"
26165			 || test ! -s conftest.err'
26166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26167  (eval $ac_try) 2>&5
26168  ac_status=$?
26169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170  (exit $ac_status); }; } &&
26171	 { ac_try='test -s conftest.$ac_objext'
26172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26173  (eval $ac_try) 2>&5
26174  ac_status=$?
26175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176  (exit $ac_status); }; }; then
26177  ac_cv_header_stdc=yes
26178else
26179  echo "$as_me: failed program was:" >&5
26180sed 's/^/| /' conftest.$ac_ext >&5
26181
26182ac_cv_header_stdc=no
26183fi
26184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26185
26186if test $ac_cv_header_stdc = yes; then
26187  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26188  cat >conftest.$ac_ext <<_ACEOF
26189/* confdefs.h.  */
26190_ACEOF
26191cat confdefs.h >>conftest.$ac_ext
26192cat >>conftest.$ac_ext <<_ACEOF
26193/* end confdefs.h.  */
26194#include <string.h>
26195
26196_ACEOF
26197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26198  $EGREP "memchr" >/dev/null 2>&1; then
26199  :
26200else
26201  ac_cv_header_stdc=no
26202fi
26203rm -f conftest*
26204
26205fi
26206
26207if test $ac_cv_header_stdc = yes; then
26208  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26209  cat >conftest.$ac_ext <<_ACEOF
26210/* confdefs.h.  */
26211_ACEOF
26212cat confdefs.h >>conftest.$ac_ext
26213cat >>conftest.$ac_ext <<_ACEOF
26214/* end confdefs.h.  */
26215#include <stdlib.h>
26216
26217_ACEOF
26218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26219  $EGREP "free" >/dev/null 2>&1; then
26220  :
26221else
26222  ac_cv_header_stdc=no
26223fi
26224rm -f conftest*
26225
26226fi
26227
26228if test $ac_cv_header_stdc = yes; then
26229  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26230  if test "$cross_compiling" = yes; then
26231  :
26232else
26233  cat >conftest.$ac_ext <<_ACEOF
26234/* confdefs.h.  */
26235_ACEOF
26236cat confdefs.h >>conftest.$ac_ext
26237cat >>conftest.$ac_ext <<_ACEOF
26238/* end confdefs.h.  */
26239#include <ctype.h>
26240#if ((' ' & 0x0FF) == 0x020)
26241# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26242# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26243#else
26244# define ISLOWER(c) \
26245		   (('a' <= (c) && (c) <= 'i') \
26246		     || ('j' <= (c) && (c) <= 'r') \
26247		     || ('s' <= (c) && (c) <= 'z'))
26248# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26249#endif
26250
26251#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26252int
26253main ()
26254{
26255  int i;
26256  for (i = 0; i < 256; i++)
26257    if (XOR (islower (i), ISLOWER (i))
26258	|| toupper (i) != TOUPPER (i))
26259      exit(2);
26260  exit (0);
26261}
26262_ACEOF
26263rm -f conftest$ac_exeext
26264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26265  (eval $ac_link) 2>&5
26266  ac_status=$?
26267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26268  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26270  (eval $ac_try) 2>&5
26271  ac_status=$?
26272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26273  (exit $ac_status); }; }; then
26274  :
26275else
26276  echo "$as_me: program exited with status $ac_status" >&5
26277echo "$as_me: failed program was:" >&5
26278sed 's/^/| /' conftest.$ac_ext >&5
26279
26280( exit $ac_status )
26281ac_cv_header_stdc=no
26282fi
26283rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26284fi
26285fi
26286fi
26287echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26288echo "${ECHO_T}$ac_cv_header_stdc" >&6
26289if test $ac_cv_header_stdc = yes; then
26290
26291cat >>confdefs.h <<\_ACEOF
26292#define STDC_HEADERS 1
26293_ACEOF
26294
26295fi
26296
26297echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26298echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26299if test "${ac_cv_header_sys_wait_h+set}" = set; then
26300  echo $ECHO_N "(cached) $ECHO_C" >&6
26301else
26302  cat >conftest.$ac_ext <<_ACEOF
26303/* confdefs.h.  */
26304_ACEOF
26305cat confdefs.h >>conftest.$ac_ext
26306cat >>conftest.$ac_ext <<_ACEOF
26307/* end confdefs.h.  */
26308#include <sys/types.h>
26309#include <sys/wait.h>
26310#ifndef WEXITSTATUS
26311# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26312#endif
26313#ifndef WIFEXITED
26314# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26315#endif
26316
26317int
26318main ()
26319{
26320  int s;
26321  wait (&s);
26322  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26323  ;
26324  return 0;
26325}
26326_ACEOF
26327rm -f conftest.$ac_objext
26328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26329  (eval $ac_compile) 2>conftest.er1
26330  ac_status=$?
26331  grep -v '^ *+' conftest.er1 >conftest.err
26332  rm -f conftest.er1
26333  cat conftest.err >&5
26334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26335  (exit $ac_status); } &&
26336	 { ac_try='test -z "$ac_c_werror_flag"
26337			 || test ! -s conftest.err'
26338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26339  (eval $ac_try) 2>&5
26340  ac_status=$?
26341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26342  (exit $ac_status); }; } &&
26343	 { ac_try='test -s conftest.$ac_objext'
26344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26345  (eval $ac_try) 2>&5
26346  ac_status=$?
26347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348  (exit $ac_status); }; }; then
26349  ac_cv_header_sys_wait_h=yes
26350else
26351  echo "$as_me: failed program was:" >&5
26352sed 's/^/| /' conftest.$ac_ext >&5
26353
26354ac_cv_header_sys_wait_h=no
26355fi
26356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26357fi
26358echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26359echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26360if test $ac_cv_header_sys_wait_h = yes; then
26361
26362cat >>confdefs.h <<\_ACEOF
26363#define HAVE_SYS_WAIT_H 1
26364_ACEOF
26365
26366fi
26367
26368echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26369echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26370if test "${ac_cv_header_time+set}" = set; then
26371  echo $ECHO_N "(cached) $ECHO_C" >&6
26372else
26373  cat >conftest.$ac_ext <<_ACEOF
26374/* confdefs.h.  */
26375_ACEOF
26376cat confdefs.h >>conftest.$ac_ext
26377cat >>conftest.$ac_ext <<_ACEOF
26378/* end confdefs.h.  */
26379#include <sys/types.h>
26380#include <sys/time.h>
26381#include <time.h>
26382
26383int
26384main ()
26385{
26386if ((struct tm *) 0)
26387return 0;
26388  ;
26389  return 0;
26390}
26391_ACEOF
26392rm -f conftest.$ac_objext
26393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26394  (eval $ac_compile) 2>conftest.er1
26395  ac_status=$?
26396  grep -v '^ *+' conftest.er1 >conftest.err
26397  rm -f conftest.er1
26398  cat conftest.err >&5
26399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400  (exit $ac_status); } &&
26401	 { ac_try='test -z "$ac_c_werror_flag"
26402			 || test ! -s conftest.err'
26403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26404  (eval $ac_try) 2>&5
26405  ac_status=$?
26406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407  (exit $ac_status); }; } &&
26408	 { ac_try='test -s conftest.$ac_objext'
26409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26410  (eval $ac_try) 2>&5
26411  ac_status=$?
26412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26413  (exit $ac_status); }; }; then
26414  ac_cv_header_time=yes
26415else
26416  echo "$as_me: failed program was:" >&5
26417sed 's/^/| /' conftest.$ac_ext >&5
26418
26419ac_cv_header_time=no
26420fi
26421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26422fi
26423echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26424echo "${ECHO_T}$ac_cv_header_time" >&6
26425if test $ac_cv_header_time = yes; then
26426
26427cat >>confdefs.h <<\_ACEOF
26428#define TIME_WITH_SYS_TIME 1
26429_ACEOF
26430
26431fi
26432
26433
26434
26435
26436
26437
26438
26439
26440for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26441do
26442as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26443if eval "test \"\${$as_ac_Header+set}\" = set"; then
26444  echo "$as_me:$LINENO: checking for $ac_header" >&5
26445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26446if eval "test \"\${$as_ac_Header+set}\" = set"; then
26447  echo $ECHO_N "(cached) $ECHO_C" >&6
26448fi
26449echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26450echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26451else
26452  # Is the header compilable?
26453echo "$as_me:$LINENO: checking $ac_header usability" >&5
26454echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26455cat >conftest.$ac_ext <<_ACEOF
26456/* confdefs.h.  */
26457_ACEOF
26458cat confdefs.h >>conftest.$ac_ext
26459cat >>conftest.$ac_ext <<_ACEOF
26460/* end confdefs.h.  */
26461$ac_includes_default
26462#include <$ac_header>
26463_ACEOF
26464rm -f conftest.$ac_objext
26465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26466  (eval $ac_compile) 2>conftest.er1
26467  ac_status=$?
26468  grep -v '^ *+' conftest.er1 >conftest.err
26469  rm -f conftest.er1
26470  cat conftest.err >&5
26471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472  (exit $ac_status); } &&
26473	 { ac_try='test -z "$ac_c_werror_flag"
26474			 || test ! -s conftest.err'
26475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26476  (eval $ac_try) 2>&5
26477  ac_status=$?
26478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479  (exit $ac_status); }; } &&
26480	 { ac_try='test -s conftest.$ac_objext'
26481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26482  (eval $ac_try) 2>&5
26483  ac_status=$?
26484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485  (exit $ac_status); }; }; then
26486  ac_header_compiler=yes
26487else
26488  echo "$as_me: failed program was:" >&5
26489sed 's/^/| /' conftest.$ac_ext >&5
26490
26491ac_header_compiler=no
26492fi
26493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26494echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26495echo "${ECHO_T}$ac_header_compiler" >&6
26496
26497# Is the header present?
26498echo "$as_me:$LINENO: checking $ac_header presence" >&5
26499echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26500cat >conftest.$ac_ext <<_ACEOF
26501/* confdefs.h.  */
26502_ACEOF
26503cat confdefs.h >>conftest.$ac_ext
26504cat >>conftest.$ac_ext <<_ACEOF
26505/* end confdefs.h.  */
26506#include <$ac_header>
26507_ACEOF
26508if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26509  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26510  ac_status=$?
26511  grep -v '^ *+' conftest.er1 >conftest.err
26512  rm -f conftest.er1
26513  cat conftest.err >&5
26514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515  (exit $ac_status); } >/dev/null; then
26516  if test -s conftest.err; then
26517    ac_cpp_err=$ac_c_preproc_warn_flag
26518    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26519  else
26520    ac_cpp_err=
26521  fi
26522else
26523  ac_cpp_err=yes
26524fi
26525if test -z "$ac_cpp_err"; then
26526  ac_header_preproc=yes
26527else
26528  echo "$as_me: failed program was:" >&5
26529sed 's/^/| /' conftest.$ac_ext >&5
26530
26531  ac_header_preproc=no
26532fi
26533rm -f conftest.err conftest.$ac_ext
26534echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26535echo "${ECHO_T}$ac_header_preproc" >&6
26536
26537# So?  What about this header?
26538case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26539  yes:no: )
26540    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26541echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26542    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26543echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26544    ac_header_preproc=yes
26545    ;;
26546  no:yes:* )
26547    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26548echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26549    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26550echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26551    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26552echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26553    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26554echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26555    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26556echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26557    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26558echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26559    (
26560      cat <<\_ASBOX
26561## ----------------------------------- ##
26562## Report this to llvmbugs@cs.uiuc.edu ##
26563## ----------------------------------- ##
26564_ASBOX
26565    ) |
26566      sed "s/^/$as_me: WARNING:     /" >&2
26567    ;;
26568esac
26569echo "$as_me:$LINENO: checking for $ac_header" >&5
26570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26571if eval "test \"\${$as_ac_Header+set}\" = set"; then
26572  echo $ECHO_N "(cached) $ECHO_C" >&6
26573else
26574  eval "$as_ac_Header=\$ac_header_preproc"
26575fi
26576echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26577echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26578
26579fi
26580if test `eval echo '${'$as_ac_Header'}'` = yes; then
26581  cat >>confdefs.h <<_ACEOF
26582#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26583_ACEOF
26584
26585fi
26586
26587done
26588
26589
26590
26591
26592
26593
26594
26595for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26596do
26597as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26598if eval "test \"\${$as_ac_Header+set}\" = set"; then
26599  echo "$as_me:$LINENO: checking for $ac_header" >&5
26600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26601if eval "test \"\${$as_ac_Header+set}\" = set"; then
26602  echo $ECHO_N "(cached) $ECHO_C" >&6
26603fi
26604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26605echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26606else
26607  # Is the header compilable?
26608echo "$as_me:$LINENO: checking $ac_header usability" >&5
26609echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26610cat >conftest.$ac_ext <<_ACEOF
26611/* confdefs.h.  */
26612_ACEOF
26613cat confdefs.h >>conftest.$ac_ext
26614cat >>conftest.$ac_ext <<_ACEOF
26615/* end confdefs.h.  */
26616$ac_includes_default
26617#include <$ac_header>
26618_ACEOF
26619rm -f conftest.$ac_objext
26620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26621  (eval $ac_compile) 2>conftest.er1
26622  ac_status=$?
26623  grep -v '^ *+' conftest.er1 >conftest.err
26624  rm -f conftest.er1
26625  cat conftest.err >&5
26626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26627  (exit $ac_status); } &&
26628	 { ac_try='test -z "$ac_c_werror_flag"
26629			 || test ! -s conftest.err'
26630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26631  (eval $ac_try) 2>&5
26632  ac_status=$?
26633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634  (exit $ac_status); }; } &&
26635	 { ac_try='test -s conftest.$ac_objext'
26636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26637  (eval $ac_try) 2>&5
26638  ac_status=$?
26639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640  (exit $ac_status); }; }; then
26641  ac_header_compiler=yes
26642else
26643  echo "$as_me: failed program was:" >&5
26644sed 's/^/| /' conftest.$ac_ext >&5
26645
26646ac_header_compiler=no
26647fi
26648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26649echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26650echo "${ECHO_T}$ac_header_compiler" >&6
26651
26652# Is the header present?
26653echo "$as_me:$LINENO: checking $ac_header presence" >&5
26654echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26655cat >conftest.$ac_ext <<_ACEOF
26656/* confdefs.h.  */
26657_ACEOF
26658cat confdefs.h >>conftest.$ac_ext
26659cat >>conftest.$ac_ext <<_ACEOF
26660/* end confdefs.h.  */
26661#include <$ac_header>
26662_ACEOF
26663if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26664  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26665  ac_status=$?
26666  grep -v '^ *+' conftest.er1 >conftest.err
26667  rm -f conftest.er1
26668  cat conftest.err >&5
26669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670  (exit $ac_status); } >/dev/null; then
26671  if test -s conftest.err; then
26672    ac_cpp_err=$ac_c_preproc_warn_flag
26673    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26674  else
26675    ac_cpp_err=
26676  fi
26677else
26678  ac_cpp_err=yes
26679fi
26680if test -z "$ac_cpp_err"; then
26681  ac_header_preproc=yes
26682else
26683  echo "$as_me: failed program was:" >&5
26684sed 's/^/| /' conftest.$ac_ext >&5
26685
26686  ac_header_preproc=no
26687fi
26688rm -f conftest.err conftest.$ac_ext
26689echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26690echo "${ECHO_T}$ac_header_preproc" >&6
26691
26692# So?  What about this header?
26693case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26694  yes:no: )
26695    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26696echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26697    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26698echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26699    ac_header_preproc=yes
26700    ;;
26701  no:yes:* )
26702    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26703echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26704    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26705echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26706    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26707echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26708    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26709echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26710    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26711echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26712    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26713echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26714    (
26715      cat <<\_ASBOX
26716## ----------------------------------- ##
26717## Report this to llvmbugs@cs.uiuc.edu ##
26718## ----------------------------------- ##
26719_ASBOX
26720    ) |
26721      sed "s/^/$as_me: WARNING:     /" >&2
26722    ;;
26723esac
26724echo "$as_me:$LINENO: checking for $ac_header" >&5
26725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26726if eval "test \"\${$as_ac_Header+set}\" = set"; then
26727  echo $ECHO_N "(cached) $ECHO_C" >&6
26728else
26729  eval "$as_ac_Header=\$ac_header_preproc"
26730fi
26731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26732echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26733
26734fi
26735if test `eval echo '${'$as_ac_Header'}'` = yes; then
26736  cat >>confdefs.h <<_ACEOF
26737#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26738_ACEOF
26739
26740fi
26741
26742done
26743
26744
26745
26746
26747
26748
26749for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26750do
26751as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26752if eval "test \"\${$as_ac_Header+set}\" = set"; then
26753  echo "$as_me:$LINENO: checking for $ac_header" >&5
26754echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26755if eval "test \"\${$as_ac_Header+set}\" = set"; then
26756  echo $ECHO_N "(cached) $ECHO_C" >&6
26757fi
26758echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26759echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26760else
26761  # Is the header compilable?
26762echo "$as_me:$LINENO: checking $ac_header usability" >&5
26763echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26764cat >conftest.$ac_ext <<_ACEOF
26765/* confdefs.h.  */
26766_ACEOF
26767cat confdefs.h >>conftest.$ac_ext
26768cat >>conftest.$ac_ext <<_ACEOF
26769/* end confdefs.h.  */
26770$ac_includes_default
26771#include <$ac_header>
26772_ACEOF
26773rm -f conftest.$ac_objext
26774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26775  (eval $ac_compile) 2>conftest.er1
26776  ac_status=$?
26777  grep -v '^ *+' conftest.er1 >conftest.err
26778  rm -f conftest.er1
26779  cat conftest.err >&5
26780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781  (exit $ac_status); } &&
26782	 { ac_try='test -z "$ac_c_werror_flag"
26783			 || test ! -s conftest.err'
26784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26785  (eval $ac_try) 2>&5
26786  ac_status=$?
26787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788  (exit $ac_status); }; } &&
26789	 { ac_try='test -s conftest.$ac_objext'
26790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26791  (eval $ac_try) 2>&5
26792  ac_status=$?
26793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794  (exit $ac_status); }; }; then
26795  ac_header_compiler=yes
26796else
26797  echo "$as_me: failed program was:" >&5
26798sed 's/^/| /' conftest.$ac_ext >&5
26799
26800ac_header_compiler=no
26801fi
26802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26803echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26804echo "${ECHO_T}$ac_header_compiler" >&6
26805
26806# Is the header present?
26807echo "$as_me:$LINENO: checking $ac_header presence" >&5
26808echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26809cat >conftest.$ac_ext <<_ACEOF
26810/* confdefs.h.  */
26811_ACEOF
26812cat confdefs.h >>conftest.$ac_ext
26813cat >>conftest.$ac_ext <<_ACEOF
26814/* end confdefs.h.  */
26815#include <$ac_header>
26816_ACEOF
26817if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26818  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26819  ac_status=$?
26820  grep -v '^ *+' conftest.er1 >conftest.err
26821  rm -f conftest.er1
26822  cat conftest.err >&5
26823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824  (exit $ac_status); } >/dev/null; then
26825  if test -s conftest.err; then
26826    ac_cpp_err=$ac_c_preproc_warn_flag
26827    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26828  else
26829    ac_cpp_err=
26830  fi
26831else
26832  ac_cpp_err=yes
26833fi
26834if test -z "$ac_cpp_err"; then
26835  ac_header_preproc=yes
26836else
26837  echo "$as_me: failed program was:" >&5
26838sed 's/^/| /' conftest.$ac_ext >&5
26839
26840  ac_header_preproc=no
26841fi
26842rm -f conftest.err conftest.$ac_ext
26843echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26844echo "${ECHO_T}$ac_header_preproc" >&6
26845
26846# So?  What about this header?
26847case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26848  yes:no: )
26849    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26850echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26851    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26852echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26853    ac_header_preproc=yes
26854    ;;
26855  no:yes:* )
26856    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26857echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26858    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26859echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26860    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26861echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26862    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26863echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26864    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26865echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26866    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26867echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26868    (
26869      cat <<\_ASBOX
26870## ----------------------------------- ##
26871## Report this to llvmbugs@cs.uiuc.edu ##
26872## ----------------------------------- ##
26873_ASBOX
26874    ) |
26875      sed "s/^/$as_me: WARNING:     /" >&2
26876    ;;
26877esac
26878echo "$as_me:$LINENO: checking for $ac_header" >&5
26879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26880if eval "test \"\${$as_ac_Header+set}\" = set"; then
26881  echo $ECHO_N "(cached) $ECHO_C" >&6
26882else
26883  eval "$as_ac_Header=\$ac_header_preproc"
26884fi
26885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26886echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26887
26888fi
26889if test `eval echo '${'$as_ac_Header'}'` = yes; then
26890  cat >>confdefs.h <<_ACEOF
26891#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26892_ACEOF
26893
26894fi
26895
26896done
26897
26898
26899for ac_header in malloc/malloc.h
26900do
26901as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26902if eval "test \"\${$as_ac_Header+set}\" = set"; then
26903  echo "$as_me:$LINENO: checking for $ac_header" >&5
26904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26905if eval "test \"\${$as_ac_Header+set}\" = set"; then
26906  echo $ECHO_N "(cached) $ECHO_C" >&6
26907fi
26908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26909echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26910else
26911  # Is the header compilable?
26912echo "$as_me:$LINENO: checking $ac_header usability" >&5
26913echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26914cat >conftest.$ac_ext <<_ACEOF
26915/* confdefs.h.  */
26916_ACEOF
26917cat confdefs.h >>conftest.$ac_ext
26918cat >>conftest.$ac_ext <<_ACEOF
26919/* end confdefs.h.  */
26920$ac_includes_default
26921#include <$ac_header>
26922_ACEOF
26923rm -f conftest.$ac_objext
26924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26925  (eval $ac_compile) 2>conftest.er1
26926  ac_status=$?
26927  grep -v '^ *+' conftest.er1 >conftest.err
26928  rm -f conftest.er1
26929  cat conftest.err >&5
26930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931  (exit $ac_status); } &&
26932	 { ac_try='test -z "$ac_c_werror_flag"
26933			 || test ! -s conftest.err'
26934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26935  (eval $ac_try) 2>&5
26936  ac_status=$?
26937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938  (exit $ac_status); }; } &&
26939	 { ac_try='test -s conftest.$ac_objext'
26940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26941  (eval $ac_try) 2>&5
26942  ac_status=$?
26943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944  (exit $ac_status); }; }; then
26945  ac_header_compiler=yes
26946else
26947  echo "$as_me: failed program was:" >&5
26948sed 's/^/| /' conftest.$ac_ext >&5
26949
26950ac_header_compiler=no
26951fi
26952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26953echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26954echo "${ECHO_T}$ac_header_compiler" >&6
26955
26956# Is the header present?
26957echo "$as_me:$LINENO: checking $ac_header presence" >&5
26958echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26959cat >conftest.$ac_ext <<_ACEOF
26960/* confdefs.h.  */
26961_ACEOF
26962cat confdefs.h >>conftest.$ac_ext
26963cat >>conftest.$ac_ext <<_ACEOF
26964/* end confdefs.h.  */
26965#include <$ac_header>
26966_ACEOF
26967if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26968  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26969  ac_status=$?
26970  grep -v '^ *+' conftest.er1 >conftest.err
26971  rm -f conftest.er1
26972  cat conftest.err >&5
26973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974  (exit $ac_status); } >/dev/null; then
26975  if test -s conftest.err; then
26976    ac_cpp_err=$ac_c_preproc_warn_flag
26977    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26978  else
26979    ac_cpp_err=
26980  fi
26981else
26982  ac_cpp_err=yes
26983fi
26984if test -z "$ac_cpp_err"; then
26985  ac_header_preproc=yes
26986else
26987  echo "$as_me: failed program was:" >&5
26988sed 's/^/| /' conftest.$ac_ext >&5
26989
26990  ac_header_preproc=no
26991fi
26992rm -f conftest.err conftest.$ac_ext
26993echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26994echo "${ECHO_T}$ac_header_preproc" >&6
26995
26996# So?  What about this header?
26997case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26998  yes:no: )
26999    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27000echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27001    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27002echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27003    ac_header_preproc=yes
27004    ;;
27005  no:yes:* )
27006    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27007echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27008    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27009echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27010    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27011echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27012    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27013echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27014    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27015echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27016    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27017echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27018    (
27019      cat <<\_ASBOX
27020## ----------------------------------- ##
27021## Report this to llvmbugs@cs.uiuc.edu ##
27022## ----------------------------------- ##
27023_ASBOX
27024    ) |
27025      sed "s/^/$as_me: WARNING:     /" >&2
27026    ;;
27027esac
27028echo "$as_me:$LINENO: checking for $ac_header" >&5
27029echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27030if eval "test \"\${$as_ac_Header+set}\" = set"; then
27031  echo $ECHO_N "(cached) $ECHO_C" >&6
27032else
27033  eval "$as_ac_Header=\$ac_header_preproc"
27034fi
27035echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27036echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27037
27038fi
27039if test `eval echo '${'$as_ac_Header'}'` = yes; then
27040  cat >>confdefs.h <<_ACEOF
27041#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27042_ACEOF
27043
27044fi
27045
27046done
27047
27048
27049
27050for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
27051do
27052as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27053if eval "test \"\${$as_ac_Header+set}\" = set"; then
27054  echo "$as_me:$LINENO: checking for $ac_header" >&5
27055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27056if eval "test \"\${$as_ac_Header+set}\" = set"; then
27057  echo $ECHO_N "(cached) $ECHO_C" >&6
27058fi
27059echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27060echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27061else
27062  # Is the header compilable?
27063echo "$as_me:$LINENO: checking $ac_header usability" >&5
27064echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27065cat >conftest.$ac_ext <<_ACEOF
27066/* confdefs.h.  */
27067_ACEOF
27068cat confdefs.h >>conftest.$ac_ext
27069cat >>conftest.$ac_ext <<_ACEOF
27070/* end confdefs.h.  */
27071$ac_includes_default
27072#include <$ac_header>
27073_ACEOF
27074rm -f conftest.$ac_objext
27075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27076  (eval $ac_compile) 2>conftest.er1
27077  ac_status=$?
27078  grep -v '^ *+' conftest.er1 >conftest.err
27079  rm -f conftest.er1
27080  cat conftest.err >&5
27081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082  (exit $ac_status); } &&
27083	 { ac_try='test -z "$ac_c_werror_flag"
27084			 || test ! -s conftest.err'
27085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27086  (eval $ac_try) 2>&5
27087  ac_status=$?
27088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27089  (exit $ac_status); }; } &&
27090	 { ac_try='test -s conftest.$ac_objext'
27091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27092  (eval $ac_try) 2>&5
27093  ac_status=$?
27094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095  (exit $ac_status); }; }; then
27096  ac_header_compiler=yes
27097else
27098  echo "$as_me: failed program was:" >&5
27099sed 's/^/| /' conftest.$ac_ext >&5
27100
27101ac_header_compiler=no
27102fi
27103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27104echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27105echo "${ECHO_T}$ac_header_compiler" >&6
27106
27107# Is the header present?
27108echo "$as_me:$LINENO: checking $ac_header presence" >&5
27109echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27110cat >conftest.$ac_ext <<_ACEOF
27111/* confdefs.h.  */
27112_ACEOF
27113cat confdefs.h >>conftest.$ac_ext
27114cat >>conftest.$ac_ext <<_ACEOF
27115/* end confdefs.h.  */
27116#include <$ac_header>
27117_ACEOF
27118if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27119  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27120  ac_status=$?
27121  grep -v '^ *+' conftest.er1 >conftest.err
27122  rm -f conftest.er1
27123  cat conftest.err >&5
27124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125  (exit $ac_status); } >/dev/null; then
27126  if test -s conftest.err; then
27127    ac_cpp_err=$ac_c_preproc_warn_flag
27128    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27129  else
27130    ac_cpp_err=
27131  fi
27132else
27133  ac_cpp_err=yes
27134fi
27135if test -z "$ac_cpp_err"; then
27136  ac_header_preproc=yes
27137else
27138  echo "$as_me: failed program was:" >&5
27139sed 's/^/| /' conftest.$ac_ext >&5
27140
27141  ac_header_preproc=no
27142fi
27143rm -f conftest.err conftest.$ac_ext
27144echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27145echo "${ECHO_T}$ac_header_preproc" >&6
27146
27147# So?  What about this header?
27148case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27149  yes:no: )
27150    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27151echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27152    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27153echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27154    ac_header_preproc=yes
27155    ;;
27156  no:yes:* )
27157    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27158echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27159    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27160echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27161    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27162echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27163    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27164echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27165    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27166echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27167    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27168echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27169    (
27170      cat <<\_ASBOX
27171## ----------------------------------- ##
27172## Report this to llvmbugs@cs.uiuc.edu ##
27173## ----------------------------------- ##
27174_ASBOX
27175    ) |
27176      sed "s/^/$as_me: WARNING:     /" >&2
27177    ;;
27178esac
27179echo "$as_me:$LINENO: checking for $ac_header" >&5
27180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27181if eval "test \"\${$as_ac_Header+set}\" = set"; then
27182  echo $ECHO_N "(cached) $ECHO_C" >&6
27183else
27184  eval "$as_ac_Header=\$ac_header_preproc"
27185fi
27186echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27187echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27188
27189fi
27190if test `eval echo '${'$as_ac_Header'}'` = yes; then
27191  cat >>confdefs.h <<_ACEOF
27192#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27193_ACEOF
27194
27195fi
27196
27197done
27198
27199if test "$ENABLE_THREADS" -eq 1 ; then
27200
27201for ac_header in pthread.h
27202do
27203as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27204if eval "test \"\${$as_ac_Header+set}\" = set"; then
27205  echo "$as_me:$LINENO: checking for $ac_header" >&5
27206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27207if eval "test \"\${$as_ac_Header+set}\" = set"; then
27208  echo $ECHO_N "(cached) $ECHO_C" >&6
27209fi
27210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27212else
27213  # Is the header compilable?
27214echo "$as_me:$LINENO: checking $ac_header usability" >&5
27215echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27216cat >conftest.$ac_ext <<_ACEOF
27217/* confdefs.h.  */
27218_ACEOF
27219cat confdefs.h >>conftest.$ac_ext
27220cat >>conftest.$ac_ext <<_ACEOF
27221/* end confdefs.h.  */
27222$ac_includes_default
27223#include <$ac_header>
27224_ACEOF
27225rm -f conftest.$ac_objext
27226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27227  (eval $ac_compile) 2>conftest.er1
27228  ac_status=$?
27229  grep -v '^ *+' conftest.er1 >conftest.err
27230  rm -f conftest.er1
27231  cat conftest.err >&5
27232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233  (exit $ac_status); } &&
27234	 { ac_try='test -z "$ac_c_werror_flag"
27235			 || test ! -s conftest.err'
27236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27237  (eval $ac_try) 2>&5
27238  ac_status=$?
27239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240  (exit $ac_status); }; } &&
27241	 { ac_try='test -s conftest.$ac_objext'
27242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27243  (eval $ac_try) 2>&5
27244  ac_status=$?
27245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246  (exit $ac_status); }; }; then
27247  ac_header_compiler=yes
27248else
27249  echo "$as_me: failed program was:" >&5
27250sed 's/^/| /' conftest.$ac_ext >&5
27251
27252ac_header_compiler=no
27253fi
27254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27255echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27256echo "${ECHO_T}$ac_header_compiler" >&6
27257
27258# Is the header present?
27259echo "$as_me:$LINENO: checking $ac_header presence" >&5
27260echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27261cat >conftest.$ac_ext <<_ACEOF
27262/* confdefs.h.  */
27263_ACEOF
27264cat confdefs.h >>conftest.$ac_ext
27265cat >>conftest.$ac_ext <<_ACEOF
27266/* end confdefs.h.  */
27267#include <$ac_header>
27268_ACEOF
27269if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27270  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27271  ac_status=$?
27272  grep -v '^ *+' conftest.er1 >conftest.err
27273  rm -f conftest.er1
27274  cat conftest.err >&5
27275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276  (exit $ac_status); } >/dev/null; then
27277  if test -s conftest.err; then
27278    ac_cpp_err=$ac_c_preproc_warn_flag
27279    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27280  else
27281    ac_cpp_err=
27282  fi
27283else
27284  ac_cpp_err=yes
27285fi
27286if test -z "$ac_cpp_err"; then
27287  ac_header_preproc=yes
27288else
27289  echo "$as_me: failed program was:" >&5
27290sed 's/^/| /' conftest.$ac_ext >&5
27291
27292  ac_header_preproc=no
27293fi
27294rm -f conftest.err conftest.$ac_ext
27295echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27296echo "${ECHO_T}$ac_header_preproc" >&6
27297
27298# So?  What about this header?
27299case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27300  yes:no: )
27301    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27302echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27303    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27304echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27305    ac_header_preproc=yes
27306    ;;
27307  no:yes:* )
27308    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27309echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27310    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27311echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27312    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27313echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27314    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27315echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27316    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27317echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27318    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27319echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27320    (
27321      cat <<\_ASBOX
27322## ----------------------------------- ##
27323## Report this to llvmbugs@cs.uiuc.edu ##
27324## ----------------------------------- ##
27325_ASBOX
27326    ) |
27327      sed "s/^/$as_me: WARNING:     /" >&2
27328    ;;
27329esac
27330echo "$as_me:$LINENO: checking for $ac_header" >&5
27331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27332if eval "test \"\${$as_ac_Header+set}\" = set"; then
27333  echo $ECHO_N "(cached) $ECHO_C" >&6
27334else
27335  eval "$as_ac_Header=\$ac_header_preproc"
27336fi
27337echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27338echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27339
27340fi
27341if test `eval echo '${'$as_ac_Header'}'` = yes; then
27342  cat >>confdefs.h <<_ACEOF
27343#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27344_ACEOF
27345
27346fi
27347
27348done
27349
27350fi
27351
27352
27353echo "$as_me:$LINENO: checking for pid_t" >&5
27354echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27355if test "${ac_cv_type_pid_t+set}" = set; then
27356  echo $ECHO_N "(cached) $ECHO_C" >&6
27357else
27358  cat >conftest.$ac_ext <<_ACEOF
27359/* confdefs.h.  */
27360_ACEOF
27361cat confdefs.h >>conftest.$ac_ext
27362cat >>conftest.$ac_ext <<_ACEOF
27363/* end confdefs.h.  */
27364$ac_includes_default
27365int
27366main ()
27367{
27368if ((pid_t *) 0)
27369  return 0;
27370if (sizeof (pid_t))
27371  return 0;
27372  ;
27373  return 0;
27374}
27375_ACEOF
27376rm -f conftest.$ac_objext
27377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27378  (eval $ac_compile) 2>conftest.er1
27379  ac_status=$?
27380  grep -v '^ *+' conftest.er1 >conftest.err
27381  rm -f conftest.er1
27382  cat conftest.err >&5
27383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384  (exit $ac_status); } &&
27385	 { ac_try='test -z "$ac_c_werror_flag"
27386			 || test ! -s conftest.err'
27387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27388  (eval $ac_try) 2>&5
27389  ac_status=$?
27390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27391  (exit $ac_status); }; } &&
27392	 { ac_try='test -s conftest.$ac_objext'
27393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27394  (eval $ac_try) 2>&5
27395  ac_status=$?
27396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397  (exit $ac_status); }; }; then
27398  ac_cv_type_pid_t=yes
27399else
27400  echo "$as_me: failed program was:" >&5
27401sed 's/^/| /' conftest.$ac_ext >&5
27402
27403ac_cv_type_pid_t=no
27404fi
27405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27406fi
27407echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27408echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27409if test $ac_cv_type_pid_t = yes; then
27410  :
27411else
27412
27413cat >>confdefs.h <<_ACEOF
27414#define pid_t int
27415_ACEOF
27416
27417fi
27418
27419echo "$as_me:$LINENO: checking for size_t" >&5
27420echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27421if test "${ac_cv_type_size_t+set}" = set; then
27422  echo $ECHO_N "(cached) $ECHO_C" >&6
27423else
27424  cat >conftest.$ac_ext <<_ACEOF
27425/* confdefs.h.  */
27426_ACEOF
27427cat confdefs.h >>conftest.$ac_ext
27428cat >>conftest.$ac_ext <<_ACEOF
27429/* end confdefs.h.  */
27430$ac_includes_default
27431int
27432main ()
27433{
27434if ((size_t *) 0)
27435  return 0;
27436if (sizeof (size_t))
27437  return 0;
27438  ;
27439  return 0;
27440}
27441_ACEOF
27442rm -f conftest.$ac_objext
27443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27444  (eval $ac_compile) 2>conftest.er1
27445  ac_status=$?
27446  grep -v '^ *+' conftest.er1 >conftest.err
27447  rm -f conftest.er1
27448  cat conftest.err >&5
27449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27450  (exit $ac_status); } &&
27451	 { ac_try='test -z "$ac_c_werror_flag"
27452			 || test ! -s conftest.err'
27453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27454  (eval $ac_try) 2>&5
27455  ac_status=$?
27456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27457  (exit $ac_status); }; } &&
27458	 { ac_try='test -s conftest.$ac_objext'
27459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27460  (eval $ac_try) 2>&5
27461  ac_status=$?
27462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463  (exit $ac_status); }; }; then
27464  ac_cv_type_size_t=yes
27465else
27466  echo "$as_me: failed program was:" >&5
27467sed 's/^/| /' conftest.$ac_ext >&5
27468
27469ac_cv_type_size_t=no
27470fi
27471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27472fi
27473echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27474echo "${ECHO_T}$ac_cv_type_size_t" >&6
27475if test $ac_cv_type_size_t = yes; then
27476  :
27477else
27478
27479cat >>confdefs.h <<_ACEOF
27480#define size_t unsigned
27481_ACEOF
27482
27483fi
27484
27485echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27486echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27487if test "${ac_cv_type_signal+set}" = set; then
27488  echo $ECHO_N "(cached) $ECHO_C" >&6
27489else
27490  cat >conftest.$ac_ext <<_ACEOF
27491/* confdefs.h.  */
27492_ACEOF
27493cat confdefs.h >>conftest.$ac_ext
27494cat >>conftest.$ac_ext <<_ACEOF
27495/* end confdefs.h.  */
27496#include <sys/types.h>
27497#include <signal.h>
27498#ifdef signal
27499# undef signal
27500#endif
27501#ifdef __cplusplus
27502extern "C" void (*signal (int, void (*)(int)))(int);
27503#else
27504void (*signal ()) ();
27505#endif
27506
27507int
27508main ()
27509{
27510int i;
27511  ;
27512  return 0;
27513}
27514_ACEOF
27515rm -f conftest.$ac_objext
27516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27517  (eval $ac_compile) 2>conftest.er1
27518  ac_status=$?
27519  grep -v '^ *+' conftest.er1 >conftest.err
27520  rm -f conftest.er1
27521  cat conftest.err >&5
27522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523  (exit $ac_status); } &&
27524	 { ac_try='test -z "$ac_c_werror_flag"
27525			 || test ! -s conftest.err'
27526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27527  (eval $ac_try) 2>&5
27528  ac_status=$?
27529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530  (exit $ac_status); }; } &&
27531	 { ac_try='test -s conftest.$ac_objext'
27532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27533  (eval $ac_try) 2>&5
27534  ac_status=$?
27535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27536  (exit $ac_status); }; }; then
27537  ac_cv_type_signal=void
27538else
27539  echo "$as_me: failed program was:" >&5
27540sed 's/^/| /' conftest.$ac_ext >&5
27541
27542ac_cv_type_signal=int
27543fi
27544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27545fi
27546echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27547echo "${ECHO_T}$ac_cv_type_signal" >&6
27548
27549cat >>confdefs.h <<_ACEOF
27550#define RETSIGTYPE $ac_cv_type_signal
27551_ACEOF
27552
27553
27554echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27555echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27556if test "${ac_cv_struct_tm+set}" = set; then
27557  echo $ECHO_N "(cached) $ECHO_C" >&6
27558else
27559  cat >conftest.$ac_ext <<_ACEOF
27560/* confdefs.h.  */
27561_ACEOF
27562cat confdefs.h >>conftest.$ac_ext
27563cat >>conftest.$ac_ext <<_ACEOF
27564/* end confdefs.h.  */
27565#include <sys/types.h>
27566#include <time.h>
27567
27568int
27569main ()
27570{
27571struct tm *tp; tp->tm_sec;
27572  ;
27573  return 0;
27574}
27575_ACEOF
27576rm -f conftest.$ac_objext
27577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27578  (eval $ac_compile) 2>conftest.er1
27579  ac_status=$?
27580  grep -v '^ *+' conftest.er1 >conftest.err
27581  rm -f conftest.er1
27582  cat conftest.err >&5
27583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584  (exit $ac_status); } &&
27585	 { ac_try='test -z "$ac_c_werror_flag"
27586			 || test ! -s conftest.err'
27587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27588  (eval $ac_try) 2>&5
27589  ac_status=$?
27590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591  (exit $ac_status); }; } &&
27592	 { ac_try='test -s conftest.$ac_objext'
27593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27594  (eval $ac_try) 2>&5
27595  ac_status=$?
27596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27597  (exit $ac_status); }; }; then
27598  ac_cv_struct_tm=time.h
27599else
27600  echo "$as_me: failed program was:" >&5
27601sed 's/^/| /' conftest.$ac_ext >&5
27602
27603ac_cv_struct_tm=sys/time.h
27604fi
27605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27606fi
27607echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27608echo "${ECHO_T}$ac_cv_struct_tm" >&6
27609if test $ac_cv_struct_tm = sys/time.h; then
27610
27611cat >>confdefs.h <<\_ACEOF
27612#define TM_IN_SYS_TIME 1
27613_ACEOF
27614
27615fi
27616
27617echo "$as_me:$LINENO: checking for int64_t" >&5
27618echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27619if test "${ac_cv_type_int64_t+set}" = set; then
27620  echo $ECHO_N "(cached) $ECHO_C" >&6
27621else
27622  cat >conftest.$ac_ext <<_ACEOF
27623/* confdefs.h.  */
27624_ACEOF
27625cat confdefs.h >>conftest.$ac_ext
27626cat >>conftest.$ac_ext <<_ACEOF
27627/* end confdefs.h.  */
27628$ac_includes_default
27629int
27630main ()
27631{
27632if ((int64_t *) 0)
27633  return 0;
27634if (sizeof (int64_t))
27635  return 0;
27636  ;
27637  return 0;
27638}
27639_ACEOF
27640rm -f conftest.$ac_objext
27641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27642  (eval $ac_compile) 2>conftest.er1
27643  ac_status=$?
27644  grep -v '^ *+' conftest.er1 >conftest.err
27645  rm -f conftest.er1
27646  cat conftest.err >&5
27647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648  (exit $ac_status); } &&
27649	 { ac_try='test -z "$ac_c_werror_flag"
27650			 || test ! -s conftest.err'
27651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27652  (eval $ac_try) 2>&5
27653  ac_status=$?
27654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27655  (exit $ac_status); }; } &&
27656	 { ac_try='test -s conftest.$ac_objext'
27657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27658  (eval $ac_try) 2>&5
27659  ac_status=$?
27660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27661  (exit $ac_status); }; }; then
27662  ac_cv_type_int64_t=yes
27663else
27664  echo "$as_me: failed program was:" >&5
27665sed 's/^/| /' conftest.$ac_ext >&5
27666
27667ac_cv_type_int64_t=no
27668fi
27669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27670fi
27671echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27672echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27673if test $ac_cv_type_int64_t = yes; then
27674
27675cat >>confdefs.h <<_ACEOF
27676#define HAVE_INT64_T 1
27677_ACEOF
27678
27679
27680else
27681  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27682echo "$as_me: error: Type int64_t required but not found" >&2;}
27683   { (exit 1); exit 1; }; }
27684fi
27685
27686echo "$as_me:$LINENO: checking for uint64_t" >&5
27687echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27688if test "${ac_cv_type_uint64_t+set}" = set; then
27689  echo $ECHO_N "(cached) $ECHO_C" >&6
27690else
27691  cat >conftest.$ac_ext <<_ACEOF
27692/* confdefs.h.  */
27693_ACEOF
27694cat confdefs.h >>conftest.$ac_ext
27695cat >>conftest.$ac_ext <<_ACEOF
27696/* end confdefs.h.  */
27697$ac_includes_default
27698int
27699main ()
27700{
27701if ((uint64_t *) 0)
27702  return 0;
27703if (sizeof (uint64_t))
27704  return 0;
27705  ;
27706  return 0;
27707}
27708_ACEOF
27709rm -f conftest.$ac_objext
27710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27711  (eval $ac_compile) 2>conftest.er1
27712  ac_status=$?
27713  grep -v '^ *+' conftest.er1 >conftest.err
27714  rm -f conftest.er1
27715  cat conftest.err >&5
27716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717  (exit $ac_status); } &&
27718	 { ac_try='test -z "$ac_c_werror_flag"
27719			 || test ! -s conftest.err'
27720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27721  (eval $ac_try) 2>&5
27722  ac_status=$?
27723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27724  (exit $ac_status); }; } &&
27725	 { ac_try='test -s conftest.$ac_objext'
27726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27727  (eval $ac_try) 2>&5
27728  ac_status=$?
27729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730  (exit $ac_status); }; }; then
27731  ac_cv_type_uint64_t=yes
27732else
27733  echo "$as_me: failed program was:" >&5
27734sed 's/^/| /' conftest.$ac_ext >&5
27735
27736ac_cv_type_uint64_t=no
27737fi
27738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27739fi
27740echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27741echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27742if test $ac_cv_type_uint64_t = yes; then
27743
27744cat >>confdefs.h <<_ACEOF
27745#define HAVE_UINT64_T 1
27746_ACEOF
27747
27748
27749else
27750  echo "$as_me:$LINENO: checking for u_int64_t" >&5
27751echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27752if test "${ac_cv_type_u_int64_t+set}" = set; then
27753  echo $ECHO_N "(cached) $ECHO_C" >&6
27754else
27755  cat >conftest.$ac_ext <<_ACEOF
27756/* confdefs.h.  */
27757_ACEOF
27758cat confdefs.h >>conftest.$ac_ext
27759cat >>conftest.$ac_ext <<_ACEOF
27760/* end confdefs.h.  */
27761$ac_includes_default
27762int
27763main ()
27764{
27765if ((u_int64_t *) 0)
27766  return 0;
27767if (sizeof (u_int64_t))
27768  return 0;
27769  ;
27770  return 0;
27771}
27772_ACEOF
27773rm -f conftest.$ac_objext
27774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27775  (eval $ac_compile) 2>conftest.er1
27776  ac_status=$?
27777  grep -v '^ *+' conftest.er1 >conftest.err
27778  rm -f conftest.er1
27779  cat conftest.err >&5
27780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781  (exit $ac_status); } &&
27782	 { ac_try='test -z "$ac_c_werror_flag"
27783			 || test ! -s conftest.err'
27784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27785  (eval $ac_try) 2>&5
27786  ac_status=$?
27787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788  (exit $ac_status); }; } &&
27789	 { ac_try='test -s conftest.$ac_objext'
27790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27791  (eval $ac_try) 2>&5
27792  ac_status=$?
27793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794  (exit $ac_status); }; }; then
27795  ac_cv_type_u_int64_t=yes
27796else
27797  echo "$as_me: failed program was:" >&5
27798sed 's/^/| /' conftest.$ac_ext >&5
27799
27800ac_cv_type_u_int64_t=no
27801fi
27802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27803fi
27804echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27805echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27806if test $ac_cv_type_u_int64_t = yes; then
27807
27808cat >>confdefs.h <<_ACEOF
27809#define HAVE_U_INT64_T 1
27810_ACEOF
27811
27812
27813else
27814  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27815echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27816   { (exit 1); exit 1; }; }
27817fi
27818
27819fi
27820
27821
27822
27823
27824
27825
27826
27827
27828
27829
27830
27831for ac_func in backtrace ceil ceilf floor floorf getcwd getpagesize getrusage
27832do
27833as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27834echo "$as_me:$LINENO: checking for $ac_func" >&5
27835echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27836if eval "test \"\${$as_ac_var+set}\" = set"; then
27837  echo $ECHO_N "(cached) $ECHO_C" >&6
27838else
27839  cat >conftest.$ac_ext <<_ACEOF
27840/* confdefs.h.  */
27841_ACEOF
27842cat confdefs.h >>conftest.$ac_ext
27843cat >>conftest.$ac_ext <<_ACEOF
27844/* end confdefs.h.  */
27845/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27846   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27847#define $ac_func innocuous_$ac_func
27848
27849/* System header to define __stub macros and hopefully few prototypes,
27850    which can conflict with char $ac_func (); below.
27851    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27852    <limits.h> exists even on freestanding compilers.  */
27853
27854#ifdef __STDC__
27855# include <limits.h>
27856#else
27857# include <assert.h>
27858#endif
27859
27860#undef $ac_func
27861
27862/* Override any gcc2 internal prototype to avoid an error.  */
27863#ifdef __cplusplus
27864extern "C"
27865{
27866#endif
27867/* We use char because int might match the return type of a gcc2
27868   builtin and then its argument prototype would still apply.  */
27869char $ac_func ();
27870/* The GNU C library defines this for functions which it implements
27871    to always fail with ENOSYS.  Some functions are actually named
27872    something starting with __ and the normal name is an alias.  */
27873#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27874choke me
27875#else
27876char (*f) () = $ac_func;
27877#endif
27878#ifdef __cplusplus
27879}
27880#endif
27881
27882int
27883main ()
27884{
27885return f != $ac_func;
27886  ;
27887  return 0;
27888}
27889_ACEOF
27890rm -f conftest.$ac_objext conftest$ac_exeext
27891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27892  (eval $ac_link) 2>conftest.er1
27893  ac_status=$?
27894  grep -v '^ *+' conftest.er1 >conftest.err
27895  rm -f conftest.er1
27896  cat conftest.err >&5
27897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898  (exit $ac_status); } &&
27899	 { ac_try='test -z "$ac_c_werror_flag"
27900			 || test ! -s conftest.err'
27901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27902  (eval $ac_try) 2>&5
27903  ac_status=$?
27904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27905  (exit $ac_status); }; } &&
27906	 { ac_try='test -s conftest$ac_exeext'
27907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27908  (eval $ac_try) 2>&5
27909  ac_status=$?
27910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911  (exit $ac_status); }; }; then
27912  eval "$as_ac_var=yes"
27913else
27914  echo "$as_me: failed program was:" >&5
27915sed 's/^/| /' conftest.$ac_ext >&5
27916
27917eval "$as_ac_var=no"
27918fi
27919rm -f conftest.err conftest.$ac_objext \
27920      conftest$ac_exeext conftest.$ac_ext
27921fi
27922echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27923echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27924if test `eval echo '${'$as_ac_var'}'` = yes; then
27925  cat >>confdefs.h <<_ACEOF
27926#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27927_ACEOF
27928
27929fi
27930done
27931
27932
27933
27934
27935
27936
27937for ac_func in gettimeofday isatty mkdtemp mkstemp mktemp
27938do
27939as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27940echo "$as_me:$LINENO: checking for $ac_func" >&5
27941echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27942if eval "test \"\${$as_ac_var+set}\" = set"; then
27943  echo $ECHO_N "(cached) $ECHO_C" >&6
27944else
27945  cat >conftest.$ac_ext <<_ACEOF
27946/* confdefs.h.  */
27947_ACEOF
27948cat confdefs.h >>conftest.$ac_ext
27949cat >>conftest.$ac_ext <<_ACEOF
27950/* end confdefs.h.  */
27951/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27952   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27953#define $ac_func innocuous_$ac_func
27954
27955/* System header to define __stub macros and hopefully few prototypes,
27956    which can conflict with char $ac_func (); below.
27957    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27958    <limits.h> exists even on freestanding compilers.  */
27959
27960#ifdef __STDC__
27961# include <limits.h>
27962#else
27963# include <assert.h>
27964#endif
27965
27966#undef $ac_func
27967
27968/* Override any gcc2 internal prototype to avoid an error.  */
27969#ifdef __cplusplus
27970extern "C"
27971{
27972#endif
27973/* We use char because int might match the return type of a gcc2
27974   builtin and then its argument prototype would still apply.  */
27975char $ac_func ();
27976/* The GNU C library defines this for functions which it implements
27977    to always fail with ENOSYS.  Some functions are actually named
27978    something starting with __ and the normal name is an alias.  */
27979#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27980choke me
27981#else
27982char (*f) () = $ac_func;
27983#endif
27984#ifdef __cplusplus
27985}
27986#endif
27987
27988int
27989main ()
27990{
27991return f != $ac_func;
27992  ;
27993  return 0;
27994}
27995_ACEOF
27996rm -f conftest.$ac_objext conftest$ac_exeext
27997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27998  (eval $ac_link) 2>conftest.er1
27999  ac_status=$?
28000  grep -v '^ *+' conftest.er1 >conftest.err
28001  rm -f conftest.er1
28002  cat conftest.err >&5
28003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004  (exit $ac_status); } &&
28005	 { ac_try='test -z "$ac_c_werror_flag"
28006			 || test ! -s conftest.err'
28007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28008  (eval $ac_try) 2>&5
28009  ac_status=$?
28010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011  (exit $ac_status); }; } &&
28012	 { ac_try='test -s conftest$ac_exeext'
28013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28014  (eval $ac_try) 2>&5
28015  ac_status=$?
28016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017  (exit $ac_status); }; }; then
28018  eval "$as_ac_var=yes"
28019else
28020  echo "$as_me: failed program was:" >&5
28021sed 's/^/| /' conftest.$ac_ext >&5
28022
28023eval "$as_ac_var=no"
28024fi
28025rm -f conftest.err conftest.$ac_objext \
28026      conftest$ac_exeext conftest.$ac_ext
28027fi
28028echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28029echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28030if test `eval echo '${'$as_ac_var'}'` = yes; then
28031  cat >>confdefs.h <<_ACEOF
28032#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28033_ACEOF
28034
28035fi
28036done
28037
28038
28039
28040
28041
28042
28043
28044for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
28045do
28046as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28047echo "$as_me:$LINENO: checking for $ac_func" >&5
28048echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28049if eval "test \"\${$as_ac_var+set}\" = set"; then
28050  echo $ECHO_N "(cached) $ECHO_C" >&6
28051else
28052  cat >conftest.$ac_ext <<_ACEOF
28053/* confdefs.h.  */
28054_ACEOF
28055cat confdefs.h >>conftest.$ac_ext
28056cat >>conftest.$ac_ext <<_ACEOF
28057/* end confdefs.h.  */
28058/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28059   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28060#define $ac_func innocuous_$ac_func
28061
28062/* System header to define __stub macros and hopefully few prototypes,
28063    which can conflict with char $ac_func (); below.
28064    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28065    <limits.h> exists even on freestanding compilers.  */
28066
28067#ifdef __STDC__
28068# include <limits.h>
28069#else
28070# include <assert.h>
28071#endif
28072
28073#undef $ac_func
28074
28075/* Override any gcc2 internal prototype to avoid an error.  */
28076#ifdef __cplusplus
28077extern "C"
28078{
28079#endif
28080/* We use char because int might match the return type of a gcc2
28081   builtin and then its argument prototype would still apply.  */
28082char $ac_func ();
28083/* The GNU C library defines this for functions which it implements
28084    to always fail with ENOSYS.  Some functions are actually named
28085    something starting with __ and the normal name is an alias.  */
28086#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28087choke me
28088#else
28089char (*f) () = $ac_func;
28090#endif
28091#ifdef __cplusplus
28092}
28093#endif
28094
28095int
28096main ()
28097{
28098return f != $ac_func;
28099  ;
28100  return 0;
28101}
28102_ACEOF
28103rm -f conftest.$ac_objext conftest$ac_exeext
28104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28105  (eval $ac_link) 2>conftest.er1
28106  ac_status=$?
28107  grep -v '^ *+' conftest.er1 >conftest.err
28108  rm -f conftest.er1
28109  cat conftest.err >&5
28110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28111  (exit $ac_status); } &&
28112	 { ac_try='test -z "$ac_c_werror_flag"
28113			 || test ! -s conftest.err'
28114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28115  (eval $ac_try) 2>&5
28116  ac_status=$?
28117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28118  (exit $ac_status); }; } &&
28119	 { ac_try='test -s conftest$ac_exeext'
28120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28121  (eval $ac_try) 2>&5
28122  ac_status=$?
28123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124  (exit $ac_status); }; }; then
28125  eval "$as_ac_var=yes"
28126else
28127  echo "$as_me: failed program was:" >&5
28128sed 's/^/| /' conftest.$ac_ext >&5
28129
28130eval "$as_ac_var=no"
28131fi
28132rm -f conftest.err conftest.$ac_objext \
28133      conftest$ac_exeext conftest.$ac_ext
28134fi
28135echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28136echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28137if test `eval echo '${'$as_ac_var'}'` = yes; then
28138  cat >>confdefs.h <<_ACEOF
28139#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28140_ACEOF
28141
28142fi
28143done
28144
28145
28146
28147
28148
28149for ac_func in strtoll strtoq sysconf malloc_zone_statistics
28150do
28151as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28152echo "$as_me:$LINENO: checking for $ac_func" >&5
28153echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28154if eval "test \"\${$as_ac_var+set}\" = set"; then
28155  echo $ECHO_N "(cached) $ECHO_C" >&6
28156else
28157  cat >conftest.$ac_ext <<_ACEOF
28158/* confdefs.h.  */
28159_ACEOF
28160cat confdefs.h >>conftest.$ac_ext
28161cat >>conftest.$ac_ext <<_ACEOF
28162/* end confdefs.h.  */
28163/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28164   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28165#define $ac_func innocuous_$ac_func
28166
28167/* System header to define __stub macros and hopefully few prototypes,
28168    which can conflict with char $ac_func (); below.
28169    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28170    <limits.h> exists even on freestanding compilers.  */
28171
28172#ifdef __STDC__
28173# include <limits.h>
28174#else
28175# include <assert.h>
28176#endif
28177
28178#undef $ac_func
28179
28180/* Override any gcc2 internal prototype to avoid an error.  */
28181#ifdef __cplusplus
28182extern "C"
28183{
28184#endif
28185/* We use char because int might match the return type of a gcc2
28186   builtin and then its argument prototype would still apply.  */
28187char $ac_func ();
28188/* The GNU C library defines this for functions which it implements
28189    to always fail with ENOSYS.  Some functions are actually named
28190    something starting with __ and the normal name is an alias.  */
28191#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28192choke me
28193#else
28194char (*f) () = $ac_func;
28195#endif
28196#ifdef __cplusplus
28197}
28198#endif
28199
28200int
28201main ()
28202{
28203return f != $ac_func;
28204  ;
28205  return 0;
28206}
28207_ACEOF
28208rm -f conftest.$ac_objext conftest$ac_exeext
28209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28210  (eval $ac_link) 2>conftest.er1
28211  ac_status=$?
28212  grep -v '^ *+' conftest.er1 >conftest.err
28213  rm -f conftest.er1
28214  cat conftest.err >&5
28215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28216  (exit $ac_status); } &&
28217	 { ac_try='test -z "$ac_c_werror_flag"
28218			 || test ! -s conftest.err'
28219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28220  (eval $ac_try) 2>&5
28221  ac_status=$?
28222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28223  (exit $ac_status); }; } &&
28224	 { ac_try='test -s conftest$ac_exeext'
28225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28226  (eval $ac_try) 2>&5
28227  ac_status=$?
28228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28229  (exit $ac_status); }; }; then
28230  eval "$as_ac_var=yes"
28231else
28232  echo "$as_me: failed program was:" >&5
28233sed 's/^/| /' conftest.$ac_ext >&5
28234
28235eval "$as_ac_var=no"
28236fi
28237rm -f conftest.err conftest.$ac_objext \
28238      conftest$ac_exeext conftest.$ac_ext
28239fi
28240echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28241echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28242if test `eval echo '${'$as_ac_var'}'` = yes; then
28243  cat >>confdefs.h <<_ACEOF
28244#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28245_ACEOF
28246
28247fi
28248done
28249
28250echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28251echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28252if test "${llvm_cv_c_printf_a+set}" = set; then
28253  echo $ECHO_N "(cached) $ECHO_C" >&6
28254else
28255  ac_ext=c
28256ac_cpp='$CPP $CPPFLAGS'
28257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28259ac_compiler_gnu=$ac_cv_c_compiler_gnu
28260
28261 if test "$cross_compiling" = yes; then
28262  llvmac_cv_c_printf_a=no
28263else
28264  cat >conftest.$ac_ext <<_ACEOF
28265
28266  /* confdefs.h.  */
28267_ACEOF
28268cat confdefs.h >>conftest.$ac_ext
28269cat >>conftest.$ac_ext <<_ACEOF
28270/* end confdefs.h.  */
28271
28272#include <stdio.h>
28273#include <stdlib.h>
28274
28275int
28276main ()
28277{
28278
28279volatile double A, B;
28280char Buffer[100];
28281A = 1;
28282A /= 10.0;
28283sprintf(Buffer, "%a", A);
28284B = atof(Buffer);
28285if (A != B)
28286  return (1);
28287if (A != 0x1.999999999999ap-4)
28288  return (1);
28289return (0);
28290  ;
28291  return 0;
28292}
28293_ACEOF
28294rm -f conftest$ac_exeext
28295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28296  (eval $ac_link) 2>&5
28297  ac_status=$?
28298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28301  (eval $ac_try) 2>&5
28302  ac_status=$?
28303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304  (exit $ac_status); }; }; then
28305  llvm_cv_c_printf_a=yes
28306else
28307  echo "$as_me: program exited with status $ac_status" >&5
28308echo "$as_me: failed program was:" >&5
28309sed 's/^/| /' conftest.$ac_ext >&5
28310
28311( exit $ac_status )
28312llvmac_cv_c_printf_a=no
28313fi
28314rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28315fi
28316 ac_ext=c
28317ac_cpp='$CPP $CPPFLAGS'
28318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28320ac_compiler_gnu=$ac_cv_c_compiler_gnu
28321
28322fi
28323echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28324echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28325 if test "$llvm_cv_c_printf_a" = "yes"; then
28326
28327cat >>confdefs.h <<\_ACEOF
28328#define HAVE_PRINTF_A 1
28329_ACEOF
28330
28331 fi
28332
28333# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28334# for constant arguments.  Useless!
28335echo "$as_me:$LINENO: checking for working alloca.h" >&5
28336echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28337if test "${ac_cv_working_alloca_h+set}" = set; then
28338  echo $ECHO_N "(cached) $ECHO_C" >&6
28339else
28340  cat >conftest.$ac_ext <<_ACEOF
28341/* confdefs.h.  */
28342_ACEOF
28343cat confdefs.h >>conftest.$ac_ext
28344cat >>conftest.$ac_ext <<_ACEOF
28345/* end confdefs.h.  */
28346#include <alloca.h>
28347int
28348main ()
28349{
28350char *p = (char *) alloca (2 * sizeof (int));
28351  ;
28352  return 0;
28353}
28354_ACEOF
28355rm -f conftest.$ac_objext conftest$ac_exeext
28356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28357  (eval $ac_link) 2>conftest.er1
28358  ac_status=$?
28359  grep -v '^ *+' conftest.er1 >conftest.err
28360  rm -f conftest.er1
28361  cat conftest.err >&5
28362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28363  (exit $ac_status); } &&
28364	 { ac_try='test -z "$ac_c_werror_flag"
28365			 || test ! -s conftest.err'
28366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28367  (eval $ac_try) 2>&5
28368  ac_status=$?
28369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28370  (exit $ac_status); }; } &&
28371	 { ac_try='test -s conftest$ac_exeext'
28372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28373  (eval $ac_try) 2>&5
28374  ac_status=$?
28375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376  (exit $ac_status); }; }; then
28377  ac_cv_working_alloca_h=yes
28378else
28379  echo "$as_me: failed program was:" >&5
28380sed 's/^/| /' conftest.$ac_ext >&5
28381
28382ac_cv_working_alloca_h=no
28383fi
28384rm -f conftest.err conftest.$ac_objext \
28385      conftest$ac_exeext conftest.$ac_ext
28386fi
28387echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28388echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28389if test $ac_cv_working_alloca_h = yes; then
28390
28391cat >>confdefs.h <<\_ACEOF
28392#define HAVE_ALLOCA_H 1
28393_ACEOF
28394
28395fi
28396
28397echo "$as_me:$LINENO: checking for alloca" >&5
28398echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28399if test "${ac_cv_func_alloca_works+set}" = set; then
28400  echo $ECHO_N "(cached) $ECHO_C" >&6
28401else
28402  cat >conftest.$ac_ext <<_ACEOF
28403/* confdefs.h.  */
28404_ACEOF
28405cat confdefs.h >>conftest.$ac_ext
28406cat >>conftest.$ac_ext <<_ACEOF
28407/* end confdefs.h.  */
28408#ifdef __GNUC__
28409# define alloca __builtin_alloca
28410#else
28411# ifdef _MSC_VER
28412#  include <malloc.h>
28413#  define alloca _alloca
28414# else
28415#  if HAVE_ALLOCA_H
28416#   include <alloca.h>
28417#  else
28418#   ifdef _AIX
28419 #pragma alloca
28420#   else
28421#    ifndef alloca /* predefined by HP cc +Olibcalls */
28422char *alloca ();
28423#    endif
28424#   endif
28425#  endif
28426# endif
28427#endif
28428
28429int
28430main ()
28431{
28432char *p = (char *) alloca (1);
28433  ;
28434  return 0;
28435}
28436_ACEOF
28437rm -f conftest.$ac_objext conftest$ac_exeext
28438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28439  (eval $ac_link) 2>conftest.er1
28440  ac_status=$?
28441  grep -v '^ *+' conftest.er1 >conftest.err
28442  rm -f conftest.er1
28443  cat conftest.err >&5
28444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445  (exit $ac_status); } &&
28446	 { ac_try='test -z "$ac_c_werror_flag"
28447			 || test ! -s conftest.err'
28448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28449  (eval $ac_try) 2>&5
28450  ac_status=$?
28451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452  (exit $ac_status); }; } &&
28453	 { ac_try='test -s conftest$ac_exeext'
28454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28455  (eval $ac_try) 2>&5
28456  ac_status=$?
28457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458  (exit $ac_status); }; }; then
28459  ac_cv_func_alloca_works=yes
28460else
28461  echo "$as_me: failed program was:" >&5
28462sed 's/^/| /' conftest.$ac_ext >&5
28463
28464ac_cv_func_alloca_works=no
28465fi
28466rm -f conftest.err conftest.$ac_objext \
28467      conftest$ac_exeext conftest.$ac_ext
28468fi
28469echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28470echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28471
28472if test $ac_cv_func_alloca_works = yes; then
28473
28474cat >>confdefs.h <<\_ACEOF
28475#define HAVE_ALLOCA 1
28476_ACEOF
28477
28478else
28479  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28480# that cause trouble.  Some versions do not even contain alloca or
28481# contain a buggy version.  If you still want to use their alloca,
28482# use ar to extract alloca.o from them instead of compiling alloca.c.
28483
28484ALLOCA=alloca.$ac_objext
28485
28486cat >>confdefs.h <<\_ACEOF
28487#define C_ALLOCA 1
28488_ACEOF
28489
28490
28491echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28492echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28493if test "${ac_cv_os_cray+set}" = set; then
28494  echo $ECHO_N "(cached) $ECHO_C" >&6
28495else
28496  cat >conftest.$ac_ext <<_ACEOF
28497/* confdefs.h.  */
28498_ACEOF
28499cat confdefs.h >>conftest.$ac_ext
28500cat >>conftest.$ac_ext <<_ACEOF
28501/* end confdefs.h.  */
28502#if defined(CRAY) && ! defined(CRAY2)
28503webecray
28504#else
28505wenotbecray
28506#endif
28507
28508_ACEOF
28509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28510  $EGREP "webecray" >/dev/null 2>&1; then
28511  ac_cv_os_cray=yes
28512else
28513  ac_cv_os_cray=no
28514fi
28515rm -f conftest*
28516
28517fi
28518echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28519echo "${ECHO_T}$ac_cv_os_cray" >&6
28520if test $ac_cv_os_cray = yes; then
28521  for ac_func in _getb67 GETB67 getb67; do
28522    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28523echo "$as_me:$LINENO: checking for $ac_func" >&5
28524echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28525if eval "test \"\${$as_ac_var+set}\" = set"; then
28526  echo $ECHO_N "(cached) $ECHO_C" >&6
28527else
28528  cat >conftest.$ac_ext <<_ACEOF
28529/* confdefs.h.  */
28530_ACEOF
28531cat confdefs.h >>conftest.$ac_ext
28532cat >>conftest.$ac_ext <<_ACEOF
28533/* end confdefs.h.  */
28534/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28535   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28536#define $ac_func innocuous_$ac_func
28537
28538/* System header to define __stub macros and hopefully few prototypes,
28539    which can conflict with char $ac_func (); below.
28540    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28541    <limits.h> exists even on freestanding compilers.  */
28542
28543#ifdef __STDC__
28544# include <limits.h>
28545#else
28546# include <assert.h>
28547#endif
28548
28549#undef $ac_func
28550
28551/* Override any gcc2 internal prototype to avoid an error.  */
28552#ifdef __cplusplus
28553extern "C"
28554{
28555#endif
28556/* We use char because int might match the return type of a gcc2
28557   builtin and then its argument prototype would still apply.  */
28558char $ac_func ();
28559/* The GNU C library defines this for functions which it implements
28560    to always fail with ENOSYS.  Some functions are actually named
28561    something starting with __ and the normal name is an alias.  */
28562#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28563choke me
28564#else
28565char (*f) () = $ac_func;
28566#endif
28567#ifdef __cplusplus
28568}
28569#endif
28570
28571int
28572main ()
28573{
28574return f != $ac_func;
28575  ;
28576  return 0;
28577}
28578_ACEOF
28579rm -f conftest.$ac_objext conftest$ac_exeext
28580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28581  (eval $ac_link) 2>conftest.er1
28582  ac_status=$?
28583  grep -v '^ *+' conftest.er1 >conftest.err
28584  rm -f conftest.er1
28585  cat conftest.err >&5
28586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28587  (exit $ac_status); } &&
28588	 { ac_try='test -z "$ac_c_werror_flag"
28589			 || test ! -s conftest.err'
28590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28591  (eval $ac_try) 2>&5
28592  ac_status=$?
28593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28594  (exit $ac_status); }; } &&
28595	 { ac_try='test -s conftest$ac_exeext'
28596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28597  (eval $ac_try) 2>&5
28598  ac_status=$?
28599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600  (exit $ac_status); }; }; then
28601  eval "$as_ac_var=yes"
28602else
28603  echo "$as_me: failed program was:" >&5
28604sed 's/^/| /' conftest.$ac_ext >&5
28605
28606eval "$as_ac_var=no"
28607fi
28608rm -f conftest.err conftest.$ac_objext \
28609      conftest$ac_exeext conftest.$ac_ext
28610fi
28611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28612echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28613if test `eval echo '${'$as_ac_var'}'` = yes; then
28614
28615cat >>confdefs.h <<_ACEOF
28616#define CRAY_STACKSEG_END $ac_func
28617_ACEOF
28618
28619    break
28620fi
28621
28622  done
28623fi
28624
28625echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28626echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28627if test "${ac_cv_c_stack_direction+set}" = set; then
28628  echo $ECHO_N "(cached) $ECHO_C" >&6
28629else
28630  if test "$cross_compiling" = yes; then
28631  ac_cv_c_stack_direction=0
28632else
28633  cat >conftest.$ac_ext <<_ACEOF
28634/* confdefs.h.  */
28635_ACEOF
28636cat confdefs.h >>conftest.$ac_ext
28637cat >>conftest.$ac_ext <<_ACEOF
28638/* end confdefs.h.  */
28639int
28640find_stack_direction ()
28641{
28642  static char *addr = 0;
28643  auto char dummy;
28644  if (addr == 0)
28645    {
28646      addr = &dummy;
28647      return find_stack_direction ();
28648    }
28649  else
28650    return (&dummy > addr) ? 1 : -1;
28651}
28652
28653int
28654main ()
28655{
28656  exit (find_stack_direction () < 0);
28657}
28658_ACEOF
28659rm -f conftest$ac_exeext
28660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28661  (eval $ac_link) 2>&5
28662  ac_status=$?
28663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28664  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28666  (eval $ac_try) 2>&5
28667  ac_status=$?
28668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669  (exit $ac_status); }; }; then
28670  ac_cv_c_stack_direction=1
28671else
28672  echo "$as_me: program exited with status $ac_status" >&5
28673echo "$as_me: failed program was:" >&5
28674sed 's/^/| /' conftest.$ac_ext >&5
28675
28676( exit $ac_status )
28677ac_cv_c_stack_direction=-1
28678fi
28679rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28680fi
28681fi
28682echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28683echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28684
28685cat >>confdefs.h <<_ACEOF
28686#define STACK_DIRECTION $ac_cv_c_stack_direction
28687_ACEOF
28688
28689
28690fi
28691
28692
28693echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28694echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28695if test "${ac_cv_func_rand48+set}" = set; then
28696  echo $ECHO_N "(cached) $ECHO_C" >&6
28697else
28698  ac_ext=cc
28699ac_cpp='$CXXCPP $CPPFLAGS'
28700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28703
28704   cat >conftest.$ac_ext <<_ACEOF
28705/* confdefs.h.  */
28706_ACEOF
28707cat confdefs.h >>conftest.$ac_ext
28708cat >>conftest.$ac_ext <<_ACEOF
28709/* end confdefs.h.  */
28710#include <stdlib.h>
28711int
28712main ()
28713{
28714srand48(0);lrand48();drand48();
28715  ;
28716  return 0;
28717}
28718_ACEOF
28719rm -f conftest.$ac_objext
28720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28721  (eval $ac_compile) 2>conftest.er1
28722  ac_status=$?
28723  grep -v '^ *+' conftest.er1 >conftest.err
28724  rm -f conftest.er1
28725  cat conftest.err >&5
28726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727  (exit $ac_status); } &&
28728	 { ac_try='test -z "$ac_cxx_werror_flag"
28729			 || test ! -s conftest.err'
28730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28731  (eval $ac_try) 2>&5
28732  ac_status=$?
28733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734  (exit $ac_status); }; } &&
28735	 { ac_try='test -s conftest.$ac_objext'
28736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28737  (eval $ac_try) 2>&5
28738  ac_status=$?
28739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740  (exit $ac_status); }; }; then
28741  ac_cv_func_rand48=yes
28742else
28743  echo "$as_me: failed program was:" >&5
28744sed 's/^/| /' conftest.$ac_ext >&5
28745
28746ac_cv_func_rand48=no
28747fi
28748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28749  ac_ext=c
28750ac_cpp='$CPP $CPPFLAGS'
28751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28753ac_compiler_gnu=$ac_cv_c_compiler_gnu
28754
28755fi
28756echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28757echo "${ECHO_T}$ac_cv_func_rand48" >&6
28758
28759if test "$ac_cv_func_rand48" = "yes" ; then
28760
28761cat >>confdefs.h <<\_ACEOF
28762#define HAVE_RAND48 1
28763_ACEOF
28764
28765fi
28766
28767
28768echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28769echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28770if test "${ac_cv_cxx_namespaces+set}" = set; then
28771  echo $ECHO_N "(cached) $ECHO_C" >&6
28772else
28773  ac_ext=cc
28774ac_cpp='$CXXCPP $CPPFLAGS'
28775ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28776ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28777ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28778
28779 cat >conftest.$ac_ext <<_ACEOF
28780/* confdefs.h.  */
28781_ACEOF
28782cat confdefs.h >>conftest.$ac_ext
28783cat >>conftest.$ac_ext <<_ACEOF
28784/* end confdefs.h.  */
28785namespace Outer { namespace Inner { int i = 0; }}
28786int
28787main ()
28788{
28789using namespace Outer::Inner; return i;
28790  ;
28791  return 0;
28792}
28793_ACEOF
28794rm -f conftest.$ac_objext
28795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28796  (eval $ac_compile) 2>conftest.er1
28797  ac_status=$?
28798  grep -v '^ *+' conftest.er1 >conftest.err
28799  rm -f conftest.er1
28800  cat conftest.err >&5
28801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28802  (exit $ac_status); } &&
28803	 { ac_try='test -z "$ac_cxx_werror_flag"
28804			 || test ! -s conftest.err'
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); }; } &&
28810	 { ac_try='test -s conftest.$ac_objext'
28811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28812  (eval $ac_try) 2>&5
28813  ac_status=$?
28814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815  (exit $ac_status); }; }; then
28816  ac_cv_cxx_namespaces=yes
28817else
28818  echo "$as_me: failed program was:" >&5
28819sed 's/^/| /' conftest.$ac_ext >&5
28820
28821ac_cv_cxx_namespaces=no
28822fi
28823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28824 ac_ext=c
28825ac_cpp='$CPP $CPPFLAGS'
28826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28828ac_compiler_gnu=$ac_cv_c_compiler_gnu
28829
28830
28831fi
28832echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28833echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28834if test "$ac_cv_cxx_namespaces" = yes; then
28835
28836cat >>confdefs.h <<\_ACEOF
28837#define HAVE_NAMESPACES
28838_ACEOF
28839
28840fi
28841
28842echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28843echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28844if test "${ac_cv_cxx_have_std_ext_hash_map+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_map>
28861#ifdef HAVE_NAMESPACES
28862using namespace std;
28863#endif
28864int
28865main ()
28866{
28867hash_map<int, 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_map=yes
28895else
28896  echo "$as_me: failed program was:" >&5
28897sed 's/^/| /' conftest.$ac_ext >&5
28898
28899ac_cv_cxx_have_std_ext_hash_map=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_map" >&5
28910echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28911 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28912 then
28913
28914cat >>confdefs.h <<\_ACEOF
28915#define HAVE_STD_EXT_HASH_MAP 1
28916_ACEOF
28917
28918 else
28919
28920cat >>confdefs.h <<\_ACEOF
28921#define HAVE_STD_EXT_HASH_MAP 0
28922_ACEOF
28923
28924 fi
28925
28926 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28927echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28928if test "${ac_cv_cxx_have_gnu_ext_hash_map+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_map>
28945#ifdef HAVE_NAMESPACES
28946using namespace __gnu_cxx;
28947#endif
28948int
28949main ()
28950{
28951hash_map<int,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_map=yes
28979else
28980  echo "$as_me: failed program was:" >&5
28981sed 's/^/| /' conftest.$ac_ext >&5
28982
28983ac_cv_cxx_have_gnu_ext_hash_map=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_map" >&5
28994echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28995 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28996 then
28997
28998cat >>confdefs.h <<\_ACEOF
28999#define HAVE_GNU_EXT_HASH_MAP 1
29000_ACEOF
29001
29002 else
29003
29004cat >>confdefs.h <<\_ACEOF
29005#define HAVE_GNU_EXT_HASH_MAP 0
29006_ACEOF
29007
29008 fi
29009
29010 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
29011echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
29012if test "${ac_cv_cxx_have_global_hash_map+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_map>
29029int
29030main ()
29031{
29032hash_map<int,int> t;
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_map=yes
29060else
29061  echo "$as_me: failed program was:" >&5
29062sed 's/^/| /' conftest.$ac_ext >&5
29063
29064ac_cv_cxx_have_global_hash_map=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_map" >&5
29075echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
29076 if test "$ac_cv_cxx_have_global_hash_map" = yes
29077 then
29078
29079cat >>confdefs.h <<\_ACEOF
29080#define HAVE_GLOBAL_HASH_MAP 1
29081_ACEOF
29082
29083 else
29084
29085cat >>confdefs.h <<\_ACEOF
29086#define HAVE_GLOBAL_HASH_MAP 0
29087_ACEOF
29088
29089 fi
29090
29091echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29092echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29093if test "${ac_cv_cxx_have_std_ext_hash_set+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 <ext/hash_set>
29110#ifdef HAVE_NAMESPACES
29111using namespace std;
29112#endif
29113int
29114main ()
29115{
29116hash_set<int> t;
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_ext_hash_set=yes
29144else
29145  echo "$as_me: failed program was:" >&5
29146sed 's/^/| /' conftest.$ac_ext >&5
29147
29148ac_cv_cxx_have_std_ext_hash_set=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
29157fi
29158echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29159echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29160 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29161 then
29162
29163cat >>confdefs.h <<\_ACEOF
29164#define HAVE_STD_EXT_HASH_SET 1
29165_ACEOF
29166
29167 else
29168
29169cat >>confdefs.h <<\_ACEOF
29170#define HAVE_STD_EXT_HASH_SET 0
29171_ACEOF
29172
29173 fi
29174
29175 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29176echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29177if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29178  echo $ECHO_N "(cached) $ECHO_C" >&6
29179else
29180
29181  ac_ext=cc
29182ac_cpp='$CXXCPP $CPPFLAGS'
29183ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29184ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29185ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29186
29187  cat >conftest.$ac_ext <<_ACEOF
29188/* confdefs.h.  */
29189_ACEOF
29190cat confdefs.h >>conftest.$ac_ext
29191cat >>conftest.$ac_ext <<_ACEOF
29192/* end confdefs.h.  */
29193#include <ext/hash_set>
29194#ifdef HAVE_NAMESPACES
29195using namespace __gnu_cxx;
29196#endif
29197int
29198main ()
29199{
29200hash_set<int> t;
29201  ;
29202  return 0;
29203}
29204_ACEOF
29205rm -f conftest.$ac_objext
29206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29207  (eval $ac_compile) 2>conftest.er1
29208  ac_status=$?
29209  grep -v '^ *+' conftest.er1 >conftest.err
29210  rm -f conftest.er1
29211  cat conftest.err >&5
29212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213  (exit $ac_status); } &&
29214	 { ac_try='test -z "$ac_cxx_werror_flag"
29215			 || test ! -s conftest.err'
29216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29217  (eval $ac_try) 2>&5
29218  ac_status=$?
29219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29220  (exit $ac_status); }; } &&
29221	 { ac_try='test -s conftest.$ac_objext'
29222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29223  (eval $ac_try) 2>&5
29224  ac_status=$?
29225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29226  (exit $ac_status); }; }; then
29227  ac_cv_cxx_have_gnu_ext_hash_set=yes
29228else
29229  echo "$as_me: failed program was:" >&5
29230sed 's/^/| /' conftest.$ac_ext >&5
29231
29232ac_cv_cxx_have_gnu_ext_hash_set=no
29233fi
29234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29235  ac_ext=c
29236ac_cpp='$CPP $CPPFLAGS'
29237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29239ac_compiler_gnu=$ac_cv_c_compiler_gnu
29240
29241fi
29242echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29243echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29244 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29245 then
29246
29247cat >>confdefs.h <<\_ACEOF
29248#define HAVE_GNU_EXT_HASH_SET 1
29249_ACEOF
29250
29251 else
29252
29253cat >>confdefs.h <<\_ACEOF
29254#define HAVE_GNU_EXT_HASH_SET 0
29255_ACEOF
29256
29257 fi
29258
29259 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29260echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29261if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29262  echo $ECHO_N "(cached) $ECHO_C" >&6
29263else
29264
29265  ac_ext=cc
29266ac_cpp='$CXXCPP $CPPFLAGS'
29267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29270
29271  cat >conftest.$ac_ext <<_ACEOF
29272/* confdefs.h.  */
29273_ACEOF
29274cat confdefs.h >>conftest.$ac_ext
29275cat >>conftest.$ac_ext <<_ACEOF
29276/* end confdefs.h.  */
29277#include <hash_set>
29278int
29279main ()
29280{
29281hash_set<int> t; return 0;
29282  ;
29283  return 0;
29284}
29285_ACEOF
29286rm -f conftest.$ac_objext
29287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29288  (eval $ac_compile) 2>conftest.er1
29289  ac_status=$?
29290  grep -v '^ *+' conftest.er1 >conftest.err
29291  rm -f conftest.er1
29292  cat conftest.err >&5
29293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294  (exit $ac_status); } &&
29295	 { ac_try='test -z "$ac_cxx_werror_flag"
29296			 || test ! -s conftest.err'
29297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29298  (eval $ac_try) 2>&5
29299  ac_status=$?
29300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29301  (exit $ac_status); }; } &&
29302	 { ac_try='test -s conftest.$ac_objext'
29303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29304  (eval $ac_try) 2>&5
29305  ac_status=$?
29306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29307  (exit $ac_status); }; }; then
29308  ac_cv_cxx_have_global_hash_set=yes
29309else
29310  echo "$as_me: failed program was:" >&5
29311sed 's/^/| /' conftest.$ac_ext >&5
29312
29313ac_cv_cxx_have_global_hash_set=no
29314fi
29315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29316  ac_ext=c
29317ac_cpp='$CPP $CPPFLAGS'
29318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29320ac_compiler_gnu=$ac_cv_c_compiler_gnu
29321
29322fi
29323echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29324echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29325 if test "$ac_cv_cxx_have_global_hash_set" = yes
29326 then
29327
29328cat >>confdefs.h <<\_ACEOF
29329#define HAVE_GLOBAL_HASH_SET 1
29330_ACEOF
29331
29332 else
29333
29334cat >>confdefs.h <<\_ACEOF
29335#define HAVE_GLOBAL_HASH_SET 0
29336_ACEOF
29337
29338 fi
29339
29340echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29341echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29342if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29343  echo $ECHO_N "(cached) $ECHO_C" >&6
29344else
29345
29346  ac_ext=cc
29347ac_cpp='$CXXCPP $CPPFLAGS'
29348ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29349ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29350ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29351
29352  cat >conftest.$ac_ext <<_ACEOF
29353/* confdefs.h.  */
29354_ACEOF
29355cat confdefs.h >>conftest.$ac_ext
29356cat >>conftest.$ac_ext <<_ACEOF
29357/* end confdefs.h.  */
29358#include <iterator>
29359#ifdef HAVE_NAMESPACES
29360using namespace std;
29361#endif
29362int
29363main ()
29364{
29365iterator<int,int,int> t; return 0;
29366  ;
29367  return 0;
29368}
29369_ACEOF
29370rm -f conftest.$ac_objext
29371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29372  (eval $ac_compile) 2>conftest.er1
29373  ac_status=$?
29374  grep -v '^ *+' conftest.er1 >conftest.err
29375  rm -f conftest.er1
29376  cat conftest.err >&5
29377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29378  (exit $ac_status); } &&
29379	 { ac_try='test -z "$ac_cxx_werror_flag"
29380			 || test ! -s conftest.err'
29381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29382  (eval $ac_try) 2>&5
29383  ac_status=$?
29384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385  (exit $ac_status); }; } &&
29386	 { ac_try='test -s conftest.$ac_objext'
29387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29388  (eval $ac_try) 2>&5
29389  ac_status=$?
29390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391  (exit $ac_status); }; }; then
29392  ac_cv_cxx_have_std_iterator=yes
29393else
29394  echo "$as_me: failed program was:" >&5
29395sed 's/^/| /' conftest.$ac_ext >&5
29396
29397ac_cv_cxx_have_std_iterator=no
29398fi
29399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29400  ac_ext=c
29401ac_cpp='$CPP $CPPFLAGS'
29402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29404ac_compiler_gnu=$ac_cv_c_compiler_gnu
29405
29406
29407fi
29408echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29409echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29410if test "$ac_cv_cxx_have_std_iterator" = yes
29411then
29412
29413cat >>confdefs.h <<\_ACEOF
29414#define HAVE_STD_ITERATOR 1
29415_ACEOF
29416
29417else
29418
29419cat >>confdefs.h <<\_ACEOF
29420#define HAVE_STD_ITERATOR 0
29421_ACEOF
29422
29423fi
29424
29425echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29426echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29427if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29428  echo $ECHO_N "(cached) $ECHO_C" >&6
29429else
29430
29431  ac_ext=cc
29432ac_cpp='$CXXCPP $CPPFLAGS'
29433ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29434ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29435ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29436
29437  cat >conftest.$ac_ext <<_ACEOF
29438/* confdefs.h.  */
29439_ACEOF
29440cat confdefs.h >>conftest.$ac_ext
29441cat >>conftest.$ac_ext <<_ACEOF
29442/* end confdefs.h.  */
29443#include <iterator>
29444#ifdef HAVE_NAMESPACES
29445using namespace std;
29446#endif
29447int
29448main ()
29449{
29450bidirectional_iterator<int,int> t; return 0;
29451  ;
29452  return 0;
29453}
29454_ACEOF
29455rm -f conftest.$ac_objext
29456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29457  (eval $ac_compile) 2>conftest.er1
29458  ac_status=$?
29459  grep -v '^ *+' conftest.er1 >conftest.err
29460  rm -f conftest.er1
29461  cat conftest.err >&5
29462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29463  (exit $ac_status); } &&
29464	 { ac_try='test -z "$ac_cxx_werror_flag"
29465			 || test ! -s conftest.err'
29466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29467  (eval $ac_try) 2>&5
29468  ac_status=$?
29469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470  (exit $ac_status); }; } &&
29471	 { ac_try='test -s conftest.$ac_objext'
29472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29473  (eval $ac_try) 2>&5
29474  ac_status=$?
29475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29476  (exit $ac_status); }; }; then
29477  ac_cv_cxx_have_bi_iterator=yes
29478else
29479  echo "$as_me: failed program was:" >&5
29480sed 's/^/| /' conftest.$ac_ext >&5
29481
29482ac_cv_cxx_have_bi_iterator=no
29483fi
29484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29485  ac_ext=c
29486ac_cpp='$CPP $CPPFLAGS'
29487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29489ac_compiler_gnu=$ac_cv_c_compiler_gnu
29490
29491
29492fi
29493echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29494echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29495if test "$ac_cv_cxx_have_bi_iterator" = yes
29496then
29497
29498cat >>confdefs.h <<\_ACEOF
29499#define HAVE_BI_ITERATOR 1
29500_ACEOF
29501
29502else
29503
29504cat >>confdefs.h <<\_ACEOF
29505#define HAVE_BI_ITERATOR 0
29506_ACEOF
29507
29508fi
29509
29510echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29511echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29512if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29513  echo $ECHO_N "(cached) $ECHO_C" >&6
29514else
29515
29516  ac_ext=cc
29517ac_cpp='$CXXCPP $CPPFLAGS'
29518ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29519ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29520ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29521
29522  cat >conftest.$ac_ext <<_ACEOF
29523/* confdefs.h.  */
29524_ACEOF
29525cat confdefs.h >>conftest.$ac_ext
29526cat >>conftest.$ac_ext <<_ACEOF
29527/* end confdefs.h.  */
29528#include <iterator>
29529#ifdef HAVE_NAMESPACES
29530using namespace std;
29531#endif
29532int
29533main ()
29534{
29535forward_iterator<int,int> t; return 0;
29536  ;
29537  return 0;
29538}
29539_ACEOF
29540rm -f conftest.$ac_objext
29541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29542  (eval $ac_compile) 2>conftest.er1
29543  ac_status=$?
29544  grep -v '^ *+' conftest.er1 >conftest.err
29545  rm -f conftest.er1
29546  cat conftest.err >&5
29547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548  (exit $ac_status); } &&
29549	 { ac_try='test -z "$ac_cxx_werror_flag"
29550			 || test ! -s conftest.err'
29551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29552  (eval $ac_try) 2>&5
29553  ac_status=$?
29554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555  (exit $ac_status); }; } &&
29556	 { ac_try='test -s conftest.$ac_objext'
29557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29558  (eval $ac_try) 2>&5
29559  ac_status=$?
29560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561  (exit $ac_status); }; }; then
29562  ac_cv_cxx_have_fwd_iterator=yes
29563else
29564  echo "$as_me: failed program was:" >&5
29565sed 's/^/| /' conftest.$ac_ext >&5
29566
29567ac_cv_cxx_have_fwd_iterator=no
29568fi
29569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29570  ac_ext=c
29571ac_cpp='$CPP $CPPFLAGS'
29572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29574ac_compiler_gnu=$ac_cv_c_compiler_gnu
29575
29576
29577fi
29578echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29579echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29580if test "$ac_cv_cxx_have_fwd_iterator" = yes
29581then
29582
29583cat >>confdefs.h <<\_ACEOF
29584#define HAVE_FWD_ITERATOR 1
29585_ACEOF
29586
29587else
29588
29589cat >>confdefs.h <<\_ACEOF
29590#define HAVE_FWD_ITERATOR 0
29591_ACEOF
29592
29593fi
29594
29595
29596echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29597echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29598if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29599  echo $ECHO_N "(cached) $ECHO_C" >&6
29600else
29601  ac_ext=cc
29602ac_cpp='$CXXCPP $CPPFLAGS'
29603ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29604ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29605ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29606
29607   cat >conftest.$ac_ext <<_ACEOF
29608/* confdefs.h.  */
29609_ACEOF
29610cat confdefs.h >>conftest.$ac_ext
29611cat >>conftest.$ac_ext <<_ACEOF
29612/* end confdefs.h.  */
29613#include <math.h>
29614int
29615main ()
29616{
29617float f; isnan(f);
29618  ;
29619  return 0;
29620}
29621_ACEOF
29622rm -f conftest.$ac_objext
29623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29624  (eval $ac_compile) 2>conftest.er1
29625  ac_status=$?
29626  grep -v '^ *+' conftest.er1 >conftest.err
29627  rm -f conftest.er1
29628  cat conftest.err >&5
29629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29630  (exit $ac_status); } &&
29631	 { ac_try='test -z "$ac_cxx_werror_flag"
29632			 || test ! -s conftest.err'
29633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29634  (eval $ac_try) 2>&5
29635  ac_status=$?
29636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637  (exit $ac_status); }; } &&
29638	 { ac_try='test -s conftest.$ac_objext'
29639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29640  (eval $ac_try) 2>&5
29641  ac_status=$?
29642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643  (exit $ac_status); }; }; then
29644  ac_cv_func_isnan_in_math_h=yes
29645else
29646  echo "$as_me: failed program was:" >&5
29647sed 's/^/| /' conftest.$ac_ext >&5
29648
29649ac_cv_func_isnan_in_math_h=no
29650fi
29651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29652  ac_ext=c
29653ac_cpp='$CPP $CPPFLAGS'
29654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29656ac_compiler_gnu=$ac_cv_c_compiler_gnu
29657
29658fi
29659echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29660echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29661
29662
29663if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29664
29665cat >>confdefs.h <<\_ACEOF
29666#define HAVE_ISNAN_IN_MATH_H 1
29667_ACEOF
29668
29669fi
29670
29671echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29672echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29673if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29674  echo $ECHO_N "(cached) $ECHO_C" >&6
29675else
29676  ac_ext=cc
29677ac_cpp='$CXXCPP $CPPFLAGS'
29678ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29679ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29680ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29681
29682   cat >conftest.$ac_ext <<_ACEOF
29683/* confdefs.h.  */
29684_ACEOF
29685cat confdefs.h >>conftest.$ac_ext
29686cat >>conftest.$ac_ext <<_ACEOF
29687/* end confdefs.h.  */
29688#include <cmath>
29689int
29690main ()
29691{
29692float f; isnan(f);
29693  ;
29694  return 0;
29695}
29696_ACEOF
29697rm -f conftest.$ac_objext
29698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29699  (eval $ac_compile) 2>conftest.er1
29700  ac_status=$?
29701  grep -v '^ *+' conftest.er1 >conftest.err
29702  rm -f conftest.er1
29703  cat conftest.err >&5
29704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705  (exit $ac_status); } &&
29706	 { ac_try='test -z "$ac_cxx_werror_flag"
29707			 || test ! -s conftest.err'
29708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29709  (eval $ac_try) 2>&5
29710  ac_status=$?
29711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29712  (exit $ac_status); }; } &&
29713	 { ac_try='test -s conftest.$ac_objext'
29714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29715  (eval $ac_try) 2>&5
29716  ac_status=$?
29717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29718  (exit $ac_status); }; }; then
29719  ac_cv_func_isnan_in_cmath=yes
29720else
29721  echo "$as_me: failed program was:" >&5
29722sed 's/^/| /' conftest.$ac_ext >&5
29723
29724ac_cv_func_isnan_in_cmath=no
29725fi
29726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29727  ac_ext=c
29728ac_cpp='$CPP $CPPFLAGS'
29729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29731ac_compiler_gnu=$ac_cv_c_compiler_gnu
29732
29733fi
29734echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29735echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29736
29737if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29738
29739cat >>confdefs.h <<\_ACEOF
29740#define HAVE_ISNAN_IN_CMATH 1
29741_ACEOF
29742
29743fi
29744
29745echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29746echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29747if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29748  echo $ECHO_N "(cached) $ECHO_C" >&6
29749else
29750  ac_ext=cc
29751ac_cpp='$CXXCPP $CPPFLAGS'
29752ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29753ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29754ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29755
29756   cat >conftest.$ac_ext <<_ACEOF
29757/* confdefs.h.  */
29758_ACEOF
29759cat confdefs.h >>conftest.$ac_ext
29760cat >>conftest.$ac_ext <<_ACEOF
29761/* end confdefs.h.  */
29762#include <cmath>
29763int
29764main ()
29765{
29766float f; std::isnan(f);
29767  ;
29768  return 0;
29769}
29770_ACEOF
29771rm -f conftest.$ac_objext
29772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29773  (eval $ac_compile) 2>conftest.er1
29774  ac_status=$?
29775  grep -v '^ *+' conftest.er1 >conftest.err
29776  rm -f conftest.er1
29777  cat conftest.err >&5
29778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779  (exit $ac_status); } &&
29780	 { ac_try='test -z "$ac_cxx_werror_flag"
29781			 || test ! -s conftest.err'
29782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29783  (eval $ac_try) 2>&5
29784  ac_status=$?
29785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786  (exit $ac_status); }; } &&
29787	 { ac_try='test -s conftest.$ac_objext'
29788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29789  (eval $ac_try) 2>&5
29790  ac_status=$?
29791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29792  (exit $ac_status); }; }; then
29793  ac_cv_func_std_isnan_in_cmath=yes
29794else
29795  echo "$as_me: failed program was:" >&5
29796sed 's/^/| /' conftest.$ac_ext >&5
29797
29798ac_cv_func_std_isnan_in_cmath=no
29799fi
29800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29801  ac_ext=c
29802ac_cpp='$CPP $CPPFLAGS'
29803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29805ac_compiler_gnu=$ac_cv_c_compiler_gnu
29806
29807fi
29808echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29809echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29810
29811if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29812
29813cat >>confdefs.h <<\_ACEOF
29814#define HAVE_STD_ISNAN_IN_CMATH 1
29815_ACEOF
29816
29817fi
29818
29819
29820echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29821echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29822if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29823  echo $ECHO_N "(cached) $ECHO_C" >&6
29824else
29825  ac_ext=cc
29826ac_cpp='$CXXCPP $CPPFLAGS'
29827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29830
29831   cat >conftest.$ac_ext <<_ACEOF
29832/* confdefs.h.  */
29833_ACEOF
29834cat confdefs.h >>conftest.$ac_ext
29835cat >>conftest.$ac_ext <<_ACEOF
29836/* end confdefs.h.  */
29837#include <math.h>
29838int
29839main ()
29840{
29841float f; isinf(f);
29842  ;
29843  return 0;
29844}
29845_ACEOF
29846rm -f conftest.$ac_objext
29847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29848  (eval $ac_compile) 2>conftest.er1
29849  ac_status=$?
29850  grep -v '^ *+' conftest.er1 >conftest.err
29851  rm -f conftest.er1
29852  cat conftest.err >&5
29853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854  (exit $ac_status); } &&
29855	 { ac_try='test -z "$ac_cxx_werror_flag"
29856			 || test ! -s conftest.err'
29857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29858  (eval $ac_try) 2>&5
29859  ac_status=$?
29860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861  (exit $ac_status); }; } &&
29862	 { ac_try='test -s conftest.$ac_objext'
29863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29864  (eval $ac_try) 2>&5
29865  ac_status=$?
29866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29867  (exit $ac_status); }; }; then
29868  ac_cv_func_isinf_in_math_h=yes
29869else
29870  echo "$as_me: failed program was:" >&5
29871sed 's/^/| /' conftest.$ac_ext >&5
29872
29873ac_cv_func_isinf_in_math_h=no
29874fi
29875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29876  ac_ext=c
29877ac_cpp='$CPP $CPPFLAGS'
29878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29880ac_compiler_gnu=$ac_cv_c_compiler_gnu
29881
29882fi
29883echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29884echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29885
29886if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29887
29888cat >>confdefs.h <<\_ACEOF
29889#define HAVE_ISINF_IN_MATH_H 1
29890_ACEOF
29891
29892fi
29893
29894echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29895echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29896if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29897  echo $ECHO_N "(cached) $ECHO_C" >&6
29898else
29899  ac_ext=cc
29900ac_cpp='$CXXCPP $CPPFLAGS'
29901ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29902ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29903ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29904
29905   cat >conftest.$ac_ext <<_ACEOF
29906/* confdefs.h.  */
29907_ACEOF
29908cat confdefs.h >>conftest.$ac_ext
29909cat >>conftest.$ac_ext <<_ACEOF
29910/* end confdefs.h.  */
29911#include <cmath>
29912int
29913main ()
29914{
29915float f; isinf(f);
29916  ;
29917  return 0;
29918}
29919_ACEOF
29920rm -f conftest.$ac_objext
29921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29922  (eval $ac_compile) 2>conftest.er1
29923  ac_status=$?
29924  grep -v '^ *+' conftest.er1 >conftest.err
29925  rm -f conftest.er1
29926  cat conftest.err >&5
29927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29928  (exit $ac_status); } &&
29929	 { ac_try='test -z "$ac_cxx_werror_flag"
29930			 || test ! -s conftest.err'
29931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29932  (eval $ac_try) 2>&5
29933  ac_status=$?
29934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935  (exit $ac_status); }; } &&
29936	 { ac_try='test -s conftest.$ac_objext'
29937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29938  (eval $ac_try) 2>&5
29939  ac_status=$?
29940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29941  (exit $ac_status); }; }; then
29942  ac_cv_func_isinf_in_cmath=yes
29943else
29944  echo "$as_me: failed program was:" >&5
29945sed 's/^/| /' conftest.$ac_ext >&5
29946
29947ac_cv_func_isinf_in_cmath=no
29948fi
29949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29950  ac_ext=c
29951ac_cpp='$CPP $CPPFLAGS'
29952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29954ac_compiler_gnu=$ac_cv_c_compiler_gnu
29955
29956fi
29957echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29958echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29959
29960if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29961
29962cat >>confdefs.h <<\_ACEOF
29963#define HAVE_ISINF_IN_CMATH 1
29964_ACEOF
29965
29966fi
29967
29968echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29969echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29970if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29971  echo $ECHO_N "(cached) $ECHO_C" >&6
29972else
29973  ac_ext=cc
29974ac_cpp='$CXXCPP $CPPFLAGS'
29975ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29976ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29977ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29978
29979   cat >conftest.$ac_ext <<_ACEOF
29980/* confdefs.h.  */
29981_ACEOF
29982cat confdefs.h >>conftest.$ac_ext
29983cat >>conftest.$ac_ext <<_ACEOF
29984/* end confdefs.h.  */
29985#include <cmath>
29986int
29987main ()
29988{
29989float f; std::isinf(f)}
29990  ;
29991  return 0;
29992}
29993_ACEOF
29994rm -f conftest.$ac_objext
29995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29996  (eval $ac_compile) 2>conftest.er1
29997  ac_status=$?
29998  grep -v '^ *+' conftest.er1 >conftest.err
29999  rm -f conftest.er1
30000  cat conftest.err >&5
30001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002  (exit $ac_status); } &&
30003	 { ac_try='test -z "$ac_cxx_werror_flag"
30004			 || test ! -s conftest.err'
30005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30006  (eval $ac_try) 2>&5
30007  ac_status=$?
30008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009  (exit $ac_status); }; } &&
30010	 { ac_try='test -s conftest.$ac_objext'
30011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30012  (eval $ac_try) 2>&5
30013  ac_status=$?
30014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30015  (exit $ac_status); }; }; then
30016  ac_cv_func_std_isinf_in_cmath=yes
30017else
30018  echo "$as_me: failed program was:" >&5
30019sed 's/^/| /' conftest.$ac_ext >&5
30020
30021ac_cv_func_std_isinf_in_cmath=no
30022fi
30023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30024  ac_ext=c
30025ac_cpp='$CPP $CPPFLAGS'
30026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30028ac_compiler_gnu=$ac_cv_c_compiler_gnu
30029
30030fi
30031echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
30032echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
30033
30034if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
30035
30036cat >>confdefs.h <<\_ACEOF
30037#define HAVE_STD_ISINF_IN_CMATH 1
30038_ACEOF
30039
30040fi
30041
30042echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
30043echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
30044if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
30045  echo $ECHO_N "(cached) $ECHO_C" >&6
30046else
30047  ac_ext=cc
30048ac_cpp='$CXXCPP $CPPFLAGS'
30049ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30050ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30051ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30052
30053   cat >conftest.$ac_ext <<_ACEOF
30054/* confdefs.h.  */
30055_ACEOF
30056cat confdefs.h >>conftest.$ac_ext
30057cat >>conftest.$ac_ext <<_ACEOF
30058/* end confdefs.h.  */
30059#include <ieeefp.h>
30060int
30061main ()
30062{
30063float f; finite(f);
30064  ;
30065  return 0;
30066}
30067_ACEOF
30068rm -f conftest.$ac_objext
30069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30070  (eval $ac_compile) 2>conftest.er1
30071  ac_status=$?
30072  grep -v '^ *+' conftest.er1 >conftest.err
30073  rm -f conftest.er1
30074  cat conftest.err >&5
30075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30076  (exit $ac_status); } &&
30077	 { ac_try='test -z "$ac_cxx_werror_flag"
30078			 || test ! -s conftest.err'
30079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30080  (eval $ac_try) 2>&5
30081  ac_status=$?
30082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30083  (exit $ac_status); }; } &&
30084	 { ac_try='test -s conftest.$ac_objext'
30085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30086  (eval $ac_try) 2>&5
30087  ac_status=$?
30088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30089  (exit $ac_status); }; }; then
30090  ac_cv_func_finite_in_ieeefp_h=yes
30091else
30092  echo "$as_me: failed program was:" >&5
30093sed 's/^/| /' conftest.$ac_ext >&5
30094
30095ac_cv_func_finite_in_ieeefp_h=no
30096fi
30097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30098  ac_ext=c
30099ac_cpp='$CPP $CPPFLAGS'
30100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30102ac_compiler_gnu=$ac_cv_c_compiler_gnu
30103
30104fi
30105echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30106echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
30107
30108if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
30109
30110cat >>confdefs.h <<\_ACEOF
30111#define HAVE_FINITE_IN_IEEEFP_H 1
30112_ACEOF
30113
30114fi
30115
30116
30117
30118
30119
30120for ac_header in stdlib.h unistd.h
30121do
30122as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30123if eval "test \"\${$as_ac_Header+set}\" = set"; then
30124  echo "$as_me:$LINENO: checking for $ac_header" >&5
30125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30126if eval "test \"\${$as_ac_Header+set}\" = set"; then
30127  echo $ECHO_N "(cached) $ECHO_C" >&6
30128fi
30129echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30130echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30131else
30132  # Is the header compilable?
30133echo "$as_me:$LINENO: checking $ac_header usability" >&5
30134echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30135cat >conftest.$ac_ext <<_ACEOF
30136/* confdefs.h.  */
30137_ACEOF
30138cat confdefs.h >>conftest.$ac_ext
30139cat >>conftest.$ac_ext <<_ACEOF
30140/* end confdefs.h.  */
30141$ac_includes_default
30142#include <$ac_header>
30143_ACEOF
30144rm -f conftest.$ac_objext
30145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30146  (eval $ac_compile) 2>conftest.er1
30147  ac_status=$?
30148  grep -v '^ *+' conftest.er1 >conftest.err
30149  rm -f conftest.er1
30150  cat conftest.err >&5
30151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30152  (exit $ac_status); } &&
30153	 { ac_try='test -z "$ac_c_werror_flag"
30154			 || test ! -s conftest.err'
30155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30156  (eval $ac_try) 2>&5
30157  ac_status=$?
30158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30159  (exit $ac_status); }; } &&
30160	 { ac_try='test -s conftest.$ac_objext'
30161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30162  (eval $ac_try) 2>&5
30163  ac_status=$?
30164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30165  (exit $ac_status); }; }; then
30166  ac_header_compiler=yes
30167else
30168  echo "$as_me: failed program was:" >&5
30169sed 's/^/| /' conftest.$ac_ext >&5
30170
30171ac_header_compiler=no
30172fi
30173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30174echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30175echo "${ECHO_T}$ac_header_compiler" >&6
30176
30177# Is the header present?
30178echo "$as_me:$LINENO: checking $ac_header presence" >&5
30179echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30180cat >conftest.$ac_ext <<_ACEOF
30181/* confdefs.h.  */
30182_ACEOF
30183cat confdefs.h >>conftest.$ac_ext
30184cat >>conftest.$ac_ext <<_ACEOF
30185/* end confdefs.h.  */
30186#include <$ac_header>
30187_ACEOF
30188if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30189  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30190  ac_status=$?
30191  grep -v '^ *+' conftest.er1 >conftest.err
30192  rm -f conftest.er1
30193  cat conftest.err >&5
30194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30195  (exit $ac_status); } >/dev/null; then
30196  if test -s conftest.err; then
30197    ac_cpp_err=$ac_c_preproc_warn_flag
30198    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30199  else
30200    ac_cpp_err=
30201  fi
30202else
30203  ac_cpp_err=yes
30204fi
30205if test -z "$ac_cpp_err"; then
30206  ac_header_preproc=yes
30207else
30208  echo "$as_me: failed program was:" >&5
30209sed 's/^/| /' conftest.$ac_ext >&5
30210
30211  ac_header_preproc=no
30212fi
30213rm -f conftest.err conftest.$ac_ext
30214echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30215echo "${ECHO_T}$ac_header_preproc" >&6
30216
30217# So?  What about this header?
30218case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30219  yes:no: )
30220    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30221echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30222    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30223echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30224    ac_header_preproc=yes
30225    ;;
30226  no:yes:* )
30227    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30228echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30229    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30230echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30231    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30232echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30233    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30234echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30235    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30236echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30237    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30238echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30239    (
30240      cat <<\_ASBOX
30241## ----------------------------------- ##
30242## Report this to llvmbugs@cs.uiuc.edu ##
30243## ----------------------------------- ##
30244_ASBOX
30245    ) |
30246      sed "s/^/$as_me: WARNING:     /" >&2
30247    ;;
30248esac
30249echo "$as_me:$LINENO: checking for $ac_header" >&5
30250echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30251if eval "test \"\${$as_ac_Header+set}\" = set"; then
30252  echo $ECHO_N "(cached) $ECHO_C" >&6
30253else
30254  eval "$as_ac_Header=\$ac_header_preproc"
30255fi
30256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30257echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30258
30259fi
30260if test `eval echo '${'$as_ac_Header'}'` = yes; then
30261  cat >>confdefs.h <<_ACEOF
30262#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30263_ACEOF
30264
30265fi
30266
30267done
30268
30269
30270for ac_func in getpagesize
30271do
30272as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30273echo "$as_me:$LINENO: checking for $ac_func" >&5
30274echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30275if eval "test \"\${$as_ac_var+set}\" = set"; then
30276  echo $ECHO_N "(cached) $ECHO_C" >&6
30277else
30278  cat >conftest.$ac_ext <<_ACEOF
30279/* confdefs.h.  */
30280_ACEOF
30281cat confdefs.h >>conftest.$ac_ext
30282cat >>conftest.$ac_ext <<_ACEOF
30283/* end confdefs.h.  */
30284/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30285   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30286#define $ac_func innocuous_$ac_func
30287
30288/* System header to define __stub macros and hopefully few prototypes,
30289    which can conflict with char $ac_func (); below.
30290    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30291    <limits.h> exists even on freestanding compilers.  */
30292
30293#ifdef __STDC__
30294# include <limits.h>
30295#else
30296# include <assert.h>
30297#endif
30298
30299#undef $ac_func
30300
30301/* Override any gcc2 internal prototype to avoid an error.  */
30302#ifdef __cplusplus
30303extern "C"
30304{
30305#endif
30306/* We use char because int might match the return type of a gcc2
30307   builtin and then its argument prototype would still apply.  */
30308char $ac_func ();
30309/* The GNU C library defines this for functions which it implements
30310    to always fail with ENOSYS.  Some functions are actually named
30311    something starting with __ and the normal name is an alias.  */
30312#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30313choke me
30314#else
30315char (*f) () = $ac_func;
30316#endif
30317#ifdef __cplusplus
30318}
30319#endif
30320
30321int
30322main ()
30323{
30324return f != $ac_func;
30325  ;
30326  return 0;
30327}
30328_ACEOF
30329rm -f conftest.$ac_objext conftest$ac_exeext
30330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30331  (eval $ac_link) 2>conftest.er1
30332  ac_status=$?
30333  grep -v '^ *+' conftest.er1 >conftest.err
30334  rm -f conftest.er1
30335  cat conftest.err >&5
30336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30337  (exit $ac_status); } &&
30338	 { ac_try='test -z "$ac_c_werror_flag"
30339			 || test ! -s conftest.err'
30340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30341  (eval $ac_try) 2>&5
30342  ac_status=$?
30343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30344  (exit $ac_status); }; } &&
30345	 { ac_try='test -s conftest$ac_exeext'
30346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30347  (eval $ac_try) 2>&5
30348  ac_status=$?
30349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30350  (exit $ac_status); }; }; then
30351  eval "$as_ac_var=yes"
30352else
30353  echo "$as_me: failed program was:" >&5
30354sed 's/^/| /' conftest.$ac_ext >&5
30355
30356eval "$as_ac_var=no"
30357fi
30358rm -f conftest.err conftest.$ac_objext \
30359      conftest$ac_exeext conftest.$ac_ext
30360fi
30361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30362echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30363if test `eval echo '${'$as_ac_var'}'` = yes; then
30364  cat >>confdefs.h <<_ACEOF
30365#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30366_ACEOF
30367
30368fi
30369done
30370
30371echo "$as_me:$LINENO: checking for working mmap" >&5
30372echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30373if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30374  echo $ECHO_N "(cached) $ECHO_C" >&6
30375else
30376  if test "$cross_compiling" = yes; then
30377  ac_cv_func_mmap_fixed_mapped=no
30378else
30379  cat >conftest.$ac_ext <<_ACEOF
30380/* confdefs.h.  */
30381_ACEOF
30382cat confdefs.h >>conftest.$ac_ext
30383cat >>conftest.$ac_ext <<_ACEOF
30384/* end confdefs.h.  */
30385$ac_includes_default
30386/* malloc might have been renamed as rpl_malloc. */
30387#undef malloc
30388
30389/* Thanks to Mike Haertel and Jim Avera for this test.
30390   Here is a matrix of mmap possibilities:
30391	mmap private not fixed
30392	mmap private fixed at somewhere currently unmapped
30393	mmap private fixed at somewhere already mapped
30394	mmap shared not fixed
30395	mmap shared fixed at somewhere currently unmapped
30396	mmap shared fixed at somewhere already mapped
30397   For private mappings, we should verify that changes cannot be read()
30398   back from the file, nor mmap's back from the file at a different
30399   address.  (There have been systems where private was not correctly
30400   implemented like the infamous i386 svr4.0, and systems where the
30401   VM page cache was not coherent with the file system buffer cache
30402   like early versions of FreeBSD and possibly contemporary NetBSD.)
30403   For shared mappings, we should conversely verify that changes get
30404   propagated back to all the places they're supposed to be.
30405
30406   Grep wants private fixed already mapped.
30407   The main things grep needs to know about mmap are:
30408   * does it exist and is it safe to write into the mmap'd area
30409   * how to use it (BSD variants)  */
30410
30411#include <fcntl.h>
30412#include <sys/mman.h>
30413
30414#if !STDC_HEADERS && !HAVE_STDLIB_H
30415char *malloc ();
30416#endif
30417
30418/* This mess was copied from the GNU getpagesize.h.  */
30419#if !HAVE_GETPAGESIZE
30420/* Assume that all systems that can run configure have sys/param.h.  */
30421# if !HAVE_SYS_PARAM_H
30422#  define HAVE_SYS_PARAM_H 1
30423# endif
30424
30425# ifdef _SC_PAGESIZE
30426#  define getpagesize() sysconf(_SC_PAGESIZE)
30427# else /* no _SC_PAGESIZE */
30428#  if HAVE_SYS_PARAM_H
30429#   include <sys/param.h>
30430#   ifdef EXEC_PAGESIZE
30431#    define getpagesize() EXEC_PAGESIZE
30432#   else /* no EXEC_PAGESIZE */
30433#    ifdef NBPG
30434#     define getpagesize() NBPG * CLSIZE
30435#     ifndef CLSIZE
30436#      define CLSIZE 1
30437#     endif /* no CLSIZE */
30438#    else /* no NBPG */
30439#     ifdef NBPC
30440#      define getpagesize() NBPC
30441#     else /* no NBPC */
30442#      ifdef PAGESIZE
30443#       define getpagesize() PAGESIZE
30444#      endif /* PAGESIZE */
30445#     endif /* no NBPC */
30446#    endif /* no NBPG */
30447#   endif /* no EXEC_PAGESIZE */
30448#  else /* no HAVE_SYS_PARAM_H */
30449#   define getpagesize() 8192	/* punt totally */
30450#  endif /* no HAVE_SYS_PARAM_H */
30451# endif /* no _SC_PAGESIZE */
30452
30453#endif /* no HAVE_GETPAGESIZE */
30454
30455int
30456main ()
30457{
30458  char *data, *data2, *data3;
30459  int i, pagesize;
30460  int fd;
30461
30462  pagesize = getpagesize ();
30463
30464  /* First, make a file with some known garbage in it. */
30465  data = (char *) malloc (pagesize);
30466  if (!data)
30467    exit (1);
30468  for (i = 0; i < pagesize; ++i)
30469    *(data + i) = rand ();
30470  umask (0);
30471  fd = creat ("conftest.mmap", 0600);
30472  if (fd < 0)
30473    exit (1);
30474  if (write (fd, data, pagesize) != pagesize)
30475    exit (1);
30476  close (fd);
30477
30478  /* Next, try to mmap the file at a fixed address which already has
30479     something else allocated at it.  If we can, also make sure that
30480     we see the same garbage.  */
30481  fd = open ("conftest.mmap", O_RDWR);
30482  if (fd < 0)
30483    exit (1);
30484  data2 = (char *) malloc (2 * pagesize);
30485  if (!data2)
30486    exit (1);
30487  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30488  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30489		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
30490    exit (1);
30491  for (i = 0; i < pagesize; ++i)
30492    if (*(data + i) != *(data2 + i))
30493      exit (1);
30494
30495  /* Finally, make sure that changes to the mapped area do not
30496     percolate back to the file as seen by read().  (This is a bug on
30497     some variants of i386 svr4.0.)  */
30498  for (i = 0; i < pagesize; ++i)
30499    *(data2 + i) = *(data2 + i) + 1;
30500  data3 = (char *) malloc (pagesize);
30501  if (!data3)
30502    exit (1);
30503  if (read (fd, data3, pagesize) != pagesize)
30504    exit (1);
30505  for (i = 0; i < pagesize; ++i)
30506    if (*(data + i) != *(data3 + i))
30507      exit (1);
30508  close (fd);
30509  exit (0);
30510}
30511_ACEOF
30512rm -f conftest$ac_exeext
30513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30514  (eval $ac_link) 2>&5
30515  ac_status=$?
30516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30517  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30519  (eval $ac_try) 2>&5
30520  ac_status=$?
30521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30522  (exit $ac_status); }; }; then
30523  ac_cv_func_mmap_fixed_mapped=yes
30524else
30525  echo "$as_me: program exited with status $ac_status" >&5
30526echo "$as_me: failed program was:" >&5
30527sed 's/^/| /' conftest.$ac_ext >&5
30528
30529( exit $ac_status )
30530ac_cv_func_mmap_fixed_mapped=no
30531fi
30532rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30533fi
30534fi
30535echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30536echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30537if test $ac_cv_func_mmap_fixed_mapped = yes; then
30538
30539cat >>confdefs.h <<\_ACEOF
30540#define HAVE_MMAP 1
30541_ACEOF
30542
30543fi
30544rm -f conftest.mmap
30545
30546echo "$as_me:$LINENO: checking for mmap of files" >&5
30547echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30548if test "${ac_cv_func_mmap_file+set}" = set; then
30549  echo $ECHO_N "(cached) $ECHO_C" >&6
30550else
30551   ac_ext=c
30552ac_cpp='$CPP $CPPFLAGS'
30553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30555ac_compiler_gnu=$ac_cv_c_compiler_gnu
30556
30557  if test "$cross_compiling" = yes; then
30558  ac_cv_func_mmap_file=no
30559else
30560  cat >conftest.$ac_ext <<_ACEOF
30561
30562    /* confdefs.h.  */
30563_ACEOF
30564cat confdefs.h >>conftest.$ac_ext
30565cat >>conftest.$ac_ext <<_ACEOF
30566/* end confdefs.h.  */
30567
30568#include <sys/types.h>
30569#include <sys/mman.h>
30570#include <fcntl.h>
30571
30572int
30573main ()
30574{
30575
30576  int fd;
30577  fd = creat ("foo",0777);
30578  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30579  unlink ("foo");
30580  return (fd != (int) MAP_FAILED);
30581  ;
30582  return 0;
30583}
30584_ACEOF
30585rm -f conftest$ac_exeext
30586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30587  (eval $ac_link) 2>&5
30588  ac_status=$?
30589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30590  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30592  (eval $ac_try) 2>&5
30593  ac_status=$?
30594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30595  (exit $ac_status); }; }; then
30596  ac_cv_func_mmap_file=yes
30597else
30598  echo "$as_me: program exited with status $ac_status" >&5
30599echo "$as_me: failed program was:" >&5
30600sed 's/^/| /' conftest.$ac_ext >&5
30601
30602( exit $ac_status )
30603ac_cv_func_mmap_file=no
30604fi
30605rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30606fi
30607  ac_ext=c
30608ac_cpp='$CPP $CPPFLAGS'
30609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30611ac_compiler_gnu=$ac_cv_c_compiler_gnu
30612
30613
30614fi
30615echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30616echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30617if test "$ac_cv_func_mmap_file" = yes; then
30618
30619cat >>confdefs.h <<\_ACEOF
30620#define HAVE_MMAP_FILE
30621_ACEOF
30622
30623   MMAP_FILE=yes
30624
30625fi
30626
30627echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30628echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30629if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30630  echo $ECHO_N "(cached) $ECHO_C" >&6
30631else
30632  if test "$llvm_cv_os_type" = "Interix" ; then
30633   ac_cv_need_dev_zero_for_mmap=yes
30634 else
30635   ac_cv_need_dev_zero_for_mmap=no
30636 fi
30637
30638fi
30639echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30640echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30641if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30642
30643cat >>confdefs.h <<\_ACEOF
30644#define NEED_DEV_ZERO_FOR_MMAP 1
30645_ACEOF
30646
30647fi
30648echo "$as_me:$LINENO: checking for mprotect" >&5
30649echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30650if test "${ac_cv_func_mprotect+set}" = set; then
30651  echo $ECHO_N "(cached) $ECHO_C" >&6
30652else
30653  cat >conftest.$ac_ext <<_ACEOF
30654/* confdefs.h.  */
30655_ACEOF
30656cat confdefs.h >>conftest.$ac_ext
30657cat >>conftest.$ac_ext <<_ACEOF
30658/* end confdefs.h.  */
30659/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30660   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30661#define mprotect innocuous_mprotect
30662
30663/* System header to define __stub macros and hopefully few prototypes,
30664    which can conflict with char mprotect (); below.
30665    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30666    <limits.h> exists even on freestanding compilers.  */
30667
30668#ifdef __STDC__
30669# include <limits.h>
30670#else
30671# include <assert.h>
30672#endif
30673
30674#undef mprotect
30675
30676/* Override any gcc2 internal prototype to avoid an error.  */
30677#ifdef __cplusplus
30678extern "C"
30679{
30680#endif
30681/* We use char because int might match the return type of a gcc2
30682   builtin and then its argument prototype would still apply.  */
30683char mprotect ();
30684/* The GNU C library defines this for functions which it implements
30685    to always fail with ENOSYS.  Some functions are actually named
30686    something starting with __ and the normal name is an alias.  */
30687#if defined (__stub_mprotect) || defined (__stub___mprotect)
30688choke me
30689#else
30690char (*f) () = mprotect;
30691#endif
30692#ifdef __cplusplus
30693}
30694#endif
30695
30696int
30697main ()
30698{
30699return f != mprotect;
30700  ;
30701  return 0;
30702}
30703_ACEOF
30704rm -f conftest.$ac_objext conftest$ac_exeext
30705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30706  (eval $ac_link) 2>conftest.er1
30707  ac_status=$?
30708  grep -v '^ *+' conftest.er1 >conftest.err
30709  rm -f conftest.er1
30710  cat conftest.err >&5
30711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30712  (exit $ac_status); } &&
30713	 { ac_try='test -z "$ac_c_werror_flag"
30714			 || test ! -s conftest.err'
30715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30716  (eval $ac_try) 2>&5
30717  ac_status=$?
30718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30719  (exit $ac_status); }; } &&
30720	 { ac_try='test -s conftest$ac_exeext'
30721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30722  (eval $ac_try) 2>&5
30723  ac_status=$?
30724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30725  (exit $ac_status); }; }; then
30726  ac_cv_func_mprotect=yes
30727else
30728  echo "$as_me: failed program was:" >&5
30729sed 's/^/| /' conftest.$ac_ext >&5
30730
30731ac_cv_func_mprotect=no
30732fi
30733rm -f conftest.err conftest.$ac_objext \
30734      conftest$ac_exeext conftest.$ac_ext
30735fi
30736echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30737echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30738if test $ac_cv_func_mprotect = yes; then
30739  :
30740else
30741  { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30742echo "$as_me: error: Function mprotect() required but not found" >&2;}
30743   { (exit 1); exit 1; }; }
30744fi
30745
30746
30747if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30748then
30749  { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30750echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30751fi
30752if test "$ac_cv_func_mmap_file" = "no"
30753then
30754  { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30755echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30756fi
30757
30758
30759echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30760echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30761if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30762  echo $ECHO_N "(cached) $ECHO_C" >&6
30763else
30764  llvm_cv_llvmgcc_sanity="no"
30765if test -x "$LLVMGCC" ; then
30766  cp /dev/null conftest.c
30767  "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30768  if test $? -eq 0 ; then
30769    llvm_cv_llvmgcc_sanity="yes"
30770  fi
30771  rm conftest.c
30772fi
30773fi
30774echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30775echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30776
30777if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30778  llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30779  LLVMCC1=$llvmcc1path
30780
30781  llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30782  LLVMCC1PLUS=$llvmcc1pluspath
30783
30784  llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30785  LLVMGCCDIR=$llvmgccdir
30786
30787fi
30788
30789SHLIBEXT=$libltdl_cv_shlibext
30790
30791
30792# Translate the various configuration directories and other basic
30793# information into substitutions that will end up in Makefile.config.in
30794# that these configured values can be used by the makefiles
30795eval LLVM_PREFIX="${prefix}";
30796eval LLVM_BINDIR="${prefix}/bin";
30797eval LLVM_LIBDIR="${prefix}/lib";
30798eval LLVM_DATADIR="${prefix}/share/llvm";
30799eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30800eval LLVM_ETCDIR="${prefix}/etc/llvm";
30801eval LLVM_INCLUDEDIR="${prefix}/include";
30802eval LLVM_INFODIR="${prefix}/info";
30803eval LLVM_MANDIR="${prefix}/man";
30804LLVM_CONFIGTIME=`date`
30805
30806
30807
30808
30809
30810
30811
30812
30813
30814
30815
30816# Place the various directores into the config.h file as #defines so that we
30817# can know about the installation paths within LLVM.
30818
30819cat >>confdefs.h <<_ACEOF
30820#define LLVM_PREFIX "$LLVM_PREFIX"
30821_ACEOF
30822
30823
30824cat >>confdefs.h <<_ACEOF
30825#define LLVM_BINDIR "$LLVM_BINDIR"
30826_ACEOF
30827
30828
30829cat >>confdefs.h <<_ACEOF
30830#define LLVM_LIBDIR "$LLVM_LIBDIR"
30831_ACEOF
30832
30833
30834cat >>confdefs.h <<_ACEOF
30835#define LLVM_DATADIR "$LLVM_DATADIR"
30836_ACEOF
30837
30838
30839cat >>confdefs.h <<_ACEOF
30840#define LLVM_DATADIR "$LLVM_DOCSDIR"
30841_ACEOF
30842
30843
30844cat >>confdefs.h <<_ACEOF
30845#define LLVM_ETCDIR "$LLVM_ETCDIR"
30846_ACEOF
30847
30848
30849cat >>confdefs.h <<_ACEOF
30850#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30851_ACEOF
30852
30853
30854cat >>confdefs.h <<_ACEOF
30855#define LLVM_INFODIR "$LLVM_INFODIR"
30856_ACEOF
30857
30858
30859cat >>confdefs.h <<_ACEOF
30860#define LLVM_MANDIR "$LLVM_MANDIR"
30861_ACEOF
30862
30863
30864cat >>confdefs.h <<_ACEOF
30865#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30866_ACEOF
30867
30868
30869
30870          ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30871
30872          ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30873
30874          ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30875
30876          ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30877
30878          ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30879
30880
30881          ac_config_files="$ac_config_files Makefile.config"
30882
30883
30884          ac_config_files="$ac_config_files docs/doxygen.cfg"
30885
30886
30887          ac_config_commands="$ac_config_commands setup"
30888
30889          ac_config_commands="$ac_config_commands Makefile"
30890
30891
30892          ac_config_commands="$ac_config_commands Makefile.common"
30893
30894
30895          ac_config_commands="$ac_config_commands examples/Makefile"
30896
30897
30898          ac_config_commands="$ac_config_commands lib/Makefile"
30899
30900
30901          ac_config_commands="$ac_config_commands runtime/Makefile"
30902
30903
30904          ac_config_commands="$ac_config_commands test/Makefile"
30905
30906
30907          ac_config_commands="$ac_config_commands test/Makefile.tests"
30908
30909
30910          ac_config_commands="$ac_config_commands tools/Makefile"
30911
30912
30913          ac_config_commands="$ac_config_commands utils/Makefile"
30914
30915
30916          ac_config_commands="$ac_config_commands projects/Makefile"
30917
30918
30919
30920cat >confcache <<\_ACEOF
30921# This file is a shell script that caches the results of configure
30922# tests run on this system so they can be shared between configure
30923# scripts and configure runs, see configure's option --config-cache.
30924# It is not useful on other systems.  If it contains results you don't
30925# want to keep, you may remove or edit it.
30926#
30927# config.status only pays attention to the cache file if you give it
30928# the --recheck option to rerun configure.
30929#
30930# `ac_cv_env_foo' variables (set or unset) will be overridden when
30931# loading this file, other *unset* `ac_cv_foo' will be assigned the
30932# following values.
30933
30934_ACEOF
30935
30936# The following way of writing the cache mishandles newlines in values,
30937# but we know of no workaround that is simple, portable, and efficient.
30938# So, don't put newlines in cache variables' values.
30939# Ultrix sh set writes to stderr and can't be redirected directly,
30940# and sets the high bit in the cache file unless we assign to the vars.
30941{
30942  (set) 2>&1 |
30943    case `(ac_space=' '; set | grep ac_space) 2>&1` in
30944    *ac_space=\ *)
30945      # `set' does not quote correctly, so add quotes (double-quote
30946      # substitution turns \\\\ into \\, and sed turns \\ into \).
30947      sed -n \
30948	"s/'/'\\\\''/g;
30949	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30950      ;;
30951    *)
30952      # `set' quotes correctly as required by POSIX, so do not add quotes.
30953      sed -n \
30954	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30955      ;;
30956    esac;
30957} |
30958  sed '
30959     t clear
30960     : clear
30961     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30962     t end
30963     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30964     : end' >>confcache
30965if diff $cache_file confcache >/dev/null 2>&1; then :; else
30966  if test -w $cache_file; then
30967    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30968    cat confcache >$cache_file
30969  else
30970    echo "not updating unwritable cache $cache_file"
30971  fi
30972fi
30973rm -f confcache
30974
30975test "x$prefix" = xNONE && prefix=$ac_default_prefix
30976# Let make expand exec_prefix.
30977test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30978
30979# VPATH may cause trouble with some makes, so we remove $(srcdir),
30980# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30981# trailing colons and then remove the whole line if VPATH becomes empty
30982# (actually we leave an empty line to preserve line numbers).
30983if test "x$srcdir" = x.; then
30984  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
30985s/:*\$(srcdir):*/:/;
30986s/:*\${srcdir}:*/:/;
30987s/:*@srcdir@:*/:/;
30988s/^\([^=]*=[	 ]*\):*/\1/;
30989s/:*$//;
30990s/^[^=]*=[	 ]*$//;
30991}'
30992fi
30993
30994DEFS=-DHAVE_CONFIG_H
30995
30996ac_libobjs=
30997ac_ltlibobjs=
30998for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30999  # 1. Remove the extension, and $U if already installed.
31000  ac_i=`echo "$ac_i" |
31001	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
31002  # 2. Add them.
31003  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31004  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31005done
31006LIBOBJS=$ac_libobjs
31007
31008LTLIBOBJS=$ac_ltlibobjs
31009
31010
31011if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31012  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
31013Usually this means the macro was only invoked conditionally." >&5
31014echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
31015Usually this means the macro was only invoked conditionally." >&2;}
31016   { (exit 1); exit 1; }; }
31017fi
31018if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31019  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31020Usually this means the macro was only invoked conditionally." >&5
31021echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31022Usually this means the macro was only invoked conditionally." >&2;}
31023   { (exit 1); exit 1; }; }
31024fi
31025
31026: ${CONFIG_STATUS=./config.status}
31027ac_clean_files_save=$ac_clean_files
31028ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31029{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31030echo "$as_me: creating $CONFIG_STATUS" >&6;}
31031cat >$CONFIG_STATUS <<_ACEOF
31032#! $SHELL
31033# Generated by $as_me.
31034# Run this file to recreate the current configuration.
31035# Compiler output produced by configure, useful for debugging
31036# configure, is in config.log if it exists.
31037
31038debug=false
31039ac_cs_recheck=false
31040ac_cs_silent=false
31041SHELL=\${CONFIG_SHELL-$SHELL}
31042_ACEOF
31043
31044cat >>$CONFIG_STATUS <<\_ACEOF
31045## --------------------- ##
31046## M4sh Initialization.  ##
31047## --------------------- ##
31048
31049# Be Bourne compatible
31050if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31051  emulate sh
31052  NULLCMD=:
31053  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31054  # is contrary to our usage.  Disable this feature.
31055  alias -g '${1+"$@"}'='"$@"'
31056elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31057  set -o posix
31058fi
31059DUALCASE=1; export DUALCASE # for MKS sh
31060
31061# Support unset when possible.
31062if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31063  as_unset=unset
31064else
31065  as_unset=false
31066fi
31067
31068
31069# Work around bugs in pre-3.0 UWIN ksh.
31070$as_unset ENV MAIL MAILPATH
31071PS1='$ '
31072PS2='> '
31073PS4='+ '
31074
31075# NLS nuisances.
31076for as_var in \
31077  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31078  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31079  LC_TELEPHONE LC_TIME
31080do
31081  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31082    eval $as_var=C; export $as_var
31083  else
31084    $as_unset $as_var
31085  fi
31086done
31087
31088# Required to use basename.
31089if expr a : '\(a\)' >/dev/null 2>&1; then
31090  as_expr=expr
31091else
31092  as_expr=false
31093fi
31094
31095if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31096  as_basename=basename
31097else
31098  as_basename=false
31099fi
31100
31101
31102# Name of the executable.
31103as_me=`$as_basename "$0" ||
31104$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31105	 X"$0" : 'X\(//\)$' \| \
31106	 X"$0" : 'X\(/\)$' \| \
31107	 .     : '\(.\)' 2>/dev/null ||
31108echo X/"$0" |
31109    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31110  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
31111  	  /^X\/\(\/\).*/{ s//\1/; q; }
31112  	  s/.*/./; q'`
31113
31114
31115# PATH needs CR, and LINENO needs CR and PATH.
31116# Avoid depending upon Character Ranges.
31117as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31118as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31119as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31120as_cr_digits='0123456789'
31121as_cr_alnum=$as_cr_Letters$as_cr_digits
31122
31123# The user is always right.
31124if test "${PATH_SEPARATOR+set}" != set; then
31125  echo "#! /bin/sh" >conf$$.sh
31126  echo  "exit 0"   >>conf$$.sh
31127  chmod +x conf$$.sh
31128  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31129    PATH_SEPARATOR=';'
31130  else
31131    PATH_SEPARATOR=:
31132  fi
31133  rm -f conf$$.sh
31134fi
31135
31136
31137  as_lineno_1=$LINENO
31138  as_lineno_2=$LINENO
31139  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31140  test "x$as_lineno_1" != "x$as_lineno_2" &&
31141  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
31142  # Find who we are.  Look in the path if we contain no path at all
31143  # relative or not.
31144  case $0 in
31145    *[\\/]* ) as_myself=$0 ;;
31146    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31147for as_dir in $PATH
31148do
31149  IFS=$as_save_IFS
31150  test -z "$as_dir" && as_dir=.
31151  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31152done
31153
31154       ;;
31155  esac
31156  # We did not find ourselves, most probably we were run as `sh COMMAND'
31157  # in which case we are not to be found in the path.
31158  if test "x$as_myself" = x; then
31159    as_myself=$0
31160  fi
31161  if test ! -f "$as_myself"; then
31162    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31163echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31164   { (exit 1); exit 1; }; }
31165  fi
31166  case $CONFIG_SHELL in
31167  '')
31168    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31169for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31170do
31171  IFS=$as_save_IFS
31172  test -z "$as_dir" && as_dir=.
31173  for as_base in sh bash ksh sh5; do
31174	 case $as_dir in
31175	 /*)
31176	   if ("$as_dir/$as_base" -c '
31177  as_lineno_1=$LINENO
31178  as_lineno_2=$LINENO
31179  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31180  test "x$as_lineno_1" != "x$as_lineno_2" &&
31181  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
31182	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31183	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31184	     CONFIG_SHELL=$as_dir/$as_base
31185	     export CONFIG_SHELL
31186	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31187	   fi;;
31188	 esac
31189       done
31190done
31191;;
31192  esac
31193
31194  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31195  # uniformly replaced by the line number.  The first 'sed' inserts a
31196  # line-number line before each line; the second 'sed' does the real
31197  # work.  The second script uses 'N' to pair each line-number line
31198  # with the numbered line, and appends trailing '-' during
31199  # substitution so that $LINENO is not a special case at line end.
31200  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31201  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
31202  sed '=' <$as_myself |
31203    sed '
31204      N
31205      s,$,-,
31206      : loop
31207      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31208      t loop
31209      s,-$,,
31210      s,^['$as_cr_digits']*\n,,
31211    ' >$as_me.lineno &&
31212  chmod +x $as_me.lineno ||
31213    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31214echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31215   { (exit 1); exit 1; }; }
31216
31217  # Don't try to exec as it changes $[0], causing all sort of problems
31218  # (the dirname of $[0] is not the place where we might find the
31219  # original and so on.  Autoconf is especially sensible to this).
31220  . ./$as_me.lineno
31221  # Exit status is that of the last command.
31222  exit
31223}
31224
31225
31226case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31227  *c*,-n*) ECHO_N= ECHO_C='
31228' ECHO_T='	' ;;
31229  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31230  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
31231esac
31232
31233if expr a : '\(a\)' >/dev/null 2>&1; then
31234  as_expr=expr
31235else
31236  as_expr=false
31237fi
31238
31239rm -f conf$$ conf$$.exe conf$$.file
31240echo >conf$$.file
31241if ln -s conf$$.file conf$$ 2>/dev/null; then
31242  # We could just check for DJGPP; but this test a) works b) is more generic
31243  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31244  if test -f conf$$.exe; then
31245    # Don't use ln at all; we don't have any links
31246    as_ln_s='cp -p'
31247  else
31248    as_ln_s='ln -s'
31249  fi
31250elif ln conf$$.file conf$$ 2>/dev/null; then
31251  as_ln_s=ln
31252else
31253  as_ln_s='cp -p'
31254fi
31255rm -f conf$$ conf$$.exe conf$$.file
31256
31257if mkdir -p . 2>/dev/null; then
31258  as_mkdir_p=:
31259else
31260  test -d ./-p && rmdir ./-p
31261  as_mkdir_p=false
31262fi
31263
31264as_executable_p="test -f"
31265
31266# Sed expression to map a string onto a valid CPP name.
31267as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31268
31269# Sed expression to map a string onto a valid variable name.
31270as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31271
31272
31273# IFS
31274# We need space, tab and new line, in precisely that order.
31275as_nl='
31276'
31277IFS=" 	$as_nl"
31278
31279# CDPATH.
31280$as_unset CDPATH
31281
31282exec 6>&1
31283
31284# Open the log real soon, to keep \$[0] and so on meaningful, and to
31285# report actual input values of CONFIG_FILES etc. instead of their
31286# values after options handling.  Logging --version etc. is OK.
31287exec 5>>config.log
31288{
31289  echo
31290  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31291## Running $as_me. ##
31292_ASBOX
31293} >&5
31294cat >&5 <<_CSEOF
31295
31296This file was extended by llvm $as_me 1.7cvs, which was
31297generated by GNU Autoconf 2.59.  Invocation command line was
31298
31299  CONFIG_FILES    = $CONFIG_FILES
31300  CONFIG_HEADERS  = $CONFIG_HEADERS
31301  CONFIG_LINKS    = $CONFIG_LINKS
31302  CONFIG_COMMANDS = $CONFIG_COMMANDS
31303  $ $0 $@
31304
31305_CSEOF
31306echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31307echo >&5
31308_ACEOF
31309
31310# Files that config.status was made for.
31311if test -n "$ac_config_files"; then
31312  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31313fi
31314
31315if test -n "$ac_config_headers"; then
31316  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31317fi
31318
31319if test -n "$ac_config_links"; then
31320  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31321fi
31322
31323if test -n "$ac_config_commands"; then
31324  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31325fi
31326
31327cat >>$CONFIG_STATUS <<\_ACEOF
31328
31329ac_cs_usage="\
31330\`$as_me' instantiates files from templates according to the
31331current configuration.
31332
31333Usage: $0 [OPTIONS] [FILE]...
31334
31335  -h, --help       print this help, then exit
31336  -V, --version    print version number, then exit
31337  -q, --quiet      do not print progress messages
31338  -d, --debug      don't remove temporary files
31339      --recheck    update $as_me by reconfiguring in the same conditions
31340  --file=FILE[:TEMPLATE]
31341		   instantiate the configuration file FILE
31342  --header=FILE[:TEMPLATE]
31343		   instantiate the configuration header FILE
31344
31345Configuration files:
31346$config_files
31347
31348Configuration headers:
31349$config_headers
31350
31351Configuration commands:
31352$config_commands
31353
31354Report bugs to <bug-autoconf@gnu.org>."
31355_ACEOF
31356
31357cat >>$CONFIG_STATUS <<_ACEOF
31358ac_cs_version="\\
31359llvm config.status 1.7cvs
31360configured by $0, generated by GNU Autoconf 2.59,
31361  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31362
31363Copyright (C) 2003 Free Software Foundation, Inc.
31364This config.status script is free software; the Free Software Foundation
31365gives unlimited permission to copy, distribute and modify it."
31366srcdir=$srcdir
31367INSTALL="$INSTALL"
31368_ACEOF
31369
31370cat >>$CONFIG_STATUS <<\_ACEOF
31371# If no file are specified by the user, then we need to provide default
31372# value.  By we need to know if files were specified by the user.
31373ac_need_defaults=:
31374while test $# != 0
31375do
31376  case $1 in
31377  --*=*)
31378    ac_option=`expr "x$1" : 'x\([^=]*\)='`
31379    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31380    ac_shift=:
31381    ;;
31382  -*)
31383    ac_option=$1
31384    ac_optarg=$2
31385    ac_shift=shift
31386    ;;
31387  *) # This is not an option, so the user has probably given explicit
31388     # arguments.
31389     ac_option=$1
31390     ac_need_defaults=false;;
31391  esac
31392
31393  case $ac_option in
31394  # Handling of the options.
31395_ACEOF
31396cat >>$CONFIG_STATUS <<\_ACEOF
31397  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31398    ac_cs_recheck=: ;;
31399  --version | --vers* | -V )
31400    echo "$ac_cs_version"; exit 0 ;;
31401  --he | --h)
31402    # Conflict between --help and --header
31403    { { echo "$as_me:$LINENO: error: ambiguous option: $1
31404Try \`$0 --help' for more information." >&5
31405echo "$as_me: error: ambiguous option: $1
31406Try \`$0 --help' for more information." >&2;}
31407   { (exit 1); exit 1; }; };;
31408  --help | --hel | -h )
31409    echo "$ac_cs_usage"; exit 0 ;;
31410  --debug | --d* | -d )
31411    debug=: ;;
31412  --file | --fil | --fi | --f )
31413    $ac_shift
31414    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31415    ac_need_defaults=false;;
31416  --header | --heade | --head | --hea )
31417    $ac_shift
31418    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31419    ac_need_defaults=false;;
31420  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31421  | -silent | --silent | --silen | --sile | --sil | --si | --s)
31422    ac_cs_silent=: ;;
31423
31424  # This is an error.
31425  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31426Try \`$0 --help' for more information." >&5
31427echo "$as_me: error: unrecognized option: $1
31428Try \`$0 --help' for more information." >&2;}
31429   { (exit 1); exit 1; }; } ;;
31430
31431  *) ac_config_targets="$ac_config_targets $1" ;;
31432
31433  esac
31434  shift
31435done
31436
31437ac_configure_extra_args=
31438
31439if $ac_cs_silent; then
31440  exec 6>/dev/null
31441  ac_configure_extra_args="$ac_configure_extra_args --silent"
31442fi
31443
31444_ACEOF
31445cat >>$CONFIG_STATUS <<_ACEOF
31446if \$ac_cs_recheck; then
31447  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31448  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31449fi
31450
31451_ACEOF
31452
31453cat >>$CONFIG_STATUS <<_ACEOF
31454#
31455# INIT-COMMANDS section.
31456#
31457
31458llvm_src="${srcdir}"
31459
31460_ACEOF
31461
31462
31463
31464cat >>$CONFIG_STATUS <<\_ACEOF
31465for ac_config_target in $ac_config_targets
31466do
31467  case "$ac_config_target" in
31468  # Handling of arguments.
31469  "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31470  "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31471  "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31472  "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31473  "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31474  "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31475  "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31476  "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31477  "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31478  "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31479  "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31480  "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31481  "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31482  "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31483  "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31484  "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31485  "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31486  "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31487  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31488echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31489   { (exit 1); exit 1; }; };;
31490  esac
31491done
31492
31493# If the user did not use the arguments to specify the items to instantiate,
31494# then the envvar interface is used.  Set only those that are not.
31495# We use the long form for the default assignment because of an extremely
31496# bizarre bug on SunOS 4.1.3.
31497if $ac_need_defaults; then
31498  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31499  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31500  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31501fi
31502
31503# Have a temporary directory for convenience.  Make it in the build tree
31504# simply because there is no reason to put it here, and in addition,
31505# creating and moving files from /tmp can sometimes cause problems.
31506# Create a temporary directory, and hook for its removal unless debugging.
31507$debug ||
31508{
31509  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31510  trap '{ (exit 1); exit 1; }' 1 2 13 15
31511}
31512
31513# Create a (secure) tmp directory for tmp files.
31514
31515{
31516  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31517  test -n "$tmp" && test -d "$tmp"
31518}  ||
31519{
31520  tmp=./confstat$$-$RANDOM
31521  (umask 077 && mkdir $tmp)
31522} ||
31523{
31524   echo "$me: cannot create a temporary directory in ." >&2
31525   { (exit 1); exit 1; }
31526}
31527
31528_ACEOF
31529
31530cat >>$CONFIG_STATUS <<_ACEOF
31531
31532#
31533# CONFIG_FILES section.
31534#
31535
31536# No need to generate the scripts if there are no CONFIG_FILES.
31537# This happens for instance when ./config.status config.h
31538if test -n "\$CONFIG_FILES"; then
31539  # Protect against being on the right side of a sed subst in config.status.
31540  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31541   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31542s,@SHELL@,$SHELL,;t t
31543s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31544s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31545s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31546s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31547s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31548s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31549s,@exec_prefix@,$exec_prefix,;t t
31550s,@prefix@,$prefix,;t t
31551s,@program_transform_name@,$program_transform_name,;t t
31552s,@bindir@,$bindir,;t t
31553s,@sbindir@,$sbindir,;t t
31554s,@libexecdir@,$libexecdir,;t t
31555s,@datadir@,$datadir,;t t
31556s,@sysconfdir@,$sysconfdir,;t t
31557s,@sharedstatedir@,$sharedstatedir,;t t
31558s,@localstatedir@,$localstatedir,;t t
31559s,@libdir@,$libdir,;t t
31560s,@includedir@,$includedir,;t t
31561s,@oldincludedir@,$oldincludedir,;t t
31562s,@infodir@,$infodir,;t t
31563s,@mandir@,$mandir,;t t
31564s,@build_alias@,$build_alias,;t t
31565s,@host_alias@,$host_alias,;t t
31566s,@target_alias@,$target_alias,;t t
31567s,@DEFS@,$DEFS,;t t
31568s,@ECHO_C@,$ECHO_C,;t t
31569s,@ECHO_N@,$ECHO_N,;t t
31570s,@ECHO_T@,$ECHO_T,;t t
31571s,@LIBS@,$LIBS,;t t
31572s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31573s,@subdirs@,$subdirs,;t t
31574s,@build@,$build,;t t
31575s,@build_cpu@,$build_cpu,;t t
31576s,@build_vendor@,$build_vendor,;t t
31577s,@build_os@,$build_os,;t t
31578s,@host@,$host,;t t
31579s,@host_cpu@,$host_cpu,;t t
31580s,@host_vendor@,$host_vendor,;t t
31581s,@host_os@,$host_os,;t t
31582s,@target@,$target,;t t
31583s,@target_cpu@,$target_cpu,;t t
31584s,@target_vendor@,$target_vendor,;t t
31585s,@target_os@,$target_os,;t t
31586s,@OS@,$OS,;t t
31587s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31588s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31589s,@ARCH@,$ARCH,;t t
31590s,@ENDIAN@,$ENDIAN,;t t
31591s,@CC@,$CC,;t t
31592s,@CFLAGS@,$CFLAGS,;t t
31593s,@LDFLAGS@,$LDFLAGS,;t t
31594s,@CPPFLAGS@,$CPPFLAGS,;t t
31595s,@ac_ct_CC@,$ac_ct_CC,;t t
31596s,@EXEEXT@,$EXEEXT,;t t
31597s,@OBJEXT@,$OBJEXT,;t t
31598s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31599s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
31600s,@JIT@,$JIT,;t t
31601s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31602s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
31603s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31604s,@CPP@,$CPP,;t t
31605s,@CXX@,$CXX,;t t
31606s,@CXXFLAGS@,$CXXFLAGS,;t t
31607s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31608s,@LEX@,$LEX,;t t
31609s,@LEXLIB@,$LEXLIB,;t t
31610s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31611s,@FLEX@,$FLEX,;t t
31612s,@YACC@,$YACC,;t t
31613s,@BISON@,$BISON,;t t
31614s,@ifGNUmake@,$ifGNUmake,;t t
31615s,@LN_S@,$LN_S,;t t
31616s,@CMP@,$CMP,;t t
31617s,@CP@,$CP,;t t
31618s,@DATE@,$DATE,;t t
31619s,@FIND@,$FIND,;t t
31620s,@GREP@,$GREP,;t t
31621s,@MKDIR@,$MKDIR,;t t
31622s,@MV@,$MV,;t t
31623s,@RANLIB@,$RANLIB,;t t
31624s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31625s,@RM@,$RM,;t t
31626s,@SED@,$SED,;t t
31627s,@TAR@,$TAR,;t t
31628s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31629s,@GV@,$GV,;t t
31630s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31631s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31632s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31633s,@BZIP2@,$BZIP2,;t t
31634s,@DOT@,$DOT,;t t
31635s,@DOXYGEN@,$DOXYGEN,;t t
31636s,@ETAGS@,$ETAGS,;t t
31637s,@GROFF@,$GROFF,;t t
31638s,@GZIP@,$GZIP,;t t
31639s,@POD2HTML@,$POD2HTML,;t t
31640s,@POD2MAN@,$POD2MAN,;t t
31641s,@RUNTEST@,$RUNTEST,;t t
31642s,@TCLSH@,$TCLSH,;t t
31643s,@ZIP@,$ZIP,;t t
31644s,@EGREP@,$EGREP,;t t
31645s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31646s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31647s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31648s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31649s,@LIBADD_DL@,$LIBADD_DL,;t t
31650s,@ECHO@,$ECHO,;t t
31651s,@AR@,$AR,;t t
31652s,@ac_ct_AR@,$ac_ct_AR,;t t
31653s,@STRIP@,$STRIP,;t t
31654s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31655s,@CXXCPP@,$CXXCPP,;t t
31656s,@F77@,$F77,;t t
31657s,@FFLAGS@,$FFLAGS,;t t
31658s,@ac_ct_F77@,$ac_ct_F77,;t t
31659s,@LIBTOOL@,$LIBTOOL,;t t
31660s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31661s,@LLVMGCC@,$LLVMGCC,;t t
31662s,@LLVMGXX@,$LLVMGXX,;t t
31663s,@ALLOCA@,$ALLOCA,;t t
31664s,@MMAP_FILE@,$MMAP_FILE,;t t
31665s,@LLVMCC1@,$LLVMCC1,;t t
31666s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31667s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31668s,@SHLIBEXT@,$SHLIBEXT,;t t
31669s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31670s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31671s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31672s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31673s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31674s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31675s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31676s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31677s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31678s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31679s,@LIBOBJS@,$LIBOBJS,;t t
31680s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31681CEOF
31682
31683_ACEOF
31684
31685  cat >>$CONFIG_STATUS <<\_ACEOF
31686  # Split the substitutions into bite-sized pieces for seds with
31687  # small command number limits, like on Digital OSF/1 and HP-UX.
31688  ac_max_sed_lines=48
31689  ac_sed_frag=1 # Number of current file.
31690  ac_beg=1 # First line for current file.
31691  ac_end=$ac_max_sed_lines # Line after last line for current file.
31692  ac_more_lines=:
31693  ac_sed_cmds=
31694  while $ac_more_lines; do
31695    if test $ac_beg -gt 1; then
31696      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31697    else
31698      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31699    fi
31700    if test ! -s $tmp/subs.frag; then
31701      ac_more_lines=false
31702    else
31703      # The purpose of the label and of the branching condition is to
31704      # speed up the sed processing (if there are no `@' at all, there
31705      # is no need to browse any of the substitutions).
31706      # These are the two extra sed commands mentioned above.
31707      (echo ':t
31708  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31709      if test -z "$ac_sed_cmds"; then
31710	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31711      else
31712	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31713      fi
31714      ac_sed_frag=`expr $ac_sed_frag + 1`
31715      ac_beg=$ac_end
31716      ac_end=`expr $ac_end + $ac_max_sed_lines`
31717    fi
31718  done
31719  if test -z "$ac_sed_cmds"; then
31720    ac_sed_cmds=cat
31721  fi
31722fi # test -n "$CONFIG_FILES"
31723
31724_ACEOF
31725cat >>$CONFIG_STATUS <<\_ACEOF
31726for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31727  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31728  case $ac_file in
31729  - | *:- | *:-:* ) # input from stdin
31730	cat >$tmp/stdin
31731	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31732	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31733  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31734	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31735  * )   ac_file_in=$ac_file.in ;;
31736  esac
31737
31738  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31739  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31740$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31741	 X"$ac_file" : 'X\(//\)[^/]' \| \
31742	 X"$ac_file" : 'X\(//\)$' \| \
31743	 X"$ac_file" : 'X\(/\)' \| \
31744	 .     : '\(.\)' 2>/dev/null ||
31745echo X"$ac_file" |
31746    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31747  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31748  	  /^X\(\/\/\)$/{ s//\1/; q; }
31749  	  /^X\(\/\).*/{ s//\1/; q; }
31750  	  s/.*/./; q'`
31751  { if $as_mkdir_p; then
31752    mkdir -p "$ac_dir"
31753  else
31754    as_dir="$ac_dir"
31755    as_dirs=
31756    while test ! -d "$as_dir"; do
31757      as_dirs="$as_dir $as_dirs"
31758      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31759$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31760	 X"$as_dir" : 'X\(//\)[^/]' \| \
31761	 X"$as_dir" : 'X\(//\)$' \| \
31762	 X"$as_dir" : 'X\(/\)' \| \
31763	 .     : '\(.\)' 2>/dev/null ||
31764echo X"$as_dir" |
31765    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31766  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31767  	  /^X\(\/\/\)$/{ s//\1/; q; }
31768  	  /^X\(\/\).*/{ s//\1/; q; }
31769  	  s/.*/./; q'`
31770    done
31771    test ! -n "$as_dirs" || mkdir $as_dirs
31772  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31773echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31774   { (exit 1); exit 1; }; }; }
31775
31776  ac_builddir=.
31777
31778if test "$ac_dir" != .; then
31779  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31780  # A "../" for each directory in $ac_dir_suffix.
31781  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31782else
31783  ac_dir_suffix= ac_top_builddir=
31784fi
31785
31786case $srcdir in
31787  .)  # No --srcdir option.  We are building in place.
31788    ac_srcdir=.
31789    if test -z "$ac_top_builddir"; then
31790       ac_top_srcdir=.
31791    else
31792       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31793    fi ;;
31794  [\\/]* | ?:[\\/]* )  # Absolute path.
31795    ac_srcdir=$srcdir$ac_dir_suffix;
31796    ac_top_srcdir=$srcdir ;;
31797  *) # Relative path.
31798    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31799    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31800esac
31801
31802# Do not use `cd foo && pwd` to compute absolute paths, because
31803# the directories may not exist.
31804case `pwd` in
31805.) ac_abs_builddir="$ac_dir";;
31806*)
31807  case "$ac_dir" in
31808  .) ac_abs_builddir=`pwd`;;
31809  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31810  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31811  esac;;
31812esac
31813case $ac_abs_builddir in
31814.) ac_abs_top_builddir=${ac_top_builddir}.;;
31815*)
31816  case ${ac_top_builddir}. in
31817  .) ac_abs_top_builddir=$ac_abs_builddir;;
31818  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31819  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31820  esac;;
31821esac
31822case $ac_abs_builddir in
31823.) ac_abs_srcdir=$ac_srcdir;;
31824*)
31825  case $ac_srcdir in
31826  .) ac_abs_srcdir=$ac_abs_builddir;;
31827  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31828  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31829  esac;;
31830esac
31831case $ac_abs_builddir in
31832.) ac_abs_top_srcdir=$ac_top_srcdir;;
31833*)
31834  case $ac_top_srcdir in
31835  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31836  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31837  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31838  esac;;
31839esac
31840
31841
31842  case $INSTALL in
31843  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31844  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31845  esac
31846
31847  if test x"$ac_file" != x-; then
31848    { echo "$as_me:$LINENO: creating $ac_file" >&5
31849echo "$as_me: creating $ac_file" >&6;}
31850    rm -f "$ac_file"
31851  fi
31852  # Let's still pretend it is `configure' which instantiates (i.e., don't
31853  # use $as_me), people would be surprised to read:
31854  #    /* config.h.  Generated by config.status.  */
31855  if test x"$ac_file" = x-; then
31856    configure_input=
31857  else
31858    configure_input="$ac_file.  "
31859  fi
31860  configure_input=$configure_input"Generated from `echo $ac_file_in |
31861				     sed 's,.*/,,'` by configure."
31862
31863  # First look for the input files in the build tree, otherwise in the
31864  # src tree.
31865  ac_file_inputs=`IFS=:
31866    for f in $ac_file_in; do
31867      case $f in
31868      -) echo $tmp/stdin ;;
31869      [\\/$]*)
31870	 # Absolute (can't be DOS-style, as IFS=:)
31871	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31872echo "$as_me: error: cannot find input file: $f" >&2;}
31873   { (exit 1); exit 1; }; }
31874	 echo "$f";;
31875      *) # Relative
31876	 if test -f "$f"; then
31877	   # Build tree
31878	   echo "$f"
31879	 elif test -f "$srcdir/$f"; then
31880	   # Source tree
31881	   echo "$srcdir/$f"
31882	 else
31883	   # /dev/null tree
31884	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31885echo "$as_me: error: cannot find input file: $f" >&2;}
31886   { (exit 1); exit 1; }; }
31887	 fi;;
31888      esac
31889    done` || { (exit 1); exit 1; }
31890_ACEOF
31891cat >>$CONFIG_STATUS <<_ACEOF
31892  sed "$ac_vpsub
31893$extrasub
31894_ACEOF
31895cat >>$CONFIG_STATUS <<\_ACEOF
31896:t
31897/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31898s,@configure_input@,$configure_input,;t t
31899s,@srcdir@,$ac_srcdir,;t t
31900s,@abs_srcdir@,$ac_abs_srcdir,;t t
31901s,@top_srcdir@,$ac_top_srcdir,;t t
31902s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31903s,@builddir@,$ac_builddir,;t t
31904s,@abs_builddir@,$ac_abs_builddir,;t t
31905s,@top_builddir@,$ac_top_builddir,;t t
31906s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31907s,@INSTALL@,$ac_INSTALL,;t t
31908" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31909  rm -f $tmp/stdin
31910  if test x"$ac_file" != x-; then
31911    mv $tmp/out $ac_file
31912  else
31913    cat $tmp/out
31914    rm -f $tmp/out
31915  fi
31916
31917done
31918_ACEOF
31919cat >>$CONFIG_STATUS <<\_ACEOF
31920
31921#
31922# CONFIG_HEADER section.
31923#
31924
31925# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31926# NAME is the cpp macro being defined and VALUE is the value it is being given.
31927#
31928# ac_d sets the value in "#define NAME VALUE" lines.
31929ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
31930ac_dB='[	 ].*$,\1#\2'
31931ac_dC=' '
31932ac_dD=',;t'
31933# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31934ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
31935ac_uB='$,\1#\2define\3'
31936ac_uC=' '
31937ac_uD=',;t'
31938
31939for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31940  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31941  case $ac_file in
31942  - | *:- | *:-:* ) # input from stdin
31943	cat >$tmp/stdin
31944	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31945	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31946  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31947	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31948  * )   ac_file_in=$ac_file.in ;;
31949  esac
31950
31951  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31952echo "$as_me: creating $ac_file" >&6;}
31953
31954  # First look for the input files in the build tree, otherwise in the
31955  # src tree.
31956  ac_file_inputs=`IFS=:
31957    for f in $ac_file_in; do
31958      case $f in
31959      -) echo $tmp/stdin ;;
31960      [\\/$]*)
31961	 # Absolute (can't be DOS-style, as IFS=:)
31962	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31963echo "$as_me: error: cannot find input file: $f" >&2;}
31964   { (exit 1); exit 1; }; }
31965	 # Do quote $f, to prevent DOS paths from being IFS'd.
31966	 echo "$f";;
31967      *) # Relative
31968	 if test -f "$f"; then
31969	   # Build tree
31970	   echo "$f"
31971	 elif test -f "$srcdir/$f"; then
31972	   # Source tree
31973	   echo "$srcdir/$f"
31974	 else
31975	   # /dev/null tree
31976	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31977echo "$as_me: error: cannot find input file: $f" >&2;}
31978   { (exit 1); exit 1; }; }
31979	 fi;;
31980      esac
31981    done` || { (exit 1); exit 1; }
31982  # Remove the trailing spaces.
31983  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
31984
31985_ACEOF
31986
31987# Transform confdefs.h into two sed scripts, `conftest.defines' and
31988# `conftest.undefs', that substitutes the proper values into
31989# config.h.in to produce config.h.  The first handles `#define'
31990# templates, and the second `#undef' templates.
31991# And first: Protect against being on the right side of a sed subst in
31992# config.status.  Protect against being in an unquoted here document
31993# in config.status.
31994rm -f conftest.defines conftest.undefs
31995# Using a here document instead of a string reduces the quoting nightmare.
31996# Putting comments in sed scripts is not portable.
31997#
31998# `end' is used to avoid that the second main sed command (meant for
31999# 0-ary CPP macros) applies to n-ary macro definitions.
32000# See the Autoconf documentation for `clear'.
32001cat >confdef2sed.sed <<\_ACEOF
32002s/[\\&,]/\\&/g
32003s,[\\$`],\\&,g
32004t clear
32005: clear
32006s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
32007t end
32008s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
32009: end
32010_ACEOF
32011# If some macros were called several times there might be several times
32012# the same #defines, which is useless.  Nevertheless, we may not want to
32013# sort them, since we want the *last* AC-DEFINE to be honored.
32014uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32015sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32016rm -f confdef2sed.sed
32017
32018# This sed command replaces #undef with comments.  This is necessary, for
32019# example, in the case of _POSIX_SOURCE, which is predefined and required
32020# on some systems where configure will not decide to define it.
32021cat >>conftest.undefs <<\_ACEOF
32022s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
32023_ACEOF
32024
32025# Break up conftest.defines because some shells have a limit on the size
32026# of here documents, and old seds have small limits too (100 cmds).
32027echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32028echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32029echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32030echo '  :' >>$CONFIG_STATUS
32031rm -f conftest.tail
32032while grep . conftest.defines >/dev/null
32033do
32034  # Write a limited-size here document to $tmp/defines.sed.
32035  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32036  # Speed up: don't consider the non `#define' lines.
32037  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
32038  # Work around the forget-to-reset-the-flag bug.
32039  echo 't clr' >>$CONFIG_STATUS
32040  echo ': clr' >>$CONFIG_STATUS
32041  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32042  echo 'CEOF
32043  sed -f $tmp/defines.sed $tmp/in >$tmp/out
32044  rm -f $tmp/in
32045  mv $tmp/out $tmp/in
32046' >>$CONFIG_STATUS
32047  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32048  rm -f conftest.defines
32049  mv conftest.tail conftest.defines
32050done
32051rm -f conftest.defines
32052echo '  fi # grep' >>$CONFIG_STATUS
32053echo >>$CONFIG_STATUS
32054
32055# Break up conftest.undefs because some shells have a limit on the size
32056# of here documents, and old seds have small limits too (100 cmds).
32057echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
32058rm -f conftest.tail
32059while grep . conftest.undefs >/dev/null
32060do
32061  # Write a limited-size here document to $tmp/undefs.sed.
32062  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32063  # Speed up: don't consider the non `#undef'
32064  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
32065  # Work around the forget-to-reset-the-flag bug.
32066  echo 't clr' >>$CONFIG_STATUS
32067  echo ': clr' >>$CONFIG_STATUS
32068  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32069  echo 'CEOF
32070  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32071  rm -f $tmp/in
32072  mv $tmp/out $tmp/in
32073' >>$CONFIG_STATUS
32074  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32075  rm -f conftest.undefs
32076  mv conftest.tail conftest.undefs
32077done
32078rm -f conftest.undefs
32079
32080cat >>$CONFIG_STATUS <<\_ACEOF
32081  # Let's still pretend it is `configure' which instantiates (i.e., don't
32082  # use $as_me), people would be surprised to read:
32083  #    /* config.h.  Generated by config.status.  */
32084  if test x"$ac_file" = x-; then
32085    echo "/* Generated by configure.  */" >$tmp/config.h
32086  else
32087    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
32088  fi
32089  cat $tmp/in >>$tmp/config.h
32090  rm -f $tmp/in
32091  if test x"$ac_file" != x-; then
32092    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32093      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32094echo "$as_me: $ac_file is unchanged" >&6;}
32095    else
32096      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32097$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32098	 X"$ac_file" : 'X\(//\)[^/]' \| \
32099	 X"$ac_file" : 'X\(//\)$' \| \
32100	 X"$ac_file" : 'X\(/\)' \| \
32101	 .     : '\(.\)' 2>/dev/null ||
32102echo X"$ac_file" |
32103    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32104  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32105  	  /^X\(\/\/\)$/{ s//\1/; q; }
32106  	  /^X\(\/\).*/{ s//\1/; q; }
32107  	  s/.*/./; q'`
32108      { if $as_mkdir_p; then
32109    mkdir -p "$ac_dir"
32110  else
32111    as_dir="$ac_dir"
32112    as_dirs=
32113    while test ! -d "$as_dir"; do
32114      as_dirs="$as_dir $as_dirs"
32115      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32116$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32117	 X"$as_dir" : 'X\(//\)[^/]' \| \
32118	 X"$as_dir" : 'X\(//\)$' \| \
32119	 X"$as_dir" : 'X\(/\)' \| \
32120	 .     : '\(.\)' 2>/dev/null ||
32121echo X"$as_dir" |
32122    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32123  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32124  	  /^X\(\/\/\)$/{ s//\1/; q; }
32125  	  /^X\(\/\).*/{ s//\1/; q; }
32126  	  s/.*/./; q'`
32127    done
32128    test ! -n "$as_dirs" || mkdir $as_dirs
32129  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32130echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32131   { (exit 1); exit 1; }; }; }
32132
32133      rm -f $ac_file
32134      mv $tmp/config.h $ac_file
32135    fi
32136  else
32137    cat $tmp/config.h
32138    rm -f $tmp/config.h
32139  fi
32140done
32141_ACEOF
32142cat >>$CONFIG_STATUS <<\_ACEOF
32143
32144#
32145# CONFIG_COMMANDS section.
32146#
32147for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32148  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32149  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32150  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32151$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32152	 X"$ac_dest" : 'X\(//\)[^/]' \| \
32153	 X"$ac_dest" : 'X\(//\)$' \| \
32154	 X"$ac_dest" : 'X\(/\)' \| \
32155	 .     : '\(.\)' 2>/dev/null ||
32156echo X"$ac_dest" |
32157    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32158  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32159  	  /^X\(\/\/\)$/{ s//\1/; q; }
32160  	  /^X\(\/\).*/{ s//\1/; q; }
32161  	  s/.*/./; q'`
32162  { if $as_mkdir_p; then
32163    mkdir -p "$ac_dir"
32164  else
32165    as_dir="$ac_dir"
32166    as_dirs=
32167    while test ! -d "$as_dir"; do
32168      as_dirs="$as_dir $as_dirs"
32169      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32170$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32171	 X"$as_dir" : 'X\(//\)[^/]' \| \
32172	 X"$as_dir" : 'X\(//\)$' \| \
32173	 X"$as_dir" : 'X\(/\)' \| \
32174	 .     : '\(.\)' 2>/dev/null ||
32175echo X"$as_dir" |
32176    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32177  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32178  	  /^X\(\/\/\)$/{ s//\1/; q; }
32179  	  /^X\(\/\).*/{ s//\1/; q; }
32180  	  s/.*/./; q'`
32181    done
32182    test ! -n "$as_dirs" || mkdir $as_dirs
32183  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32184echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32185   { (exit 1); exit 1; }; }; }
32186
32187  ac_builddir=.
32188
32189if test "$ac_dir" != .; then
32190  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32191  # A "../" for each directory in $ac_dir_suffix.
32192  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32193else
32194  ac_dir_suffix= ac_top_builddir=
32195fi
32196
32197case $srcdir in
32198  .)  # No --srcdir option.  We are building in place.
32199    ac_srcdir=.
32200    if test -z "$ac_top_builddir"; then
32201       ac_top_srcdir=.
32202    else
32203       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32204    fi ;;
32205  [\\/]* | ?:[\\/]* )  # Absolute path.
32206    ac_srcdir=$srcdir$ac_dir_suffix;
32207    ac_top_srcdir=$srcdir ;;
32208  *) # Relative path.
32209    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32210    ac_top_srcdir=$ac_top_builddir$srcdir ;;
32211esac
32212
32213# Do not use `cd foo && pwd` to compute absolute paths, because
32214# the directories may not exist.
32215case `pwd` in
32216.) ac_abs_builddir="$ac_dir";;
32217*)
32218  case "$ac_dir" in
32219  .) ac_abs_builddir=`pwd`;;
32220  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32221  *) ac_abs_builddir=`pwd`/"$ac_dir";;
32222  esac;;
32223esac
32224case $ac_abs_builddir in
32225.) ac_abs_top_builddir=${ac_top_builddir}.;;
32226*)
32227  case ${ac_top_builddir}. in
32228  .) ac_abs_top_builddir=$ac_abs_builddir;;
32229  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32230  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32231  esac;;
32232esac
32233case $ac_abs_builddir in
32234.) ac_abs_srcdir=$ac_srcdir;;
32235*)
32236  case $ac_srcdir in
32237  .) ac_abs_srcdir=$ac_abs_builddir;;
32238  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32239  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32240  esac;;
32241esac
32242case $ac_abs_builddir in
32243.) ac_abs_top_srcdir=$ac_top_srcdir;;
32244*)
32245  case $ac_top_srcdir in
32246  .) ac_abs_top_srcdir=$ac_abs_builddir;;
32247  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32248  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32249  esac;;
32250esac
32251
32252
32253  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32254echo "$as_me: executing $ac_dest commands" >&6;}
32255  case $ac_dest in
32256    Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32257   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32258    Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32259   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32260    examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32261   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32262    lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32263   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32264    runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32265   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32266    test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32267   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32268    test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32269   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32270    tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32271   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32272    utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32273   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32274    projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32275   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32276  esac
32277done
32278_ACEOF
32279
32280cat >>$CONFIG_STATUS <<\_ACEOF
32281
32282{ (exit 0); exit 0; }
32283_ACEOF
32284chmod +x $CONFIG_STATUS
32285ac_clean_files=$ac_clean_files_save
32286
32287
32288# configure is writing to config.log, and then calls config.status.
32289# config.status does its own redirection, appending to config.log.
32290# Unfortunately, on DOS this fails, as config.log is still kept open
32291# by configure, so config.status won't be able to write to it; its
32292# output is simply discarded.  So we exec the FD to /dev/null,
32293# effectively closing config.log, so it can be properly (re)opened and
32294# appended to by config.status.  When coming back to configure, we
32295# need to make the FD available again.
32296if test "$no_create" != yes; then
32297  ac_cs_success=:
32298  ac_config_status_args=
32299  test "$silent" = yes &&
32300    ac_config_status_args="$ac_config_status_args --quiet"
32301  exec 5>/dev/null
32302  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32303  exec 5>>config.log
32304  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32305  # would make configure fail if this is the last instruction.
32306  $ac_cs_success || { (exit 1); exit 1; }
32307fi
32308
32309#
32310# CONFIG_SUBDIRS section.
32311#
32312if test "$no_recursion" != yes; then
32313
32314  # Remove --cache-file and --srcdir arguments so they do not pile up.
32315  ac_sub_configure_args=
32316  ac_prev=
32317  for ac_arg in $ac_configure_args; do
32318    if test -n "$ac_prev"; then
32319      ac_prev=
32320      continue
32321    fi
32322    case $ac_arg in
32323    -cache-file | --cache-file | --cache-fil | --cache-fi \
32324    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32325      ac_prev=cache_file ;;
32326    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32327    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32328    | --c=*)
32329      ;;
32330    --config-cache | -C)
32331      ;;
32332    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32333      ac_prev=srcdir ;;
32334    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32335      ;;
32336    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32337      ac_prev=prefix ;;
32338    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32339      ;;
32340    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32341    esac
32342  done
32343
32344  # Always prepend --prefix to ensure using the same prefix
32345  # in subdir configurations.
32346  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32347
32348  ac_popdir=`pwd`
32349  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32350
32351    # Do not complain, so a configure script can configure whichever
32352    # parts of a large source tree are present.
32353    test -d $srcdir/$ac_dir || continue
32354
32355    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32356echo "$as_me: configuring in $ac_dir" >&6;}
32357    { if $as_mkdir_p; then
32358    mkdir -p "$ac_dir"
32359  else
32360    as_dir="$ac_dir"
32361    as_dirs=
32362    while test ! -d "$as_dir"; do
32363      as_dirs="$as_dir $as_dirs"
32364      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32365$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32366	 X"$as_dir" : 'X\(//\)[^/]' \| \
32367	 X"$as_dir" : 'X\(//\)$' \| \
32368	 X"$as_dir" : 'X\(/\)' \| \
32369	 .     : '\(.\)' 2>/dev/null ||
32370echo X"$as_dir" |
32371    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32372  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32373  	  /^X\(\/\/\)$/{ s//\1/; q; }
32374  	  /^X\(\/\).*/{ s//\1/; q; }
32375  	  s/.*/./; q'`
32376    done
32377    test ! -n "$as_dirs" || mkdir $as_dirs
32378  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32379echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32380   { (exit 1); exit 1; }; }; }
32381
32382    ac_builddir=.
32383
32384if test "$ac_dir" != .; then
32385  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32386  # A "../" for each directory in $ac_dir_suffix.
32387  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32388else
32389  ac_dir_suffix= ac_top_builddir=
32390fi
32391
32392case $srcdir in
32393  .)  # No --srcdir option.  We are building in place.
32394    ac_srcdir=.
32395    if test -z "$ac_top_builddir"; then
32396       ac_top_srcdir=.
32397    else
32398       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32399    fi ;;
32400  [\\/]* | ?:[\\/]* )  # Absolute path.
32401    ac_srcdir=$srcdir$ac_dir_suffix;
32402    ac_top_srcdir=$srcdir ;;
32403  *) # Relative path.
32404    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32405    ac_top_srcdir=$ac_top_builddir$srcdir ;;
32406esac
32407
32408# Do not use `cd foo && pwd` to compute absolute paths, because
32409# the directories may not exist.
32410case `pwd` in
32411.) ac_abs_builddir="$ac_dir";;
32412*)
32413  case "$ac_dir" in
32414  .) ac_abs_builddir=`pwd`;;
32415  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32416  *) ac_abs_builddir=`pwd`/"$ac_dir";;
32417  esac;;
32418esac
32419case $ac_abs_builddir in
32420.) ac_abs_top_builddir=${ac_top_builddir}.;;
32421*)
32422  case ${ac_top_builddir}. in
32423  .) ac_abs_top_builddir=$ac_abs_builddir;;
32424  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32425  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32426  esac;;
32427esac
32428case $ac_abs_builddir in
32429.) ac_abs_srcdir=$ac_srcdir;;
32430*)
32431  case $ac_srcdir in
32432  .) ac_abs_srcdir=$ac_abs_builddir;;
32433  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32434  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32435  esac;;
32436esac
32437case $ac_abs_builddir in
32438.) ac_abs_top_srcdir=$ac_top_srcdir;;
32439*)
32440  case $ac_top_srcdir in
32441  .) ac_abs_top_srcdir=$ac_abs_builddir;;
32442  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32443  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32444  esac;;
32445esac
32446
32447
32448    cd $ac_dir
32449
32450    # Check for guested configure; otherwise get Cygnus style configure.
32451    if test -f $ac_srcdir/configure.gnu; then
32452      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32453    elif test -f $ac_srcdir/configure; then
32454      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32455    elif test -f $ac_srcdir/configure.in; then
32456      ac_sub_configure=$ac_configure
32457    else
32458      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32459echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32460      ac_sub_configure=
32461    fi
32462
32463    # The recursion is here.
32464    if test -n "$ac_sub_configure"; then
32465      # Make the cache file name correct relative to the subdirectory.
32466      case $cache_file in
32467      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32468      *) # Relative path.
32469	ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32470      esac
32471
32472      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32473echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32474      # The eval makes quoting arguments work.
32475      eval $ac_sub_configure $ac_sub_configure_args \
32476	   --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32477	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32478echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32479   { (exit 1); exit 1; }; }
32480    fi
32481
32482    cd $ac_popdir
32483  done
32484fi
32485
32486
32487if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32488 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32489echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32490 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32491echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32492 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32493echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32494 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32495echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32496 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32497echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
32498fi
32499