configure revision be41b250e05f78dbc2e8bf9aa37a8082ee658ac4
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for llvm 1.4.
4#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11# $LLVM_COPYRIGHT
12## --------------------- ##
13## M4sh Initialization.  ##
14## --------------------- ##
15
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24  set -o posix
25fi
26DUALCASE=1; export DUALCASE # for MKS sh
27
28# Support unset when possible.
29if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30  as_unset=unset
31else
32  as_unset=false
33fi
34
35
36# Work around bugs in pre-3.0 UWIN ksh.
37$as_unset ENV MAIL MAILPATH
38PS1='$ '
39PS2='> '
40PS4='+ '
41
42# NLS nuisances.
43for as_var in \
44  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46  LC_TELEPHONE LC_TIME
47do
48  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49    eval $as_var=C; export $as_var
50  else
51    $as_unset $as_var
52  fi
53done
54
55# Required to use basename.
56if expr a : '\(a\)' >/dev/null 2>&1; then
57  as_expr=expr
58else
59  as_expr=false
60fi
61
62if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63  as_basename=basename
64else
65  as_basename=false
66fi
67
68
69# Name of the executable.
70as_me=`$as_basename "$0" ||
71$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72	 X"$0" : 'X\(//\)$' \| \
73	 X"$0" : 'X\(/\)$' \| \
74	 .     : '\(.\)' 2>/dev/null ||
75echo X/"$0" |
76    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
78  	  /^X\/\(\/\).*/{ s//\1/; q; }
79  	  s/.*/./; q'`
80
81
82# PATH needs CR, and LINENO needs CR and PATH.
83# Avoid depending upon Character Ranges.
84as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87as_cr_digits='0123456789'
88as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90# The user is always right.
91if test "${PATH_SEPARATOR+set}" != set; then
92  echo "#! /bin/sh" >conf$$.sh
93  echo  "exit 0"   >>conf$$.sh
94  chmod +x conf$$.sh
95  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96    PATH_SEPARATOR=';'
97  else
98    PATH_SEPARATOR=:
99  fi
100  rm -f conf$$.sh
101fi
102
103
104  as_lineno_1=$LINENO
105  as_lineno_2=$LINENO
106  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107  test "x$as_lineno_1" != "x$as_lineno_2" &&
108  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109  # Find who we are.  Look in the path if we contain no path at all
110  # relative or not.
111  case $0 in
112    *[\\/]* ) as_myself=$0 ;;
113    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114for as_dir in $PATH
115do
116  IFS=$as_save_IFS
117  test -z "$as_dir" && as_dir=.
118  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119done
120
121       ;;
122  esac
123  # We did not find ourselves, most probably we were run as `sh COMMAND'
124  # in which case we are not to be found in the path.
125  if test "x$as_myself" = x; then
126    as_myself=$0
127  fi
128  if test ! -f "$as_myself"; then
129    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130   { (exit 1); exit 1; }; }
131  fi
132  case $CONFIG_SHELL in
133  '')
134    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136do
137  IFS=$as_save_IFS
138  test -z "$as_dir" && as_dir=.
139  for as_base in sh bash ksh sh5; do
140	 case $as_dir in
141	 /*)
142	   if ("$as_dir/$as_base" -c '
143  as_lineno_1=$LINENO
144  as_lineno_2=$LINENO
145  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146  test "x$as_lineno_1" != "x$as_lineno_2" &&
147  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150	     CONFIG_SHELL=$as_dir/$as_base
151	     export CONFIG_SHELL
152	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153	   fi;;
154	 esac
155       done
156done
157;;
158  esac
159
160  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161  # uniformly replaced by the line number.  The first 'sed' inserts a
162  # line-number line before each line; the second 'sed' does the real
163  # work.  The second script uses 'N' to pair each line-number line
164  # with the numbered line, and appends trailing '-' during
165  # substitution so that $LINENO is not a special case at line end.
166  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168  sed '=' <$as_myself |
169    sed '
170      N
171      s,$,-,
172      : loop
173      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174      t loop
175      s,-$,,
176      s,^['$as_cr_digits']*\n,,
177    ' >$as_me.lineno &&
178  chmod +x $as_me.lineno ||
179    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180   { (exit 1); exit 1; }; }
181
182  # Don't try to exec as it changes $[0], causing all sort of problems
183  # (the dirname of $[0] is not the place where we might find the
184  # original and so on.  Autoconf is especially sensible to this).
185  . ./$as_me.lineno
186  # Exit status is that of the last command.
187  exit
188}
189
190
191case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192  *c*,-n*) ECHO_N= ECHO_C='
193' ECHO_T='	' ;;
194  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196esac
197
198if expr a : '\(a\)' >/dev/null 2>&1; then
199  as_expr=expr
200else
201  as_expr=false
202fi
203
204rm -f conf$$ conf$$.exe conf$$.file
205echo >conf$$.file
206if ln -s conf$$.file conf$$ 2>/dev/null; then
207  # We could just check for DJGPP; but this test a) works b) is more generic
208  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209  if test -f conf$$.exe; then
210    # Don't use ln at all; we don't have any links
211    as_ln_s='cp -p'
212  else
213    as_ln_s='ln -s'
214  fi
215elif ln conf$$.file conf$$ 2>/dev/null; then
216  as_ln_s=ln
217else
218  as_ln_s='cp -p'
219fi
220rm -f conf$$ conf$$.exe conf$$.file
221
222if mkdir -p . 2>/dev/null; then
223  as_mkdir_p=:
224else
225  test -d ./-p && rmdir ./-p
226  as_mkdir_p=false
227fi
228
229as_executable_p="test -f"
230
231# Sed expression to map a string onto a valid CPP name.
232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234# Sed expression to map a string onto a valid variable name.
235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238# IFS
239# We need space, tab and new line, in precisely that order.
240as_nl='
241'
242IFS=" 	$as_nl"
243
244# CDPATH.
245$as_unset CDPATH
246
247
248
249# Check that we are running under the correct shell.
250SHELL=${CONFIG_SHELL-/bin/sh}
251
252case X$ECHO in
253X*--fallback-echo)
254  # Remove one level of quotation (which was required for Make).
255  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256  ;;
257esac
258
259echo=${ECHO-echo}
260if test "X$1" = X--no-reexec; then
261  # Discard the --no-reexec flag, and continue.
262  shift
263elif test "X$1" = X--fallback-echo; then
264  # Avoid inline document here, it may be left over
265  :
266elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267  # Yippee, $echo works!
268  :
269else
270  # Restart under the correct shell.
271  exec $SHELL "$0" --no-reexec ${1+"$@"}
272fi
273
274if test "X$1" = X--fallback-echo; then
275  # used as fallback echo
276  shift
277  cat <<EOF
278$*
279EOF
280  exit 0
281fi
282
283# The HP-UX ksh and POSIX shell print the target directory to stdout
284# if CDPATH is set.
285(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287if test -z "$ECHO"; then
288if test "X${echo_test_string+set}" != Xset; then
289# find a string as large as possible, as long as the shell can cope with it
290  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293       echo_test_string="`eval $cmd`" &&
294       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295    then
296      break
297    fi
298  done
299fi
300
301if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303   test "X$echo_testing_string" = "X$echo_test_string"; then
304  :
305else
306  # The Solaris, AIX, and Digital Unix default echo programs unquote
307  # backslashes.  This makes it impossible to quote backslashes using
308  #   echo "$something" | sed 's/\\/\\\\/g'
309  #
310  # So, first we look for a working echo in the user's PATH.
311
312  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313  for dir in $PATH /usr/ucb; do
314    IFS="$lt_save_ifs"
315    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318       test "X$echo_testing_string" = "X$echo_test_string"; then
319      echo="$dir/echo"
320      break
321    fi
322  done
323  IFS="$lt_save_ifs"
324
325  if test "X$echo" = Xecho; then
326    # We didn't find a better echo, so look for alternatives.
327    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329       test "X$echo_testing_string" = "X$echo_test_string"; then
330      # This shell has a builtin print -r that does the trick.
331      echo='print -r'
332    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333	 test "X$CONFIG_SHELL" != X/bin/ksh; then
334      # If we have ksh, try running configure again with it.
335      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336      export ORIGINAL_CONFIG_SHELL
337      CONFIG_SHELL=/bin/ksh
338      export CONFIG_SHELL
339      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340    else
341      # Try using printf.
342      echo='printf %s\n'
343      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345	 test "X$echo_testing_string" = "X$echo_test_string"; then
346	# Cool, printf works
347	:
348      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349	   test "X$echo_testing_string" = 'X\t' &&
350	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351	   test "X$echo_testing_string" = "X$echo_test_string"; then
352	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353	export CONFIG_SHELL
354	SHELL="$CONFIG_SHELL"
355	export SHELL
356	echo="$CONFIG_SHELL $0 --fallback-echo"
357      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358	   test "X$echo_testing_string" = 'X\t' &&
359	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360	   test "X$echo_testing_string" = "X$echo_test_string"; then
361	echo="$CONFIG_SHELL $0 --fallback-echo"
362      else
363	# maybe with a smaller string...
364	prev=:
365
366	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368	  then
369	    break
370	  fi
371	  prev="$cmd"
372	done
373
374	if test "$prev" != 'sed 50q "$0"'; then
375	  echo_test_string=`eval $prev`
376	  export echo_test_string
377	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378	else
379	  # Oops.  We lost completely, so just stick with echo.
380	  echo=echo
381	fi
382      fi
383    fi
384  fi
385fi
386fi
387
388# Copy echo and quote the copy suitably for passing to libtool from
389# the Makefile, instead of quoting the original, which is used later.
390ECHO=$echo
391if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393fi
394
395
396
397
398tagnames=${tagnames+${tagnames},}CXX
399
400tagnames=${tagnames+${tagnames},}F77
401
402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
413ac_config_libobj_dir=.
414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete.  It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
426PACKAGE_NAME='llvm'
427PACKAGE_TARNAME='-llvm-'
428PACKAGE_VERSION='1.4'
429PACKAGE_STRING='llvm 1.4'
430PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
432ac_unique_file="lib/VMCore/Module.cpp"
433ac_subdirs_all="$ac_subdirs_all projects/sample"
434ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
438ac_subdirs_all="$ac_subdirs_all projects/Java"
439ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
441ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
442# Factoring default headers for most tests.
443ac_includes_default="\
444#include <stdio.h>
445#if HAVE_SYS_TYPES_H
446# include <sys/types.h>
447#endif
448#if HAVE_SYS_STAT_H
449# include <sys/stat.h>
450#endif
451#if STDC_HEADERS
452# include <stdlib.h>
453# include <stddef.h>
454#else
455# if HAVE_STDLIB_H
456#  include <stdlib.h>
457# endif
458#endif
459#if HAVE_STRING_H
460# if !STDC_HEADERS && HAVE_MEMORY_H
461#  include <memory.h>
462# endif
463# include <string.h>
464#endif
465#if HAVE_STRINGS_H
466# include <strings.h>
467#endif
468#if HAVE_INTTYPES_H
469# include <inttypes.h>
470#else
471# if HAVE_STDINT_H
472#  include <stdint.h>
473# endif
474#endif
475#if HAVE_UNISTD_H
476# include <unistd.h>
477#endif"
478
479ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV PAX RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
480ac_subst_files=''
481
482# Initialize some variables set by options.
483ac_init_help=
484ac_init_version=false
485# The variables have the same names as the options, with
486# dashes changed to underlines.
487cache_file=/dev/null
488exec_prefix=NONE
489no_create=
490no_recursion=
491prefix=NONE
492program_prefix=NONE
493program_suffix=NONE
494program_transform_name=s,x,x,
495silent=
496site=
497srcdir=
498verbose=
499x_includes=NONE
500x_libraries=NONE
501
502# Installation directory options.
503# These are left unexpanded so users can "make install exec_prefix=/foo"
504# and all the variables that are supposed to be based on exec_prefix
505# by default will actually change.
506# Use braces instead of parens because sh, perl, etc. also accept them.
507bindir='${exec_prefix}/bin'
508sbindir='${exec_prefix}/sbin'
509libexecdir='${exec_prefix}/libexec'
510datadir='${prefix}/share'
511sysconfdir='${prefix}/etc'
512sharedstatedir='${prefix}/com'
513localstatedir='${prefix}/var'
514libdir='${exec_prefix}/lib'
515includedir='${prefix}/include'
516oldincludedir='/usr/include'
517infodir='${prefix}/info'
518mandir='${prefix}/man'
519
520ac_prev=
521for ac_option
522do
523  # If the previous option needs an argument, assign it.
524  if test -n "$ac_prev"; then
525    eval "$ac_prev=\$ac_option"
526    ac_prev=
527    continue
528  fi
529
530  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532  # Accept the important Cygnus configure options, so we can diagnose typos.
533
534  case $ac_option in
535
536  -bindir | --bindir | --bindi | --bind | --bin | --bi)
537    ac_prev=bindir ;;
538  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539    bindir=$ac_optarg ;;
540
541  -build | --build | --buil | --bui | --bu)
542    ac_prev=build_alias ;;
543  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544    build_alias=$ac_optarg ;;
545
546  -cache-file | --cache-file | --cache-fil | --cache-fi \
547  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548    ac_prev=cache_file ;;
549  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551    cache_file=$ac_optarg ;;
552
553  --config-cache | -C)
554    cache_file=config.cache ;;
555
556  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557    ac_prev=datadir ;;
558  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559  | --da=*)
560    datadir=$ac_optarg ;;
561
562  -disable-* | --disable-*)
563    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564    # Reject names that are not valid shell variable names.
565    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567   { (exit 1); exit 1; }; }
568    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569    eval "enable_$ac_feature=no" ;;
570
571  -enable-* | --enable-*)
572    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573    # Reject names that are not valid shell variable names.
574    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576   { (exit 1); exit 1; }; }
577    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578    case $ac_option in
579      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580      *) ac_optarg=yes ;;
581    esac
582    eval "enable_$ac_feature='$ac_optarg'" ;;
583
584  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586  | --exec | --exe | --ex)
587    ac_prev=exec_prefix ;;
588  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590  | --exec=* | --exe=* | --ex=*)
591    exec_prefix=$ac_optarg ;;
592
593  -gas | --gas | --ga | --g)
594    # Obsolete; use --with-gas.
595    with_gas=yes ;;
596
597  -help | --help | --hel | --he | -h)
598    ac_init_help=long ;;
599  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600    ac_init_help=recursive ;;
601  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602    ac_init_help=short ;;
603
604  -host | --host | --hos | --ho)
605    ac_prev=host_alias ;;
606  -host=* | --host=* | --hos=* | --ho=*)
607    host_alias=$ac_optarg ;;
608
609  -includedir | --includedir | --includedi | --included | --include \
610  | --includ | --inclu | --incl | --inc)
611    ac_prev=includedir ;;
612  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613  | --includ=* | --inclu=* | --incl=* | --inc=*)
614    includedir=$ac_optarg ;;
615
616  -infodir | --infodir | --infodi | --infod | --info | --inf)
617    ac_prev=infodir ;;
618  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619    infodir=$ac_optarg ;;
620
621  -libdir | --libdir | --libdi | --libd)
622    ac_prev=libdir ;;
623  -libdir=* | --libdir=* | --libdi=* | --libd=*)
624    libdir=$ac_optarg ;;
625
626  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627  | --libexe | --libex | --libe)
628    ac_prev=libexecdir ;;
629  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630  | --libexe=* | --libex=* | --libe=*)
631    libexecdir=$ac_optarg ;;
632
633  -localstatedir | --localstatedir | --localstatedi | --localstated \
634  | --localstate | --localstat | --localsta | --localst \
635  | --locals | --local | --loca | --loc | --lo)
636    ac_prev=localstatedir ;;
637  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640    localstatedir=$ac_optarg ;;
641
642  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643    ac_prev=mandir ;;
644  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645    mandir=$ac_optarg ;;
646
647  -nfp | --nfp | --nf)
648    # Obsolete; use --without-fp.
649    with_fp=no ;;
650
651  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652  | --no-cr | --no-c | -n)
653    no_create=yes ;;
654
655  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657    no_recursion=yes ;;
658
659  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661  | --oldin | --oldi | --old | --ol | --o)
662    ac_prev=oldincludedir ;;
663  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666    oldincludedir=$ac_optarg ;;
667
668  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669    ac_prev=prefix ;;
670  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671    prefix=$ac_optarg ;;
672
673  -program-prefix | --program-prefix | --program-prefi | --program-pref \
674  | --program-pre | --program-pr | --program-p)
675    ac_prev=program_prefix ;;
676  -program-prefix=* | --program-prefix=* | --program-prefi=* \
677  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678    program_prefix=$ac_optarg ;;
679
680  -program-suffix | --program-suffix | --program-suffi | --program-suff \
681  | --program-suf | --program-su | --program-s)
682    ac_prev=program_suffix ;;
683  -program-suffix=* | --program-suffix=* | --program-suffi=* \
684  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685    program_suffix=$ac_optarg ;;
686
687  -program-transform-name | --program-transform-name \
688  | --program-transform-nam | --program-transform-na \
689  | --program-transform-n | --program-transform- \
690  | --program-transform | --program-transfor \
691  | --program-transfo | --program-transf \
692  | --program-trans | --program-tran \
693  | --progr-tra | --program-tr | --program-t)
694    ac_prev=program_transform_name ;;
695  -program-transform-name=* | --program-transform-name=* \
696  | --program-transform-nam=* | --program-transform-na=* \
697  | --program-transform-n=* | --program-transform-=* \
698  | --program-transform=* | --program-transfor=* \
699  | --program-transfo=* | --program-transf=* \
700  | --program-trans=* | --program-tran=* \
701  | --progr-tra=* | --program-tr=* | --program-t=*)
702    program_transform_name=$ac_optarg ;;
703
704  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705  | -silent | --silent | --silen | --sile | --sil)
706    silent=yes ;;
707
708  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709    ac_prev=sbindir ;;
710  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711  | --sbi=* | --sb=*)
712    sbindir=$ac_optarg ;;
713
714  -sharedstatedir | --sharedstatedir | --sharedstatedi \
715  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716  | --sharedst | --shareds | --shared | --share | --shar \
717  | --sha | --sh)
718    ac_prev=sharedstatedir ;;
719  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722  | --sha=* | --sh=*)
723    sharedstatedir=$ac_optarg ;;
724
725  -site | --site | --sit)
726    ac_prev=site ;;
727  -site=* | --site=* | --sit=*)
728    site=$ac_optarg ;;
729
730  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731    ac_prev=srcdir ;;
732  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733    srcdir=$ac_optarg ;;
734
735  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736  | --syscon | --sysco | --sysc | --sys | --sy)
737    ac_prev=sysconfdir ;;
738  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740    sysconfdir=$ac_optarg ;;
741
742  -target | --target | --targe | --targ | --tar | --ta | --t)
743    ac_prev=target_alias ;;
744  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745    target_alias=$ac_optarg ;;
746
747  -v | -verbose | --verbose | --verbos | --verbo | --verb)
748    verbose=yes ;;
749
750  -version | --version | --versio | --versi | --vers | -V)
751    ac_init_version=: ;;
752
753  -with-* | --with-*)
754    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755    # Reject names that are not valid shell variable names.
756    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757      { echo "$as_me: error: invalid package name: $ac_package" >&2
758   { (exit 1); exit 1; }; }
759    ac_package=`echo $ac_package| sed 's/-/_/g'`
760    case $ac_option in
761      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762      *) ac_optarg=yes ;;
763    esac
764    eval "with_$ac_package='$ac_optarg'" ;;
765
766  -without-* | --without-*)
767    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768    # Reject names that are not valid shell variable names.
769    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770      { echo "$as_me: error: invalid package name: $ac_package" >&2
771   { (exit 1); exit 1; }; }
772    ac_package=`echo $ac_package | sed 's/-/_/g'`
773    eval "with_$ac_package=no" ;;
774
775  --x)
776    # Obsolete; use --with-x.
777    with_x=yes ;;
778
779  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780  | --x-incl | --x-inc | --x-in | --x-i)
781    ac_prev=x_includes ;;
782  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784    x_includes=$ac_optarg ;;
785
786  -x-libraries | --x-libraries | --x-librarie | --x-librari \
787  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788    ac_prev=x_libraries ;;
789  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791    x_libraries=$ac_optarg ;;
792
793  -*) { echo "$as_me: error: unrecognized option: $ac_option
794Try \`$0 --help' for more information." >&2
795   { (exit 1); exit 1; }; }
796    ;;
797
798  *=*)
799    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800    # Reject names that are not valid shell variable names.
801    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803   { (exit 1); exit 1; }; }
804    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805    eval "$ac_envvar='$ac_optarg'"
806    export $ac_envvar ;;
807
808  *)
809    # FIXME: should be removed in autoconf 3.0.
810    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814    ;;
815
816  esac
817done
818
819if test -n "$ac_prev"; then
820  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821  { echo "$as_me: error: missing argument to $ac_option" >&2
822   { (exit 1); exit 1; }; }
823fi
824
825# Be sure to have absolute paths.
826for ac_var in exec_prefix prefix
827do
828  eval ac_val=$`echo $ac_var`
829  case $ac_val in
830    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832   { (exit 1); exit 1; }; };;
833  esac
834done
835
836# Be sure to have absolute paths.
837for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
838	      localstatedir libdir includedir oldincludedir infodir mandir
839do
840  eval ac_val=$`echo $ac_var`
841  case $ac_val in
842    [\\/$]* | ?:[\\/]* ) ;;
843    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844   { (exit 1); exit 1; }; };;
845  esac
846done
847
848# There might be people who depend on the old broken behavior: `$host'
849# used to hold the argument of --host etc.
850# FIXME: To remove some day.
851build=$build_alias
852host=$host_alias
853target=$target_alias
854
855# FIXME: To remove some day.
856if test "x$host_alias" != x; then
857  if test "x$build_alias" = x; then
858    cross_compiling=maybe
859    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860    If a cross compiler is detected then cross compile mode will be used." >&2
861  elif test "x$build_alias" != "x$host_alias"; then
862    cross_compiling=yes
863  fi
864fi
865
866ac_tool_prefix=
867test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869test "$silent" = yes && exec 6>/dev/null
870
871
872# Find the source files, if location was not specified.
873if test -z "$srcdir"; then
874  ac_srcdir_defaulted=yes
875  # Try the directory containing this script, then its parent.
876  ac_confdir=`(dirname "$0") 2>/dev/null ||
877$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878	 X"$0" : 'X\(//\)[^/]' \| \
879	 X"$0" : 'X\(//\)$' \| \
880	 X"$0" : 'X\(/\)' \| \
881	 .     : '\(.\)' 2>/dev/null ||
882echo X"$0" |
883    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885  	  /^X\(\/\/\)$/{ s//\1/; q; }
886  	  /^X\(\/\).*/{ s//\1/; q; }
887  	  s/.*/./; q'`
888  srcdir=$ac_confdir
889  if test ! -r $srcdir/$ac_unique_file; then
890    srcdir=..
891  fi
892else
893  ac_srcdir_defaulted=no
894fi
895if test ! -r $srcdir/$ac_unique_file; then
896  if test "$ac_srcdir_defaulted" = yes; then
897    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898   { (exit 1); exit 1; }; }
899  else
900    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901   { (exit 1); exit 1; }; }
902  fi
903fi
904(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906   { (exit 1); exit 1; }; }
907srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908ac_env_build_alias_set=${build_alias+set}
909ac_env_build_alias_value=$build_alias
910ac_cv_env_build_alias_set=${build_alias+set}
911ac_cv_env_build_alias_value=$build_alias
912ac_env_host_alias_set=${host_alias+set}
913ac_env_host_alias_value=$host_alias
914ac_cv_env_host_alias_set=${host_alias+set}
915ac_cv_env_host_alias_value=$host_alias
916ac_env_target_alias_set=${target_alias+set}
917ac_env_target_alias_value=$target_alias
918ac_cv_env_target_alias_set=${target_alias+set}
919ac_cv_env_target_alias_value=$target_alias
920ac_env_CC_set=${CC+set}
921ac_env_CC_value=$CC
922ac_cv_env_CC_set=${CC+set}
923ac_cv_env_CC_value=$CC
924ac_env_CFLAGS_set=${CFLAGS+set}
925ac_env_CFLAGS_value=$CFLAGS
926ac_cv_env_CFLAGS_set=${CFLAGS+set}
927ac_cv_env_CFLAGS_value=$CFLAGS
928ac_env_LDFLAGS_set=${LDFLAGS+set}
929ac_env_LDFLAGS_value=$LDFLAGS
930ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931ac_cv_env_LDFLAGS_value=$LDFLAGS
932ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_env_CPPFLAGS_value=$CPPFLAGS
934ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936ac_env_CPP_set=${CPP+set}
937ac_env_CPP_value=$CPP
938ac_cv_env_CPP_set=${CPP+set}
939ac_cv_env_CPP_value=$CPP
940ac_env_CXX_set=${CXX+set}
941ac_env_CXX_value=$CXX
942ac_cv_env_CXX_set=${CXX+set}
943ac_cv_env_CXX_value=$CXX
944ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945ac_env_CXXFLAGS_value=$CXXFLAGS
946ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948ac_env_CXXCPP_set=${CXXCPP+set}
949ac_env_CXXCPP_value=$CXXCPP
950ac_cv_env_CXXCPP_set=${CXXCPP+set}
951ac_cv_env_CXXCPP_value=$CXXCPP
952ac_env_F77_set=${F77+set}
953ac_env_F77_value=$F77
954ac_cv_env_F77_set=${F77+set}
955ac_cv_env_F77_value=$F77
956ac_env_FFLAGS_set=${FFLAGS+set}
957ac_env_FFLAGS_value=$FFLAGS
958ac_cv_env_FFLAGS_set=${FFLAGS+set}
959ac_cv_env_FFLAGS_value=$FFLAGS
960
961#
962# Report the --help message.
963#
964if test "$ac_init_help" = "long"; then
965  # Omit some internal or obsolete options to make the list less imposing.
966  # This message is too long to be a string in the A/UX 3.1 sh.
967  cat <<_ACEOF
968\`configure' configures llvm 1.4 to adapt to many kinds of systems.
969
970Usage: $0 [OPTION]... [VAR=VALUE]...
971
972To assign environment variables (e.g., CC, CFLAGS...), specify them as
973VAR=VALUE.  See below for descriptions of some of the useful variables.
974
975Defaults for the options are specified in brackets.
976
977Configuration:
978  -h, --help              display this help and exit
979      --help=short        display options specific to this package
980      --help=recursive    display the short help of all the included packages
981  -V, --version           display version information and exit
982  -q, --quiet, --silent   do not print \`checking...' messages
983      --cache-file=FILE   cache test results in FILE [disabled]
984  -C, --config-cache      alias for \`--cache-file=config.cache'
985  -n, --no-create         do not create output files
986      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
987
988_ACEOF
989
990  cat <<_ACEOF
991Installation directories:
992  --prefix=PREFIX         install architecture-independent files in PREFIX
993			  [$ac_default_prefix]
994  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
995			  [PREFIX]
996
997By default, \`make install' will install all the files in
998\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
999an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000for instance \`--prefix=\$HOME'.
1001
1002For better control, use the options below.
1003
1004Fine tuning of the installation directories:
1005  --bindir=DIR           user executables [EPREFIX/bin]
1006  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1007  --libexecdir=DIR       program executables [EPREFIX/libexec]
1008  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1009  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1010  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1011  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1012  --libdir=DIR           object code libraries [EPREFIX/lib]
1013  --includedir=DIR       C header files [PREFIX/include]
1014  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1015  --infodir=DIR          info documentation [PREFIX/info]
1016  --mandir=DIR           man documentation [PREFIX/man]
1017_ACEOF
1018
1019  cat <<\_ACEOF
1020
1021System types:
1022  --build=BUILD     configure for building on BUILD [guessed]
1023  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1024  --target=TARGET   configure for building compilers for TARGET [HOST]
1025_ACEOF
1026fi
1027
1028if test -n "$ac_init_help"; then
1029  case $ac_init_help in
1030     short | recursive ) echo "Configuration of llvm 1.4:";;
1031   esac
1032  cat <<\_ACEOF
1033
1034Optional Features:
1035  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1036  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1037  --enable-optimized
1038  --enable-jit            Enable Just In Time Compiling (default is YES)
1039  --enable-doxygen        Build doxygen documentation (default is NO)
1040  --enable-ltdl-install   install libltdl
1041  --enable-shared[=PKGS]
1042                          build shared libraries [default=yes]
1043  --enable-static[=PKGS]
1044                          build static libraries [default=yes]
1045  --enable-fast-install[=PKGS]
1046                          optimize for fast installation [default=yes]
1047  --disable-libtool-lock  avoid locking (might break parallel builds)
1048
1049Optional Packages:
1050  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1051  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1052  --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1053                          searches PATH)
1054  --with-tclinclude       directory where tcl headers are
1055  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1056  --with-pic              try to use only PIC/non-PIC objects [default=use
1057                          both]
1058  --with-tags[=TAGS]
1059                          include additional configurations [automatic]
1060
1061Some influential environment variables:
1062  CC          C compiler command
1063  CFLAGS      C compiler flags
1064  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1065              nonstandard directory <lib dir>
1066  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067              headers in a nonstandard directory <include dir>
1068  CPP         C preprocessor
1069  CXX         C++ compiler command
1070  CXXFLAGS    C++ compiler flags
1071  CXXCPP      C++ preprocessor
1072  F77         Fortran 77 compiler command
1073  FFLAGS      Fortran 77 compiler flags
1074
1075Use these variables to override the choices made by `configure' or to help
1076it to find libraries and programs with nonstandard names/locations.
1077
1078Report bugs to <llvmbugs@cs.uiuc.edu>.
1079_ACEOF
1080fi
1081
1082if test "$ac_init_help" = "recursive"; then
1083  # If there are subdirs, report their specific --help.
1084  ac_popdir=`pwd`
1085  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086    test -d $ac_dir || continue
1087    ac_builddir=.
1088
1089if test "$ac_dir" != .; then
1090  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1091  # A "../" for each directory in $ac_dir_suffix.
1092  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1093else
1094  ac_dir_suffix= ac_top_builddir=
1095fi
1096
1097case $srcdir in
1098  .)  # No --srcdir option.  We are building in place.
1099    ac_srcdir=.
1100    if test -z "$ac_top_builddir"; then
1101       ac_top_srcdir=.
1102    else
1103       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1104    fi ;;
1105  [\\/]* | ?:[\\/]* )  # Absolute path.
1106    ac_srcdir=$srcdir$ac_dir_suffix;
1107    ac_top_srcdir=$srcdir ;;
1108  *) # Relative path.
1109    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1110    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1111esac
1112
1113# Do not use `cd foo && pwd` to compute absolute paths, because
1114# the directories may not exist.
1115case `pwd` in
1116.) ac_abs_builddir="$ac_dir";;
1117*)
1118  case "$ac_dir" in
1119  .) ac_abs_builddir=`pwd`;;
1120  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1121  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1122  esac;;
1123esac
1124case $ac_abs_builddir in
1125.) ac_abs_top_builddir=${ac_top_builddir}.;;
1126*)
1127  case ${ac_top_builddir}. in
1128  .) ac_abs_top_builddir=$ac_abs_builddir;;
1129  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1130  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1131  esac;;
1132esac
1133case $ac_abs_builddir in
1134.) ac_abs_srcdir=$ac_srcdir;;
1135*)
1136  case $ac_srcdir in
1137  .) ac_abs_srcdir=$ac_abs_builddir;;
1138  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1139  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1140  esac;;
1141esac
1142case $ac_abs_builddir in
1143.) ac_abs_top_srcdir=$ac_top_srcdir;;
1144*)
1145  case $ac_top_srcdir in
1146  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1147  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1148  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1149  esac;;
1150esac
1151
1152    cd $ac_dir
1153    # Check for guested configure; otherwise get Cygnus style configure.
1154    if test -f $ac_srcdir/configure.gnu; then
1155      echo
1156      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1157    elif test -f $ac_srcdir/configure; then
1158      echo
1159      $SHELL $ac_srcdir/configure  --help=recursive
1160    elif test -f $ac_srcdir/configure.ac ||
1161	   test -f $ac_srcdir/configure.in; then
1162      echo
1163      $ac_configure --help
1164    else
1165      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1166    fi
1167    cd $ac_popdir
1168  done
1169fi
1170
1171test -n "$ac_init_help" && exit 0
1172if $ac_init_version; then
1173  cat <<\_ACEOF
1174llvm configure 1.4
1175generated by GNU Autoconf 2.59
1176
1177Copyright (C) 2003 Free Software Foundation, Inc.
1178This configure script is free software; the Free Software Foundation
1179gives unlimited permission to copy, distribute and modify it.
1180
1181$LLVM_COPYRIGHT
1182_ACEOF
1183  exit 0
1184fi
1185exec 5>config.log
1186cat >&5 <<_ACEOF
1187This file contains any messages produced by compilers while
1188running configure, to aid debugging if configure makes a mistake.
1189
1190It was created by llvm $as_me 1.4, which was
1191generated by GNU Autoconf 2.59.  Invocation command line was
1192
1193  $ $0 $@
1194
1195_ACEOF
1196{
1197cat <<_ASUNAME
1198## --------- ##
1199## Platform. ##
1200## --------- ##
1201
1202hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1203uname -m = `(uname -m) 2>/dev/null || echo unknown`
1204uname -r = `(uname -r) 2>/dev/null || echo unknown`
1205uname -s = `(uname -s) 2>/dev/null || echo unknown`
1206uname -v = `(uname -v) 2>/dev/null || echo unknown`
1207
1208/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1209/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1210
1211/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1212/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1213/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1214hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1215/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1216/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1217/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1218
1219_ASUNAME
1220
1221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1222for as_dir in $PATH
1223do
1224  IFS=$as_save_IFS
1225  test -z "$as_dir" && as_dir=.
1226  echo "PATH: $as_dir"
1227done
1228
1229} >&5
1230
1231cat >&5 <<_ACEOF
1232
1233
1234## ----------- ##
1235## Core tests. ##
1236## ----------- ##
1237
1238_ACEOF
1239
1240
1241# Keep a trace of the command line.
1242# Strip out --no-create and --no-recursion so they do not pile up.
1243# Strip out --silent because we don't want to record it for future runs.
1244# Also quote any args containing shell meta-characters.
1245# Make two passes to allow for proper duplicate-argument suppression.
1246ac_configure_args=
1247ac_configure_args0=
1248ac_configure_args1=
1249ac_sep=
1250ac_must_keep_next=false
1251for ac_pass in 1 2
1252do
1253  for ac_arg
1254  do
1255    case $ac_arg in
1256    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1257    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258    | -silent | --silent | --silen | --sile | --sil)
1259      continue ;;
1260    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1262    esac
1263    case $ac_pass in
1264    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1265    2)
1266      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1267      if test $ac_must_keep_next = true; then
1268	ac_must_keep_next=false # Got value, back to normal.
1269      else
1270	case $ac_arg in
1271	  *=* | --config-cache | -C | -disable-* | --disable-* \
1272	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1273	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1274	  | -with-* | --with-* | -without-* | --without-* | --x)
1275	    case "$ac_configure_args0 " in
1276	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1277	    esac
1278	    ;;
1279	  -* ) ac_must_keep_next=true ;;
1280	esac
1281      fi
1282      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1283      # Get rid of the leading space.
1284      ac_sep=" "
1285      ;;
1286    esac
1287  done
1288done
1289$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1290$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1291
1292# When interrupted or exit'd, cleanup temporary files, and complete
1293# config.log.  We remove comments because anyway the quotes in there
1294# would cause problems or look ugly.
1295# WARNING: Be sure not to use single quotes in there, as some shells,
1296# such as our DU 5.0 friend, will then `close' the trap.
1297trap 'exit_status=$?
1298  # Save into config.log some information that might help in debugging.
1299  {
1300    echo
1301
1302    cat <<\_ASBOX
1303## ---------------- ##
1304## Cache variables. ##
1305## ---------------- ##
1306_ASBOX
1307    echo
1308    # The following way of writing the cache mishandles newlines in values,
1309{
1310  (set) 2>&1 |
1311    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1312    *ac_space=\ *)
1313      sed -n \
1314	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1315	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1316      ;;
1317    *)
1318      sed -n \
1319	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1320      ;;
1321    esac;
1322}
1323    echo
1324
1325    cat <<\_ASBOX
1326## ----------------- ##
1327## Output variables. ##
1328## ----------------- ##
1329_ASBOX
1330    echo
1331    for ac_var in $ac_subst_vars
1332    do
1333      eval ac_val=$`echo $ac_var`
1334      echo "$ac_var='"'"'$ac_val'"'"'"
1335    done | sort
1336    echo
1337
1338    if test -n "$ac_subst_files"; then
1339      cat <<\_ASBOX
1340## ------------- ##
1341## Output files. ##
1342## ------------- ##
1343_ASBOX
1344      echo
1345      for ac_var in $ac_subst_files
1346      do
1347	eval ac_val=$`echo $ac_var`
1348	echo "$ac_var='"'"'$ac_val'"'"'"
1349      done | sort
1350      echo
1351    fi
1352
1353    if test -s confdefs.h; then
1354      cat <<\_ASBOX
1355## ----------- ##
1356## confdefs.h. ##
1357## ----------- ##
1358_ASBOX
1359      echo
1360      sed "/^$/d" confdefs.h | sort
1361      echo
1362    fi
1363    test "$ac_signal" != 0 &&
1364      echo "$as_me: caught signal $ac_signal"
1365    echo "$as_me: exit $exit_status"
1366  } >&5
1367  rm -f core *.core &&
1368  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1369    exit $exit_status
1370     ' 0
1371for ac_signal in 1 2 13 15; do
1372  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1373done
1374ac_signal=0
1375
1376# confdefs.h avoids OS command line length limits that DEFS can exceed.
1377rm -rf conftest* confdefs.h
1378# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1379echo >confdefs.h
1380
1381# Predefined preprocessor variables.
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_NAME "$PACKAGE_NAME"
1385_ACEOF
1386
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1390_ACEOF
1391
1392
1393cat >>confdefs.h <<_ACEOF
1394#define PACKAGE_VERSION "$PACKAGE_VERSION"
1395_ACEOF
1396
1397
1398cat >>confdefs.h <<_ACEOF
1399#define PACKAGE_STRING "$PACKAGE_STRING"
1400_ACEOF
1401
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1405_ACEOF
1406
1407
1408# Let the site file select an alternate cache file if it wants to.
1409# Prefer explicitly selected file to automatically selected ones.
1410if test -z "$CONFIG_SITE"; then
1411  if test "x$prefix" != xNONE; then
1412    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1413  else
1414    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1415  fi
1416fi
1417for ac_site_file in $CONFIG_SITE; do
1418  if test -r "$ac_site_file"; then
1419    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1420echo "$as_me: loading site script $ac_site_file" >&6;}
1421    sed 's/^/| /' "$ac_site_file" >&5
1422    . "$ac_site_file"
1423  fi
1424done
1425
1426if test -r "$cache_file"; then
1427  # Some versions of bash will fail to source /dev/null (special
1428  # files actually), so we avoid doing that.
1429  if test -f "$cache_file"; then
1430    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1431echo "$as_me: loading cache $cache_file" >&6;}
1432    case $cache_file in
1433      [\\/]* | ?:[\\/]* ) . $cache_file;;
1434      *)                      . ./$cache_file;;
1435    esac
1436  fi
1437else
1438  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1439echo "$as_me: creating cache $cache_file" >&6;}
1440  >$cache_file
1441fi
1442
1443# Check that the precious variables saved in the cache have kept the same
1444# value.
1445ac_cache_corrupted=false
1446for ac_var in `(set) 2>&1 |
1447	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1448  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1449  eval ac_new_set=\$ac_env_${ac_var}_set
1450  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1451  eval ac_new_val="\$ac_env_${ac_var}_value"
1452  case $ac_old_set,$ac_new_set in
1453    set,)
1454      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1455echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1456      ac_cache_corrupted=: ;;
1457    ,set)
1458      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1459echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1460      ac_cache_corrupted=: ;;
1461    ,);;
1462    *)
1463      if test "x$ac_old_val" != "x$ac_new_val"; then
1464	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1465echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1466	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1467echo "$as_me:   former value:  $ac_old_val" >&2;}
1468	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1469echo "$as_me:   current value: $ac_new_val" >&2;}
1470	ac_cache_corrupted=:
1471      fi;;
1472  esac
1473  # Pass precious variables to config.status.
1474  if test "$ac_new_set" = set; then
1475    case $ac_new_val in
1476    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1477      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1478    *) ac_arg=$ac_var=$ac_new_val ;;
1479    esac
1480    case " $ac_configure_args " in
1481      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1482      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1483    esac
1484  fi
1485done
1486if $ac_cache_corrupted; then
1487  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1488echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1489  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1490echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1491   { (exit 1); exit 1; }; }
1492fi
1493
1494ac_ext=c
1495ac_cpp='$CPP $CPPFLAGS'
1496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1498ac_compiler_gnu=$ac_cv_c_compiler_gnu
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1528
1529
1530
1531
1532
1533
1534
1535ac_aux_dir=
1536for ac_dir in autoconf $srcdir/autoconf; do
1537  if test -f $ac_dir/install-sh; then
1538    ac_aux_dir=$ac_dir
1539    ac_install_sh="$ac_aux_dir/install-sh -c"
1540    break
1541  elif test -f $ac_dir/install.sh; then
1542    ac_aux_dir=$ac_dir
1543    ac_install_sh="$ac_aux_dir/install.sh -c"
1544    break
1545  elif test -f $ac_dir/shtool; then
1546    ac_aux_dir=$ac_dir
1547    ac_install_sh="$ac_aux_dir/shtool install -c"
1548    break
1549  fi
1550done
1551if test -z "$ac_aux_dir"; then
1552  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1553echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1554   { (exit 1); exit 1; }; }
1555fi
1556ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1557ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1558ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1559
1560
1561if test ${srcdir} != "." ; then
1562  if test -f ${srcdir}/include/llvm/Config/config.h ; then
1563    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1564echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1565   { (exit 1); exit 1; }; }
1566  fi
1567fi
1568
1569for i in `ls ${srcdir}/projects`
1570do
1571  if test -d ${srcdir}/projects/${i} ; then
1572    case ${i} in
1573      "CVS") ;;
1574      "sample")
1575
1576subdirs="$subdirs projects/sample"
1577    ;;
1578      "Stacker")
1579
1580subdirs="$subdirs projects/Stacker"
1581   ;;
1582      "llvm-test")
1583
1584subdirs="$subdirs projects/llvm-test"
1585 ;;
1586      "llvm-reopt")
1587
1588subdirs="$subdirs projects/llvm-reopt"
1589;;
1590      "llvm-gcc")
1591
1592subdirs="$subdirs projects/llvm-gcc"
1593  ;;
1594      "Java")
1595
1596subdirs="$subdirs projects/Java"
1597      ;;
1598      "llvm-tv")
1599
1600subdirs="$subdirs projects/llvm-tv"
1601   ;;
1602      "llvm-fefw")
1603
1604subdirs="$subdirs projects/llvm-fefw"
1605 ;;
1606      "poolalloc")
1607
1608subdirs="$subdirs projects/poolalloc"
1609 ;;
1610      *)
1611        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1612echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1613        ;;
1614    esac
1615  fi
1616done
1617
1618
1619# Make sure we can run config.sub.
1620$ac_config_sub sun4 >/dev/null 2>&1 ||
1621  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1622echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1623   { (exit 1); exit 1; }; }
1624
1625echo "$as_me:$LINENO: checking build system type" >&5
1626echo $ECHO_N "checking build system type... $ECHO_C" >&6
1627if test "${ac_cv_build+set}" = set; then
1628  echo $ECHO_N "(cached) $ECHO_C" >&6
1629else
1630  ac_cv_build_alias=$build_alias
1631test -z "$ac_cv_build_alias" &&
1632  ac_cv_build_alias=`$ac_config_guess`
1633test -z "$ac_cv_build_alias" &&
1634  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1635echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1636   { (exit 1); exit 1; }; }
1637ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1638  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1639echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1640   { (exit 1); exit 1; }; }
1641
1642fi
1643echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1644echo "${ECHO_T}$ac_cv_build" >&6
1645build=$ac_cv_build
1646build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1647build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1648build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649
1650
1651echo "$as_me:$LINENO: checking host system type" >&5
1652echo $ECHO_N "checking host system type... $ECHO_C" >&6
1653if test "${ac_cv_host+set}" = set; then
1654  echo $ECHO_N "(cached) $ECHO_C" >&6
1655else
1656  ac_cv_host_alias=$host_alias
1657test -z "$ac_cv_host_alias" &&
1658  ac_cv_host_alias=$ac_cv_build_alias
1659ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1660  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1661echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1662   { (exit 1); exit 1; }; }
1663
1664fi
1665echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1666echo "${ECHO_T}$ac_cv_host" >&6
1667host=$ac_cv_host
1668host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1669host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1670host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1671
1672
1673echo "$as_me:$LINENO: checking target system type" >&5
1674echo $ECHO_N "checking target system type... $ECHO_C" >&6
1675if test "${ac_cv_target+set}" = set; then
1676  echo $ECHO_N "(cached) $ECHO_C" >&6
1677else
1678  ac_cv_target_alias=$target_alias
1679test "x$ac_cv_target_alias" = "x" &&
1680  ac_cv_target_alias=$ac_cv_host_alias
1681ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1682  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1683echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1684   { (exit 1); exit 1; }; }
1685
1686fi
1687echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1688echo "${ECHO_T}$ac_cv_target" >&6
1689target=$ac_cv_target
1690target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1691target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1692target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1693
1694
1695# The aliases save the names the user supplied, while $host etc.
1696# will get canonicalized.
1697test -n "$target_alias" &&
1698  test "$program_prefix$program_suffix$program_transform_name" = \
1699    NONENONEs,x,x, &&
1700  program_prefix=${target_alias}-
1701
1702echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1703echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1704if test "${llvm_cv_os_type+set}" = set; then
1705  echo $ECHO_N "(cached) $ECHO_C" >&6
1706else
1707  case $build in
1708  *-*-aix*)
1709    llvm_cv_os_type="AIX"
1710    llvm_cv_platform_type="Unix" ;;
1711  *-*-cygwin*)
1712    llvm_cv_os_type="Cygwin"
1713    llvm_cv_platform_type="Unix" ;;
1714  *-*-darwin*)
1715    llvm_cv_os_type="Darwin"
1716    llvm_cv_platform_type="Unix" ;;
1717  *-*-freebsd*)
1718    llvm_cv_os_type="FreeBSD"
1719    llvm_cv_platform_type="Unix" ;;
1720  *-*-interix*)
1721    llvm_cv_os_type="Interix"
1722    llvm_cv_platform_type="Unix" ;;
1723  *-*-linux*)
1724    llvm_cv_os_type="Linux"
1725    llvm_cv_platform_type="Unix" ;;
1726  *-*-solaris*)
1727    llvm_cv_os_type="SunOS"
1728    llvm_cv_platform_type="Unix" ;;
1729  *-*-win32*)
1730    llvm_cv_os_type="Win32"
1731    llvm_cv_platform_type="Win32" ;;
1732  *-*-mingw*)
1733    llvm_cv_os_type="MingW"
1734    llvm_cv_platform_type="Win32" ;;
1735  *)
1736    llvm_cv_os_type="Unknown"
1737    llvm_cv_platform_type="Unknown" ;;
1738esac
1739fi
1740echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1741echo "${ECHO_T}$llvm_cv_os_type" >&6
1742
1743if test "$llvm_cv_os_type" = "Unknown" ; then
1744  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1745echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1746   { (exit 1); exit 1; }; }
1747fi
1748
1749OS=$llvm_cv_os_type
1750
1751
1752case $llvm_cv_platform_type in
1753  Unix)
1754
1755cat >>confdefs.h <<\_ACEOF
1756#define LLVM_ON_UNIX 1
1757_ACEOF
1758
1759    ;;
1760  Win32)
1761
1762cat >>confdefs.h <<\_ACEOF
1763#define LLVM_ON_WIN32 1
1764_ACEOF
1765
1766    ;;
1767esac
1768
1769case $target in
1770  sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1771
1772  ;;
1773esac
1774
1775echo "$as_me:$LINENO: checking target architecture" >&5
1776echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1777if test "${llvm_cv_target_arch+set}" = set; then
1778  echo $ECHO_N "(cached) $ECHO_C" >&6
1779else
1780  case $target in
1781  i?86-*)                 llvm_cv_target_arch="x86" ;;
1782  amd64-* | x86_64-*)     llvm_cv_target_arch="X86_64" ;;
1783  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1784  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1785  *)                      llvm_cv_target_arch="Unknown" ;;
1786esac
1787fi
1788echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1789echo "${ECHO_T}$llvm_cv_target_arch" >&6
1790
1791if test "$llvm_cv_target_arch" = "Unknown" ; then
1792  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1793echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1794fi
1795
1796ARCH=$llvm_cv_target_arch
1797
1798
1799ac_ext=c
1800ac_cpp='$CPP $CPPFLAGS'
1801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1803ac_compiler_gnu=$ac_cv_c_compiler_gnu
1804if test -n "$ac_tool_prefix"; then
1805  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1806set dummy ${ac_tool_prefix}gcc; ac_word=$2
1807echo "$as_me:$LINENO: checking for $ac_word" >&5
1808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809if test "${ac_cv_prog_CC+set}" = set; then
1810  echo $ECHO_N "(cached) $ECHO_C" >&6
1811else
1812  if test -n "$CC"; then
1813  ac_cv_prog_CC="$CC" # Let the user override the test.
1814else
1815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816for as_dir in $PATH
1817do
1818  IFS=$as_save_IFS
1819  test -z "$as_dir" && as_dir=.
1820  for ac_exec_ext in '' $ac_executable_extensions; do
1821  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1822    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1823    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824    break 2
1825  fi
1826done
1827done
1828
1829fi
1830fi
1831CC=$ac_cv_prog_CC
1832if test -n "$CC"; then
1833  echo "$as_me:$LINENO: result: $CC" >&5
1834echo "${ECHO_T}$CC" >&6
1835else
1836  echo "$as_me:$LINENO: result: no" >&5
1837echo "${ECHO_T}no" >&6
1838fi
1839
1840fi
1841if test -z "$ac_cv_prog_CC"; then
1842  ac_ct_CC=$CC
1843  # Extract the first word of "gcc", so it can be a program name with args.
1844set dummy gcc; ac_word=$2
1845echo "$as_me:$LINENO: checking for $ac_word" >&5
1846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1848  echo $ECHO_N "(cached) $ECHO_C" >&6
1849else
1850  if test -n "$ac_ct_CC"; then
1851  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1852else
1853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854for as_dir in $PATH
1855do
1856  IFS=$as_save_IFS
1857  test -z "$as_dir" && as_dir=.
1858  for ac_exec_ext in '' $ac_executable_extensions; do
1859  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860    ac_cv_prog_ac_ct_CC="gcc"
1861    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862    break 2
1863  fi
1864done
1865done
1866
1867fi
1868fi
1869ac_ct_CC=$ac_cv_prog_ac_ct_CC
1870if test -n "$ac_ct_CC"; then
1871  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1872echo "${ECHO_T}$ac_ct_CC" >&6
1873else
1874  echo "$as_me:$LINENO: result: no" >&5
1875echo "${ECHO_T}no" >&6
1876fi
1877
1878  CC=$ac_ct_CC
1879else
1880  CC="$ac_cv_prog_CC"
1881fi
1882
1883if test -z "$CC"; then
1884  if test -n "$ac_tool_prefix"; then
1885  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1886set dummy ${ac_tool_prefix}cc; ac_word=$2
1887echo "$as_me:$LINENO: checking for $ac_word" >&5
1888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889if test "${ac_cv_prog_CC+set}" = set; then
1890  echo $ECHO_N "(cached) $ECHO_C" >&6
1891else
1892  if test -n "$CC"; then
1893  ac_cv_prog_CC="$CC" # Let the user override the test.
1894else
1895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896for as_dir in $PATH
1897do
1898  IFS=$as_save_IFS
1899  test -z "$as_dir" && as_dir=.
1900  for ac_exec_ext in '' $ac_executable_extensions; do
1901  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902    ac_cv_prog_CC="${ac_tool_prefix}cc"
1903    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904    break 2
1905  fi
1906done
1907done
1908
1909fi
1910fi
1911CC=$ac_cv_prog_CC
1912if test -n "$CC"; then
1913  echo "$as_me:$LINENO: result: $CC" >&5
1914echo "${ECHO_T}$CC" >&6
1915else
1916  echo "$as_me:$LINENO: result: no" >&5
1917echo "${ECHO_T}no" >&6
1918fi
1919
1920fi
1921if test -z "$ac_cv_prog_CC"; then
1922  ac_ct_CC=$CC
1923  # Extract the first word of "cc", so it can be a program name with args.
1924set dummy cc; ac_word=$2
1925echo "$as_me:$LINENO: checking for $ac_word" >&5
1926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1927if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1928  echo $ECHO_N "(cached) $ECHO_C" >&6
1929else
1930  if test -n "$ac_ct_CC"; then
1931  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1932else
1933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934for as_dir in $PATH
1935do
1936  IFS=$as_save_IFS
1937  test -z "$as_dir" && as_dir=.
1938  for ac_exec_ext in '' $ac_executable_extensions; do
1939  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1940    ac_cv_prog_ac_ct_CC="cc"
1941    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942    break 2
1943  fi
1944done
1945done
1946
1947fi
1948fi
1949ac_ct_CC=$ac_cv_prog_ac_ct_CC
1950if test -n "$ac_ct_CC"; then
1951  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1952echo "${ECHO_T}$ac_ct_CC" >&6
1953else
1954  echo "$as_me:$LINENO: result: no" >&5
1955echo "${ECHO_T}no" >&6
1956fi
1957
1958  CC=$ac_ct_CC
1959else
1960  CC="$ac_cv_prog_CC"
1961fi
1962
1963fi
1964if test -z "$CC"; then
1965  # Extract the first word of "cc", so it can be a program name with args.
1966set dummy cc; ac_word=$2
1967echo "$as_me:$LINENO: checking for $ac_word" >&5
1968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969if test "${ac_cv_prog_CC+set}" = set; then
1970  echo $ECHO_N "(cached) $ECHO_C" >&6
1971else
1972  if test -n "$CC"; then
1973  ac_cv_prog_CC="$CC" # Let the user override the test.
1974else
1975  ac_prog_rejected=no
1976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977for as_dir in $PATH
1978do
1979  IFS=$as_save_IFS
1980  test -z "$as_dir" && as_dir=.
1981  for ac_exec_ext in '' $ac_executable_extensions; do
1982  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1983    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1984       ac_prog_rejected=yes
1985       continue
1986     fi
1987    ac_cv_prog_CC="cc"
1988    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989    break 2
1990  fi
1991done
1992done
1993
1994if test $ac_prog_rejected = yes; then
1995  # We found a bogon in the path, so make sure we never use it.
1996  set dummy $ac_cv_prog_CC
1997  shift
1998  if test $# != 0; then
1999    # We chose a different compiler from the bogus one.
2000    # However, it has the same basename, so the bogon will be chosen
2001    # first if we set CC to just the basename; use the full file name.
2002    shift
2003    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2004  fi
2005fi
2006fi
2007fi
2008CC=$ac_cv_prog_CC
2009if test -n "$CC"; then
2010  echo "$as_me:$LINENO: result: $CC" >&5
2011echo "${ECHO_T}$CC" >&6
2012else
2013  echo "$as_me:$LINENO: result: no" >&5
2014echo "${ECHO_T}no" >&6
2015fi
2016
2017fi
2018if test -z "$CC"; then
2019  if test -n "$ac_tool_prefix"; then
2020  for ac_prog in cl
2021  do
2022    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2023set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2024echo "$as_me:$LINENO: checking for $ac_word" >&5
2025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2026if test "${ac_cv_prog_CC+set}" = set; then
2027  echo $ECHO_N "(cached) $ECHO_C" >&6
2028else
2029  if test -n "$CC"; then
2030  ac_cv_prog_CC="$CC" # Let the user override the test.
2031else
2032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033for as_dir in $PATH
2034do
2035  IFS=$as_save_IFS
2036  test -z "$as_dir" && as_dir=.
2037  for ac_exec_ext in '' $ac_executable_extensions; do
2038  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2039    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2040    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041    break 2
2042  fi
2043done
2044done
2045
2046fi
2047fi
2048CC=$ac_cv_prog_CC
2049if test -n "$CC"; then
2050  echo "$as_me:$LINENO: result: $CC" >&5
2051echo "${ECHO_T}$CC" >&6
2052else
2053  echo "$as_me:$LINENO: result: no" >&5
2054echo "${ECHO_T}no" >&6
2055fi
2056
2057    test -n "$CC" && break
2058  done
2059fi
2060if test -z "$CC"; then
2061  ac_ct_CC=$CC
2062  for ac_prog in cl
2063do
2064  # Extract the first word of "$ac_prog", so it can be a program name with args.
2065set dummy $ac_prog; ac_word=$2
2066echo "$as_me:$LINENO: checking for $ac_word" >&5
2067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2068if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2069  echo $ECHO_N "(cached) $ECHO_C" >&6
2070else
2071  if test -n "$ac_ct_CC"; then
2072  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2073else
2074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075for as_dir in $PATH
2076do
2077  IFS=$as_save_IFS
2078  test -z "$as_dir" && as_dir=.
2079  for ac_exec_ext in '' $ac_executable_extensions; do
2080  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2081    ac_cv_prog_ac_ct_CC="$ac_prog"
2082    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083    break 2
2084  fi
2085done
2086done
2087
2088fi
2089fi
2090ac_ct_CC=$ac_cv_prog_ac_ct_CC
2091if test -n "$ac_ct_CC"; then
2092  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2093echo "${ECHO_T}$ac_ct_CC" >&6
2094else
2095  echo "$as_me:$LINENO: result: no" >&5
2096echo "${ECHO_T}no" >&6
2097fi
2098
2099  test -n "$ac_ct_CC" && break
2100done
2101
2102  CC=$ac_ct_CC
2103fi
2104
2105fi
2106
2107
2108test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2109See \`config.log' for more details." >&5
2110echo "$as_me: error: no acceptable C compiler found in \$PATH
2111See \`config.log' for more details." >&2;}
2112   { (exit 1); exit 1; }; }
2113
2114# Provide some information about the compiler.
2115echo "$as_me:$LINENO:" \
2116     "checking for C compiler version" >&5
2117ac_compiler=`set X $ac_compile; echo $2`
2118{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2119  (eval $ac_compiler --version </dev/null >&5) 2>&5
2120  ac_status=$?
2121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122  (exit $ac_status); }
2123{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2124  (eval $ac_compiler -v </dev/null >&5) 2>&5
2125  ac_status=$?
2126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127  (exit $ac_status); }
2128{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2129  (eval $ac_compiler -V </dev/null >&5) 2>&5
2130  ac_status=$?
2131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132  (exit $ac_status); }
2133
2134cat >conftest.$ac_ext <<_ACEOF
2135/* confdefs.h.  */
2136_ACEOF
2137cat confdefs.h >>conftest.$ac_ext
2138cat >>conftest.$ac_ext <<_ACEOF
2139/* end confdefs.h.  */
2140
2141int
2142main ()
2143{
2144
2145  ;
2146  return 0;
2147}
2148_ACEOF
2149ac_clean_files_save=$ac_clean_files
2150ac_clean_files="$ac_clean_files a.out a.exe b.out"
2151# Try to create an executable without -o first, disregard a.out.
2152# It will help us diagnose broken compilers, and finding out an intuition
2153# of exeext.
2154echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2155echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2156ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2157if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2158  (eval $ac_link_default) 2>&5
2159  ac_status=$?
2160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161  (exit $ac_status); }; then
2162  # Find the output, starting from the most likely.  This scheme is
2163# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2164# resort.
2165
2166# Be careful to initialize this variable, since it used to be cached.
2167# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2168ac_cv_exeext=
2169# b.out is created by i960 compilers.
2170for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2171do
2172  test -f "$ac_file" || continue
2173  case $ac_file in
2174    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2175	;;
2176    conftest.$ac_ext )
2177	# This is the source file.
2178	;;
2179    [ab].out )
2180	# We found the default executable, but exeext='' is most
2181	# certainly right.
2182	break;;
2183    *.* )
2184	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2185	# FIXME: I believe we export ac_cv_exeext for Libtool,
2186	# but it would be cool to find out if it's true.  Does anybody
2187	# maintain Libtool? --akim.
2188	export ac_cv_exeext
2189	break;;
2190    * )
2191	break;;
2192  esac
2193done
2194else
2195  echo "$as_me: failed program was:" >&5
2196sed 's/^/| /' conftest.$ac_ext >&5
2197
2198{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2199See \`config.log' for more details." >&5
2200echo "$as_me: error: C compiler cannot create executables
2201See \`config.log' for more details." >&2;}
2202   { (exit 77); exit 77; }; }
2203fi
2204
2205ac_exeext=$ac_cv_exeext
2206echo "$as_me:$LINENO: result: $ac_file" >&5
2207echo "${ECHO_T}$ac_file" >&6
2208
2209# Check the compiler produces executables we can run.  If not, either
2210# the compiler is broken, or we cross compile.
2211echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2212echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2213# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2214# If not cross compiling, check that we can run a simple program.
2215if test "$cross_compiling" != yes; then
2216  if { ac_try='./$ac_file'
2217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218  (eval $ac_try) 2>&5
2219  ac_status=$?
2220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221  (exit $ac_status); }; }; then
2222    cross_compiling=no
2223  else
2224    if test "$cross_compiling" = maybe; then
2225	cross_compiling=yes
2226    else
2227	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2228If you meant to cross compile, use \`--host'.
2229See \`config.log' for more details." >&5
2230echo "$as_me: error: cannot run C compiled programs.
2231If you meant to cross compile, use \`--host'.
2232See \`config.log' for more details." >&2;}
2233   { (exit 1); exit 1; }; }
2234    fi
2235  fi
2236fi
2237echo "$as_me:$LINENO: result: yes" >&5
2238echo "${ECHO_T}yes" >&6
2239
2240rm -f a.out a.exe conftest$ac_cv_exeext b.out
2241ac_clean_files=$ac_clean_files_save
2242# Check the compiler produces executables we can run.  If not, either
2243# the compiler is broken, or we cross compile.
2244echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2245echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2246echo "$as_me:$LINENO: result: $cross_compiling" >&5
2247echo "${ECHO_T}$cross_compiling" >&6
2248
2249echo "$as_me:$LINENO: checking for suffix of executables" >&5
2250echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2252  (eval $ac_link) 2>&5
2253  ac_status=$?
2254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255  (exit $ac_status); }; then
2256  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2257# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2258# work properly (i.e., refer to `conftest.exe'), while it won't with
2259# `rm'.
2260for ac_file in conftest.exe conftest conftest.*; do
2261  test -f "$ac_file" || continue
2262  case $ac_file in
2263    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2264    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2265	  export ac_cv_exeext
2266	  break;;
2267    * ) break;;
2268  esac
2269done
2270else
2271  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2272See \`config.log' for more details." >&5
2273echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2274See \`config.log' for more details." >&2;}
2275   { (exit 1); exit 1; }; }
2276fi
2277
2278rm -f conftest$ac_cv_exeext
2279echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2280echo "${ECHO_T}$ac_cv_exeext" >&6
2281
2282rm -f conftest.$ac_ext
2283EXEEXT=$ac_cv_exeext
2284ac_exeext=$EXEEXT
2285echo "$as_me:$LINENO: checking for suffix of object files" >&5
2286echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2287if test "${ac_cv_objext+set}" = set; then
2288  echo $ECHO_N "(cached) $ECHO_C" >&6
2289else
2290  cat >conftest.$ac_ext <<_ACEOF
2291/* confdefs.h.  */
2292_ACEOF
2293cat confdefs.h >>conftest.$ac_ext
2294cat >>conftest.$ac_ext <<_ACEOF
2295/* end confdefs.h.  */
2296
2297int
2298main ()
2299{
2300
2301  ;
2302  return 0;
2303}
2304_ACEOF
2305rm -f conftest.o conftest.obj
2306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307  (eval $ac_compile) 2>&5
2308  ac_status=$?
2309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310  (exit $ac_status); }; then
2311  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2312  case $ac_file in
2313    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2314    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2315       break;;
2316  esac
2317done
2318else
2319  echo "$as_me: failed program was:" >&5
2320sed 's/^/| /' conftest.$ac_ext >&5
2321
2322{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2323See \`config.log' for more details." >&5
2324echo "$as_me: error: cannot compute suffix of object files: cannot compile
2325See \`config.log' for more details." >&2;}
2326   { (exit 1); exit 1; }; }
2327fi
2328
2329rm -f conftest.$ac_cv_objext conftest.$ac_ext
2330fi
2331echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2332echo "${ECHO_T}$ac_cv_objext" >&6
2333OBJEXT=$ac_cv_objext
2334ac_objext=$OBJEXT
2335echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2336echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2337if test "${ac_cv_c_compiler_gnu+set}" = set; then
2338  echo $ECHO_N "(cached) $ECHO_C" >&6
2339else
2340  cat >conftest.$ac_ext <<_ACEOF
2341/* confdefs.h.  */
2342_ACEOF
2343cat confdefs.h >>conftest.$ac_ext
2344cat >>conftest.$ac_ext <<_ACEOF
2345/* end confdefs.h.  */
2346
2347int
2348main ()
2349{
2350#ifndef __GNUC__
2351       choke me
2352#endif
2353
2354  ;
2355  return 0;
2356}
2357_ACEOF
2358rm -f conftest.$ac_objext
2359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2360  (eval $ac_compile) 2>conftest.er1
2361  ac_status=$?
2362  grep -v '^ *+' conftest.er1 >conftest.err
2363  rm -f conftest.er1
2364  cat conftest.err >&5
2365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366  (exit $ac_status); } &&
2367	 { ac_try='test -z "$ac_c_werror_flag"
2368			 || test ! -s conftest.err'
2369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370  (eval $ac_try) 2>&5
2371  ac_status=$?
2372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373  (exit $ac_status); }; } &&
2374	 { ac_try='test -s conftest.$ac_objext'
2375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376  (eval $ac_try) 2>&5
2377  ac_status=$?
2378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379  (exit $ac_status); }; }; then
2380  ac_compiler_gnu=yes
2381else
2382  echo "$as_me: failed program was:" >&5
2383sed 's/^/| /' conftest.$ac_ext >&5
2384
2385ac_compiler_gnu=no
2386fi
2387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2388ac_cv_c_compiler_gnu=$ac_compiler_gnu
2389
2390fi
2391echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2392echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2393GCC=`test $ac_compiler_gnu = yes && echo yes`
2394ac_test_CFLAGS=${CFLAGS+set}
2395ac_save_CFLAGS=$CFLAGS
2396CFLAGS="-g"
2397echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2398echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2399if test "${ac_cv_prog_cc_g+set}" = set; then
2400  echo $ECHO_N "(cached) $ECHO_C" >&6
2401else
2402  cat >conftest.$ac_ext <<_ACEOF
2403/* confdefs.h.  */
2404_ACEOF
2405cat confdefs.h >>conftest.$ac_ext
2406cat >>conftest.$ac_ext <<_ACEOF
2407/* end confdefs.h.  */
2408
2409int
2410main ()
2411{
2412
2413  ;
2414  return 0;
2415}
2416_ACEOF
2417rm -f conftest.$ac_objext
2418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2419  (eval $ac_compile) 2>conftest.er1
2420  ac_status=$?
2421  grep -v '^ *+' conftest.er1 >conftest.err
2422  rm -f conftest.er1
2423  cat conftest.err >&5
2424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425  (exit $ac_status); } &&
2426	 { ac_try='test -z "$ac_c_werror_flag"
2427			 || test ! -s conftest.err'
2428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429  (eval $ac_try) 2>&5
2430  ac_status=$?
2431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432  (exit $ac_status); }; } &&
2433	 { ac_try='test -s conftest.$ac_objext'
2434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435  (eval $ac_try) 2>&5
2436  ac_status=$?
2437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438  (exit $ac_status); }; }; then
2439  ac_cv_prog_cc_g=yes
2440else
2441  echo "$as_me: failed program was:" >&5
2442sed 's/^/| /' conftest.$ac_ext >&5
2443
2444ac_cv_prog_cc_g=no
2445fi
2446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2447fi
2448echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2449echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2450if test "$ac_test_CFLAGS" = set; then
2451  CFLAGS=$ac_save_CFLAGS
2452elif test $ac_cv_prog_cc_g = yes; then
2453  if test "$GCC" = yes; then
2454    CFLAGS="-g -O2"
2455  else
2456    CFLAGS="-g"
2457  fi
2458else
2459  if test "$GCC" = yes; then
2460    CFLAGS="-O2"
2461  else
2462    CFLAGS=
2463  fi
2464fi
2465echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2466echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2467if test "${ac_cv_prog_cc_stdc+set}" = set; then
2468  echo $ECHO_N "(cached) $ECHO_C" >&6
2469else
2470  ac_cv_prog_cc_stdc=no
2471ac_save_CC=$CC
2472cat >conftest.$ac_ext <<_ACEOF
2473/* confdefs.h.  */
2474_ACEOF
2475cat confdefs.h >>conftest.$ac_ext
2476cat >>conftest.$ac_ext <<_ACEOF
2477/* end confdefs.h.  */
2478#include <stdarg.h>
2479#include <stdio.h>
2480#include <sys/types.h>
2481#include <sys/stat.h>
2482/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2483struct buf { int x; };
2484FILE * (*rcsopen) (struct buf *, struct stat *, int);
2485static char *e (p, i)
2486     char **p;
2487     int i;
2488{
2489  return p[i];
2490}
2491static char *f (char * (*g) (char **, int), char **p, ...)
2492{
2493  char *s;
2494  va_list v;
2495  va_start (v,p);
2496  s = g (p, va_arg (v,int));
2497  va_end (v);
2498  return s;
2499}
2500
2501/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2502   function prototypes and stuff, but not '\xHH' hex character constants.
2503   These don't provoke an error unfortunately, instead are silently treated
2504   as 'x'.  The following induces an error, until -std1 is added to get
2505   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2506   array size at least.  It's necessary to write '\x00'==0 to get something
2507   that's true only with -std1.  */
2508int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2509
2510int test (int i, double x);
2511struct s1 {int (*f) (int a);};
2512struct s2 {int (*f) (double a);};
2513int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2514int argc;
2515char **argv;
2516int
2517main ()
2518{
2519return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2520  ;
2521  return 0;
2522}
2523_ACEOF
2524# Don't try gcc -ansi; that turns off useful extensions and
2525# breaks some systems' header files.
2526# AIX			-qlanglvl=ansi
2527# Ultrix and OSF/1	-std1
2528# HP-UX 10.20 and later	-Ae
2529# HP-UX older versions	-Aa -D_HPUX_SOURCE
2530# SVR4			-Xc -D__EXTENSIONS__
2531for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2532do
2533  CC="$ac_save_CC $ac_arg"
2534  rm -f conftest.$ac_objext
2535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2536  (eval $ac_compile) 2>conftest.er1
2537  ac_status=$?
2538  grep -v '^ *+' conftest.er1 >conftest.err
2539  rm -f conftest.er1
2540  cat conftest.err >&5
2541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542  (exit $ac_status); } &&
2543	 { ac_try='test -z "$ac_c_werror_flag"
2544			 || test ! -s conftest.err'
2545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546  (eval $ac_try) 2>&5
2547  ac_status=$?
2548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549  (exit $ac_status); }; } &&
2550	 { ac_try='test -s conftest.$ac_objext'
2551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552  (eval $ac_try) 2>&5
2553  ac_status=$?
2554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555  (exit $ac_status); }; }; then
2556  ac_cv_prog_cc_stdc=$ac_arg
2557break
2558else
2559  echo "$as_me: failed program was:" >&5
2560sed 's/^/| /' conftest.$ac_ext >&5
2561
2562fi
2563rm -f conftest.err conftest.$ac_objext
2564done
2565rm -f conftest.$ac_ext conftest.$ac_objext
2566CC=$ac_save_CC
2567
2568fi
2569
2570case "x$ac_cv_prog_cc_stdc" in
2571  x|xno)
2572    echo "$as_me:$LINENO: result: none needed" >&5
2573echo "${ECHO_T}none needed" >&6 ;;
2574  *)
2575    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2576echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2577    CC="$CC $ac_cv_prog_cc_stdc" ;;
2578esac
2579
2580# Some people use a C++ compiler to compile C.  Since we use `exit',
2581# in C++ we need to declare it.  In case someone uses the same compiler
2582# for both compiling C and C++ we need to have the C++ compiler decide
2583# the declaration of exit, since it's the most demanding environment.
2584cat >conftest.$ac_ext <<_ACEOF
2585#ifndef __cplusplus
2586  choke me
2587#endif
2588_ACEOF
2589rm -f conftest.$ac_objext
2590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591  (eval $ac_compile) 2>conftest.er1
2592  ac_status=$?
2593  grep -v '^ *+' conftest.er1 >conftest.err
2594  rm -f conftest.er1
2595  cat conftest.err >&5
2596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597  (exit $ac_status); } &&
2598	 { ac_try='test -z "$ac_c_werror_flag"
2599			 || test ! -s conftest.err'
2600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601  (eval $ac_try) 2>&5
2602  ac_status=$?
2603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604  (exit $ac_status); }; } &&
2605	 { ac_try='test -s conftest.$ac_objext'
2606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607  (eval $ac_try) 2>&5
2608  ac_status=$?
2609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610  (exit $ac_status); }; }; then
2611  for ac_declaration in \
2612   '' \
2613   'extern "C" void std::exit (int) throw (); using std::exit;' \
2614   'extern "C" void std::exit (int); using std::exit;' \
2615   'extern "C" void exit (int) throw ();' \
2616   'extern "C" void exit (int);' \
2617   'void exit (int);'
2618do
2619  cat >conftest.$ac_ext <<_ACEOF
2620/* confdefs.h.  */
2621_ACEOF
2622cat confdefs.h >>conftest.$ac_ext
2623cat >>conftest.$ac_ext <<_ACEOF
2624/* end confdefs.h.  */
2625$ac_declaration
2626#include <stdlib.h>
2627int
2628main ()
2629{
2630exit (42);
2631  ;
2632  return 0;
2633}
2634_ACEOF
2635rm -f conftest.$ac_objext
2636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2637  (eval $ac_compile) 2>conftest.er1
2638  ac_status=$?
2639  grep -v '^ *+' conftest.er1 >conftest.err
2640  rm -f conftest.er1
2641  cat conftest.err >&5
2642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643  (exit $ac_status); } &&
2644	 { ac_try='test -z "$ac_c_werror_flag"
2645			 || test ! -s conftest.err'
2646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647  (eval $ac_try) 2>&5
2648  ac_status=$?
2649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650  (exit $ac_status); }; } &&
2651	 { ac_try='test -s conftest.$ac_objext'
2652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653  (eval $ac_try) 2>&5
2654  ac_status=$?
2655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656  (exit $ac_status); }; }; then
2657  :
2658else
2659  echo "$as_me: failed program was:" >&5
2660sed 's/^/| /' conftest.$ac_ext >&5
2661
2662continue
2663fi
2664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2665  cat >conftest.$ac_ext <<_ACEOF
2666/* confdefs.h.  */
2667_ACEOF
2668cat confdefs.h >>conftest.$ac_ext
2669cat >>conftest.$ac_ext <<_ACEOF
2670/* end confdefs.h.  */
2671$ac_declaration
2672int
2673main ()
2674{
2675exit (42);
2676  ;
2677  return 0;
2678}
2679_ACEOF
2680rm -f conftest.$ac_objext
2681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2682  (eval $ac_compile) 2>conftest.er1
2683  ac_status=$?
2684  grep -v '^ *+' conftest.er1 >conftest.err
2685  rm -f conftest.er1
2686  cat conftest.err >&5
2687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688  (exit $ac_status); } &&
2689	 { ac_try='test -z "$ac_c_werror_flag"
2690			 || test ! -s conftest.err'
2691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692  (eval $ac_try) 2>&5
2693  ac_status=$?
2694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695  (exit $ac_status); }; } &&
2696	 { ac_try='test -s conftest.$ac_objext'
2697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698  (eval $ac_try) 2>&5
2699  ac_status=$?
2700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701  (exit $ac_status); }; }; then
2702  break
2703else
2704  echo "$as_me: failed program was:" >&5
2705sed 's/^/| /' conftest.$ac_ext >&5
2706
2707fi
2708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2709done
2710rm -f conftest*
2711if test -n "$ac_declaration"; then
2712  echo '#ifdef __cplusplus' >>confdefs.h
2713  echo $ac_declaration      >>confdefs.h
2714  echo '#endif'             >>confdefs.h
2715fi
2716
2717else
2718  echo "$as_me: failed program was:" >&5
2719sed 's/^/| /' conftest.$ac_ext >&5
2720
2721fi
2722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2723ac_ext=c
2724ac_cpp='$CPP $CPPFLAGS'
2725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2727ac_compiler_gnu=$ac_cv_c_compiler_gnu
2728
2729
2730echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2731echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2732if test "${ac_cv_c_bigendian+set}" = set; then
2733  echo $ECHO_N "(cached) $ECHO_C" >&6
2734else
2735  # See if sys/param.h defines the BYTE_ORDER macro.
2736cat >conftest.$ac_ext <<_ACEOF
2737/* confdefs.h.  */
2738_ACEOF
2739cat confdefs.h >>conftest.$ac_ext
2740cat >>conftest.$ac_ext <<_ACEOF
2741/* end confdefs.h.  */
2742#include <sys/types.h>
2743#include <sys/param.h>
2744
2745int
2746main ()
2747{
2748#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2749 bogus endian macros
2750#endif
2751
2752  ;
2753  return 0;
2754}
2755_ACEOF
2756rm -f conftest.$ac_objext
2757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758  (eval $ac_compile) 2>conftest.er1
2759  ac_status=$?
2760  grep -v '^ *+' conftest.er1 >conftest.err
2761  rm -f conftest.er1
2762  cat conftest.err >&5
2763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764  (exit $ac_status); } &&
2765	 { ac_try='test -z "$ac_c_werror_flag"
2766			 || test ! -s conftest.err'
2767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768  (eval $ac_try) 2>&5
2769  ac_status=$?
2770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771  (exit $ac_status); }; } &&
2772	 { ac_try='test -s conftest.$ac_objext'
2773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774  (eval $ac_try) 2>&5
2775  ac_status=$?
2776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777  (exit $ac_status); }; }; then
2778  # It does; now see whether it defined to BIG_ENDIAN or not.
2779cat >conftest.$ac_ext <<_ACEOF
2780/* confdefs.h.  */
2781_ACEOF
2782cat confdefs.h >>conftest.$ac_ext
2783cat >>conftest.$ac_ext <<_ACEOF
2784/* end confdefs.h.  */
2785#include <sys/types.h>
2786#include <sys/param.h>
2787
2788int
2789main ()
2790{
2791#if BYTE_ORDER != BIG_ENDIAN
2792 not big endian
2793#endif
2794
2795  ;
2796  return 0;
2797}
2798_ACEOF
2799rm -f conftest.$ac_objext
2800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801  (eval $ac_compile) 2>conftest.er1
2802  ac_status=$?
2803  grep -v '^ *+' conftest.er1 >conftest.err
2804  rm -f conftest.er1
2805  cat conftest.err >&5
2806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807  (exit $ac_status); } &&
2808	 { ac_try='test -z "$ac_c_werror_flag"
2809			 || test ! -s conftest.err'
2810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811  (eval $ac_try) 2>&5
2812  ac_status=$?
2813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814  (exit $ac_status); }; } &&
2815	 { ac_try='test -s conftest.$ac_objext'
2816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817  (eval $ac_try) 2>&5
2818  ac_status=$?
2819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820  (exit $ac_status); }; }; then
2821  ac_cv_c_bigendian=yes
2822else
2823  echo "$as_me: failed program was:" >&5
2824sed 's/^/| /' conftest.$ac_ext >&5
2825
2826ac_cv_c_bigendian=no
2827fi
2828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2829else
2830  echo "$as_me: failed program was:" >&5
2831sed 's/^/| /' conftest.$ac_ext >&5
2832
2833# It does not; compile a test program.
2834if test "$cross_compiling" = yes; then
2835  # try to guess the endianness by grepping values into an object file
2836  ac_cv_c_bigendian=unknown
2837  cat >conftest.$ac_ext <<_ACEOF
2838/* confdefs.h.  */
2839_ACEOF
2840cat confdefs.h >>conftest.$ac_ext
2841cat >>conftest.$ac_ext <<_ACEOF
2842/* end confdefs.h.  */
2843short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2844short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2845void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2846short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2847short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2848void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2849int
2850main ()
2851{
2852 _ascii (); _ebcdic ();
2853  ;
2854  return 0;
2855}
2856_ACEOF
2857rm -f conftest.$ac_objext
2858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2859  (eval $ac_compile) 2>conftest.er1
2860  ac_status=$?
2861  grep -v '^ *+' conftest.er1 >conftest.err
2862  rm -f conftest.er1
2863  cat conftest.err >&5
2864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865  (exit $ac_status); } &&
2866	 { ac_try='test -z "$ac_c_werror_flag"
2867			 || test ! -s conftest.err'
2868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869  (eval $ac_try) 2>&5
2870  ac_status=$?
2871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872  (exit $ac_status); }; } &&
2873	 { ac_try='test -s conftest.$ac_objext'
2874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875  (eval $ac_try) 2>&5
2876  ac_status=$?
2877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878  (exit $ac_status); }; }; then
2879  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2880  ac_cv_c_bigendian=yes
2881fi
2882if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2883  if test "$ac_cv_c_bigendian" = unknown; then
2884    ac_cv_c_bigendian=no
2885  else
2886    # finding both strings is unlikely to happen, but who knows?
2887    ac_cv_c_bigendian=unknown
2888  fi
2889fi
2890else
2891  echo "$as_me: failed program was:" >&5
2892sed 's/^/| /' conftest.$ac_ext >&5
2893
2894fi
2895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2896else
2897  cat >conftest.$ac_ext <<_ACEOF
2898/* confdefs.h.  */
2899_ACEOF
2900cat confdefs.h >>conftest.$ac_ext
2901cat >>conftest.$ac_ext <<_ACEOF
2902/* end confdefs.h.  */
2903int
2904main ()
2905{
2906  /* Are we little or big endian?  From Harbison&Steele.  */
2907  union
2908  {
2909    long l;
2910    char c[sizeof (long)];
2911  } u;
2912  u.l = 1;
2913  exit (u.c[sizeof (long) - 1] == 1);
2914}
2915_ACEOF
2916rm -f conftest$ac_exeext
2917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2918  (eval $ac_link) 2>&5
2919  ac_status=$?
2920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923  (eval $ac_try) 2>&5
2924  ac_status=$?
2925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926  (exit $ac_status); }; }; then
2927  ac_cv_c_bigendian=no
2928else
2929  echo "$as_me: program exited with status $ac_status" >&5
2930echo "$as_me: failed program was:" >&5
2931sed 's/^/| /' conftest.$ac_ext >&5
2932
2933( exit $ac_status )
2934ac_cv_c_bigendian=yes
2935fi
2936rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2937fi
2938fi
2939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2940fi
2941echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2942echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2943case $ac_cv_c_bigendian in
2944  yes)
2945    ENDIAN=big
2946 ;;
2947  no)
2948    ENDIAN=little
2949 ;;
2950  *)
2951    { { echo "$as_me:$LINENO: error: unknown endianness
2952presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2953echo "$as_me: error: unknown endianness
2954presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2955   { (exit 1); exit 1; }; } ;;
2956esac
2957
2958
2959
2960# Check whether --enable-optimized or --disable-optimized was given.
2961if test "${enable_optimized+set}" = set; then
2962  enableval="$enable_optimized"
2963
2964else
2965  enableval=no
2966fi;
2967if test ${enableval} = "no" ; then
2968  ENABLE_OPTIMIZED=
2969
2970else
2971  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2972
2973fi
2974
2975# Check whether --enable-jit or --disable-jit was given.
2976if test "${enable_jit+set}" = set; then
2977  enableval="$enable_jit"
2978
2979else
2980  enableval=default
2981fi;
2982if test ${enableval} = "no"
2983then
2984  JIT=
2985
2986else
2987  case "$llvm_cv_target_arch" in
2988    x86)     JIT=TARGET_HAS_JIT=1
2989 ;;
2990    Sparc)   JIT=TARGET_HAS_JIT=1
2991 ;;
2992    PowerPC) JIT=TARGET_HAS_JIT=1
2993 ;;
2994    x86_64)  JIT=
2995 ;;
2996    *)       JIT=
2997 ;;
2998  esac
2999fi
3000
3001# Check whether --enable-doxygen or --disable-doxygen was given.
3002if test "${enable_doxygen+set}" = set; then
3003  enableval="$enable_doxygen"
3004
3005else
3006  enableval=default
3007fi;
3008case "$enableval" in
3009  yes) ENABLE_DOXYGEN=1
3010 ;;
3011  no)  ENABLE_DOXYGEN=0
3012 ;;
3013  default) ENABLE_DOXYGEN=0
3014 ;;
3015  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3016echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3017   { (exit 1); exit 1; }; } ;;
3018esac
3019
3020
3021# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3022if test "${with_llvmgccdir+set}" = set; then
3023  withval="$with_llvmgccdir"
3024
3025else
3026  withval=default
3027fi;
3028case "$withval" in
3029  default) WITH_LLVMGCCDIR=default ;;
3030  /*)      WITH_LLVMGCCDIR=$withval ;;
3031  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3032echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3033   { (exit 1); exit 1; }; } ;;
3034esac
3035
3036
3037ac_ext=c
3038ac_cpp='$CPP $CPPFLAGS'
3039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3041ac_compiler_gnu=$ac_cv_c_compiler_gnu
3042echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3043echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3044# On Suns, sometimes $CPP names a directory.
3045if test -n "$CPP" && test -d "$CPP"; then
3046  CPP=
3047fi
3048if test -z "$CPP"; then
3049  if test "${ac_cv_prog_CPP+set}" = set; then
3050  echo $ECHO_N "(cached) $ECHO_C" >&6
3051else
3052      # Double quotes because CPP needs to be expanded
3053    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3054    do
3055      ac_preproc_ok=false
3056for ac_c_preproc_warn_flag in '' yes
3057do
3058  # Use a header file that comes with gcc, so configuring glibc
3059  # with a fresh cross-compiler works.
3060  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3061  # <limits.h> exists even on freestanding compilers.
3062  # On the NeXT, cc -E runs the code through the compiler's parser,
3063  # not just through cpp. "Syntax error" is here to catch this case.
3064  cat >conftest.$ac_ext <<_ACEOF
3065/* confdefs.h.  */
3066_ACEOF
3067cat confdefs.h >>conftest.$ac_ext
3068cat >>conftest.$ac_ext <<_ACEOF
3069/* end confdefs.h.  */
3070#ifdef __STDC__
3071# include <limits.h>
3072#else
3073# include <assert.h>
3074#endif
3075		     Syntax error
3076_ACEOF
3077if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3078  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3079  ac_status=$?
3080  grep -v '^ *+' conftest.er1 >conftest.err
3081  rm -f conftest.er1
3082  cat conftest.err >&5
3083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084  (exit $ac_status); } >/dev/null; then
3085  if test -s conftest.err; then
3086    ac_cpp_err=$ac_c_preproc_warn_flag
3087    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3088  else
3089    ac_cpp_err=
3090  fi
3091else
3092  ac_cpp_err=yes
3093fi
3094if test -z "$ac_cpp_err"; then
3095  :
3096else
3097  echo "$as_me: failed program was:" >&5
3098sed 's/^/| /' conftest.$ac_ext >&5
3099
3100  # Broken: fails on valid input.
3101continue
3102fi
3103rm -f conftest.err conftest.$ac_ext
3104
3105  # OK, works on sane cases.  Now check whether non-existent headers
3106  # can be detected and how.
3107  cat >conftest.$ac_ext <<_ACEOF
3108/* confdefs.h.  */
3109_ACEOF
3110cat confdefs.h >>conftest.$ac_ext
3111cat >>conftest.$ac_ext <<_ACEOF
3112/* end confdefs.h.  */
3113#include <ac_nonexistent.h>
3114_ACEOF
3115if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3116  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3117  ac_status=$?
3118  grep -v '^ *+' conftest.er1 >conftest.err
3119  rm -f conftest.er1
3120  cat conftest.err >&5
3121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122  (exit $ac_status); } >/dev/null; then
3123  if test -s conftest.err; then
3124    ac_cpp_err=$ac_c_preproc_warn_flag
3125    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3126  else
3127    ac_cpp_err=
3128  fi
3129else
3130  ac_cpp_err=yes
3131fi
3132if test -z "$ac_cpp_err"; then
3133  # Broken: success on invalid input.
3134continue
3135else
3136  echo "$as_me: failed program was:" >&5
3137sed 's/^/| /' conftest.$ac_ext >&5
3138
3139  # Passes both tests.
3140ac_preproc_ok=:
3141break
3142fi
3143rm -f conftest.err conftest.$ac_ext
3144
3145done
3146# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3147rm -f conftest.err conftest.$ac_ext
3148if $ac_preproc_ok; then
3149  break
3150fi
3151
3152    done
3153    ac_cv_prog_CPP=$CPP
3154
3155fi
3156  CPP=$ac_cv_prog_CPP
3157else
3158  ac_cv_prog_CPP=$CPP
3159fi
3160echo "$as_me:$LINENO: result: $CPP" >&5
3161echo "${ECHO_T}$CPP" >&6
3162ac_preproc_ok=false
3163for ac_c_preproc_warn_flag in '' yes
3164do
3165  # Use a header file that comes with gcc, so configuring glibc
3166  # with a fresh cross-compiler works.
3167  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3168  # <limits.h> exists even on freestanding compilers.
3169  # On the NeXT, cc -E runs the code through the compiler's parser,
3170  # not just through cpp. "Syntax error" is here to catch this case.
3171  cat >conftest.$ac_ext <<_ACEOF
3172/* confdefs.h.  */
3173_ACEOF
3174cat confdefs.h >>conftest.$ac_ext
3175cat >>conftest.$ac_ext <<_ACEOF
3176/* end confdefs.h.  */
3177#ifdef __STDC__
3178# include <limits.h>
3179#else
3180# include <assert.h>
3181#endif
3182		     Syntax error
3183_ACEOF
3184if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3185  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3186  ac_status=$?
3187  grep -v '^ *+' conftest.er1 >conftest.err
3188  rm -f conftest.er1
3189  cat conftest.err >&5
3190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191  (exit $ac_status); } >/dev/null; then
3192  if test -s conftest.err; then
3193    ac_cpp_err=$ac_c_preproc_warn_flag
3194    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3195  else
3196    ac_cpp_err=
3197  fi
3198else
3199  ac_cpp_err=yes
3200fi
3201if test -z "$ac_cpp_err"; then
3202  :
3203else
3204  echo "$as_me: failed program was:" >&5
3205sed 's/^/| /' conftest.$ac_ext >&5
3206
3207  # Broken: fails on valid input.
3208continue
3209fi
3210rm -f conftest.err conftest.$ac_ext
3211
3212  # OK, works on sane cases.  Now check whether non-existent headers
3213  # can be detected and how.
3214  cat >conftest.$ac_ext <<_ACEOF
3215/* confdefs.h.  */
3216_ACEOF
3217cat confdefs.h >>conftest.$ac_ext
3218cat >>conftest.$ac_ext <<_ACEOF
3219/* end confdefs.h.  */
3220#include <ac_nonexistent.h>
3221_ACEOF
3222if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3223  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3224  ac_status=$?
3225  grep -v '^ *+' conftest.er1 >conftest.err
3226  rm -f conftest.er1
3227  cat conftest.err >&5
3228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229  (exit $ac_status); } >/dev/null; then
3230  if test -s conftest.err; then
3231    ac_cpp_err=$ac_c_preproc_warn_flag
3232    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3233  else
3234    ac_cpp_err=
3235  fi
3236else
3237  ac_cpp_err=yes
3238fi
3239if test -z "$ac_cpp_err"; then
3240  # Broken: success on invalid input.
3241continue
3242else
3243  echo "$as_me: failed program was:" >&5
3244sed 's/^/| /' conftest.$ac_ext >&5
3245
3246  # Passes both tests.
3247ac_preproc_ok=:
3248break
3249fi
3250rm -f conftest.err conftest.$ac_ext
3251
3252done
3253# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3254rm -f conftest.err conftest.$ac_ext
3255if $ac_preproc_ok; then
3256  :
3257else
3258  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3259See \`config.log' for more details." >&5
3260echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3261See \`config.log' for more details." >&2;}
3262   { (exit 1); exit 1; }; }
3263fi
3264
3265ac_ext=c
3266ac_cpp='$CPP $CPPFLAGS'
3267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270
3271ac_ext=c
3272ac_cpp='$CPP $CPPFLAGS'
3273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276if test -n "$ac_tool_prefix"; then
3277  for ac_prog in gcc
3278  do
3279    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3280set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3281echo "$as_me:$LINENO: checking for $ac_word" >&5
3282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3283if test "${ac_cv_prog_CC+set}" = set; then
3284  echo $ECHO_N "(cached) $ECHO_C" >&6
3285else
3286  if test -n "$CC"; then
3287  ac_cv_prog_CC="$CC" # Let the user override the test.
3288else
3289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290for as_dir in $PATH
3291do
3292  IFS=$as_save_IFS
3293  test -z "$as_dir" && as_dir=.
3294  for ac_exec_ext in '' $ac_executable_extensions; do
3295  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3296    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3297    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3298    break 2
3299  fi
3300done
3301done
3302
3303fi
3304fi
3305CC=$ac_cv_prog_CC
3306if test -n "$CC"; then
3307  echo "$as_me:$LINENO: result: $CC" >&5
3308echo "${ECHO_T}$CC" >&6
3309else
3310  echo "$as_me:$LINENO: result: no" >&5
3311echo "${ECHO_T}no" >&6
3312fi
3313
3314    test -n "$CC" && break
3315  done
3316fi
3317if test -z "$CC"; then
3318  ac_ct_CC=$CC
3319  for ac_prog in gcc
3320do
3321  # Extract the first word of "$ac_prog", so it can be a program name with args.
3322set dummy $ac_prog; ac_word=$2
3323echo "$as_me:$LINENO: checking for $ac_word" >&5
3324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3325if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3326  echo $ECHO_N "(cached) $ECHO_C" >&6
3327else
3328  if test -n "$ac_ct_CC"; then
3329  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3330else
3331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332for as_dir in $PATH
3333do
3334  IFS=$as_save_IFS
3335  test -z "$as_dir" && as_dir=.
3336  for ac_exec_ext in '' $ac_executable_extensions; do
3337  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3338    ac_cv_prog_ac_ct_CC="$ac_prog"
3339    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3340    break 2
3341  fi
3342done
3343done
3344
3345fi
3346fi
3347ac_ct_CC=$ac_cv_prog_ac_ct_CC
3348if test -n "$ac_ct_CC"; then
3349  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3350echo "${ECHO_T}$ac_ct_CC" >&6
3351else
3352  echo "$as_me:$LINENO: result: no" >&5
3353echo "${ECHO_T}no" >&6
3354fi
3355
3356  test -n "$ac_ct_CC" && break
3357done
3358
3359  CC=$ac_ct_CC
3360fi
3361
3362
3363test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3364See \`config.log' for more details." >&5
3365echo "$as_me: error: no acceptable C compiler found in \$PATH
3366See \`config.log' for more details." >&2;}
3367   { (exit 1); exit 1; }; }
3368
3369# Provide some information about the compiler.
3370echo "$as_me:$LINENO:" \
3371     "checking for C compiler version" >&5
3372ac_compiler=`set X $ac_compile; echo $2`
3373{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3374  (eval $ac_compiler --version </dev/null >&5) 2>&5
3375  ac_status=$?
3376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377  (exit $ac_status); }
3378{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3379  (eval $ac_compiler -v </dev/null >&5) 2>&5
3380  ac_status=$?
3381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382  (exit $ac_status); }
3383{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3384  (eval $ac_compiler -V </dev/null >&5) 2>&5
3385  ac_status=$?
3386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387  (exit $ac_status); }
3388
3389echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3390echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3391if test "${ac_cv_c_compiler_gnu+set}" = set; then
3392  echo $ECHO_N "(cached) $ECHO_C" >&6
3393else
3394  cat >conftest.$ac_ext <<_ACEOF
3395/* confdefs.h.  */
3396_ACEOF
3397cat confdefs.h >>conftest.$ac_ext
3398cat >>conftest.$ac_ext <<_ACEOF
3399/* end confdefs.h.  */
3400
3401int
3402main ()
3403{
3404#ifndef __GNUC__
3405       choke me
3406#endif
3407
3408  ;
3409  return 0;
3410}
3411_ACEOF
3412rm -f conftest.$ac_objext
3413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3414  (eval $ac_compile) 2>conftest.er1
3415  ac_status=$?
3416  grep -v '^ *+' conftest.er1 >conftest.err
3417  rm -f conftest.er1
3418  cat conftest.err >&5
3419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420  (exit $ac_status); } &&
3421	 { ac_try='test -z "$ac_c_werror_flag"
3422			 || test ! -s conftest.err'
3423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424  (eval $ac_try) 2>&5
3425  ac_status=$?
3426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427  (exit $ac_status); }; } &&
3428	 { ac_try='test -s conftest.$ac_objext'
3429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430  (eval $ac_try) 2>&5
3431  ac_status=$?
3432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433  (exit $ac_status); }; }; then
3434  ac_compiler_gnu=yes
3435else
3436  echo "$as_me: failed program was:" >&5
3437sed 's/^/| /' conftest.$ac_ext >&5
3438
3439ac_compiler_gnu=no
3440fi
3441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3442ac_cv_c_compiler_gnu=$ac_compiler_gnu
3443
3444fi
3445echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3446echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3447GCC=`test $ac_compiler_gnu = yes && echo yes`
3448ac_test_CFLAGS=${CFLAGS+set}
3449ac_save_CFLAGS=$CFLAGS
3450CFLAGS="-g"
3451echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3452echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3453if test "${ac_cv_prog_cc_g+set}" = set; then
3454  echo $ECHO_N "(cached) $ECHO_C" >&6
3455else
3456  cat >conftest.$ac_ext <<_ACEOF
3457/* confdefs.h.  */
3458_ACEOF
3459cat confdefs.h >>conftest.$ac_ext
3460cat >>conftest.$ac_ext <<_ACEOF
3461/* end confdefs.h.  */
3462
3463int
3464main ()
3465{
3466
3467  ;
3468  return 0;
3469}
3470_ACEOF
3471rm -f conftest.$ac_objext
3472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3473  (eval $ac_compile) 2>conftest.er1
3474  ac_status=$?
3475  grep -v '^ *+' conftest.er1 >conftest.err
3476  rm -f conftest.er1
3477  cat conftest.err >&5
3478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479  (exit $ac_status); } &&
3480	 { ac_try='test -z "$ac_c_werror_flag"
3481			 || test ! -s conftest.err'
3482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3483  (eval $ac_try) 2>&5
3484  ac_status=$?
3485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486  (exit $ac_status); }; } &&
3487	 { ac_try='test -s conftest.$ac_objext'
3488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489  (eval $ac_try) 2>&5
3490  ac_status=$?
3491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492  (exit $ac_status); }; }; then
3493  ac_cv_prog_cc_g=yes
3494else
3495  echo "$as_me: failed program was:" >&5
3496sed 's/^/| /' conftest.$ac_ext >&5
3497
3498ac_cv_prog_cc_g=no
3499fi
3500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3501fi
3502echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3503echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3504if test "$ac_test_CFLAGS" = set; then
3505  CFLAGS=$ac_save_CFLAGS
3506elif test $ac_cv_prog_cc_g = yes; then
3507  if test "$GCC" = yes; then
3508    CFLAGS="-g -O2"
3509  else
3510    CFLAGS="-g"
3511  fi
3512else
3513  if test "$GCC" = yes; then
3514    CFLAGS="-O2"
3515  else
3516    CFLAGS=
3517  fi
3518fi
3519echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3520echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3521if test "${ac_cv_prog_cc_stdc+set}" = set; then
3522  echo $ECHO_N "(cached) $ECHO_C" >&6
3523else
3524  ac_cv_prog_cc_stdc=no
3525ac_save_CC=$CC
3526cat >conftest.$ac_ext <<_ACEOF
3527/* confdefs.h.  */
3528_ACEOF
3529cat confdefs.h >>conftest.$ac_ext
3530cat >>conftest.$ac_ext <<_ACEOF
3531/* end confdefs.h.  */
3532#include <stdarg.h>
3533#include <stdio.h>
3534#include <sys/types.h>
3535#include <sys/stat.h>
3536/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3537struct buf { int x; };
3538FILE * (*rcsopen) (struct buf *, struct stat *, int);
3539static char *e (p, i)
3540     char **p;
3541     int i;
3542{
3543  return p[i];
3544}
3545static char *f (char * (*g) (char **, int), char **p, ...)
3546{
3547  char *s;
3548  va_list v;
3549  va_start (v,p);
3550  s = g (p, va_arg (v,int));
3551  va_end (v);
3552  return s;
3553}
3554
3555/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3556   function prototypes and stuff, but not '\xHH' hex character constants.
3557   These don't provoke an error unfortunately, instead are silently treated
3558   as 'x'.  The following induces an error, until -std1 is added to get
3559   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3560   array size at least.  It's necessary to write '\x00'==0 to get something
3561   that's true only with -std1.  */
3562int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3563
3564int test (int i, double x);
3565struct s1 {int (*f) (int a);};
3566struct s2 {int (*f) (double a);};
3567int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3568int argc;
3569char **argv;
3570int
3571main ()
3572{
3573return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3574  ;
3575  return 0;
3576}
3577_ACEOF
3578# Don't try gcc -ansi; that turns off useful extensions and
3579# breaks some systems' header files.
3580# AIX			-qlanglvl=ansi
3581# Ultrix and OSF/1	-std1
3582# HP-UX 10.20 and later	-Ae
3583# HP-UX older versions	-Aa -D_HPUX_SOURCE
3584# SVR4			-Xc -D__EXTENSIONS__
3585for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3586do
3587  CC="$ac_save_CC $ac_arg"
3588  rm -f conftest.$ac_objext
3589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3590  (eval $ac_compile) 2>conftest.er1
3591  ac_status=$?
3592  grep -v '^ *+' conftest.er1 >conftest.err
3593  rm -f conftest.er1
3594  cat conftest.err >&5
3595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596  (exit $ac_status); } &&
3597	 { ac_try='test -z "$ac_c_werror_flag"
3598			 || test ! -s conftest.err'
3599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600  (eval $ac_try) 2>&5
3601  ac_status=$?
3602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603  (exit $ac_status); }; } &&
3604	 { ac_try='test -s conftest.$ac_objext'
3605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606  (eval $ac_try) 2>&5
3607  ac_status=$?
3608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609  (exit $ac_status); }; }; then
3610  ac_cv_prog_cc_stdc=$ac_arg
3611break
3612else
3613  echo "$as_me: failed program was:" >&5
3614sed 's/^/| /' conftest.$ac_ext >&5
3615
3616fi
3617rm -f conftest.err conftest.$ac_objext
3618done
3619rm -f conftest.$ac_ext conftest.$ac_objext
3620CC=$ac_save_CC
3621
3622fi
3623
3624case "x$ac_cv_prog_cc_stdc" in
3625  x|xno)
3626    echo "$as_me:$LINENO: result: none needed" >&5
3627echo "${ECHO_T}none needed" >&6 ;;
3628  *)
3629    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3630echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3631    CC="$CC $ac_cv_prog_cc_stdc" ;;
3632esac
3633
3634# Some people use a C++ compiler to compile C.  Since we use `exit',
3635# in C++ we need to declare it.  In case someone uses the same compiler
3636# for both compiling C and C++ we need to have the C++ compiler decide
3637# the declaration of exit, since it's the most demanding environment.
3638cat >conftest.$ac_ext <<_ACEOF
3639#ifndef __cplusplus
3640  choke me
3641#endif
3642_ACEOF
3643rm -f conftest.$ac_objext
3644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3645  (eval $ac_compile) 2>conftest.er1
3646  ac_status=$?
3647  grep -v '^ *+' conftest.er1 >conftest.err
3648  rm -f conftest.er1
3649  cat conftest.err >&5
3650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651  (exit $ac_status); } &&
3652	 { ac_try='test -z "$ac_c_werror_flag"
3653			 || test ! -s conftest.err'
3654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655  (eval $ac_try) 2>&5
3656  ac_status=$?
3657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658  (exit $ac_status); }; } &&
3659	 { ac_try='test -s conftest.$ac_objext'
3660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661  (eval $ac_try) 2>&5
3662  ac_status=$?
3663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664  (exit $ac_status); }; }; then
3665  for ac_declaration in \
3666   '' \
3667   'extern "C" void std::exit (int) throw (); using std::exit;' \
3668   'extern "C" void std::exit (int); using std::exit;' \
3669   'extern "C" void exit (int) throw ();' \
3670   'extern "C" void exit (int);' \
3671   'void exit (int);'
3672do
3673  cat >conftest.$ac_ext <<_ACEOF
3674/* confdefs.h.  */
3675_ACEOF
3676cat confdefs.h >>conftest.$ac_ext
3677cat >>conftest.$ac_ext <<_ACEOF
3678/* end confdefs.h.  */
3679$ac_declaration
3680#include <stdlib.h>
3681int
3682main ()
3683{
3684exit (42);
3685  ;
3686  return 0;
3687}
3688_ACEOF
3689rm -f conftest.$ac_objext
3690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3691  (eval $ac_compile) 2>conftest.er1
3692  ac_status=$?
3693  grep -v '^ *+' conftest.er1 >conftest.err
3694  rm -f conftest.er1
3695  cat conftest.err >&5
3696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697  (exit $ac_status); } &&
3698	 { ac_try='test -z "$ac_c_werror_flag"
3699			 || test ! -s conftest.err'
3700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701  (eval $ac_try) 2>&5
3702  ac_status=$?
3703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704  (exit $ac_status); }; } &&
3705	 { ac_try='test -s conftest.$ac_objext'
3706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707  (eval $ac_try) 2>&5
3708  ac_status=$?
3709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710  (exit $ac_status); }; }; then
3711  :
3712else
3713  echo "$as_me: failed program was:" >&5
3714sed 's/^/| /' conftest.$ac_ext >&5
3715
3716continue
3717fi
3718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3719  cat >conftest.$ac_ext <<_ACEOF
3720/* confdefs.h.  */
3721_ACEOF
3722cat confdefs.h >>conftest.$ac_ext
3723cat >>conftest.$ac_ext <<_ACEOF
3724/* end confdefs.h.  */
3725$ac_declaration
3726int
3727main ()
3728{
3729exit (42);
3730  ;
3731  return 0;
3732}
3733_ACEOF
3734rm -f conftest.$ac_objext
3735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3736  (eval $ac_compile) 2>conftest.er1
3737  ac_status=$?
3738  grep -v '^ *+' conftest.er1 >conftest.err
3739  rm -f conftest.er1
3740  cat conftest.err >&5
3741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742  (exit $ac_status); } &&
3743	 { ac_try='test -z "$ac_c_werror_flag"
3744			 || test ! -s conftest.err'
3745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746  (eval $ac_try) 2>&5
3747  ac_status=$?
3748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749  (exit $ac_status); }; } &&
3750	 { ac_try='test -s conftest.$ac_objext'
3751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752  (eval $ac_try) 2>&5
3753  ac_status=$?
3754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755  (exit $ac_status); }; }; then
3756  break
3757else
3758  echo "$as_me: failed program was:" >&5
3759sed 's/^/| /' conftest.$ac_ext >&5
3760
3761fi
3762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3763done
3764rm -f conftest*
3765if test -n "$ac_declaration"; then
3766  echo '#ifdef __cplusplus' >>confdefs.h
3767  echo $ac_declaration      >>confdefs.h
3768  echo '#endif'             >>confdefs.h
3769fi
3770
3771else
3772  echo "$as_me: failed program was:" >&5
3773sed 's/^/| /' conftest.$ac_ext >&5
3774
3775fi
3776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3777ac_ext=c
3778ac_cpp='$CPP $CPPFLAGS'
3779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782
3783ac_ext=cc
3784ac_cpp='$CXXCPP $CPPFLAGS'
3785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3788if test -n "$ac_tool_prefix"; then
3789  for ac_prog in $CCC g++
3790  do
3791    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3792set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3793echo "$as_me:$LINENO: checking for $ac_word" >&5
3794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3795if test "${ac_cv_prog_CXX+set}" = set; then
3796  echo $ECHO_N "(cached) $ECHO_C" >&6
3797else
3798  if test -n "$CXX"; then
3799  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3800else
3801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802for as_dir in $PATH
3803do
3804  IFS=$as_save_IFS
3805  test -z "$as_dir" && as_dir=.
3806  for ac_exec_ext in '' $ac_executable_extensions; do
3807  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3808    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3809    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3810    break 2
3811  fi
3812done
3813done
3814
3815fi
3816fi
3817CXX=$ac_cv_prog_CXX
3818if test -n "$CXX"; then
3819  echo "$as_me:$LINENO: result: $CXX" >&5
3820echo "${ECHO_T}$CXX" >&6
3821else
3822  echo "$as_me:$LINENO: result: no" >&5
3823echo "${ECHO_T}no" >&6
3824fi
3825
3826    test -n "$CXX" && break
3827  done
3828fi
3829if test -z "$CXX"; then
3830  ac_ct_CXX=$CXX
3831  for ac_prog in $CCC g++
3832do
3833  # Extract the first word of "$ac_prog", so it can be a program name with args.
3834set dummy $ac_prog; ac_word=$2
3835echo "$as_me:$LINENO: checking for $ac_word" >&5
3836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3837if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3838  echo $ECHO_N "(cached) $ECHO_C" >&6
3839else
3840  if test -n "$ac_ct_CXX"; then
3841  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3842else
3843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844for as_dir in $PATH
3845do
3846  IFS=$as_save_IFS
3847  test -z "$as_dir" && as_dir=.
3848  for ac_exec_ext in '' $ac_executable_extensions; do
3849  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3850    ac_cv_prog_ac_ct_CXX="$ac_prog"
3851    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3852    break 2
3853  fi
3854done
3855done
3856
3857fi
3858fi
3859ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3860if test -n "$ac_ct_CXX"; then
3861  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3862echo "${ECHO_T}$ac_ct_CXX" >&6
3863else
3864  echo "$as_me:$LINENO: result: no" >&5
3865echo "${ECHO_T}no" >&6
3866fi
3867
3868  test -n "$ac_ct_CXX" && break
3869done
3870test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3871
3872  CXX=$ac_ct_CXX
3873fi
3874
3875
3876# Provide some information about the compiler.
3877echo "$as_me:$LINENO:" \
3878     "checking for C++ compiler version" >&5
3879ac_compiler=`set X $ac_compile; echo $2`
3880{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3881  (eval $ac_compiler --version </dev/null >&5) 2>&5
3882  ac_status=$?
3883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884  (exit $ac_status); }
3885{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3886  (eval $ac_compiler -v </dev/null >&5) 2>&5
3887  ac_status=$?
3888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889  (exit $ac_status); }
3890{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3891  (eval $ac_compiler -V </dev/null >&5) 2>&5
3892  ac_status=$?
3893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894  (exit $ac_status); }
3895
3896echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3897echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3898if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3899  echo $ECHO_N "(cached) $ECHO_C" >&6
3900else
3901  cat >conftest.$ac_ext <<_ACEOF
3902/* confdefs.h.  */
3903_ACEOF
3904cat confdefs.h >>conftest.$ac_ext
3905cat >>conftest.$ac_ext <<_ACEOF
3906/* end confdefs.h.  */
3907
3908int
3909main ()
3910{
3911#ifndef __GNUC__
3912       choke me
3913#endif
3914
3915  ;
3916  return 0;
3917}
3918_ACEOF
3919rm -f conftest.$ac_objext
3920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3921  (eval $ac_compile) 2>conftest.er1
3922  ac_status=$?
3923  grep -v '^ *+' conftest.er1 >conftest.err
3924  rm -f conftest.er1
3925  cat conftest.err >&5
3926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927  (exit $ac_status); } &&
3928	 { ac_try='test -z "$ac_cxx_werror_flag"
3929			 || test ! -s conftest.err'
3930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931  (eval $ac_try) 2>&5
3932  ac_status=$?
3933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934  (exit $ac_status); }; } &&
3935	 { ac_try='test -s conftest.$ac_objext'
3936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937  (eval $ac_try) 2>&5
3938  ac_status=$?
3939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940  (exit $ac_status); }; }; then
3941  ac_compiler_gnu=yes
3942else
3943  echo "$as_me: failed program was:" >&5
3944sed 's/^/| /' conftest.$ac_ext >&5
3945
3946ac_compiler_gnu=no
3947fi
3948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3949ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3950
3951fi
3952echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3953echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3954GXX=`test $ac_compiler_gnu = yes && echo yes`
3955ac_test_CXXFLAGS=${CXXFLAGS+set}
3956ac_save_CXXFLAGS=$CXXFLAGS
3957CXXFLAGS="-g"
3958echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3959echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3960if test "${ac_cv_prog_cxx_g+set}" = set; then
3961  echo $ECHO_N "(cached) $ECHO_C" >&6
3962else
3963  cat >conftest.$ac_ext <<_ACEOF
3964/* confdefs.h.  */
3965_ACEOF
3966cat confdefs.h >>conftest.$ac_ext
3967cat >>conftest.$ac_ext <<_ACEOF
3968/* end confdefs.h.  */
3969
3970int
3971main ()
3972{
3973
3974  ;
3975  return 0;
3976}
3977_ACEOF
3978rm -f conftest.$ac_objext
3979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980  (eval $ac_compile) 2>conftest.er1
3981  ac_status=$?
3982  grep -v '^ *+' conftest.er1 >conftest.err
3983  rm -f conftest.er1
3984  cat conftest.err >&5
3985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986  (exit $ac_status); } &&
3987	 { ac_try='test -z "$ac_cxx_werror_flag"
3988			 || test ! -s conftest.err'
3989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990  (eval $ac_try) 2>&5
3991  ac_status=$?
3992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993  (exit $ac_status); }; } &&
3994	 { ac_try='test -s conftest.$ac_objext'
3995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996  (eval $ac_try) 2>&5
3997  ac_status=$?
3998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999  (exit $ac_status); }; }; then
4000  ac_cv_prog_cxx_g=yes
4001else
4002  echo "$as_me: failed program was:" >&5
4003sed 's/^/| /' conftest.$ac_ext >&5
4004
4005ac_cv_prog_cxx_g=no
4006fi
4007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4008fi
4009echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4010echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4011if test "$ac_test_CXXFLAGS" = set; then
4012  CXXFLAGS=$ac_save_CXXFLAGS
4013elif test $ac_cv_prog_cxx_g = yes; then
4014  if test "$GXX" = yes; then
4015    CXXFLAGS="-g -O2"
4016  else
4017    CXXFLAGS="-g"
4018  fi
4019else
4020  if test "$GXX" = yes; then
4021    CXXFLAGS="-O2"
4022  else
4023    CXXFLAGS=
4024  fi
4025fi
4026for ac_declaration in \
4027   '' \
4028   'extern "C" void std::exit (int) throw (); using std::exit;' \
4029   'extern "C" void std::exit (int); using std::exit;' \
4030   'extern "C" void exit (int) throw ();' \
4031   'extern "C" void exit (int);' \
4032   'void exit (int);'
4033do
4034  cat >conftest.$ac_ext <<_ACEOF
4035/* confdefs.h.  */
4036_ACEOF
4037cat confdefs.h >>conftest.$ac_ext
4038cat >>conftest.$ac_ext <<_ACEOF
4039/* end confdefs.h.  */
4040$ac_declaration
4041#include <stdlib.h>
4042int
4043main ()
4044{
4045exit (42);
4046  ;
4047  return 0;
4048}
4049_ACEOF
4050rm -f conftest.$ac_objext
4051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4052  (eval $ac_compile) 2>conftest.er1
4053  ac_status=$?
4054  grep -v '^ *+' conftest.er1 >conftest.err
4055  rm -f conftest.er1
4056  cat conftest.err >&5
4057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058  (exit $ac_status); } &&
4059	 { ac_try='test -z "$ac_cxx_werror_flag"
4060			 || test ! -s conftest.err'
4061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4062  (eval $ac_try) 2>&5
4063  ac_status=$?
4064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065  (exit $ac_status); }; } &&
4066	 { ac_try='test -s conftest.$ac_objext'
4067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068  (eval $ac_try) 2>&5
4069  ac_status=$?
4070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071  (exit $ac_status); }; }; then
4072  :
4073else
4074  echo "$as_me: failed program was:" >&5
4075sed 's/^/| /' conftest.$ac_ext >&5
4076
4077continue
4078fi
4079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4080  cat >conftest.$ac_ext <<_ACEOF
4081/* confdefs.h.  */
4082_ACEOF
4083cat confdefs.h >>conftest.$ac_ext
4084cat >>conftest.$ac_ext <<_ACEOF
4085/* end confdefs.h.  */
4086$ac_declaration
4087int
4088main ()
4089{
4090exit (42);
4091  ;
4092  return 0;
4093}
4094_ACEOF
4095rm -f conftest.$ac_objext
4096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4097  (eval $ac_compile) 2>conftest.er1
4098  ac_status=$?
4099  grep -v '^ *+' conftest.er1 >conftest.err
4100  rm -f conftest.er1
4101  cat conftest.err >&5
4102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103  (exit $ac_status); } &&
4104	 { ac_try='test -z "$ac_cxx_werror_flag"
4105			 || test ! -s conftest.err'
4106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107  (eval $ac_try) 2>&5
4108  ac_status=$?
4109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110  (exit $ac_status); }; } &&
4111	 { ac_try='test -s conftest.$ac_objext'
4112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113  (eval $ac_try) 2>&5
4114  ac_status=$?
4115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116  (exit $ac_status); }; }; then
4117  break
4118else
4119  echo "$as_me: failed program was:" >&5
4120sed 's/^/| /' conftest.$ac_ext >&5
4121
4122fi
4123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4124done
4125rm -f conftest*
4126if test -n "$ac_declaration"; then
4127  echo '#ifdef __cplusplus' >>confdefs.h
4128  echo $ac_declaration      >>confdefs.h
4129  echo '#endif'             >>confdefs.h
4130fi
4131
4132ac_ext=c
4133ac_cpp='$CPP $CPPFLAGS'
4134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4136ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137
4138echo "$as_me:$LINENO: checking " >&5
4139echo $ECHO_N "checking ... $ECHO_C" >&6
4140if test "${ac_cv_has_flex+set}" = set; then
4141  echo $ECHO_N "(cached) $ECHO_C" >&6
4142else
4143  for ac_prog in flex lex
4144do
4145  # Extract the first word of "$ac_prog", so it can be a program name with args.
4146set dummy $ac_prog; ac_word=$2
4147echo "$as_me:$LINENO: checking for $ac_word" >&5
4148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4149if test "${ac_cv_prog_LEX+set}" = set; then
4150  echo $ECHO_N "(cached) $ECHO_C" >&6
4151else
4152  if test -n "$LEX"; then
4153  ac_cv_prog_LEX="$LEX" # Let the user override the test.
4154else
4155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156for as_dir in $PATH
4157do
4158  IFS=$as_save_IFS
4159  test -z "$as_dir" && as_dir=.
4160  for ac_exec_ext in '' $ac_executable_extensions; do
4161  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162    ac_cv_prog_LEX="$ac_prog"
4163    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164    break 2
4165  fi
4166done
4167done
4168
4169fi
4170fi
4171LEX=$ac_cv_prog_LEX
4172if test -n "$LEX"; then
4173  echo "$as_me:$LINENO: result: $LEX" >&5
4174echo "${ECHO_T}$LEX" >&6
4175else
4176  echo "$as_me:$LINENO: result: no" >&5
4177echo "${ECHO_T}no" >&6
4178fi
4179
4180  test -n "$LEX" && break
4181done
4182test -n "$LEX" || LEX=":"
4183
4184if test -z "$LEXLIB"
4185then
4186  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4187echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4188if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4189  echo $ECHO_N "(cached) $ECHO_C" >&6
4190else
4191  ac_check_lib_save_LIBS=$LIBS
4192LIBS="-lfl  $LIBS"
4193cat >conftest.$ac_ext <<_ACEOF
4194/* confdefs.h.  */
4195_ACEOF
4196cat confdefs.h >>conftest.$ac_ext
4197cat >>conftest.$ac_ext <<_ACEOF
4198/* end confdefs.h.  */
4199
4200/* Override any gcc2 internal prototype to avoid an error.  */
4201#ifdef __cplusplus
4202extern "C"
4203#endif
4204/* We use char because int might match the return type of a gcc2
4205   builtin and then its argument prototype would still apply.  */
4206char yywrap ();
4207int
4208main ()
4209{
4210yywrap ();
4211  ;
4212  return 0;
4213}
4214_ACEOF
4215rm -f conftest.$ac_objext conftest$ac_exeext
4216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4217  (eval $ac_link) 2>conftest.er1
4218  ac_status=$?
4219  grep -v '^ *+' conftest.er1 >conftest.err
4220  rm -f conftest.er1
4221  cat conftest.err >&5
4222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223  (exit $ac_status); } &&
4224	 { ac_try='test -z "$ac_c_werror_flag"
4225			 || test ! -s conftest.err'
4226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227  (eval $ac_try) 2>&5
4228  ac_status=$?
4229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230  (exit $ac_status); }; } &&
4231	 { ac_try='test -s conftest$ac_exeext'
4232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233  (eval $ac_try) 2>&5
4234  ac_status=$?
4235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236  (exit $ac_status); }; }; then
4237  ac_cv_lib_fl_yywrap=yes
4238else
4239  echo "$as_me: failed program was:" >&5
4240sed 's/^/| /' conftest.$ac_ext >&5
4241
4242ac_cv_lib_fl_yywrap=no
4243fi
4244rm -f conftest.err conftest.$ac_objext \
4245      conftest$ac_exeext conftest.$ac_ext
4246LIBS=$ac_check_lib_save_LIBS
4247fi
4248echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4249echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4250if test $ac_cv_lib_fl_yywrap = yes; then
4251  LEXLIB="-lfl"
4252else
4253  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4254echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4255if test "${ac_cv_lib_l_yywrap+set}" = set; then
4256  echo $ECHO_N "(cached) $ECHO_C" >&6
4257else
4258  ac_check_lib_save_LIBS=$LIBS
4259LIBS="-ll  $LIBS"
4260cat >conftest.$ac_ext <<_ACEOF
4261/* confdefs.h.  */
4262_ACEOF
4263cat confdefs.h >>conftest.$ac_ext
4264cat >>conftest.$ac_ext <<_ACEOF
4265/* end confdefs.h.  */
4266
4267/* Override any gcc2 internal prototype to avoid an error.  */
4268#ifdef __cplusplus
4269extern "C"
4270#endif
4271/* We use char because int might match the return type of a gcc2
4272   builtin and then its argument prototype would still apply.  */
4273char yywrap ();
4274int
4275main ()
4276{
4277yywrap ();
4278  ;
4279  return 0;
4280}
4281_ACEOF
4282rm -f conftest.$ac_objext conftest$ac_exeext
4283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4284  (eval $ac_link) 2>conftest.er1
4285  ac_status=$?
4286  grep -v '^ *+' conftest.er1 >conftest.err
4287  rm -f conftest.er1
4288  cat conftest.err >&5
4289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290  (exit $ac_status); } &&
4291	 { ac_try='test -z "$ac_c_werror_flag"
4292			 || test ! -s conftest.err'
4293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294  (eval $ac_try) 2>&5
4295  ac_status=$?
4296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297  (exit $ac_status); }; } &&
4298	 { ac_try='test -s conftest$ac_exeext'
4299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300  (eval $ac_try) 2>&5
4301  ac_status=$?
4302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303  (exit $ac_status); }; }; then
4304  ac_cv_lib_l_yywrap=yes
4305else
4306  echo "$as_me: failed program was:" >&5
4307sed 's/^/| /' conftest.$ac_ext >&5
4308
4309ac_cv_lib_l_yywrap=no
4310fi
4311rm -f conftest.err conftest.$ac_objext \
4312      conftest$ac_exeext conftest.$ac_ext
4313LIBS=$ac_check_lib_save_LIBS
4314fi
4315echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4316echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4317if test $ac_cv_lib_l_yywrap = yes; then
4318  LEXLIB="-ll"
4319fi
4320
4321fi
4322
4323fi
4324
4325if test "x$LEX" != "x:"; then
4326  echo "$as_me:$LINENO: checking lex output file root" >&5
4327echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4328if test "${ac_cv_prog_lex_root+set}" = set; then
4329  echo $ECHO_N "(cached) $ECHO_C" >&6
4330else
4331  # The minimal lex program is just a single line: %%.  But some broken lexes
4332# (Solaris, I think it was) want two %% lines, so accommodate them.
4333cat >conftest.l <<_ACEOF
4334%%
4335%%
4336_ACEOF
4337{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4338  (eval $LEX conftest.l) 2>&5
4339  ac_status=$?
4340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341  (exit $ac_status); }
4342if test -f lex.yy.c; then
4343  ac_cv_prog_lex_root=lex.yy
4344elif test -f lexyy.c; then
4345  ac_cv_prog_lex_root=lexyy
4346else
4347  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4348echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4349   { (exit 1); exit 1; }; }
4350fi
4351fi
4352echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4353echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4354rm -f conftest.l
4355LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4356
4357echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4358echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4359if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4360  echo $ECHO_N "(cached) $ECHO_C" >&6
4361else
4362  # POSIX says lex can declare yytext either as a pointer or an array; the
4363# default is implementation-dependent. Figure out which it is, since
4364# not all implementations provide the %pointer and %array declarations.
4365ac_cv_prog_lex_yytext_pointer=no
4366echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4367ac_save_LIBS=$LIBS
4368LIBS="$LIBS $LEXLIB"
4369cat >conftest.$ac_ext <<_ACEOF
4370`cat $LEX_OUTPUT_ROOT.c`
4371_ACEOF
4372rm -f conftest.$ac_objext conftest$ac_exeext
4373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4374  (eval $ac_link) 2>conftest.er1
4375  ac_status=$?
4376  grep -v '^ *+' conftest.er1 >conftest.err
4377  rm -f conftest.er1
4378  cat conftest.err >&5
4379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380  (exit $ac_status); } &&
4381	 { ac_try='test -z "$ac_c_werror_flag"
4382			 || test ! -s conftest.err'
4383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384  (eval $ac_try) 2>&5
4385  ac_status=$?
4386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387  (exit $ac_status); }; } &&
4388	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
4394  ac_cv_prog_lex_yytext_pointer=yes
4395else
4396  echo "$as_me: failed program was:" >&5
4397sed 's/^/| /' conftest.$ac_ext >&5
4398
4399fi
4400rm -f conftest.err conftest.$ac_objext \
4401      conftest$ac_exeext conftest.$ac_ext
4402LIBS=$ac_save_LIBS
4403rm -f "${LEX_OUTPUT_ROOT}.c"
4404
4405fi
4406echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4407echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4408if test $ac_cv_prog_lex_yytext_pointer = yes; then
4409
4410cat >>confdefs.h <<\_ACEOF
4411#define YYTEXT_POINTER 1
4412_ACEOF
4413
4414fi
4415
4416fi
4417
4418fi
4419echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4420echo "${ECHO_T}$ac_cv_has_flex" >&6
4421if test "$LEX" != "flex"; then
4422  { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4423echo "$as_me: error: flex not found but required" >&2;}
4424   { (exit 1); exit 1; }; }
4425else
4426  FLEX=flex
4427
4428fi
4429
4430echo "$as_me:$LINENO: checking " >&5
4431echo $ECHO_N "checking ... $ECHO_C" >&6
4432if test "${llvm_cv_has_bison+set}" = set; then
4433  echo $ECHO_N "(cached) $ECHO_C" >&6
4434else
4435  for ac_prog in 'bison -y' byacc
4436do
4437  # Extract the first word of "$ac_prog", so it can be a program name with args.
4438set dummy $ac_prog; ac_word=$2
4439echo "$as_me:$LINENO: checking for $ac_word" >&5
4440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4441if test "${ac_cv_prog_YACC+set}" = set; then
4442  echo $ECHO_N "(cached) $ECHO_C" >&6
4443else
4444  if test -n "$YACC"; then
4445  ac_cv_prog_YACC="$YACC" # Let the user override the test.
4446else
4447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448for as_dir in $PATH
4449do
4450  IFS=$as_save_IFS
4451  test -z "$as_dir" && as_dir=.
4452  for ac_exec_ext in '' $ac_executable_extensions; do
4453  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4454    ac_cv_prog_YACC="$ac_prog"
4455    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456    break 2
4457  fi
4458done
4459done
4460
4461fi
4462fi
4463YACC=$ac_cv_prog_YACC
4464if test -n "$YACC"; then
4465  echo "$as_me:$LINENO: result: $YACC" >&5
4466echo "${ECHO_T}$YACC" >&6
4467else
4468  echo "$as_me:$LINENO: result: no" >&5
4469echo "${ECHO_T}no" >&6
4470fi
4471
4472  test -n "$YACC" && break
4473done
4474test -n "$YACC" || YACC="yacc"
4475
4476fi
4477echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4478echo "${ECHO_T}$llvm_cv_has_bison" >&6
4479if test "$YACC" != "bison -y"; then
4480  { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4481echo "$as_me: error: bison not found but required" >&2;}
4482   { (exit 1); exit 1; }; }
4483else
4484  BISON=bison
4485
4486fi
4487
4488echo "$as_me:$LINENO: checking for GNU make" >&5
4489echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4490if test "${llvm_cv_gnu_make_command+set}" = set; then
4491  echo $ECHO_N "(cached) $ECHO_C" >&6
4492else
4493  llvm_cv_gnu_make_command=''
4494 for a in "$MAKE" make gmake gnumake ; do
4495  if test -z "$a" ; then continue ; fi ;
4496  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4497  then
4498   llvm_cv_gnu_make_command=$a ;
4499   break;
4500  fi
4501 done
4502fi
4503echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4504echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4505 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4506   ifGNUmake='' ;
4507 else
4508   ifGNUmake='#' ;
4509   echo "$as_me:$LINENO: result: \"Not found\"" >&5
4510echo "${ECHO_T}\"Not found\"" >&6;
4511 fi
4512
4513
4514echo "$as_me:$LINENO: checking whether ln -s works" >&5
4515echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4516LN_S=$as_ln_s
4517if test "$LN_S" = "ln -s"; then
4518  echo "$as_me:$LINENO: result: yes" >&5
4519echo "${ECHO_T}yes" >&6
4520else
4521  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4522echo "${ECHO_T}no, using $LN_S" >&6
4523fi
4524
4525# Extract the first word of "cmp", so it can be a program name with args.
4526set dummy cmp; ac_word=$2
4527echo "$as_me:$LINENO: checking for $ac_word" >&5
4528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4529if test "${ac_cv_path_CMP+set}" = set; then
4530  echo $ECHO_N "(cached) $ECHO_C" >&6
4531else
4532  case $CMP in
4533  [\\/]* | ?:[\\/]*)
4534  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4535  ;;
4536  *)
4537  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538for as_dir in $PATH
4539do
4540  IFS=$as_save_IFS
4541  test -z "$as_dir" && as_dir=.
4542  for ac_exec_ext in '' $ac_executable_extensions; do
4543  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4544    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4545    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546    break 2
4547  fi
4548done
4549done
4550
4551  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4552  ;;
4553esac
4554fi
4555CMP=$ac_cv_path_CMP
4556
4557if test -n "$CMP"; then
4558  echo "$as_me:$LINENO: result: $CMP" >&5
4559echo "${ECHO_T}$CMP" >&6
4560else
4561  echo "$as_me:$LINENO: result: no" >&5
4562echo "${ECHO_T}no" >&6
4563fi
4564
4565# Extract the first word of "cp", so it can be a program name with args.
4566set dummy cp; ac_word=$2
4567echo "$as_me:$LINENO: checking for $ac_word" >&5
4568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4569if test "${ac_cv_path_CP+set}" = set; then
4570  echo $ECHO_N "(cached) $ECHO_C" >&6
4571else
4572  case $CP in
4573  [\\/]* | ?:[\\/]*)
4574  ac_cv_path_CP="$CP" # Let the user override the test with a path.
4575  ;;
4576  *)
4577  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578for as_dir in $PATH
4579do
4580  IFS=$as_save_IFS
4581  test -z "$as_dir" && as_dir=.
4582  for ac_exec_ext in '' $ac_executable_extensions; do
4583  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4584    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4585    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586    break 2
4587  fi
4588done
4589done
4590
4591  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4592  ;;
4593esac
4594fi
4595CP=$ac_cv_path_CP
4596
4597if test -n "$CP"; then
4598  echo "$as_me:$LINENO: result: $CP" >&5
4599echo "${ECHO_T}$CP" >&6
4600else
4601  echo "$as_me:$LINENO: result: no" >&5
4602echo "${ECHO_T}no" >&6
4603fi
4604
4605# Extract the first word of "date", so it can be a program name with args.
4606set dummy date; ac_word=$2
4607echo "$as_me:$LINENO: checking for $ac_word" >&5
4608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4609if test "${ac_cv_path_DATE+set}" = set; then
4610  echo $ECHO_N "(cached) $ECHO_C" >&6
4611else
4612  case $DATE in
4613  [\\/]* | ?:[\\/]*)
4614  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4615  ;;
4616  *)
4617  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618for as_dir in $PATH
4619do
4620  IFS=$as_save_IFS
4621  test -z "$as_dir" && as_dir=.
4622  for ac_exec_ext in '' $ac_executable_extensions; do
4623  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4624    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4625    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626    break 2
4627  fi
4628done
4629done
4630
4631  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4632  ;;
4633esac
4634fi
4635DATE=$ac_cv_path_DATE
4636
4637if test -n "$DATE"; then
4638  echo "$as_me:$LINENO: result: $DATE" >&5
4639echo "${ECHO_T}$DATE" >&6
4640else
4641  echo "$as_me:$LINENO: result: no" >&5
4642echo "${ECHO_T}no" >&6
4643fi
4644
4645# Extract the first word of "find", so it can be a program name with args.
4646set dummy find; ac_word=$2
4647echo "$as_me:$LINENO: checking for $ac_word" >&5
4648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4649if test "${ac_cv_path_FIND+set}" = set; then
4650  echo $ECHO_N "(cached) $ECHO_C" >&6
4651else
4652  case $FIND in
4653  [\\/]* | ?:[\\/]*)
4654  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4655  ;;
4656  *)
4657  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660  IFS=$as_save_IFS
4661  test -z "$as_dir" && as_dir=.
4662  for ac_exec_ext in '' $ac_executable_extensions; do
4663  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4665    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666    break 2
4667  fi
4668done
4669done
4670
4671  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4672  ;;
4673esac
4674fi
4675FIND=$ac_cv_path_FIND
4676
4677if test -n "$FIND"; then
4678  echo "$as_me:$LINENO: result: $FIND" >&5
4679echo "${ECHO_T}$FIND" >&6
4680else
4681  echo "$as_me:$LINENO: result: no" >&5
4682echo "${ECHO_T}no" >&6
4683fi
4684
4685# Extract the first word of "grep", so it can be a program name with args.
4686set dummy grep; ac_word=$2
4687echo "$as_me:$LINENO: checking for $ac_word" >&5
4688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4689if test "${ac_cv_path_GREP+set}" = set; then
4690  echo $ECHO_N "(cached) $ECHO_C" >&6
4691else
4692  case $GREP in
4693  [\\/]* | ?:[\\/]*)
4694  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4695  ;;
4696  *)
4697  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700  IFS=$as_save_IFS
4701  test -z "$as_dir" && as_dir=.
4702  for ac_exec_ext in '' $ac_executable_extensions; do
4703  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4705    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4706    break 2
4707  fi
4708done
4709done
4710
4711  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4712  ;;
4713esac
4714fi
4715GREP=$ac_cv_path_GREP
4716
4717if test -n "$GREP"; then
4718  echo "$as_me:$LINENO: result: $GREP" >&5
4719echo "${ECHO_T}$GREP" >&6
4720else
4721  echo "$as_me:$LINENO: result: no" >&5
4722echo "${ECHO_T}no" >&6
4723fi
4724
4725# Extract the first word of "mkdir", so it can be a program name with args.
4726set dummy mkdir; ac_word=$2
4727echo "$as_me:$LINENO: checking for $ac_word" >&5
4728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4729if test "${ac_cv_path_MKDIR+set}" = set; then
4730  echo $ECHO_N "(cached) $ECHO_C" >&6
4731else
4732  case $MKDIR in
4733  [\\/]* | ?:[\\/]*)
4734  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4735  ;;
4736  *)
4737  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738for as_dir in $PATH
4739do
4740  IFS=$as_save_IFS
4741  test -z "$as_dir" && as_dir=.
4742  for ac_exec_ext in '' $ac_executable_extensions; do
4743  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4744    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4745    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746    break 2
4747  fi
4748done
4749done
4750
4751  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4752  ;;
4753esac
4754fi
4755MKDIR=$ac_cv_path_MKDIR
4756
4757if test -n "$MKDIR"; then
4758  echo "$as_me:$LINENO: result: $MKDIR" >&5
4759echo "${ECHO_T}$MKDIR" >&6
4760else
4761  echo "$as_me:$LINENO: result: no" >&5
4762echo "${ECHO_T}no" >&6
4763fi
4764
4765# Extract the first word of "mv", so it can be a program name with args.
4766set dummy mv; ac_word=$2
4767echo "$as_me:$LINENO: checking for $ac_word" >&5
4768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4769if test "${ac_cv_path_MV+set}" = set; then
4770  echo $ECHO_N "(cached) $ECHO_C" >&6
4771else
4772  case $MV in
4773  [\\/]* | ?:[\\/]*)
4774  ac_cv_path_MV="$MV" # Let the user override the test with a path.
4775  ;;
4776  *)
4777  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778for as_dir in $PATH
4779do
4780  IFS=$as_save_IFS
4781  test -z "$as_dir" && as_dir=.
4782  for ac_exec_ext in '' $ac_executable_extensions; do
4783  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4784    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4785    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786    break 2
4787  fi
4788done
4789done
4790
4791  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4792  ;;
4793esac
4794fi
4795MV=$ac_cv_path_MV
4796
4797if test -n "$MV"; then
4798  echo "$as_me:$LINENO: result: $MV" >&5
4799echo "${ECHO_T}$MV" >&6
4800else
4801  echo "$as_me:$LINENO: result: no" >&5
4802echo "${ECHO_T}no" >&6
4803fi
4804
4805# Extract the first word of "pax", so it can be a program name with args.
4806set dummy pax; ac_word=$2
4807echo "$as_me:$LINENO: checking for $ac_word" >&5
4808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4809if test "${ac_cv_path_PAX+set}" = set; then
4810  echo $ECHO_N "(cached) $ECHO_C" >&6
4811else
4812  case $PAX in
4813  [\\/]* | ?:[\\/]*)
4814  ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4815  ;;
4816  *)
4817  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818for as_dir in $PATH
4819do
4820  IFS=$as_save_IFS
4821  test -z "$as_dir" && as_dir=.
4822  for ac_exec_ext in '' $ac_executable_extensions; do
4823  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4824    ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4825    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4826    break 2
4827  fi
4828done
4829done
4830
4831  test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4832  ;;
4833esac
4834fi
4835PAX=$ac_cv_path_PAX
4836
4837if test -n "$PAX"; then
4838  echo "$as_me:$LINENO: result: $PAX" >&5
4839echo "${ECHO_T}$PAX" >&6
4840else
4841  echo "$as_me:$LINENO: result: no" >&5
4842echo "${ECHO_T}no" >&6
4843fi
4844
4845if test -n "$ac_tool_prefix"; then
4846  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4847set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4848echo "$as_me:$LINENO: checking for $ac_word" >&5
4849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4850if test "${ac_cv_prog_RANLIB+set}" = set; then
4851  echo $ECHO_N "(cached) $ECHO_C" >&6
4852else
4853  if test -n "$RANLIB"; then
4854  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4855else
4856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857for as_dir in $PATH
4858do
4859  IFS=$as_save_IFS
4860  test -z "$as_dir" && as_dir=.
4861  for ac_exec_ext in '' $ac_executable_extensions; do
4862  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4863    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4864    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4865    break 2
4866  fi
4867done
4868done
4869
4870fi
4871fi
4872RANLIB=$ac_cv_prog_RANLIB
4873if test -n "$RANLIB"; then
4874  echo "$as_me:$LINENO: result: $RANLIB" >&5
4875echo "${ECHO_T}$RANLIB" >&6
4876else
4877  echo "$as_me:$LINENO: result: no" >&5
4878echo "${ECHO_T}no" >&6
4879fi
4880
4881fi
4882if test -z "$ac_cv_prog_RANLIB"; then
4883  ac_ct_RANLIB=$RANLIB
4884  # Extract the first word of "ranlib", so it can be a program name with args.
4885set dummy ranlib; ac_word=$2
4886echo "$as_me:$LINENO: checking for $ac_word" >&5
4887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4888if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4889  echo $ECHO_N "(cached) $ECHO_C" >&6
4890else
4891  if test -n "$ac_ct_RANLIB"; then
4892  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4893else
4894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895for as_dir in $PATH
4896do
4897  IFS=$as_save_IFS
4898  test -z "$as_dir" && as_dir=.
4899  for ac_exec_ext in '' $ac_executable_extensions; do
4900  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4901    ac_cv_prog_ac_ct_RANLIB="ranlib"
4902    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4903    break 2
4904  fi
4905done
4906done
4907
4908  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4909fi
4910fi
4911ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4912if test -n "$ac_ct_RANLIB"; then
4913  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4914echo "${ECHO_T}$ac_ct_RANLIB" >&6
4915else
4916  echo "$as_me:$LINENO: result: no" >&5
4917echo "${ECHO_T}no" >&6
4918fi
4919
4920  RANLIB=$ac_ct_RANLIB
4921else
4922  RANLIB="$ac_cv_prog_RANLIB"
4923fi
4924
4925# Extract the first word of "rm", so it can be a program name with args.
4926set dummy rm; ac_word=$2
4927echo "$as_me:$LINENO: checking for $ac_word" >&5
4928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4929if test "${ac_cv_path_RM+set}" = set; then
4930  echo $ECHO_N "(cached) $ECHO_C" >&6
4931else
4932  case $RM in
4933  [\\/]* | ?:[\\/]*)
4934  ac_cv_path_RM="$RM" # Let the user override the test with a path.
4935  ;;
4936  *)
4937  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938for as_dir in $PATH
4939do
4940  IFS=$as_save_IFS
4941  test -z "$as_dir" && as_dir=.
4942  for ac_exec_ext in '' $ac_executable_extensions; do
4943  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4944    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4945    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4946    break 2
4947  fi
4948done
4949done
4950
4951  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4952  ;;
4953esac
4954fi
4955RM=$ac_cv_path_RM
4956
4957if test -n "$RM"; then
4958  echo "$as_me:$LINENO: result: $RM" >&5
4959echo "${ECHO_T}$RM" >&6
4960else
4961  echo "$as_me:$LINENO: result: no" >&5
4962echo "${ECHO_T}no" >&6
4963fi
4964
4965# Extract the first word of "sed", so it can be a program name with args.
4966set dummy sed; ac_word=$2
4967echo "$as_me:$LINENO: checking for $ac_word" >&5
4968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4969if test "${ac_cv_path_SED+set}" = set; then
4970  echo $ECHO_N "(cached) $ECHO_C" >&6
4971else
4972  case $SED in
4973  [\\/]* | ?:[\\/]*)
4974  ac_cv_path_SED="$SED" # Let the user override the test with a path.
4975  ;;
4976  *)
4977  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978for as_dir in $PATH
4979do
4980  IFS=$as_save_IFS
4981  test -z "$as_dir" && as_dir=.
4982  for ac_exec_ext in '' $ac_executable_extensions; do
4983  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4985    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986    break 2
4987  fi
4988done
4989done
4990
4991  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4992  ;;
4993esac
4994fi
4995SED=$ac_cv_path_SED
4996
4997if test -n "$SED"; then
4998  echo "$as_me:$LINENO: result: $SED" >&5
4999echo "${ECHO_T}$SED" >&6
5000else
5001  echo "$as_me:$LINENO: result: no" >&5
5002echo "${ECHO_T}no" >&6
5003fi
5004
5005# Extract the first word of "tar", so it can be a program name with args.
5006set dummy tar; ac_word=$2
5007echo "$as_me:$LINENO: checking for $ac_word" >&5
5008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5009if test "${ac_cv_path_TAR+set}" = set; then
5010  echo $ECHO_N "(cached) $ECHO_C" >&6
5011else
5012  case $TAR in
5013  [\\/]* | ?:[\\/]*)
5014  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5015  ;;
5016  *)
5017  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018for as_dir in $PATH
5019do
5020  IFS=$as_save_IFS
5021  test -z "$as_dir" && as_dir=.
5022  for ac_exec_ext in '' $ac_executable_extensions; do
5023  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5024    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5025    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5026    break 2
5027  fi
5028done
5029done
5030
5031  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5032  ;;
5033esac
5034fi
5035TAR=$ac_cv_path_TAR
5036
5037if test -n "$TAR"; then
5038  echo "$as_me:$LINENO: result: $TAR" >&5
5039echo "${ECHO_T}$TAR" >&6
5040else
5041  echo "$as_me:$LINENO: result: no" >&5
5042echo "${ECHO_T}no" >&6
5043fi
5044
5045
5046# Find a good install program.  We prefer a C program (faster),
5047# so one script is as good as another.  But avoid the broken or
5048# incompatible versions:
5049# SysV /etc/install, /usr/sbin/install
5050# SunOS /usr/etc/install
5051# IRIX /sbin/install
5052# AIX /bin/install
5053# AmigaOS /C/install, which installs bootblocks on floppy discs
5054# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5055# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5056# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5057# OS/2's system install, which has a completely different semantic
5058# ./install, which can be erroneously created by make from ./install.sh.
5059echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5060echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5061if test -z "$INSTALL"; then
5062if test "${ac_cv_path_install+set}" = set; then
5063  echo $ECHO_N "(cached) $ECHO_C" >&6
5064else
5065  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066for as_dir in $PATH
5067do
5068  IFS=$as_save_IFS
5069  test -z "$as_dir" && as_dir=.
5070  # Account for people who put trailing slashes in PATH elements.
5071case $as_dir/ in
5072  ./ | .// | /cC/* | \
5073  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5074  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5075  /usr/ucb/* ) ;;
5076  *)
5077    # OSF1 and SCO ODT 3.0 have their own names for install.
5078    # Don't use installbsd from OSF since it installs stuff as root
5079    # by default.
5080    for ac_prog in ginstall scoinst install; do
5081      for ac_exec_ext in '' $ac_executable_extensions; do
5082	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5083	  if test $ac_prog = install &&
5084	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5085	    # AIX install.  It has an incompatible calling convention.
5086	    :
5087	  elif test $ac_prog = install &&
5088	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5089	    # program-specific install script used by HP pwplus--don't use.
5090	    :
5091	  else
5092	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5093	    break 3
5094	  fi
5095	fi
5096      done
5097    done
5098    ;;
5099esac
5100done
5101
5102
5103fi
5104  if test "${ac_cv_path_install+set}" = set; then
5105    INSTALL=$ac_cv_path_install
5106  else
5107    # As a last resort, use the slow shell script.  We don't cache a
5108    # path for INSTALL within a source directory, because that will
5109    # break other packages using the cache if that directory is
5110    # removed, or if the path is relative.
5111    INSTALL=$ac_install_sh
5112  fi
5113fi
5114echo "$as_me:$LINENO: result: $INSTALL" >&5
5115echo "${ECHO_T}$INSTALL" >&6
5116
5117# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5118# It thinks the first close brace ends the variable substitution.
5119test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5120
5121test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5122
5123test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5124
5125
5126# Extract the first word of "bzip2", so it can be a program name with args.
5127set dummy bzip2; ac_word=$2
5128echo "$as_me:$LINENO: checking for $ac_word" >&5
5129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5130if test "${ac_cv_path_BZIP2+set}" = set; then
5131  echo $ECHO_N "(cached) $ECHO_C" >&6
5132else
5133  case $BZIP2 in
5134  [\\/]* | ?:[\\/]*)
5135  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5136  ;;
5137  *)
5138  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139for as_dir in $PATH
5140do
5141  IFS=$as_save_IFS
5142  test -z "$as_dir" && as_dir=.
5143  for ac_exec_ext in '' $ac_executable_extensions; do
5144  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5145    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5146    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5147    break 2
5148  fi
5149done
5150done
5151
5152  test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5153  ;;
5154esac
5155fi
5156BZIP2=$ac_cv_path_BZIP2
5157
5158if test -n "$BZIP2"; then
5159  echo "$as_me:$LINENO: result: $BZIP2" >&5
5160echo "${ECHO_T}$BZIP2" >&6
5161else
5162  echo "$as_me:$LINENO: result: no" >&5
5163echo "${ECHO_T}no" >&6
5164fi
5165
5166# Extract the first word of "dot", so it can be a program name with args.
5167set dummy dot; ac_word=$2
5168echo "$as_me:$LINENO: checking for $ac_word" >&5
5169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5170if test "${ac_cv_path_DOT+set}" = set; then
5171  echo $ECHO_N "(cached) $ECHO_C" >&6
5172else
5173  case $DOT in
5174  [\\/]* | ?:[\\/]*)
5175  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5176  ;;
5177  *)
5178  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179for as_dir in $PATH
5180do
5181  IFS=$as_save_IFS
5182  test -z "$as_dir" && as_dir=.
5183  for ac_exec_ext in '' $ac_executable_extensions; do
5184  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5185    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5186    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5187    break 2
5188  fi
5189done
5190done
5191
5192  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5193  ;;
5194esac
5195fi
5196DOT=$ac_cv_path_DOT
5197
5198if test -n "$DOT"; then
5199  echo "$as_me:$LINENO: result: $DOT" >&5
5200echo "${ECHO_T}$DOT" >&6
5201else
5202  echo "$as_me:$LINENO: result: no" >&5
5203echo "${ECHO_T}no" >&6
5204fi
5205
5206# Extract the first word of "doxygen", so it can be a program name with args.
5207set dummy doxygen; ac_word=$2
5208echo "$as_me:$LINENO: checking for $ac_word" >&5
5209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5210if test "${ac_cv_path_DOXYGEN+set}" = set; then
5211  echo $ECHO_N "(cached) $ECHO_C" >&6
5212else
5213  case $DOXYGEN in
5214  [\\/]* | ?:[\\/]*)
5215  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5216  ;;
5217  *)
5218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219for as_dir in $PATH
5220do
5221  IFS=$as_save_IFS
5222  test -z "$as_dir" && as_dir=.
5223  for ac_exec_ext in '' $ac_executable_extensions; do
5224  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5226    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227    break 2
5228  fi
5229done
5230done
5231
5232  test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5233  ;;
5234esac
5235fi
5236DOXYGEN=$ac_cv_path_DOXYGEN
5237
5238if test -n "$DOXYGEN"; then
5239  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5240echo "${ECHO_T}$DOXYGEN" >&6
5241else
5242  echo "$as_me:$LINENO: result: no" >&5
5243echo "${ECHO_T}no" >&6
5244fi
5245
5246# Extract the first word of "etags", so it can be a program name with args.
5247set dummy etags; ac_word=$2
5248echo "$as_me:$LINENO: checking for $ac_word" >&5
5249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5250if test "${ac_cv_path_ETAGS+set}" = set; then
5251  echo $ECHO_N "(cached) $ECHO_C" >&6
5252else
5253  case $ETAGS in
5254  [\\/]* | ?:[\\/]*)
5255  ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5256  ;;
5257  *)
5258  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259for as_dir in $PATH
5260do
5261  IFS=$as_save_IFS
5262  test -z "$as_dir" && as_dir=.
5263  for ac_exec_ext in '' $ac_executable_extensions; do
5264  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5265    ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5266    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5267    break 2
5268  fi
5269done
5270done
5271
5272  test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5273  ;;
5274esac
5275fi
5276ETAGS=$ac_cv_path_ETAGS
5277
5278if test -n "$ETAGS"; then
5279  echo "$as_me:$LINENO: result: $ETAGS" >&5
5280echo "${ECHO_T}$ETAGS" >&6
5281else
5282  echo "$as_me:$LINENO: result: no" >&5
5283echo "${ECHO_T}no" >&6
5284fi
5285
5286# Extract the first word of "groff", so it can be a program name with args.
5287set dummy groff; 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_GROFF+set}" = set; then
5291  echo $ECHO_N "(cached) $ECHO_C" >&6
5292else
5293  case $GROFF in
5294  [\\/]* | ?:[\\/]*)
5295  ac_cv_path_GROFF="$GROFF" # 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_GROFF="$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_GROFF" && ac_cv_path_GROFF="true groff"
5313  ;;
5314esac
5315fi
5316GROFF=$ac_cv_path_GROFF
5317
5318if test -n "$GROFF"; then
5319  echo "$as_me:$LINENO: result: $GROFF" >&5
5320echo "${ECHO_T}$GROFF" >&6
5321else
5322  echo "$as_me:$LINENO: result: no" >&5
5323echo "${ECHO_T}no" >&6
5324fi
5325
5326# Extract the first word of "gzip", so it can be a program name with args.
5327set dummy gzip; 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_GZIP+set}" = set; then
5331  echo $ECHO_N "(cached) $ECHO_C" >&6
5332else
5333  case $GZIP in
5334  [\\/]* | ?:[\\/]*)
5335  ac_cv_path_GZIP="$GZIP" # 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_GZIP="$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_GZIP" && ac_cv_path_GZIP="true gzip"
5353  ;;
5354esac
5355fi
5356GZIP=$ac_cv_path_GZIP
5357
5358if test -n "$GZIP"; then
5359  echo "$as_me:$LINENO: result: $GZIP" >&5
5360echo "${ECHO_T}$GZIP" >&6
5361else
5362  echo "$as_me:$LINENO: result: no" >&5
5363echo "${ECHO_T}no" >&6
5364fi
5365
5366# Extract the first word of "pod2html", so it can be a program name with args.
5367set dummy pod2html; 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_POD2HTML+set}" = set; then
5371  echo $ECHO_N "(cached) $ECHO_C" >&6
5372else
5373  case $POD2HTML in
5374  [\\/]* | ?:[\\/]*)
5375  ac_cv_path_POD2HTML="$POD2HTML" # 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_POD2HTML="$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_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5393  ;;
5394esac
5395fi
5396POD2HTML=$ac_cv_path_POD2HTML
5397
5398if test -n "$POD2HTML"; then
5399  echo "$as_me:$LINENO: result: $POD2HTML" >&5
5400echo "${ECHO_T}$POD2HTML" >&6
5401else
5402  echo "$as_me:$LINENO: result: no" >&5
5403echo "${ECHO_T}no" >&6
5404fi
5405
5406# Extract the first word of "pod2man", so it can be a program name with args.
5407set dummy pod2man; 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_POD2MAN+set}" = set; then
5411  echo $ECHO_N "(cached) $ECHO_C" >&6
5412else
5413  case $POD2MAN in
5414  [\\/]* | ?:[\\/]*)
5415  ac_cv_path_POD2MAN="$POD2MAN" # 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_POD2MAN="$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_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5433  ;;
5434esac
5435fi
5436POD2MAN=$ac_cv_path_POD2MAN
5437
5438if test -n "$POD2MAN"; then
5439  echo "$as_me:$LINENO: result: $POD2MAN" >&5
5440echo "${ECHO_T}$POD2MAN" >&6
5441else
5442  echo "$as_me:$LINENO: result: no" >&5
5443echo "${ECHO_T}no" >&6
5444fi
5445
5446# Extract the first word of "runtest", so it can be a program name with args.
5447set dummy runtest; 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_RUNTEST+set}" = set; then
5451  echo $ECHO_N "(cached) $ECHO_C" >&6
5452else
5453  case $RUNTEST in
5454  [\\/]* | ?:[\\/]*)
5455  ac_cv_path_RUNTEST="$RUNTEST" # 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_RUNTEST="$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_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5473  ;;
5474esac
5475fi
5476RUNTEST=$ac_cv_path_RUNTEST
5477
5478if test -n "$RUNTEST"; then
5479  echo "$as_me:$LINENO: result: $RUNTEST" >&5
5480echo "${ECHO_T}$RUNTEST" >&6
5481else
5482  echo "$as_me:$LINENO: result: no" >&5
5483echo "${ECHO_T}no" >&6
5484fi
5485
5486
5487no_itcl=true
5488echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5489echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5490
5491# Check whether --with-tclinclude or --without-tclinclude was given.
5492if test "${with_tclinclude+set}" = set; then
5493  withval="$with_tclinclude"
5494  with_tclinclude=${withval}
5495else
5496  with_tclinclude=''
5497fi;
5498if test "${ac_cv_path_tclsh+set}" = set; then
5499  echo $ECHO_N "(cached) $ECHO_C" >&6
5500else
5501
5502if test x"${with_tclinclude}" != x ; then
5503  if test -f ${with_tclinclude}/tclsh ; then
5504    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5505  elif test -f ${with_tclinclude}/src/tclsh ; then
5506    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5507  else
5508    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5509echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5510   { (exit 1); exit 1; }; }
5511  fi
5512fi
5513
5514if test x"${ac_cv_path_tclsh}" = x ; then
5515  echo "$as_me:$LINENO: result: none" >&5
5516echo "${ECHO_T}none" >&6
5517  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
5518do
5519  # Extract the first word of "$ac_prog", so it can be a program name with args.
5520set dummy $ac_prog; ac_word=$2
5521echo "$as_me:$LINENO: checking for $ac_word" >&5
5522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5523if test "${ac_cv_path_TCLSH+set}" = set; then
5524  echo $ECHO_N "(cached) $ECHO_C" >&6
5525else
5526  case $TCLSH in
5527  [\\/]* | ?:[\\/]*)
5528  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5529  ;;
5530  *)
5531  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532for as_dir in $PATH
5533do
5534  IFS=$as_save_IFS
5535  test -z "$as_dir" && as_dir=.
5536  for ac_exec_ext in '' $ac_executable_extensions; do
5537  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5538    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5539    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5540    break 2
5541  fi
5542done
5543done
5544
5545  ;;
5546esac
5547fi
5548TCLSH=$ac_cv_path_TCLSH
5549
5550if test -n "$TCLSH"; then
5551  echo "$as_me:$LINENO: result: $TCLSH" >&5
5552echo "${ECHO_T}$TCLSH" >&6
5553else
5554  echo "$as_me:$LINENO: result: no" >&5
5555echo "${ECHO_T}no" >&6
5556fi
5557
5558  test -n "$TCLSH" && break
5559done
5560
5561  if test x"${TCLSH}" = x ; then
5562    ac_cv_path_tclsh='';
5563  else
5564    ac_cv_path_tclsh="${TCLSH}";
5565  fi
5566else
5567  echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5568echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5569  TCLSH="${ac_cv_path_tclsh}"
5570
5571fi
5572
5573fi
5574
5575# Extract the first word of "zip", so it can be a program name with args.
5576set dummy zip; ac_word=$2
5577echo "$as_me:$LINENO: checking for $ac_word" >&5
5578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5579if test "${ac_cv_path_ZIP+set}" = set; then
5580  echo $ECHO_N "(cached) $ECHO_C" >&6
5581else
5582  case $ZIP in
5583  [\\/]* | ?:[\\/]*)
5584  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5585  ;;
5586  *)
5587  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588for as_dir in $PATH
5589do
5590  IFS=$as_save_IFS
5591  test -z "$as_dir" && as_dir=.
5592  for ac_exec_ext in '' $ac_executable_extensions; do
5593  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5594    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5595    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5596    break 2
5597  fi
5598done
5599done
5600
5601  test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5602  ;;
5603esac
5604fi
5605ZIP=$ac_cv_path_ZIP
5606
5607if test -n "$ZIP"; then
5608  echo "$as_me:$LINENO: result: $ZIP" >&5
5609echo "${ECHO_T}$ZIP" >&6
5610else
5611  echo "$as_me:$LINENO: result: no" >&5
5612echo "${ECHO_T}no" >&6
5613fi
5614
5615
5616echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5617echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5618if test "${llvm_cv_link_use_r+set}" = set; then
5619  echo $ECHO_N "(cached) $ECHO_C" >&6
5620else
5621   ac_ext=c
5622ac_cpp='$CPP $CPPFLAGS'
5623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625ac_compiler_gnu=$ac_cv_c_compiler_gnu
5626
5627  oldcflags="$CFLAGS"
5628  CFLAGS="$CFLAGS -Wl,-R."
5629  cat >conftest.$ac_ext <<_ACEOF
5630/* confdefs.h.  */
5631_ACEOF
5632cat confdefs.h >>conftest.$ac_ext
5633cat >>conftest.$ac_ext <<_ACEOF
5634/* end confdefs.h.  */
5635
5636int
5637main ()
5638{
5639int main() { return 0; }
5640  ;
5641  return 0;
5642}
5643_ACEOF
5644rm -f conftest.$ac_objext conftest$ac_exeext
5645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5646  (eval $ac_link) 2>conftest.er1
5647  ac_status=$?
5648  grep -v '^ *+' conftest.er1 >conftest.err
5649  rm -f conftest.er1
5650  cat conftest.err >&5
5651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652  (exit $ac_status); } &&
5653	 { ac_try='test -z "$ac_c_werror_flag"
5654			 || test ! -s conftest.err'
5655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656  (eval $ac_try) 2>&5
5657  ac_status=$?
5658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659  (exit $ac_status); }; } &&
5660	 { ac_try='test -s conftest$ac_exeext'
5661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662  (eval $ac_try) 2>&5
5663  ac_status=$?
5664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665  (exit $ac_status); }; }; then
5666  llvm_cv_link_use_r=yes
5667else
5668  echo "$as_me: failed program was:" >&5
5669sed 's/^/| /' conftest.$ac_ext >&5
5670
5671llvm_cv_link_use_r=no
5672fi
5673rm -f conftest.err conftest.$ac_objext \
5674      conftest$ac_exeext conftest.$ac_ext
5675  CFLAGS="$oldcflags"
5676  ac_ext=c
5677ac_cpp='$CPP $CPPFLAGS'
5678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680ac_compiler_gnu=$ac_cv_c_compiler_gnu
5681
5682
5683fi
5684echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5685echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5686if test "$llvm_cv_link_use_r" = yes ; then
5687
5688cat >>confdefs.h <<\_ACEOF
5689#define HAVE_LINK_R 1
5690_ACEOF
5691
5692  fi
5693
5694
5695
5696
5697echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5698echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5699if test "${ac_cv_c_const+set}" = set; then
5700  echo $ECHO_N "(cached) $ECHO_C" >&6
5701else
5702  cat >conftest.$ac_ext <<_ACEOF
5703/* confdefs.h.  */
5704_ACEOF
5705cat confdefs.h >>conftest.$ac_ext
5706cat >>conftest.$ac_ext <<_ACEOF
5707/* end confdefs.h.  */
5708
5709int
5710main ()
5711{
5712/* FIXME: Include the comments suggested by Paul. */
5713#ifndef __cplusplus
5714  /* Ultrix mips cc rejects this.  */
5715  typedef int charset[2];
5716  const charset x;
5717  /* SunOS 4.1.1 cc rejects this.  */
5718  char const *const *ccp;
5719  char **p;
5720  /* NEC SVR4.0.2 mips cc rejects this.  */
5721  struct point {int x, y;};
5722  static struct point const zero = {0,0};
5723  /* AIX XL C 1.02.0.0 rejects this.
5724     It does not let you subtract one const X* pointer from another in
5725     an arm of an if-expression whose if-part is not a constant
5726     expression */
5727  const char *g = "string";
5728  ccp = &g + (g ? g-g : 0);
5729  /* HPUX 7.0 cc rejects these. */
5730  ++ccp;
5731  p = (char**) ccp;
5732  ccp = (char const *const *) p;
5733  { /* SCO 3.2v4 cc rejects this.  */
5734    char *t;
5735    char const *s = 0 ? (char *) 0 : (char const *) 0;
5736
5737    *t++ = 0;
5738  }
5739  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5740    int x[] = {25, 17};
5741    const int *foo = &x[0];
5742    ++foo;
5743  }
5744  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5745    typedef const int *iptr;
5746    iptr p = 0;
5747    ++p;
5748  }
5749  { /* AIX XL C 1.02.0.0 rejects this saying
5750       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5751    struct s { int j; const int *ap[3]; };
5752    struct s *b; b->j = 5;
5753  }
5754  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5755    const int foo = 10;
5756  }
5757#endif
5758
5759  ;
5760  return 0;
5761}
5762_ACEOF
5763rm -f conftest.$ac_objext
5764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5765  (eval $ac_compile) 2>conftest.er1
5766  ac_status=$?
5767  grep -v '^ *+' conftest.er1 >conftest.err
5768  rm -f conftest.er1
5769  cat conftest.err >&5
5770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771  (exit $ac_status); } &&
5772	 { ac_try='test -z "$ac_c_werror_flag"
5773			 || test ! -s conftest.err'
5774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775  (eval $ac_try) 2>&5
5776  ac_status=$?
5777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778  (exit $ac_status); }; } &&
5779	 { ac_try='test -s conftest.$ac_objext'
5780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781  (eval $ac_try) 2>&5
5782  ac_status=$?
5783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784  (exit $ac_status); }; }; then
5785  ac_cv_c_const=yes
5786else
5787  echo "$as_me: failed program was:" >&5
5788sed 's/^/| /' conftest.$ac_ext >&5
5789
5790ac_cv_c_const=no
5791fi
5792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5793fi
5794echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5795echo "${ECHO_T}$ac_cv_c_const" >&6
5796if test $ac_cv_c_const = no; then
5797
5798cat >>confdefs.h <<\_ACEOF
5799#define const
5800_ACEOF
5801
5802fi
5803
5804
5805echo "$as_me:$LINENO: checking for egrep" >&5
5806echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5807if test "${ac_cv_prog_egrep+set}" = set; then
5808  echo $ECHO_N "(cached) $ECHO_C" >&6
5809else
5810  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5811    then ac_cv_prog_egrep='grep -E'
5812    else ac_cv_prog_egrep='egrep'
5813    fi
5814fi
5815echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5816echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5817 EGREP=$ac_cv_prog_egrep
5818
5819
5820echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5821echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5822if test "${ac_cv_header_stdc+set}" = set; then
5823  echo $ECHO_N "(cached) $ECHO_C" >&6
5824else
5825  cat >conftest.$ac_ext <<_ACEOF
5826/* confdefs.h.  */
5827_ACEOF
5828cat confdefs.h >>conftest.$ac_ext
5829cat >>conftest.$ac_ext <<_ACEOF
5830/* end confdefs.h.  */
5831#include <stdlib.h>
5832#include <stdarg.h>
5833#include <string.h>
5834#include <float.h>
5835
5836int
5837main ()
5838{
5839
5840  ;
5841  return 0;
5842}
5843_ACEOF
5844rm -f conftest.$ac_objext
5845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5846  (eval $ac_compile) 2>conftest.er1
5847  ac_status=$?
5848  grep -v '^ *+' conftest.er1 >conftest.err
5849  rm -f conftest.er1
5850  cat conftest.err >&5
5851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852  (exit $ac_status); } &&
5853	 { ac_try='test -z "$ac_c_werror_flag"
5854			 || test ! -s conftest.err'
5855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856  (eval $ac_try) 2>&5
5857  ac_status=$?
5858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859  (exit $ac_status); }; } &&
5860	 { ac_try='test -s conftest.$ac_objext'
5861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862  (eval $ac_try) 2>&5
5863  ac_status=$?
5864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865  (exit $ac_status); }; }; then
5866  ac_cv_header_stdc=yes
5867else
5868  echo "$as_me: failed program was:" >&5
5869sed 's/^/| /' conftest.$ac_ext >&5
5870
5871ac_cv_header_stdc=no
5872fi
5873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5874
5875if test $ac_cv_header_stdc = yes; then
5876  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5877  cat >conftest.$ac_ext <<_ACEOF
5878/* confdefs.h.  */
5879_ACEOF
5880cat confdefs.h >>conftest.$ac_ext
5881cat >>conftest.$ac_ext <<_ACEOF
5882/* end confdefs.h.  */
5883#include <string.h>
5884
5885_ACEOF
5886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5887  $EGREP "memchr" >/dev/null 2>&1; then
5888  :
5889else
5890  ac_cv_header_stdc=no
5891fi
5892rm -f conftest*
5893
5894fi
5895
5896if test $ac_cv_header_stdc = yes; then
5897  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5898  cat >conftest.$ac_ext <<_ACEOF
5899/* confdefs.h.  */
5900_ACEOF
5901cat confdefs.h >>conftest.$ac_ext
5902cat >>conftest.$ac_ext <<_ACEOF
5903/* end confdefs.h.  */
5904#include <stdlib.h>
5905
5906_ACEOF
5907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5908  $EGREP "free" >/dev/null 2>&1; then
5909  :
5910else
5911  ac_cv_header_stdc=no
5912fi
5913rm -f conftest*
5914
5915fi
5916
5917if test $ac_cv_header_stdc = yes; then
5918  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5919  if test "$cross_compiling" = yes; then
5920  :
5921else
5922  cat >conftest.$ac_ext <<_ACEOF
5923/* confdefs.h.  */
5924_ACEOF
5925cat confdefs.h >>conftest.$ac_ext
5926cat >>conftest.$ac_ext <<_ACEOF
5927/* end confdefs.h.  */
5928#include <ctype.h>
5929#if ((' ' & 0x0FF) == 0x020)
5930# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5931# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5932#else
5933# define ISLOWER(c) \
5934		   (('a' <= (c) && (c) <= 'i') \
5935		     || ('j' <= (c) && (c) <= 'r') \
5936		     || ('s' <= (c) && (c) <= 'z'))
5937# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5938#endif
5939
5940#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5941int
5942main ()
5943{
5944  int i;
5945  for (i = 0; i < 256; i++)
5946    if (XOR (islower (i), ISLOWER (i))
5947	|| toupper (i) != TOUPPER (i))
5948      exit(2);
5949  exit (0);
5950}
5951_ACEOF
5952rm -f conftest$ac_exeext
5953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5954  (eval $ac_link) 2>&5
5955  ac_status=$?
5956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959  (eval $ac_try) 2>&5
5960  ac_status=$?
5961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962  (exit $ac_status); }; }; then
5963  :
5964else
5965  echo "$as_me: program exited with status $ac_status" >&5
5966echo "$as_me: failed program was:" >&5
5967sed 's/^/| /' conftest.$ac_ext >&5
5968
5969( exit $ac_status )
5970ac_cv_header_stdc=no
5971fi
5972rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5973fi
5974fi
5975fi
5976echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5977echo "${ECHO_T}$ac_cv_header_stdc" >&6
5978if test $ac_cv_header_stdc = yes; then
5979
5980cat >>confdefs.h <<\_ACEOF
5981#define STDC_HEADERS 1
5982_ACEOF
5983
5984fi
5985
5986
5987
5988
5989
5990
5991ac_header_dirent=no
5992for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5993  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5994echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5995echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5996if eval "test \"\${$as_ac_Header+set}\" = set"; then
5997  echo $ECHO_N "(cached) $ECHO_C" >&6
5998else
5999  cat >conftest.$ac_ext <<_ACEOF
6000/* confdefs.h.  */
6001_ACEOF
6002cat confdefs.h >>conftest.$ac_ext
6003cat >>conftest.$ac_ext <<_ACEOF
6004/* end confdefs.h.  */
6005#include <sys/types.h>
6006#include <$ac_hdr>
6007
6008int
6009main ()
6010{
6011if ((DIR *) 0)
6012return 0;
6013  ;
6014  return 0;
6015}
6016_ACEOF
6017rm -f conftest.$ac_objext
6018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6019  (eval $ac_compile) 2>conftest.er1
6020  ac_status=$?
6021  grep -v '^ *+' conftest.er1 >conftest.err
6022  rm -f conftest.er1
6023  cat conftest.err >&5
6024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025  (exit $ac_status); } &&
6026	 { ac_try='test -z "$ac_c_werror_flag"
6027			 || test ! -s conftest.err'
6028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029  (eval $ac_try) 2>&5
6030  ac_status=$?
6031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032  (exit $ac_status); }; } &&
6033	 { ac_try='test -s conftest.$ac_objext'
6034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035  (eval $ac_try) 2>&5
6036  ac_status=$?
6037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038  (exit $ac_status); }; }; then
6039  eval "$as_ac_Header=yes"
6040else
6041  echo "$as_me: failed program was:" >&5
6042sed 's/^/| /' conftest.$ac_ext >&5
6043
6044eval "$as_ac_Header=no"
6045fi
6046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6047fi
6048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6049echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6050if test `eval echo '${'$as_ac_Header'}'` = yes; then
6051  cat >>confdefs.h <<_ACEOF
6052#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6053_ACEOF
6054
6055ac_header_dirent=$ac_hdr; break
6056fi
6057
6058done
6059# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6060if test $ac_header_dirent = dirent.h; then
6061  echo "$as_me:$LINENO: checking for library containing opendir" >&5
6062echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6063if test "${ac_cv_search_opendir+set}" = set; then
6064  echo $ECHO_N "(cached) $ECHO_C" >&6
6065else
6066  ac_func_search_save_LIBS=$LIBS
6067ac_cv_search_opendir=no
6068cat >conftest.$ac_ext <<_ACEOF
6069/* confdefs.h.  */
6070_ACEOF
6071cat confdefs.h >>conftest.$ac_ext
6072cat >>conftest.$ac_ext <<_ACEOF
6073/* end confdefs.h.  */
6074
6075/* Override any gcc2 internal prototype to avoid an error.  */
6076#ifdef __cplusplus
6077extern "C"
6078#endif
6079/* We use char because int might match the return type of a gcc2
6080   builtin and then its argument prototype would still apply.  */
6081char opendir ();
6082int
6083main ()
6084{
6085opendir ();
6086  ;
6087  return 0;
6088}
6089_ACEOF
6090rm -f conftest.$ac_objext conftest$ac_exeext
6091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6092  (eval $ac_link) 2>conftest.er1
6093  ac_status=$?
6094  grep -v '^ *+' conftest.er1 >conftest.err
6095  rm -f conftest.er1
6096  cat conftest.err >&5
6097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098  (exit $ac_status); } &&
6099	 { ac_try='test -z "$ac_c_werror_flag"
6100			 || test ! -s conftest.err'
6101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102  (eval $ac_try) 2>&5
6103  ac_status=$?
6104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105  (exit $ac_status); }; } &&
6106	 { ac_try='test -s conftest$ac_exeext'
6107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108  (eval $ac_try) 2>&5
6109  ac_status=$?
6110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111  (exit $ac_status); }; }; then
6112  ac_cv_search_opendir="none required"
6113else
6114  echo "$as_me: failed program was:" >&5
6115sed 's/^/| /' conftest.$ac_ext >&5
6116
6117fi
6118rm -f conftest.err conftest.$ac_objext \
6119      conftest$ac_exeext conftest.$ac_ext
6120if test "$ac_cv_search_opendir" = no; then
6121  for ac_lib in dir; do
6122    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6123    cat >conftest.$ac_ext <<_ACEOF
6124/* confdefs.h.  */
6125_ACEOF
6126cat confdefs.h >>conftest.$ac_ext
6127cat >>conftest.$ac_ext <<_ACEOF
6128/* end confdefs.h.  */
6129
6130/* Override any gcc2 internal prototype to avoid an error.  */
6131#ifdef __cplusplus
6132extern "C"
6133#endif
6134/* We use char because int might match the return type of a gcc2
6135   builtin and then its argument prototype would still apply.  */
6136char opendir ();
6137int
6138main ()
6139{
6140opendir ();
6141  ;
6142  return 0;
6143}
6144_ACEOF
6145rm -f conftest.$ac_objext conftest$ac_exeext
6146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6147  (eval $ac_link) 2>conftest.er1
6148  ac_status=$?
6149  grep -v '^ *+' conftest.er1 >conftest.err
6150  rm -f conftest.er1
6151  cat conftest.err >&5
6152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153  (exit $ac_status); } &&
6154	 { ac_try='test -z "$ac_c_werror_flag"
6155			 || test ! -s conftest.err'
6156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157  (eval $ac_try) 2>&5
6158  ac_status=$?
6159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160  (exit $ac_status); }; } &&
6161	 { ac_try='test -s conftest$ac_exeext'
6162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163  (eval $ac_try) 2>&5
6164  ac_status=$?
6165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166  (exit $ac_status); }; }; then
6167  ac_cv_search_opendir="-l$ac_lib"
6168break
6169else
6170  echo "$as_me: failed program was:" >&5
6171sed 's/^/| /' conftest.$ac_ext >&5
6172
6173fi
6174rm -f conftest.err conftest.$ac_objext \
6175      conftest$ac_exeext conftest.$ac_ext
6176  done
6177fi
6178LIBS=$ac_func_search_save_LIBS
6179fi
6180echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6181echo "${ECHO_T}$ac_cv_search_opendir" >&6
6182if test "$ac_cv_search_opendir" != no; then
6183  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6184
6185fi
6186
6187else
6188  echo "$as_me:$LINENO: checking for library containing opendir" >&5
6189echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6190if test "${ac_cv_search_opendir+set}" = set; then
6191  echo $ECHO_N "(cached) $ECHO_C" >&6
6192else
6193  ac_func_search_save_LIBS=$LIBS
6194ac_cv_search_opendir=no
6195cat >conftest.$ac_ext <<_ACEOF
6196/* confdefs.h.  */
6197_ACEOF
6198cat confdefs.h >>conftest.$ac_ext
6199cat >>conftest.$ac_ext <<_ACEOF
6200/* end confdefs.h.  */
6201
6202/* Override any gcc2 internal prototype to avoid an error.  */
6203#ifdef __cplusplus
6204extern "C"
6205#endif
6206/* We use char because int might match the return type of a gcc2
6207   builtin and then its argument prototype would still apply.  */
6208char opendir ();
6209int
6210main ()
6211{
6212opendir ();
6213  ;
6214  return 0;
6215}
6216_ACEOF
6217rm -f conftest.$ac_objext conftest$ac_exeext
6218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6219  (eval $ac_link) 2>conftest.er1
6220  ac_status=$?
6221  grep -v '^ *+' conftest.er1 >conftest.err
6222  rm -f conftest.er1
6223  cat conftest.err >&5
6224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225  (exit $ac_status); } &&
6226	 { ac_try='test -z "$ac_c_werror_flag"
6227			 || test ! -s conftest.err'
6228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229  (eval $ac_try) 2>&5
6230  ac_status=$?
6231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232  (exit $ac_status); }; } &&
6233	 { ac_try='test -s conftest$ac_exeext'
6234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235  (eval $ac_try) 2>&5
6236  ac_status=$?
6237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238  (exit $ac_status); }; }; then
6239  ac_cv_search_opendir="none required"
6240else
6241  echo "$as_me: failed program was:" >&5
6242sed 's/^/| /' conftest.$ac_ext >&5
6243
6244fi
6245rm -f conftest.err conftest.$ac_objext \
6246      conftest$ac_exeext conftest.$ac_ext
6247if test "$ac_cv_search_opendir" = no; then
6248  for ac_lib in x; do
6249    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6250    cat >conftest.$ac_ext <<_ACEOF
6251/* confdefs.h.  */
6252_ACEOF
6253cat confdefs.h >>conftest.$ac_ext
6254cat >>conftest.$ac_ext <<_ACEOF
6255/* end confdefs.h.  */
6256
6257/* Override any gcc2 internal prototype to avoid an error.  */
6258#ifdef __cplusplus
6259extern "C"
6260#endif
6261/* We use char because int might match the return type of a gcc2
6262   builtin and then its argument prototype would still apply.  */
6263char opendir ();
6264int
6265main ()
6266{
6267opendir ();
6268  ;
6269  return 0;
6270}
6271_ACEOF
6272rm -f conftest.$ac_objext conftest$ac_exeext
6273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6274  (eval $ac_link) 2>conftest.er1
6275  ac_status=$?
6276  grep -v '^ *+' conftest.er1 >conftest.err
6277  rm -f conftest.er1
6278  cat conftest.err >&5
6279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280  (exit $ac_status); } &&
6281	 { ac_try='test -z "$ac_c_werror_flag"
6282			 || test ! -s conftest.err'
6283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284  (eval $ac_try) 2>&5
6285  ac_status=$?
6286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287  (exit $ac_status); }; } &&
6288	 { ac_try='test -s conftest$ac_exeext'
6289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290  (eval $ac_try) 2>&5
6291  ac_status=$?
6292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293  (exit $ac_status); }; }; then
6294  ac_cv_search_opendir="-l$ac_lib"
6295break
6296else
6297  echo "$as_me: failed program was:" >&5
6298sed 's/^/| /' conftest.$ac_ext >&5
6299
6300fi
6301rm -f conftest.err conftest.$ac_objext \
6302      conftest$ac_exeext conftest.$ac_ext
6303  done
6304fi
6305LIBS=$ac_func_search_save_LIBS
6306fi
6307echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6308echo "${ECHO_T}$ac_cv_search_opendir" >&6
6309if test "$ac_cv_search_opendir" != no; then
6310  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6311
6312fi
6313
6314fi
6315
6316# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6327		  inttypes.h stdint.h unistd.h
6328do
6329as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6330echo "$as_me:$LINENO: checking for $ac_header" >&5
6331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6332if eval "test \"\${$as_ac_Header+set}\" = set"; then
6333  echo $ECHO_N "(cached) $ECHO_C" >&6
6334else
6335  cat >conftest.$ac_ext <<_ACEOF
6336/* confdefs.h.  */
6337_ACEOF
6338cat confdefs.h >>conftest.$ac_ext
6339cat >>conftest.$ac_ext <<_ACEOF
6340/* end confdefs.h.  */
6341$ac_includes_default
6342
6343#include <$ac_header>
6344_ACEOF
6345rm -f conftest.$ac_objext
6346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6347  (eval $ac_compile) 2>conftest.er1
6348  ac_status=$?
6349  grep -v '^ *+' conftest.er1 >conftest.err
6350  rm -f conftest.er1
6351  cat conftest.err >&5
6352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353  (exit $ac_status); } &&
6354	 { ac_try='test -z "$ac_c_werror_flag"
6355			 || test ! -s conftest.err'
6356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357  (eval $ac_try) 2>&5
6358  ac_status=$?
6359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360  (exit $ac_status); }; } &&
6361	 { ac_try='test -s conftest.$ac_objext'
6362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363  (eval $ac_try) 2>&5
6364  ac_status=$?
6365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366  (exit $ac_status); }; }; then
6367  eval "$as_ac_Header=yes"
6368else
6369  echo "$as_me: failed program was:" >&5
6370sed 's/^/| /' conftest.$ac_ext >&5
6371
6372eval "$as_ac_Header=no"
6373fi
6374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6375fi
6376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6378if test `eval echo '${'$as_ac_Header'}'` = yes; then
6379  cat >>confdefs.h <<_ACEOF
6380#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6381_ACEOF
6382
6383fi
6384
6385done
6386
6387
6388
6389for ac_header in dlfcn.h
6390do
6391as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6392if eval "test \"\${$as_ac_Header+set}\" = set"; then
6393  echo "$as_me:$LINENO: checking for $ac_header" >&5
6394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6395if eval "test \"\${$as_ac_Header+set}\" = set"; then
6396  echo $ECHO_N "(cached) $ECHO_C" >&6
6397fi
6398echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6399echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6400else
6401  # Is the header compilable?
6402echo "$as_me:$LINENO: checking $ac_header usability" >&5
6403echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6404cat >conftest.$ac_ext <<_ACEOF
6405/* confdefs.h.  */
6406_ACEOF
6407cat confdefs.h >>conftest.$ac_ext
6408cat >>conftest.$ac_ext <<_ACEOF
6409/* end confdefs.h.  */
6410$ac_includes_default
6411#include <$ac_header>
6412_ACEOF
6413rm -f conftest.$ac_objext
6414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6415  (eval $ac_compile) 2>conftest.er1
6416  ac_status=$?
6417  grep -v '^ *+' conftest.er1 >conftest.err
6418  rm -f conftest.er1
6419  cat conftest.err >&5
6420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421  (exit $ac_status); } &&
6422	 { ac_try='test -z "$ac_c_werror_flag"
6423			 || test ! -s conftest.err'
6424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425  (eval $ac_try) 2>&5
6426  ac_status=$?
6427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428  (exit $ac_status); }; } &&
6429	 { ac_try='test -s conftest.$ac_objext'
6430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431  (eval $ac_try) 2>&5
6432  ac_status=$?
6433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434  (exit $ac_status); }; }; then
6435  ac_header_compiler=yes
6436else
6437  echo "$as_me: failed program was:" >&5
6438sed 's/^/| /' conftest.$ac_ext >&5
6439
6440ac_header_compiler=no
6441fi
6442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6443echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6444echo "${ECHO_T}$ac_header_compiler" >&6
6445
6446# Is the header present?
6447echo "$as_me:$LINENO: checking $ac_header presence" >&5
6448echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6449cat >conftest.$ac_ext <<_ACEOF
6450/* confdefs.h.  */
6451_ACEOF
6452cat confdefs.h >>conftest.$ac_ext
6453cat >>conftest.$ac_ext <<_ACEOF
6454/* end confdefs.h.  */
6455#include <$ac_header>
6456_ACEOF
6457if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6458  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6459  ac_status=$?
6460  grep -v '^ *+' conftest.er1 >conftest.err
6461  rm -f conftest.er1
6462  cat conftest.err >&5
6463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464  (exit $ac_status); } >/dev/null; then
6465  if test -s conftest.err; then
6466    ac_cpp_err=$ac_c_preproc_warn_flag
6467    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6468  else
6469    ac_cpp_err=
6470  fi
6471else
6472  ac_cpp_err=yes
6473fi
6474if test -z "$ac_cpp_err"; then
6475  ac_header_preproc=yes
6476else
6477  echo "$as_me: failed program was:" >&5
6478sed 's/^/| /' conftest.$ac_ext >&5
6479
6480  ac_header_preproc=no
6481fi
6482rm -f conftest.err conftest.$ac_ext
6483echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6484echo "${ECHO_T}$ac_header_preproc" >&6
6485
6486# So?  What about this header?
6487case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6488  yes:no: )
6489    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6490echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6491    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6492echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6493    ac_header_preproc=yes
6494    ;;
6495  no:yes:* )
6496    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6497echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6498    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6499echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6500    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6501echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6502    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6503echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6504    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6505echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6506    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6507echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6508    (
6509      cat <<\_ASBOX
6510## ----------------------------------- ##
6511## Report this to llvmbugs@cs.uiuc.edu ##
6512## ----------------------------------- ##
6513_ASBOX
6514    ) |
6515      sed "s/^/$as_me: WARNING:     /" >&2
6516    ;;
6517esac
6518echo "$as_me:$LINENO: checking for $ac_header" >&5
6519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6520if eval "test \"\${$as_ac_Header+set}\" = set"; then
6521  echo $ECHO_N "(cached) $ECHO_C" >&6
6522else
6523  eval "$as_ac_Header=\$ac_header_preproc"
6524fi
6525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6526echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6527
6528fi
6529if test `eval echo '${'$as_ac_Header'}'` = yes; then
6530  cat >>confdefs.h <<_ACEOF
6531#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6532_ACEOF
6533
6534fi
6535
6536done
6537
6538# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6539if test "${enable_ltdl_install+set}" = set; then
6540  enableval="$enable_ltdl_install"
6541
6542fi;
6543
6544
6545
6546if test x"${enable_ltdl_install-no}" != xno; then
6547  INSTALL_LTDL_TRUE=
6548  INSTALL_LTDL_FALSE='#'
6549else
6550  INSTALL_LTDL_TRUE='#'
6551  INSTALL_LTDL_FALSE=
6552fi
6553
6554
6555
6556if test x"${enable_ltdl_convenience-no}" != xno; then
6557  CONVENIENCE_LTDL_TRUE=
6558  CONVENIENCE_LTDL_FALSE='#'
6559else
6560  CONVENIENCE_LTDL_TRUE='#'
6561  CONVENIENCE_LTDL_FALSE=
6562fi
6563
6564
6565echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6566echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6567library_names_spec=
6568libname_spec='lib$name'
6569soname_spec=
6570shrext_cmds=".so"
6571postinstall_cmds=
6572postuninstall_cmds=
6573finish_cmds=
6574finish_eval=
6575shlibpath_var=
6576shlibpath_overrides_runpath=unknown
6577version_type=none
6578dynamic_linker="$host_os ld.so"
6579sys_lib_dlsearch_path_spec="/lib /usr/lib"
6580if test "$GCC" = yes; then
6581  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6582  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6583    # if the path contains ";" then we assume it to be the separator
6584    # otherwise default to the standard path separator (i.e. ":") - it is
6585    # assumed that no part of a normal pathname contains ";" but that should
6586    # okay in the real world where ";" in dirpaths is itself problematic.
6587    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6588  else
6589    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6590  fi
6591else
6592  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6593fi
6594need_lib_prefix=unknown
6595hardcode_into_libs=no
6596
6597# when you set need_version to no, make sure it does not cause -set_version
6598# flags to be left without arguments
6599need_version=unknown
6600
6601case $host_os in
6602aix3*)
6603  version_type=linux
6604  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6605  shlibpath_var=LIBPATH
6606
6607  # AIX 3 has no versioning support, so we append a major version to the name.
6608  soname_spec='${libname}${release}${shared_ext}$major'
6609  ;;
6610
6611aix4* | aix5*)
6612  version_type=linux
6613  need_lib_prefix=no
6614  need_version=no
6615  hardcode_into_libs=yes
6616  if test "$host_cpu" = ia64; then
6617    # AIX 5 supports IA64
6618    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6619    shlibpath_var=LD_LIBRARY_PATH
6620  else
6621    # With GCC up to 2.95.x, collect2 would create an import file
6622    # for dependence libraries.  The import file would start with
6623    # the line `#! .'.  This would cause the generated library to
6624    # depend on `.', always an invalid library.  This was fixed in
6625    # development snapshots of GCC prior to 3.0.
6626    case $host_os in
6627      aix4 | aix4.[01] | aix4.[01].*)
6628      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6629	   echo ' yes '
6630	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6631	:
6632      else
6633	can_build_shared=no
6634      fi
6635      ;;
6636    esac
6637    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6638    # soname into executable. Probably we can add versioning support to
6639    # collect2, so additional links can be useful in future.
6640    if test "$aix_use_runtimelinking" = yes; then
6641      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6642      # instead of lib<name>.a to let people know that these are not
6643      # typical AIX shared libraries.
6644      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6645    else
6646      # We preserve .a as extension for shared libraries through AIX4.2
6647      # and later when we are not doing run time linking.
6648      library_names_spec='${libname}${release}.a $libname.a'
6649      soname_spec='${libname}${release}${shared_ext}$major'
6650    fi
6651    shlibpath_var=LIBPATH
6652  fi
6653  ;;
6654
6655amigaos*)
6656  library_names_spec='$libname.ixlibrary $libname.a'
6657  # Create ${libname}_ixlibrary.a entries in /sys/libs.
6658  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'
6659  ;;
6660
6661beos*)
6662  library_names_spec='${libname}${shared_ext}'
6663  dynamic_linker="$host_os ld.so"
6664  shlibpath_var=LIBRARY_PATH
6665  ;;
6666
6667bsdi[45]*)
6668  version_type=linux
6669  need_version=no
6670  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6671  soname_spec='${libname}${release}${shared_ext}$major'
6672  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6673  shlibpath_var=LD_LIBRARY_PATH
6674  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6675  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6676  # the default ld.so.conf also contains /usr/contrib/lib and
6677  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6678  # libtool to hard-code these into programs
6679  ;;
6680
6681cygwin* | mingw* | pw32*)
6682  version_type=windows
6683  shrext_cmds=".dll"
6684  need_version=no
6685  need_lib_prefix=no
6686
6687  case $GCC,$host_os in
6688  yes,cygwin* | yes,mingw* | yes,pw32*)
6689    library_names_spec='$libname.dll.a'
6690    # DLL is installed to $(libdir)/../bin by postinstall_cmds
6691    postinstall_cmds='base_file=`basename \${file}`~
6692      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6693      dldir=$destdir/`dirname \$dlpath`~
6694      test -d \$dldir || mkdir -p \$dldir~
6695      $install_prog $dir/$dlname \$dldir/$dlname'
6696    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6697      dlpath=$dir/\$dldll~
6698       $rm \$dlpath'
6699    shlibpath_overrides_runpath=yes
6700
6701    case $host_os in
6702    cygwin*)
6703      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6704      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6705      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6706      ;;
6707    mingw*)
6708      # MinGW DLLs use traditional 'lib' prefix
6709      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6710      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6711      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6712        # It is most probably a Windows format PATH printed by
6713        # mingw gcc, but we are running on Cygwin. Gcc prints its search
6714        # path with ; separators, and with drive letters. We can handle the
6715        # drive letters (cygwin fileutils understands them), so leave them,
6716        # especially as we might pass files found there to a mingw objdump,
6717        # which wouldn't understand a cygwinified path. Ahh.
6718        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6719      else
6720        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6721      fi
6722      ;;
6723    pw32*)
6724      # pw32 DLLs use 'pw' prefix rather than 'lib'
6725      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6726      ;;
6727    esac
6728    ;;
6729
6730  *)
6731    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6732    ;;
6733  esac
6734  dynamic_linker='Win32 ld.exe'
6735  # FIXME: first we should search . and the directory the executable is in
6736  shlibpath_var=PATH
6737  ;;
6738
6739darwin* | rhapsody*)
6740  dynamic_linker="$host_os dyld"
6741  version_type=darwin
6742  need_lib_prefix=no
6743  need_version=no
6744  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6745  soname_spec='${libname}${release}${major}$shared_ext'
6746  shlibpath_overrides_runpath=yes
6747  shlibpath_var=DYLD_LIBRARY_PATH
6748  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6749  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6750  if test "$GCC" = yes; then
6751    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"`
6752  else
6753    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6754  fi
6755  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6756  ;;
6757
6758dgux*)
6759  version_type=linux
6760  need_lib_prefix=no
6761  need_version=no
6762  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6763  soname_spec='${libname}${release}${shared_ext}$major'
6764  shlibpath_var=LD_LIBRARY_PATH
6765  ;;
6766
6767freebsd1*)
6768  dynamic_linker=no
6769  ;;
6770
6771kfreebsd*-gnu)
6772  version_type=linux
6773  need_lib_prefix=no
6774  need_version=no
6775  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6776  soname_spec='${libname}${release}${shared_ext}$major'
6777  shlibpath_var=LD_LIBRARY_PATH
6778  shlibpath_overrides_runpath=no
6779  hardcode_into_libs=yes
6780  dynamic_linker='GNU ld.so'
6781  ;;
6782
6783freebsd*)
6784  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6785  version_type=freebsd-$objformat
6786  case $version_type in
6787    freebsd-elf*)
6788      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6789      need_version=no
6790      need_lib_prefix=no
6791      ;;
6792    freebsd-*)
6793      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6794      need_version=yes
6795      ;;
6796  esac
6797  shlibpath_var=LD_LIBRARY_PATH
6798  case $host_os in
6799  freebsd2*)
6800    shlibpath_overrides_runpath=yes
6801    ;;
6802  freebsd3.01* | freebsdelf3.01*)
6803    shlibpath_overrides_runpath=yes
6804    hardcode_into_libs=yes
6805    ;;
6806  *) # from 3.2 on
6807    shlibpath_overrides_runpath=no
6808    hardcode_into_libs=yes
6809    ;;
6810  esac
6811  ;;
6812
6813gnu*)
6814  version_type=linux
6815  need_lib_prefix=no
6816  need_version=no
6817  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6818  soname_spec='${libname}${release}${shared_ext}$major'
6819  shlibpath_var=LD_LIBRARY_PATH
6820  hardcode_into_libs=yes
6821  ;;
6822
6823hpux9* | hpux10* | hpux11*)
6824  # Give a soname corresponding to the major version so that dld.sl refuses to
6825  # link against other versions.
6826  version_type=sunos
6827  need_lib_prefix=no
6828  need_version=no
6829  case "$host_cpu" in
6830  ia64*)
6831    shrext_cmds='.so'
6832    hardcode_into_libs=yes
6833    dynamic_linker="$host_os dld.so"
6834    shlibpath_var=LD_LIBRARY_PATH
6835    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6836    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6837    soname_spec='${libname}${release}${shared_ext}$major'
6838    if test "X$HPUX_IA64_MODE" = X32; then
6839      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6840    else
6841      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6842    fi
6843    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6844    ;;
6845   hppa*64*)
6846     shrext_cmds='.sl'
6847     hardcode_into_libs=yes
6848     dynamic_linker="$host_os dld.sl"
6849     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6850     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6851     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6852     soname_spec='${libname}${release}${shared_ext}$major'
6853     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6854     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6855     ;;
6856   *)
6857    shrext_cmds='.sl'
6858    dynamic_linker="$host_os dld.sl"
6859    shlibpath_var=SHLIB_PATH
6860    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6861    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6862    soname_spec='${libname}${release}${shared_ext}$major'
6863    ;;
6864  esac
6865  # HP-UX runs *really* slowly unless shared libraries are mode 555.
6866  postinstall_cmds='chmod 555 $lib'
6867  ;;
6868
6869irix5* | irix6* | nonstopux*)
6870  case $host_os in
6871    nonstopux*) version_type=nonstopux ;;
6872    *)
6873	if test "$lt_cv_prog_gnu_ld" = yes; then
6874		version_type=linux
6875	else
6876		version_type=irix
6877	fi ;;
6878  esac
6879  need_lib_prefix=no
6880  need_version=no
6881  soname_spec='${libname}${release}${shared_ext}$major'
6882  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6883  case $host_os in
6884  irix5* | nonstopux*)
6885    libsuff= shlibsuff=
6886    ;;
6887  *)
6888    case $LD in # libtool.m4 will add one of these switches to LD
6889    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6890      libsuff= shlibsuff= libmagic=32-bit;;
6891    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6892      libsuff=32 shlibsuff=N32 libmagic=N32;;
6893    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6894      libsuff=64 shlibsuff=64 libmagic=64-bit;;
6895    *) libsuff= shlibsuff= libmagic=never-match;;
6896    esac
6897    ;;
6898  esac
6899  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6900  shlibpath_overrides_runpath=no
6901  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6902  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6903  hardcode_into_libs=yes
6904  ;;
6905
6906# No shared lib support for Linux oldld, aout, or coff.
6907linux*oldld* | linux*aout* | linux*coff*)
6908  dynamic_linker=no
6909  ;;
6910
6911# This must be Linux ELF.
6912linux*)
6913  version_type=linux
6914  need_lib_prefix=no
6915  need_version=no
6916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6917  soname_spec='${libname}${release}${shared_ext}$major'
6918  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6919  shlibpath_var=LD_LIBRARY_PATH
6920  shlibpath_overrides_runpath=no
6921  # This implies no fast_install, which is unacceptable.
6922  # Some rework will be needed to allow for fast_install
6923  # before this can be enabled.
6924  hardcode_into_libs=yes
6925
6926  # Append ld.so.conf contents to the search path
6927  if test -f /etc/ld.so.conf; then
6928    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6929    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6930  fi
6931
6932  # We used to test for /lib/ld.so.1 and disable shared libraries on
6933  # powerpc, because MkLinux only supported shared libraries with the
6934  # GNU dynamic linker.  Since this was broken with cross compilers,
6935  # most powerpc-linux boxes support dynamic linking these days and
6936  # people can always --disable-shared, the test was removed, and we
6937  # assume the GNU/Linux dynamic linker is in use.
6938  dynamic_linker='GNU/Linux ld.so'
6939  ;;
6940
6941knetbsd*-gnu)
6942  version_type=linux
6943  need_lib_prefix=no
6944  need_version=no
6945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6946  soname_spec='${libname}${release}${shared_ext}$major'
6947  shlibpath_var=LD_LIBRARY_PATH
6948  shlibpath_overrides_runpath=no
6949  hardcode_into_libs=yes
6950  dynamic_linker='GNU ld.so'
6951  ;;
6952
6953netbsd*)
6954  version_type=sunos
6955  need_lib_prefix=no
6956  need_version=no
6957  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6958    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6959    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6960    dynamic_linker='NetBSD (a.out) ld.so'
6961  else
6962    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6963    soname_spec='${libname}${release}${shared_ext}$major'
6964    dynamic_linker='NetBSD ld.elf_so'
6965  fi
6966  shlibpath_var=LD_LIBRARY_PATH
6967  shlibpath_overrides_runpath=yes
6968  hardcode_into_libs=yes
6969  ;;
6970
6971newsos6)
6972  version_type=linux
6973  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6974  shlibpath_var=LD_LIBRARY_PATH
6975  shlibpath_overrides_runpath=yes
6976  ;;
6977
6978nto-qnx*)
6979  version_type=linux
6980  need_lib_prefix=no
6981  need_version=no
6982  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6983  soname_spec='${libname}${release}${shared_ext}$major'
6984  shlibpath_var=LD_LIBRARY_PATH
6985  shlibpath_overrides_runpath=yes
6986  ;;
6987
6988openbsd*)
6989  version_type=sunos
6990  need_lib_prefix=no
6991  need_version=no
6992  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6993  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6994  shlibpath_var=LD_LIBRARY_PATH
6995  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6996    case $host_os in
6997      openbsd2.[89] | openbsd2.[89].*)
6998	shlibpath_overrides_runpath=no
6999	;;
7000      *)
7001	shlibpath_overrides_runpath=yes
7002	;;
7003      esac
7004  else
7005    shlibpath_overrides_runpath=yes
7006  fi
7007  ;;
7008
7009os2*)
7010  libname_spec='$name'
7011  shrext_cmds=".dll"
7012  need_lib_prefix=no
7013  library_names_spec='$libname${shared_ext} $libname.a'
7014  dynamic_linker='OS/2 ld.exe'
7015  shlibpath_var=LIBPATH
7016  ;;
7017
7018osf3* | osf4* | osf5*)
7019  version_type=osf
7020  need_lib_prefix=no
7021  need_version=no
7022  soname_spec='${libname}${release}${shared_ext}$major'
7023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7024  shlibpath_var=LD_LIBRARY_PATH
7025  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7026  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7027  ;;
7028
7029sco3.2v5*)
7030  version_type=osf
7031  soname_spec='${libname}${release}${shared_ext}$major'
7032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7033  shlibpath_var=LD_LIBRARY_PATH
7034  ;;
7035
7036solaris*)
7037  version_type=linux
7038  need_lib_prefix=no
7039  need_version=no
7040  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7041  soname_spec='${libname}${release}${shared_ext}$major'
7042  shlibpath_var=LD_LIBRARY_PATH
7043  shlibpath_overrides_runpath=yes
7044  hardcode_into_libs=yes
7045  # ldd complains unless libraries are executable
7046  postinstall_cmds='chmod +x $lib'
7047  ;;
7048
7049sunos4*)
7050  version_type=sunos
7051  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7052  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7053  shlibpath_var=LD_LIBRARY_PATH
7054  shlibpath_overrides_runpath=yes
7055  if test "$with_gnu_ld" = yes; then
7056    need_lib_prefix=no
7057  fi
7058  need_version=yes
7059  ;;
7060
7061sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7062  version_type=linux
7063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7064  soname_spec='${libname}${release}${shared_ext}$major'
7065  shlibpath_var=LD_LIBRARY_PATH
7066  case $host_vendor in
7067    sni)
7068      shlibpath_overrides_runpath=no
7069      need_lib_prefix=no
7070      export_dynamic_flag_spec='${wl}-Blargedynsym'
7071      runpath_var=LD_RUN_PATH
7072      ;;
7073    siemens)
7074      need_lib_prefix=no
7075      ;;
7076    motorola)
7077      need_lib_prefix=no
7078      need_version=no
7079      shlibpath_overrides_runpath=no
7080      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7081      ;;
7082  esac
7083  ;;
7084
7085sysv4*MP*)
7086  if test -d /usr/nec ;then
7087    version_type=linux
7088    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7089    soname_spec='$libname${shared_ext}.$major'
7090    shlibpath_var=LD_LIBRARY_PATH
7091  fi
7092  ;;
7093
7094uts4*)
7095  version_type=linux
7096  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7097  soname_spec='${libname}${release}${shared_ext}$major'
7098  shlibpath_var=LD_LIBRARY_PATH
7099  ;;
7100
7101*)
7102  dynamic_linker=no
7103  ;;
7104esac
7105echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7106echo "${ECHO_T}$dynamic_linker" >&6
7107test "$dynamic_linker" = no && can_build_shared=no
7108
7109
7110echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7111echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7112if test "${libltdl_cv_shlibext+set}" = set; then
7113  echo $ECHO_N "(cached) $ECHO_C" >&6
7114else
7115
7116module=yes
7117eval libltdl_cv_shlibext=$shrext_cmds
7118
7119fi
7120echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7121echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7122if test -n "$libltdl_cv_shlibext"; then
7123
7124cat >>confdefs.h <<_ACEOF
7125#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7126_ACEOF
7127
7128fi
7129
7130
7131echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7132echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7133if test "${libltdl_cv_shlibpath_var+set}" = set; then
7134  echo $ECHO_N "(cached) $ECHO_C" >&6
7135else
7136  libltdl_cv_shlibpath_var="$shlibpath_var"
7137fi
7138echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7139echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7140if test -n "$libltdl_cv_shlibpath_var"; then
7141
7142cat >>confdefs.h <<_ACEOF
7143#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7144_ACEOF
7145
7146fi
7147
7148
7149echo "$as_me:$LINENO: checking for the default library search path" >&5
7150echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7151if test "${libltdl_cv_sys_search_path+set}" = set; then
7152  echo $ECHO_N "(cached) $ECHO_C" >&6
7153else
7154  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7155fi
7156echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7157echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7158if test -n "$libltdl_cv_sys_search_path"; then
7159  sys_search_path=
7160  for dir in $libltdl_cv_sys_search_path; do
7161    if test -z "$sys_search_path"; then
7162      sys_search_path="$dir"
7163    else
7164      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7165    fi
7166  done
7167
7168cat >>confdefs.h <<_ACEOF
7169#define LTDL_SYSSEARCHPATH "$sys_search_path"
7170_ACEOF
7171
7172fi
7173
7174echo "$as_me:$LINENO: checking for objdir" >&5
7175echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7176if test "${libltdl_cv_objdir+set}" = set; then
7177  echo $ECHO_N "(cached) $ECHO_C" >&6
7178else
7179  libltdl_cv_objdir="$objdir"
7180  if test -n "$objdir"; then
7181    :
7182  else
7183    rm -f .libs 2>/dev/null
7184    mkdir .libs 2>/dev/null
7185    if test -d .libs; then
7186      libltdl_cv_objdir=.libs
7187    else
7188      # MS-DOS does not allow filenames that begin with a dot.
7189      libltdl_cv_objdir=_libs
7190    fi
7191  rmdir .libs 2>/dev/null
7192  fi
7193
7194fi
7195echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7196echo "${ECHO_T}$libltdl_cv_objdir" >&6
7197
7198cat >>confdefs.h <<_ACEOF
7199#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7200_ACEOF
7201
7202
7203echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7204echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7205if test "${lt_cv_path_NM+set}" = set; then
7206  echo $ECHO_N "(cached) $ECHO_C" >&6
7207else
7208  if test -n "$NM"; then
7209  # Let the user override the test.
7210  lt_cv_path_NM="$NM"
7211else
7212  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7213  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7214    IFS="$lt_save_ifs"
7215    test -z "$ac_dir" && ac_dir=.
7216    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7217    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7218      # Check to see if the nm accepts a BSD-compat flag.
7219      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7220      #   nm: unknown option "B" ignored
7221      # Tru64's nm complains that /dev/null is an invalid object file
7222      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7223      */dev/null* | *'Invalid file or object type'*)
7224	lt_cv_path_NM="$tmp_nm -B"
7225	break
7226        ;;
7227      *)
7228	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7229	*/dev/null*)
7230	  lt_cv_path_NM="$tmp_nm -p"
7231	  break
7232	  ;;
7233	*)
7234	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7235	  continue # so that we can try to find one that supports BSD flags
7236	  ;;
7237	esac
7238      esac
7239    fi
7240  done
7241  IFS="$lt_save_ifs"
7242  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7243fi
7244fi
7245echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7246echo "${ECHO_T}$lt_cv_path_NM" >&6
7247NM="$lt_cv_path_NM"
7248
7249
7250
7251
7252
7253# Check for command to grab the raw symbol name followed by C symbol from nm.
7254echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7255echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7256if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7257  echo $ECHO_N "(cached) $ECHO_C" >&6
7258else
7259
7260# These are sane defaults that work on at least a few old systems.
7261# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7262
7263# Character class describing NM global symbol codes.
7264symcode='[BCDEGRST]'
7265
7266# Regexp to match symbols that can be accessed directly from C.
7267sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7268
7269# Transform the above into a raw symbol and a C symbol.
7270symxfrm='\1 \2\3 \3'
7271
7272# Transform an extracted symbol line into a proper C declaration
7273lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7274
7275# Transform an extracted symbol line into symbol name and symbol address
7276lt_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'"
7277
7278# Define system-specific variables.
7279case $host_os in
7280aix*)
7281  symcode='[BCDT]'
7282  ;;
7283cygwin* | mingw* | pw32*)
7284  symcode='[ABCDGISTW]'
7285  ;;
7286hpux*) # Its linker distinguishes data from code symbols
7287  if test "$host_cpu" = ia64; then
7288    symcode='[ABCDEGRST]'
7289  fi
7290  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7291  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'"
7292  ;;
7293linux*)
7294  if test "$host_cpu" = ia64; then
7295    symcode='[ABCDGIRSTW]'
7296    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7297    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'"
7298  fi
7299  ;;
7300irix* | nonstopux*)
7301  symcode='[BCDEGRST]'
7302  ;;
7303osf*)
7304  symcode='[BCDEGQRST]'
7305  ;;
7306solaris* | sysv5*)
7307  symcode='[BDRT]'
7308  ;;
7309sysv4)
7310  symcode='[DFNSTU]'
7311  ;;
7312esac
7313
7314# Handle CRLF in mingw tool chain
7315opt_cr=
7316case $build_os in
7317mingw*)
7318  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7319  ;;
7320esac
7321
7322# If we're using GNU nm, then use its standard symbol codes.
7323case `$NM -V 2>&1` in
7324*GNU* | *'with BFD'*)
7325  symcode='[ABCDGIRSTW]' ;;
7326esac
7327
7328# Try without a prefix undercore, then with it.
7329for ac_symprfx in "" "_"; do
7330
7331  # Write the raw and C identifiers.
7332  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7333
7334  # Check to see that the pipe works correctly.
7335  pipe_works=no
7336
7337  rm -f conftest*
7338  cat > conftest.$ac_ext <<EOF
7339#ifdef __cplusplus
7340extern "C" {
7341#endif
7342char nm_test_var;
7343void nm_test_func(){}
7344#ifdef __cplusplus
7345}
7346#endif
7347int main(){nm_test_var='a';nm_test_func();return(0);}
7348EOF
7349
7350  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7351  (eval $ac_compile) 2>&5
7352  ac_status=$?
7353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354  (exit $ac_status); }; then
7355    # Now try to grab the symbols.
7356    nlist=conftest.nm
7357    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7358  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7359  ac_status=$?
7360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361  (exit $ac_status); } && test -s "$nlist"; then
7362      # Try sorting and uniquifying the output.
7363      if sort "$nlist" | uniq > "$nlist"T; then
7364	mv -f "$nlist"T "$nlist"
7365      else
7366	rm -f "$nlist"T
7367      fi
7368
7369      # Make sure that we snagged all the symbols we need.
7370      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7371	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7372	  cat <<EOF > conftest.$ac_ext
7373#ifdef __cplusplus
7374extern "C" {
7375#endif
7376
7377EOF
7378	  # Now generate the symbol file.
7379	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7380
7381	  cat <<EOF >> conftest.$ac_ext
7382#if defined (__STDC__) && __STDC__
7383# define lt_ptr_t void *
7384#else
7385# define lt_ptr_t char *
7386# define const
7387#endif
7388
7389/* The mapping between symbol names and symbols. */
7390const struct {
7391  const char *name;
7392  lt_ptr_t address;
7393}
7394lt_preloaded_symbols[] =
7395{
7396EOF
7397	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7398	  cat <<\EOF >> conftest.$ac_ext
7399  {0, (lt_ptr_t) 0}
7400};
7401
7402#ifdef __cplusplus
7403}
7404#endif
7405EOF
7406	  # Now try linking the two files.
7407	  mv conftest.$ac_objext conftstm.$ac_objext
7408	  lt_save_LIBS="$LIBS"
7409	  lt_save_CFLAGS="$CFLAGS"
7410	  LIBS="conftstm.$ac_objext"
7411	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7412	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7413  (eval $ac_link) 2>&5
7414  ac_status=$?
7415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7417	    pipe_works=yes
7418	  fi
7419	  LIBS="$lt_save_LIBS"
7420	  CFLAGS="$lt_save_CFLAGS"
7421	else
7422	  echo "cannot find nm_test_func in $nlist" >&5
7423	fi
7424      else
7425	echo "cannot find nm_test_var in $nlist" >&5
7426      fi
7427    else
7428      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7429    fi
7430  else
7431    echo "$progname: failed program was:" >&5
7432    cat conftest.$ac_ext >&5
7433  fi
7434  rm -f conftest* conftst*
7435
7436  # Do not use the global_symbol_pipe unless it works.
7437  if test "$pipe_works" = yes; then
7438    break
7439  else
7440    lt_cv_sys_global_symbol_pipe=
7441  fi
7442done
7443
7444fi
7445
7446if test -z "$lt_cv_sys_global_symbol_pipe"; then
7447  lt_cv_sys_global_symbol_to_cdecl=
7448fi
7449if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7450  echo "$as_me:$LINENO: result: failed" >&5
7451echo "${ECHO_T}failed" >&6
7452else
7453  echo "$as_me:$LINENO: result: ok" >&5
7454echo "${ECHO_T}ok" >&6
7455fi
7456
7457
7458echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7459echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7460if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7461  echo $ECHO_N "(cached) $ECHO_C" >&6
7462else
7463  if test -n "$lt_cv_sys_global_symbol_pipe"; then
7464    libltdl_cv_preloaded_symbols=yes
7465  else
7466    libltdl_cv_preloaded_symbols=no
7467  fi
7468
7469fi
7470echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7471echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7472if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7473
7474cat >>confdefs.h <<\_ACEOF
7475#define HAVE_PRELOADED_SYMBOLS 1
7476_ACEOF
7477
7478fi
7479
7480LIBADD_DL=
7481
7482ac_ext=c
7483ac_cpp='$CPP $CPPFLAGS'
7484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7486ac_compiler_gnu=$ac_cv_c_compiler_gnu
7487
7488
7489echo "$as_me:$LINENO: checking for shl_load" >&5
7490echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7491if test "${ac_cv_func_shl_load+set}" = set; then
7492  echo $ECHO_N "(cached) $ECHO_C" >&6
7493else
7494  cat >conftest.$ac_ext <<_ACEOF
7495/* confdefs.h.  */
7496_ACEOF
7497cat confdefs.h >>conftest.$ac_ext
7498cat >>conftest.$ac_ext <<_ACEOF
7499/* end confdefs.h.  */
7500/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7501   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7502#define shl_load innocuous_shl_load
7503
7504/* System header to define __stub macros and hopefully few prototypes,
7505    which can conflict with char shl_load (); below.
7506    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7507    <limits.h> exists even on freestanding compilers.  */
7508
7509#ifdef __STDC__
7510# include <limits.h>
7511#else
7512# include <assert.h>
7513#endif
7514
7515#undef shl_load
7516
7517/* Override any gcc2 internal prototype to avoid an error.  */
7518#ifdef __cplusplus
7519extern "C"
7520{
7521#endif
7522/* We use char because int might match the return type of a gcc2
7523   builtin and then its argument prototype would still apply.  */
7524char shl_load ();
7525/* The GNU C library defines this for functions which it implements
7526    to always fail with ENOSYS.  Some functions are actually named
7527    something starting with __ and the normal name is an alias.  */
7528#if defined (__stub_shl_load) || defined (__stub___shl_load)
7529choke me
7530#else
7531char (*f) () = shl_load;
7532#endif
7533#ifdef __cplusplus
7534}
7535#endif
7536
7537int
7538main ()
7539{
7540return f != shl_load;
7541  ;
7542  return 0;
7543}
7544_ACEOF
7545rm -f conftest.$ac_objext conftest$ac_exeext
7546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7547  (eval $ac_link) 2>conftest.er1
7548  ac_status=$?
7549  grep -v '^ *+' conftest.er1 >conftest.err
7550  rm -f conftest.er1
7551  cat conftest.err >&5
7552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553  (exit $ac_status); } &&
7554	 { ac_try='test -z "$ac_c_werror_flag"
7555			 || test ! -s conftest.err'
7556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557  (eval $ac_try) 2>&5
7558  ac_status=$?
7559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560  (exit $ac_status); }; } &&
7561	 { ac_try='test -s conftest$ac_exeext'
7562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563  (eval $ac_try) 2>&5
7564  ac_status=$?
7565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566  (exit $ac_status); }; }; then
7567  ac_cv_func_shl_load=yes
7568else
7569  echo "$as_me: failed program was:" >&5
7570sed 's/^/| /' conftest.$ac_ext >&5
7571
7572ac_cv_func_shl_load=no
7573fi
7574rm -f conftest.err conftest.$ac_objext \
7575      conftest$ac_exeext conftest.$ac_ext
7576fi
7577echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7578echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7579if test $ac_cv_func_shl_load = yes; then
7580
7581cat >>confdefs.h <<\_ACEOF
7582#define HAVE_SHL_LOAD 1
7583_ACEOF
7584
7585else
7586  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7587echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7588if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7589  echo $ECHO_N "(cached) $ECHO_C" >&6
7590else
7591  ac_check_lib_save_LIBS=$LIBS
7592LIBS="-ldld  $LIBS"
7593cat >conftest.$ac_ext <<_ACEOF
7594/* confdefs.h.  */
7595_ACEOF
7596cat confdefs.h >>conftest.$ac_ext
7597cat >>conftest.$ac_ext <<_ACEOF
7598/* end confdefs.h.  */
7599
7600/* Override any gcc2 internal prototype to avoid an error.  */
7601#ifdef __cplusplus
7602extern "C"
7603#endif
7604/* We use char because int might match the return type of a gcc2
7605   builtin and then its argument prototype would still apply.  */
7606char shl_load ();
7607int
7608main ()
7609{
7610shl_load ();
7611  ;
7612  return 0;
7613}
7614_ACEOF
7615rm -f conftest.$ac_objext conftest$ac_exeext
7616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7617  (eval $ac_link) 2>conftest.er1
7618  ac_status=$?
7619  grep -v '^ *+' conftest.er1 >conftest.err
7620  rm -f conftest.er1
7621  cat conftest.err >&5
7622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623  (exit $ac_status); } &&
7624	 { ac_try='test -z "$ac_c_werror_flag"
7625			 || test ! -s conftest.err'
7626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627  (eval $ac_try) 2>&5
7628  ac_status=$?
7629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630  (exit $ac_status); }; } &&
7631	 { ac_try='test -s conftest$ac_exeext'
7632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633  (eval $ac_try) 2>&5
7634  ac_status=$?
7635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636  (exit $ac_status); }; }; then
7637  ac_cv_lib_dld_shl_load=yes
7638else
7639  echo "$as_me: failed program was:" >&5
7640sed 's/^/| /' conftest.$ac_ext >&5
7641
7642ac_cv_lib_dld_shl_load=no
7643fi
7644rm -f conftest.err conftest.$ac_objext \
7645      conftest$ac_exeext conftest.$ac_ext
7646LIBS=$ac_check_lib_save_LIBS
7647fi
7648echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7649echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7650if test $ac_cv_lib_dld_shl_load = yes; then
7651
7652cat >>confdefs.h <<\_ACEOF
7653#define HAVE_SHL_LOAD 1
7654_ACEOF
7655
7656	LIBADD_DL="$LIBADD_DL -ldld"
7657else
7658  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7659echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7660if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7661  echo $ECHO_N "(cached) $ECHO_C" >&6
7662else
7663  ac_check_lib_save_LIBS=$LIBS
7664LIBS="-ldl  $LIBS"
7665cat >conftest.$ac_ext <<_ACEOF
7666/* confdefs.h.  */
7667_ACEOF
7668cat confdefs.h >>conftest.$ac_ext
7669cat >>conftest.$ac_ext <<_ACEOF
7670/* end confdefs.h.  */
7671
7672/* Override any gcc2 internal prototype to avoid an error.  */
7673#ifdef __cplusplus
7674extern "C"
7675#endif
7676/* We use char because int might match the return type of a gcc2
7677   builtin and then its argument prototype would still apply.  */
7678char dlopen ();
7679int
7680main ()
7681{
7682dlopen ();
7683  ;
7684  return 0;
7685}
7686_ACEOF
7687rm -f conftest.$ac_objext conftest$ac_exeext
7688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7689  (eval $ac_link) 2>conftest.er1
7690  ac_status=$?
7691  grep -v '^ *+' conftest.er1 >conftest.err
7692  rm -f conftest.er1
7693  cat conftest.err >&5
7694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695  (exit $ac_status); } &&
7696	 { ac_try='test -z "$ac_c_werror_flag"
7697			 || test ! -s conftest.err'
7698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699  (eval $ac_try) 2>&5
7700  ac_status=$?
7701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702  (exit $ac_status); }; } &&
7703	 { ac_try='test -s conftest$ac_exeext'
7704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705  (eval $ac_try) 2>&5
7706  ac_status=$?
7707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708  (exit $ac_status); }; }; then
7709  ac_cv_lib_dl_dlopen=yes
7710else
7711  echo "$as_me: failed program was:" >&5
7712sed 's/^/| /' conftest.$ac_ext >&5
7713
7714ac_cv_lib_dl_dlopen=no
7715fi
7716rm -f conftest.err conftest.$ac_objext \
7717      conftest$ac_exeext conftest.$ac_ext
7718LIBS=$ac_check_lib_save_LIBS
7719fi
7720echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7721echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7722if test $ac_cv_lib_dl_dlopen = yes; then
7723
7724cat >>confdefs.h <<\_ACEOF
7725#define HAVE_LIBDL 1
7726_ACEOF
7727
7728	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7729else
7730  cat >conftest.$ac_ext <<_ACEOF
7731/* confdefs.h.  */
7732_ACEOF
7733cat confdefs.h >>conftest.$ac_ext
7734cat >>conftest.$ac_ext <<_ACEOF
7735/* end confdefs.h.  */
7736#if HAVE_DLFCN_H
7737#  include <dlfcn.h>
7738#endif
7739
7740int
7741main ()
7742{
7743dlopen(0, 0);
7744  ;
7745  return 0;
7746}
7747_ACEOF
7748rm -f conftest.$ac_objext conftest$ac_exeext
7749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7750  (eval $ac_link) 2>conftest.er1
7751  ac_status=$?
7752  grep -v '^ *+' conftest.er1 >conftest.err
7753  rm -f conftest.er1
7754  cat conftest.err >&5
7755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756  (exit $ac_status); } &&
7757	 { ac_try='test -z "$ac_c_werror_flag"
7758			 || test ! -s conftest.err'
7759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760  (eval $ac_try) 2>&5
7761  ac_status=$?
7762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763  (exit $ac_status); }; } &&
7764	 { ac_try='test -s conftest$ac_exeext'
7765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766  (eval $ac_try) 2>&5
7767  ac_status=$?
7768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769  (exit $ac_status); }; }; then
7770
7771cat >>confdefs.h <<\_ACEOF
7772#define HAVE_LIBDL 1
7773_ACEOF
7774 libltdl_cv_func_dlopen="yes"
7775else
7776  echo "$as_me: failed program was:" >&5
7777sed 's/^/| /' conftest.$ac_ext >&5
7778
7779echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7780echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7781if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7782  echo $ECHO_N "(cached) $ECHO_C" >&6
7783else
7784  ac_check_lib_save_LIBS=$LIBS
7785LIBS="-lsvld  $LIBS"
7786cat >conftest.$ac_ext <<_ACEOF
7787/* confdefs.h.  */
7788_ACEOF
7789cat confdefs.h >>conftest.$ac_ext
7790cat >>conftest.$ac_ext <<_ACEOF
7791/* end confdefs.h.  */
7792
7793/* Override any gcc2 internal prototype to avoid an error.  */
7794#ifdef __cplusplus
7795extern "C"
7796#endif
7797/* We use char because int might match the return type of a gcc2
7798   builtin and then its argument prototype would still apply.  */
7799char dlopen ();
7800int
7801main ()
7802{
7803dlopen ();
7804  ;
7805  return 0;
7806}
7807_ACEOF
7808rm -f conftest.$ac_objext conftest$ac_exeext
7809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7810  (eval $ac_link) 2>conftest.er1
7811  ac_status=$?
7812  grep -v '^ *+' conftest.er1 >conftest.err
7813  rm -f conftest.er1
7814  cat conftest.err >&5
7815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816  (exit $ac_status); } &&
7817	 { ac_try='test -z "$ac_c_werror_flag"
7818			 || test ! -s conftest.err'
7819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7820  (eval $ac_try) 2>&5
7821  ac_status=$?
7822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823  (exit $ac_status); }; } &&
7824	 { ac_try='test -s conftest$ac_exeext'
7825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826  (eval $ac_try) 2>&5
7827  ac_status=$?
7828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829  (exit $ac_status); }; }; then
7830  ac_cv_lib_svld_dlopen=yes
7831else
7832  echo "$as_me: failed program was:" >&5
7833sed 's/^/| /' conftest.$ac_ext >&5
7834
7835ac_cv_lib_svld_dlopen=no
7836fi
7837rm -f conftest.err conftest.$ac_objext \
7838      conftest$ac_exeext conftest.$ac_ext
7839LIBS=$ac_check_lib_save_LIBS
7840fi
7841echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7842echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7843if test $ac_cv_lib_svld_dlopen = yes; then
7844
7845cat >>confdefs.h <<\_ACEOF
7846#define HAVE_LIBDL 1
7847_ACEOF
7848
7849	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7850else
7851  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7852echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7853if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7854  echo $ECHO_N "(cached) $ECHO_C" >&6
7855else
7856  ac_check_lib_save_LIBS=$LIBS
7857LIBS="-ldld  $LIBS"
7858cat >conftest.$ac_ext <<_ACEOF
7859/* confdefs.h.  */
7860_ACEOF
7861cat confdefs.h >>conftest.$ac_ext
7862cat >>conftest.$ac_ext <<_ACEOF
7863/* end confdefs.h.  */
7864
7865/* Override any gcc2 internal prototype to avoid an error.  */
7866#ifdef __cplusplus
7867extern "C"
7868#endif
7869/* We use char because int might match the return type of a gcc2
7870   builtin and then its argument prototype would still apply.  */
7871char dld_link ();
7872int
7873main ()
7874{
7875dld_link ();
7876  ;
7877  return 0;
7878}
7879_ACEOF
7880rm -f conftest.$ac_objext conftest$ac_exeext
7881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7882  (eval $ac_link) 2>conftest.er1
7883  ac_status=$?
7884  grep -v '^ *+' conftest.er1 >conftest.err
7885  rm -f conftest.er1
7886  cat conftest.err >&5
7887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888  (exit $ac_status); } &&
7889	 { ac_try='test -z "$ac_c_werror_flag"
7890			 || test ! -s conftest.err'
7891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892  (eval $ac_try) 2>&5
7893  ac_status=$?
7894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895  (exit $ac_status); }; } &&
7896	 { ac_try='test -s conftest$ac_exeext'
7897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898  (eval $ac_try) 2>&5
7899  ac_status=$?
7900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901  (exit $ac_status); }; }; then
7902  ac_cv_lib_dld_dld_link=yes
7903else
7904  echo "$as_me: failed program was:" >&5
7905sed 's/^/| /' conftest.$ac_ext >&5
7906
7907ac_cv_lib_dld_dld_link=no
7908fi
7909rm -f conftest.err conftest.$ac_objext \
7910      conftest$ac_exeext conftest.$ac_ext
7911LIBS=$ac_check_lib_save_LIBS
7912fi
7913echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7914echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7915if test $ac_cv_lib_dld_dld_link = yes; then
7916
7917cat >>confdefs.h <<\_ACEOF
7918#define HAVE_DLD 1
7919_ACEOF
7920
7921	 	LIBADD_DL="$LIBADD_DL -ldld"
7922else
7923  echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7924echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7925if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7926  echo $ECHO_N "(cached) $ECHO_C" >&6
7927else
7928  cat >conftest.$ac_ext <<_ACEOF
7929/* confdefs.h.  */
7930_ACEOF
7931cat confdefs.h >>conftest.$ac_ext
7932cat >>conftest.$ac_ext <<_ACEOF
7933/* end confdefs.h.  */
7934/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7935   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7936#define _dyld_func_lookup innocuous__dyld_func_lookup
7937
7938/* System header to define __stub macros and hopefully few prototypes,
7939    which can conflict with char _dyld_func_lookup (); below.
7940    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7941    <limits.h> exists even on freestanding compilers.  */
7942
7943#ifdef __STDC__
7944# include <limits.h>
7945#else
7946# include <assert.h>
7947#endif
7948
7949#undef _dyld_func_lookup
7950
7951/* Override any gcc2 internal prototype to avoid an error.  */
7952#ifdef __cplusplus
7953extern "C"
7954{
7955#endif
7956/* We use char because int might match the return type of a gcc2
7957   builtin and then its argument prototype would still apply.  */
7958char _dyld_func_lookup ();
7959/* The GNU C library defines this for functions which it implements
7960    to always fail with ENOSYS.  Some functions are actually named
7961    something starting with __ and the normal name is an alias.  */
7962#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7963choke me
7964#else
7965char (*f) () = _dyld_func_lookup;
7966#endif
7967#ifdef __cplusplus
7968}
7969#endif
7970
7971int
7972main ()
7973{
7974return f != _dyld_func_lookup;
7975  ;
7976  return 0;
7977}
7978_ACEOF
7979rm -f conftest.$ac_objext conftest$ac_exeext
7980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7981  (eval $ac_link) 2>conftest.er1
7982  ac_status=$?
7983  grep -v '^ *+' conftest.er1 >conftest.err
7984  rm -f conftest.er1
7985  cat conftest.err >&5
7986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987  (exit $ac_status); } &&
7988	 { ac_try='test -z "$ac_c_werror_flag"
7989			 || test ! -s conftest.err'
7990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991  (eval $ac_try) 2>&5
7992  ac_status=$?
7993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994  (exit $ac_status); }; } &&
7995	 { ac_try='test -s conftest$ac_exeext'
7996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997  (eval $ac_try) 2>&5
7998  ac_status=$?
7999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000  (exit $ac_status); }; }; then
8001  ac_cv_func__dyld_func_lookup=yes
8002else
8003  echo "$as_me: failed program was:" >&5
8004sed 's/^/| /' conftest.$ac_ext >&5
8005
8006ac_cv_func__dyld_func_lookup=no
8007fi
8008rm -f conftest.err conftest.$ac_objext \
8009      conftest$ac_exeext conftest.$ac_ext
8010fi
8011echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8012echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8013if test $ac_cv_func__dyld_func_lookup = yes; then
8014
8015cat >>confdefs.h <<\_ACEOF
8016#define HAVE_DYLD 1
8017_ACEOF
8018
8019fi
8020
8021
8022fi
8023
8024
8025fi
8026
8027
8028fi
8029rm -f conftest.err conftest.$ac_objext \
8030      conftest$ac_exeext conftest.$ac_ext
8031
8032fi
8033
8034
8035fi
8036
8037
8038fi
8039
8040
8041if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8042then
8043  lt_save_LIBS="$LIBS"
8044  LIBS="$LIBS $LIBADD_DL"
8045
8046for ac_func in dlerror
8047do
8048as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8049echo "$as_me:$LINENO: checking for $ac_func" >&5
8050echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8051if eval "test \"\${$as_ac_var+set}\" = set"; then
8052  echo $ECHO_N "(cached) $ECHO_C" >&6
8053else
8054  cat >conftest.$ac_ext <<_ACEOF
8055/* confdefs.h.  */
8056_ACEOF
8057cat confdefs.h >>conftest.$ac_ext
8058cat >>conftest.$ac_ext <<_ACEOF
8059/* end confdefs.h.  */
8060/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8061   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8062#define $ac_func innocuous_$ac_func
8063
8064/* System header to define __stub macros and hopefully few prototypes,
8065    which can conflict with char $ac_func (); below.
8066    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8067    <limits.h> exists even on freestanding compilers.  */
8068
8069#ifdef __STDC__
8070# include <limits.h>
8071#else
8072# include <assert.h>
8073#endif
8074
8075#undef $ac_func
8076
8077/* Override any gcc2 internal prototype to avoid an error.  */
8078#ifdef __cplusplus
8079extern "C"
8080{
8081#endif
8082/* We use char because int might match the return type of a gcc2
8083   builtin and then its argument prototype would still apply.  */
8084char $ac_func ();
8085/* The GNU C library defines this for functions which it implements
8086    to always fail with ENOSYS.  Some functions are actually named
8087    something starting with __ and the normal name is an alias.  */
8088#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8089choke me
8090#else
8091char (*f) () = $ac_func;
8092#endif
8093#ifdef __cplusplus
8094}
8095#endif
8096
8097int
8098main ()
8099{
8100return f != $ac_func;
8101  ;
8102  return 0;
8103}
8104_ACEOF
8105rm -f conftest.$ac_objext conftest$ac_exeext
8106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8107  (eval $ac_link) 2>conftest.er1
8108  ac_status=$?
8109  grep -v '^ *+' conftest.er1 >conftest.err
8110  rm -f conftest.er1
8111  cat conftest.err >&5
8112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113  (exit $ac_status); } &&
8114	 { ac_try='test -z "$ac_c_werror_flag"
8115			 || test ! -s conftest.err'
8116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117  (eval $ac_try) 2>&5
8118  ac_status=$?
8119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120  (exit $ac_status); }; } &&
8121	 { ac_try='test -s conftest$ac_exeext'
8122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123  (eval $ac_try) 2>&5
8124  ac_status=$?
8125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126  (exit $ac_status); }; }; then
8127  eval "$as_ac_var=yes"
8128else
8129  echo "$as_me: failed program was:" >&5
8130sed 's/^/| /' conftest.$ac_ext >&5
8131
8132eval "$as_ac_var=no"
8133fi
8134rm -f conftest.err conftest.$ac_objext \
8135      conftest$ac_exeext conftest.$ac_ext
8136fi
8137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8138echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8139if test `eval echo '${'$as_ac_var'}'` = yes; then
8140  cat >>confdefs.h <<_ACEOF
8141#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8142_ACEOF
8143
8144fi
8145done
8146
8147  LIBS="$lt_save_LIBS"
8148fi
8149ac_ext=c
8150ac_cpp='$CPP $CPPFLAGS'
8151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8153ac_compiler_gnu=$ac_cv_c_compiler_gnu
8154
8155
8156
8157echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8158echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8159if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8160  echo $ECHO_N "(cached) $ECHO_C" >&6
8161else
8162  ac_cv_sys_symbol_underscore=no
8163  cat > conftest.$ac_ext <<EOF
8164void nm_test_func(){}
8165int main(){nm_test_func;return 0;}
8166EOF
8167  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8168  (eval $ac_compile) 2>&5
8169  ac_status=$?
8170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171  (exit $ac_status); }; then
8172    # Now try to grab the symbols.
8173    ac_nlist=conftest.nm
8174    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8175  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8176  ac_status=$?
8177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178  (exit $ac_status); } && test -s "$ac_nlist"; then
8179      # See whether the symbols have a leading underscore.
8180      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8181        ac_cv_sys_symbol_underscore=yes
8182      else
8183        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8184	  :
8185        else
8186	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8187        fi
8188      fi
8189    else
8190      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8191    fi
8192  else
8193    echo "configure: failed program was:" >&5
8194    cat conftest.c >&5
8195  fi
8196  rm -rf conftest*
8197
8198fi
8199echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8200echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8201
8202
8203if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8204  if test x"$libltdl_cv_func_dlopen" = xyes ||
8205     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8206	echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8207echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8208if test "${libltdl_cv_need_uscore+set}" = set; then
8209  echo $ECHO_N "(cached) $ECHO_C" >&6
8210else
8211  libltdl_cv_need_uscore=unknown
8212          save_LIBS="$LIBS"
8213          LIBS="$LIBS $LIBADD_DL"
8214	  if test "$cross_compiling" = yes; then :
8215  libltdl_cv_need_uscore=cross
8216else
8217  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8218  lt_status=$lt_dlunknown
8219  cat > conftest.$ac_ext <<EOF
8220#line 8220 "configure"
8221#include "confdefs.h"
8222
8223#if HAVE_DLFCN_H
8224#include <dlfcn.h>
8225#endif
8226
8227#include <stdio.h>
8228
8229#ifdef RTLD_GLOBAL
8230#  define LT_DLGLOBAL		RTLD_GLOBAL
8231#else
8232#  ifdef DL_GLOBAL
8233#    define LT_DLGLOBAL		DL_GLOBAL
8234#  else
8235#    define LT_DLGLOBAL		0
8236#  endif
8237#endif
8238
8239/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8240   find out it does not work in some platform. */
8241#ifndef LT_DLLAZY_OR_NOW
8242#  ifdef RTLD_LAZY
8243#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8244#  else
8245#    ifdef DL_LAZY
8246#      define LT_DLLAZY_OR_NOW		DL_LAZY
8247#    else
8248#      ifdef RTLD_NOW
8249#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8250#      else
8251#        ifdef DL_NOW
8252#          define LT_DLLAZY_OR_NOW	DL_NOW
8253#        else
8254#          define LT_DLLAZY_OR_NOW	0
8255#        endif
8256#      endif
8257#    endif
8258#  endif
8259#endif
8260
8261#ifdef __cplusplus
8262extern "C" void exit (int);
8263#endif
8264
8265void fnord() { int i=42;}
8266int main ()
8267{
8268  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8269  int status = $lt_dlunknown;
8270
8271  if (self)
8272    {
8273      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8274      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8275      /* dlclose (self); */
8276    }
8277
8278    exit (status);
8279}
8280EOF
8281  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8282  (eval $ac_link) 2>&5
8283  ac_status=$?
8284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8286    (./conftest; exit; ) 2>/dev/null
8287    lt_status=$?
8288    case x$lt_status in
8289      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8290      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8291      x$lt_unknown|x*)  ;;
8292    esac
8293  else :
8294    # compilation failed
8295
8296  fi
8297fi
8298rm -fr conftest*
8299
8300	  LIBS="$save_LIBS"
8301
8302fi
8303echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8304echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8305  fi
8306fi
8307
8308if test x"$libltdl_cv_need_uscore" = xyes; then
8309
8310cat >>confdefs.h <<\_ACEOF
8311#define NEED_USCORE 1
8312_ACEOF
8313
8314fi
8315
8316
8317echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8318echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8319if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8320  echo $ECHO_N "(cached) $ECHO_C" >&6
8321else
8322  # PORTME does your system automatically load deplibs for dlopen?
8323  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8324  # For now, we just catch OSes we know something about -- in the
8325  # future, we'll try test this programmatically.
8326  libltdl_cv_sys_dlopen_deplibs=unknown
8327  case "$host_os" in
8328  aix3*|aix4.1.*|aix4.2.*)
8329    # Unknown whether this is true for these versions of AIX, but
8330    # we want this `case' here to explicitly catch those versions.
8331    libltdl_cv_sys_dlopen_deplibs=unknown
8332    ;;
8333  aix[45]*)
8334    libltdl_cv_sys_dlopen_deplibs=yes
8335    ;;
8336  darwin*)
8337    # Assuming the user has installed a libdl from somewhere, this is true
8338    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8339    libltdl_cv_sys_dlopen_deplibs=yes
8340    ;;
8341  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8342    # GNU and its variants, using gnu ld.so (Glibc)
8343    libltdl_cv_sys_dlopen_deplibs=yes
8344    ;;
8345  hpux10*|hpux11*)
8346    libltdl_cv_sys_dlopen_deplibs=yes
8347    ;;
8348  irix[12345]*|irix6.[01]*)
8349    # Catch all versions of IRIX before 6.2, and indicate that we don't
8350    # know how it worked for any of those versions.
8351    libltdl_cv_sys_dlopen_deplibs=unknown
8352    ;;
8353  irix*)
8354    # The case above catches anything before 6.2, and it's known that
8355    # at 6.2 and later dlopen does load deplibs.
8356    libltdl_cv_sys_dlopen_deplibs=yes
8357    ;;
8358  netbsd*)
8359    libltdl_cv_sys_dlopen_deplibs=yes
8360    ;;
8361  openbsd*)
8362    libltdl_cv_sys_dlopen_deplibs=yes
8363    ;;
8364  osf[1234]*)
8365    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8366    # it did *not* use an RPATH in a shared library to find objects the
8367    # library depends on, so we explictly say `no'.
8368    libltdl_cv_sys_dlopen_deplibs=no
8369    ;;
8370  osf5.0|osf5.0a|osf5.1)
8371    # dlopen *does* load deplibs and with the right loader patch applied
8372    # it even uses RPATH in a shared library to search for shared objects
8373    # that the library depends on, but there's no easy way to know if that
8374    # patch is installed.  Since this is the case, all we can really
8375    # say is unknown -- it depends on the patch being installed.  If
8376    # it is, this changes to `yes'.  Without it, it would be `no'.
8377    libltdl_cv_sys_dlopen_deplibs=unknown
8378    ;;
8379  osf*)
8380    # the two cases above should catch all versions of osf <= 5.1.  Read
8381    # the comments above for what we know about them.
8382    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8383    # is used to find them so we can finally say `yes'.
8384    libltdl_cv_sys_dlopen_deplibs=yes
8385    ;;
8386  solaris*)
8387    libltdl_cv_sys_dlopen_deplibs=yes
8388    ;;
8389  esac
8390
8391fi
8392echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8393echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8394if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8395
8396cat >>confdefs.h <<\_ACEOF
8397#define LTDL_DLOPEN_DEPLIBS 1
8398_ACEOF
8399
8400fi
8401
8402
8403for ac_header in argz.h
8404do
8405as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8406if eval "test \"\${$as_ac_Header+set}\" = set"; then
8407  echo "$as_me:$LINENO: checking for $ac_header" >&5
8408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8409if eval "test \"\${$as_ac_Header+set}\" = set"; then
8410  echo $ECHO_N "(cached) $ECHO_C" >&6
8411fi
8412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8413echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8414else
8415  # Is the header compilable?
8416echo "$as_me:$LINENO: checking $ac_header usability" >&5
8417echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8418cat >conftest.$ac_ext <<_ACEOF
8419/* confdefs.h.  */
8420_ACEOF
8421cat confdefs.h >>conftest.$ac_ext
8422cat >>conftest.$ac_ext <<_ACEOF
8423/* end confdefs.h.  */
8424$ac_includes_default
8425#include <$ac_header>
8426_ACEOF
8427rm -f conftest.$ac_objext
8428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8429  (eval $ac_compile) 2>conftest.er1
8430  ac_status=$?
8431  grep -v '^ *+' conftest.er1 >conftest.err
8432  rm -f conftest.er1
8433  cat conftest.err >&5
8434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435  (exit $ac_status); } &&
8436	 { ac_try='test -z "$ac_c_werror_flag"
8437			 || test ! -s conftest.err'
8438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439  (eval $ac_try) 2>&5
8440  ac_status=$?
8441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442  (exit $ac_status); }; } &&
8443	 { ac_try='test -s conftest.$ac_objext'
8444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445  (eval $ac_try) 2>&5
8446  ac_status=$?
8447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448  (exit $ac_status); }; }; then
8449  ac_header_compiler=yes
8450else
8451  echo "$as_me: failed program was:" >&5
8452sed 's/^/| /' conftest.$ac_ext >&5
8453
8454ac_header_compiler=no
8455fi
8456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8457echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8458echo "${ECHO_T}$ac_header_compiler" >&6
8459
8460# Is the header present?
8461echo "$as_me:$LINENO: checking $ac_header presence" >&5
8462echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8463cat >conftest.$ac_ext <<_ACEOF
8464/* confdefs.h.  */
8465_ACEOF
8466cat confdefs.h >>conftest.$ac_ext
8467cat >>conftest.$ac_ext <<_ACEOF
8468/* end confdefs.h.  */
8469#include <$ac_header>
8470_ACEOF
8471if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8472  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8473  ac_status=$?
8474  grep -v '^ *+' conftest.er1 >conftest.err
8475  rm -f conftest.er1
8476  cat conftest.err >&5
8477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478  (exit $ac_status); } >/dev/null; then
8479  if test -s conftest.err; then
8480    ac_cpp_err=$ac_c_preproc_warn_flag
8481    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8482  else
8483    ac_cpp_err=
8484  fi
8485else
8486  ac_cpp_err=yes
8487fi
8488if test -z "$ac_cpp_err"; then
8489  ac_header_preproc=yes
8490else
8491  echo "$as_me: failed program was:" >&5
8492sed 's/^/| /' conftest.$ac_ext >&5
8493
8494  ac_header_preproc=no
8495fi
8496rm -f conftest.err conftest.$ac_ext
8497echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8498echo "${ECHO_T}$ac_header_preproc" >&6
8499
8500# So?  What about this header?
8501case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8502  yes:no: )
8503    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8504echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8505    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8506echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8507    ac_header_preproc=yes
8508    ;;
8509  no:yes:* )
8510    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8511echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8512    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8513echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8514    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8515echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8516    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8517echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8518    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8519echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8520    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8521echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8522    (
8523      cat <<\_ASBOX
8524## ----------------------------------- ##
8525## Report this to llvmbugs@cs.uiuc.edu ##
8526## ----------------------------------- ##
8527_ASBOX
8528    ) |
8529      sed "s/^/$as_me: WARNING:     /" >&2
8530    ;;
8531esac
8532echo "$as_me:$LINENO: checking for $ac_header" >&5
8533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8534if eval "test \"\${$as_ac_Header+set}\" = set"; then
8535  echo $ECHO_N "(cached) $ECHO_C" >&6
8536else
8537  eval "$as_ac_Header=\$ac_header_preproc"
8538fi
8539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8541
8542fi
8543if test `eval echo '${'$as_ac_Header'}'` = yes; then
8544  cat >>confdefs.h <<_ACEOF
8545#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8546_ACEOF
8547
8548fi
8549
8550done
8551
8552
8553echo "$as_me:$LINENO: checking for error_t" >&5
8554echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8555if test "${ac_cv_type_error_t+set}" = set; then
8556  echo $ECHO_N "(cached) $ECHO_C" >&6
8557else
8558  cat >conftest.$ac_ext <<_ACEOF
8559/* confdefs.h.  */
8560_ACEOF
8561cat confdefs.h >>conftest.$ac_ext
8562cat >>conftest.$ac_ext <<_ACEOF
8563/* end confdefs.h.  */
8564#if HAVE_ARGZ_H
8565#  include <argz.h>
8566#endif
8567
8568int
8569main ()
8570{
8571if ((error_t *) 0)
8572  return 0;
8573if (sizeof (error_t))
8574  return 0;
8575  ;
8576  return 0;
8577}
8578_ACEOF
8579rm -f conftest.$ac_objext
8580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8581  (eval $ac_compile) 2>conftest.er1
8582  ac_status=$?
8583  grep -v '^ *+' conftest.er1 >conftest.err
8584  rm -f conftest.er1
8585  cat conftest.err >&5
8586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587  (exit $ac_status); } &&
8588	 { ac_try='test -z "$ac_c_werror_flag"
8589			 || test ! -s conftest.err'
8590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591  (eval $ac_try) 2>&5
8592  ac_status=$?
8593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594  (exit $ac_status); }; } &&
8595	 { ac_try='test -s conftest.$ac_objext'
8596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597  (eval $ac_try) 2>&5
8598  ac_status=$?
8599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600  (exit $ac_status); }; }; then
8601  ac_cv_type_error_t=yes
8602else
8603  echo "$as_me: failed program was:" >&5
8604sed 's/^/| /' conftest.$ac_ext >&5
8605
8606ac_cv_type_error_t=no
8607fi
8608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8609fi
8610echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8611echo "${ECHO_T}$ac_cv_type_error_t" >&6
8612if test $ac_cv_type_error_t = yes; then
8613
8614cat >>confdefs.h <<_ACEOF
8615#define HAVE_ERROR_T 1
8616_ACEOF
8617
8618
8619else
8620
8621cat >>confdefs.h <<\_ACEOF
8622#define error_t int
8623_ACEOF
8624
8625fi
8626
8627
8628
8629
8630
8631
8632
8633for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8634do
8635as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8636echo "$as_me:$LINENO: checking for $ac_func" >&5
8637echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8638if eval "test \"\${$as_ac_var+set}\" = set"; then
8639  echo $ECHO_N "(cached) $ECHO_C" >&6
8640else
8641  cat >conftest.$ac_ext <<_ACEOF
8642/* confdefs.h.  */
8643_ACEOF
8644cat confdefs.h >>conftest.$ac_ext
8645cat >>conftest.$ac_ext <<_ACEOF
8646/* end confdefs.h.  */
8647/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8648   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8649#define $ac_func innocuous_$ac_func
8650
8651/* System header to define __stub macros and hopefully few prototypes,
8652    which can conflict with char $ac_func (); below.
8653    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8654    <limits.h> exists even on freestanding compilers.  */
8655
8656#ifdef __STDC__
8657# include <limits.h>
8658#else
8659# include <assert.h>
8660#endif
8661
8662#undef $ac_func
8663
8664/* Override any gcc2 internal prototype to avoid an error.  */
8665#ifdef __cplusplus
8666extern "C"
8667{
8668#endif
8669/* We use char because int might match the return type of a gcc2
8670   builtin and then its argument prototype would still apply.  */
8671char $ac_func ();
8672/* The GNU C library defines this for functions which it implements
8673    to always fail with ENOSYS.  Some functions are actually named
8674    something starting with __ and the normal name is an alias.  */
8675#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8676choke me
8677#else
8678char (*f) () = $ac_func;
8679#endif
8680#ifdef __cplusplus
8681}
8682#endif
8683
8684int
8685main ()
8686{
8687return f != $ac_func;
8688  ;
8689  return 0;
8690}
8691_ACEOF
8692rm -f conftest.$ac_objext conftest$ac_exeext
8693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8694  (eval $ac_link) 2>conftest.er1
8695  ac_status=$?
8696  grep -v '^ *+' conftest.er1 >conftest.err
8697  rm -f conftest.er1
8698  cat conftest.err >&5
8699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700  (exit $ac_status); } &&
8701	 { ac_try='test -z "$ac_c_werror_flag"
8702			 || test ! -s conftest.err'
8703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704  (eval $ac_try) 2>&5
8705  ac_status=$?
8706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707  (exit $ac_status); }; } &&
8708	 { ac_try='test -s conftest$ac_exeext'
8709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710  (eval $ac_try) 2>&5
8711  ac_status=$?
8712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713  (exit $ac_status); }; }; then
8714  eval "$as_ac_var=yes"
8715else
8716  echo "$as_me: failed program was:" >&5
8717sed 's/^/| /' conftest.$ac_ext >&5
8718
8719eval "$as_ac_var=no"
8720fi
8721rm -f conftest.err conftest.$ac_objext \
8722      conftest$ac_exeext conftest.$ac_ext
8723fi
8724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8725echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8726if test `eval echo '${'$as_ac_var'}'` = yes; then
8727  cat >>confdefs.h <<_ACEOF
8728#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8729_ACEOF
8730
8731fi
8732done
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8762		  stdio.h unistd.h
8763do
8764as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8765if eval "test \"\${$as_ac_Header+set}\" = set"; then
8766  echo "$as_me:$LINENO: checking for $ac_header" >&5
8767echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8768if eval "test \"\${$as_ac_Header+set}\" = set"; then
8769  echo $ECHO_N "(cached) $ECHO_C" >&6
8770fi
8771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8772echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8773else
8774  # Is the header compilable?
8775echo "$as_me:$LINENO: checking $ac_header usability" >&5
8776echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8777cat >conftest.$ac_ext <<_ACEOF
8778/* confdefs.h.  */
8779_ACEOF
8780cat confdefs.h >>conftest.$ac_ext
8781cat >>conftest.$ac_ext <<_ACEOF
8782/* end confdefs.h.  */
8783$ac_includes_default
8784#include <$ac_header>
8785_ACEOF
8786rm -f conftest.$ac_objext
8787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8788  (eval $ac_compile) 2>conftest.er1
8789  ac_status=$?
8790  grep -v '^ *+' conftest.er1 >conftest.err
8791  rm -f conftest.er1
8792  cat conftest.err >&5
8793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794  (exit $ac_status); } &&
8795	 { ac_try='test -z "$ac_c_werror_flag"
8796			 || test ! -s conftest.err'
8797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798  (eval $ac_try) 2>&5
8799  ac_status=$?
8800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801  (exit $ac_status); }; } &&
8802	 { ac_try='test -s conftest.$ac_objext'
8803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804  (eval $ac_try) 2>&5
8805  ac_status=$?
8806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807  (exit $ac_status); }; }; then
8808  ac_header_compiler=yes
8809else
8810  echo "$as_me: failed program was:" >&5
8811sed 's/^/| /' conftest.$ac_ext >&5
8812
8813ac_header_compiler=no
8814fi
8815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8816echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8817echo "${ECHO_T}$ac_header_compiler" >&6
8818
8819# Is the header present?
8820echo "$as_me:$LINENO: checking $ac_header presence" >&5
8821echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8822cat >conftest.$ac_ext <<_ACEOF
8823/* confdefs.h.  */
8824_ACEOF
8825cat confdefs.h >>conftest.$ac_ext
8826cat >>conftest.$ac_ext <<_ACEOF
8827/* end confdefs.h.  */
8828#include <$ac_header>
8829_ACEOF
8830if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8831  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8832  ac_status=$?
8833  grep -v '^ *+' conftest.er1 >conftest.err
8834  rm -f conftest.er1
8835  cat conftest.err >&5
8836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837  (exit $ac_status); } >/dev/null; then
8838  if test -s conftest.err; then
8839    ac_cpp_err=$ac_c_preproc_warn_flag
8840    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8841  else
8842    ac_cpp_err=
8843  fi
8844else
8845  ac_cpp_err=yes
8846fi
8847if test -z "$ac_cpp_err"; then
8848  ac_header_preproc=yes
8849else
8850  echo "$as_me: failed program was:" >&5
8851sed 's/^/| /' conftest.$ac_ext >&5
8852
8853  ac_header_preproc=no
8854fi
8855rm -f conftest.err conftest.$ac_ext
8856echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8857echo "${ECHO_T}$ac_header_preproc" >&6
8858
8859# So?  What about this header?
8860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8861  yes:no: )
8862    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8863echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8864    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8865echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8866    ac_header_preproc=yes
8867    ;;
8868  no:yes:* )
8869    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8870echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8871    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8872echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8873    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8874echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8875    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8876echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8877    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8878echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8879    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8880echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8881    (
8882      cat <<\_ASBOX
8883## ----------------------------------- ##
8884## Report this to llvmbugs@cs.uiuc.edu ##
8885## ----------------------------------- ##
8886_ASBOX
8887    ) |
8888      sed "s/^/$as_me: WARNING:     /" >&2
8889    ;;
8890esac
8891echo "$as_me:$LINENO: checking for $ac_header" >&5
8892echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8893if eval "test \"\${$as_ac_Header+set}\" = set"; then
8894  echo $ECHO_N "(cached) $ECHO_C" >&6
8895else
8896  eval "$as_ac_Header=\$ac_header_preproc"
8897fi
8898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8899echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8900
8901fi
8902if test `eval echo '${'$as_ac_Header'}'` = yes; then
8903  cat >>confdefs.h <<_ACEOF
8904#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8905_ACEOF
8906
8907fi
8908
8909done
8910
8911
8912
8913
8914
8915for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8916do
8917as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8918if eval "test \"\${$as_ac_Header+set}\" = set"; then
8919  echo "$as_me:$LINENO: checking for $ac_header" >&5
8920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8921if eval "test \"\${$as_ac_Header+set}\" = set"; then
8922  echo $ECHO_N "(cached) $ECHO_C" >&6
8923fi
8924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8925echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8926else
8927  # Is the header compilable?
8928echo "$as_me:$LINENO: checking $ac_header usability" >&5
8929echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8930cat >conftest.$ac_ext <<_ACEOF
8931/* confdefs.h.  */
8932_ACEOF
8933cat confdefs.h >>conftest.$ac_ext
8934cat >>conftest.$ac_ext <<_ACEOF
8935/* end confdefs.h.  */
8936$ac_includes_default
8937#include <$ac_header>
8938_ACEOF
8939rm -f conftest.$ac_objext
8940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8941  (eval $ac_compile) 2>conftest.er1
8942  ac_status=$?
8943  grep -v '^ *+' conftest.er1 >conftest.err
8944  rm -f conftest.er1
8945  cat conftest.err >&5
8946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947  (exit $ac_status); } &&
8948	 { ac_try='test -z "$ac_c_werror_flag"
8949			 || test ! -s conftest.err'
8950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951  (eval $ac_try) 2>&5
8952  ac_status=$?
8953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954  (exit $ac_status); }; } &&
8955	 { ac_try='test -s conftest.$ac_objext'
8956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957  (eval $ac_try) 2>&5
8958  ac_status=$?
8959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960  (exit $ac_status); }; }; then
8961  ac_header_compiler=yes
8962else
8963  echo "$as_me: failed program was:" >&5
8964sed 's/^/| /' conftest.$ac_ext >&5
8965
8966ac_header_compiler=no
8967fi
8968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8969echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8970echo "${ECHO_T}$ac_header_compiler" >&6
8971
8972# Is the header present?
8973echo "$as_me:$LINENO: checking $ac_header presence" >&5
8974echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8975cat >conftest.$ac_ext <<_ACEOF
8976/* confdefs.h.  */
8977_ACEOF
8978cat confdefs.h >>conftest.$ac_ext
8979cat >>conftest.$ac_ext <<_ACEOF
8980/* end confdefs.h.  */
8981#include <$ac_header>
8982_ACEOF
8983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8984  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8985  ac_status=$?
8986  grep -v '^ *+' conftest.er1 >conftest.err
8987  rm -f conftest.er1
8988  cat conftest.err >&5
8989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990  (exit $ac_status); } >/dev/null; then
8991  if test -s conftest.err; then
8992    ac_cpp_err=$ac_c_preproc_warn_flag
8993    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8994  else
8995    ac_cpp_err=
8996  fi
8997else
8998  ac_cpp_err=yes
8999fi
9000if test -z "$ac_cpp_err"; then
9001  ac_header_preproc=yes
9002else
9003  echo "$as_me: failed program was:" >&5
9004sed 's/^/| /' conftest.$ac_ext >&5
9005
9006  ac_header_preproc=no
9007fi
9008rm -f conftest.err conftest.$ac_ext
9009echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9010echo "${ECHO_T}$ac_header_preproc" >&6
9011
9012# So?  What about this header?
9013case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9014  yes:no: )
9015    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9016echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9017    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9018echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9019    ac_header_preproc=yes
9020    ;;
9021  no:yes:* )
9022    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9023echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9024    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9025echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9026    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9027echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9028    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9029echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9030    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9031echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9032    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9033echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9034    (
9035      cat <<\_ASBOX
9036## ----------------------------------- ##
9037## Report this to llvmbugs@cs.uiuc.edu ##
9038## ----------------------------------- ##
9039_ASBOX
9040    ) |
9041      sed "s/^/$as_me: WARNING:     /" >&2
9042    ;;
9043esac
9044echo "$as_me:$LINENO: checking for $ac_header" >&5
9045echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9046if eval "test \"\${$as_ac_Header+set}\" = set"; then
9047  echo $ECHO_N "(cached) $ECHO_C" >&6
9048else
9049  eval "$as_ac_Header=\$ac_header_preproc"
9050fi
9051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9052echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9053
9054fi
9055if test `eval echo '${'$as_ac_Header'}'` = yes; then
9056  cat >>confdefs.h <<_ACEOF
9057#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9058_ACEOF
9059
9060fi
9061
9062done
9063
9064
9065
9066for ac_header in string.h strings.h
9067do
9068as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9069if eval "test \"\${$as_ac_Header+set}\" = set"; then
9070  echo "$as_me:$LINENO: checking for $ac_header" >&5
9071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9072if eval "test \"\${$as_ac_Header+set}\" = set"; then
9073  echo $ECHO_N "(cached) $ECHO_C" >&6
9074fi
9075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9076echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9077else
9078  # Is the header compilable?
9079echo "$as_me:$LINENO: checking $ac_header usability" >&5
9080echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9081cat >conftest.$ac_ext <<_ACEOF
9082/* confdefs.h.  */
9083_ACEOF
9084cat confdefs.h >>conftest.$ac_ext
9085cat >>conftest.$ac_ext <<_ACEOF
9086/* end confdefs.h.  */
9087$ac_includes_default
9088#include <$ac_header>
9089_ACEOF
9090rm -f conftest.$ac_objext
9091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9092  (eval $ac_compile) 2>conftest.er1
9093  ac_status=$?
9094  grep -v '^ *+' conftest.er1 >conftest.err
9095  rm -f conftest.er1
9096  cat conftest.err >&5
9097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098  (exit $ac_status); } &&
9099	 { ac_try='test -z "$ac_c_werror_flag"
9100			 || test ! -s conftest.err'
9101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9102  (eval $ac_try) 2>&5
9103  ac_status=$?
9104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105  (exit $ac_status); }; } &&
9106	 { ac_try='test -s conftest.$ac_objext'
9107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9108  (eval $ac_try) 2>&5
9109  ac_status=$?
9110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111  (exit $ac_status); }; }; then
9112  ac_header_compiler=yes
9113else
9114  echo "$as_me: failed program was:" >&5
9115sed 's/^/| /' conftest.$ac_ext >&5
9116
9117ac_header_compiler=no
9118fi
9119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9120echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9121echo "${ECHO_T}$ac_header_compiler" >&6
9122
9123# Is the header present?
9124echo "$as_me:$LINENO: checking $ac_header presence" >&5
9125echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9126cat >conftest.$ac_ext <<_ACEOF
9127/* confdefs.h.  */
9128_ACEOF
9129cat confdefs.h >>conftest.$ac_ext
9130cat >>conftest.$ac_ext <<_ACEOF
9131/* end confdefs.h.  */
9132#include <$ac_header>
9133_ACEOF
9134if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9135  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9136  ac_status=$?
9137  grep -v '^ *+' conftest.er1 >conftest.err
9138  rm -f conftest.er1
9139  cat conftest.err >&5
9140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141  (exit $ac_status); } >/dev/null; then
9142  if test -s conftest.err; then
9143    ac_cpp_err=$ac_c_preproc_warn_flag
9144    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9145  else
9146    ac_cpp_err=
9147  fi
9148else
9149  ac_cpp_err=yes
9150fi
9151if test -z "$ac_cpp_err"; then
9152  ac_header_preproc=yes
9153else
9154  echo "$as_me: failed program was:" >&5
9155sed 's/^/| /' conftest.$ac_ext >&5
9156
9157  ac_header_preproc=no
9158fi
9159rm -f conftest.err conftest.$ac_ext
9160echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9161echo "${ECHO_T}$ac_header_preproc" >&6
9162
9163# So?  What about this header?
9164case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9165  yes:no: )
9166    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9167echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9168    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9169echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9170    ac_header_preproc=yes
9171    ;;
9172  no:yes:* )
9173    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9174echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9175    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9176echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9177    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9178echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9179    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9180echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9181    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9182echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9183    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9184echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9185    (
9186      cat <<\_ASBOX
9187## ----------------------------------- ##
9188## Report this to llvmbugs@cs.uiuc.edu ##
9189## ----------------------------------- ##
9190_ASBOX
9191    ) |
9192      sed "s/^/$as_me: WARNING:     /" >&2
9193    ;;
9194esac
9195echo "$as_me:$LINENO: checking for $ac_header" >&5
9196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9197if eval "test \"\${$as_ac_Header+set}\" = set"; then
9198  echo $ECHO_N "(cached) $ECHO_C" >&6
9199else
9200  eval "$as_ac_Header=\$ac_header_preproc"
9201fi
9202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9203echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9204
9205fi
9206if test `eval echo '${'$as_ac_Header'}'` = yes; then
9207  cat >>confdefs.h <<_ACEOF
9208#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9209_ACEOF
9210 break
9211fi
9212
9213done
9214
9215
9216
9217
9218for ac_func in strchr index
9219do
9220as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9221echo "$as_me:$LINENO: checking for $ac_func" >&5
9222echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9223if eval "test \"\${$as_ac_var+set}\" = set"; then
9224  echo $ECHO_N "(cached) $ECHO_C" >&6
9225else
9226  cat >conftest.$ac_ext <<_ACEOF
9227/* confdefs.h.  */
9228_ACEOF
9229cat confdefs.h >>conftest.$ac_ext
9230cat >>conftest.$ac_ext <<_ACEOF
9231/* end confdefs.h.  */
9232/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9233   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9234#define $ac_func innocuous_$ac_func
9235
9236/* System header to define __stub macros and hopefully few prototypes,
9237    which can conflict with char $ac_func (); below.
9238    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9239    <limits.h> exists even on freestanding compilers.  */
9240
9241#ifdef __STDC__
9242# include <limits.h>
9243#else
9244# include <assert.h>
9245#endif
9246
9247#undef $ac_func
9248
9249/* Override any gcc2 internal prototype to avoid an error.  */
9250#ifdef __cplusplus
9251extern "C"
9252{
9253#endif
9254/* We use char because int might match the return type of a gcc2
9255   builtin and then its argument prototype would still apply.  */
9256char $ac_func ();
9257/* The GNU C library defines this for functions which it implements
9258    to always fail with ENOSYS.  Some functions are actually named
9259    something starting with __ and the normal name is an alias.  */
9260#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9261choke me
9262#else
9263char (*f) () = $ac_func;
9264#endif
9265#ifdef __cplusplus
9266}
9267#endif
9268
9269int
9270main ()
9271{
9272return f != $ac_func;
9273  ;
9274  return 0;
9275}
9276_ACEOF
9277rm -f conftest.$ac_objext conftest$ac_exeext
9278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9279  (eval $ac_link) 2>conftest.er1
9280  ac_status=$?
9281  grep -v '^ *+' conftest.er1 >conftest.err
9282  rm -f conftest.er1
9283  cat conftest.err >&5
9284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285  (exit $ac_status); } &&
9286	 { ac_try='test -z "$ac_c_werror_flag"
9287			 || test ! -s conftest.err'
9288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9289  (eval $ac_try) 2>&5
9290  ac_status=$?
9291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292  (exit $ac_status); }; } &&
9293	 { ac_try='test -s conftest$ac_exeext'
9294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295  (eval $ac_try) 2>&5
9296  ac_status=$?
9297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298  (exit $ac_status); }; }; then
9299  eval "$as_ac_var=yes"
9300else
9301  echo "$as_me: failed program was:" >&5
9302sed 's/^/| /' conftest.$ac_ext >&5
9303
9304eval "$as_ac_var=no"
9305fi
9306rm -f conftest.err conftest.$ac_objext \
9307      conftest$ac_exeext conftest.$ac_ext
9308fi
9309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9310echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9311if test `eval echo '${'$as_ac_var'}'` = yes; then
9312  cat >>confdefs.h <<_ACEOF
9313#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9314_ACEOF
9315 break
9316fi
9317done
9318
9319
9320
9321for ac_func in strrchr rindex
9322do
9323as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9324echo "$as_me:$LINENO: checking for $ac_func" >&5
9325echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9326if eval "test \"\${$as_ac_var+set}\" = set"; then
9327  echo $ECHO_N "(cached) $ECHO_C" >&6
9328else
9329  cat >conftest.$ac_ext <<_ACEOF
9330/* confdefs.h.  */
9331_ACEOF
9332cat confdefs.h >>conftest.$ac_ext
9333cat >>conftest.$ac_ext <<_ACEOF
9334/* end confdefs.h.  */
9335/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9336   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9337#define $ac_func innocuous_$ac_func
9338
9339/* System header to define __stub macros and hopefully few prototypes,
9340    which can conflict with char $ac_func (); below.
9341    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9342    <limits.h> exists even on freestanding compilers.  */
9343
9344#ifdef __STDC__
9345# include <limits.h>
9346#else
9347# include <assert.h>
9348#endif
9349
9350#undef $ac_func
9351
9352/* Override any gcc2 internal prototype to avoid an error.  */
9353#ifdef __cplusplus
9354extern "C"
9355{
9356#endif
9357/* We use char because int might match the return type of a gcc2
9358   builtin and then its argument prototype would still apply.  */
9359char $ac_func ();
9360/* The GNU C library defines this for functions which it implements
9361    to always fail with ENOSYS.  Some functions are actually named
9362    something starting with __ and the normal name is an alias.  */
9363#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9364choke me
9365#else
9366char (*f) () = $ac_func;
9367#endif
9368#ifdef __cplusplus
9369}
9370#endif
9371
9372int
9373main ()
9374{
9375return f != $ac_func;
9376  ;
9377  return 0;
9378}
9379_ACEOF
9380rm -f conftest.$ac_objext conftest$ac_exeext
9381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9382  (eval $ac_link) 2>conftest.er1
9383  ac_status=$?
9384  grep -v '^ *+' conftest.er1 >conftest.err
9385  rm -f conftest.er1
9386  cat conftest.err >&5
9387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388  (exit $ac_status); } &&
9389	 { ac_try='test -z "$ac_c_werror_flag"
9390			 || test ! -s conftest.err'
9391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392  (eval $ac_try) 2>&5
9393  ac_status=$?
9394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395  (exit $ac_status); }; } &&
9396	 { ac_try='test -s conftest$ac_exeext'
9397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398  (eval $ac_try) 2>&5
9399  ac_status=$?
9400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401  (exit $ac_status); }; }; then
9402  eval "$as_ac_var=yes"
9403else
9404  echo "$as_me: failed program was:" >&5
9405sed 's/^/| /' conftest.$ac_ext >&5
9406
9407eval "$as_ac_var=no"
9408fi
9409rm -f conftest.err conftest.$ac_objext \
9410      conftest$ac_exeext conftest.$ac_ext
9411fi
9412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9413echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9414if test `eval echo '${'$as_ac_var'}'` = yes; then
9415  cat >>confdefs.h <<_ACEOF
9416#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9417_ACEOF
9418 break
9419fi
9420done
9421
9422
9423
9424for ac_func in memcpy bcopy
9425do
9426as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9427echo "$as_me:$LINENO: checking for $ac_func" >&5
9428echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9429if eval "test \"\${$as_ac_var+set}\" = set"; then
9430  echo $ECHO_N "(cached) $ECHO_C" >&6
9431else
9432  cat >conftest.$ac_ext <<_ACEOF
9433/* confdefs.h.  */
9434_ACEOF
9435cat confdefs.h >>conftest.$ac_ext
9436cat >>conftest.$ac_ext <<_ACEOF
9437/* end confdefs.h.  */
9438/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9439   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9440#define $ac_func innocuous_$ac_func
9441
9442/* System header to define __stub macros and hopefully few prototypes,
9443    which can conflict with char $ac_func (); below.
9444    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9445    <limits.h> exists even on freestanding compilers.  */
9446
9447#ifdef __STDC__
9448# include <limits.h>
9449#else
9450# include <assert.h>
9451#endif
9452
9453#undef $ac_func
9454
9455/* Override any gcc2 internal prototype to avoid an error.  */
9456#ifdef __cplusplus
9457extern "C"
9458{
9459#endif
9460/* We use char because int might match the return type of a gcc2
9461   builtin and then its argument prototype would still apply.  */
9462char $ac_func ();
9463/* The GNU C library defines this for functions which it implements
9464    to always fail with ENOSYS.  Some functions are actually named
9465    something starting with __ and the normal name is an alias.  */
9466#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9467choke me
9468#else
9469char (*f) () = $ac_func;
9470#endif
9471#ifdef __cplusplus
9472}
9473#endif
9474
9475int
9476main ()
9477{
9478return f != $ac_func;
9479  ;
9480  return 0;
9481}
9482_ACEOF
9483rm -f conftest.$ac_objext conftest$ac_exeext
9484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9485  (eval $ac_link) 2>conftest.er1
9486  ac_status=$?
9487  grep -v '^ *+' conftest.er1 >conftest.err
9488  rm -f conftest.er1
9489  cat conftest.err >&5
9490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491  (exit $ac_status); } &&
9492	 { ac_try='test -z "$ac_c_werror_flag"
9493			 || test ! -s conftest.err'
9494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495  (eval $ac_try) 2>&5
9496  ac_status=$?
9497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498  (exit $ac_status); }; } &&
9499	 { ac_try='test -s conftest$ac_exeext'
9500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501  (eval $ac_try) 2>&5
9502  ac_status=$?
9503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504  (exit $ac_status); }; }; then
9505  eval "$as_ac_var=yes"
9506else
9507  echo "$as_me: failed program was:" >&5
9508sed 's/^/| /' conftest.$ac_ext >&5
9509
9510eval "$as_ac_var=no"
9511fi
9512rm -f conftest.err conftest.$ac_objext \
9513      conftest$ac_exeext conftest.$ac_ext
9514fi
9515echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9516echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9517if test `eval echo '${'$as_ac_var'}'` = yes; then
9518  cat >>confdefs.h <<_ACEOF
9519#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9520_ACEOF
9521 break
9522fi
9523done
9524
9525
9526
9527for ac_func in memmove strcmp
9528do
9529as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9530echo "$as_me:$LINENO: checking for $ac_func" >&5
9531echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9532if eval "test \"\${$as_ac_var+set}\" = set"; then
9533  echo $ECHO_N "(cached) $ECHO_C" >&6
9534else
9535  cat >conftest.$ac_ext <<_ACEOF
9536/* confdefs.h.  */
9537_ACEOF
9538cat confdefs.h >>conftest.$ac_ext
9539cat >>conftest.$ac_ext <<_ACEOF
9540/* end confdefs.h.  */
9541/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9542   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9543#define $ac_func innocuous_$ac_func
9544
9545/* System header to define __stub macros and hopefully few prototypes,
9546    which can conflict with char $ac_func (); below.
9547    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9548    <limits.h> exists even on freestanding compilers.  */
9549
9550#ifdef __STDC__
9551# include <limits.h>
9552#else
9553# include <assert.h>
9554#endif
9555
9556#undef $ac_func
9557
9558/* Override any gcc2 internal prototype to avoid an error.  */
9559#ifdef __cplusplus
9560extern "C"
9561{
9562#endif
9563/* We use char because int might match the return type of a gcc2
9564   builtin and then its argument prototype would still apply.  */
9565char $ac_func ();
9566/* The GNU C library defines this for functions which it implements
9567    to always fail with ENOSYS.  Some functions are actually named
9568    something starting with __ and the normal name is an alias.  */
9569#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9570choke me
9571#else
9572char (*f) () = $ac_func;
9573#endif
9574#ifdef __cplusplus
9575}
9576#endif
9577
9578int
9579main ()
9580{
9581return f != $ac_func;
9582  ;
9583  return 0;
9584}
9585_ACEOF
9586rm -f conftest.$ac_objext conftest$ac_exeext
9587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9588  (eval $ac_link) 2>conftest.er1
9589  ac_status=$?
9590  grep -v '^ *+' conftest.er1 >conftest.err
9591  rm -f conftest.er1
9592  cat conftest.err >&5
9593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594  (exit $ac_status); } &&
9595	 { ac_try='test -z "$ac_c_werror_flag"
9596			 || test ! -s conftest.err'
9597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598  (eval $ac_try) 2>&5
9599  ac_status=$?
9600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601  (exit $ac_status); }; } &&
9602	 { ac_try='test -s conftest$ac_exeext'
9603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9604  (eval $ac_try) 2>&5
9605  ac_status=$?
9606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607  (exit $ac_status); }; }; then
9608  eval "$as_ac_var=yes"
9609else
9610  echo "$as_me: failed program was:" >&5
9611sed 's/^/| /' conftest.$ac_ext >&5
9612
9613eval "$as_ac_var=no"
9614fi
9615rm -f conftest.err conftest.$ac_objext \
9616      conftest$ac_exeext conftest.$ac_ext
9617fi
9618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9619echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9620if test `eval echo '${'$as_ac_var'}'` = yes; then
9621  cat >>confdefs.h <<_ACEOF
9622#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9623_ACEOF
9624
9625fi
9626done
9627
9628
9629
9630
9631for ac_func in closedir opendir readdir
9632do
9633as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9634echo "$as_me:$LINENO: checking for $ac_func" >&5
9635echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9636if eval "test \"\${$as_ac_var+set}\" = set"; then
9637  echo $ECHO_N "(cached) $ECHO_C" >&6
9638else
9639  cat >conftest.$ac_ext <<_ACEOF
9640/* confdefs.h.  */
9641_ACEOF
9642cat confdefs.h >>conftest.$ac_ext
9643cat >>conftest.$ac_ext <<_ACEOF
9644/* end confdefs.h.  */
9645/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9646   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9647#define $ac_func innocuous_$ac_func
9648
9649/* System header to define __stub macros and hopefully few prototypes,
9650    which can conflict with char $ac_func (); below.
9651    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9652    <limits.h> exists even on freestanding compilers.  */
9653
9654#ifdef __STDC__
9655# include <limits.h>
9656#else
9657# include <assert.h>
9658#endif
9659
9660#undef $ac_func
9661
9662/* Override any gcc2 internal prototype to avoid an error.  */
9663#ifdef __cplusplus
9664extern "C"
9665{
9666#endif
9667/* We use char because int might match the return type of a gcc2
9668   builtin and then its argument prototype would still apply.  */
9669char $ac_func ();
9670/* The GNU C library defines this for functions which it implements
9671    to always fail with ENOSYS.  Some functions are actually named
9672    something starting with __ and the normal name is an alias.  */
9673#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9674choke me
9675#else
9676char (*f) () = $ac_func;
9677#endif
9678#ifdef __cplusplus
9679}
9680#endif
9681
9682int
9683main ()
9684{
9685return f != $ac_func;
9686  ;
9687  return 0;
9688}
9689_ACEOF
9690rm -f conftest.$ac_objext conftest$ac_exeext
9691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9692  (eval $ac_link) 2>conftest.er1
9693  ac_status=$?
9694  grep -v '^ *+' conftest.er1 >conftest.err
9695  rm -f conftest.er1
9696  cat conftest.err >&5
9697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698  (exit $ac_status); } &&
9699	 { ac_try='test -z "$ac_c_werror_flag"
9700			 || test ! -s conftest.err'
9701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702  (eval $ac_try) 2>&5
9703  ac_status=$?
9704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705  (exit $ac_status); }; } &&
9706	 { ac_try='test -s conftest$ac_exeext'
9707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708  (eval $ac_try) 2>&5
9709  ac_status=$?
9710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711  (exit $ac_status); }; }; then
9712  eval "$as_ac_var=yes"
9713else
9714  echo "$as_me: failed program was:" >&5
9715sed 's/^/| /' conftest.$ac_ext >&5
9716
9717eval "$as_ac_var=no"
9718fi
9719rm -f conftest.err conftest.$ac_objext \
9720      conftest$ac_exeext conftest.$ac_ext
9721fi
9722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9723echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9724if test `eval echo '${'$as_ac_var'}'` = yes; then
9725  cat >>confdefs.h <<_ACEOF
9726#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9727_ACEOF
9728
9729fi
9730done
9731
9732
9733# Check whether --enable-shared or --disable-shared was given.
9734if test "${enable_shared+set}" = set; then
9735  enableval="$enable_shared"
9736  p=${PACKAGE-default}
9737    case $enableval in
9738    yes) enable_shared=yes ;;
9739    no) enable_shared=no ;;
9740    *)
9741      enable_shared=no
9742      # Look at the argument we got.  We use all the common list separators.
9743      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9744      for pkg in $enableval; do
9745	IFS="$lt_save_ifs"
9746	if test "X$pkg" = "X$p"; then
9747	  enable_shared=yes
9748	fi
9749      done
9750      IFS="$lt_save_ifs"
9751      ;;
9752    esac
9753else
9754  enable_shared=yes
9755fi;
9756
9757# Check whether --enable-static or --disable-static was given.
9758if test "${enable_static+set}" = set; then
9759  enableval="$enable_static"
9760  p=${PACKAGE-default}
9761    case $enableval in
9762    yes) enable_static=yes ;;
9763    no) enable_static=no ;;
9764    *)
9765     enable_static=no
9766      # Look at the argument we got.  We use all the common list separators.
9767      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9768      for pkg in $enableval; do
9769	IFS="$lt_save_ifs"
9770	if test "X$pkg" = "X$p"; then
9771	  enable_static=yes
9772	fi
9773      done
9774      IFS="$lt_save_ifs"
9775      ;;
9776    esac
9777else
9778  enable_static=yes
9779fi;
9780
9781# Check whether --enable-fast-install or --disable-fast-install was given.
9782if test "${enable_fast_install+set}" = set; then
9783  enableval="$enable_fast_install"
9784  p=${PACKAGE-default}
9785    case $enableval in
9786    yes) enable_fast_install=yes ;;
9787    no) enable_fast_install=no ;;
9788    *)
9789      enable_fast_install=no
9790      # Look at the argument we got.  We use all the common list separators.
9791      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9792      for pkg in $enableval; do
9793	IFS="$lt_save_ifs"
9794	if test "X$pkg" = "X$p"; then
9795	  enable_fast_install=yes
9796	fi
9797      done
9798      IFS="$lt_save_ifs"
9799      ;;
9800    esac
9801else
9802  enable_fast_install=yes
9803fi;
9804
9805echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9806echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9807if test "${lt_cv_path_SED+set}" = set; then
9808  echo $ECHO_N "(cached) $ECHO_C" >&6
9809else
9810  # Loop through the user's path and test for sed and gsed.
9811# Then use that list of sed's as ones to test for truncation.
9812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9813for as_dir in $PATH
9814do
9815  IFS=$as_save_IFS
9816  test -z "$as_dir" && as_dir=.
9817  for lt_ac_prog in sed gsed; do
9818    for ac_exec_ext in '' $ac_executable_extensions; do
9819      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9820        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9821      fi
9822    done
9823  done
9824done
9825lt_ac_max=0
9826lt_ac_count=0
9827# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9828# along with /bin/sed that truncates output.
9829for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9830  test ! -f $lt_ac_sed && break
9831  cat /dev/null > conftest.in
9832  lt_ac_count=0
9833  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9834  # Check for GNU sed and select it if it is found.
9835  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9836    lt_cv_path_SED=$lt_ac_sed
9837    break
9838  fi
9839  while true; do
9840    cat conftest.in conftest.in >conftest.tmp
9841    mv conftest.tmp conftest.in
9842    cp conftest.in conftest.nl
9843    echo >>conftest.nl
9844    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9845    cmp -s conftest.out conftest.nl || break
9846    # 10000 chars as input seems more than enough
9847    test $lt_ac_count -gt 10 && break
9848    lt_ac_count=`expr $lt_ac_count + 1`
9849    if test $lt_ac_count -gt $lt_ac_max; then
9850      lt_ac_max=$lt_ac_count
9851      lt_cv_path_SED=$lt_ac_sed
9852    fi
9853  done
9854done
9855
9856fi
9857
9858SED=$lt_cv_path_SED
9859echo "$as_me:$LINENO: result: $SED" >&5
9860echo "${ECHO_T}$SED" >&6
9861
9862
9863# Check whether --with-gnu-ld or --without-gnu-ld was given.
9864if test "${with_gnu_ld+set}" = set; then
9865  withval="$with_gnu_ld"
9866  test "$withval" = no || with_gnu_ld=yes
9867else
9868  with_gnu_ld=no
9869fi;
9870ac_prog=ld
9871if test "$GCC" = yes; then
9872  # Check if gcc -print-prog-name=ld gives a path.
9873  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9874echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9875  case $host in
9876  *-*-mingw*)
9877    # gcc leaves a trailing carriage return which upsets mingw
9878    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9879  *)
9880    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9881  esac
9882  case $ac_prog in
9883    # Accept absolute paths.
9884    [\\/]* | ?:[\\/]*)
9885      re_direlt='/[^/][^/]*/\.\./'
9886      # Canonicalize the pathname of ld
9887      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9888      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9889	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9890      done
9891      test -z "$LD" && LD="$ac_prog"
9892      ;;
9893  "")
9894    # If it fails, then pretend we aren't using GCC.
9895    ac_prog=ld
9896    ;;
9897  *)
9898    # If it is relative, then search for the first ld in PATH.
9899    with_gnu_ld=unknown
9900    ;;
9901  esac
9902elif test "$with_gnu_ld" = yes; then
9903  echo "$as_me:$LINENO: checking for GNU ld" >&5
9904echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9905else
9906  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9907echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9908fi
9909if test "${lt_cv_path_LD+set}" = set; then
9910  echo $ECHO_N "(cached) $ECHO_C" >&6
9911else
9912  if test -z "$LD"; then
9913  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9914  for ac_dir in $PATH; do
9915    IFS="$lt_save_ifs"
9916    test -z "$ac_dir" && ac_dir=.
9917    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9918      lt_cv_path_LD="$ac_dir/$ac_prog"
9919      # Check to see if the program is GNU ld.  I'd rather use --version,
9920      # but apparently some GNU ld's only accept -v.
9921      # Break only if it was the GNU/non-GNU ld that we prefer.
9922      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9923      *GNU* | *'with BFD'*)
9924	test "$with_gnu_ld" != no && break
9925	;;
9926      *)
9927	test "$with_gnu_ld" != yes && break
9928	;;
9929      esac
9930    fi
9931  done
9932  IFS="$lt_save_ifs"
9933else
9934  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9935fi
9936fi
9937
9938LD="$lt_cv_path_LD"
9939if test -n "$LD"; then
9940  echo "$as_me:$LINENO: result: $LD" >&5
9941echo "${ECHO_T}$LD" >&6
9942else
9943  echo "$as_me:$LINENO: result: no" >&5
9944echo "${ECHO_T}no" >&6
9945fi
9946test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9947echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9948   { (exit 1); exit 1; }; }
9949echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9950echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9951if test "${lt_cv_prog_gnu_ld+set}" = set; then
9952  echo $ECHO_N "(cached) $ECHO_C" >&6
9953else
9954  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9955case `$LD -v 2>&1 </dev/null` in
9956*GNU* | *'with BFD'*)
9957  lt_cv_prog_gnu_ld=yes
9958  ;;
9959*)
9960  lt_cv_prog_gnu_ld=no
9961  ;;
9962esac
9963fi
9964echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9965echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9966with_gnu_ld=$lt_cv_prog_gnu_ld
9967
9968
9969echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9970echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9971if test "${lt_cv_ld_reload_flag+set}" = set; then
9972  echo $ECHO_N "(cached) $ECHO_C" >&6
9973else
9974  lt_cv_ld_reload_flag='-r'
9975fi
9976echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9977echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9978reload_flag=$lt_cv_ld_reload_flag
9979case $reload_flag in
9980"" | " "*) ;;
9981*) reload_flag=" $reload_flag" ;;
9982esac
9983reload_cmds='$LD$reload_flag -o $output$reload_objs'
9984case $host_os in
9985  darwin*)
9986    if test "$GCC" = yes; then
9987      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9988    else
9989      reload_cmds='$LD$reload_flag -o $output$reload_objs'
9990    fi
9991    ;;
9992esac
9993
9994echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9995echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9996if test "${lt_cv_deplibs_check_method+set}" = set; then
9997  echo $ECHO_N "(cached) $ECHO_C" >&6
9998else
9999  lt_cv_file_magic_cmd='$MAGIC_CMD'
10000lt_cv_file_magic_test_file=
10001lt_cv_deplibs_check_method='unknown'
10002# Need to set the preceding variable on all platforms that support
10003# interlibrary dependencies.
10004# 'none' -- dependencies not supported.
10005# `unknown' -- same as none, but documents that we really don't know.
10006# 'pass_all' -- all dependencies passed with no checks.
10007# 'test_compile' -- check by making test program.
10008# 'file_magic [[regex]]' -- check by looking for files in library path
10009# which responds to the $file_magic_cmd with a given extended regex.
10010# If you have `file' or equivalent on your system and you're not sure
10011# whether `pass_all' will *always* work, you probably want this one.
10012
10013case $host_os in
10014aix4* | aix5*)
10015  lt_cv_deplibs_check_method=pass_all
10016  ;;
10017
10018beos*)
10019  lt_cv_deplibs_check_method=pass_all
10020  ;;
10021
10022bsdi[45]*)
10023  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10024  lt_cv_file_magic_cmd='/usr/bin/file -L'
10025  lt_cv_file_magic_test_file=/shlib/libc.so
10026  ;;
10027
10028cygwin*)
10029  # func_win32_libid is a shell function defined in ltmain.sh
10030  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10031  lt_cv_file_magic_cmd='func_win32_libid'
10032  ;;
10033
10034mingw* | pw32*)
10035  # Base MSYS/MinGW do not provide the 'file' command needed by
10036  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10037  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10038  lt_cv_file_magic_cmd='$OBJDUMP -f'
10039  ;;
10040
10041darwin* | rhapsody*)
10042  lt_cv_deplibs_check_method=pass_all
10043  ;;
10044
10045freebsd* | kfreebsd*-gnu)
10046  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10047    case $host_cpu in
10048    i*86 )
10049      # Not sure whether the presence of OpenBSD here was a mistake.
10050      # Let's accept both of them until this is cleared up.
10051      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10052      lt_cv_file_magic_cmd=/usr/bin/file
10053      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10054      ;;
10055    esac
10056  else
10057    lt_cv_deplibs_check_method=pass_all
10058  fi
10059  ;;
10060
10061gnu*)
10062  lt_cv_deplibs_check_method=pass_all
10063  ;;
10064
10065hpux10.20* | hpux11*)
10066  lt_cv_file_magic_cmd=/usr/bin/file
10067  case "$host_cpu" in
10068  ia64*)
10069    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10070    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10071    ;;
10072  hppa*64*)
10073    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]'
10074    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10075    ;;
10076  *)
10077    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10078    lt_cv_file_magic_test_file=/usr/lib/libc.sl
10079    ;;
10080  esac
10081  ;;
10082
10083irix5* | irix6* | nonstopux*)
10084  case $LD in
10085  *-32|*"-32 ") libmagic=32-bit;;
10086  *-n32|*"-n32 ") libmagic=N32;;
10087  *-64|*"-64 ") libmagic=64-bit;;
10088  *) libmagic=never-match;;
10089  esac
10090  lt_cv_deplibs_check_method=pass_all
10091  ;;
10092
10093# This must be Linux ELF.
10094linux*)
10095  lt_cv_deplibs_check_method=pass_all
10096  ;;
10097
10098netbsd*)
10099  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10100    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10101  else
10102    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10103  fi
10104  ;;
10105
10106newos6*)
10107  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10108  lt_cv_file_magic_cmd=/usr/bin/file
10109  lt_cv_file_magic_test_file=/usr/lib/libnls.so
10110  ;;
10111
10112nto-qnx*)
10113  lt_cv_deplibs_check_method=unknown
10114  ;;
10115
10116openbsd*)
10117  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10118    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10119  else
10120    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10121  fi
10122  ;;
10123
10124osf3* | osf4* | osf5*)
10125  lt_cv_deplibs_check_method=pass_all
10126  ;;
10127
10128sco3.2v5*)
10129  lt_cv_deplibs_check_method=pass_all
10130  ;;
10131
10132solaris*)
10133  lt_cv_deplibs_check_method=pass_all
10134  ;;
10135
10136sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10137  case $host_vendor in
10138  motorola)
10139    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]'
10140    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10141    ;;
10142  ncr)
10143    lt_cv_deplibs_check_method=pass_all
10144    ;;
10145  sequent)
10146    lt_cv_file_magic_cmd='/bin/file'
10147    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10148    ;;
10149  sni)
10150    lt_cv_file_magic_cmd='/bin/file'
10151    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10152    lt_cv_file_magic_test_file=/lib/libc.so
10153    ;;
10154  siemens)
10155    lt_cv_deplibs_check_method=pass_all
10156    ;;
10157  esac
10158  ;;
10159
10160sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10161  lt_cv_deplibs_check_method=pass_all
10162  ;;
10163esac
10164
10165fi
10166echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10167echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10168file_magic_cmd=$lt_cv_file_magic_cmd
10169deplibs_check_method=$lt_cv_deplibs_check_method
10170test -z "$deplibs_check_method" && deplibs_check_method=unknown
10171
10172
10173
10174# If no C compiler was specified, use CC.
10175LTCC=${LTCC-"$CC"}
10176
10177# Allow CC to be a program name with arguments.
10178compiler=$CC
10179
10180# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10181if test "${enable_libtool_lock+set}" = set; then
10182  enableval="$enable_libtool_lock"
10183
10184fi;
10185test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10186
10187# Some flags need to be propagated to the compiler or linker for good
10188# libtool support.
10189case $host in
10190ia64-*-hpux*)
10191  # Find out which ABI we are using.
10192  echo 'int i;' > conftest.$ac_ext
10193  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10194  (eval $ac_compile) 2>&5
10195  ac_status=$?
10196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197  (exit $ac_status); }; then
10198    case `/usr/bin/file conftest.$ac_objext` in
10199    *ELF-32*)
10200      HPUX_IA64_MODE="32"
10201      ;;
10202    *ELF-64*)
10203      HPUX_IA64_MODE="64"
10204      ;;
10205    esac
10206  fi
10207  rm -rf conftest*
10208  ;;
10209*-*-irix6*)
10210  # Find out which ABI we are using.
10211  echo '#line 10211 "configure"' > conftest.$ac_ext
10212  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10213  (eval $ac_compile) 2>&5
10214  ac_status=$?
10215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216  (exit $ac_status); }; then
10217   if test "$lt_cv_prog_gnu_ld" = yes; then
10218    case `/usr/bin/file conftest.$ac_objext` in
10219    *32-bit*)
10220      LD="${LD-ld} -melf32bsmip"
10221      ;;
10222    *N32*)
10223      LD="${LD-ld} -melf32bmipn32"
10224      ;;
10225    *64-bit*)
10226      LD="${LD-ld} -melf64bmip"
10227      ;;
10228    esac
10229   else
10230    case `/usr/bin/file conftest.$ac_objext` in
10231    *32-bit*)
10232      LD="${LD-ld} -32"
10233      ;;
10234    *N32*)
10235      LD="${LD-ld} -n32"
10236      ;;
10237    *64-bit*)
10238      LD="${LD-ld} -64"
10239      ;;
10240    esac
10241   fi
10242  fi
10243  rm -rf conftest*
10244  ;;
10245
10246x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10247  # Find out which ABI we are using.
10248  echo 'int i;' > conftest.$ac_ext
10249  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10250  (eval $ac_compile) 2>&5
10251  ac_status=$?
10252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253  (exit $ac_status); }; then
10254    case "`/usr/bin/file conftest.o`" in
10255    *32-bit*)
10256      case $host in
10257        x86_64-*linux*)
10258          LD="${LD-ld} -m elf_i386"
10259          ;;
10260        ppc64-*linux*|powerpc64-*linux*)
10261          LD="${LD-ld} -m elf32ppclinux"
10262          ;;
10263        s390x-*linux*)
10264          LD="${LD-ld} -m elf_s390"
10265          ;;
10266        sparc64-*linux*)
10267          LD="${LD-ld} -m elf32_sparc"
10268          ;;
10269      esac
10270      ;;
10271    *64-bit*)
10272      case $host in
10273        x86_64-*linux*)
10274          LD="${LD-ld} -m elf_x86_64"
10275          ;;
10276        ppc*-*linux*|powerpc*-*linux*)
10277          LD="${LD-ld} -m elf64ppc"
10278          ;;
10279        s390*-*linux*)
10280          LD="${LD-ld} -m elf64_s390"
10281          ;;
10282        sparc*-*linux*)
10283          LD="${LD-ld} -m elf64_sparc"
10284          ;;
10285      esac
10286      ;;
10287    esac
10288  fi
10289  rm -rf conftest*
10290  ;;
10291
10292*-*-sco3.2v5*)
10293  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10294  SAVE_CFLAGS="$CFLAGS"
10295  CFLAGS="$CFLAGS -belf"
10296  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10297echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10298if test "${lt_cv_cc_needs_belf+set}" = set; then
10299  echo $ECHO_N "(cached) $ECHO_C" >&6
10300else
10301  ac_ext=c
10302ac_cpp='$CPP $CPPFLAGS'
10303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10305ac_compiler_gnu=$ac_cv_c_compiler_gnu
10306
10307     cat >conftest.$ac_ext <<_ACEOF
10308/* confdefs.h.  */
10309_ACEOF
10310cat confdefs.h >>conftest.$ac_ext
10311cat >>conftest.$ac_ext <<_ACEOF
10312/* end confdefs.h.  */
10313
10314_ACEOF
10315rm -f conftest.$ac_objext conftest$ac_exeext
10316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10317  (eval $ac_link) 2>conftest.er1
10318  ac_status=$?
10319  grep -v '^ *+' conftest.er1 >conftest.err
10320  rm -f conftest.er1
10321  cat conftest.err >&5
10322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323  (exit $ac_status); } &&
10324	 { ac_try='test -z "$ac_c_werror_flag"
10325			 || test ! -s conftest.err'
10326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327  (eval $ac_try) 2>&5
10328  ac_status=$?
10329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330  (exit $ac_status); }; } &&
10331	 { ac_try='test -s conftest$ac_exeext'
10332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10333  (eval $ac_try) 2>&5
10334  ac_status=$?
10335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336  (exit $ac_status); }; }; then
10337  lt_cv_cc_needs_belf=yes
10338else
10339  echo "$as_me: failed program was:" >&5
10340sed 's/^/| /' conftest.$ac_ext >&5
10341
10342lt_cv_cc_needs_belf=no
10343fi
10344rm -f conftest.err conftest.$ac_objext \
10345      conftest$ac_exeext conftest.$ac_ext
10346     ac_ext=c
10347ac_cpp='$CPP $CPPFLAGS'
10348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10350ac_compiler_gnu=$ac_cv_c_compiler_gnu
10351
10352fi
10353echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10354echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10355  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10356    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10357    CFLAGS="$SAVE_CFLAGS"
10358  fi
10359  ;;
10360
10361esac
10362
10363need_locks="$enable_libtool_lock"
10364
10365
10366
10367
10368if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10369    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10370    (test "X$CXX" != "Xg++"))) ; then
10371  ac_ext=cc
10372ac_cpp='$CXXCPP $CPPFLAGS'
10373ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10374ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10375ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10376echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10377echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10378if test -z "$CXXCPP"; then
10379  if test "${ac_cv_prog_CXXCPP+set}" = set; then
10380  echo $ECHO_N "(cached) $ECHO_C" >&6
10381else
10382      # Double quotes because CXXCPP needs to be expanded
10383    for CXXCPP in "$CXX -E" "/lib/cpp"
10384    do
10385      ac_preproc_ok=false
10386for ac_cxx_preproc_warn_flag in '' yes
10387do
10388  # Use a header file that comes with gcc, so configuring glibc
10389  # with a fresh cross-compiler works.
10390  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10391  # <limits.h> exists even on freestanding compilers.
10392  # On the NeXT, cc -E runs the code through the compiler's parser,
10393  # not just through cpp. "Syntax error" is here to catch this case.
10394  cat >conftest.$ac_ext <<_ACEOF
10395/* confdefs.h.  */
10396_ACEOF
10397cat confdefs.h >>conftest.$ac_ext
10398cat >>conftest.$ac_ext <<_ACEOF
10399/* end confdefs.h.  */
10400#ifdef __STDC__
10401# include <limits.h>
10402#else
10403# include <assert.h>
10404#endif
10405		     Syntax error
10406_ACEOF
10407if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10408  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10409  ac_status=$?
10410  grep -v '^ *+' conftest.er1 >conftest.err
10411  rm -f conftest.er1
10412  cat conftest.err >&5
10413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414  (exit $ac_status); } >/dev/null; then
10415  if test -s conftest.err; then
10416    ac_cpp_err=$ac_cxx_preproc_warn_flag
10417    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10418  else
10419    ac_cpp_err=
10420  fi
10421else
10422  ac_cpp_err=yes
10423fi
10424if test -z "$ac_cpp_err"; then
10425  :
10426else
10427  echo "$as_me: failed program was:" >&5
10428sed 's/^/| /' conftest.$ac_ext >&5
10429
10430  # Broken: fails on valid input.
10431continue
10432fi
10433rm -f conftest.err conftest.$ac_ext
10434
10435  # OK, works on sane cases.  Now check whether non-existent headers
10436  # can be detected and how.
10437  cat >conftest.$ac_ext <<_ACEOF
10438/* confdefs.h.  */
10439_ACEOF
10440cat confdefs.h >>conftest.$ac_ext
10441cat >>conftest.$ac_ext <<_ACEOF
10442/* end confdefs.h.  */
10443#include <ac_nonexistent.h>
10444_ACEOF
10445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10446  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10447  ac_status=$?
10448  grep -v '^ *+' conftest.er1 >conftest.err
10449  rm -f conftest.er1
10450  cat conftest.err >&5
10451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452  (exit $ac_status); } >/dev/null; then
10453  if test -s conftest.err; then
10454    ac_cpp_err=$ac_cxx_preproc_warn_flag
10455    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10456  else
10457    ac_cpp_err=
10458  fi
10459else
10460  ac_cpp_err=yes
10461fi
10462if test -z "$ac_cpp_err"; then
10463  # Broken: success on invalid input.
10464continue
10465else
10466  echo "$as_me: failed program was:" >&5
10467sed 's/^/| /' conftest.$ac_ext >&5
10468
10469  # Passes both tests.
10470ac_preproc_ok=:
10471break
10472fi
10473rm -f conftest.err conftest.$ac_ext
10474
10475done
10476# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10477rm -f conftest.err conftest.$ac_ext
10478if $ac_preproc_ok; then
10479  break
10480fi
10481
10482    done
10483    ac_cv_prog_CXXCPP=$CXXCPP
10484
10485fi
10486  CXXCPP=$ac_cv_prog_CXXCPP
10487else
10488  ac_cv_prog_CXXCPP=$CXXCPP
10489fi
10490echo "$as_me:$LINENO: result: $CXXCPP" >&5
10491echo "${ECHO_T}$CXXCPP" >&6
10492ac_preproc_ok=false
10493for ac_cxx_preproc_warn_flag in '' yes
10494do
10495  # Use a header file that comes with gcc, so configuring glibc
10496  # with a fresh cross-compiler works.
10497  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10498  # <limits.h> exists even on freestanding compilers.
10499  # On the NeXT, cc -E runs the code through the compiler's parser,
10500  # not just through cpp. "Syntax error" is here to catch this case.
10501  cat >conftest.$ac_ext <<_ACEOF
10502/* confdefs.h.  */
10503_ACEOF
10504cat confdefs.h >>conftest.$ac_ext
10505cat >>conftest.$ac_ext <<_ACEOF
10506/* end confdefs.h.  */
10507#ifdef __STDC__
10508# include <limits.h>
10509#else
10510# include <assert.h>
10511#endif
10512		     Syntax error
10513_ACEOF
10514if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10515  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10516  ac_status=$?
10517  grep -v '^ *+' conftest.er1 >conftest.err
10518  rm -f conftest.er1
10519  cat conftest.err >&5
10520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521  (exit $ac_status); } >/dev/null; then
10522  if test -s conftest.err; then
10523    ac_cpp_err=$ac_cxx_preproc_warn_flag
10524    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10525  else
10526    ac_cpp_err=
10527  fi
10528else
10529  ac_cpp_err=yes
10530fi
10531if test -z "$ac_cpp_err"; then
10532  :
10533else
10534  echo "$as_me: failed program was:" >&5
10535sed 's/^/| /' conftest.$ac_ext >&5
10536
10537  # Broken: fails on valid input.
10538continue
10539fi
10540rm -f conftest.err conftest.$ac_ext
10541
10542  # OK, works on sane cases.  Now check whether non-existent headers
10543  # can be detected and how.
10544  cat >conftest.$ac_ext <<_ACEOF
10545/* confdefs.h.  */
10546_ACEOF
10547cat confdefs.h >>conftest.$ac_ext
10548cat >>conftest.$ac_ext <<_ACEOF
10549/* end confdefs.h.  */
10550#include <ac_nonexistent.h>
10551_ACEOF
10552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10553  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10554  ac_status=$?
10555  grep -v '^ *+' conftest.er1 >conftest.err
10556  rm -f conftest.er1
10557  cat conftest.err >&5
10558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559  (exit $ac_status); } >/dev/null; then
10560  if test -s conftest.err; then
10561    ac_cpp_err=$ac_cxx_preproc_warn_flag
10562    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10563  else
10564    ac_cpp_err=
10565  fi
10566else
10567  ac_cpp_err=yes
10568fi
10569if test -z "$ac_cpp_err"; then
10570  # Broken: success on invalid input.
10571continue
10572else
10573  echo "$as_me: failed program was:" >&5
10574sed 's/^/| /' conftest.$ac_ext >&5
10575
10576  # Passes both tests.
10577ac_preproc_ok=:
10578break
10579fi
10580rm -f conftest.err conftest.$ac_ext
10581
10582done
10583# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10584rm -f conftest.err conftest.$ac_ext
10585if $ac_preproc_ok; then
10586  :
10587else
10588  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10589See \`config.log' for more details." >&5
10590echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10591See \`config.log' for more details." >&2;}
10592   { (exit 1); exit 1; }; }
10593fi
10594
10595ac_ext=cc
10596ac_cpp='$CXXCPP $CPPFLAGS'
10597ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10598ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10599ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10600
10601fi
10602
10603
10604ac_ext=f
10605ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10606ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10607ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10608if test -n "$ac_tool_prefix"; then
10609  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10610  do
10611    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10612set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10613echo "$as_me:$LINENO: checking for $ac_word" >&5
10614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10615if test "${ac_cv_prog_F77+set}" = set; then
10616  echo $ECHO_N "(cached) $ECHO_C" >&6
10617else
10618  if test -n "$F77"; then
10619  ac_cv_prog_F77="$F77" # Let the user override the test.
10620else
10621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10622for as_dir in $PATH
10623do
10624  IFS=$as_save_IFS
10625  test -z "$as_dir" && as_dir=.
10626  for ac_exec_ext in '' $ac_executable_extensions; do
10627  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10628    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10629    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10630    break 2
10631  fi
10632done
10633done
10634
10635fi
10636fi
10637F77=$ac_cv_prog_F77
10638if test -n "$F77"; then
10639  echo "$as_me:$LINENO: result: $F77" >&5
10640echo "${ECHO_T}$F77" >&6
10641else
10642  echo "$as_me:$LINENO: result: no" >&5
10643echo "${ECHO_T}no" >&6
10644fi
10645
10646    test -n "$F77" && break
10647  done
10648fi
10649if test -z "$F77"; then
10650  ac_ct_F77=$F77
10651  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10652do
10653  # Extract the first word of "$ac_prog", so it can be a program name with args.
10654set dummy $ac_prog; ac_word=$2
10655echo "$as_me:$LINENO: checking for $ac_word" >&5
10656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10657if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10658  echo $ECHO_N "(cached) $ECHO_C" >&6
10659else
10660  if test -n "$ac_ct_F77"; then
10661  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10662else
10663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10664for as_dir in $PATH
10665do
10666  IFS=$as_save_IFS
10667  test -z "$as_dir" && as_dir=.
10668  for ac_exec_ext in '' $ac_executable_extensions; do
10669  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10670    ac_cv_prog_ac_ct_F77="$ac_prog"
10671    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10672    break 2
10673  fi
10674done
10675done
10676
10677fi
10678fi
10679ac_ct_F77=$ac_cv_prog_ac_ct_F77
10680if test -n "$ac_ct_F77"; then
10681  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10682echo "${ECHO_T}$ac_ct_F77" >&6
10683else
10684  echo "$as_me:$LINENO: result: no" >&5
10685echo "${ECHO_T}no" >&6
10686fi
10687
10688  test -n "$ac_ct_F77" && break
10689done
10690
10691  F77=$ac_ct_F77
10692fi
10693
10694
10695# Provide some information about the compiler.
10696echo "$as_me:10696:" \
10697     "checking for Fortran 77 compiler version" >&5
10698ac_compiler=`set X $ac_compile; echo $2`
10699{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10700  (eval $ac_compiler --version </dev/null >&5) 2>&5
10701  ac_status=$?
10702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703  (exit $ac_status); }
10704{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10705  (eval $ac_compiler -v </dev/null >&5) 2>&5
10706  ac_status=$?
10707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708  (exit $ac_status); }
10709{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10710  (eval $ac_compiler -V </dev/null >&5) 2>&5
10711  ac_status=$?
10712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713  (exit $ac_status); }
10714rm -f a.out
10715
10716# If we don't use `.F' as extension, the preprocessor is not run on the
10717# input file.  (Note that this only needs to work for GNU compilers.)
10718ac_save_ext=$ac_ext
10719ac_ext=F
10720echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10721echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10722if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10723  echo $ECHO_N "(cached) $ECHO_C" >&6
10724else
10725  cat >conftest.$ac_ext <<_ACEOF
10726      program main
10727#ifndef __GNUC__
10728       choke me
10729#endif
10730
10731      end
10732_ACEOF
10733rm -f conftest.$ac_objext
10734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10735  (eval $ac_compile) 2>conftest.er1
10736  ac_status=$?
10737  grep -v '^ *+' conftest.er1 >conftest.err
10738  rm -f conftest.er1
10739  cat conftest.err >&5
10740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741  (exit $ac_status); } &&
10742	 { ac_try='test -z "$ac_f77_werror_flag"
10743			 || test ! -s conftest.err'
10744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10745  (eval $ac_try) 2>&5
10746  ac_status=$?
10747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748  (exit $ac_status); }; } &&
10749	 { ac_try='test -s conftest.$ac_objext'
10750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10751  (eval $ac_try) 2>&5
10752  ac_status=$?
10753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754  (exit $ac_status); }; }; then
10755  ac_compiler_gnu=yes
10756else
10757  echo "$as_me: failed program was:" >&5
10758sed 's/^/| /' conftest.$ac_ext >&5
10759
10760ac_compiler_gnu=no
10761fi
10762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10763ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10764
10765fi
10766echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10767echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10768ac_ext=$ac_save_ext
10769ac_test_FFLAGS=${FFLAGS+set}
10770ac_save_FFLAGS=$FFLAGS
10771FFLAGS=
10772echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10773echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10774if test "${ac_cv_prog_f77_g+set}" = set; then
10775  echo $ECHO_N "(cached) $ECHO_C" >&6
10776else
10777  FFLAGS=-g
10778cat >conftest.$ac_ext <<_ACEOF
10779      program main
10780
10781      end
10782_ACEOF
10783rm -f conftest.$ac_objext
10784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10785  (eval $ac_compile) 2>conftest.er1
10786  ac_status=$?
10787  grep -v '^ *+' conftest.er1 >conftest.err
10788  rm -f conftest.er1
10789  cat conftest.err >&5
10790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791  (exit $ac_status); } &&
10792	 { ac_try='test -z "$ac_f77_werror_flag"
10793			 || test ! -s conftest.err'
10794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795  (eval $ac_try) 2>&5
10796  ac_status=$?
10797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798  (exit $ac_status); }; } &&
10799	 { ac_try='test -s conftest.$ac_objext'
10800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801  (eval $ac_try) 2>&5
10802  ac_status=$?
10803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804  (exit $ac_status); }; }; then
10805  ac_cv_prog_f77_g=yes
10806else
10807  echo "$as_me: failed program was:" >&5
10808sed 's/^/| /' conftest.$ac_ext >&5
10809
10810ac_cv_prog_f77_g=no
10811fi
10812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10813
10814fi
10815echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10816echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10817if test "$ac_test_FFLAGS" = set; then
10818  FFLAGS=$ac_save_FFLAGS
10819elif test $ac_cv_prog_f77_g = yes; then
10820  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10821    FFLAGS="-g -O2"
10822  else
10823    FFLAGS="-g"
10824  fi
10825else
10826  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10827    FFLAGS="-O2"
10828  else
10829    FFLAGS=
10830  fi
10831fi
10832
10833G77=`test $ac_compiler_gnu = yes && echo yes`
10834ac_ext=c
10835ac_cpp='$CPP $CPPFLAGS'
10836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10838ac_compiler_gnu=$ac_cv_c_compiler_gnu
10839
10840
10841
10842# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10843
10844# find the maximum length of command line arguments
10845echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10846echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10847if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10848  echo $ECHO_N "(cached) $ECHO_C" >&6
10849else
10850    i=0
10851  teststring="ABCD"
10852
10853  case $build_os in
10854  msdosdjgpp*)
10855    # On DJGPP, this test can blow up pretty badly due to problems in libc
10856    # (any single argument exceeding 2000 bytes causes a buffer overrun
10857    # during glob expansion).  Even if it were fixed, the result of this
10858    # check would be larger than it should be.
10859    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10860    ;;
10861
10862  gnu*)
10863    # Under GNU Hurd, this test is not required because there is
10864    # no limit to the length of command line arguments.
10865    # Libtool will interpret -1 as no limit whatsoever
10866    lt_cv_sys_max_cmd_len=-1;
10867    ;;
10868
10869  cygwin* | mingw*)
10870    # On Win9x/ME, this test blows up -- it succeeds, but takes
10871    # about 5 minutes as the teststring grows exponentially.
10872    # Worse, since 9x/ME are not pre-emptively multitasking,
10873    # you end up with a "frozen" computer, even though with patience
10874    # the test eventually succeeds (with a max line length of 256k).
10875    # Instead, let's just punt: use the minimum linelength reported by
10876    # all of the supported platforms: 8192 (on NT/2K/XP).
10877    lt_cv_sys_max_cmd_len=8192;
10878    ;;
10879
10880  amigaos*)
10881    # On AmigaOS with pdksh, this test takes hours, literally.
10882    # So we just punt and use a minimum line length of 8192.
10883    lt_cv_sys_max_cmd_len=8192;
10884    ;;
10885
10886  netbsd* | freebsd* | openbsd* | darwin* )
10887    # This has been around since 386BSD, at least.  Likely further.
10888    if test -x /sbin/sysctl; then
10889      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10890    elif test -x /usr/sbin/sysctl; then
10891      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10892    else
10893      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10894    fi
10895    # And add a safety zone
10896    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10897    ;;
10898
10899 *)
10900    # If test is not a shell built-in, we'll probably end up computing a
10901    # maximum length that is only half of the actual maximum length, but
10902    # we can't tell.
10903    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10904    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10905	       = "XX$teststring") >/dev/null 2>&1 &&
10906	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
10907	    lt_cv_sys_max_cmd_len=$new_result &&
10908	    test $i != 17 # 1/2 MB should be enough
10909    do
10910      i=`expr $i + 1`
10911      teststring=$teststring$teststring
10912    done
10913    teststring=
10914    # Add a significant safety factor because C++ compilers can tack on massive
10915    # amounts of additional arguments before passing them to the linker.
10916    # It appears as though 1/2 is a usable value.
10917    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10918    ;;
10919  esac
10920
10921fi
10922
10923if test -n $lt_cv_sys_max_cmd_len ; then
10924  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10925echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10926else
10927  echo "$as_me:$LINENO: result: none" >&5
10928echo "${ECHO_T}none" >&6
10929fi
10930
10931
10932
10933
10934# Check for command to grab the raw symbol name followed by C symbol from nm.
10935echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10936echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10937if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10938  echo $ECHO_N "(cached) $ECHO_C" >&6
10939else
10940
10941# These are sane defaults that work on at least a few old systems.
10942# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10943
10944# Character class describing NM global symbol codes.
10945symcode='[BCDEGRST]'
10946
10947# Regexp to match symbols that can be accessed directly from C.
10948sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10949
10950# Transform the above into a raw symbol and a C symbol.
10951symxfrm='\1 \2\3 \3'
10952
10953# Transform an extracted symbol line into a proper C declaration
10954lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10955
10956# Transform an extracted symbol line into symbol name and symbol address
10957lt_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'"
10958
10959# Define system-specific variables.
10960case $host_os in
10961aix*)
10962  symcode='[BCDT]'
10963  ;;
10964cygwin* | mingw* | pw32*)
10965  symcode='[ABCDGISTW]'
10966  ;;
10967hpux*) # Its linker distinguishes data from code symbols
10968  if test "$host_cpu" = ia64; then
10969    symcode='[ABCDEGRST]'
10970  fi
10971  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10972  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'"
10973  ;;
10974linux*)
10975  if test "$host_cpu" = ia64; then
10976    symcode='[ABCDGIRSTW]'
10977    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10978    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'"
10979  fi
10980  ;;
10981irix* | nonstopux*)
10982  symcode='[BCDEGRST]'
10983  ;;
10984osf*)
10985  symcode='[BCDEGQRST]'
10986  ;;
10987solaris* | sysv5*)
10988  symcode='[BDRT]'
10989  ;;
10990sysv4)
10991  symcode='[DFNSTU]'
10992  ;;
10993esac
10994
10995# Handle CRLF in mingw tool chain
10996opt_cr=
10997case $build_os in
10998mingw*)
10999  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11000  ;;
11001esac
11002
11003# If we're using GNU nm, then use its standard symbol codes.
11004case `$NM -V 2>&1` in
11005*GNU* | *'with BFD'*)
11006  symcode='[ABCDGIRSTW]' ;;
11007esac
11008
11009# Try without a prefix undercore, then with it.
11010for ac_symprfx in "" "_"; do
11011
11012  # Write the raw and C identifiers.
11013  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11014
11015  # Check to see that the pipe works correctly.
11016  pipe_works=no
11017
11018  rm -f conftest*
11019  cat > conftest.$ac_ext <<EOF
11020#ifdef __cplusplus
11021extern "C" {
11022#endif
11023char nm_test_var;
11024void nm_test_func(){}
11025#ifdef __cplusplus
11026}
11027#endif
11028int main(){nm_test_var='a';nm_test_func();return(0);}
11029EOF
11030
11031  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11032  (eval $ac_compile) 2>&5
11033  ac_status=$?
11034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035  (exit $ac_status); }; then
11036    # Now try to grab the symbols.
11037    nlist=conftest.nm
11038    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11039  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11040  ac_status=$?
11041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042  (exit $ac_status); } && test -s "$nlist"; then
11043      # Try sorting and uniquifying the output.
11044      if sort "$nlist" | uniq > "$nlist"T; then
11045	mv -f "$nlist"T "$nlist"
11046      else
11047	rm -f "$nlist"T
11048      fi
11049
11050      # Make sure that we snagged all the symbols we need.
11051      if grep ' nm_test_var$' "$nlist" >/dev/null; then
11052	if grep ' nm_test_func$' "$nlist" >/dev/null; then
11053	  cat <<EOF > conftest.$ac_ext
11054#ifdef __cplusplus
11055extern "C" {
11056#endif
11057
11058EOF
11059	  # Now generate the symbol file.
11060	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11061
11062	  cat <<EOF >> conftest.$ac_ext
11063#if defined (__STDC__) && __STDC__
11064# define lt_ptr_t void *
11065#else
11066# define lt_ptr_t char *
11067# define const
11068#endif
11069
11070/* The mapping between symbol names and symbols. */
11071const struct {
11072  const char *name;
11073  lt_ptr_t address;
11074}
11075lt_preloaded_symbols[] =
11076{
11077EOF
11078	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11079	  cat <<\EOF >> conftest.$ac_ext
11080  {0, (lt_ptr_t) 0}
11081};
11082
11083#ifdef __cplusplus
11084}
11085#endif
11086EOF
11087	  # Now try linking the two files.
11088	  mv conftest.$ac_objext conftstm.$ac_objext
11089	  lt_save_LIBS="$LIBS"
11090	  lt_save_CFLAGS="$CFLAGS"
11091	  LIBS="conftstm.$ac_objext"
11092	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11093	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11094  (eval $ac_link) 2>&5
11095  ac_status=$?
11096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097  (exit $ac_status); } && test -s conftest${ac_exeext}; then
11098	    pipe_works=yes
11099	  fi
11100	  LIBS="$lt_save_LIBS"
11101	  CFLAGS="$lt_save_CFLAGS"
11102	else
11103	  echo "cannot find nm_test_func in $nlist" >&5
11104	fi
11105      else
11106	echo "cannot find nm_test_var in $nlist" >&5
11107      fi
11108    else
11109      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11110    fi
11111  else
11112    echo "$progname: failed program was:" >&5
11113    cat conftest.$ac_ext >&5
11114  fi
11115  rm -f conftest* conftst*
11116
11117  # Do not use the global_symbol_pipe unless it works.
11118  if test "$pipe_works" = yes; then
11119    break
11120  else
11121    lt_cv_sys_global_symbol_pipe=
11122  fi
11123done
11124
11125fi
11126
11127if test -z "$lt_cv_sys_global_symbol_pipe"; then
11128  lt_cv_sys_global_symbol_to_cdecl=
11129fi
11130if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11131  echo "$as_me:$LINENO: result: failed" >&5
11132echo "${ECHO_T}failed" >&6
11133else
11134  echo "$as_me:$LINENO: result: ok" >&5
11135echo "${ECHO_T}ok" >&6
11136fi
11137
11138echo "$as_me:$LINENO: checking for objdir" >&5
11139echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11140if test "${lt_cv_objdir+set}" = set; then
11141  echo $ECHO_N "(cached) $ECHO_C" >&6
11142else
11143  rm -f .libs 2>/dev/null
11144mkdir .libs 2>/dev/null
11145if test -d .libs; then
11146  lt_cv_objdir=.libs
11147else
11148  # MS-DOS does not allow filenames that begin with a dot.
11149  lt_cv_objdir=_libs
11150fi
11151rmdir .libs 2>/dev/null
11152fi
11153echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11154echo "${ECHO_T}$lt_cv_objdir" >&6
11155objdir=$lt_cv_objdir
11156
11157
11158
11159
11160
11161case $host_os in
11162aix3*)
11163  # AIX sometimes has problems with the GCC collect2 program.  For some
11164  # reason, if we set the COLLECT_NAMES environment variable, the problems
11165  # vanish in a puff of smoke.
11166  if test "X${COLLECT_NAMES+set}" != Xset; then
11167    COLLECT_NAMES=
11168    export COLLECT_NAMES
11169  fi
11170  ;;
11171esac
11172
11173# Sed substitution that helps us do robust quoting.  It backslashifies
11174# metacharacters that are still active within double-quoted strings.
11175Xsed='sed -e s/^X//'
11176sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11177
11178# Same as above, but do not quote variable references.
11179double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11180
11181# Sed substitution to delay expansion of an escaped shell variable in a
11182# double_quote_subst'ed string.
11183delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11184
11185# Sed substitution to avoid accidental globbing in evaled expressions
11186no_glob_subst='s/\*/\\\*/g'
11187
11188# Constants:
11189rm="rm -f"
11190
11191# Global variables:
11192default_ofile=mklib
11193can_build_shared=yes
11194
11195# All known linkers require a `.a' archive for static linking (except M$VC,
11196# which needs '.lib').
11197libext=a
11198ltmain="$ac_aux_dir/ltmain.sh"
11199ofile="$default_ofile"
11200with_gnu_ld="$lt_cv_prog_gnu_ld"
11201
11202if test -n "$ac_tool_prefix"; then
11203  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11204set dummy ${ac_tool_prefix}ar; ac_word=$2
11205echo "$as_me:$LINENO: checking for $ac_word" >&5
11206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11207if test "${ac_cv_prog_AR+set}" = set; then
11208  echo $ECHO_N "(cached) $ECHO_C" >&6
11209else
11210  if test -n "$AR"; then
11211  ac_cv_prog_AR="$AR" # Let the user override the test.
11212else
11213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11214for as_dir in $PATH
11215do
11216  IFS=$as_save_IFS
11217  test -z "$as_dir" && as_dir=.
11218  for ac_exec_ext in '' $ac_executable_extensions; do
11219  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11220    ac_cv_prog_AR="${ac_tool_prefix}ar"
11221    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11222    break 2
11223  fi
11224done
11225done
11226
11227fi
11228fi
11229AR=$ac_cv_prog_AR
11230if test -n "$AR"; then
11231  echo "$as_me:$LINENO: result: $AR" >&5
11232echo "${ECHO_T}$AR" >&6
11233else
11234  echo "$as_me:$LINENO: result: no" >&5
11235echo "${ECHO_T}no" >&6
11236fi
11237
11238fi
11239if test -z "$ac_cv_prog_AR"; then
11240  ac_ct_AR=$AR
11241  # Extract the first word of "ar", so it can be a program name with args.
11242set dummy ar; ac_word=$2
11243echo "$as_me:$LINENO: checking for $ac_word" >&5
11244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11245if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11246  echo $ECHO_N "(cached) $ECHO_C" >&6
11247else
11248  if test -n "$ac_ct_AR"; then
11249  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11250else
11251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11252for as_dir in $PATH
11253do
11254  IFS=$as_save_IFS
11255  test -z "$as_dir" && as_dir=.
11256  for ac_exec_ext in '' $ac_executable_extensions; do
11257  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11258    ac_cv_prog_ac_ct_AR="ar"
11259    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11260    break 2
11261  fi
11262done
11263done
11264
11265  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11266fi
11267fi
11268ac_ct_AR=$ac_cv_prog_ac_ct_AR
11269if test -n "$ac_ct_AR"; then
11270  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11271echo "${ECHO_T}$ac_ct_AR" >&6
11272else
11273  echo "$as_me:$LINENO: result: no" >&5
11274echo "${ECHO_T}no" >&6
11275fi
11276
11277  AR=$ac_ct_AR
11278else
11279  AR="$ac_cv_prog_AR"
11280fi
11281
11282if test -n "$ac_tool_prefix"; then
11283  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11284set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11285echo "$as_me:$LINENO: checking for $ac_word" >&5
11286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11287if test "${ac_cv_prog_RANLIB+set}" = set; then
11288  echo $ECHO_N "(cached) $ECHO_C" >&6
11289else
11290  if test -n "$RANLIB"; then
11291  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11292else
11293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11294for as_dir in $PATH
11295do
11296  IFS=$as_save_IFS
11297  test -z "$as_dir" && as_dir=.
11298  for ac_exec_ext in '' $ac_executable_extensions; do
11299  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11300    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11301    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11302    break 2
11303  fi
11304done
11305done
11306
11307fi
11308fi
11309RANLIB=$ac_cv_prog_RANLIB
11310if test -n "$RANLIB"; then
11311  echo "$as_me:$LINENO: result: $RANLIB" >&5
11312echo "${ECHO_T}$RANLIB" >&6
11313else
11314  echo "$as_me:$LINENO: result: no" >&5
11315echo "${ECHO_T}no" >&6
11316fi
11317
11318fi
11319if test -z "$ac_cv_prog_RANLIB"; then
11320  ac_ct_RANLIB=$RANLIB
11321  # Extract the first word of "ranlib", so it can be a program name with args.
11322set dummy ranlib; ac_word=$2
11323echo "$as_me:$LINENO: checking for $ac_word" >&5
11324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11325if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11326  echo $ECHO_N "(cached) $ECHO_C" >&6
11327else
11328  if test -n "$ac_ct_RANLIB"; then
11329  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11330else
11331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11332for as_dir in $PATH
11333do
11334  IFS=$as_save_IFS
11335  test -z "$as_dir" && as_dir=.
11336  for ac_exec_ext in '' $ac_executable_extensions; do
11337  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11338    ac_cv_prog_ac_ct_RANLIB="ranlib"
11339    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11340    break 2
11341  fi
11342done
11343done
11344
11345  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11346fi
11347fi
11348ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11349if test -n "$ac_ct_RANLIB"; then
11350  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11351echo "${ECHO_T}$ac_ct_RANLIB" >&6
11352else
11353  echo "$as_me:$LINENO: result: no" >&5
11354echo "${ECHO_T}no" >&6
11355fi
11356
11357  RANLIB=$ac_ct_RANLIB
11358else
11359  RANLIB="$ac_cv_prog_RANLIB"
11360fi
11361
11362if test -n "$ac_tool_prefix"; then
11363  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11364set dummy ${ac_tool_prefix}strip; 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_STRIP+set}" = set; then
11368  echo $ECHO_N "(cached) $ECHO_C" >&6
11369else
11370  if test -n "$STRIP"; then
11371  ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
11381    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11382    break 2
11383  fi
11384done
11385done
11386
11387fi
11388fi
11389STRIP=$ac_cv_prog_STRIP
11390if test -n "$STRIP"; then
11391  echo "$as_me:$LINENO: result: $STRIP" >&5
11392echo "${ECHO_T}$STRIP" >&6
11393else
11394  echo "$as_me:$LINENO: result: no" >&5
11395echo "${ECHO_T}no" >&6
11396fi
11397
11398fi
11399if test -z "$ac_cv_prog_STRIP"; then
11400  ac_ct_STRIP=$STRIP
11401  # Extract the first word of "strip", so it can be a program name with args.
11402set dummy strip; 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_STRIP+set}" = set; then
11406  echo $ECHO_N "(cached) $ECHO_C" >&6
11407else
11408  if test -n "$ac_ct_STRIP"; then
11409  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_STRIP="strip"
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_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11426fi
11427fi
11428ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11429if test -n "$ac_ct_STRIP"; then
11430  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11431echo "${ECHO_T}$ac_ct_STRIP" >&6
11432else
11433  echo "$as_me:$LINENO: result: no" >&5
11434echo "${ECHO_T}no" >&6
11435fi
11436
11437  STRIP=$ac_ct_STRIP
11438else
11439  STRIP="$ac_cv_prog_STRIP"
11440fi
11441
11442
11443old_CC="$CC"
11444old_CFLAGS="$CFLAGS"
11445
11446# Set sane defaults for various variables
11447test -z "$AR" && AR=ar
11448test -z "$AR_FLAGS" && AR_FLAGS=cru
11449test -z "$AS" && AS=as
11450test -z "$CC" && CC=cc
11451test -z "$LTCC" && LTCC=$CC
11452test -z "$DLLTOOL" && DLLTOOL=dlltool
11453test -z "$LD" && LD=ld
11454test -z "$LN_S" && LN_S="ln -s"
11455test -z "$MAGIC_CMD" && MAGIC_CMD=file
11456test -z "$NM" && NM=nm
11457test -z "$SED" && SED=sed
11458test -z "$OBJDUMP" && OBJDUMP=objdump
11459test -z "$RANLIB" && RANLIB=:
11460test -z "$STRIP" && STRIP=:
11461test -z "$ac_objext" && ac_objext=o
11462
11463# Determine commands to create old-style static archives.
11464old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11465old_postinstall_cmds='chmod 644 $oldlib'
11466old_postuninstall_cmds=
11467
11468if test -n "$RANLIB"; then
11469  case $host_os in
11470  openbsd*)
11471    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11472    ;;
11473  *)
11474    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11475    ;;
11476  esac
11477  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11478fi
11479
11480cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11481
11482# Only perform the check for file, if the check method requires it
11483case $deplibs_check_method in
11484file_magic*)
11485  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11486    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11487echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11488if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11489  echo $ECHO_N "(cached) $ECHO_C" >&6
11490else
11491  case $MAGIC_CMD in
11492[\\/*] |  ?:[\\/]*)
11493  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11494  ;;
11495*)
11496  lt_save_MAGIC_CMD="$MAGIC_CMD"
11497  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11498  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11499  for ac_dir in $ac_dummy; do
11500    IFS="$lt_save_ifs"
11501    test -z "$ac_dir" && ac_dir=.
11502    if test -f $ac_dir/${ac_tool_prefix}file; then
11503      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11504      if test -n "$file_magic_test_file"; then
11505	case $deplibs_check_method in
11506	"file_magic "*)
11507	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11508	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11509	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11510	    $EGREP "$file_magic_regex" > /dev/null; then
11511	    :
11512	  else
11513	    cat <<EOF 1>&2
11514
11515*** Warning: the command libtool uses to detect shared libraries,
11516*** $file_magic_cmd, produces output that libtool cannot recognize.
11517*** The result is that libtool may fail to recognize shared libraries
11518*** as such.  This will affect the creation of libtool libraries that
11519*** depend on shared libraries, but programs linked with such libtool
11520*** libraries will work regardless of this problem.  Nevertheless, you
11521*** may want to report the problem to your system manager and/or to
11522*** bug-libtool@gnu.org
11523
11524EOF
11525	  fi ;;
11526	esac
11527      fi
11528      break
11529    fi
11530  done
11531  IFS="$lt_save_ifs"
11532  MAGIC_CMD="$lt_save_MAGIC_CMD"
11533  ;;
11534esac
11535fi
11536
11537MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11538if test -n "$MAGIC_CMD"; then
11539  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11540echo "${ECHO_T}$MAGIC_CMD" >&6
11541else
11542  echo "$as_me:$LINENO: result: no" >&5
11543echo "${ECHO_T}no" >&6
11544fi
11545
11546if test -z "$lt_cv_path_MAGIC_CMD"; then
11547  if test -n "$ac_tool_prefix"; then
11548    echo "$as_me:$LINENO: checking for file" >&5
11549echo $ECHO_N "checking for file... $ECHO_C" >&6
11550if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11551  echo $ECHO_N "(cached) $ECHO_C" >&6
11552else
11553  case $MAGIC_CMD in
11554[\\/*] |  ?:[\\/]*)
11555  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11556  ;;
11557*)
11558  lt_save_MAGIC_CMD="$MAGIC_CMD"
11559  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11560  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11561  for ac_dir in $ac_dummy; do
11562    IFS="$lt_save_ifs"
11563    test -z "$ac_dir" && ac_dir=.
11564    if test -f $ac_dir/file; then
11565      lt_cv_path_MAGIC_CMD="$ac_dir/file"
11566      if test -n "$file_magic_test_file"; then
11567	case $deplibs_check_method in
11568	"file_magic "*)
11569	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11570	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11571	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11572	    $EGREP "$file_magic_regex" > /dev/null; then
11573	    :
11574	  else
11575	    cat <<EOF 1>&2
11576
11577*** Warning: the command libtool uses to detect shared libraries,
11578*** $file_magic_cmd, produces output that libtool cannot recognize.
11579*** The result is that libtool may fail to recognize shared libraries
11580*** as such.  This will affect the creation of libtool libraries that
11581*** depend on shared libraries, but programs linked with such libtool
11582*** libraries will work regardless of this problem.  Nevertheless, you
11583*** may want to report the problem to your system manager and/or to
11584*** bug-libtool@gnu.org
11585
11586EOF
11587	  fi ;;
11588	esac
11589      fi
11590      break
11591    fi
11592  done
11593  IFS="$lt_save_ifs"
11594  MAGIC_CMD="$lt_save_MAGIC_CMD"
11595  ;;
11596esac
11597fi
11598
11599MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11600if test -n "$MAGIC_CMD"; then
11601  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11602echo "${ECHO_T}$MAGIC_CMD" >&6
11603else
11604  echo "$as_me:$LINENO: result: no" >&5
11605echo "${ECHO_T}no" >&6
11606fi
11607
11608  else
11609    MAGIC_CMD=:
11610  fi
11611fi
11612
11613  fi
11614  ;;
11615esac
11616
11617enable_dlopen=yes
11618enable_win32_dll=no
11619
11620# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11621if test "${enable_libtool_lock+set}" = set; then
11622  enableval="$enable_libtool_lock"
11623
11624fi;
11625test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11626
11627
11628# Check whether --with-pic or --without-pic was given.
11629if test "${with_pic+set}" = set; then
11630  withval="$with_pic"
11631  pic_mode="$withval"
11632else
11633  pic_mode=default
11634fi;
11635test -z "$pic_mode" && pic_mode=default
11636
11637# Use C for the default configuration in the libtool script
11638tagname=
11639lt_save_CC="$CC"
11640ac_ext=c
11641ac_cpp='$CPP $CPPFLAGS'
11642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11644ac_compiler_gnu=$ac_cv_c_compiler_gnu
11645
11646
11647# Source file extension for C test sources.
11648ac_ext=c
11649
11650# Object file extension for compiled C test sources.
11651objext=o
11652objext=$objext
11653
11654# Code to be used in simple compile tests
11655lt_simple_compile_test_code="int some_variable = 0;\n"
11656
11657# Code to be used in simple link tests
11658lt_simple_link_test_code='int main(){return(0);}\n'
11659
11660
11661# If no C compiler was specified, use CC.
11662LTCC=${LTCC-"$CC"}
11663
11664# Allow CC to be a program name with arguments.
11665compiler=$CC
11666
11667
11668#
11669# Check for any special shared library compilation flags.
11670#
11671lt_prog_cc_shlib=
11672if test "$GCC" = no; then
11673  case $host_os in
11674  sco3.2v5*)
11675    lt_prog_cc_shlib='-belf'
11676    ;;
11677  esac
11678fi
11679if test -n "$lt_prog_cc_shlib"; then
11680  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11681echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11682  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
11683  else
11684    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11685echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11686    lt_cv_prog_cc_can_build_shared=no
11687  fi
11688fi
11689
11690
11691#
11692# Check to make sure the static flag actually works.
11693#
11694echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11695echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11696if test "${lt_prog_compiler_static_works+set}" = set; then
11697  echo $ECHO_N "(cached) $ECHO_C" >&6
11698else
11699  lt_prog_compiler_static_works=no
11700   save_LDFLAGS="$LDFLAGS"
11701   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11702   printf "$lt_simple_link_test_code" > conftest.$ac_ext
11703   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11704     # The compiler can only warn and ignore the option if not recognized
11705     # So say no if there are warnings
11706     if test -s conftest.err; then
11707       # Append any errors to the config.log.
11708       cat conftest.err 1>&5
11709     else
11710       lt_prog_compiler_static_works=yes
11711     fi
11712   fi
11713   $rm conftest*
11714   LDFLAGS="$save_LDFLAGS"
11715
11716fi
11717echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11718echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11719
11720if test x"$lt_prog_compiler_static_works" = xyes; then
11721    :
11722else
11723    lt_prog_compiler_static=
11724fi
11725
11726
11727
11728
11729lt_prog_compiler_no_builtin_flag=
11730
11731if test "$GCC" = yes; then
11732  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11733
11734
11735echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11736echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11737if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11738  echo $ECHO_N "(cached) $ECHO_C" >&6
11739else
11740  lt_cv_prog_compiler_rtti_exceptions=no
11741  ac_outfile=conftest.$ac_objext
11742   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11743   lt_compiler_flag="-fno-rtti -fno-exceptions"
11744   # Insert the option either (1) after the last *FLAGS variable, or
11745   # (2) before a word containing "conftest.", or (3) at the end.
11746   # Note that $ac_compile itself does not contain backslashes and begins
11747   # with a dollar sign (not a hyphen), so the echo should work correctly.
11748   # The option is referenced via a variable to avoid confusing sed.
11749   lt_compile=`echo "$ac_compile" | $SED \
11750   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11751   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11752   -e 's:$: $lt_compiler_flag:'`
11753   (eval echo "\"\$as_me:11753: $lt_compile\"" >&5)
11754   (eval "$lt_compile" 2>conftest.err)
11755   ac_status=$?
11756   cat conftest.err >&5
11757   echo "$as_me:11757: \$? = $ac_status" >&5
11758   if (exit $ac_status) && test -s "$ac_outfile"; then
11759     # The compiler can only warn and ignore the option if not recognized
11760     # So say no if there are warnings
11761     if test ! -s conftest.err; then
11762       lt_cv_prog_compiler_rtti_exceptions=yes
11763     fi
11764   fi
11765   $rm conftest*
11766
11767fi
11768echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11769echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11770
11771if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11772    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11773else
11774    :
11775fi
11776
11777fi
11778
11779lt_prog_compiler_wl=
11780lt_prog_compiler_pic=
11781lt_prog_compiler_static=
11782
11783echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11784echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11785
11786  if test "$GCC" = yes; then
11787    lt_prog_compiler_wl='-Wl,'
11788    lt_prog_compiler_static='-static'
11789
11790    case $host_os in
11791      aix*)
11792      # All AIX code is PIC.
11793      if test "$host_cpu" = ia64; then
11794	# AIX 5 now supports IA64 processor
11795	lt_prog_compiler_static='-Bstatic'
11796      fi
11797      ;;
11798
11799    amigaos*)
11800      # FIXME: we need at least 68020 code to build shared libraries, but
11801      # adding the `-m68020' flag to GCC prevents building anything better,
11802      # like `-m68040'.
11803      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11804      ;;
11805
11806    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11807      # PIC is the default for these OSes.
11808      ;;
11809
11810    mingw* | pw32* | os2*)
11811      # This hack is so that the source file can tell whether it is being
11812      # built for inclusion in a dll (and should export symbols for example).
11813      lt_prog_compiler_pic='-DDLL_EXPORT'
11814      ;;
11815
11816    darwin* | rhapsody*)
11817      # PIC is the default on this platform
11818      # Common symbols not allowed in MH_DYLIB files
11819      lt_prog_compiler_pic='-fno-common'
11820      ;;
11821
11822    msdosdjgpp*)
11823      # Just because we use GCC doesn't mean we suddenly get shared libraries
11824      # on systems that don't support them.
11825      lt_prog_compiler_can_build_shared=no
11826      enable_shared=no
11827      ;;
11828
11829    sysv4*MP*)
11830      if test -d /usr/nec; then
11831	lt_prog_compiler_pic=-Kconform_pic
11832      fi
11833      ;;
11834
11835    hpux*)
11836      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11837      # not for PA HP-UX.
11838      case "$host_cpu" in
11839      hppa*64*|ia64*)
11840	# +Z the default
11841	;;
11842      *)
11843	lt_prog_compiler_pic='-fPIC'
11844	;;
11845      esac
11846      ;;
11847
11848    *)
11849      lt_prog_compiler_pic='-fPIC'
11850      ;;
11851    esac
11852  else
11853    # PORTME Check for flag to pass linker flags through the system compiler.
11854    case $host_os in
11855    aix*)
11856      lt_prog_compiler_wl='-Wl,'
11857      if test "$host_cpu" = ia64; then
11858	# AIX 5 now supports IA64 processor
11859	lt_prog_compiler_static='-Bstatic'
11860      else
11861	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11862      fi
11863      ;;
11864      darwin*)
11865        # PIC is the default on this platform
11866        # Common symbols not allowed in MH_DYLIB files
11867       case "$cc_basename" in
11868         xlc*)
11869         lt_prog_compiler_pic='-qnocommon'
11870         lt_prog_compiler_wl='-Wl,'
11871         ;;
11872       esac
11873       ;;
11874
11875    mingw* | pw32* | os2*)
11876      # This hack is so that the source file can tell whether it is being
11877      # built for inclusion in a dll (and should export symbols for example).
11878      lt_prog_compiler_pic='-DDLL_EXPORT'
11879      ;;
11880
11881    hpux9* | hpux10* | hpux11*)
11882      lt_prog_compiler_wl='-Wl,'
11883      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11884      # not for PA HP-UX.
11885      case "$host_cpu" in
11886      hppa*64*|ia64*)
11887	# +Z the default
11888	;;
11889      *)
11890	lt_prog_compiler_pic='+Z'
11891	;;
11892      esac
11893      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11894      lt_prog_compiler_static='${wl}-a ${wl}archive'
11895      ;;
11896
11897    irix5* | irix6* | nonstopux*)
11898      lt_prog_compiler_wl='-Wl,'
11899      # PIC (with -KPIC) is the default.
11900      lt_prog_compiler_static='-non_shared'
11901      ;;
11902
11903    newsos6)
11904      lt_prog_compiler_pic='-KPIC'
11905      lt_prog_compiler_static='-Bstatic'
11906      ;;
11907
11908    linux*)
11909      case $CC in
11910      icc* | ecc*)
11911	lt_prog_compiler_wl='-Wl,'
11912	lt_prog_compiler_pic='-KPIC'
11913	lt_prog_compiler_static='-static'
11914        ;;
11915      ccc*)
11916        lt_prog_compiler_wl='-Wl,'
11917        # All Alpha code is PIC.
11918        lt_prog_compiler_static='-non_shared'
11919        ;;
11920      esac
11921      ;;
11922
11923    osf3* | osf4* | osf5*)
11924      lt_prog_compiler_wl='-Wl,'
11925      # All OSF/1 code is PIC.
11926      lt_prog_compiler_static='-non_shared'
11927      ;;
11928
11929    sco3.2v5*)
11930      lt_prog_compiler_pic='-Kpic'
11931      lt_prog_compiler_static='-dn'
11932      ;;
11933
11934    solaris*)
11935      lt_prog_compiler_wl='-Wl,'
11936      lt_prog_compiler_pic='-KPIC'
11937      lt_prog_compiler_static='-Bstatic'
11938      ;;
11939
11940    sunos4*)
11941      lt_prog_compiler_wl='-Qoption ld '
11942      lt_prog_compiler_pic='-PIC'
11943      lt_prog_compiler_static='-Bstatic'
11944      ;;
11945
11946    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11947      lt_prog_compiler_wl='-Wl,'
11948      lt_prog_compiler_pic='-KPIC'
11949      lt_prog_compiler_static='-Bstatic'
11950      ;;
11951
11952    sysv4*MP*)
11953      if test -d /usr/nec ;then
11954	lt_prog_compiler_pic='-Kconform_pic'
11955	lt_prog_compiler_static='-Bstatic'
11956      fi
11957      ;;
11958
11959    uts4*)
11960      lt_prog_compiler_pic='-pic'
11961      lt_prog_compiler_static='-Bstatic'
11962      ;;
11963
11964    *)
11965      lt_prog_compiler_can_build_shared=no
11966      ;;
11967    esac
11968  fi
11969
11970echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11971echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11972
11973#
11974# Check to make sure the PIC flag actually works.
11975#
11976if test -n "$lt_prog_compiler_pic"; then
11977
11978echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11979echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11980if test "${lt_prog_compiler_pic_works+set}" = set; then
11981  echo $ECHO_N "(cached) $ECHO_C" >&6
11982else
11983  lt_prog_compiler_pic_works=no
11984  ac_outfile=conftest.$ac_objext
11985   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11986   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11987   # Insert the option either (1) after the last *FLAGS variable, or
11988   # (2) before a word containing "conftest.", or (3) at the end.
11989   # Note that $ac_compile itself does not contain backslashes and begins
11990   # with a dollar sign (not a hyphen), so the echo should work correctly.
11991   # The option is referenced via a variable to avoid confusing sed.
11992   lt_compile=`echo "$ac_compile" | $SED \
11993   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11994   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11995   -e 's:$: $lt_compiler_flag:'`
11996   (eval echo "\"\$as_me:11996: $lt_compile\"" >&5)
11997   (eval "$lt_compile" 2>conftest.err)
11998   ac_status=$?
11999   cat conftest.err >&5
12000   echo "$as_me:12000: \$? = $ac_status" >&5
12001   if (exit $ac_status) && test -s "$ac_outfile"; then
12002     # The compiler can only warn and ignore the option if not recognized
12003     # So say no if there are warnings
12004     if test ! -s conftest.err; then
12005       lt_prog_compiler_pic_works=yes
12006     fi
12007   fi
12008   $rm conftest*
12009
12010fi
12011echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12012echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12013
12014if test x"$lt_prog_compiler_pic_works" = xyes; then
12015    case $lt_prog_compiler_pic in
12016     "" | " "*) ;;
12017     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12018     esac
12019else
12020    lt_prog_compiler_pic=
12021     lt_prog_compiler_can_build_shared=no
12022fi
12023
12024fi
12025case "$host_os" in
12026  # For platforms which do not support PIC, -DPIC is meaningless:
12027  *djgpp*)
12028    lt_prog_compiler_pic=
12029    ;;
12030  *)
12031    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12032    ;;
12033esac
12034
12035echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12036echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12037if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12038  echo $ECHO_N "(cached) $ECHO_C" >&6
12039else
12040  lt_cv_prog_compiler_c_o=no
12041   $rm -r conftest 2>/dev/null
12042   mkdir conftest
12043   cd conftest
12044   mkdir out
12045   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12046
12047   lt_compiler_flag="-o out/conftest2.$ac_objext"
12048   # Insert the option either (1) after the last *FLAGS variable, or
12049   # (2) before a word containing "conftest.", or (3) at the end.
12050   # Note that $ac_compile itself does not contain backslashes and begins
12051   # with a dollar sign (not a hyphen), so the echo should work correctly.
12052   lt_compile=`echo "$ac_compile" | $SED \
12053   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12054   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12055   -e 's:$: $lt_compiler_flag:'`
12056   (eval echo "\"\$as_me:12056: $lt_compile\"" >&5)
12057   (eval "$lt_compile" 2>out/conftest.err)
12058   ac_status=$?
12059   cat out/conftest.err >&5
12060   echo "$as_me:12060: \$? = $ac_status" >&5
12061   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12062   then
12063     # The compiler can only warn and ignore the option if not recognized
12064     # So say no if there are warnings
12065     if test ! -s out/conftest.err; then
12066       lt_cv_prog_compiler_c_o=yes
12067     fi
12068   fi
12069   chmod u+w .
12070   $rm conftest*
12071   # SGI C++ compiler will create directory out/ii_files/ for
12072   # template instantiation
12073   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12074   $rm out/* && rmdir out
12075   cd ..
12076   rmdir conftest
12077   $rm conftest*
12078
12079fi
12080echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12081echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12082
12083
12084hard_links="nottested"
12085if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12086  # do not overwrite the value of need_locks provided by the user
12087  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12088echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12089  hard_links=yes
12090  $rm conftest*
12091  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12092  touch conftest.a
12093  ln conftest.a conftest.b 2>&5 || hard_links=no
12094  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12095  echo "$as_me:$LINENO: result: $hard_links" >&5
12096echo "${ECHO_T}$hard_links" >&6
12097  if test "$hard_links" = no; then
12098    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12099echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12100    need_locks=warn
12101  fi
12102else
12103  need_locks=no
12104fi
12105
12106echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12107echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12108
12109  runpath_var=
12110  allow_undefined_flag=
12111  enable_shared_with_static_runtimes=no
12112  archive_cmds=
12113  archive_expsym_cmds=
12114  old_archive_From_new_cmds=
12115  old_archive_from_expsyms_cmds=
12116  export_dynamic_flag_spec=
12117  whole_archive_flag_spec=
12118  thread_safe_flag_spec=
12119  hardcode_libdir_flag_spec=
12120  hardcode_libdir_flag_spec_ld=
12121  hardcode_libdir_separator=
12122  hardcode_direct=no
12123  hardcode_minus_L=no
12124  hardcode_shlibpath_var=unsupported
12125  link_all_deplibs=unknown
12126  hardcode_automatic=no
12127  module_cmds=
12128  module_expsym_cmds=
12129  always_export_symbols=no
12130  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12131  # include_expsyms should be a list of space-separated symbols to be *always*
12132  # included in the symbol list
12133  include_expsyms=
12134  # exclude_expsyms can be an extended regexp of symbols to exclude
12135  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12136  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12137  # as well as any symbol that contains `d'.
12138  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12139  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12140  # platforms (ab)use it in PIC code, but their linkers get confused if
12141  # the symbol is explicitly referenced.  Since portable code cannot
12142  # rely on this symbol name, it's probably fine to never include it in
12143  # preloaded symbol tables.
12144  extract_expsyms_cmds=
12145
12146  case $host_os in
12147  cygwin* | mingw* | pw32*)
12148    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12149    # When not using gcc, we currently assume that we are using
12150    # Microsoft Visual C++.
12151    if test "$GCC" != yes; then
12152      with_gnu_ld=no
12153    fi
12154    ;;
12155  openbsd*)
12156    with_gnu_ld=no
12157    ;;
12158  esac
12159
12160  ld_shlibs=yes
12161  if test "$with_gnu_ld" = yes; then
12162    # If archive_cmds runs LD, not CC, wlarc should be empty
12163    wlarc='${wl}'
12164
12165    # See if GNU ld supports shared libraries.
12166    case $host_os in
12167    aix3* | aix4* | aix5*)
12168      # On AIX/PPC, the GNU linker is very broken
12169      if test "$host_cpu" != ia64; then
12170	ld_shlibs=no
12171	cat <<EOF 1>&2
12172
12173*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12174*** to be unable to reliably create shared libraries on AIX.
12175*** Therefore, libtool is disabling shared libraries support.  If you
12176*** really care for shared libraries, you may want to modify your PATH
12177*** so that a non-GNU linker is found, and then restart.
12178
12179EOF
12180      fi
12181      ;;
12182
12183    amigaos*)
12184      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)'
12185      hardcode_libdir_flag_spec='-L$libdir'
12186      hardcode_minus_L=yes
12187
12188      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12189      # that the semantics of dynamic libraries on AmigaOS, at least up
12190      # to version 4, is to share data among multiple programs linked
12191      # with the same dynamic library.  Since this doesn't match the
12192      # behavior of shared libraries on other platforms, we can't use
12193      # them.
12194      ld_shlibs=no
12195      ;;
12196
12197    beos*)
12198      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12199	allow_undefined_flag=unsupported
12200	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12201	# support --undefined.  This deserves some investigation.  FIXME
12202	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12203      else
12204	ld_shlibs=no
12205      fi
12206      ;;
12207
12208    cygwin* | mingw* | pw32*)
12209      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12210      # as there is no search path for DLLs.
12211      hardcode_libdir_flag_spec='-L$libdir'
12212      allow_undefined_flag=unsupported
12213      always_export_symbols=no
12214      enable_shared_with_static_runtimes=yes
12215      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12216
12217      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12218        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12219	# If the export-symbols file already is a .def file (1st line
12220	# is EXPORTS), use it as is; otherwise, prepend...
12221	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12222	  cp $export_symbols $output_objdir/$soname.def;
12223	else
12224	  echo EXPORTS > $output_objdir/$soname.def;
12225	  cat $export_symbols >> $output_objdir/$soname.def;
12226	fi~
12227	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12228      else
12229	ld_shlibs=no
12230      fi
12231      ;;
12232
12233    netbsd*)
12234      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12235	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12236	wlarc=
12237      else
12238	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12239	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12240      fi
12241      ;;
12242
12243    solaris* | sysv5*)
12244      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12245	ld_shlibs=no
12246	cat <<EOF 1>&2
12247
12248*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12249*** create shared libraries on Solaris systems.  Therefore, libtool
12250*** is disabling shared libraries support.  We urge you to upgrade GNU
12251*** binutils to release 2.9.1 or newer.  Another option is to modify
12252*** your PATH or compiler configuration so that the native linker is
12253*** used, and then restart.
12254
12255EOF
12256      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12257	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12258	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12259      else
12260	ld_shlibs=no
12261      fi
12262      ;;
12263
12264    sunos4*)
12265      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12266      wlarc=
12267      hardcode_direct=yes
12268      hardcode_shlibpath_var=no
12269      ;;
12270
12271  linux*)
12272    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12273        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12274	archive_cmds="$tmp_archive_cmds"
12275      supports_anon_versioning=no
12276      case `$LD -v 2>/dev/null` in
12277        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12278        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12279        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12280        *\ 2.11.*) ;; # other 2.11 versions
12281        *) supports_anon_versioning=yes ;;
12282      esac
12283      if test $supports_anon_versioning = yes; then
12284        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12285cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12286$echo "local: *; };" >> $output_objdir/$libname.ver~
12287        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12288      else
12289        archive_expsym_cmds="$tmp_archive_cmds"
12290      fi
12291    else
12292      ld_shlibs=no
12293    fi
12294    ;;
12295
12296    *)
12297      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12298	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12299	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12300      else
12301	ld_shlibs=no
12302      fi
12303      ;;
12304    esac
12305
12306    if test "$ld_shlibs" = yes; then
12307      runpath_var=LD_RUN_PATH
12308      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12309      export_dynamic_flag_spec='${wl}--export-dynamic'
12310      # ancient GNU ld didn't support --whole-archive et. al.
12311      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12312 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12313      else
12314  	whole_archive_flag_spec=
12315      fi
12316    fi
12317  else
12318    # PORTME fill in a description of your system's linker (not GNU ld)
12319    case $host_os in
12320    aix3*)
12321      allow_undefined_flag=unsupported
12322      always_export_symbols=yes
12323      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'
12324      # Note: this linker hardcodes the directories in LIBPATH if there
12325      # are no directories specified by -L.
12326      hardcode_minus_L=yes
12327      if test "$GCC" = yes && test -z "$link_static_flag"; then
12328	# Neither direct hardcoding nor static linking is supported with a
12329	# broken collect2.
12330	hardcode_direct=unsupported
12331      fi
12332      ;;
12333
12334    aix4* | aix5*)
12335      if test "$host_cpu" = ia64; then
12336	# On IA64, the linker does run time linking by default, so we don't
12337	# have to do anything special.
12338	aix_use_runtimelinking=no
12339	exp_sym_flag='-Bexport'
12340	no_entry_flag=""
12341      else
12342	# If we're using GNU nm, then we don't want the "-C" option.
12343	# -C means demangle to AIX nm, but means don't demangle with GNU nm
12344	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12345	  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'
12346	else
12347	  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'
12348	fi
12349	aix_use_runtimelinking=no
12350
12351	# Test if we are trying to use run time linking or normal
12352	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12353	# need to do runtime linking.
12354	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12355	  for ld_flag in $LDFLAGS; do
12356  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12357  	    aix_use_runtimelinking=yes
12358  	    break
12359  	  fi
12360	  done
12361	esac
12362
12363	exp_sym_flag='-bexport'
12364	no_entry_flag='-bnoentry'
12365      fi
12366
12367      # When large executables or shared objects are built, AIX ld can
12368      # have problems creating the table of contents.  If linking a library
12369      # or program results in "error TOC overflow" add -mminimal-toc to
12370      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12371      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12372
12373      archive_cmds=''
12374      hardcode_direct=yes
12375      hardcode_libdir_separator=':'
12376      link_all_deplibs=yes
12377
12378      if test "$GCC" = yes; then
12379	case $host_os in aix4.012|aix4.012.*)
12380	# We only want to do this on AIX 4.2 and lower, the check
12381	# below for broken collect2 doesn't work under 4.3+
12382	  collect2name=`${CC} -print-prog-name=collect2`
12383	  if test -f "$collect2name" && \
12384  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
12385	  then
12386  	  # We have reworked collect2
12387  	  hardcode_direct=yes
12388	  else
12389  	  # We have old collect2
12390  	  hardcode_direct=unsupported
12391  	  # It fails to find uninstalled libraries when the uninstalled
12392  	  # path is not listed in the libpath.  Setting hardcode_minus_L
12393  	  # to unsupported forces relinking
12394  	  hardcode_minus_L=yes
12395  	  hardcode_libdir_flag_spec='-L$libdir'
12396  	  hardcode_libdir_separator=
12397	  fi
12398	esac
12399	shared_flag='-shared'
12400      else
12401	# not using gcc
12402	if test "$host_cpu" = ia64; then
12403  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12404  	# chokes on -Wl,-G. The following line is correct:
12405	  shared_flag='-G'
12406	else
12407  	if test "$aix_use_runtimelinking" = yes; then
12408	    shared_flag='${wl}-G'
12409	  else
12410	    shared_flag='${wl}-bM:SRE'
12411  	fi
12412	fi
12413      fi
12414
12415      # It seems that -bexpall does not export symbols beginning with
12416      # underscore (_), so it is better to generate a list of symbols to export.
12417      always_export_symbols=yes
12418      if test "$aix_use_runtimelinking" = yes; then
12419	# Warning - without using the other runtime loading flags (-brtl),
12420	# -berok will link without error, but may produce a broken library.
12421	allow_undefined_flag='-berok'
12422       # Determine the default libpath from the value encoded in an empty executable.
12423       cat >conftest.$ac_ext <<_ACEOF
12424/* confdefs.h.  */
12425_ACEOF
12426cat confdefs.h >>conftest.$ac_ext
12427cat >>conftest.$ac_ext <<_ACEOF
12428/* end confdefs.h.  */
12429
12430int
12431main ()
12432{
12433
12434  ;
12435  return 0;
12436}
12437_ACEOF
12438rm -f conftest.$ac_objext conftest$ac_exeext
12439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12440  (eval $ac_link) 2>conftest.er1
12441  ac_status=$?
12442  grep -v '^ *+' conftest.er1 >conftest.err
12443  rm -f conftest.er1
12444  cat conftest.err >&5
12445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446  (exit $ac_status); } &&
12447	 { ac_try='test -z "$ac_c_werror_flag"
12448			 || test ! -s conftest.err'
12449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450  (eval $ac_try) 2>&5
12451  ac_status=$?
12452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453  (exit $ac_status); }; } &&
12454	 { ac_try='test -s conftest$ac_exeext'
12455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456  (eval $ac_try) 2>&5
12457  ac_status=$?
12458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459  (exit $ac_status); }; }; then
12460
12461aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12462}'`
12463# Check for a 64-bit object if we didn't find anything.
12464if 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; }
12465}'`; fi
12466else
12467  echo "$as_me: failed program was:" >&5
12468sed 's/^/| /' conftest.$ac_ext >&5
12469
12470fi
12471rm -f conftest.err conftest.$ac_objext \
12472      conftest$ac_exeext conftest.$ac_ext
12473if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12474
12475       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12476	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"
12477       else
12478	if test "$host_cpu" = ia64; then
12479	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12480	  allow_undefined_flag="-z nodefs"
12481	  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"
12482	else
12483	 # Determine the default libpath from the value encoded in an empty executable.
12484	 cat >conftest.$ac_ext <<_ACEOF
12485/* confdefs.h.  */
12486_ACEOF
12487cat confdefs.h >>conftest.$ac_ext
12488cat >>conftest.$ac_ext <<_ACEOF
12489/* end confdefs.h.  */
12490
12491int
12492main ()
12493{
12494
12495  ;
12496  return 0;
12497}
12498_ACEOF
12499rm -f conftest.$ac_objext conftest$ac_exeext
12500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12501  (eval $ac_link) 2>conftest.er1
12502  ac_status=$?
12503  grep -v '^ *+' conftest.er1 >conftest.err
12504  rm -f conftest.er1
12505  cat conftest.err >&5
12506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507  (exit $ac_status); } &&
12508	 { ac_try='test -z "$ac_c_werror_flag"
12509			 || test ! -s conftest.err'
12510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511  (eval $ac_try) 2>&5
12512  ac_status=$?
12513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514  (exit $ac_status); }; } &&
12515	 { ac_try='test -s conftest$ac_exeext'
12516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517  (eval $ac_try) 2>&5
12518  ac_status=$?
12519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520  (exit $ac_status); }; }; then
12521
12522aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12523}'`
12524# Check for a 64-bit object if we didn't find anything.
12525if 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; }
12526}'`; fi
12527else
12528  echo "$as_me: failed program was:" >&5
12529sed 's/^/| /' conftest.$ac_ext >&5
12530
12531fi
12532rm -f conftest.err conftest.$ac_objext \
12533      conftest$ac_exeext conftest.$ac_ext
12534if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12535
12536	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12537	  # Warning - without using the other run time loading flags,
12538	  # -berok will link without error, but may produce a broken library.
12539	  no_undefined_flag=' ${wl}-bernotok'
12540	  allow_undefined_flag=' ${wl}-berok'
12541	  # -bexpall does not export symbols beginning with underscore (_)
12542	  always_export_symbols=yes
12543	  # Exported symbols can be pulled into shared objects from archives
12544	  whole_archive_flag_spec=' '
12545	  archive_cmds_need_lc=yes
12546	  # This is similar to how AIX traditionally builds it's shared libraries.
12547	  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'
12548	fi
12549      fi
12550      ;;
12551
12552    amigaos*)
12553      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)'
12554      hardcode_libdir_flag_spec='-L$libdir'
12555      hardcode_minus_L=yes
12556      # see comment about different semantics on the GNU ld section
12557      ld_shlibs=no
12558      ;;
12559
12560    bsdi[45]*)
12561      export_dynamic_flag_spec=-rdynamic
12562      ;;
12563
12564    cygwin* | mingw* | pw32*)
12565      # When not using gcc, we currently assume that we are using
12566      # Microsoft Visual C++.
12567      # hardcode_libdir_flag_spec is actually meaningless, as there is
12568      # no search path for DLLs.
12569      hardcode_libdir_flag_spec=' '
12570      allow_undefined_flag=unsupported
12571      # Tell ltmain to make .lib files, not .a files.
12572      libext=lib
12573      # Tell ltmain to make .dll files, not .so files.
12574      shrext_cmds=".dll"
12575      # FIXME: Setting linknames here is a bad hack.
12576      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12577      # The linker will automatically build a .lib file if we build a DLL.
12578      old_archive_From_new_cmds='true'
12579      # FIXME: Should let the user specify the lib program.
12580      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12581      fix_srcfile_path='`cygpath -w "$srcfile"`'
12582      enable_shared_with_static_runtimes=yes
12583      ;;
12584
12585    darwin* | rhapsody*)
12586      case "$host_os" in
12587        rhapsody* | darwin1.[012])
12588         allow_undefined_flag='${wl}-undefined ${wl}suppress'
12589         ;;
12590       *) # Darwin 1.3 on
12591         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12592           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12593         else
12594           case ${MACOSX_DEPLOYMENT_TARGET} in
12595             10.[012])
12596               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12597               ;;
12598             10.*)
12599               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12600               ;;
12601           esac
12602         fi
12603         ;;
12604      esac
12605      archive_cmds_need_lc=no
12606      hardcode_direct=no
12607      hardcode_automatic=yes
12608      hardcode_shlibpath_var=unsupported
12609      whole_archive_flag_spec=''
12610      link_all_deplibs=yes
12611    if test "$GCC" = yes ; then
12612    	output_verbose_link_cmd='echo'
12613        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12614      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12615      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12616      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}'
12617      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}'
12618    else
12619      case "$cc_basename" in
12620        xlc*)
12621         output_verbose_link_cmd='echo'
12622         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12623         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12624          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12625         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -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}'
12626          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12627          ;;
12628       *)
12629         ld_shlibs=no
12630          ;;
12631      esac
12632    fi
12633      ;;
12634
12635    dgux*)
12636      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12637      hardcode_libdir_flag_spec='-L$libdir'
12638      hardcode_shlibpath_var=no
12639      ;;
12640
12641    freebsd1*)
12642      ld_shlibs=no
12643      ;;
12644
12645    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12646    # support.  Future versions do this automatically, but an explicit c++rt0.o
12647    # does not break anything, and helps significantly (at the cost of a little
12648    # extra space).
12649    freebsd2.2*)
12650      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12651      hardcode_libdir_flag_spec='-R$libdir'
12652      hardcode_direct=yes
12653      hardcode_shlibpath_var=no
12654      ;;
12655
12656    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12657    freebsd2*)
12658      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12659      hardcode_direct=yes
12660      hardcode_minus_L=yes
12661      hardcode_shlibpath_var=no
12662      ;;
12663
12664    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12665    freebsd* | kfreebsd*-gnu)
12666      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12667      hardcode_libdir_flag_spec='-R$libdir'
12668      hardcode_direct=yes
12669      hardcode_shlibpath_var=no
12670      ;;
12671
12672    hpux9*)
12673      if test "$GCC" = yes; then
12674	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'
12675      else
12676	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'
12677      fi
12678      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12679      hardcode_libdir_separator=:
12680      hardcode_direct=yes
12681
12682      # hardcode_minus_L: Not really in the search PATH,
12683      # but as the default location of the library.
12684      hardcode_minus_L=yes
12685      export_dynamic_flag_spec='${wl}-E'
12686      ;;
12687
12688    hpux10* | hpux11*)
12689      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12690	case "$host_cpu" in
12691	hppa*64*|ia64*)
12692	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12693	  ;;
12694	*)
12695	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12696	  ;;
12697	esac
12698      else
12699	case "$host_cpu" in
12700	hppa*64*|ia64*)
12701	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12702	  ;;
12703	*)
12704	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12705	  ;;
12706	esac
12707      fi
12708      if test "$with_gnu_ld" = no; then
12709	case "$host_cpu" in
12710	hppa*64*)
12711	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12712	  hardcode_libdir_flag_spec_ld='+b $libdir'
12713	  hardcode_libdir_separator=:
12714	  hardcode_direct=no
12715	  hardcode_shlibpath_var=no
12716	  ;;
12717	ia64*)
12718	  hardcode_libdir_flag_spec='-L$libdir'
12719	  hardcode_direct=no
12720	  hardcode_shlibpath_var=no
12721
12722	  # hardcode_minus_L: Not really in the search PATH,
12723	  # but as the default location of the library.
12724	  hardcode_minus_L=yes
12725	  ;;
12726	*)
12727	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12728	  hardcode_libdir_separator=:
12729	  hardcode_direct=yes
12730	  export_dynamic_flag_spec='${wl}-E'
12731
12732	  # hardcode_minus_L: Not really in the search PATH,
12733	  # but as the default location of the library.
12734	  hardcode_minus_L=yes
12735	  ;;
12736	esac
12737      fi
12738      ;;
12739
12740    irix5* | irix6* | nonstopux*)
12741      if test "$GCC" = yes; then
12742	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'
12743      else
12744	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'
12745	hardcode_libdir_flag_spec_ld='-rpath $libdir'
12746      fi
12747      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12748      hardcode_libdir_separator=:
12749      link_all_deplibs=yes
12750      ;;
12751
12752    netbsd*)
12753      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12754	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12755      else
12756	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12757      fi
12758      hardcode_libdir_flag_spec='-R$libdir'
12759      hardcode_direct=yes
12760      hardcode_shlibpath_var=no
12761      ;;
12762
12763    newsos6)
12764      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12765      hardcode_direct=yes
12766      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12767      hardcode_libdir_separator=:
12768      hardcode_shlibpath_var=no
12769      ;;
12770
12771    openbsd*)
12772      hardcode_direct=yes
12773      hardcode_shlibpath_var=no
12774      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12775	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12776	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12777	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12778	export_dynamic_flag_spec='${wl}-E'
12779      else
12780       case $host_os in
12781	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12782	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12783	   hardcode_libdir_flag_spec='-R$libdir'
12784	   ;;
12785	 *)
12786	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12787	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12788	   ;;
12789       esac
12790      fi
12791      ;;
12792
12793    os2*)
12794      hardcode_libdir_flag_spec='-L$libdir'
12795      hardcode_minus_L=yes
12796      allow_undefined_flag=unsupported
12797      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'
12798      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12799      ;;
12800
12801    osf3*)
12802      if test "$GCC" = yes; then
12803	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12804	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'
12805      else
12806	allow_undefined_flag=' -expect_unresolved \*'
12807	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'
12808      fi
12809      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12810      hardcode_libdir_separator=:
12811      ;;
12812
12813    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12814      if test "$GCC" = yes; then
12815	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12816	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'
12817	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12818      else
12819	allow_undefined_flag=' -expect_unresolved \*'
12820	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'
12821	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12822	$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'
12823
12824	# Both c and cxx compiler support -rpath directly
12825	hardcode_libdir_flag_spec='-rpath $libdir'
12826      fi
12827      hardcode_libdir_separator=:
12828      ;;
12829
12830    sco3.2v5*)
12831      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12832      hardcode_shlibpath_var=no
12833      export_dynamic_flag_spec='${wl}-Bexport'
12834      runpath_var=LD_RUN_PATH
12835      hardcode_runpath_var=yes
12836      ;;
12837
12838    solaris*)
12839      no_undefined_flag=' -z text'
12840      if test "$GCC" = yes; then
12841	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12842	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12843	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12844      else
12845	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12846	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12847  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12848      fi
12849      hardcode_libdir_flag_spec='-R$libdir'
12850      hardcode_shlibpath_var=no
12851      case $host_os in
12852      solaris2.[0-5] | solaris2.[0-5].*) ;;
12853      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12854	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12855      esac
12856      link_all_deplibs=yes
12857      ;;
12858
12859    sunos4*)
12860      if test "x$host_vendor" = xsequent; then
12861	# Use $CC to link under sequent, because it throws in some extra .o
12862	# files that make .init and .fini sections work.
12863	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12864      else
12865	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12866      fi
12867      hardcode_libdir_flag_spec='-L$libdir'
12868      hardcode_direct=yes
12869      hardcode_minus_L=yes
12870      hardcode_shlibpath_var=no
12871      ;;
12872
12873    sysv4)
12874      case $host_vendor in
12875	sni)
12876	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12877	  hardcode_direct=yes # is this really true???
12878	;;
12879	siemens)
12880	  ## LD is ld it makes a PLAMLIB
12881	  ## CC just makes a GrossModule.
12882	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12883	  reload_cmds='$CC -r -o $output$reload_objs'
12884	  hardcode_direct=no
12885        ;;
12886	motorola)
12887	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12888	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12889	;;
12890      esac
12891      runpath_var='LD_RUN_PATH'
12892      hardcode_shlibpath_var=no
12893      ;;
12894
12895    sysv4.3*)
12896      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12897      hardcode_shlibpath_var=no
12898      export_dynamic_flag_spec='-Bexport'
12899      ;;
12900
12901    sysv4*MP*)
12902      if test -d /usr/nec; then
12903	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12904	hardcode_shlibpath_var=no
12905	runpath_var=LD_RUN_PATH
12906	hardcode_runpath_var=yes
12907	ld_shlibs=yes
12908      fi
12909      ;;
12910
12911    sysv4.2uw2*)
12912      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12913      hardcode_direct=yes
12914      hardcode_minus_L=no
12915      hardcode_shlibpath_var=no
12916      hardcode_runpath_var=yes
12917      runpath_var=LD_RUN_PATH
12918      ;;
12919
12920   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
12921      no_undefined_flag='${wl}-z ${wl}text'
12922      if test "$GCC" = yes; then
12923	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12924      else
12925	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12926      fi
12927      runpath_var='LD_RUN_PATH'
12928      hardcode_shlibpath_var=no
12929      ;;
12930
12931    sysv5*)
12932      no_undefined_flag=' -z text'
12933      # $CC -shared without GNU ld will not create a library from C++
12934      # object files and a static libstdc++, better avoid it by now
12935      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12936      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12937  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12938      hardcode_libdir_flag_spec=
12939      hardcode_shlibpath_var=no
12940      runpath_var='LD_RUN_PATH'
12941      ;;
12942
12943    uts4*)
12944      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12945      hardcode_libdir_flag_spec='-L$libdir'
12946      hardcode_shlibpath_var=no
12947      ;;
12948
12949    *)
12950      ld_shlibs=no
12951      ;;
12952    esac
12953  fi
12954
12955echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12956echo "${ECHO_T}$ld_shlibs" >&6
12957test "$ld_shlibs" = no && can_build_shared=no
12958
12959variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12960if test "$GCC" = yes; then
12961  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12962fi
12963
12964#
12965# Do we need to explicitly link libc?
12966#
12967case "x$archive_cmds_need_lc" in
12968x|xyes)
12969  # Assume -lc should be added
12970  archive_cmds_need_lc=yes
12971
12972  if test "$enable_shared" = yes && test "$GCC" = yes; then
12973    case $archive_cmds in
12974    *'~'*)
12975      # FIXME: we may have to deal with multi-command sequences.
12976      ;;
12977    '$CC '*)
12978      # Test whether the compiler implicitly links with -lc since on some
12979      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12980      # to ld, don't add -lc before -lgcc.
12981      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12982echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12983      $rm conftest*
12984      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12985
12986      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12987  (eval $ac_compile) 2>&5
12988  ac_status=$?
12989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990  (exit $ac_status); } 2>conftest.err; then
12991        soname=conftest
12992        lib=conftest
12993        libobjs=conftest.$ac_objext
12994        deplibs=
12995        wl=$lt_prog_compiler_wl
12996        compiler_flags=-v
12997        linker_flags=-v
12998        verstring=
12999        output_objdir=.
13000        libname=conftest
13001        lt_save_allow_undefined_flag=$allow_undefined_flag
13002        allow_undefined_flag=
13003        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13004  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13005  ac_status=$?
13006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007  (exit $ac_status); }
13008        then
13009	  archive_cmds_need_lc=no
13010        else
13011	  archive_cmds_need_lc=yes
13012        fi
13013        allow_undefined_flag=$lt_save_allow_undefined_flag
13014      else
13015        cat conftest.err 1>&5
13016      fi
13017      $rm conftest*
13018      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13019echo "${ECHO_T}$archive_cmds_need_lc" >&6
13020      ;;
13021    esac
13022  fi
13023  ;;
13024esac
13025
13026echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13027echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13028library_names_spec=
13029libname_spec='lib$name'
13030soname_spec=
13031shrext_cmds=".so"
13032postinstall_cmds=
13033postuninstall_cmds=
13034finish_cmds=
13035finish_eval=
13036shlibpath_var=
13037shlibpath_overrides_runpath=unknown
13038version_type=none
13039dynamic_linker="$host_os ld.so"
13040sys_lib_dlsearch_path_spec="/lib /usr/lib"
13041if test "$GCC" = yes; then
13042  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13043  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13044    # if the path contains ";" then we assume it to be the separator
13045    # otherwise default to the standard path separator (i.e. ":") - it is
13046    # assumed that no part of a normal pathname contains ";" but that should
13047    # okay in the real world where ";" in dirpaths is itself problematic.
13048    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13049  else
13050    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13051  fi
13052else
13053  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13054fi
13055need_lib_prefix=unknown
13056hardcode_into_libs=no
13057
13058# when you set need_version to no, make sure it does not cause -set_version
13059# flags to be left without arguments
13060need_version=unknown
13061
13062case $host_os in
13063aix3*)
13064  version_type=linux
13065  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13066  shlibpath_var=LIBPATH
13067
13068  # AIX 3 has no versioning support, so we append a major version to the name.
13069  soname_spec='${libname}${release}${shared_ext}$major'
13070  ;;
13071
13072aix4* | aix5*)
13073  version_type=linux
13074  need_lib_prefix=no
13075  need_version=no
13076  hardcode_into_libs=yes
13077  if test "$host_cpu" = ia64; then
13078    # AIX 5 supports IA64
13079    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13080    shlibpath_var=LD_LIBRARY_PATH
13081  else
13082    # With GCC up to 2.95.x, collect2 would create an import file
13083    # for dependence libraries.  The import file would start with
13084    # the line `#! .'.  This would cause the generated library to
13085    # depend on `.', always an invalid library.  This was fixed in
13086    # development snapshots of GCC prior to 3.0.
13087    case $host_os in
13088      aix4 | aix4.[01] | aix4.[01].*)
13089      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13090	   echo ' yes '
13091	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13092	:
13093      else
13094	can_build_shared=no
13095      fi
13096      ;;
13097    esac
13098    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13099    # soname into executable. Probably we can add versioning support to
13100    # collect2, so additional links can be useful in future.
13101    if test "$aix_use_runtimelinking" = yes; then
13102      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13103      # instead of lib<name>.a to let people know that these are not
13104      # typical AIX shared libraries.
13105      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13106    else
13107      # We preserve .a as extension for shared libraries through AIX4.2
13108      # and later when we are not doing run time linking.
13109      library_names_spec='${libname}${release}.a $libname.a'
13110      soname_spec='${libname}${release}${shared_ext}$major'
13111    fi
13112    shlibpath_var=LIBPATH
13113  fi
13114  ;;
13115
13116amigaos*)
13117  library_names_spec='$libname.ixlibrary $libname.a'
13118  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13119  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'
13120  ;;
13121
13122beos*)
13123  library_names_spec='${libname}${shared_ext}'
13124  dynamic_linker="$host_os ld.so"
13125  shlibpath_var=LIBRARY_PATH
13126  ;;
13127
13128bsdi[45]*)
13129  version_type=linux
13130  need_version=no
13131  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13132  soname_spec='${libname}${release}${shared_ext}$major'
13133  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13134  shlibpath_var=LD_LIBRARY_PATH
13135  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13136  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13137  # the default ld.so.conf also contains /usr/contrib/lib and
13138  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13139  # libtool to hard-code these into programs
13140  ;;
13141
13142cygwin* | mingw* | pw32*)
13143  version_type=windows
13144  shrext_cmds=".dll"
13145  need_version=no
13146  need_lib_prefix=no
13147
13148  case $GCC,$host_os in
13149  yes,cygwin* | yes,mingw* | yes,pw32*)
13150    library_names_spec='$libname.dll.a'
13151    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13152    postinstall_cmds='base_file=`basename \${file}`~
13153      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13154      dldir=$destdir/`dirname \$dlpath`~
13155      test -d \$dldir || mkdir -p \$dldir~
13156      $install_prog $dir/$dlname \$dldir/$dlname'
13157    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13158      dlpath=$dir/\$dldll~
13159       $rm \$dlpath'
13160    shlibpath_overrides_runpath=yes
13161
13162    case $host_os in
13163    cygwin*)
13164      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13165      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13166      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13167      ;;
13168    mingw*)
13169      # MinGW DLLs use traditional 'lib' prefix
13170      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13171      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13172      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13173        # It is most probably a Windows format PATH printed by
13174        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13175        # path with ; separators, and with drive letters. We can handle the
13176        # drive letters (cygwin fileutils understands them), so leave them,
13177        # especially as we might pass files found there to a mingw objdump,
13178        # which wouldn't understand a cygwinified path. Ahh.
13179        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13180      else
13181        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13182      fi
13183      ;;
13184    pw32*)
13185      # pw32 DLLs use 'pw' prefix rather than 'lib'
13186      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13187      ;;
13188    esac
13189    ;;
13190
13191  *)
13192    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13193    ;;
13194  esac
13195  dynamic_linker='Win32 ld.exe'
13196  # FIXME: first we should search . and the directory the executable is in
13197  shlibpath_var=PATH
13198  ;;
13199
13200darwin* | rhapsody*)
13201  dynamic_linker="$host_os dyld"
13202  version_type=darwin
13203  need_lib_prefix=no
13204  need_version=no
13205  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13206  soname_spec='${libname}${release}${major}$shared_ext'
13207  shlibpath_overrides_runpath=yes
13208  shlibpath_var=DYLD_LIBRARY_PATH
13209  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13210  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13211  if test "$GCC" = yes; then
13212    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"`
13213  else
13214    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13215  fi
13216  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13217  ;;
13218
13219dgux*)
13220  version_type=linux
13221  need_lib_prefix=no
13222  need_version=no
13223  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13224  soname_spec='${libname}${release}${shared_ext}$major'
13225  shlibpath_var=LD_LIBRARY_PATH
13226  ;;
13227
13228freebsd1*)
13229  dynamic_linker=no
13230  ;;
13231
13232kfreebsd*-gnu)
13233  version_type=linux
13234  need_lib_prefix=no
13235  need_version=no
13236  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13237  soname_spec='${libname}${release}${shared_ext}$major'
13238  shlibpath_var=LD_LIBRARY_PATH
13239  shlibpath_overrides_runpath=no
13240  hardcode_into_libs=yes
13241  dynamic_linker='GNU ld.so'
13242  ;;
13243
13244freebsd*)
13245  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13246  version_type=freebsd-$objformat
13247  case $version_type in
13248    freebsd-elf*)
13249      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13250      need_version=no
13251      need_lib_prefix=no
13252      ;;
13253    freebsd-*)
13254      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13255      need_version=yes
13256      ;;
13257  esac
13258  shlibpath_var=LD_LIBRARY_PATH
13259  case $host_os in
13260  freebsd2*)
13261    shlibpath_overrides_runpath=yes
13262    ;;
13263  freebsd3.01* | freebsdelf3.01*)
13264    shlibpath_overrides_runpath=yes
13265    hardcode_into_libs=yes
13266    ;;
13267  *) # from 3.2 on
13268    shlibpath_overrides_runpath=no
13269    hardcode_into_libs=yes
13270    ;;
13271  esac
13272  ;;
13273
13274gnu*)
13275  version_type=linux
13276  need_lib_prefix=no
13277  need_version=no
13278  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13279  soname_spec='${libname}${release}${shared_ext}$major'
13280  shlibpath_var=LD_LIBRARY_PATH
13281  hardcode_into_libs=yes
13282  ;;
13283
13284hpux9* | hpux10* | hpux11*)
13285  # Give a soname corresponding to the major version so that dld.sl refuses to
13286  # link against other versions.
13287  version_type=sunos
13288  need_lib_prefix=no
13289  need_version=no
13290  case "$host_cpu" in
13291  ia64*)
13292    shrext_cmds='.so'
13293    hardcode_into_libs=yes
13294    dynamic_linker="$host_os dld.so"
13295    shlibpath_var=LD_LIBRARY_PATH
13296    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13297    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13298    soname_spec='${libname}${release}${shared_ext}$major'
13299    if test "X$HPUX_IA64_MODE" = X32; then
13300      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13301    else
13302      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13303    fi
13304    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13305    ;;
13306   hppa*64*)
13307     shrext_cmds='.sl'
13308     hardcode_into_libs=yes
13309     dynamic_linker="$host_os dld.sl"
13310     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13311     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13312     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13313     soname_spec='${libname}${release}${shared_ext}$major'
13314     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13315     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13316     ;;
13317   *)
13318    shrext_cmds='.sl'
13319    dynamic_linker="$host_os dld.sl"
13320    shlibpath_var=SHLIB_PATH
13321    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13322    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13323    soname_spec='${libname}${release}${shared_ext}$major'
13324    ;;
13325  esac
13326  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13327  postinstall_cmds='chmod 555 $lib'
13328  ;;
13329
13330irix5* | irix6* | nonstopux*)
13331  case $host_os in
13332    nonstopux*) version_type=nonstopux ;;
13333    *)
13334	if test "$lt_cv_prog_gnu_ld" = yes; then
13335		version_type=linux
13336	else
13337		version_type=irix
13338	fi ;;
13339  esac
13340  need_lib_prefix=no
13341  need_version=no
13342  soname_spec='${libname}${release}${shared_ext}$major'
13343  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13344  case $host_os in
13345  irix5* | nonstopux*)
13346    libsuff= shlibsuff=
13347    ;;
13348  *)
13349    case $LD in # libtool.m4 will add one of these switches to LD
13350    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13351      libsuff= shlibsuff= libmagic=32-bit;;
13352    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13353      libsuff=32 shlibsuff=N32 libmagic=N32;;
13354    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13355      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13356    *) libsuff= shlibsuff= libmagic=never-match;;
13357    esac
13358    ;;
13359  esac
13360  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13361  shlibpath_overrides_runpath=no
13362  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13363  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13364  hardcode_into_libs=yes
13365  ;;
13366
13367# No shared lib support for Linux oldld, aout, or coff.
13368linux*oldld* | linux*aout* | linux*coff*)
13369  dynamic_linker=no
13370  ;;
13371
13372# This must be Linux ELF.
13373linux*)
13374  version_type=linux
13375  need_lib_prefix=no
13376  need_version=no
13377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13378  soname_spec='${libname}${release}${shared_ext}$major'
13379  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13380  shlibpath_var=LD_LIBRARY_PATH
13381  shlibpath_overrides_runpath=no
13382  # This implies no fast_install, which is unacceptable.
13383  # Some rework will be needed to allow for fast_install
13384  # before this can be enabled.
13385  hardcode_into_libs=yes
13386
13387  # Append ld.so.conf contents to the search path
13388  if test -f /etc/ld.so.conf; then
13389    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13390    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13391  fi
13392
13393  # We used to test for /lib/ld.so.1 and disable shared libraries on
13394  # powerpc, because MkLinux only supported shared libraries with the
13395  # GNU dynamic linker.  Since this was broken with cross compilers,
13396  # most powerpc-linux boxes support dynamic linking these days and
13397  # people can always --disable-shared, the test was removed, and we
13398  # assume the GNU/Linux dynamic linker is in use.
13399  dynamic_linker='GNU/Linux ld.so'
13400  ;;
13401
13402knetbsd*-gnu)
13403  version_type=linux
13404  need_lib_prefix=no
13405  need_version=no
13406  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13407  soname_spec='${libname}${release}${shared_ext}$major'
13408  shlibpath_var=LD_LIBRARY_PATH
13409  shlibpath_overrides_runpath=no
13410  hardcode_into_libs=yes
13411  dynamic_linker='GNU ld.so'
13412  ;;
13413
13414netbsd*)
13415  version_type=sunos
13416  need_lib_prefix=no
13417  need_version=no
13418  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13419    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13420    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13421    dynamic_linker='NetBSD (a.out) ld.so'
13422  else
13423    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13424    soname_spec='${libname}${release}${shared_ext}$major'
13425    dynamic_linker='NetBSD ld.elf_so'
13426  fi
13427  shlibpath_var=LD_LIBRARY_PATH
13428  shlibpath_overrides_runpath=yes
13429  hardcode_into_libs=yes
13430  ;;
13431
13432newsos6)
13433  version_type=linux
13434  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13435  shlibpath_var=LD_LIBRARY_PATH
13436  shlibpath_overrides_runpath=yes
13437  ;;
13438
13439nto-qnx*)
13440  version_type=linux
13441  need_lib_prefix=no
13442  need_version=no
13443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13444  soname_spec='${libname}${release}${shared_ext}$major'
13445  shlibpath_var=LD_LIBRARY_PATH
13446  shlibpath_overrides_runpath=yes
13447  ;;
13448
13449openbsd*)
13450  version_type=sunos
13451  need_lib_prefix=no
13452  need_version=no
13453  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13454  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13455  shlibpath_var=LD_LIBRARY_PATH
13456  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13457    case $host_os in
13458      openbsd2.[89] | openbsd2.[89].*)
13459	shlibpath_overrides_runpath=no
13460	;;
13461      *)
13462	shlibpath_overrides_runpath=yes
13463	;;
13464      esac
13465  else
13466    shlibpath_overrides_runpath=yes
13467  fi
13468  ;;
13469
13470os2*)
13471  libname_spec='$name'
13472  shrext_cmds=".dll"
13473  need_lib_prefix=no
13474  library_names_spec='$libname${shared_ext} $libname.a'
13475  dynamic_linker='OS/2 ld.exe'
13476  shlibpath_var=LIBPATH
13477  ;;
13478
13479osf3* | osf4* | osf5*)
13480  version_type=osf
13481  need_lib_prefix=no
13482  need_version=no
13483  soname_spec='${libname}${release}${shared_ext}$major'
13484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13485  shlibpath_var=LD_LIBRARY_PATH
13486  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13487  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13488  ;;
13489
13490sco3.2v5*)
13491  version_type=osf
13492  soname_spec='${libname}${release}${shared_ext}$major'
13493  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13494  shlibpath_var=LD_LIBRARY_PATH
13495  ;;
13496
13497solaris*)
13498  version_type=linux
13499  need_lib_prefix=no
13500  need_version=no
13501  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13502  soname_spec='${libname}${release}${shared_ext}$major'
13503  shlibpath_var=LD_LIBRARY_PATH
13504  shlibpath_overrides_runpath=yes
13505  hardcode_into_libs=yes
13506  # ldd complains unless libraries are executable
13507  postinstall_cmds='chmod +x $lib'
13508  ;;
13509
13510sunos4*)
13511  version_type=sunos
13512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13513  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13514  shlibpath_var=LD_LIBRARY_PATH
13515  shlibpath_overrides_runpath=yes
13516  if test "$with_gnu_ld" = yes; then
13517    need_lib_prefix=no
13518  fi
13519  need_version=yes
13520  ;;
13521
13522sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13523  version_type=linux
13524  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13525  soname_spec='${libname}${release}${shared_ext}$major'
13526  shlibpath_var=LD_LIBRARY_PATH
13527  case $host_vendor in
13528    sni)
13529      shlibpath_overrides_runpath=no
13530      need_lib_prefix=no
13531      export_dynamic_flag_spec='${wl}-Blargedynsym'
13532      runpath_var=LD_RUN_PATH
13533      ;;
13534    siemens)
13535      need_lib_prefix=no
13536      ;;
13537    motorola)
13538      need_lib_prefix=no
13539      need_version=no
13540      shlibpath_overrides_runpath=no
13541      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13542      ;;
13543  esac
13544  ;;
13545
13546sysv4*MP*)
13547  if test -d /usr/nec ;then
13548    version_type=linux
13549    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13550    soname_spec='$libname${shared_ext}.$major'
13551    shlibpath_var=LD_LIBRARY_PATH
13552  fi
13553  ;;
13554
13555uts4*)
13556  version_type=linux
13557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13558  soname_spec='${libname}${release}${shared_ext}$major'
13559  shlibpath_var=LD_LIBRARY_PATH
13560  ;;
13561
13562*)
13563  dynamic_linker=no
13564  ;;
13565esac
13566echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13567echo "${ECHO_T}$dynamic_linker" >&6
13568test "$dynamic_linker" = no && can_build_shared=no
13569
13570echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13571echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13572hardcode_action=
13573if test -n "$hardcode_libdir_flag_spec" || \
13574   test -n "$runpath_var" || \
13575   test "X$hardcode_automatic" = "Xyes" ; then
13576
13577  # We can hardcode non-existant directories.
13578  if test "$hardcode_direct" != no &&
13579     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13580     # have to relink, otherwise we might link with an installed library
13581     # when we should be linking with a yet-to-be-installed one
13582     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13583     test "$hardcode_minus_L" != no; then
13584    # Linking always hardcodes the temporary library directory.
13585    hardcode_action=relink
13586  else
13587    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13588    hardcode_action=immediate
13589  fi
13590else
13591  # We cannot hardcode anything, or else we can only hardcode existing
13592  # directories.
13593  hardcode_action=unsupported
13594fi
13595echo "$as_me:$LINENO: result: $hardcode_action" >&5
13596echo "${ECHO_T}$hardcode_action" >&6
13597
13598if test "$hardcode_action" = relink; then
13599  # Fast installation is not supported
13600  enable_fast_install=no
13601elif test "$shlibpath_overrides_runpath" = yes ||
13602     test "$enable_shared" = no; then
13603  # Fast installation is not necessary
13604  enable_fast_install=needless
13605fi
13606
13607striplib=
13608old_striplib=
13609echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13610echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13611if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13612  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13613  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13614  echo "$as_me:$LINENO: result: yes" >&5
13615echo "${ECHO_T}yes" >&6
13616else
13617# FIXME - insert some real tests, host_os isn't really good enough
13618  case $host_os in
13619   darwin*)
13620       if test -n "$STRIP" ; then
13621         striplib="$STRIP -x"
13622         echo "$as_me:$LINENO: result: yes" >&5
13623echo "${ECHO_T}yes" >&6
13624       else
13625  echo "$as_me:$LINENO: result: no" >&5
13626echo "${ECHO_T}no" >&6
13627fi
13628       ;;
13629   *)
13630  echo "$as_me:$LINENO: result: no" >&5
13631echo "${ECHO_T}no" >&6
13632    ;;
13633  esac
13634fi
13635
13636if test "x$enable_dlopen" != xyes; then
13637  enable_dlopen=unknown
13638  enable_dlopen_self=unknown
13639  enable_dlopen_self_static=unknown
13640else
13641  lt_cv_dlopen=no
13642  lt_cv_dlopen_libs=
13643
13644  case $host_os in
13645  beos*)
13646    lt_cv_dlopen="load_add_on"
13647    lt_cv_dlopen_libs=
13648    lt_cv_dlopen_self=yes
13649    ;;
13650
13651  mingw* | pw32*)
13652    lt_cv_dlopen="LoadLibrary"
13653    lt_cv_dlopen_libs=
13654   ;;
13655
13656  cygwin*)
13657    lt_cv_dlopen="dlopen"
13658    lt_cv_dlopen_libs=
13659   ;;
13660
13661  darwin*)
13662  # if libdl is installed we need to link against it
13663    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13664echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13665if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13666  echo $ECHO_N "(cached) $ECHO_C" >&6
13667else
13668  ac_check_lib_save_LIBS=$LIBS
13669LIBS="-ldl  $LIBS"
13670cat >conftest.$ac_ext <<_ACEOF
13671/* confdefs.h.  */
13672_ACEOF
13673cat confdefs.h >>conftest.$ac_ext
13674cat >>conftest.$ac_ext <<_ACEOF
13675/* end confdefs.h.  */
13676
13677/* Override any gcc2 internal prototype to avoid an error.  */
13678#ifdef __cplusplus
13679extern "C"
13680#endif
13681/* We use char because int might match the return type of a gcc2
13682   builtin and then its argument prototype would still apply.  */
13683char dlopen ();
13684int
13685main ()
13686{
13687dlopen ();
13688  ;
13689  return 0;
13690}
13691_ACEOF
13692rm -f conftest.$ac_objext conftest$ac_exeext
13693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13694  (eval $ac_link) 2>conftest.er1
13695  ac_status=$?
13696  grep -v '^ *+' conftest.er1 >conftest.err
13697  rm -f conftest.er1
13698  cat conftest.err >&5
13699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700  (exit $ac_status); } &&
13701	 { ac_try='test -z "$ac_c_werror_flag"
13702			 || test ! -s conftest.err'
13703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13704  (eval $ac_try) 2>&5
13705  ac_status=$?
13706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707  (exit $ac_status); }; } &&
13708	 { ac_try='test -s conftest$ac_exeext'
13709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710  (eval $ac_try) 2>&5
13711  ac_status=$?
13712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713  (exit $ac_status); }; }; then
13714  ac_cv_lib_dl_dlopen=yes
13715else
13716  echo "$as_me: failed program was:" >&5
13717sed 's/^/| /' conftest.$ac_ext >&5
13718
13719ac_cv_lib_dl_dlopen=no
13720fi
13721rm -f conftest.err conftest.$ac_objext \
13722      conftest$ac_exeext conftest.$ac_ext
13723LIBS=$ac_check_lib_save_LIBS
13724fi
13725echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13726echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13727if test $ac_cv_lib_dl_dlopen = yes; then
13728  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13729else
13730
13731    lt_cv_dlopen="dyld"
13732    lt_cv_dlopen_libs=
13733    lt_cv_dlopen_self=yes
13734
13735fi
13736
13737   ;;
13738
13739  *)
13740    echo "$as_me:$LINENO: checking for shl_load" >&5
13741echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13742if test "${ac_cv_func_shl_load+set}" = set; then
13743  echo $ECHO_N "(cached) $ECHO_C" >&6
13744else
13745  cat >conftest.$ac_ext <<_ACEOF
13746/* confdefs.h.  */
13747_ACEOF
13748cat confdefs.h >>conftest.$ac_ext
13749cat >>conftest.$ac_ext <<_ACEOF
13750/* end confdefs.h.  */
13751/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13752   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13753#define shl_load innocuous_shl_load
13754
13755/* System header to define __stub macros and hopefully few prototypes,
13756    which can conflict with char shl_load (); below.
13757    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13758    <limits.h> exists even on freestanding compilers.  */
13759
13760#ifdef __STDC__
13761# include <limits.h>
13762#else
13763# include <assert.h>
13764#endif
13765
13766#undef shl_load
13767
13768/* Override any gcc2 internal prototype to avoid an error.  */
13769#ifdef __cplusplus
13770extern "C"
13771{
13772#endif
13773/* We use char because int might match the return type of a gcc2
13774   builtin and then its argument prototype would still apply.  */
13775char shl_load ();
13776/* The GNU C library defines this for functions which it implements
13777    to always fail with ENOSYS.  Some functions are actually named
13778    something starting with __ and the normal name is an alias.  */
13779#if defined (__stub_shl_load) || defined (__stub___shl_load)
13780choke me
13781#else
13782char (*f) () = shl_load;
13783#endif
13784#ifdef __cplusplus
13785}
13786#endif
13787
13788int
13789main ()
13790{
13791return f != shl_load;
13792  ;
13793  return 0;
13794}
13795_ACEOF
13796rm -f conftest.$ac_objext conftest$ac_exeext
13797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13798  (eval $ac_link) 2>conftest.er1
13799  ac_status=$?
13800  grep -v '^ *+' conftest.er1 >conftest.err
13801  rm -f conftest.er1
13802  cat conftest.err >&5
13803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804  (exit $ac_status); } &&
13805	 { ac_try='test -z "$ac_c_werror_flag"
13806			 || test ! -s conftest.err'
13807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13808  (eval $ac_try) 2>&5
13809  ac_status=$?
13810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811  (exit $ac_status); }; } &&
13812	 { ac_try='test -s conftest$ac_exeext'
13813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814  (eval $ac_try) 2>&5
13815  ac_status=$?
13816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817  (exit $ac_status); }; }; then
13818  ac_cv_func_shl_load=yes
13819else
13820  echo "$as_me: failed program was:" >&5
13821sed 's/^/| /' conftest.$ac_ext >&5
13822
13823ac_cv_func_shl_load=no
13824fi
13825rm -f conftest.err conftest.$ac_objext \
13826      conftest$ac_exeext conftest.$ac_ext
13827fi
13828echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13829echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13830if test $ac_cv_func_shl_load = yes; then
13831  lt_cv_dlopen="shl_load"
13832else
13833  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13834echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13835if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13836  echo $ECHO_N "(cached) $ECHO_C" >&6
13837else
13838  ac_check_lib_save_LIBS=$LIBS
13839LIBS="-ldld  $LIBS"
13840cat >conftest.$ac_ext <<_ACEOF
13841/* confdefs.h.  */
13842_ACEOF
13843cat confdefs.h >>conftest.$ac_ext
13844cat >>conftest.$ac_ext <<_ACEOF
13845/* end confdefs.h.  */
13846
13847/* Override any gcc2 internal prototype to avoid an error.  */
13848#ifdef __cplusplus
13849extern "C"
13850#endif
13851/* We use char because int might match the return type of a gcc2
13852   builtin and then its argument prototype would still apply.  */
13853char shl_load ();
13854int
13855main ()
13856{
13857shl_load ();
13858  ;
13859  return 0;
13860}
13861_ACEOF
13862rm -f conftest.$ac_objext conftest$ac_exeext
13863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13864  (eval $ac_link) 2>conftest.er1
13865  ac_status=$?
13866  grep -v '^ *+' conftest.er1 >conftest.err
13867  rm -f conftest.er1
13868  cat conftest.err >&5
13869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870  (exit $ac_status); } &&
13871	 { ac_try='test -z "$ac_c_werror_flag"
13872			 || test ! -s conftest.err'
13873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874  (eval $ac_try) 2>&5
13875  ac_status=$?
13876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877  (exit $ac_status); }; } &&
13878	 { ac_try='test -s conftest$ac_exeext'
13879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880  (eval $ac_try) 2>&5
13881  ac_status=$?
13882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883  (exit $ac_status); }; }; then
13884  ac_cv_lib_dld_shl_load=yes
13885else
13886  echo "$as_me: failed program was:" >&5
13887sed 's/^/| /' conftest.$ac_ext >&5
13888
13889ac_cv_lib_dld_shl_load=no
13890fi
13891rm -f conftest.err conftest.$ac_objext \
13892      conftest$ac_exeext conftest.$ac_ext
13893LIBS=$ac_check_lib_save_LIBS
13894fi
13895echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13896echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13897if test $ac_cv_lib_dld_shl_load = yes; then
13898  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13899else
13900  echo "$as_me:$LINENO: checking for dlopen" >&5
13901echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13902if test "${ac_cv_func_dlopen+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 dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13912   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13913#define dlopen innocuous_dlopen
13914
13915/* System header to define __stub macros and hopefully few prototypes,
13916    which can conflict with char dlopen (); 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 dlopen
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 dlopen ();
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_dlopen) || defined (__stub___dlopen)
13940choke me
13941#else
13942char (*f) () = dlopen;
13943#endif
13944#ifdef __cplusplus
13945}
13946#endif
13947
13948int
13949main ()
13950{
13951return f != dlopen;
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_dlopen=yes
13979else
13980  echo "$as_me: failed program was:" >&5
13981sed 's/^/| /' conftest.$ac_ext >&5
13982
13983ac_cv_func_dlopen=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_dlopen" >&5
13989echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13990if test $ac_cv_func_dlopen = yes; then
13991  lt_cv_dlopen="dlopen"
13992else
13993  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13994echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13995if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13996  echo $ECHO_N "(cached) $ECHO_C" >&6
13997else
13998  ac_check_lib_save_LIBS=$LIBS
13999LIBS="-ldl  $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 dlopen ();
14014int
14015main ()
14016{
14017dlopen ();
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_dl_dlopen=yes
14045else
14046  echo "$as_me: failed program was:" >&5
14047sed 's/^/| /' conftest.$ac_ext >&5
14048
14049ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
14056echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14057if test $ac_cv_lib_dl_dlopen = yes; then
14058  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14059else
14060  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14061echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14062if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14063  echo $ECHO_N "(cached) $ECHO_C" >&6
14064else
14065  ac_check_lib_save_LIBS=$LIBS
14066LIBS="-lsvld  $LIBS"
14067cat >conftest.$ac_ext <<_ACEOF
14068/* confdefs.h.  */
14069_ACEOF
14070cat confdefs.h >>conftest.$ac_ext
14071cat >>conftest.$ac_ext <<_ACEOF
14072/* end confdefs.h.  */
14073
14074/* Override any gcc2 internal prototype to avoid an error.  */
14075#ifdef __cplusplus
14076extern "C"
14077#endif
14078/* We use char because int might match the return type of a gcc2
14079   builtin and then its argument prototype would still apply.  */
14080char dlopen ();
14081int
14082main ()
14083{
14084dlopen ();
14085  ;
14086  return 0;
14087}
14088_ACEOF
14089rm -f conftest.$ac_objext conftest$ac_exeext
14090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14091  (eval $ac_link) 2>conftest.er1
14092  ac_status=$?
14093  grep -v '^ *+' conftest.er1 >conftest.err
14094  rm -f conftest.er1
14095  cat conftest.err >&5
14096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097  (exit $ac_status); } &&
14098	 { ac_try='test -z "$ac_c_werror_flag"
14099			 || test ! -s conftest.err'
14100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101  (eval $ac_try) 2>&5
14102  ac_status=$?
14103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104  (exit $ac_status); }; } &&
14105	 { ac_try='test -s conftest$ac_exeext'
14106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107  (eval $ac_try) 2>&5
14108  ac_status=$?
14109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110  (exit $ac_status); }; }; then
14111  ac_cv_lib_svld_dlopen=yes
14112else
14113  echo "$as_me: failed program was:" >&5
14114sed 's/^/| /' conftest.$ac_ext >&5
14115
14116ac_cv_lib_svld_dlopen=no
14117fi
14118rm -f conftest.err conftest.$ac_objext \
14119      conftest$ac_exeext conftest.$ac_ext
14120LIBS=$ac_check_lib_save_LIBS
14121fi
14122echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14123echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14124if test $ac_cv_lib_svld_dlopen = yes; then
14125  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14126else
14127  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14128echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14129if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14130  echo $ECHO_N "(cached) $ECHO_C" >&6
14131else
14132  ac_check_lib_save_LIBS=$LIBS
14133LIBS="-ldld  $LIBS"
14134cat >conftest.$ac_ext <<_ACEOF
14135/* confdefs.h.  */
14136_ACEOF
14137cat confdefs.h >>conftest.$ac_ext
14138cat >>conftest.$ac_ext <<_ACEOF
14139/* end confdefs.h.  */
14140
14141/* Override any gcc2 internal prototype to avoid an error.  */
14142#ifdef __cplusplus
14143extern "C"
14144#endif
14145/* We use char because int might match the return type of a gcc2
14146   builtin and then its argument prototype would still apply.  */
14147char dld_link ();
14148int
14149main ()
14150{
14151dld_link ();
14152  ;
14153  return 0;
14154}
14155_ACEOF
14156rm -f conftest.$ac_objext conftest$ac_exeext
14157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14158  (eval $ac_link) 2>conftest.er1
14159  ac_status=$?
14160  grep -v '^ *+' conftest.er1 >conftest.err
14161  rm -f conftest.er1
14162  cat conftest.err >&5
14163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164  (exit $ac_status); } &&
14165	 { ac_try='test -z "$ac_c_werror_flag"
14166			 || test ! -s conftest.err'
14167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168  (eval $ac_try) 2>&5
14169  ac_status=$?
14170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171  (exit $ac_status); }; } &&
14172	 { ac_try='test -s conftest$ac_exeext'
14173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174  (eval $ac_try) 2>&5
14175  ac_status=$?
14176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177  (exit $ac_status); }; }; then
14178  ac_cv_lib_dld_dld_link=yes
14179else
14180  echo "$as_me: failed program was:" >&5
14181sed 's/^/| /' conftest.$ac_ext >&5
14182
14183ac_cv_lib_dld_dld_link=no
14184fi
14185rm -f conftest.err conftest.$ac_objext \
14186      conftest$ac_exeext conftest.$ac_ext
14187LIBS=$ac_check_lib_save_LIBS
14188fi
14189echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14190echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14191if test $ac_cv_lib_dld_dld_link = yes; then
14192  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14193fi
14194
14195
14196fi
14197
14198
14199fi
14200
14201
14202fi
14203
14204
14205fi
14206
14207
14208fi
14209
14210    ;;
14211  esac
14212
14213  if test "x$lt_cv_dlopen" != xno; then
14214    enable_dlopen=yes
14215  else
14216    enable_dlopen=no
14217  fi
14218
14219  case $lt_cv_dlopen in
14220  dlopen)
14221    save_CPPFLAGS="$CPPFLAGS"
14222    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14223
14224    save_LDFLAGS="$LDFLAGS"
14225    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14226
14227    save_LIBS="$LIBS"
14228    LIBS="$lt_cv_dlopen_libs $LIBS"
14229
14230    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14231echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14232if test "${lt_cv_dlopen_self+set}" = set; then
14233  echo $ECHO_N "(cached) $ECHO_C" >&6
14234else
14235  	  if test "$cross_compiling" = yes; then :
14236  lt_cv_dlopen_self=cross
14237else
14238  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14239  lt_status=$lt_dlunknown
14240  cat > conftest.$ac_ext <<EOF
14241#line 14241 "configure"
14242#include "confdefs.h"
14243
14244#if HAVE_DLFCN_H
14245#include <dlfcn.h>
14246#endif
14247
14248#include <stdio.h>
14249
14250#ifdef RTLD_GLOBAL
14251#  define LT_DLGLOBAL		RTLD_GLOBAL
14252#else
14253#  ifdef DL_GLOBAL
14254#    define LT_DLGLOBAL		DL_GLOBAL
14255#  else
14256#    define LT_DLGLOBAL		0
14257#  endif
14258#endif
14259
14260/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14261   find out it does not work in some platform. */
14262#ifndef LT_DLLAZY_OR_NOW
14263#  ifdef RTLD_LAZY
14264#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14265#  else
14266#    ifdef DL_LAZY
14267#      define LT_DLLAZY_OR_NOW		DL_LAZY
14268#    else
14269#      ifdef RTLD_NOW
14270#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14271#      else
14272#        ifdef DL_NOW
14273#          define LT_DLLAZY_OR_NOW	DL_NOW
14274#        else
14275#          define LT_DLLAZY_OR_NOW	0
14276#        endif
14277#      endif
14278#    endif
14279#  endif
14280#endif
14281
14282#ifdef __cplusplus
14283extern "C" void exit (int);
14284#endif
14285
14286void fnord() { int i=42;}
14287int main ()
14288{
14289  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14290  int status = $lt_dlunknown;
14291
14292  if (self)
14293    {
14294      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14295      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14296      /* dlclose (self); */
14297    }
14298
14299    exit (status);
14300}
14301EOF
14302  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14303  (eval $ac_link) 2>&5
14304  ac_status=$?
14305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14307    (./conftest; exit; ) 2>/dev/null
14308    lt_status=$?
14309    case x$lt_status in
14310      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14311      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14312      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14313    esac
14314  else :
14315    # compilation failed
14316    lt_cv_dlopen_self=no
14317  fi
14318fi
14319rm -fr conftest*
14320
14321
14322fi
14323echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14324echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14325
14326    if test "x$lt_cv_dlopen_self" = xyes; then
14327      LDFLAGS="$LDFLAGS $link_static_flag"
14328      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14329echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14330if test "${lt_cv_dlopen_self_static+set}" = set; then
14331  echo $ECHO_N "(cached) $ECHO_C" >&6
14332else
14333  	  if test "$cross_compiling" = yes; then :
14334  lt_cv_dlopen_self_static=cross
14335else
14336  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14337  lt_status=$lt_dlunknown
14338  cat > conftest.$ac_ext <<EOF
14339#line 14339 "configure"
14340#include "confdefs.h"
14341
14342#if HAVE_DLFCN_H
14343#include <dlfcn.h>
14344#endif
14345
14346#include <stdio.h>
14347
14348#ifdef RTLD_GLOBAL
14349#  define LT_DLGLOBAL		RTLD_GLOBAL
14350#else
14351#  ifdef DL_GLOBAL
14352#    define LT_DLGLOBAL		DL_GLOBAL
14353#  else
14354#    define LT_DLGLOBAL		0
14355#  endif
14356#endif
14357
14358/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14359   find out it does not work in some platform. */
14360#ifndef LT_DLLAZY_OR_NOW
14361#  ifdef RTLD_LAZY
14362#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14363#  else
14364#    ifdef DL_LAZY
14365#      define LT_DLLAZY_OR_NOW		DL_LAZY
14366#    else
14367#      ifdef RTLD_NOW
14368#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14369#      else
14370#        ifdef DL_NOW
14371#          define LT_DLLAZY_OR_NOW	DL_NOW
14372#        else
14373#          define LT_DLLAZY_OR_NOW	0
14374#        endif
14375#      endif
14376#    endif
14377#  endif
14378#endif
14379
14380#ifdef __cplusplus
14381extern "C" void exit (int);
14382#endif
14383
14384void fnord() { int i=42;}
14385int main ()
14386{
14387  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14388  int status = $lt_dlunknown;
14389
14390  if (self)
14391    {
14392      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14393      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14394      /* dlclose (self); */
14395    }
14396
14397    exit (status);
14398}
14399EOF
14400  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14401  (eval $ac_link) 2>&5
14402  ac_status=$?
14403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14405    (./conftest; exit; ) 2>/dev/null
14406    lt_status=$?
14407    case x$lt_status in
14408      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14409      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14410      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14411    esac
14412  else :
14413    # compilation failed
14414    lt_cv_dlopen_self_static=no
14415  fi
14416fi
14417rm -fr conftest*
14418
14419
14420fi
14421echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14422echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14423    fi
14424
14425    CPPFLAGS="$save_CPPFLAGS"
14426    LDFLAGS="$save_LDFLAGS"
14427    LIBS="$save_LIBS"
14428    ;;
14429  esac
14430
14431  case $lt_cv_dlopen_self in
14432  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14433  *) enable_dlopen_self=unknown ;;
14434  esac
14435
14436  case $lt_cv_dlopen_self_static in
14437  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14438  *) enable_dlopen_self_static=unknown ;;
14439  esac
14440fi
14441
14442
14443# Report which librarie types wil actually be built
14444echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14445echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14446echo "$as_me:$LINENO: result: $can_build_shared" >&5
14447echo "${ECHO_T}$can_build_shared" >&6
14448
14449echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14450echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14451test "$can_build_shared" = "no" && enable_shared=no
14452
14453# On AIX, shared libraries and static libraries use the same namespace, and
14454# are all built from PIC.
14455case "$host_os" in
14456aix3*)
14457  test "$enable_shared" = yes && enable_static=no
14458  if test -n "$RANLIB"; then
14459    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14460    postinstall_cmds='$RANLIB $lib'
14461  fi
14462  ;;
14463
14464aix4* | aix5*)
14465  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14466    test "$enable_shared" = yes && enable_static=no
14467  fi
14468    ;;
14469esac
14470echo "$as_me:$LINENO: result: $enable_shared" >&5
14471echo "${ECHO_T}$enable_shared" >&6
14472
14473echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14474echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14475# Make sure either enable_shared or enable_static is yes.
14476test "$enable_shared" = yes || enable_static=yes
14477echo "$as_me:$LINENO: result: $enable_static" >&5
14478echo "${ECHO_T}$enable_static" >&6
14479
14480# The else clause should only fire when bootstrapping the
14481# libtool distribution, otherwise you forgot to ship ltmain.sh
14482# with your package, and you will get complaints that there are
14483# no rules to generate ltmain.sh.
14484if test -f "$ltmain"; then
14485  # See if we are running on zsh, and set the options which allow our commands through
14486  # without removal of \ escapes.
14487  if test -n "${ZSH_VERSION+set}" ; then
14488    setopt NO_GLOB_SUBST
14489  fi
14490  # Now quote all the things that may contain metacharacters while being
14491  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14492  # variables and quote the copies for generation of the libtool script.
14493  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14494    SED SHELL STRIP \
14495    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14496    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14497    deplibs_check_method reload_flag reload_cmds need_locks \
14498    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14499    lt_cv_sys_global_symbol_to_c_name_address \
14500    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14501    old_postinstall_cmds old_postuninstall_cmds \
14502    compiler \
14503    CC \
14504    LD \
14505    lt_prog_compiler_wl \
14506    lt_prog_compiler_pic \
14507    lt_prog_compiler_static \
14508    lt_prog_compiler_no_builtin_flag \
14509    export_dynamic_flag_spec \
14510    thread_safe_flag_spec \
14511    whole_archive_flag_spec \
14512    enable_shared_with_static_runtimes \
14513    old_archive_cmds \
14514    old_archive_from_new_cmds \
14515    predep_objects \
14516    postdep_objects \
14517    predeps \
14518    postdeps \
14519    compiler_lib_search_path \
14520    archive_cmds \
14521    archive_expsym_cmds \
14522    postinstall_cmds \
14523    postuninstall_cmds \
14524    old_archive_from_expsyms_cmds \
14525    allow_undefined_flag \
14526    no_undefined_flag \
14527    export_symbols_cmds \
14528    hardcode_libdir_flag_spec \
14529    hardcode_libdir_flag_spec_ld \
14530    hardcode_libdir_separator \
14531    hardcode_automatic \
14532    module_cmds \
14533    module_expsym_cmds \
14534    lt_cv_prog_compiler_c_o \
14535    exclude_expsyms \
14536    include_expsyms; do
14537
14538    case $var in
14539    old_archive_cmds | \
14540    old_archive_from_new_cmds | \
14541    archive_cmds | \
14542    archive_expsym_cmds | \
14543    module_cmds | \
14544    module_expsym_cmds | \
14545    old_archive_from_expsyms_cmds | \
14546    export_symbols_cmds | \
14547    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14548    postinstall_cmds | postuninstall_cmds | \
14549    old_postinstall_cmds | old_postuninstall_cmds | \
14550    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14551      # Double-quote double-evaled strings.
14552      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14553      ;;
14554    *)
14555      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14556      ;;
14557    esac
14558  done
14559
14560  case $lt_echo in
14561  *'\$0 --fallback-echo"')
14562    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14563    ;;
14564  esac
14565
14566cfgfile="${ofile}T"
14567  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14568  $rm -f "$cfgfile"
14569  { echo "$as_me:$LINENO: creating $ofile" >&5
14570echo "$as_me: creating $ofile" >&6;}
14571
14572  cat <<__EOF__ >> "$cfgfile"
14573#! $SHELL
14574
14575# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14576# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14577# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14578#
14579# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14580# Free Software Foundation, Inc.
14581#
14582# This file is part of GNU Libtool:
14583# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14584#
14585# This program is free software; you can redistribute it and/or modify
14586# it under the terms of the GNU General Public License as published by
14587# the Free Software Foundation; either version 2 of the License, or
14588# (at your option) any later version.
14589#
14590# This program is distributed in the hope that it will be useful, but
14591# WITHOUT ANY WARRANTY; without even the implied warranty of
14592# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14593# General Public License for more details.
14594#
14595# You should have received a copy of the GNU General Public License
14596# along with this program; if not, write to the Free Software
14597# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14598#
14599# As a special exception to the GNU General Public License, if you
14600# distribute this file as part of a program that contains a
14601# configuration script generated by Autoconf, you may include it under
14602# the same distribution terms that you use for the rest of that program.
14603
14604# A sed program that does not truncate output.
14605SED=$lt_SED
14606
14607# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14608Xsed="$SED -e s/^X//"
14609
14610# The HP-UX ksh and POSIX shell print the target directory to stdout
14611# if CDPATH is set.
14612(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14613
14614# The names of the tagged configurations supported by this script.
14615available_tags=
14616
14617# ### BEGIN LIBTOOL CONFIG
14618
14619# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14620
14621# Shell to use when invoking shell scripts.
14622SHELL=$lt_SHELL
14623
14624# Whether or not to build shared libraries.
14625build_libtool_libs=$enable_shared
14626
14627# Whether or not to build static libraries.
14628build_old_libs=$enable_static
14629
14630# Whether or not to add -lc for building shared libraries.
14631build_libtool_need_lc=$archive_cmds_need_lc
14632
14633# Whether or not to disallow shared libs when runtime libs are static
14634allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14635
14636# Whether or not to optimize for fast installation.
14637fast_install=$enable_fast_install
14638
14639# The host system.
14640host_alias=$host_alias
14641host=$host
14642
14643# An echo program that does not interpret backslashes.
14644echo=$lt_echo
14645
14646# The archiver.
14647AR=$lt_AR
14648AR_FLAGS=$lt_AR_FLAGS
14649
14650# A C compiler.
14651LTCC=$lt_LTCC
14652
14653# A language-specific compiler.
14654CC=$lt_compiler
14655
14656# Is the compiler the GNU C compiler?
14657with_gcc=$GCC
14658
14659# An ERE matcher.
14660EGREP=$lt_EGREP
14661
14662# The linker used to build libraries.
14663LD=$lt_LD
14664
14665# Whether we need hard or soft links.
14666LN_S=$lt_LN_S
14667
14668# A BSD-compatible nm program.
14669NM=$lt_NM
14670
14671# A symbol stripping program
14672STRIP=$lt_STRIP
14673
14674# Used to examine libraries when file_magic_cmd begins "file"
14675MAGIC_CMD=$MAGIC_CMD
14676
14677# Used on cygwin: DLL creation program.
14678DLLTOOL="$DLLTOOL"
14679
14680# Used on cygwin: object dumper.
14681OBJDUMP="$OBJDUMP"
14682
14683# Used on cygwin: assembler.
14684AS="$AS"
14685
14686# The name of the directory that contains temporary libtool files.
14687objdir=$objdir
14688
14689# How to create reloadable object files.
14690reload_flag=$lt_reload_flag
14691reload_cmds=$lt_reload_cmds
14692
14693# How to pass a linker flag through the compiler.
14694wl=$lt_lt_prog_compiler_wl
14695
14696# Object file suffix (normally "o").
14697objext="$ac_objext"
14698
14699# Old archive suffix (normally "a").
14700libext="$libext"
14701
14702# Shared library suffix (normally ".so").
14703shrext_cmds='$shrext_cmds'
14704
14705# Executable file suffix (normally "").
14706exeext="$exeext"
14707
14708# Additional compiler flags for building library objects.
14709pic_flag=$lt_lt_prog_compiler_pic
14710pic_mode=$pic_mode
14711
14712# What is the maximum length of a command?
14713max_cmd_len=$lt_cv_sys_max_cmd_len
14714
14715# Does compiler simultaneously support -c and -o options?
14716compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14717
14718# Must we lock files when doing compilation ?
14719need_locks=$lt_need_locks
14720
14721# Do we need the lib prefix for modules?
14722need_lib_prefix=$need_lib_prefix
14723
14724# Do we need a version for libraries?
14725need_version=$need_version
14726
14727# Whether dlopen is supported.
14728dlopen_support=$enable_dlopen
14729
14730# Whether dlopen of programs is supported.
14731dlopen_self=$enable_dlopen_self
14732
14733# Whether dlopen of statically linked programs is supported.
14734dlopen_self_static=$enable_dlopen_self_static
14735
14736# Compiler flag to prevent dynamic linking.
14737link_static_flag=$lt_lt_prog_compiler_static
14738
14739# Compiler flag to turn off builtin functions.
14740no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14741
14742# Compiler flag to allow reflexive dlopens.
14743export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14744
14745# Compiler flag to generate shared objects directly from archives.
14746whole_archive_flag_spec=$lt_whole_archive_flag_spec
14747
14748# Compiler flag to generate thread-safe objects.
14749thread_safe_flag_spec=$lt_thread_safe_flag_spec
14750
14751# Library versioning type.
14752version_type=$version_type
14753
14754# Format of library name prefix.
14755libname_spec=$lt_libname_spec
14756
14757# List of archive names.  First name is the real one, the rest are links.
14758# The last name is the one that the linker finds with -lNAME.
14759library_names_spec=$lt_library_names_spec
14760
14761# The coded name of the library, if different from the real name.
14762soname_spec=$lt_soname_spec
14763
14764# Commands used to build and install an old-style archive.
14765RANLIB=$lt_RANLIB
14766old_archive_cmds=$lt_old_archive_cmds
14767old_postinstall_cmds=$lt_old_postinstall_cmds
14768old_postuninstall_cmds=$lt_old_postuninstall_cmds
14769
14770# Create an old-style archive from a shared archive.
14771old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14772
14773# Create a temporary old-style archive to link instead of a shared archive.
14774old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14775
14776# Commands used to build and install a shared archive.
14777archive_cmds=$lt_archive_cmds
14778archive_expsym_cmds=$lt_archive_expsym_cmds
14779postinstall_cmds=$lt_postinstall_cmds
14780postuninstall_cmds=$lt_postuninstall_cmds
14781
14782# Commands used to build a loadable module (assumed same as above if empty)
14783module_cmds=$lt_module_cmds
14784module_expsym_cmds=$lt_module_expsym_cmds
14785
14786# Commands to strip libraries.
14787old_striplib=$lt_old_striplib
14788striplib=$lt_striplib
14789
14790# Dependencies to place before the objects being linked to create a
14791# shared library.
14792predep_objects=$lt_predep_objects
14793
14794# Dependencies to place after the objects being linked to create a
14795# shared library.
14796postdep_objects=$lt_postdep_objects
14797
14798# Dependencies to place before the objects being linked to create a
14799# shared library.
14800predeps=$lt_predeps
14801
14802# Dependencies to place after the objects being linked to create a
14803# shared library.
14804postdeps=$lt_postdeps
14805
14806# The library search path used internally by the compiler when linking
14807# a shared library.
14808compiler_lib_search_path=$lt_compiler_lib_search_path
14809
14810# Method to check whether dependent libraries are shared objects.
14811deplibs_check_method=$lt_deplibs_check_method
14812
14813# Command to use when deplibs_check_method == file_magic.
14814file_magic_cmd=$lt_file_magic_cmd
14815
14816# Flag that allows shared libraries with undefined symbols to be built.
14817allow_undefined_flag=$lt_allow_undefined_flag
14818
14819# Flag that forces no undefined symbols.
14820no_undefined_flag=$lt_no_undefined_flag
14821
14822# Commands used to finish a libtool library installation in a directory.
14823finish_cmds=$lt_finish_cmds
14824
14825# Same as above, but a single script fragment to be evaled but not shown.
14826finish_eval=$lt_finish_eval
14827
14828# Take the output of nm and produce a listing of raw symbols and C names.
14829global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14830
14831# Transform the output of nm in a proper C declaration
14832global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14833
14834# Transform the output of nm in a C name address pair
14835global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14836
14837# This is the shared library runtime path variable.
14838runpath_var=$runpath_var
14839
14840# This is the shared library path variable.
14841shlibpath_var=$shlibpath_var
14842
14843# Is shlibpath searched before the hard-coded library search path?
14844shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14845
14846# How to hardcode a shared library path into an executable.
14847hardcode_action=$hardcode_action
14848
14849# Whether we should hardcode library paths into libraries.
14850hardcode_into_libs=$hardcode_into_libs
14851
14852# Flag to hardcode \$libdir into a binary during linking.
14853# This must work even if \$libdir does not exist.
14854hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14855
14856# If ld is used when linking, flag to hardcode \$libdir into
14857# a binary during linking. This must work even if \$libdir does
14858# not exist.
14859hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14860
14861# Whether we need a single -rpath flag with a separated argument.
14862hardcode_libdir_separator=$lt_hardcode_libdir_separator
14863
14864# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14865# resulting binary.
14866hardcode_direct=$hardcode_direct
14867
14868# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14869# resulting binary.
14870hardcode_minus_L=$hardcode_minus_L
14871
14872# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14873# the resulting binary.
14874hardcode_shlibpath_var=$hardcode_shlibpath_var
14875
14876# Set to yes if building a shared library automatically hardcodes DIR into the library
14877# and all subsequent libraries and executables linked against it.
14878hardcode_automatic=$hardcode_automatic
14879
14880# Variables whose values should be saved in libtool wrapper scripts and
14881# restored at relink time.
14882variables_saved_for_relink="$variables_saved_for_relink"
14883
14884# Whether libtool must link a program against all its dependency libraries.
14885link_all_deplibs=$link_all_deplibs
14886
14887# Compile-time system search path for libraries
14888sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14889
14890# Run-time system search path for libraries
14891sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14892
14893# Fix the shell variable \$srcfile for the compiler.
14894fix_srcfile_path="$fix_srcfile_path"
14895
14896# Set to yes if exported symbols are required.
14897always_export_symbols=$always_export_symbols
14898
14899# The commands to list exported symbols.
14900export_symbols_cmds=$lt_export_symbols_cmds
14901
14902# The commands to extract the exported symbol list from a shared archive.
14903extract_expsyms_cmds=$lt_extract_expsyms_cmds
14904
14905# Symbols that should not be listed in the preloaded symbols.
14906exclude_expsyms=$lt_exclude_expsyms
14907
14908# Symbols that must always be exported.
14909include_expsyms=$lt_include_expsyms
14910
14911# ### END LIBTOOL CONFIG
14912
14913__EOF__
14914
14915
14916  case $host_os in
14917  aix3*)
14918    cat <<\EOF >> "$cfgfile"
14919
14920# AIX sometimes has problems with the GCC collect2 program.  For some
14921# reason, if we set the COLLECT_NAMES environment variable, the problems
14922# vanish in a puff of smoke.
14923if test "X${COLLECT_NAMES+set}" != Xset; then
14924  COLLECT_NAMES=
14925  export COLLECT_NAMES
14926fi
14927EOF
14928    ;;
14929  esac
14930
14931  # We use sed instead of cat because bash on DJGPP gets confused if
14932  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14933  # text mode, it properly converts lines to CR/LF.  This bash problem
14934  # is reportedly fixed, but why not run on old versions too?
14935  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14936
14937  mv -f "$cfgfile" "$ofile" || \
14938    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14939  chmod +x "$ofile"
14940
14941else
14942  # If there is no Makefile yet, we rely on a make rule to execute
14943  # `config.status --recheck' to rerun these tests and create the
14944  # libtool script then.
14945  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14946  if test -f "$ltmain_in"; then
14947    test -f Makefile && make "$ltmain"
14948  fi
14949fi
14950
14951
14952ac_ext=c
14953ac_cpp='$CPP $CPPFLAGS'
14954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14956ac_compiler_gnu=$ac_cv_c_compiler_gnu
14957
14958CC="$lt_save_CC"
14959
14960
14961# Check whether --with-tags or --without-tags was given.
14962if test "${with_tags+set}" = set; then
14963  withval="$with_tags"
14964  tagnames="$withval"
14965fi;
14966
14967if test -f "$ltmain" && test -n "$tagnames"; then
14968  if test ! -f "${ofile}"; then
14969    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14970echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14971  fi
14972
14973  if test -z "$LTCC"; then
14974    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14975    if test -z "$LTCC"; then
14976      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14977echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14978    else
14979      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14980echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14981    fi
14982  fi
14983
14984  # Extract list of available tagged configurations in $ofile.
14985  # Note that this assumes the entire list is on one line.
14986  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14987
14988  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14989  for tagname in $tagnames; do
14990    IFS="$lt_save_ifs"
14991    # Check whether tagname contains only valid characters
14992    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14993    "") ;;
14994    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14995echo "$as_me: error: invalid tag name: $tagname" >&2;}
14996   { (exit 1); exit 1; }; }
14997	;;
14998    esac
14999
15000    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15001    then
15002      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15003echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15004   { (exit 1); exit 1; }; }
15005    fi
15006
15007    # Update the list of available tags.
15008    if test -n "$tagname"; then
15009      echo appending configuration tag "$tagname" to $ofile
15010
15011      case $tagname in
15012      CXX)
15013	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15014	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15015	    (test "X$CXX" != "Xg++"))) ; then
15016	  ac_ext=cc
15017ac_cpp='$CXXCPP $CPPFLAGS'
15018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15021
15022
15023
15024
15025archive_cmds_need_lc_CXX=no
15026allow_undefined_flag_CXX=
15027always_export_symbols_CXX=no
15028archive_expsym_cmds_CXX=
15029export_dynamic_flag_spec_CXX=
15030hardcode_direct_CXX=no
15031hardcode_libdir_flag_spec_CXX=
15032hardcode_libdir_flag_spec_ld_CXX=
15033hardcode_libdir_separator_CXX=
15034hardcode_minus_L_CXX=no
15035hardcode_automatic_CXX=no
15036module_cmds_CXX=
15037module_expsym_cmds_CXX=
15038link_all_deplibs_CXX=unknown
15039old_archive_cmds_CXX=$old_archive_cmds
15040no_undefined_flag_CXX=
15041whole_archive_flag_spec_CXX=
15042enable_shared_with_static_runtimes_CXX=no
15043
15044# Dependencies to place before and after the object being linked:
15045predep_objects_CXX=
15046postdep_objects_CXX=
15047predeps_CXX=
15048postdeps_CXX=
15049compiler_lib_search_path_CXX=
15050
15051# Source file extension for C++ test sources.
15052ac_ext=cc
15053
15054# Object file extension for compiled C++ test sources.
15055objext=o
15056objext_CXX=$objext
15057
15058# Code to be used in simple compile tests
15059lt_simple_compile_test_code="int some_variable = 0;\n"
15060
15061# Code to be used in simple link tests
15062lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15063
15064# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15065
15066# If no C compiler was specified, use CC.
15067LTCC=${LTCC-"$CC"}
15068
15069# Allow CC to be a program name with arguments.
15070compiler=$CC
15071
15072
15073# Allow CC to be a program name with arguments.
15074lt_save_CC=$CC
15075lt_save_LD=$LD
15076lt_save_GCC=$GCC
15077GCC=$GXX
15078lt_save_with_gnu_ld=$with_gnu_ld
15079lt_save_path_LD=$lt_cv_path_LD
15080if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15081  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15082else
15083  unset lt_cv_prog_gnu_ld
15084fi
15085if test -n "${lt_cv_path_LDCXX+set}"; then
15086  lt_cv_path_LD=$lt_cv_path_LDCXX
15087else
15088  unset lt_cv_path_LD
15089fi
15090test -z "${LDCXX+set}" || LD=$LDCXX
15091CC=${CXX-"c++"}
15092compiler=$CC
15093compiler_CXX=$CC
15094cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15095
15096# We don't want -fno-exception wen compiling C++ code, so set the
15097# no_builtin_flag separately
15098if test "$GXX" = yes; then
15099  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15100else
15101  lt_prog_compiler_no_builtin_flag_CXX=
15102fi
15103
15104if test "$GXX" = yes; then
15105  # Set up default GNU C++ configuration
15106
15107
15108# Check whether --with-gnu-ld or --without-gnu-ld was given.
15109if test "${with_gnu_ld+set}" = set; then
15110  withval="$with_gnu_ld"
15111  test "$withval" = no || with_gnu_ld=yes
15112else
15113  with_gnu_ld=no
15114fi;
15115ac_prog=ld
15116if test "$GCC" = yes; then
15117  # Check if gcc -print-prog-name=ld gives a path.
15118  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15119echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15120  case $host in
15121  *-*-mingw*)
15122    # gcc leaves a trailing carriage return which upsets mingw
15123    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15124  *)
15125    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15126  esac
15127  case $ac_prog in
15128    # Accept absolute paths.
15129    [\\/]* | ?:[\\/]*)
15130      re_direlt='/[^/][^/]*/\.\./'
15131      # Canonicalize the pathname of ld
15132      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15133      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15134	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15135      done
15136      test -z "$LD" && LD="$ac_prog"
15137      ;;
15138  "")
15139    # If it fails, then pretend we aren't using GCC.
15140    ac_prog=ld
15141    ;;
15142  *)
15143    # If it is relative, then search for the first ld in PATH.
15144    with_gnu_ld=unknown
15145    ;;
15146  esac
15147elif test "$with_gnu_ld" = yes; then
15148  echo "$as_me:$LINENO: checking for GNU ld" >&5
15149echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15150else
15151  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15152echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15153fi
15154if test "${lt_cv_path_LD+set}" = set; then
15155  echo $ECHO_N "(cached) $ECHO_C" >&6
15156else
15157  if test -z "$LD"; then
15158  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15159  for ac_dir in $PATH; do
15160    IFS="$lt_save_ifs"
15161    test -z "$ac_dir" && ac_dir=.
15162    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15163      lt_cv_path_LD="$ac_dir/$ac_prog"
15164      # Check to see if the program is GNU ld.  I'd rather use --version,
15165      # but apparently some GNU ld's only accept -v.
15166      # Break only if it was the GNU/non-GNU ld that we prefer.
15167      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15168      *GNU* | *'with BFD'*)
15169	test "$with_gnu_ld" != no && break
15170	;;
15171      *)
15172	test "$with_gnu_ld" != yes && break
15173	;;
15174      esac
15175    fi
15176  done
15177  IFS="$lt_save_ifs"
15178else
15179  lt_cv_path_LD="$LD" # Let the user override the test with a path.
15180fi
15181fi
15182
15183LD="$lt_cv_path_LD"
15184if test -n "$LD"; then
15185  echo "$as_me:$LINENO: result: $LD" >&5
15186echo "${ECHO_T}$LD" >&6
15187else
15188  echo "$as_me:$LINENO: result: no" >&5
15189echo "${ECHO_T}no" >&6
15190fi
15191test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15192echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15193   { (exit 1); exit 1; }; }
15194echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15195echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15196if test "${lt_cv_prog_gnu_ld+set}" = set; then
15197  echo $ECHO_N "(cached) $ECHO_C" >&6
15198else
15199  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15200case `$LD -v 2>&1 </dev/null` in
15201*GNU* | *'with BFD'*)
15202  lt_cv_prog_gnu_ld=yes
15203  ;;
15204*)
15205  lt_cv_prog_gnu_ld=no
15206  ;;
15207esac
15208fi
15209echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15210echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15211with_gnu_ld=$lt_cv_prog_gnu_ld
15212
15213
15214
15215  # Check if GNU C++ uses GNU ld as the underlying linker, since the
15216  # archiving commands below assume that GNU ld is being used.
15217  if test "$with_gnu_ld" = yes; then
15218    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15219    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'
15220
15221    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15222    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15223
15224    # If archive_cmds runs LD, not CC, wlarc should be empty
15225    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15226    #     investigate it a little bit more. (MM)
15227    wlarc='${wl}'
15228
15229    # ancient GNU ld didn't support --whole-archive et. al.
15230    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15231	grep 'no-whole-archive' > /dev/null; then
15232      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15233    else
15234      whole_archive_flag_spec_CXX=
15235    fi
15236  else
15237    with_gnu_ld=no
15238    wlarc=
15239
15240    # A generic and very simple default shared library creation
15241    # command for GNU C++ for the case where it uses the native
15242    # linker, instead of GNU ld.  If possible, this setting should
15243    # overridden to take advantage of the native linker features on
15244    # the platform it is being used on.
15245    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15246  fi
15247
15248  # Commands to make compiler produce verbose output that lists
15249  # what "hidden" libraries, object files and flags are used when
15250  # linking a shared library.
15251  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15252
15253else
15254  GXX=no
15255  with_gnu_ld=no
15256  wlarc=
15257fi
15258
15259# PORTME: fill in a description of your system's C++ link characteristics
15260echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15261echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15262ld_shlibs_CXX=yes
15263case $host_os in
15264  aix3*)
15265    # FIXME: insert proper C++ library support
15266    ld_shlibs_CXX=no
15267    ;;
15268  aix4* | aix5*)
15269    if test "$host_cpu" = ia64; then
15270      # On IA64, the linker does run time linking by default, so we don't
15271      # have to do anything special.
15272      aix_use_runtimelinking=no
15273      exp_sym_flag='-Bexport'
15274      no_entry_flag=""
15275    else
15276      aix_use_runtimelinking=no
15277
15278      # Test if we are trying to use run time linking or normal
15279      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15280      # need to do runtime linking.
15281      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15282	for ld_flag in $LDFLAGS; do
15283	  case $ld_flag in
15284	  *-brtl*)
15285	    aix_use_runtimelinking=yes
15286	    break
15287	    ;;
15288	  esac
15289	done
15290      esac
15291
15292      exp_sym_flag='-bexport'
15293      no_entry_flag='-bnoentry'
15294    fi
15295
15296    # When large executables or shared objects are built, AIX ld can
15297    # have problems creating the table of contents.  If linking a library
15298    # or program results in "error TOC overflow" add -mminimal-toc to
15299    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15300    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15301
15302    archive_cmds_CXX=''
15303    hardcode_direct_CXX=yes
15304    hardcode_libdir_separator_CXX=':'
15305    link_all_deplibs_CXX=yes
15306
15307    if test "$GXX" = yes; then
15308      case $host_os in aix4.012|aix4.012.*)
15309      # We only want to do this on AIX 4.2 and lower, the check
15310      # below for broken collect2 doesn't work under 4.3+
15311	collect2name=`${CC} -print-prog-name=collect2`
15312	if test -f "$collect2name" && \
15313	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15314	then
15315	  # We have reworked collect2
15316	  hardcode_direct_CXX=yes
15317	else
15318	  # We have old collect2
15319	  hardcode_direct_CXX=unsupported
15320	  # It fails to find uninstalled libraries when the uninstalled
15321	  # path is not listed in the libpath.  Setting hardcode_minus_L
15322	  # to unsupported forces relinking
15323	  hardcode_minus_L_CXX=yes
15324	  hardcode_libdir_flag_spec_CXX='-L$libdir'
15325	  hardcode_libdir_separator_CXX=
15326	fi
15327      esac
15328      shared_flag='-shared'
15329    else
15330      # not using gcc
15331      if test "$host_cpu" = ia64; then
15332	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15333	# chokes on -Wl,-G. The following line is correct:
15334	shared_flag='-G'
15335      else
15336	if test "$aix_use_runtimelinking" = yes; then
15337	  shared_flag='${wl}-G'
15338	else
15339	  shared_flag='${wl}-bM:SRE'
15340	fi
15341      fi
15342    fi
15343
15344    # It seems that -bexpall does not export symbols beginning with
15345    # underscore (_), so it is better to generate a list of symbols to export.
15346    always_export_symbols_CXX=yes
15347    if test "$aix_use_runtimelinking" = yes; then
15348      # Warning - without using the other runtime loading flags (-brtl),
15349      # -berok will link without error, but may produce a broken library.
15350      allow_undefined_flag_CXX='-berok'
15351      # Determine the default libpath from the value encoded in an empty executable.
15352      cat >conftest.$ac_ext <<_ACEOF
15353/* confdefs.h.  */
15354_ACEOF
15355cat confdefs.h >>conftest.$ac_ext
15356cat >>conftest.$ac_ext <<_ACEOF
15357/* end confdefs.h.  */
15358
15359int
15360main ()
15361{
15362
15363  ;
15364  return 0;
15365}
15366_ACEOF
15367rm -f conftest.$ac_objext conftest$ac_exeext
15368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15369  (eval $ac_link) 2>conftest.er1
15370  ac_status=$?
15371  grep -v '^ *+' conftest.er1 >conftest.err
15372  rm -f conftest.er1
15373  cat conftest.err >&5
15374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375  (exit $ac_status); } &&
15376	 { ac_try='test -z "$ac_cxx_werror_flag"
15377			 || test ! -s conftest.err'
15378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379  (eval $ac_try) 2>&5
15380  ac_status=$?
15381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382  (exit $ac_status); }; } &&
15383	 { ac_try='test -s conftest$ac_exeext'
15384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385  (eval $ac_try) 2>&5
15386  ac_status=$?
15387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388  (exit $ac_status); }; }; then
15389
15390aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15391}'`
15392# Check for a 64-bit object if we didn't find anything.
15393if 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; }
15394}'`; fi
15395else
15396  echo "$as_me: failed program was:" >&5
15397sed 's/^/| /' conftest.$ac_ext >&5
15398
15399fi
15400rm -f conftest.err conftest.$ac_objext \
15401      conftest$ac_exeext conftest.$ac_ext
15402if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15403
15404      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15405
15406      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"
15407     else
15408      if test "$host_cpu" = ia64; then
15409	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15410	allow_undefined_flag_CXX="-z nodefs"
15411	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"
15412      else
15413	# Determine the default libpath from the value encoded in an empty executable.
15414	cat >conftest.$ac_ext <<_ACEOF
15415/* confdefs.h.  */
15416_ACEOF
15417cat confdefs.h >>conftest.$ac_ext
15418cat >>conftest.$ac_ext <<_ACEOF
15419/* end confdefs.h.  */
15420
15421int
15422main ()
15423{
15424
15425  ;
15426  return 0;
15427}
15428_ACEOF
15429rm -f conftest.$ac_objext conftest$ac_exeext
15430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15431  (eval $ac_link) 2>conftest.er1
15432  ac_status=$?
15433  grep -v '^ *+' conftest.er1 >conftest.err
15434  rm -f conftest.er1
15435  cat conftest.err >&5
15436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437  (exit $ac_status); } &&
15438	 { ac_try='test -z "$ac_cxx_werror_flag"
15439			 || test ! -s conftest.err'
15440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441  (eval $ac_try) 2>&5
15442  ac_status=$?
15443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444  (exit $ac_status); }; } &&
15445	 { ac_try='test -s conftest$ac_exeext'
15446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447  (eval $ac_try) 2>&5
15448  ac_status=$?
15449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450  (exit $ac_status); }; }; then
15451
15452aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15453}'`
15454# Check for a 64-bit object if we didn't find anything.
15455if 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; }
15456}'`; fi
15457else
15458  echo "$as_me: failed program was:" >&5
15459sed 's/^/| /' conftest.$ac_ext >&5
15460
15461fi
15462rm -f conftest.err conftest.$ac_objext \
15463      conftest$ac_exeext conftest.$ac_ext
15464if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15465
15466	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15467	# Warning - without using the other run time loading flags,
15468	# -berok will link without error, but may produce a broken library.
15469	no_undefined_flag_CXX=' ${wl}-bernotok'
15470	allow_undefined_flag_CXX=' ${wl}-berok'
15471	# -bexpall does not export symbols beginning with underscore (_)
15472	always_export_symbols_CXX=yes
15473	# Exported symbols can be pulled into shared objects from archives
15474	whole_archive_flag_spec_CXX=' '
15475	archive_cmds_need_lc_CXX=yes
15476	# This is similar to how AIX traditionally builds it's shared libraries.
15477	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'
15478      fi
15479    fi
15480    ;;
15481  chorus*)
15482    case $cc_basename in
15483      *)
15484	# FIXME: insert proper C++ library support
15485	ld_shlibs_CXX=no
15486	;;
15487    esac
15488    ;;
15489
15490
15491  cygwin* | mingw* | pw32*)
15492    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15493    # as there is no search path for DLLs.
15494    hardcode_libdir_flag_spec_CXX='-L$libdir'
15495    allow_undefined_flag_CXX=unsupported
15496    always_export_symbols_CXX=no
15497    enable_shared_with_static_runtimes_CXX=yes
15498
15499    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15500      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'
15501      # If the export-symbols file already is a .def file (1st line
15502      # is EXPORTS), use it as is; otherwise, prepend...
15503      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15504	cp $export_symbols $output_objdir/$soname.def;
15505      else
15506	echo EXPORTS > $output_objdir/$soname.def;
15507	cat $export_symbols >> $output_objdir/$soname.def;
15508      fi~
15509      $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'
15510    else
15511      ld_shlibs_CXX=no
15512    fi
15513  ;;
15514      darwin* | rhapsody*)
15515        case "$host_os" in
15516        rhapsody* | darwin1.[012])
15517         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15518         ;;
15519       *) # Darwin 1.3 on
15520         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15521           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15522         else
15523           case ${MACOSX_DEPLOYMENT_TARGET} in
15524             10.[012])
15525               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15526               ;;
15527             10.*)
15528               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15529               ;;
15530           esac
15531         fi
15532         ;;
15533        esac
15534      archive_cmds_need_lc_CXX=no
15535      hardcode_direct_CXX=no
15536      hardcode_automatic_CXX=yes
15537      hardcode_shlibpath_var_CXX=unsupported
15538      whole_archive_flag_spec_CXX=''
15539      link_all_deplibs_CXX=yes
15540
15541    if test "$GXX" = yes ; then
15542      lt_int_apple_cc_single_mod=no
15543      output_verbose_link_cmd='echo'
15544      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15545       lt_int_apple_cc_single_mod=yes
15546      fi
15547      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15548       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15549      else
15550          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'
15551        fi
15552        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15553        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15554          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15555            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}'
15556          else
15557            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}'
15558          fi
15559            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}'
15560      else
15561      case "$cc_basename" in
15562        xlc*)
15563         output_verbose_link_cmd='echo'
15564          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'
15565          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15566          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15567          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}'
15568          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15569          ;;
15570       *)
15571         ld_shlibs_CXX=no
15572          ;;
15573      esac
15574      fi
15575        ;;
15576
15577  dgux*)
15578    case $cc_basename in
15579      ec++)
15580	# FIXME: insert proper C++ library support
15581	ld_shlibs_CXX=no
15582	;;
15583      ghcx)
15584	# Green Hills C++ Compiler
15585	# FIXME: insert proper C++ library support
15586	ld_shlibs_CXX=no
15587	;;
15588      *)
15589	# FIXME: insert proper C++ library support
15590	ld_shlibs_CXX=no
15591	;;
15592    esac
15593    ;;
15594  freebsd12*)
15595    # C++ shared libraries reported to be fairly broken before switch to ELF
15596    ld_shlibs_CXX=no
15597    ;;
15598  freebsd-elf*)
15599    archive_cmds_need_lc_CXX=no
15600    ;;
15601  freebsd* | kfreebsd*-gnu)
15602    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15603    # conventions
15604    ld_shlibs_CXX=yes
15605    ;;
15606  gnu*)
15607    ;;
15608  hpux9*)
15609    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15610    hardcode_libdir_separator_CXX=:
15611    export_dynamic_flag_spec_CXX='${wl}-E'
15612    hardcode_direct_CXX=yes
15613    hardcode_minus_L_CXX=yes # Not in the search PATH,
15614				# but as the default
15615				# location of the library.
15616
15617    case $cc_basename in
15618    CC)
15619      # FIXME: insert proper C++ library support
15620      ld_shlibs_CXX=no
15621      ;;
15622    aCC)
15623      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'
15624      # Commands to make compiler produce verbose output that lists
15625      # what "hidden" libraries, object files and flags are used when
15626      # linking a shared library.
15627      #
15628      # There doesn't appear to be a way to prevent this compiler from
15629      # explicitly linking system object files so we need to strip them
15630      # from the output so that they don't get included in the library
15631      # dependencies.
15632      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'
15633      ;;
15634    *)
15635      if test "$GXX" = yes; then
15636        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'
15637      else
15638        # FIXME: insert proper C++ library support
15639        ld_shlibs_CXX=no
15640      fi
15641      ;;
15642    esac
15643    ;;
15644  hpux10*|hpux11*)
15645    if test $with_gnu_ld = no; then
15646      case "$host_cpu" in
15647      hppa*64*)
15648	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15649	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15650	hardcode_libdir_separator_CXX=:
15651        ;;
15652      ia64*)
15653	hardcode_libdir_flag_spec_CXX='-L$libdir'
15654        ;;
15655      *)
15656	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15657	hardcode_libdir_separator_CXX=:
15658	export_dynamic_flag_spec_CXX='${wl}-E'
15659        ;;
15660      esac
15661    fi
15662    case "$host_cpu" in
15663    hppa*64*)
15664      hardcode_direct_CXX=no
15665      hardcode_shlibpath_var_CXX=no
15666      ;;
15667    ia64*)
15668      hardcode_direct_CXX=no
15669      hardcode_shlibpath_var_CXX=no
15670      hardcode_minus_L_CXX=yes # Not in the search PATH,
15671					      # but as the default
15672					      # location of the library.
15673      ;;
15674    *)
15675      hardcode_direct_CXX=yes
15676      hardcode_minus_L_CXX=yes # Not in the search PATH,
15677					      # but as the default
15678					      # location of the library.
15679      ;;
15680    esac
15681
15682    case $cc_basename in
15683      CC)
15684	# FIXME: insert proper C++ library support
15685	ld_shlibs_CXX=no
15686	;;
15687      aCC)
15688	case "$host_cpu" in
15689	hppa*64*|ia64*)
15690	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15691	  ;;
15692	*)
15693	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15694	  ;;
15695	esac
15696	# Commands to make compiler produce verbose output that lists
15697	# what "hidden" libraries, object files and flags are used when
15698	# linking a shared library.
15699	#
15700	# There doesn't appear to be a way to prevent this compiler from
15701	# explicitly linking system object files so we need to strip them
15702	# from the output so that they don't get included in the library
15703	# dependencies.
15704	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'
15705	;;
15706      *)
15707	if test "$GXX" = yes; then
15708	  if test $with_gnu_ld = no; then
15709	    case "$host_cpu" in
15710	    ia64*|hppa*64*)
15711	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15712	      ;;
15713	    *)
15714	      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'
15715	      ;;
15716	    esac
15717	  fi
15718	else
15719	  # FIXME: insert proper C++ library support
15720	  ld_shlibs_CXX=no
15721	fi
15722	;;
15723    esac
15724    ;;
15725  irix5* | irix6*)
15726    case $cc_basename in
15727      CC)
15728	# SGI C++
15729	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'
15730
15731	# Archives containing C++ object files must be created using
15732	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15733	# necessary to make sure instantiated templates are included
15734	# in the archive.
15735	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15736	;;
15737      *)
15738	if test "$GXX" = yes; then
15739	  if test "$with_gnu_ld" = no; then
15740	    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'
15741	  else
15742	    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'
15743	  fi
15744	fi
15745	link_all_deplibs_CXX=yes
15746	;;
15747    esac
15748    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15749    hardcode_libdir_separator_CXX=:
15750    ;;
15751  linux*)
15752    case $cc_basename in
15753      KCC)
15754	# Kuck and Associates, Inc. (KAI) C++ Compiler
15755
15756	# KCC will only create a shared library if the output file
15757	# ends with ".so" (or ".sl" for HP-UX), so rename the library
15758	# to its proper name (with version) after linking.
15759	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'
15760	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'
15761	# Commands to make compiler produce verbose output that lists
15762	# what "hidden" libraries, object files and flags are used when
15763	# linking a shared library.
15764	#
15765	# There doesn't appear to be a way to prevent this compiler from
15766	# explicitly linking system object files so we need to strip them
15767	# from the output so that they don't get included in the library
15768	# dependencies.
15769	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'
15770
15771	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15772	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15773
15774	# Archives containing C++ object files must be created using
15775	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
15776	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15777	;;
15778      icpc)
15779	# Intel C++
15780	with_gnu_ld=yes
15781	# version 8.0 and above of icpc choke on multiply defined symbols
15782	# if we add $predep_objects and $postdep_objects, however 7.1 and
15783	# earlier do not add the objects themselves.
15784	case `$CC -V 2>&1` in
15785	*"Version 7."*)
15786  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15787  	  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'
15788	  ;;
15789	*)  # Version 8.0 or newer
15790  	  archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15791  	archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15792	  ;;
15793	esac
15794	archive_cmds_need_lc_CXX=no
15795	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15796	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15797	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15798	;;
15799      cxx)
15800	# Compaq C++
15801	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15802	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'
15803
15804	runpath_var=LD_RUN_PATH
15805	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15806	hardcode_libdir_separator_CXX=:
15807
15808	# Commands to make compiler produce verbose output that lists
15809	# what "hidden" libraries, object files and flags are used when
15810	# linking a shared library.
15811	#
15812	# There doesn't appear to be a way to prevent this compiler from
15813	# explicitly linking system object files so we need to strip them
15814	# from the output so that they don't get included in the library
15815	# dependencies.
15816	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'
15817	;;
15818    esac
15819    ;;
15820  lynxos*)
15821    # FIXME: insert proper C++ library support
15822    ld_shlibs_CXX=no
15823    ;;
15824  m88k*)
15825    # FIXME: insert proper C++ library support
15826    ld_shlibs_CXX=no
15827    ;;
15828  mvs*)
15829    case $cc_basename in
15830      cxx)
15831	# FIXME: insert proper C++ library support
15832	ld_shlibs_CXX=no
15833	;;
15834      *)
15835	# FIXME: insert proper C++ library support
15836	ld_shlibs_CXX=no
15837	;;
15838    esac
15839    ;;
15840  netbsd*)
15841    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15842      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15843      wlarc=
15844      hardcode_libdir_flag_spec_CXX='-R$libdir'
15845      hardcode_direct_CXX=yes
15846      hardcode_shlibpath_var_CXX=no
15847    fi
15848    # Workaround some broken pre-1.5 toolchains
15849    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15850    ;;
15851  openbsd2*)
15852    # C++ shared libraries are fairly broken
15853    ld_shlibs_CXX=no
15854    ;;
15855  openbsd*)
15856    hardcode_direct_CXX=yes
15857    hardcode_shlibpath_var_CXX=no
15858    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15859    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15860    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15861      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15862      export_dynamic_flag_spec_CXX='${wl}-E'
15863      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15864    fi
15865    output_verbose_link_cmd='echo'
15866    ;;
15867  osf3*)
15868    case $cc_basename in
15869      KCC)
15870	# Kuck and Associates, Inc. (KAI) C++ Compiler
15871
15872	# KCC will only create a shared library if the output file
15873	# ends with ".so" (or ".sl" for HP-UX), so rename the library
15874	# to its proper name (with version) after linking.
15875	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'
15876
15877	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15878	hardcode_libdir_separator_CXX=:
15879
15880	# Archives containing C++ object files must be created using
15881	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
15882	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15883
15884	;;
15885      RCC)
15886	# Rational C++ 2.4.1
15887	# FIXME: insert proper C++ library support
15888	ld_shlibs_CXX=no
15889	;;
15890      cxx)
15891	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15892	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'
15893
15894	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15895	hardcode_libdir_separator_CXX=:
15896
15897	# Commands to make compiler produce verbose output that lists
15898	# what "hidden" libraries, object files and flags are used when
15899	# linking a shared library.
15900	#
15901	# There doesn't appear to be a way to prevent this compiler from
15902	# explicitly linking system object files so we need to strip them
15903	# from the output so that they don't get included in the library
15904	# dependencies.
15905	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'
15906	;;
15907      *)
15908	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15909	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15910	  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'
15911
15912	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15913	  hardcode_libdir_separator_CXX=:
15914
15915	  # Commands to make compiler produce verbose output that lists
15916	  # what "hidden" libraries, object files and flags are used when
15917	  # linking a shared library.
15918	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15919
15920	else
15921	  # FIXME: insert proper C++ library support
15922	  ld_shlibs_CXX=no
15923	fi
15924	;;
15925    esac
15926    ;;
15927  osf4* | osf5*)
15928    case $cc_basename in
15929      KCC)
15930	# Kuck and Associates, Inc. (KAI) C++ Compiler
15931
15932	# KCC will only create a shared library if the output file
15933	# ends with ".so" (or ".sl" for HP-UX), so rename the library
15934	# to its proper name (with version) after linking.
15935	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'
15936
15937	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15938	hardcode_libdir_separator_CXX=:
15939
15940	# Archives containing C++ object files must be created using
15941	# the KAI C++ compiler.
15942	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15943	;;
15944      RCC)
15945	# Rational C++ 2.4.1
15946	# FIXME: insert proper C++ library support
15947	ld_shlibs_CXX=no
15948	;;
15949      cxx)
15950	allow_undefined_flag_CXX=' -expect_unresolved \*'
15951	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'
15952	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15953	  echo "-hidden">> $lib.exp~
15954	  $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~
15955	  $rm $lib.exp'
15956
15957	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15958	hardcode_libdir_separator_CXX=:
15959
15960	# Commands to make compiler produce verbose output that lists
15961	# what "hidden" libraries, object files and flags are used when
15962	# linking a shared library.
15963	#
15964	# There doesn't appear to be a way to prevent this compiler from
15965	# explicitly linking system object files so we need to strip them
15966	# from the output so that they don't get included in the library
15967	# dependencies.
15968	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'
15969	;;
15970      *)
15971	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15972	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15973	 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'
15974
15975	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15976	  hardcode_libdir_separator_CXX=:
15977
15978	  # Commands to make compiler produce verbose output that lists
15979	  # what "hidden" libraries, object files and flags are used when
15980	  # linking a shared library.
15981	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15982
15983	else
15984	  # FIXME: insert proper C++ library support
15985	  ld_shlibs_CXX=no
15986	fi
15987	;;
15988    esac
15989    ;;
15990  psos*)
15991    # FIXME: insert proper C++ library support
15992    ld_shlibs_CXX=no
15993    ;;
15994  sco*)
15995    archive_cmds_need_lc_CXX=no
15996    case $cc_basename in
15997      CC)
15998	# FIXME: insert proper C++ library support
15999	ld_shlibs_CXX=no
16000	;;
16001      *)
16002	# FIXME: insert proper C++ library support
16003	ld_shlibs_CXX=no
16004	;;
16005    esac
16006    ;;
16007  sunos4*)
16008    case $cc_basename in
16009      CC)
16010	# Sun C++ 4.x
16011	# FIXME: insert proper C++ library support
16012	ld_shlibs_CXX=no
16013	;;
16014      lcc)
16015	# Lucid
16016	# FIXME: insert proper C++ library support
16017	ld_shlibs_CXX=no
16018	;;
16019      *)
16020	# FIXME: insert proper C++ library support
16021	ld_shlibs_CXX=no
16022	;;
16023    esac
16024    ;;
16025  solaris*)
16026    case $cc_basename in
16027      CC)
16028	# Sun C++ 4.2, 5.x and Centerline C++
16029	no_undefined_flag_CXX=' -zdefs'
16030	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16031	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16032	$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'
16033
16034	hardcode_libdir_flag_spec_CXX='-R$libdir'
16035	hardcode_shlibpath_var_CXX=no
16036	case $host_os in
16037	  solaris2.0-5 | solaris2.0-5.*) ;;
16038	  *)
16039	    # The C++ compiler is used as linker so we must use $wl
16040	    # flag to pass the commands to the underlying system
16041	    # linker.
16042	    # Supported since Solaris 2.6 (maybe 2.5.1?)
16043	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16044	    ;;
16045	esac
16046	link_all_deplibs_CXX=yes
16047
16048	# Commands to make compiler produce verbose output that lists
16049	# what "hidden" libraries, object files and flags are used when
16050	# linking a shared library.
16051	#
16052	# There doesn't appear to be a way to prevent this compiler from
16053	# explicitly linking system object files so we need to strip them
16054	# from the output so that they don't get included in the library
16055	# dependencies.
16056	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'
16057
16058	# Archives containing C++ object files must be created using
16059	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
16060	# necessary to make sure instantiated templates are included
16061	# in the archive.
16062	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16063	;;
16064      gcx)
16065	# Green Hills C++ Compiler
16066	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16067
16068	# The C++ compiler must be used to create the archive.
16069	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16070	;;
16071      *)
16072	# GNU C++ compiler with Solaris linker
16073	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16074	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16075	  if $CC --version | grep -v '^2\.7' > /dev/null; then
16076	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16077	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16078		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16079
16080	    # Commands to make compiler produce verbose output that lists
16081	    # what "hidden" libraries, object files and flags are used when
16082	    # linking a shared library.
16083	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16084	  else
16085	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
16086	    # platform.
16087	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16088	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16089		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16090
16091	    # Commands to make compiler produce verbose output that lists
16092	    # what "hidden" libraries, object files and flags are used when
16093	    # linking a shared library.
16094	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16095	  fi
16096
16097	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16098	fi
16099	;;
16100    esac
16101    ;;
16102  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16103    archive_cmds_need_lc_CXX=no
16104    ;;
16105  tandem*)
16106    case $cc_basename in
16107      NCC)
16108	# NonStop-UX NCC 3.20
16109	# FIXME: insert proper C++ library support
16110	ld_shlibs_CXX=no
16111	;;
16112      *)
16113	# FIXME: insert proper C++ library support
16114	ld_shlibs_CXX=no
16115	;;
16116    esac
16117    ;;
16118  vxworks*)
16119    # FIXME: insert proper C++ library support
16120    ld_shlibs_CXX=no
16121    ;;
16122  *)
16123    # FIXME: insert proper C++ library support
16124    ld_shlibs_CXX=no
16125    ;;
16126esac
16127echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16128echo "${ECHO_T}$ld_shlibs_CXX" >&6
16129test "$ld_shlibs_CXX" = no && can_build_shared=no
16130
16131GCC_CXX="$GXX"
16132LD_CXX="$LD"
16133
16134
16135cat > conftest.$ac_ext <<EOF
16136class Foo
16137{
16138public:
16139  Foo (void) { a = 0; }
16140private:
16141  int a;
16142};
16143EOF
16144
16145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16146  (eval $ac_compile) 2>&5
16147  ac_status=$?
16148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149  (exit $ac_status); }; then
16150  # Parse the compiler output and extract the necessary
16151  # objects, libraries and library flags.
16152
16153  # Sentinel used to keep track of whether or not we are before
16154  # the conftest object file.
16155  pre_test_object_deps_done=no
16156
16157  # The `*' in the case matches for architectures that use `case' in
16158  # $output_verbose_cmd can trigger glob expansion during the loop
16159  # eval without this substitution.
16160  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16161
16162  for p in `eval $output_verbose_link_cmd`; do
16163    case $p in
16164
16165    -L* | -R* | -l*)
16166       # Some compilers place space between "-{L,R}" and the path.
16167       # Remove the space.
16168       if test $p = "-L" \
16169	  || test $p = "-R"; then
16170	 prev=$p
16171	 continue
16172       else
16173	 prev=
16174       fi
16175
16176       if test "$pre_test_object_deps_done" = no; then
16177	 case $p in
16178	 -L* | -R*)
16179	   # Internal compiler library paths should come after those
16180	   # provided the user.  The postdeps already come after the
16181	   # user supplied libs so there is no need to process them.
16182	   if test -z "$compiler_lib_search_path_CXX"; then
16183	     compiler_lib_search_path_CXX="${prev}${p}"
16184	   else
16185	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16186	   fi
16187	   ;;
16188	 # The "-l" case would never come before the object being
16189	 # linked, so don't bother handling this case.
16190	 esac
16191       else
16192	 if test -z "$postdeps_CXX"; then
16193	   postdeps_CXX="${prev}${p}"
16194	 else
16195	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16196	 fi
16197       fi
16198       ;;
16199
16200    *.$objext)
16201       # This assumes that the test object file only shows up
16202       # once in the compiler output.
16203       if test "$p" = "conftest.$objext"; then
16204	 pre_test_object_deps_done=yes
16205	 continue
16206       fi
16207
16208       if test "$pre_test_object_deps_done" = no; then
16209	 if test -z "$predep_objects_CXX"; then
16210	   predep_objects_CXX="$p"
16211	 else
16212	   predep_objects_CXX="$predep_objects_CXX $p"
16213	 fi
16214       else
16215	 if test -z "$postdep_objects_CXX"; then
16216	   postdep_objects_CXX="$p"
16217	 else
16218	   postdep_objects_CXX="$postdep_objects_CXX $p"
16219	 fi
16220       fi
16221       ;;
16222
16223    *) ;; # Ignore the rest.
16224
16225    esac
16226  done
16227
16228  # Clean up.
16229  rm -f a.out a.exe
16230else
16231  echo "libtool.m4: error: problem compiling CXX test program"
16232fi
16233
16234$rm -f confest.$objext
16235
16236case " $postdeps_CXX " in
16237*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16238esac
16239
16240lt_prog_compiler_wl_CXX=
16241lt_prog_compiler_pic_CXX=
16242lt_prog_compiler_static_CXX=
16243
16244echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16245echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16246
16247  # C++ specific cases for pic, static, wl, etc.
16248  if test "$GXX" = yes; then
16249    lt_prog_compiler_wl_CXX='-Wl,'
16250    lt_prog_compiler_static_CXX='-static'
16251
16252    case $host_os in
16253    aix*)
16254      # All AIX code is PIC.
16255      if test "$host_cpu" = ia64; then
16256	# AIX 5 now supports IA64 processor
16257	lt_prog_compiler_static_CXX='-Bstatic'
16258      fi
16259      ;;
16260    amigaos*)
16261      # FIXME: we need at least 68020 code to build shared libraries, but
16262      # adding the `-m68020' flag to GCC prevents building anything better,
16263      # like `-m68040'.
16264      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16265      ;;
16266    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16267      # PIC is the default for these OSes.
16268      ;;
16269    mingw* | os2* | pw32*)
16270      # This hack is so that the source file can tell whether it is being
16271      # built for inclusion in a dll (and should export symbols for example).
16272      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16273      ;;
16274    darwin* | rhapsody*)
16275      # PIC is the default on this platform
16276      # Common symbols not allowed in MH_DYLIB files
16277      lt_prog_compiler_pic_CXX='-fno-common'
16278      ;;
16279    *djgpp*)
16280      # DJGPP does not support shared libraries at all
16281      lt_prog_compiler_pic_CXX=
16282      ;;
16283    sysv4*MP*)
16284      if test -d /usr/nec; then
16285	lt_prog_compiler_pic_CXX=-Kconform_pic
16286      fi
16287      ;;
16288    hpux*)
16289      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16290      # not for PA HP-UX.
16291      case "$host_cpu" in
16292      hppa*64*|ia64*)
16293	;;
16294      *)
16295	lt_prog_compiler_pic_CXX='-fPIC'
16296	;;
16297      esac
16298      ;;
16299    *)
16300      lt_prog_compiler_pic_CXX='-fPIC'
16301      ;;
16302    esac
16303  else
16304    case $host_os in
16305      aix4* | aix5*)
16306	# All AIX code is PIC.
16307	if test "$host_cpu" = ia64; then
16308	  # AIX 5 now supports IA64 processor
16309	  lt_prog_compiler_static_CXX='-Bstatic'
16310	else
16311	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16312	fi
16313	;;
16314      chorus*)
16315	case $cc_basename in
16316	cxch68)
16317	  # Green Hills C++ Compiler
16318	  # _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"
16319	  ;;
16320	esac
16321	;;
16322       darwin*)
16323         # PIC is the default on this platform
16324         # Common symbols not allowed in MH_DYLIB files
16325         case "$cc_basename" in
16326           xlc*)
16327           lt_prog_compiler_pic_CXX='-qnocommon'
16328           lt_prog_compiler_wl_CXX='-Wl,'
16329           ;;
16330         esac
16331       ;;
16332      dgux*)
16333	case $cc_basename in
16334	  ec++)
16335	    lt_prog_compiler_pic_CXX='-KPIC'
16336	    ;;
16337	  ghcx)
16338	    # Green Hills C++ Compiler
16339	    lt_prog_compiler_pic_CXX='-pic'
16340	    ;;
16341	  *)
16342	    ;;
16343	esac
16344	;;
16345      freebsd* | kfreebsd*-gnu)
16346	# FreeBSD uses GNU C++
16347	;;
16348      hpux9* | hpux10* | hpux11*)
16349	case $cc_basename in
16350	  CC)
16351	    lt_prog_compiler_wl_CXX='-Wl,'
16352	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16353	    if test "$host_cpu" != ia64; then
16354	      lt_prog_compiler_pic_CXX='+Z'
16355	    fi
16356	    ;;
16357	  aCC)
16358	    lt_prog_compiler_wl_CXX='-Wl,'
16359	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16360	    case "$host_cpu" in
16361	    hppa*64*|ia64*)
16362	      # +Z the default
16363	      ;;
16364	    *)
16365	      lt_prog_compiler_pic_CXX='+Z'
16366	      ;;
16367	    esac
16368	    ;;
16369	  *)
16370	    ;;
16371	esac
16372	;;
16373      irix5* | irix6* | nonstopux*)
16374	case $cc_basename in
16375	  CC)
16376	    lt_prog_compiler_wl_CXX='-Wl,'
16377	    lt_prog_compiler_static_CXX='-non_shared'
16378	    # CC pic flag -KPIC is the default.
16379	    ;;
16380	  *)
16381	    ;;
16382	esac
16383	;;
16384      linux*)
16385	case $cc_basename in
16386	  KCC)
16387	    # KAI C++ Compiler
16388	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16389	    lt_prog_compiler_pic_CXX='-fPIC'
16390	    ;;
16391	  icpc)
16392	    # Intel C++
16393	    lt_prog_compiler_wl_CXX='-Wl,'
16394	    lt_prog_compiler_pic_CXX='-KPIC'
16395	    lt_prog_compiler_static_CXX='-static'
16396	    ;;
16397	  cxx)
16398	    # Compaq C++
16399	    # Make sure the PIC flag is empty.  It appears that all Alpha
16400	    # Linux and Compaq Tru64 Unix objects are PIC.
16401	    lt_prog_compiler_pic_CXX=
16402	    lt_prog_compiler_static_CXX='-non_shared'
16403	    ;;
16404	  *)
16405	    ;;
16406	esac
16407	;;
16408      lynxos*)
16409	;;
16410      m88k*)
16411	;;
16412      mvs*)
16413	case $cc_basename in
16414	  cxx)
16415	    lt_prog_compiler_pic_CXX='-W c,exportall'
16416	    ;;
16417	  *)
16418	    ;;
16419	esac
16420	;;
16421      netbsd*)
16422	;;
16423      osf3* | osf4* | osf5*)
16424	case $cc_basename in
16425	  KCC)
16426	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16427	    ;;
16428	  RCC)
16429	    # Rational C++ 2.4.1
16430	    lt_prog_compiler_pic_CXX='-pic'
16431	    ;;
16432	  cxx)
16433	    # Digital/Compaq C++
16434	    lt_prog_compiler_wl_CXX='-Wl,'
16435	    # Make sure the PIC flag is empty.  It appears that all Alpha
16436	    # Linux and Compaq Tru64 Unix objects are PIC.
16437	    lt_prog_compiler_pic_CXX=
16438	    lt_prog_compiler_static_CXX='-non_shared'
16439	    ;;
16440	  *)
16441	    ;;
16442	esac
16443	;;
16444      psos*)
16445	;;
16446      sco*)
16447	case $cc_basename in
16448	  CC)
16449	    lt_prog_compiler_pic_CXX='-fPIC'
16450	    ;;
16451	  *)
16452	    ;;
16453	esac
16454	;;
16455      solaris*)
16456	case $cc_basename in
16457	  CC)
16458	    # Sun C++ 4.2, 5.x and Centerline C++
16459	    lt_prog_compiler_pic_CXX='-KPIC'
16460	    lt_prog_compiler_static_CXX='-Bstatic'
16461	    lt_prog_compiler_wl_CXX='-Qoption ld '
16462	    ;;
16463	  gcx)
16464	    # Green Hills C++ Compiler
16465	    lt_prog_compiler_pic_CXX='-PIC'
16466	    ;;
16467	  *)
16468	    ;;
16469	esac
16470	;;
16471      sunos4*)
16472	case $cc_basename in
16473	  CC)
16474	    # Sun C++ 4.x
16475	    lt_prog_compiler_pic_CXX='-pic'
16476	    lt_prog_compiler_static_CXX='-Bstatic'
16477	    ;;
16478	  lcc)
16479	    # Lucid
16480	    lt_prog_compiler_pic_CXX='-pic'
16481	    ;;
16482	  *)
16483	    ;;
16484	esac
16485	;;
16486      tandem*)
16487	case $cc_basename in
16488	  NCC)
16489	    # NonStop-UX NCC 3.20
16490	    lt_prog_compiler_pic_CXX='-KPIC'
16491	    ;;
16492	  *)
16493	    ;;
16494	esac
16495	;;
16496      unixware*)
16497	;;
16498      vxworks*)
16499	;;
16500      *)
16501	lt_prog_compiler_can_build_shared_CXX=no
16502	;;
16503    esac
16504  fi
16505
16506echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16507echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16508
16509#
16510# Check to make sure the PIC flag actually works.
16511#
16512if test -n "$lt_prog_compiler_pic_CXX"; then
16513
16514echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16515echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16516if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16517  echo $ECHO_N "(cached) $ECHO_C" >&6
16518else
16519  lt_prog_compiler_pic_works_CXX=no
16520  ac_outfile=conftest.$ac_objext
16521   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16522   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16523   # Insert the option either (1) after the last *FLAGS variable, or
16524   # (2) before a word containing "conftest.", or (3) at the end.
16525   # Note that $ac_compile itself does not contain backslashes and begins
16526   # with a dollar sign (not a hyphen), so the echo should work correctly.
16527   # The option is referenced via a variable to avoid confusing sed.
16528   lt_compile=`echo "$ac_compile" | $SED \
16529   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16530   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16531   -e 's:$: $lt_compiler_flag:'`
16532   (eval echo "\"\$as_me:16532: $lt_compile\"" >&5)
16533   (eval "$lt_compile" 2>conftest.err)
16534   ac_status=$?
16535   cat conftest.err >&5
16536   echo "$as_me:16536: \$? = $ac_status" >&5
16537   if (exit $ac_status) && test -s "$ac_outfile"; then
16538     # The compiler can only warn and ignore the option if not recognized
16539     # So say no if there are warnings
16540     if test ! -s conftest.err; then
16541       lt_prog_compiler_pic_works_CXX=yes
16542     fi
16543   fi
16544   $rm conftest*
16545
16546fi
16547echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16548echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16549
16550if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16551    case $lt_prog_compiler_pic_CXX in
16552     "" | " "*) ;;
16553     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16554     esac
16555else
16556    lt_prog_compiler_pic_CXX=
16557     lt_prog_compiler_can_build_shared_CXX=no
16558fi
16559
16560fi
16561case "$host_os" in
16562  # For platforms which do not support PIC, -DPIC is meaningless:
16563  *djgpp*)
16564    lt_prog_compiler_pic_CXX=
16565    ;;
16566  *)
16567    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16568    ;;
16569esac
16570
16571echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16572echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16573if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16574  echo $ECHO_N "(cached) $ECHO_C" >&6
16575else
16576  lt_cv_prog_compiler_c_o_CXX=no
16577   $rm -r conftest 2>/dev/null
16578   mkdir conftest
16579   cd conftest
16580   mkdir out
16581   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16582
16583   lt_compiler_flag="-o out/conftest2.$ac_objext"
16584   # Insert the option either (1) after the last *FLAGS variable, or
16585   # (2) before a word containing "conftest.", or (3) at the end.
16586   # Note that $ac_compile itself does not contain backslashes and begins
16587   # with a dollar sign (not a hyphen), so the echo should work correctly.
16588   lt_compile=`echo "$ac_compile" | $SED \
16589   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16590   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16591   -e 's:$: $lt_compiler_flag:'`
16592   (eval echo "\"\$as_me:16592: $lt_compile\"" >&5)
16593   (eval "$lt_compile" 2>out/conftest.err)
16594   ac_status=$?
16595   cat out/conftest.err >&5
16596   echo "$as_me:16596: \$? = $ac_status" >&5
16597   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16598   then
16599     # The compiler can only warn and ignore the option if not recognized
16600     # So say no if there are warnings
16601     if test ! -s out/conftest.err; then
16602       lt_cv_prog_compiler_c_o_CXX=yes
16603     fi
16604   fi
16605   chmod u+w .
16606   $rm conftest*
16607   # SGI C++ compiler will create directory out/ii_files/ for
16608   # template instantiation
16609   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16610   $rm out/* && rmdir out
16611   cd ..
16612   rmdir conftest
16613   $rm conftest*
16614
16615fi
16616echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16617echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16618
16619
16620hard_links="nottested"
16621if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16622  # do not overwrite the value of need_locks provided by the user
16623  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16624echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16625  hard_links=yes
16626  $rm conftest*
16627  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16628  touch conftest.a
16629  ln conftest.a conftest.b 2>&5 || hard_links=no
16630  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16631  echo "$as_me:$LINENO: result: $hard_links" >&5
16632echo "${ECHO_T}$hard_links" >&6
16633  if test "$hard_links" = no; then
16634    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16635echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16636    need_locks=warn
16637  fi
16638else
16639  need_locks=no
16640fi
16641
16642echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16643echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16644
16645  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16646  case $host_os in
16647  aix4* | aix5*)
16648    # If we're using GNU nm, then we don't want the "-C" option.
16649    # -C means demangle to AIX nm, but means don't demangle with GNU nm
16650    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16651      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'
16652    else
16653      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'
16654    fi
16655    ;;
16656  pw32*)
16657    export_symbols_cmds_CXX="$ltdll_cmds"
16658  ;;
16659  cygwin* | mingw*)
16660    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16661  ;;
16662  *)
16663    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16664  ;;
16665  esac
16666
16667echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16668echo "${ECHO_T}$ld_shlibs_CXX" >&6
16669test "$ld_shlibs_CXX" = no && can_build_shared=no
16670
16671variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16672if test "$GCC" = yes; then
16673  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16674fi
16675
16676#
16677# Do we need to explicitly link libc?
16678#
16679case "x$archive_cmds_need_lc_CXX" in
16680x|xyes)
16681  # Assume -lc should be added
16682  archive_cmds_need_lc_CXX=yes
16683
16684  if test "$enable_shared" = yes && test "$GCC" = yes; then
16685    case $archive_cmds_CXX in
16686    *'~'*)
16687      # FIXME: we may have to deal with multi-command sequences.
16688      ;;
16689    '$CC '*)
16690      # Test whether the compiler implicitly links with -lc since on some
16691      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16692      # to ld, don't add -lc before -lgcc.
16693      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16694echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16695      $rm conftest*
16696      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16697
16698      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16699  (eval $ac_compile) 2>&5
16700  ac_status=$?
16701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702  (exit $ac_status); } 2>conftest.err; then
16703        soname=conftest
16704        lib=conftest
16705        libobjs=conftest.$ac_objext
16706        deplibs=
16707        wl=$lt_prog_compiler_wl_CXX
16708        compiler_flags=-v
16709        linker_flags=-v
16710        verstring=
16711        output_objdir=.
16712        libname=conftest
16713        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16714        allow_undefined_flag_CXX=
16715        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16716  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16717  ac_status=$?
16718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719  (exit $ac_status); }
16720        then
16721	  archive_cmds_need_lc_CXX=no
16722        else
16723	  archive_cmds_need_lc_CXX=yes
16724        fi
16725        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16726      else
16727        cat conftest.err 1>&5
16728      fi
16729      $rm conftest*
16730      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16731echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16732      ;;
16733    esac
16734  fi
16735  ;;
16736esac
16737
16738echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16739echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16740library_names_spec=
16741libname_spec='lib$name'
16742soname_spec=
16743shrext_cmds=".so"
16744postinstall_cmds=
16745postuninstall_cmds=
16746finish_cmds=
16747finish_eval=
16748shlibpath_var=
16749shlibpath_overrides_runpath=unknown
16750version_type=none
16751dynamic_linker="$host_os ld.so"
16752sys_lib_dlsearch_path_spec="/lib /usr/lib"
16753if test "$GCC" = yes; then
16754  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16755  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16756    # if the path contains ";" then we assume it to be the separator
16757    # otherwise default to the standard path separator (i.e. ":") - it is
16758    # assumed that no part of a normal pathname contains ";" but that should
16759    # okay in the real world where ";" in dirpaths is itself problematic.
16760    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16761  else
16762    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16763  fi
16764else
16765  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16766fi
16767need_lib_prefix=unknown
16768hardcode_into_libs=no
16769
16770# when you set need_version to no, make sure it does not cause -set_version
16771# flags to be left without arguments
16772need_version=unknown
16773
16774case $host_os in
16775aix3*)
16776  version_type=linux
16777  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16778  shlibpath_var=LIBPATH
16779
16780  # AIX 3 has no versioning support, so we append a major version to the name.
16781  soname_spec='${libname}${release}${shared_ext}$major'
16782  ;;
16783
16784aix4* | aix5*)
16785  version_type=linux
16786  need_lib_prefix=no
16787  need_version=no
16788  hardcode_into_libs=yes
16789  if test "$host_cpu" = ia64; then
16790    # AIX 5 supports IA64
16791    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16792    shlibpath_var=LD_LIBRARY_PATH
16793  else
16794    # With GCC up to 2.95.x, collect2 would create an import file
16795    # for dependence libraries.  The import file would start with
16796    # the line `#! .'.  This would cause the generated library to
16797    # depend on `.', always an invalid library.  This was fixed in
16798    # development snapshots of GCC prior to 3.0.
16799    case $host_os in
16800      aix4 | aix4.[01] | aix4.[01].*)
16801      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16802	   echo ' yes '
16803	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16804	:
16805      else
16806	can_build_shared=no
16807      fi
16808      ;;
16809    esac
16810    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16811    # soname into executable. Probably we can add versioning support to
16812    # collect2, so additional links can be useful in future.
16813    if test "$aix_use_runtimelinking" = yes; then
16814      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16815      # instead of lib<name>.a to let people know that these are not
16816      # typical AIX shared libraries.
16817      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16818    else
16819      # We preserve .a as extension for shared libraries through AIX4.2
16820      # and later when we are not doing run time linking.
16821      library_names_spec='${libname}${release}.a $libname.a'
16822      soname_spec='${libname}${release}${shared_ext}$major'
16823    fi
16824    shlibpath_var=LIBPATH
16825  fi
16826  ;;
16827
16828amigaos*)
16829  library_names_spec='$libname.ixlibrary $libname.a'
16830  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16831  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'
16832  ;;
16833
16834beos*)
16835  library_names_spec='${libname}${shared_ext}'
16836  dynamic_linker="$host_os ld.so"
16837  shlibpath_var=LIBRARY_PATH
16838  ;;
16839
16840bsdi[45]*)
16841  version_type=linux
16842  need_version=no
16843  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16844  soname_spec='${libname}${release}${shared_ext}$major'
16845  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16846  shlibpath_var=LD_LIBRARY_PATH
16847  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16848  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16849  # the default ld.so.conf also contains /usr/contrib/lib and
16850  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16851  # libtool to hard-code these into programs
16852  ;;
16853
16854cygwin* | mingw* | pw32*)
16855  version_type=windows
16856  shrext_cmds=".dll"
16857  need_version=no
16858  need_lib_prefix=no
16859
16860  case $GCC,$host_os in
16861  yes,cygwin* | yes,mingw* | yes,pw32*)
16862    library_names_spec='$libname.dll.a'
16863    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16864    postinstall_cmds='base_file=`basename \${file}`~
16865      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16866      dldir=$destdir/`dirname \$dlpath`~
16867      test -d \$dldir || mkdir -p \$dldir~
16868      $install_prog $dir/$dlname \$dldir/$dlname'
16869    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16870      dlpath=$dir/\$dldll~
16871       $rm \$dlpath'
16872    shlibpath_overrides_runpath=yes
16873
16874    case $host_os in
16875    cygwin*)
16876      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16877      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16878      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16879      ;;
16880    mingw*)
16881      # MinGW DLLs use traditional 'lib' prefix
16882      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16883      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16884      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16885        # It is most probably a Windows format PATH printed by
16886        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16887        # path with ; separators, and with drive letters. We can handle the
16888        # drive letters (cygwin fileutils understands them), so leave them,
16889        # especially as we might pass files found there to a mingw objdump,
16890        # which wouldn't understand a cygwinified path. Ahh.
16891        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16892      else
16893        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16894      fi
16895      ;;
16896    pw32*)
16897      # pw32 DLLs use 'pw' prefix rather than 'lib'
16898      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16899      ;;
16900    esac
16901    ;;
16902
16903  *)
16904    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16905    ;;
16906  esac
16907  dynamic_linker='Win32 ld.exe'
16908  # FIXME: first we should search . and the directory the executable is in
16909  shlibpath_var=PATH
16910  ;;
16911
16912darwin* | rhapsody*)
16913  dynamic_linker="$host_os dyld"
16914  version_type=darwin
16915  need_lib_prefix=no
16916  need_version=no
16917  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16918  soname_spec='${libname}${release}${major}$shared_ext'
16919  shlibpath_overrides_runpath=yes
16920  shlibpath_var=DYLD_LIBRARY_PATH
16921  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16922  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16923  if test "$GCC" = yes; then
16924    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"`
16925  else
16926    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16927  fi
16928  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16929  ;;
16930
16931dgux*)
16932  version_type=linux
16933  need_lib_prefix=no
16934  need_version=no
16935  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16936  soname_spec='${libname}${release}${shared_ext}$major'
16937  shlibpath_var=LD_LIBRARY_PATH
16938  ;;
16939
16940freebsd1*)
16941  dynamic_linker=no
16942  ;;
16943
16944kfreebsd*-gnu)
16945  version_type=linux
16946  need_lib_prefix=no
16947  need_version=no
16948  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16949  soname_spec='${libname}${release}${shared_ext}$major'
16950  shlibpath_var=LD_LIBRARY_PATH
16951  shlibpath_overrides_runpath=no
16952  hardcode_into_libs=yes
16953  dynamic_linker='GNU ld.so'
16954  ;;
16955
16956freebsd*)
16957  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16958  version_type=freebsd-$objformat
16959  case $version_type in
16960    freebsd-elf*)
16961      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16962      need_version=no
16963      need_lib_prefix=no
16964      ;;
16965    freebsd-*)
16966      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16967      need_version=yes
16968      ;;
16969  esac
16970  shlibpath_var=LD_LIBRARY_PATH
16971  case $host_os in
16972  freebsd2*)
16973    shlibpath_overrides_runpath=yes
16974    ;;
16975  freebsd3.01* | freebsdelf3.01*)
16976    shlibpath_overrides_runpath=yes
16977    hardcode_into_libs=yes
16978    ;;
16979  *) # from 3.2 on
16980    shlibpath_overrides_runpath=no
16981    hardcode_into_libs=yes
16982    ;;
16983  esac
16984  ;;
16985
16986gnu*)
16987  version_type=linux
16988  need_lib_prefix=no
16989  need_version=no
16990  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16991  soname_spec='${libname}${release}${shared_ext}$major'
16992  shlibpath_var=LD_LIBRARY_PATH
16993  hardcode_into_libs=yes
16994  ;;
16995
16996hpux9* | hpux10* | hpux11*)
16997  # Give a soname corresponding to the major version so that dld.sl refuses to
16998  # link against other versions.
16999  version_type=sunos
17000  need_lib_prefix=no
17001  need_version=no
17002  case "$host_cpu" in
17003  ia64*)
17004    shrext_cmds='.so'
17005    hardcode_into_libs=yes
17006    dynamic_linker="$host_os dld.so"
17007    shlibpath_var=LD_LIBRARY_PATH
17008    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17009    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17010    soname_spec='${libname}${release}${shared_ext}$major'
17011    if test "X$HPUX_IA64_MODE" = X32; then
17012      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17013    else
17014      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17015    fi
17016    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17017    ;;
17018   hppa*64*)
17019     shrext_cmds='.sl'
17020     hardcode_into_libs=yes
17021     dynamic_linker="$host_os dld.sl"
17022     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17023     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17024     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17025     soname_spec='${libname}${release}${shared_ext}$major'
17026     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17027     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17028     ;;
17029   *)
17030    shrext_cmds='.sl'
17031    dynamic_linker="$host_os dld.sl"
17032    shlibpath_var=SHLIB_PATH
17033    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17034    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17035    soname_spec='${libname}${release}${shared_ext}$major'
17036    ;;
17037  esac
17038  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17039  postinstall_cmds='chmod 555 $lib'
17040  ;;
17041
17042irix5* | irix6* | nonstopux*)
17043  case $host_os in
17044    nonstopux*) version_type=nonstopux ;;
17045    *)
17046	if test "$lt_cv_prog_gnu_ld" = yes; then
17047		version_type=linux
17048	else
17049		version_type=irix
17050	fi ;;
17051  esac
17052  need_lib_prefix=no
17053  need_version=no
17054  soname_spec='${libname}${release}${shared_ext}$major'
17055  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17056  case $host_os in
17057  irix5* | nonstopux*)
17058    libsuff= shlibsuff=
17059    ;;
17060  *)
17061    case $LD in # libtool.m4 will add one of these switches to LD
17062    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17063      libsuff= shlibsuff= libmagic=32-bit;;
17064    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17065      libsuff=32 shlibsuff=N32 libmagic=N32;;
17066    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17067      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17068    *) libsuff= shlibsuff= libmagic=never-match;;
17069    esac
17070    ;;
17071  esac
17072  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17073  shlibpath_overrides_runpath=no
17074  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17075  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17076  hardcode_into_libs=yes
17077  ;;
17078
17079# No shared lib support for Linux oldld, aout, or coff.
17080linux*oldld* | linux*aout* | linux*coff*)
17081  dynamic_linker=no
17082  ;;
17083
17084# This must be Linux ELF.
17085linux*)
17086  version_type=linux
17087  need_lib_prefix=no
17088  need_version=no
17089  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090  soname_spec='${libname}${release}${shared_ext}$major'
17091  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17092  shlibpath_var=LD_LIBRARY_PATH
17093  shlibpath_overrides_runpath=no
17094  # This implies no fast_install, which is unacceptable.
17095  # Some rework will be needed to allow for fast_install
17096  # before this can be enabled.
17097  hardcode_into_libs=yes
17098
17099  # Append ld.so.conf contents to the search path
17100  if test -f /etc/ld.so.conf; then
17101    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17102    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17103  fi
17104
17105  # We used to test for /lib/ld.so.1 and disable shared libraries on
17106  # powerpc, because MkLinux only supported shared libraries with the
17107  # GNU dynamic linker.  Since this was broken with cross compilers,
17108  # most powerpc-linux boxes support dynamic linking these days and
17109  # people can always --disable-shared, the test was removed, and we
17110  # assume the GNU/Linux dynamic linker is in use.
17111  dynamic_linker='GNU/Linux ld.so'
17112  ;;
17113
17114knetbsd*-gnu)
17115  version_type=linux
17116  need_lib_prefix=no
17117  need_version=no
17118  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17119  soname_spec='${libname}${release}${shared_ext}$major'
17120  shlibpath_var=LD_LIBRARY_PATH
17121  shlibpath_overrides_runpath=no
17122  hardcode_into_libs=yes
17123  dynamic_linker='GNU ld.so'
17124  ;;
17125
17126netbsd*)
17127  version_type=sunos
17128  need_lib_prefix=no
17129  need_version=no
17130  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17131    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17132    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17133    dynamic_linker='NetBSD (a.out) ld.so'
17134  else
17135    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17136    soname_spec='${libname}${release}${shared_ext}$major'
17137    dynamic_linker='NetBSD ld.elf_so'
17138  fi
17139  shlibpath_var=LD_LIBRARY_PATH
17140  shlibpath_overrides_runpath=yes
17141  hardcode_into_libs=yes
17142  ;;
17143
17144newsos6)
17145  version_type=linux
17146  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17147  shlibpath_var=LD_LIBRARY_PATH
17148  shlibpath_overrides_runpath=yes
17149  ;;
17150
17151nto-qnx*)
17152  version_type=linux
17153  need_lib_prefix=no
17154  need_version=no
17155  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156  soname_spec='${libname}${release}${shared_ext}$major'
17157  shlibpath_var=LD_LIBRARY_PATH
17158  shlibpath_overrides_runpath=yes
17159  ;;
17160
17161openbsd*)
17162  version_type=sunos
17163  need_lib_prefix=no
17164  need_version=no
17165  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17166  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17167  shlibpath_var=LD_LIBRARY_PATH
17168  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17169    case $host_os in
17170      openbsd2.[89] | openbsd2.[89].*)
17171	shlibpath_overrides_runpath=no
17172	;;
17173      *)
17174	shlibpath_overrides_runpath=yes
17175	;;
17176      esac
17177  else
17178    shlibpath_overrides_runpath=yes
17179  fi
17180  ;;
17181
17182os2*)
17183  libname_spec='$name'
17184  shrext_cmds=".dll"
17185  need_lib_prefix=no
17186  library_names_spec='$libname${shared_ext} $libname.a'
17187  dynamic_linker='OS/2 ld.exe'
17188  shlibpath_var=LIBPATH
17189  ;;
17190
17191osf3* | osf4* | osf5*)
17192  version_type=osf
17193  need_lib_prefix=no
17194  need_version=no
17195  soname_spec='${libname}${release}${shared_ext}$major'
17196  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17197  shlibpath_var=LD_LIBRARY_PATH
17198  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17199  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17200  ;;
17201
17202sco3.2v5*)
17203  version_type=osf
17204  soname_spec='${libname}${release}${shared_ext}$major'
17205  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17206  shlibpath_var=LD_LIBRARY_PATH
17207  ;;
17208
17209solaris*)
17210  version_type=linux
17211  need_lib_prefix=no
17212  need_version=no
17213  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17214  soname_spec='${libname}${release}${shared_ext}$major'
17215  shlibpath_var=LD_LIBRARY_PATH
17216  shlibpath_overrides_runpath=yes
17217  hardcode_into_libs=yes
17218  # ldd complains unless libraries are executable
17219  postinstall_cmds='chmod +x $lib'
17220  ;;
17221
17222sunos4*)
17223  version_type=sunos
17224  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17225  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17226  shlibpath_var=LD_LIBRARY_PATH
17227  shlibpath_overrides_runpath=yes
17228  if test "$with_gnu_ld" = yes; then
17229    need_lib_prefix=no
17230  fi
17231  need_version=yes
17232  ;;
17233
17234sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17235  version_type=linux
17236  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17237  soname_spec='${libname}${release}${shared_ext}$major'
17238  shlibpath_var=LD_LIBRARY_PATH
17239  case $host_vendor in
17240    sni)
17241      shlibpath_overrides_runpath=no
17242      need_lib_prefix=no
17243      export_dynamic_flag_spec='${wl}-Blargedynsym'
17244      runpath_var=LD_RUN_PATH
17245      ;;
17246    siemens)
17247      need_lib_prefix=no
17248      ;;
17249    motorola)
17250      need_lib_prefix=no
17251      need_version=no
17252      shlibpath_overrides_runpath=no
17253      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17254      ;;
17255  esac
17256  ;;
17257
17258sysv4*MP*)
17259  if test -d /usr/nec ;then
17260    version_type=linux
17261    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17262    soname_spec='$libname${shared_ext}.$major'
17263    shlibpath_var=LD_LIBRARY_PATH
17264  fi
17265  ;;
17266
17267uts4*)
17268  version_type=linux
17269  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270  soname_spec='${libname}${release}${shared_ext}$major'
17271  shlibpath_var=LD_LIBRARY_PATH
17272  ;;
17273
17274*)
17275  dynamic_linker=no
17276  ;;
17277esac
17278echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17279echo "${ECHO_T}$dynamic_linker" >&6
17280test "$dynamic_linker" = no && can_build_shared=no
17281
17282echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17283echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17284hardcode_action_CXX=
17285if test -n "$hardcode_libdir_flag_spec_CXX" || \
17286   test -n "$runpath_var_CXX" || \
17287   test "X$hardcode_automatic_CXX" = "Xyes" ; then
17288
17289  # We can hardcode non-existant directories.
17290  if test "$hardcode_direct_CXX" != no &&
17291     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17292     # have to relink, otherwise we might link with an installed library
17293     # when we should be linking with a yet-to-be-installed one
17294     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17295     test "$hardcode_minus_L_CXX" != no; then
17296    # Linking always hardcodes the temporary library directory.
17297    hardcode_action_CXX=relink
17298  else
17299    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17300    hardcode_action_CXX=immediate
17301  fi
17302else
17303  # We cannot hardcode anything, or else we can only hardcode existing
17304  # directories.
17305  hardcode_action_CXX=unsupported
17306fi
17307echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17308echo "${ECHO_T}$hardcode_action_CXX" >&6
17309
17310if test "$hardcode_action_CXX" = relink; then
17311  # Fast installation is not supported
17312  enable_fast_install=no
17313elif test "$shlibpath_overrides_runpath" = yes ||
17314     test "$enable_shared" = no; then
17315  # Fast installation is not necessary
17316  enable_fast_install=needless
17317fi
17318
17319striplib=
17320old_striplib=
17321echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17322echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17323if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17324  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17325  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17326  echo "$as_me:$LINENO: result: yes" >&5
17327echo "${ECHO_T}yes" >&6
17328else
17329# FIXME - insert some real tests, host_os isn't really good enough
17330  case $host_os in
17331   darwin*)
17332       if test -n "$STRIP" ; then
17333         striplib="$STRIP -x"
17334         echo "$as_me:$LINENO: result: yes" >&5
17335echo "${ECHO_T}yes" >&6
17336       else
17337  echo "$as_me:$LINENO: result: no" >&5
17338echo "${ECHO_T}no" >&6
17339fi
17340       ;;
17341   *)
17342  echo "$as_me:$LINENO: result: no" >&5
17343echo "${ECHO_T}no" >&6
17344    ;;
17345  esac
17346fi
17347
17348if test "x$enable_dlopen" != xyes; then
17349  enable_dlopen=unknown
17350  enable_dlopen_self=unknown
17351  enable_dlopen_self_static=unknown
17352else
17353  lt_cv_dlopen=no
17354  lt_cv_dlopen_libs=
17355
17356  case $host_os in
17357  beos*)
17358    lt_cv_dlopen="load_add_on"
17359    lt_cv_dlopen_libs=
17360    lt_cv_dlopen_self=yes
17361    ;;
17362
17363  mingw* | pw32*)
17364    lt_cv_dlopen="LoadLibrary"
17365    lt_cv_dlopen_libs=
17366   ;;
17367
17368  cygwin*)
17369    lt_cv_dlopen="dlopen"
17370    lt_cv_dlopen_libs=
17371   ;;
17372
17373  darwin*)
17374  # if libdl is installed we need to link against it
17375    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17376echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17377if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17378  echo $ECHO_N "(cached) $ECHO_C" >&6
17379else
17380  ac_check_lib_save_LIBS=$LIBS
17381LIBS="-ldl  $LIBS"
17382cat >conftest.$ac_ext <<_ACEOF
17383/* confdefs.h.  */
17384_ACEOF
17385cat confdefs.h >>conftest.$ac_ext
17386cat >>conftest.$ac_ext <<_ACEOF
17387/* end confdefs.h.  */
17388
17389/* Override any gcc2 internal prototype to avoid an error.  */
17390#ifdef __cplusplus
17391extern "C"
17392#endif
17393/* We use char because int might match the return type of a gcc2
17394   builtin and then its argument prototype would still apply.  */
17395char dlopen ();
17396int
17397main ()
17398{
17399dlopen ();
17400  ;
17401  return 0;
17402}
17403_ACEOF
17404rm -f conftest.$ac_objext conftest$ac_exeext
17405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17406  (eval $ac_link) 2>conftest.er1
17407  ac_status=$?
17408  grep -v '^ *+' conftest.er1 >conftest.err
17409  rm -f conftest.er1
17410  cat conftest.err >&5
17411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412  (exit $ac_status); } &&
17413	 { ac_try='test -z "$ac_cxx_werror_flag"
17414			 || test ! -s conftest.err'
17415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17416  (eval $ac_try) 2>&5
17417  ac_status=$?
17418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419  (exit $ac_status); }; } &&
17420	 { ac_try='test -s conftest$ac_exeext'
17421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17422  (eval $ac_try) 2>&5
17423  ac_status=$?
17424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425  (exit $ac_status); }; }; then
17426  ac_cv_lib_dl_dlopen=yes
17427else
17428  echo "$as_me: failed program was:" >&5
17429sed 's/^/| /' conftest.$ac_ext >&5
17430
17431ac_cv_lib_dl_dlopen=no
17432fi
17433rm -f conftest.err conftest.$ac_objext \
17434      conftest$ac_exeext conftest.$ac_ext
17435LIBS=$ac_check_lib_save_LIBS
17436fi
17437echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17438echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17439if test $ac_cv_lib_dl_dlopen = yes; then
17440  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17441else
17442
17443    lt_cv_dlopen="dyld"
17444    lt_cv_dlopen_libs=
17445    lt_cv_dlopen_self=yes
17446
17447fi
17448
17449   ;;
17450
17451  *)
17452    echo "$as_me:$LINENO: checking for shl_load" >&5
17453echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17454if test "${ac_cv_func_shl_load+set}" = set; then
17455  echo $ECHO_N "(cached) $ECHO_C" >&6
17456else
17457  cat >conftest.$ac_ext <<_ACEOF
17458/* confdefs.h.  */
17459_ACEOF
17460cat confdefs.h >>conftest.$ac_ext
17461cat >>conftest.$ac_ext <<_ACEOF
17462/* end confdefs.h.  */
17463/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17464   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17465#define shl_load innocuous_shl_load
17466
17467/* System header to define __stub macros and hopefully few prototypes,
17468    which can conflict with char shl_load (); below.
17469    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17470    <limits.h> exists even on freestanding compilers.  */
17471
17472#ifdef __STDC__
17473# include <limits.h>
17474#else
17475# include <assert.h>
17476#endif
17477
17478#undef shl_load
17479
17480/* Override any gcc2 internal prototype to avoid an error.  */
17481#ifdef __cplusplus
17482extern "C"
17483{
17484#endif
17485/* We use char because int might match the return type of a gcc2
17486   builtin and then its argument prototype would still apply.  */
17487char shl_load ();
17488/* The GNU C library defines this for functions which it implements
17489    to always fail with ENOSYS.  Some functions are actually named
17490    something starting with __ and the normal name is an alias.  */
17491#if defined (__stub_shl_load) || defined (__stub___shl_load)
17492choke me
17493#else
17494char (*f) () = shl_load;
17495#endif
17496#ifdef __cplusplus
17497}
17498#endif
17499
17500int
17501main ()
17502{
17503return f != shl_load;
17504  ;
17505  return 0;
17506}
17507_ACEOF
17508rm -f conftest.$ac_objext conftest$ac_exeext
17509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17510  (eval $ac_link) 2>conftest.er1
17511  ac_status=$?
17512  grep -v '^ *+' conftest.er1 >conftest.err
17513  rm -f conftest.er1
17514  cat conftest.err >&5
17515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516  (exit $ac_status); } &&
17517	 { ac_try='test -z "$ac_cxx_werror_flag"
17518			 || test ! -s conftest.err'
17519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520  (eval $ac_try) 2>&5
17521  ac_status=$?
17522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523  (exit $ac_status); }; } &&
17524	 { ac_try='test -s conftest$ac_exeext'
17525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526  (eval $ac_try) 2>&5
17527  ac_status=$?
17528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529  (exit $ac_status); }; }; then
17530  ac_cv_func_shl_load=yes
17531else
17532  echo "$as_me: failed program was:" >&5
17533sed 's/^/| /' conftest.$ac_ext >&5
17534
17535ac_cv_func_shl_load=no
17536fi
17537rm -f conftest.err conftest.$ac_objext \
17538      conftest$ac_exeext conftest.$ac_ext
17539fi
17540echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17541echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17542if test $ac_cv_func_shl_load = yes; then
17543  lt_cv_dlopen="shl_load"
17544else
17545  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17546echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17547if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17548  echo $ECHO_N "(cached) $ECHO_C" >&6
17549else
17550  ac_check_lib_save_LIBS=$LIBS
17551LIBS="-ldld  $LIBS"
17552cat >conftest.$ac_ext <<_ACEOF
17553/* confdefs.h.  */
17554_ACEOF
17555cat confdefs.h >>conftest.$ac_ext
17556cat >>conftest.$ac_ext <<_ACEOF
17557/* end confdefs.h.  */
17558
17559/* Override any gcc2 internal prototype to avoid an error.  */
17560#ifdef __cplusplus
17561extern "C"
17562#endif
17563/* We use char because int might match the return type of a gcc2
17564   builtin and then its argument prototype would still apply.  */
17565char shl_load ();
17566int
17567main ()
17568{
17569shl_load ();
17570  ;
17571  return 0;
17572}
17573_ACEOF
17574rm -f conftest.$ac_objext conftest$ac_exeext
17575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17576  (eval $ac_link) 2>conftest.er1
17577  ac_status=$?
17578  grep -v '^ *+' conftest.er1 >conftest.err
17579  rm -f conftest.er1
17580  cat conftest.err >&5
17581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582  (exit $ac_status); } &&
17583	 { ac_try='test -z "$ac_cxx_werror_flag"
17584			 || test ! -s conftest.err'
17585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17586  (eval $ac_try) 2>&5
17587  ac_status=$?
17588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589  (exit $ac_status); }; } &&
17590	 { ac_try='test -s conftest$ac_exeext'
17591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592  (eval $ac_try) 2>&5
17593  ac_status=$?
17594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595  (exit $ac_status); }; }; then
17596  ac_cv_lib_dld_shl_load=yes
17597else
17598  echo "$as_me: failed program was:" >&5
17599sed 's/^/| /' conftest.$ac_ext >&5
17600
17601ac_cv_lib_dld_shl_load=no
17602fi
17603rm -f conftest.err conftest.$ac_objext \
17604      conftest$ac_exeext conftest.$ac_ext
17605LIBS=$ac_check_lib_save_LIBS
17606fi
17607echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17608echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17609if test $ac_cv_lib_dld_shl_load = yes; then
17610  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17611else
17612  echo "$as_me:$LINENO: checking for dlopen" >&5
17613echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17614if test "${ac_cv_func_dlopen+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 dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17624   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17625#define dlopen innocuous_dlopen
17626
17627/* System header to define __stub macros and hopefully few prototypes,
17628    which can conflict with char dlopen (); 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 dlopen
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 dlopen ();
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_dlopen) || defined (__stub___dlopen)
17652choke me
17653#else
17654char (*f) () = dlopen;
17655#endif
17656#ifdef __cplusplus
17657}
17658#endif
17659
17660int
17661main ()
17662{
17663return f != dlopen;
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_dlopen=yes
17691else
17692  echo "$as_me: failed program was:" >&5
17693sed 's/^/| /' conftest.$ac_ext >&5
17694
17695ac_cv_func_dlopen=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_dlopen" >&5
17701echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17702if test $ac_cv_func_dlopen = yes; then
17703  lt_cv_dlopen="dlopen"
17704else
17705  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17706echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17707if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17708  echo $ECHO_N "(cached) $ECHO_C" >&6
17709else
17710  ac_check_lib_save_LIBS=$LIBS
17711LIBS="-ldl  $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 dlopen ();
17726int
17727main ()
17728{
17729dlopen ();
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_dl_dlopen=yes
17757else
17758  echo "$as_me: failed program was:" >&5
17759sed 's/^/| /' conftest.$ac_ext >&5
17760
17761ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
17768echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17769if test $ac_cv_lib_dl_dlopen = yes; then
17770  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17771else
17772  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17773echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17774if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17775  echo $ECHO_N "(cached) $ECHO_C" >&6
17776else
17777  ac_check_lib_save_LIBS=$LIBS
17778LIBS="-lsvld  $LIBS"
17779cat >conftest.$ac_ext <<_ACEOF
17780/* confdefs.h.  */
17781_ACEOF
17782cat confdefs.h >>conftest.$ac_ext
17783cat >>conftest.$ac_ext <<_ACEOF
17784/* end confdefs.h.  */
17785
17786/* Override any gcc2 internal prototype to avoid an error.  */
17787#ifdef __cplusplus
17788extern "C"
17789#endif
17790/* We use char because int might match the return type of a gcc2
17791   builtin and then its argument prototype would still apply.  */
17792char dlopen ();
17793int
17794main ()
17795{
17796dlopen ();
17797  ;
17798  return 0;
17799}
17800_ACEOF
17801rm -f conftest.$ac_objext conftest$ac_exeext
17802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17803  (eval $ac_link) 2>conftest.er1
17804  ac_status=$?
17805  grep -v '^ *+' conftest.er1 >conftest.err
17806  rm -f conftest.er1
17807  cat conftest.err >&5
17808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809  (exit $ac_status); } &&
17810	 { ac_try='test -z "$ac_cxx_werror_flag"
17811			 || test ! -s conftest.err'
17812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813  (eval $ac_try) 2>&5
17814  ac_status=$?
17815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816  (exit $ac_status); }; } &&
17817	 { ac_try='test -s conftest$ac_exeext'
17818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17819  (eval $ac_try) 2>&5
17820  ac_status=$?
17821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822  (exit $ac_status); }; }; then
17823  ac_cv_lib_svld_dlopen=yes
17824else
17825  echo "$as_me: failed program was:" >&5
17826sed 's/^/| /' conftest.$ac_ext >&5
17827
17828ac_cv_lib_svld_dlopen=no
17829fi
17830rm -f conftest.err conftest.$ac_objext \
17831      conftest$ac_exeext conftest.$ac_ext
17832LIBS=$ac_check_lib_save_LIBS
17833fi
17834echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17835echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17836if test $ac_cv_lib_svld_dlopen = yes; then
17837  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17838else
17839  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17840echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17841if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17842  echo $ECHO_N "(cached) $ECHO_C" >&6
17843else
17844  ac_check_lib_save_LIBS=$LIBS
17845LIBS="-ldld  $LIBS"
17846cat >conftest.$ac_ext <<_ACEOF
17847/* confdefs.h.  */
17848_ACEOF
17849cat confdefs.h >>conftest.$ac_ext
17850cat >>conftest.$ac_ext <<_ACEOF
17851/* end confdefs.h.  */
17852
17853/* Override any gcc2 internal prototype to avoid an error.  */
17854#ifdef __cplusplus
17855extern "C"
17856#endif
17857/* We use char because int might match the return type of a gcc2
17858   builtin and then its argument prototype would still apply.  */
17859char dld_link ();
17860int
17861main ()
17862{
17863dld_link ();
17864  ;
17865  return 0;
17866}
17867_ACEOF
17868rm -f conftest.$ac_objext conftest$ac_exeext
17869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17870  (eval $ac_link) 2>conftest.er1
17871  ac_status=$?
17872  grep -v '^ *+' conftest.er1 >conftest.err
17873  rm -f conftest.er1
17874  cat conftest.err >&5
17875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876  (exit $ac_status); } &&
17877	 { ac_try='test -z "$ac_cxx_werror_flag"
17878			 || test ! -s conftest.err'
17879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17880  (eval $ac_try) 2>&5
17881  ac_status=$?
17882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883  (exit $ac_status); }; } &&
17884	 { ac_try='test -s conftest$ac_exeext'
17885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886  (eval $ac_try) 2>&5
17887  ac_status=$?
17888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889  (exit $ac_status); }; }; then
17890  ac_cv_lib_dld_dld_link=yes
17891else
17892  echo "$as_me: failed program was:" >&5
17893sed 's/^/| /' conftest.$ac_ext >&5
17894
17895ac_cv_lib_dld_dld_link=no
17896fi
17897rm -f conftest.err conftest.$ac_objext \
17898      conftest$ac_exeext conftest.$ac_ext
17899LIBS=$ac_check_lib_save_LIBS
17900fi
17901echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17902echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17903if test $ac_cv_lib_dld_dld_link = yes; then
17904  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17905fi
17906
17907
17908fi
17909
17910
17911fi
17912
17913
17914fi
17915
17916
17917fi
17918
17919
17920fi
17921
17922    ;;
17923  esac
17924
17925  if test "x$lt_cv_dlopen" != xno; then
17926    enable_dlopen=yes
17927  else
17928    enable_dlopen=no
17929  fi
17930
17931  case $lt_cv_dlopen in
17932  dlopen)
17933    save_CPPFLAGS="$CPPFLAGS"
17934    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17935
17936    save_LDFLAGS="$LDFLAGS"
17937    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17938
17939    save_LIBS="$LIBS"
17940    LIBS="$lt_cv_dlopen_libs $LIBS"
17941
17942    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17943echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17944if test "${lt_cv_dlopen_self+set}" = set; then
17945  echo $ECHO_N "(cached) $ECHO_C" >&6
17946else
17947  	  if test "$cross_compiling" = yes; then :
17948  lt_cv_dlopen_self=cross
17949else
17950  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17951  lt_status=$lt_dlunknown
17952  cat > conftest.$ac_ext <<EOF
17953#line 17953 "configure"
17954#include "confdefs.h"
17955
17956#if HAVE_DLFCN_H
17957#include <dlfcn.h>
17958#endif
17959
17960#include <stdio.h>
17961
17962#ifdef RTLD_GLOBAL
17963#  define LT_DLGLOBAL		RTLD_GLOBAL
17964#else
17965#  ifdef DL_GLOBAL
17966#    define LT_DLGLOBAL		DL_GLOBAL
17967#  else
17968#    define LT_DLGLOBAL		0
17969#  endif
17970#endif
17971
17972/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17973   find out it does not work in some platform. */
17974#ifndef LT_DLLAZY_OR_NOW
17975#  ifdef RTLD_LAZY
17976#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17977#  else
17978#    ifdef DL_LAZY
17979#      define LT_DLLAZY_OR_NOW		DL_LAZY
17980#    else
17981#      ifdef RTLD_NOW
17982#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17983#      else
17984#        ifdef DL_NOW
17985#          define LT_DLLAZY_OR_NOW	DL_NOW
17986#        else
17987#          define LT_DLLAZY_OR_NOW	0
17988#        endif
17989#      endif
17990#    endif
17991#  endif
17992#endif
17993
17994#ifdef __cplusplus
17995extern "C" void exit (int);
17996#endif
17997
17998void fnord() { int i=42;}
17999int main ()
18000{
18001  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18002  int status = $lt_dlunknown;
18003
18004  if (self)
18005    {
18006      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18007      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18008      /* dlclose (self); */
18009    }
18010
18011    exit (status);
18012}
18013EOF
18014  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18015  (eval $ac_link) 2>&5
18016  ac_status=$?
18017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18019    (./conftest; exit; ) 2>/dev/null
18020    lt_status=$?
18021    case x$lt_status in
18022      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18023      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18024      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18025    esac
18026  else :
18027    # compilation failed
18028    lt_cv_dlopen_self=no
18029  fi
18030fi
18031rm -fr conftest*
18032
18033
18034fi
18035echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18036echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18037
18038    if test "x$lt_cv_dlopen_self" = xyes; then
18039      LDFLAGS="$LDFLAGS $link_static_flag"
18040      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18041echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18042if test "${lt_cv_dlopen_self_static+set}" = set; then
18043  echo $ECHO_N "(cached) $ECHO_C" >&6
18044else
18045  	  if test "$cross_compiling" = yes; then :
18046  lt_cv_dlopen_self_static=cross
18047else
18048  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18049  lt_status=$lt_dlunknown
18050  cat > conftest.$ac_ext <<EOF
18051#line 18051 "configure"
18052#include "confdefs.h"
18053
18054#if HAVE_DLFCN_H
18055#include <dlfcn.h>
18056#endif
18057
18058#include <stdio.h>
18059
18060#ifdef RTLD_GLOBAL
18061#  define LT_DLGLOBAL		RTLD_GLOBAL
18062#else
18063#  ifdef DL_GLOBAL
18064#    define LT_DLGLOBAL		DL_GLOBAL
18065#  else
18066#    define LT_DLGLOBAL		0
18067#  endif
18068#endif
18069
18070/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18071   find out it does not work in some platform. */
18072#ifndef LT_DLLAZY_OR_NOW
18073#  ifdef RTLD_LAZY
18074#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18075#  else
18076#    ifdef DL_LAZY
18077#      define LT_DLLAZY_OR_NOW		DL_LAZY
18078#    else
18079#      ifdef RTLD_NOW
18080#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18081#      else
18082#        ifdef DL_NOW
18083#          define LT_DLLAZY_OR_NOW	DL_NOW
18084#        else
18085#          define LT_DLLAZY_OR_NOW	0
18086#        endif
18087#      endif
18088#    endif
18089#  endif
18090#endif
18091
18092#ifdef __cplusplus
18093extern "C" void exit (int);
18094#endif
18095
18096void fnord() { int i=42;}
18097int main ()
18098{
18099  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18100  int status = $lt_dlunknown;
18101
18102  if (self)
18103    {
18104      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18105      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18106      /* dlclose (self); */
18107    }
18108
18109    exit (status);
18110}
18111EOF
18112  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18113  (eval $ac_link) 2>&5
18114  ac_status=$?
18115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18117    (./conftest; exit; ) 2>/dev/null
18118    lt_status=$?
18119    case x$lt_status in
18120      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18121      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18122      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18123    esac
18124  else :
18125    # compilation failed
18126    lt_cv_dlopen_self_static=no
18127  fi
18128fi
18129rm -fr conftest*
18130
18131
18132fi
18133echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18134echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18135    fi
18136
18137    CPPFLAGS="$save_CPPFLAGS"
18138    LDFLAGS="$save_LDFLAGS"
18139    LIBS="$save_LIBS"
18140    ;;
18141  esac
18142
18143  case $lt_cv_dlopen_self in
18144  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18145  *) enable_dlopen_self=unknown ;;
18146  esac
18147
18148  case $lt_cv_dlopen_self_static in
18149  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18150  *) enable_dlopen_self_static=unknown ;;
18151  esac
18152fi
18153
18154
18155# The else clause should only fire when bootstrapping the
18156# libtool distribution, otherwise you forgot to ship ltmain.sh
18157# with your package, and you will get complaints that there are
18158# no rules to generate ltmain.sh.
18159if test -f "$ltmain"; then
18160  # See if we are running on zsh, and set the options which allow our commands through
18161  # without removal of \ escapes.
18162  if test -n "${ZSH_VERSION+set}" ; then
18163    setopt NO_GLOB_SUBST
18164  fi
18165  # Now quote all the things that may contain metacharacters while being
18166  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18167  # variables and quote the copies for generation of the libtool script.
18168  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18169    SED SHELL STRIP \
18170    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18171    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18172    deplibs_check_method reload_flag reload_cmds need_locks \
18173    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18174    lt_cv_sys_global_symbol_to_c_name_address \
18175    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18176    old_postinstall_cmds old_postuninstall_cmds \
18177    compiler_CXX \
18178    CC_CXX \
18179    LD_CXX \
18180    lt_prog_compiler_wl_CXX \
18181    lt_prog_compiler_pic_CXX \
18182    lt_prog_compiler_static_CXX \
18183    lt_prog_compiler_no_builtin_flag_CXX \
18184    export_dynamic_flag_spec_CXX \
18185    thread_safe_flag_spec_CXX \
18186    whole_archive_flag_spec_CXX \
18187    enable_shared_with_static_runtimes_CXX \
18188    old_archive_cmds_CXX \
18189    old_archive_from_new_cmds_CXX \
18190    predep_objects_CXX \
18191    postdep_objects_CXX \
18192    predeps_CXX \
18193    postdeps_CXX \
18194    compiler_lib_search_path_CXX \
18195    archive_cmds_CXX \
18196    archive_expsym_cmds_CXX \
18197    postinstall_cmds_CXX \
18198    postuninstall_cmds_CXX \
18199    old_archive_from_expsyms_cmds_CXX \
18200    allow_undefined_flag_CXX \
18201    no_undefined_flag_CXX \
18202    export_symbols_cmds_CXX \
18203    hardcode_libdir_flag_spec_CXX \
18204    hardcode_libdir_flag_spec_ld_CXX \
18205    hardcode_libdir_separator_CXX \
18206    hardcode_automatic_CXX \
18207    module_cmds_CXX \
18208    module_expsym_cmds_CXX \
18209    lt_cv_prog_compiler_c_o_CXX \
18210    exclude_expsyms_CXX \
18211    include_expsyms_CXX; do
18212
18213    case $var in
18214    old_archive_cmds_CXX | \
18215    old_archive_from_new_cmds_CXX | \
18216    archive_cmds_CXX | \
18217    archive_expsym_cmds_CXX | \
18218    module_cmds_CXX | \
18219    module_expsym_cmds_CXX | \
18220    old_archive_from_expsyms_cmds_CXX | \
18221    export_symbols_cmds_CXX | \
18222    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18223    postinstall_cmds | postuninstall_cmds | \
18224    old_postinstall_cmds | old_postuninstall_cmds | \
18225    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18226      # Double-quote double-evaled strings.
18227      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18228      ;;
18229    *)
18230      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18231      ;;
18232    esac
18233  done
18234
18235  case $lt_echo in
18236  *'\$0 --fallback-echo"')
18237    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18238    ;;
18239  esac
18240
18241cfgfile="$ofile"
18242
18243  cat <<__EOF__ >> "$cfgfile"
18244# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18245
18246# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18247
18248# Shell to use when invoking shell scripts.
18249SHELL=$lt_SHELL
18250
18251# Whether or not to build shared libraries.
18252build_libtool_libs=$enable_shared
18253
18254# Whether or not to build static libraries.
18255build_old_libs=$enable_static
18256
18257# Whether or not to add -lc for building shared libraries.
18258build_libtool_need_lc=$archive_cmds_need_lc_CXX
18259
18260# Whether or not to disallow shared libs when runtime libs are static
18261allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18262
18263# Whether or not to optimize for fast installation.
18264fast_install=$enable_fast_install
18265
18266# The host system.
18267host_alias=$host_alias
18268host=$host
18269
18270# An echo program that does not interpret backslashes.
18271echo=$lt_echo
18272
18273# The archiver.
18274AR=$lt_AR
18275AR_FLAGS=$lt_AR_FLAGS
18276
18277# A C compiler.
18278LTCC=$lt_LTCC
18279
18280# A language-specific compiler.
18281CC=$lt_compiler_CXX
18282
18283# Is the compiler the GNU C compiler?
18284with_gcc=$GCC_CXX
18285
18286# An ERE matcher.
18287EGREP=$lt_EGREP
18288
18289# The linker used to build libraries.
18290LD=$lt_LD_CXX
18291
18292# Whether we need hard or soft links.
18293LN_S=$lt_LN_S
18294
18295# A BSD-compatible nm program.
18296NM=$lt_NM
18297
18298# A symbol stripping program
18299STRIP=$lt_STRIP
18300
18301# Used to examine libraries when file_magic_cmd begins "file"
18302MAGIC_CMD=$MAGIC_CMD
18303
18304# Used on cygwin: DLL creation program.
18305DLLTOOL="$DLLTOOL"
18306
18307# Used on cygwin: object dumper.
18308OBJDUMP="$OBJDUMP"
18309
18310# Used on cygwin: assembler.
18311AS="$AS"
18312
18313# The name of the directory that contains temporary libtool files.
18314objdir=$objdir
18315
18316# How to create reloadable object files.
18317reload_flag=$lt_reload_flag
18318reload_cmds=$lt_reload_cmds
18319
18320# How to pass a linker flag through the compiler.
18321wl=$lt_lt_prog_compiler_wl_CXX
18322
18323# Object file suffix (normally "o").
18324objext="$ac_objext"
18325
18326# Old archive suffix (normally "a").
18327libext="$libext"
18328
18329# Shared library suffix (normally ".so").
18330shrext_cmds='$shrext_cmds'
18331
18332# Executable file suffix (normally "").
18333exeext="$exeext"
18334
18335# Additional compiler flags for building library objects.
18336pic_flag=$lt_lt_prog_compiler_pic_CXX
18337pic_mode=$pic_mode
18338
18339# What is the maximum length of a command?
18340max_cmd_len=$lt_cv_sys_max_cmd_len
18341
18342# Does compiler simultaneously support -c and -o options?
18343compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18344
18345# Must we lock files when doing compilation ?
18346need_locks=$lt_need_locks
18347
18348# Do we need the lib prefix for modules?
18349need_lib_prefix=$need_lib_prefix
18350
18351# Do we need a version for libraries?
18352need_version=$need_version
18353
18354# Whether dlopen is supported.
18355dlopen_support=$enable_dlopen
18356
18357# Whether dlopen of programs is supported.
18358dlopen_self=$enable_dlopen_self
18359
18360# Whether dlopen of statically linked programs is supported.
18361dlopen_self_static=$enable_dlopen_self_static
18362
18363# Compiler flag to prevent dynamic linking.
18364link_static_flag=$lt_lt_prog_compiler_static_CXX
18365
18366# Compiler flag to turn off builtin functions.
18367no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18368
18369# Compiler flag to allow reflexive dlopens.
18370export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18371
18372# Compiler flag to generate shared objects directly from archives.
18373whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18374
18375# Compiler flag to generate thread-safe objects.
18376thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18377
18378# Library versioning type.
18379version_type=$version_type
18380
18381# Format of library name prefix.
18382libname_spec=$lt_libname_spec
18383
18384# List of archive names.  First name is the real one, the rest are links.
18385# The last name is the one that the linker finds with -lNAME.
18386library_names_spec=$lt_library_names_spec
18387
18388# The coded name of the library, if different from the real name.
18389soname_spec=$lt_soname_spec
18390
18391# Commands used to build and install an old-style archive.
18392RANLIB=$lt_RANLIB
18393old_archive_cmds=$lt_old_archive_cmds_CXX
18394old_postinstall_cmds=$lt_old_postinstall_cmds
18395old_postuninstall_cmds=$lt_old_postuninstall_cmds
18396
18397# Create an old-style archive from a shared archive.
18398old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18399
18400# Create a temporary old-style archive to link instead of a shared archive.
18401old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18402
18403# Commands used to build and install a shared archive.
18404archive_cmds=$lt_archive_cmds_CXX
18405archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18406postinstall_cmds=$lt_postinstall_cmds
18407postuninstall_cmds=$lt_postuninstall_cmds
18408
18409# Commands used to build a loadable module (assumed same as above if empty)
18410module_cmds=$lt_module_cmds_CXX
18411module_expsym_cmds=$lt_module_expsym_cmds_CXX
18412
18413# Commands to strip libraries.
18414old_striplib=$lt_old_striplib
18415striplib=$lt_striplib
18416
18417# Dependencies to place before the objects being linked to create a
18418# shared library.
18419predep_objects=$lt_predep_objects_CXX
18420
18421# Dependencies to place after the objects being linked to create a
18422# shared library.
18423postdep_objects=$lt_postdep_objects_CXX
18424
18425# Dependencies to place before the objects being linked to create a
18426# shared library.
18427predeps=$lt_predeps_CXX
18428
18429# Dependencies to place after the objects being linked to create a
18430# shared library.
18431postdeps=$lt_postdeps_CXX
18432
18433# The library search path used internally by the compiler when linking
18434# a shared library.
18435compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18436
18437# Method to check whether dependent libraries are shared objects.
18438deplibs_check_method=$lt_deplibs_check_method
18439
18440# Command to use when deplibs_check_method == file_magic.
18441file_magic_cmd=$lt_file_magic_cmd
18442
18443# Flag that allows shared libraries with undefined symbols to be built.
18444allow_undefined_flag=$lt_allow_undefined_flag_CXX
18445
18446# Flag that forces no undefined symbols.
18447no_undefined_flag=$lt_no_undefined_flag_CXX
18448
18449# Commands used to finish a libtool library installation in a directory.
18450finish_cmds=$lt_finish_cmds
18451
18452# Same as above, but a single script fragment to be evaled but not shown.
18453finish_eval=$lt_finish_eval
18454
18455# Take the output of nm and produce a listing of raw symbols and C names.
18456global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18457
18458# Transform the output of nm in a proper C declaration
18459global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18460
18461# Transform the output of nm in a C name address pair
18462global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18463
18464# This is the shared library runtime path variable.
18465runpath_var=$runpath_var
18466
18467# This is the shared library path variable.
18468shlibpath_var=$shlibpath_var
18469
18470# Is shlibpath searched before the hard-coded library search path?
18471shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18472
18473# How to hardcode a shared library path into an executable.
18474hardcode_action=$hardcode_action_CXX
18475
18476# Whether we should hardcode library paths into libraries.
18477hardcode_into_libs=$hardcode_into_libs
18478
18479# Flag to hardcode \$libdir into a binary during linking.
18480# This must work even if \$libdir does not exist.
18481hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18482
18483# If ld is used when linking, flag to hardcode \$libdir into
18484# a binary during linking. This must work even if \$libdir does
18485# not exist.
18486hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18487
18488# Whether we need a single -rpath flag with a separated argument.
18489hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18490
18491# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18492# resulting binary.
18493hardcode_direct=$hardcode_direct_CXX
18494
18495# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18496# resulting binary.
18497hardcode_minus_L=$hardcode_minus_L_CXX
18498
18499# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18500# the resulting binary.
18501hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18502
18503# Set to yes if building a shared library automatically hardcodes DIR into the library
18504# and all subsequent libraries and executables linked against it.
18505hardcode_automatic=$hardcode_automatic_CXX
18506
18507# Variables whose values should be saved in libtool wrapper scripts and
18508# restored at relink time.
18509variables_saved_for_relink="$variables_saved_for_relink"
18510
18511# Whether libtool must link a program against all its dependency libraries.
18512link_all_deplibs=$link_all_deplibs_CXX
18513
18514# Compile-time system search path for libraries
18515sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18516
18517# Run-time system search path for libraries
18518sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18519
18520# Fix the shell variable \$srcfile for the compiler.
18521fix_srcfile_path="$fix_srcfile_path_CXX"
18522
18523# Set to yes if exported symbols are required.
18524always_export_symbols=$always_export_symbols_CXX
18525
18526# The commands to list exported symbols.
18527export_symbols_cmds=$lt_export_symbols_cmds_CXX
18528
18529# The commands to extract the exported symbol list from a shared archive.
18530extract_expsyms_cmds=$lt_extract_expsyms_cmds
18531
18532# Symbols that should not be listed in the preloaded symbols.
18533exclude_expsyms=$lt_exclude_expsyms_CXX
18534
18535# Symbols that must always be exported.
18536include_expsyms=$lt_include_expsyms_CXX
18537
18538# ### END LIBTOOL TAG CONFIG: $tagname
18539
18540__EOF__
18541
18542
18543else
18544  # If there is no Makefile yet, we rely on a make rule to execute
18545  # `config.status --recheck' to rerun these tests and create the
18546  # libtool script then.
18547  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18548  if test -f "$ltmain_in"; then
18549    test -f Makefile && make "$ltmain"
18550  fi
18551fi
18552
18553
18554ac_ext=c
18555ac_cpp='$CPP $CPPFLAGS'
18556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18558ac_compiler_gnu=$ac_cv_c_compiler_gnu
18559
18560CC=$lt_save_CC
18561LDCXX=$LD
18562LD=$lt_save_LD
18563GCC=$lt_save_GCC
18564with_gnu_ldcxx=$with_gnu_ld
18565with_gnu_ld=$lt_save_with_gnu_ld
18566lt_cv_path_LDCXX=$lt_cv_path_LD
18567lt_cv_path_LD=$lt_save_path_LD
18568lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18569lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18570
18571	else
18572	  tagname=""
18573	fi
18574	;;
18575
18576      F77)
18577	if test -n "$F77" && test "X$F77" != "Xno"; then
18578
18579ac_ext=f
18580ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18581ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18582ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18583
18584
18585archive_cmds_need_lc_F77=no
18586allow_undefined_flag_F77=
18587always_export_symbols_F77=no
18588archive_expsym_cmds_F77=
18589export_dynamic_flag_spec_F77=
18590hardcode_direct_F77=no
18591hardcode_libdir_flag_spec_F77=
18592hardcode_libdir_flag_spec_ld_F77=
18593hardcode_libdir_separator_F77=
18594hardcode_minus_L_F77=no
18595hardcode_automatic_F77=no
18596module_cmds_F77=
18597module_expsym_cmds_F77=
18598link_all_deplibs_F77=unknown
18599old_archive_cmds_F77=$old_archive_cmds
18600no_undefined_flag_F77=
18601whole_archive_flag_spec_F77=
18602enable_shared_with_static_runtimes_F77=no
18603
18604# Source file extension for f77 test sources.
18605ac_ext=f
18606
18607# Object file extension for compiled f77 test sources.
18608objext=o
18609objext_F77=$objext
18610
18611# Code to be used in simple compile tests
18612lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18613
18614# Code to be used in simple link tests
18615lt_simple_link_test_code="      program t\n      end\n"
18616
18617# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18618
18619# If no C compiler was specified, use CC.
18620LTCC=${LTCC-"$CC"}
18621
18622# Allow CC to be a program name with arguments.
18623compiler=$CC
18624
18625
18626# Allow CC to be a program name with arguments.
18627lt_save_CC="$CC"
18628CC=${F77-"f77"}
18629compiler=$CC
18630compiler_F77=$CC
18631cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18632
18633echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18634echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18635echo "$as_me:$LINENO: result: $can_build_shared" >&5
18636echo "${ECHO_T}$can_build_shared" >&6
18637
18638echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18639echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18640test "$can_build_shared" = "no" && enable_shared=no
18641
18642# On AIX, shared libraries and static libraries use the same namespace, and
18643# are all built from PIC.
18644case "$host_os" in
18645aix3*)
18646  test "$enable_shared" = yes && enable_static=no
18647  if test -n "$RANLIB"; then
18648    archive_cmds="$archive_cmds~\$RANLIB \$lib"
18649    postinstall_cmds='$RANLIB $lib'
18650  fi
18651  ;;
18652aix4* | aix5*)
18653  test "$enable_shared" = yes && enable_static=no
18654  ;;
18655esac
18656echo "$as_me:$LINENO: result: $enable_shared" >&5
18657echo "${ECHO_T}$enable_shared" >&6
18658
18659echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18660echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18661# Make sure either enable_shared or enable_static is yes.
18662test "$enable_shared" = yes || enable_static=yes
18663echo "$as_me:$LINENO: result: $enable_static" >&5
18664echo "${ECHO_T}$enable_static" >&6
18665
18666test "$ld_shlibs_F77" = no && can_build_shared=no
18667
18668GCC_F77="$G77"
18669LD_F77="$LD"
18670
18671lt_prog_compiler_wl_F77=
18672lt_prog_compiler_pic_F77=
18673lt_prog_compiler_static_F77=
18674
18675echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18676echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18677
18678  if test "$GCC" = yes; then
18679    lt_prog_compiler_wl_F77='-Wl,'
18680    lt_prog_compiler_static_F77='-static'
18681
18682    case $host_os in
18683      aix*)
18684      # All AIX code is PIC.
18685      if test "$host_cpu" = ia64; then
18686	# AIX 5 now supports IA64 processor
18687	lt_prog_compiler_static_F77='-Bstatic'
18688      fi
18689      ;;
18690
18691    amigaos*)
18692      # FIXME: we need at least 68020 code to build shared libraries, but
18693      # adding the `-m68020' flag to GCC prevents building anything better,
18694      # like `-m68040'.
18695      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18696      ;;
18697
18698    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18699      # PIC is the default for these OSes.
18700      ;;
18701
18702    mingw* | pw32* | os2*)
18703      # This hack is so that the source file can tell whether it is being
18704      # built for inclusion in a dll (and should export symbols for example).
18705      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18706      ;;
18707
18708    darwin* | rhapsody*)
18709      # PIC is the default on this platform
18710      # Common symbols not allowed in MH_DYLIB files
18711      lt_prog_compiler_pic_F77='-fno-common'
18712      ;;
18713
18714    msdosdjgpp*)
18715      # Just because we use GCC doesn't mean we suddenly get shared libraries
18716      # on systems that don't support them.
18717      lt_prog_compiler_can_build_shared_F77=no
18718      enable_shared=no
18719      ;;
18720
18721    sysv4*MP*)
18722      if test -d /usr/nec; then
18723	lt_prog_compiler_pic_F77=-Kconform_pic
18724      fi
18725      ;;
18726
18727    hpux*)
18728      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18729      # not for PA HP-UX.
18730      case "$host_cpu" in
18731      hppa*64*|ia64*)
18732	# +Z the default
18733	;;
18734      *)
18735	lt_prog_compiler_pic_F77='-fPIC'
18736	;;
18737      esac
18738      ;;
18739
18740    *)
18741      lt_prog_compiler_pic_F77='-fPIC'
18742      ;;
18743    esac
18744  else
18745    # PORTME Check for flag to pass linker flags through the system compiler.
18746    case $host_os in
18747    aix*)
18748      lt_prog_compiler_wl_F77='-Wl,'
18749      if test "$host_cpu" = ia64; then
18750	# AIX 5 now supports IA64 processor
18751	lt_prog_compiler_static_F77='-Bstatic'
18752      else
18753	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18754      fi
18755      ;;
18756      darwin*)
18757        # PIC is the default on this platform
18758        # Common symbols not allowed in MH_DYLIB files
18759       case "$cc_basename" in
18760         xlc*)
18761         lt_prog_compiler_pic_F77='-qnocommon'
18762         lt_prog_compiler_wl_F77='-Wl,'
18763         ;;
18764       esac
18765       ;;
18766
18767    mingw* | pw32* | os2*)
18768      # This hack is so that the source file can tell whether it is being
18769      # built for inclusion in a dll (and should export symbols for example).
18770      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18771      ;;
18772
18773    hpux9* | hpux10* | hpux11*)
18774      lt_prog_compiler_wl_F77='-Wl,'
18775      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18776      # not for PA HP-UX.
18777      case "$host_cpu" in
18778      hppa*64*|ia64*)
18779	# +Z the default
18780	;;
18781      *)
18782	lt_prog_compiler_pic_F77='+Z'
18783	;;
18784      esac
18785      # Is there a better lt_prog_compiler_static that works with the bundled CC?
18786      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18787      ;;
18788
18789    irix5* | irix6* | nonstopux*)
18790      lt_prog_compiler_wl_F77='-Wl,'
18791      # PIC (with -KPIC) is the default.
18792      lt_prog_compiler_static_F77='-non_shared'
18793      ;;
18794
18795    newsos6)
18796      lt_prog_compiler_pic_F77='-KPIC'
18797      lt_prog_compiler_static_F77='-Bstatic'
18798      ;;
18799
18800    linux*)
18801      case $CC in
18802      icc* | ecc*)
18803	lt_prog_compiler_wl_F77='-Wl,'
18804	lt_prog_compiler_pic_F77='-KPIC'
18805	lt_prog_compiler_static_F77='-static'
18806        ;;
18807      ccc*)
18808        lt_prog_compiler_wl_F77='-Wl,'
18809        # All Alpha code is PIC.
18810        lt_prog_compiler_static_F77='-non_shared'
18811        ;;
18812      esac
18813      ;;
18814
18815    osf3* | osf4* | osf5*)
18816      lt_prog_compiler_wl_F77='-Wl,'
18817      # All OSF/1 code is PIC.
18818      lt_prog_compiler_static_F77='-non_shared'
18819      ;;
18820
18821    sco3.2v5*)
18822      lt_prog_compiler_pic_F77='-Kpic'
18823      lt_prog_compiler_static_F77='-dn'
18824      ;;
18825
18826    solaris*)
18827      lt_prog_compiler_wl_F77='-Wl,'
18828      lt_prog_compiler_pic_F77='-KPIC'
18829      lt_prog_compiler_static_F77='-Bstatic'
18830      ;;
18831
18832    sunos4*)
18833      lt_prog_compiler_wl_F77='-Qoption ld '
18834      lt_prog_compiler_pic_F77='-PIC'
18835      lt_prog_compiler_static_F77='-Bstatic'
18836      ;;
18837
18838    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18839      lt_prog_compiler_wl_F77='-Wl,'
18840      lt_prog_compiler_pic_F77='-KPIC'
18841      lt_prog_compiler_static_F77='-Bstatic'
18842      ;;
18843
18844    sysv4*MP*)
18845      if test -d /usr/nec ;then
18846	lt_prog_compiler_pic_F77='-Kconform_pic'
18847	lt_prog_compiler_static_F77='-Bstatic'
18848      fi
18849      ;;
18850
18851    uts4*)
18852      lt_prog_compiler_pic_F77='-pic'
18853      lt_prog_compiler_static_F77='-Bstatic'
18854      ;;
18855
18856    *)
18857      lt_prog_compiler_can_build_shared_F77=no
18858      ;;
18859    esac
18860  fi
18861
18862echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18863echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18864
18865#
18866# Check to make sure the PIC flag actually works.
18867#
18868if test -n "$lt_prog_compiler_pic_F77"; then
18869
18870echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18871echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18872if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18873  echo $ECHO_N "(cached) $ECHO_C" >&6
18874else
18875  lt_prog_compiler_pic_works_F77=no
18876  ac_outfile=conftest.$ac_objext
18877   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18878   lt_compiler_flag="$lt_prog_compiler_pic_F77"
18879   # Insert the option either (1) after the last *FLAGS variable, or
18880   # (2) before a word containing "conftest.", or (3) at the end.
18881   # Note that $ac_compile itself does not contain backslashes and begins
18882   # with a dollar sign (not a hyphen), so the echo should work correctly.
18883   # The option is referenced via a variable to avoid confusing sed.
18884   lt_compile=`echo "$ac_compile" | $SED \
18885   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18886   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18887   -e 's:$: $lt_compiler_flag:'`
18888   (eval echo "\"\$as_me:18888: $lt_compile\"" >&5)
18889   (eval "$lt_compile" 2>conftest.err)
18890   ac_status=$?
18891   cat conftest.err >&5
18892   echo "$as_me:18892: \$? = $ac_status" >&5
18893   if (exit $ac_status) && test -s "$ac_outfile"; then
18894     # The compiler can only warn and ignore the option if not recognized
18895     # So say no if there are warnings
18896     if test ! -s conftest.err; then
18897       lt_prog_compiler_pic_works_F77=yes
18898     fi
18899   fi
18900   $rm conftest*
18901
18902fi
18903echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18904echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18905
18906if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18907    case $lt_prog_compiler_pic_F77 in
18908     "" | " "*) ;;
18909     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18910     esac
18911else
18912    lt_prog_compiler_pic_F77=
18913     lt_prog_compiler_can_build_shared_F77=no
18914fi
18915
18916fi
18917case "$host_os" in
18918  # For platforms which do not support PIC, -DPIC is meaningless:
18919  *djgpp*)
18920    lt_prog_compiler_pic_F77=
18921    ;;
18922  *)
18923    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18924    ;;
18925esac
18926
18927echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18928echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18929if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18930  echo $ECHO_N "(cached) $ECHO_C" >&6
18931else
18932  lt_cv_prog_compiler_c_o_F77=no
18933   $rm -r conftest 2>/dev/null
18934   mkdir conftest
18935   cd conftest
18936   mkdir out
18937   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18938
18939   lt_compiler_flag="-o out/conftest2.$ac_objext"
18940   # Insert the option either (1) after the last *FLAGS variable, or
18941   # (2) before a word containing "conftest.", or (3) at the end.
18942   # Note that $ac_compile itself does not contain backslashes and begins
18943   # with a dollar sign (not a hyphen), so the echo should work correctly.
18944   lt_compile=`echo "$ac_compile" | $SED \
18945   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18946   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18947   -e 's:$: $lt_compiler_flag:'`
18948   (eval echo "\"\$as_me:18948: $lt_compile\"" >&5)
18949   (eval "$lt_compile" 2>out/conftest.err)
18950   ac_status=$?
18951   cat out/conftest.err >&5
18952   echo "$as_me:18952: \$? = $ac_status" >&5
18953   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18954   then
18955     # The compiler can only warn and ignore the option if not recognized
18956     # So say no if there are warnings
18957     if test ! -s out/conftest.err; then
18958       lt_cv_prog_compiler_c_o_F77=yes
18959     fi
18960   fi
18961   chmod u+w .
18962   $rm conftest*
18963   # SGI C++ compiler will create directory out/ii_files/ for
18964   # template instantiation
18965   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18966   $rm out/* && rmdir out
18967   cd ..
18968   rmdir conftest
18969   $rm conftest*
18970
18971fi
18972echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18973echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18974
18975
18976hard_links="nottested"
18977if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18978  # do not overwrite the value of need_locks provided by the user
18979  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18980echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18981  hard_links=yes
18982  $rm conftest*
18983  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18984  touch conftest.a
18985  ln conftest.a conftest.b 2>&5 || hard_links=no
18986  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18987  echo "$as_me:$LINENO: result: $hard_links" >&5
18988echo "${ECHO_T}$hard_links" >&6
18989  if test "$hard_links" = no; then
18990    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18991echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18992    need_locks=warn
18993  fi
18994else
18995  need_locks=no
18996fi
18997
18998echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18999echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19000
19001  runpath_var=
19002  allow_undefined_flag_F77=
19003  enable_shared_with_static_runtimes_F77=no
19004  archive_cmds_F77=
19005  archive_expsym_cmds_F77=
19006  old_archive_From_new_cmds_F77=
19007  old_archive_from_expsyms_cmds_F77=
19008  export_dynamic_flag_spec_F77=
19009  whole_archive_flag_spec_F77=
19010  thread_safe_flag_spec_F77=
19011  hardcode_libdir_flag_spec_F77=
19012  hardcode_libdir_flag_spec_ld_F77=
19013  hardcode_libdir_separator_F77=
19014  hardcode_direct_F77=no
19015  hardcode_minus_L_F77=no
19016  hardcode_shlibpath_var_F77=unsupported
19017  link_all_deplibs_F77=unknown
19018  hardcode_automatic_F77=no
19019  module_cmds_F77=
19020  module_expsym_cmds_F77=
19021  always_export_symbols_F77=no
19022  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19023  # include_expsyms should be a list of space-separated symbols to be *always*
19024  # included in the symbol list
19025  include_expsyms_F77=
19026  # exclude_expsyms can be an extended regexp of symbols to exclude
19027  # it will be wrapped by ` (' and `)$', so one must not match beginning or
19028  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19029  # as well as any symbol that contains `d'.
19030  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19031  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19032  # platforms (ab)use it in PIC code, but their linkers get confused if
19033  # the symbol is explicitly referenced.  Since portable code cannot
19034  # rely on this symbol name, it's probably fine to never include it in
19035  # preloaded symbol tables.
19036  extract_expsyms_cmds=
19037
19038  case $host_os in
19039  cygwin* | mingw* | pw32*)
19040    # FIXME: the MSVC++ port hasn't been tested in a loooong time
19041    # When not using gcc, we currently assume that we are using
19042    # Microsoft Visual C++.
19043    if test "$GCC" != yes; then
19044      with_gnu_ld=no
19045    fi
19046    ;;
19047  openbsd*)
19048    with_gnu_ld=no
19049    ;;
19050  esac
19051
19052  ld_shlibs_F77=yes
19053  if test "$with_gnu_ld" = yes; then
19054    # If archive_cmds runs LD, not CC, wlarc should be empty
19055    wlarc='${wl}'
19056
19057    # See if GNU ld supports shared libraries.
19058    case $host_os in
19059    aix3* | aix4* | aix5*)
19060      # On AIX/PPC, the GNU linker is very broken
19061      if test "$host_cpu" != ia64; then
19062	ld_shlibs_F77=no
19063	cat <<EOF 1>&2
19064
19065*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19066*** to be unable to reliably create shared libraries on AIX.
19067*** Therefore, libtool is disabling shared libraries support.  If you
19068*** really care for shared libraries, you may want to modify your PATH
19069*** so that a non-GNU linker is found, and then restart.
19070
19071EOF
19072      fi
19073      ;;
19074
19075    amigaos*)
19076      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)'
19077      hardcode_libdir_flag_spec_F77='-L$libdir'
19078      hardcode_minus_L_F77=yes
19079
19080      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19081      # that the semantics of dynamic libraries on AmigaOS, at least up
19082      # to version 4, is to share data among multiple programs linked
19083      # with the same dynamic library.  Since this doesn't match the
19084      # behavior of shared libraries on other platforms, we can't use
19085      # them.
19086      ld_shlibs_F77=no
19087      ;;
19088
19089    beos*)
19090      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19091	allow_undefined_flag_F77=unsupported
19092	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19093	# support --undefined.  This deserves some investigation.  FIXME
19094	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19095      else
19096	ld_shlibs_F77=no
19097      fi
19098      ;;
19099
19100    cygwin* | mingw* | pw32*)
19101      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19102      # as there is no search path for DLLs.
19103      hardcode_libdir_flag_spec_F77='-L$libdir'
19104      allow_undefined_flag_F77=unsupported
19105      always_export_symbols_F77=no
19106      enable_shared_with_static_runtimes_F77=yes
19107      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19108
19109      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19110        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19111	# If the export-symbols file already is a .def file (1st line
19112	# is EXPORTS), use it as is; otherwise, prepend...
19113	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19114	  cp $export_symbols $output_objdir/$soname.def;
19115	else
19116	  echo EXPORTS > $output_objdir/$soname.def;
19117	  cat $export_symbols >> $output_objdir/$soname.def;
19118	fi~
19119	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19120      else
19121	ld_shlibs=no
19122      fi
19123      ;;
19124
19125    netbsd*)
19126      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19127	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19128	wlarc=
19129      else
19130	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19131	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19132      fi
19133      ;;
19134
19135    solaris* | sysv5*)
19136      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19137	ld_shlibs_F77=no
19138	cat <<EOF 1>&2
19139
19140*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19141*** create shared libraries on Solaris systems.  Therefore, libtool
19142*** is disabling shared libraries support.  We urge you to upgrade GNU
19143*** binutils to release 2.9.1 or newer.  Another option is to modify
19144*** your PATH or compiler configuration so that the native linker is
19145*** used, and then restart.
19146
19147EOF
19148      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19149	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19150	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19151      else
19152	ld_shlibs_F77=no
19153      fi
19154      ;;
19155
19156    sunos4*)
19157      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19158      wlarc=
19159      hardcode_direct_F77=yes
19160      hardcode_shlibpath_var_F77=no
19161      ;;
19162
19163  linux*)
19164    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19165        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19166	archive_cmds_F77="$tmp_archive_cmds"
19167      supports_anon_versioning=no
19168      case `$LD -v 2>/dev/null` in
19169        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19170        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19171        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19172        *\ 2.11.*) ;; # other 2.11 versions
19173        *) supports_anon_versioning=yes ;;
19174      esac
19175      if test $supports_anon_versioning = yes; then
19176        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19177cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19178$echo "local: *; };" >> $output_objdir/$libname.ver~
19179        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19180      else
19181        archive_expsym_cmds_F77="$tmp_archive_cmds"
19182      fi
19183    else
19184      ld_shlibs_F77=no
19185    fi
19186    ;;
19187
19188    *)
19189      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19190	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19191	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19192      else
19193	ld_shlibs_F77=no
19194      fi
19195      ;;
19196    esac
19197
19198    if test "$ld_shlibs_F77" = yes; then
19199      runpath_var=LD_RUN_PATH
19200      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19201      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19202      # ancient GNU ld didn't support --whole-archive et. al.
19203      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19204 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19205      else
19206  	whole_archive_flag_spec_F77=
19207      fi
19208    fi
19209  else
19210    # PORTME fill in a description of your system's linker (not GNU ld)
19211    case $host_os in
19212    aix3*)
19213      allow_undefined_flag_F77=unsupported
19214      always_export_symbols_F77=yes
19215      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'
19216      # Note: this linker hardcodes the directories in LIBPATH if there
19217      # are no directories specified by -L.
19218      hardcode_minus_L_F77=yes
19219      if test "$GCC" = yes && test -z "$link_static_flag"; then
19220	# Neither direct hardcoding nor static linking is supported with a
19221	# broken collect2.
19222	hardcode_direct_F77=unsupported
19223      fi
19224      ;;
19225
19226    aix4* | aix5*)
19227      if test "$host_cpu" = ia64; then
19228	# On IA64, the linker does run time linking by default, so we don't
19229	# have to do anything special.
19230	aix_use_runtimelinking=no
19231	exp_sym_flag='-Bexport'
19232	no_entry_flag=""
19233      else
19234	# If we're using GNU nm, then we don't want the "-C" option.
19235	# -C means demangle to AIX nm, but means don't demangle with GNU nm
19236	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19237	  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'
19238	else
19239	  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'
19240	fi
19241	aix_use_runtimelinking=no
19242
19243	# Test if we are trying to use run time linking or normal
19244	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19245	# need to do runtime linking.
19246	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19247	  for ld_flag in $LDFLAGS; do
19248  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19249  	    aix_use_runtimelinking=yes
19250  	    break
19251  	  fi
19252	  done
19253	esac
19254
19255	exp_sym_flag='-bexport'
19256	no_entry_flag='-bnoentry'
19257      fi
19258
19259      # When large executables or shared objects are built, AIX ld can
19260      # have problems creating the table of contents.  If linking a library
19261      # or program results in "error TOC overflow" add -mminimal-toc to
19262      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19263      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19264
19265      archive_cmds_F77=''
19266      hardcode_direct_F77=yes
19267      hardcode_libdir_separator_F77=':'
19268      link_all_deplibs_F77=yes
19269
19270      if test "$GCC" = yes; then
19271	case $host_os in aix4.012|aix4.012.*)
19272	# We only want to do this on AIX 4.2 and lower, the check
19273	# below for broken collect2 doesn't work under 4.3+
19274	  collect2name=`${CC} -print-prog-name=collect2`
19275	  if test -f "$collect2name" && \
19276  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
19277	  then
19278  	  # We have reworked collect2
19279  	  hardcode_direct_F77=yes
19280	  else
19281  	  # We have old collect2
19282  	  hardcode_direct_F77=unsupported
19283  	  # It fails to find uninstalled libraries when the uninstalled
19284  	  # path is not listed in the libpath.  Setting hardcode_minus_L
19285  	  # to unsupported forces relinking
19286  	  hardcode_minus_L_F77=yes
19287  	  hardcode_libdir_flag_spec_F77='-L$libdir'
19288  	  hardcode_libdir_separator_F77=
19289	  fi
19290	esac
19291	shared_flag='-shared'
19292      else
19293	# not using gcc
19294	if test "$host_cpu" = ia64; then
19295  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19296  	# chokes on -Wl,-G. The following line is correct:
19297	  shared_flag='-G'
19298	else
19299  	if test "$aix_use_runtimelinking" = yes; then
19300	    shared_flag='${wl}-G'
19301	  else
19302	    shared_flag='${wl}-bM:SRE'
19303  	fi
19304	fi
19305      fi
19306
19307      # It seems that -bexpall does not export symbols beginning with
19308      # underscore (_), so it is better to generate a list of symbols to export.
19309      always_export_symbols_F77=yes
19310      if test "$aix_use_runtimelinking" = yes; then
19311	# Warning - without using the other runtime loading flags (-brtl),
19312	# -berok will link without error, but may produce a broken library.
19313	allow_undefined_flag_F77='-berok'
19314       # Determine the default libpath from the value encoded in an empty executable.
19315       cat >conftest.$ac_ext <<_ACEOF
19316      program main
19317
19318      end
19319_ACEOF
19320rm -f conftest.$ac_objext conftest$ac_exeext
19321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19322  (eval $ac_link) 2>conftest.er1
19323  ac_status=$?
19324  grep -v '^ *+' conftest.er1 >conftest.err
19325  rm -f conftest.er1
19326  cat conftest.err >&5
19327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328  (exit $ac_status); } &&
19329	 { ac_try='test -z "$ac_f77_werror_flag"
19330			 || test ! -s conftest.err'
19331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332  (eval $ac_try) 2>&5
19333  ac_status=$?
19334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335  (exit $ac_status); }; } &&
19336	 { ac_try='test -s conftest$ac_exeext'
19337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338  (eval $ac_try) 2>&5
19339  ac_status=$?
19340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341  (exit $ac_status); }; }; then
19342
19343aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19344}'`
19345# Check for a 64-bit object if we didn't find anything.
19346if 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; }
19347}'`; fi
19348else
19349  echo "$as_me: failed program was:" >&5
19350sed 's/^/| /' conftest.$ac_ext >&5
19351
19352fi
19353rm -f conftest.err conftest.$ac_objext \
19354      conftest$ac_exeext conftest.$ac_ext
19355if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19356
19357       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19358	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"
19359       else
19360	if test "$host_cpu" = ia64; then
19361	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19362	  allow_undefined_flag_F77="-z nodefs"
19363	  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"
19364	else
19365	 # Determine the default libpath from the value encoded in an empty executable.
19366	 cat >conftest.$ac_ext <<_ACEOF
19367      program main
19368
19369      end
19370_ACEOF
19371rm -f conftest.$ac_objext conftest$ac_exeext
19372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19373  (eval $ac_link) 2>conftest.er1
19374  ac_status=$?
19375  grep -v '^ *+' conftest.er1 >conftest.err
19376  rm -f conftest.er1
19377  cat conftest.err >&5
19378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379  (exit $ac_status); } &&
19380	 { ac_try='test -z "$ac_f77_werror_flag"
19381			 || test ! -s conftest.err'
19382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19383  (eval $ac_try) 2>&5
19384  ac_status=$?
19385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386  (exit $ac_status); }; } &&
19387	 { ac_try='test -s conftest$ac_exeext'
19388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389  (eval $ac_try) 2>&5
19390  ac_status=$?
19391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392  (exit $ac_status); }; }; then
19393
19394aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19395}'`
19396# Check for a 64-bit object if we didn't find anything.
19397if 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; }
19398}'`; fi
19399else
19400  echo "$as_me: failed program was:" >&5
19401sed 's/^/| /' conftest.$ac_ext >&5
19402
19403fi
19404rm -f conftest.err conftest.$ac_objext \
19405      conftest$ac_exeext conftest.$ac_ext
19406if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19407
19408	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19409	  # Warning - without using the other run time loading flags,
19410	  # -berok will link without error, but may produce a broken library.
19411	  no_undefined_flag_F77=' ${wl}-bernotok'
19412	  allow_undefined_flag_F77=' ${wl}-berok'
19413	  # -bexpall does not export symbols beginning with underscore (_)
19414	  always_export_symbols_F77=yes
19415	  # Exported symbols can be pulled into shared objects from archives
19416	  whole_archive_flag_spec_F77=' '
19417	  archive_cmds_need_lc_F77=yes
19418	  # This is similar to how AIX traditionally builds it's shared libraries.
19419	  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'
19420	fi
19421      fi
19422      ;;
19423
19424    amigaos*)
19425      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)'
19426      hardcode_libdir_flag_spec_F77='-L$libdir'
19427      hardcode_minus_L_F77=yes
19428      # see comment about different semantics on the GNU ld section
19429      ld_shlibs_F77=no
19430      ;;
19431
19432    bsdi[45]*)
19433      export_dynamic_flag_spec_F77=-rdynamic
19434      ;;
19435
19436    cygwin* | mingw* | pw32*)
19437      # When not using gcc, we currently assume that we are using
19438      # Microsoft Visual C++.
19439      # hardcode_libdir_flag_spec is actually meaningless, as there is
19440      # no search path for DLLs.
19441      hardcode_libdir_flag_spec_F77=' '
19442      allow_undefined_flag_F77=unsupported
19443      # Tell ltmain to make .lib files, not .a files.
19444      libext=lib
19445      # Tell ltmain to make .dll files, not .so files.
19446      shrext_cmds=".dll"
19447      # FIXME: Setting linknames here is a bad hack.
19448      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19449      # The linker will automatically build a .lib file if we build a DLL.
19450      old_archive_From_new_cmds_F77='true'
19451      # FIXME: Should let the user specify the lib program.
19452      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19453      fix_srcfile_path='`cygpath -w "$srcfile"`'
19454      enable_shared_with_static_runtimes_F77=yes
19455      ;;
19456
19457    darwin* | rhapsody*)
19458      case "$host_os" in
19459        rhapsody* | darwin1.[012])
19460         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19461         ;;
19462       *) # Darwin 1.3 on
19463         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19464           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19465         else
19466           case ${MACOSX_DEPLOYMENT_TARGET} in
19467             10.[012])
19468               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19469               ;;
19470             10.*)
19471               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19472               ;;
19473           esac
19474         fi
19475         ;;
19476      esac
19477      archive_cmds_need_lc_F77=no
19478      hardcode_direct_F77=no
19479      hardcode_automatic_F77=yes
19480      hardcode_shlibpath_var_F77=unsupported
19481      whole_archive_flag_spec_F77=''
19482      link_all_deplibs_F77=yes
19483    if test "$GCC" = yes ; then
19484    	output_verbose_link_cmd='echo'
19485        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19486      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19487      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19488      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}'
19489      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}'
19490    else
19491      case "$cc_basename" in
19492        xlc*)
19493         output_verbose_link_cmd='echo'
19494         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19495         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19496          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19497         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -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}'
19498          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19499          ;;
19500       *)
19501         ld_shlibs_F77=no
19502          ;;
19503      esac
19504    fi
19505      ;;
19506
19507    dgux*)
19508      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19509      hardcode_libdir_flag_spec_F77='-L$libdir'
19510      hardcode_shlibpath_var_F77=no
19511      ;;
19512
19513    freebsd1*)
19514      ld_shlibs_F77=no
19515      ;;
19516
19517    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19518    # support.  Future versions do this automatically, but an explicit c++rt0.o
19519    # does not break anything, and helps significantly (at the cost of a little
19520    # extra space).
19521    freebsd2.2*)
19522      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19523      hardcode_libdir_flag_spec_F77='-R$libdir'
19524      hardcode_direct_F77=yes
19525      hardcode_shlibpath_var_F77=no
19526      ;;
19527
19528    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19529    freebsd2*)
19530      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19531      hardcode_direct_F77=yes
19532      hardcode_minus_L_F77=yes
19533      hardcode_shlibpath_var_F77=no
19534      ;;
19535
19536    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19537    freebsd* | kfreebsd*-gnu)
19538      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19539      hardcode_libdir_flag_spec_F77='-R$libdir'
19540      hardcode_direct_F77=yes
19541      hardcode_shlibpath_var_F77=no
19542      ;;
19543
19544    hpux9*)
19545      if test "$GCC" = yes; then
19546	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'
19547      else
19548	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'
19549      fi
19550      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19551      hardcode_libdir_separator_F77=:
19552      hardcode_direct_F77=yes
19553
19554      # hardcode_minus_L: Not really in the search PATH,
19555      # but as the default location of the library.
19556      hardcode_minus_L_F77=yes
19557      export_dynamic_flag_spec_F77='${wl}-E'
19558      ;;
19559
19560    hpux10* | hpux11*)
19561      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19562	case "$host_cpu" in
19563	hppa*64*|ia64*)
19564	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19565	  ;;
19566	*)
19567	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19568	  ;;
19569	esac
19570      else
19571	case "$host_cpu" in
19572	hppa*64*|ia64*)
19573	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19574	  ;;
19575	*)
19576	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19577	  ;;
19578	esac
19579      fi
19580      if test "$with_gnu_ld" = no; then
19581	case "$host_cpu" in
19582	hppa*64*)
19583	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19584	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19585	  hardcode_libdir_separator_F77=:
19586	  hardcode_direct_F77=no
19587	  hardcode_shlibpath_var_F77=no
19588	  ;;
19589	ia64*)
19590	  hardcode_libdir_flag_spec_F77='-L$libdir'
19591	  hardcode_direct_F77=no
19592	  hardcode_shlibpath_var_F77=no
19593
19594	  # hardcode_minus_L: Not really in the search PATH,
19595	  # but as the default location of the library.
19596	  hardcode_minus_L_F77=yes
19597	  ;;
19598	*)
19599	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19600	  hardcode_libdir_separator_F77=:
19601	  hardcode_direct_F77=yes
19602	  export_dynamic_flag_spec_F77='${wl}-E'
19603
19604	  # hardcode_minus_L: Not really in the search PATH,
19605	  # but as the default location of the library.
19606	  hardcode_minus_L_F77=yes
19607	  ;;
19608	esac
19609      fi
19610      ;;
19611
19612    irix5* | irix6* | nonstopux*)
19613      if test "$GCC" = yes; then
19614	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'
19615      else
19616	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'
19617	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19618      fi
19619      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19620      hardcode_libdir_separator_F77=:
19621      link_all_deplibs_F77=yes
19622      ;;
19623
19624    netbsd*)
19625      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19626	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19627      else
19628	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19629      fi
19630      hardcode_libdir_flag_spec_F77='-R$libdir'
19631      hardcode_direct_F77=yes
19632      hardcode_shlibpath_var_F77=no
19633      ;;
19634
19635    newsos6)
19636      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19637      hardcode_direct_F77=yes
19638      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19639      hardcode_libdir_separator_F77=:
19640      hardcode_shlibpath_var_F77=no
19641      ;;
19642
19643    openbsd*)
19644      hardcode_direct_F77=yes
19645      hardcode_shlibpath_var_F77=no
19646      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19647	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19648	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19649	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19650	export_dynamic_flag_spec_F77='${wl}-E'
19651      else
19652       case $host_os in
19653	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19654	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19655	   hardcode_libdir_flag_spec_F77='-R$libdir'
19656	   ;;
19657	 *)
19658	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19659	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19660	   ;;
19661       esac
19662      fi
19663      ;;
19664
19665    os2*)
19666      hardcode_libdir_flag_spec_F77='-L$libdir'
19667      hardcode_minus_L_F77=yes
19668      allow_undefined_flag_F77=unsupported
19669      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'
19670      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19671      ;;
19672
19673    osf3*)
19674      if test "$GCC" = yes; then
19675	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19676	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'
19677      else
19678	allow_undefined_flag_F77=' -expect_unresolved \*'
19679	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'
19680      fi
19681      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19682      hardcode_libdir_separator_F77=:
19683      ;;
19684
19685    osf4* | osf5*)	# as osf3* with the addition of -msym flag
19686      if test "$GCC" = yes; then
19687	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19688	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'
19689	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19690      else
19691	allow_undefined_flag_F77=' -expect_unresolved \*'
19692	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'
19693	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~
19694	$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'
19695
19696	# Both c and cxx compiler support -rpath directly
19697	hardcode_libdir_flag_spec_F77='-rpath $libdir'
19698      fi
19699      hardcode_libdir_separator_F77=:
19700      ;;
19701
19702    sco3.2v5*)
19703      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19704      hardcode_shlibpath_var_F77=no
19705      export_dynamic_flag_spec_F77='${wl}-Bexport'
19706      runpath_var=LD_RUN_PATH
19707      hardcode_runpath_var=yes
19708      ;;
19709
19710    solaris*)
19711      no_undefined_flag_F77=' -z text'
19712      if test "$GCC" = yes; then
19713	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19714	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19715	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19716      else
19717	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19718	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19719  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19720      fi
19721      hardcode_libdir_flag_spec_F77='-R$libdir'
19722      hardcode_shlibpath_var_F77=no
19723      case $host_os in
19724      solaris2.[0-5] | solaris2.[0-5].*) ;;
19725      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19726	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19727      esac
19728      link_all_deplibs_F77=yes
19729      ;;
19730
19731    sunos4*)
19732      if test "x$host_vendor" = xsequent; then
19733	# Use $CC to link under sequent, because it throws in some extra .o
19734	# files that make .init and .fini sections work.
19735	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19736      else
19737	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19738      fi
19739      hardcode_libdir_flag_spec_F77='-L$libdir'
19740      hardcode_direct_F77=yes
19741      hardcode_minus_L_F77=yes
19742      hardcode_shlibpath_var_F77=no
19743      ;;
19744
19745    sysv4)
19746      case $host_vendor in
19747	sni)
19748	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19749	  hardcode_direct_F77=yes # is this really true???
19750	;;
19751	siemens)
19752	  ## LD is ld it makes a PLAMLIB
19753	  ## CC just makes a GrossModule.
19754	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19755	  reload_cmds_F77='$CC -r -o $output$reload_objs'
19756	  hardcode_direct_F77=no
19757        ;;
19758	motorola)
19759	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19760	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19761	;;
19762      esac
19763      runpath_var='LD_RUN_PATH'
19764      hardcode_shlibpath_var_F77=no
19765      ;;
19766
19767    sysv4.3*)
19768      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19769      hardcode_shlibpath_var_F77=no
19770      export_dynamic_flag_spec_F77='-Bexport'
19771      ;;
19772
19773    sysv4*MP*)
19774      if test -d /usr/nec; then
19775	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19776	hardcode_shlibpath_var_F77=no
19777	runpath_var=LD_RUN_PATH
19778	hardcode_runpath_var=yes
19779	ld_shlibs_F77=yes
19780      fi
19781      ;;
19782
19783    sysv4.2uw2*)
19784      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19785      hardcode_direct_F77=yes
19786      hardcode_minus_L_F77=no
19787      hardcode_shlibpath_var_F77=no
19788      hardcode_runpath_var=yes
19789      runpath_var=LD_RUN_PATH
19790      ;;
19791
19792   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19793      no_undefined_flag_F77='${wl}-z ${wl}text'
19794      if test "$GCC" = yes; then
19795	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19796      else
19797	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19798      fi
19799      runpath_var='LD_RUN_PATH'
19800      hardcode_shlibpath_var_F77=no
19801      ;;
19802
19803    sysv5*)
19804      no_undefined_flag_F77=' -z text'
19805      # $CC -shared without GNU ld will not create a library from C++
19806      # object files and a static libstdc++, better avoid it by now
19807      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19808      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19809  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19810      hardcode_libdir_flag_spec_F77=
19811      hardcode_shlibpath_var_F77=no
19812      runpath_var='LD_RUN_PATH'
19813      ;;
19814
19815    uts4*)
19816      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19817      hardcode_libdir_flag_spec_F77='-L$libdir'
19818      hardcode_shlibpath_var_F77=no
19819      ;;
19820
19821    *)
19822      ld_shlibs_F77=no
19823      ;;
19824    esac
19825  fi
19826
19827echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19828echo "${ECHO_T}$ld_shlibs_F77" >&6
19829test "$ld_shlibs_F77" = no && can_build_shared=no
19830
19831variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19832if test "$GCC" = yes; then
19833  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19834fi
19835
19836#
19837# Do we need to explicitly link libc?
19838#
19839case "x$archive_cmds_need_lc_F77" in
19840x|xyes)
19841  # Assume -lc should be added
19842  archive_cmds_need_lc_F77=yes
19843
19844  if test "$enable_shared" = yes && test "$GCC" = yes; then
19845    case $archive_cmds_F77 in
19846    *'~'*)
19847      # FIXME: we may have to deal with multi-command sequences.
19848      ;;
19849    '$CC '*)
19850      # Test whether the compiler implicitly links with -lc since on some
19851      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19852      # to ld, don't add -lc before -lgcc.
19853      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19854echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19855      $rm conftest*
19856      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19857
19858      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19859  (eval $ac_compile) 2>&5
19860  ac_status=$?
19861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862  (exit $ac_status); } 2>conftest.err; then
19863        soname=conftest
19864        lib=conftest
19865        libobjs=conftest.$ac_objext
19866        deplibs=
19867        wl=$lt_prog_compiler_wl_F77
19868        compiler_flags=-v
19869        linker_flags=-v
19870        verstring=
19871        output_objdir=.
19872        libname=conftest
19873        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19874        allow_undefined_flag_F77=
19875        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19876  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19877  ac_status=$?
19878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879  (exit $ac_status); }
19880        then
19881	  archive_cmds_need_lc_F77=no
19882        else
19883	  archive_cmds_need_lc_F77=yes
19884        fi
19885        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19886      else
19887        cat conftest.err 1>&5
19888      fi
19889      $rm conftest*
19890      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19891echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19892      ;;
19893    esac
19894  fi
19895  ;;
19896esac
19897
19898echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19899echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19900library_names_spec=
19901libname_spec='lib$name'
19902soname_spec=
19903shrext_cmds=".so"
19904postinstall_cmds=
19905postuninstall_cmds=
19906finish_cmds=
19907finish_eval=
19908shlibpath_var=
19909shlibpath_overrides_runpath=unknown
19910version_type=none
19911dynamic_linker="$host_os ld.so"
19912sys_lib_dlsearch_path_spec="/lib /usr/lib"
19913if test "$GCC" = yes; then
19914  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19915  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19916    # if the path contains ";" then we assume it to be the separator
19917    # otherwise default to the standard path separator (i.e. ":") - it is
19918    # assumed that no part of a normal pathname contains ";" but that should
19919    # okay in the real world where ";" in dirpaths is itself problematic.
19920    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19921  else
19922    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19923  fi
19924else
19925  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19926fi
19927need_lib_prefix=unknown
19928hardcode_into_libs=no
19929
19930# when you set need_version to no, make sure it does not cause -set_version
19931# flags to be left without arguments
19932need_version=unknown
19933
19934case $host_os in
19935aix3*)
19936  version_type=linux
19937  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19938  shlibpath_var=LIBPATH
19939
19940  # AIX 3 has no versioning support, so we append a major version to the name.
19941  soname_spec='${libname}${release}${shared_ext}$major'
19942  ;;
19943
19944aix4* | aix5*)
19945  version_type=linux
19946  need_lib_prefix=no
19947  need_version=no
19948  hardcode_into_libs=yes
19949  if test "$host_cpu" = ia64; then
19950    # AIX 5 supports IA64
19951    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19952    shlibpath_var=LD_LIBRARY_PATH
19953  else
19954    # With GCC up to 2.95.x, collect2 would create an import file
19955    # for dependence libraries.  The import file would start with
19956    # the line `#! .'.  This would cause the generated library to
19957    # depend on `.', always an invalid library.  This was fixed in
19958    # development snapshots of GCC prior to 3.0.
19959    case $host_os in
19960      aix4 | aix4.[01] | aix4.[01].*)
19961      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19962	   echo ' yes '
19963	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19964	:
19965      else
19966	can_build_shared=no
19967      fi
19968      ;;
19969    esac
19970    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19971    # soname into executable. Probably we can add versioning support to
19972    # collect2, so additional links can be useful in future.
19973    if test "$aix_use_runtimelinking" = yes; then
19974      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19975      # instead of lib<name>.a to let people know that these are not
19976      # typical AIX shared libraries.
19977      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19978    else
19979      # We preserve .a as extension for shared libraries through AIX4.2
19980      # and later when we are not doing run time linking.
19981      library_names_spec='${libname}${release}.a $libname.a'
19982      soname_spec='${libname}${release}${shared_ext}$major'
19983    fi
19984    shlibpath_var=LIBPATH
19985  fi
19986  ;;
19987
19988amigaos*)
19989  library_names_spec='$libname.ixlibrary $libname.a'
19990  # Create ${libname}_ixlibrary.a entries in /sys/libs.
19991  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'
19992  ;;
19993
19994beos*)
19995  library_names_spec='${libname}${shared_ext}'
19996  dynamic_linker="$host_os ld.so"
19997  shlibpath_var=LIBRARY_PATH
19998  ;;
19999
20000bsdi[45]*)
20001  version_type=linux
20002  need_version=no
20003  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20004  soname_spec='${libname}${release}${shared_ext}$major'
20005  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20006  shlibpath_var=LD_LIBRARY_PATH
20007  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20008  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20009  # the default ld.so.conf also contains /usr/contrib/lib and
20010  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20011  # libtool to hard-code these into programs
20012  ;;
20013
20014cygwin* | mingw* | pw32*)
20015  version_type=windows
20016  shrext_cmds=".dll"
20017  need_version=no
20018  need_lib_prefix=no
20019
20020  case $GCC,$host_os in
20021  yes,cygwin* | yes,mingw* | yes,pw32*)
20022    library_names_spec='$libname.dll.a'
20023    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20024    postinstall_cmds='base_file=`basename \${file}`~
20025      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20026      dldir=$destdir/`dirname \$dlpath`~
20027      test -d \$dldir || mkdir -p \$dldir~
20028      $install_prog $dir/$dlname \$dldir/$dlname'
20029    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20030      dlpath=$dir/\$dldll~
20031       $rm \$dlpath'
20032    shlibpath_overrides_runpath=yes
20033
20034    case $host_os in
20035    cygwin*)
20036      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20037      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20038      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20039      ;;
20040    mingw*)
20041      # MinGW DLLs use traditional 'lib' prefix
20042      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20043      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20044      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20045        # It is most probably a Windows format PATH printed by
20046        # mingw gcc, but we are running on Cygwin. Gcc prints its search
20047        # path with ; separators, and with drive letters. We can handle the
20048        # drive letters (cygwin fileutils understands them), so leave them,
20049        # especially as we might pass files found there to a mingw objdump,
20050        # which wouldn't understand a cygwinified path. Ahh.
20051        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20052      else
20053        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20054      fi
20055      ;;
20056    pw32*)
20057      # pw32 DLLs use 'pw' prefix rather than 'lib'
20058      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20059      ;;
20060    esac
20061    ;;
20062
20063  *)
20064    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20065    ;;
20066  esac
20067  dynamic_linker='Win32 ld.exe'
20068  # FIXME: first we should search . and the directory the executable is in
20069  shlibpath_var=PATH
20070  ;;
20071
20072darwin* | rhapsody*)
20073  dynamic_linker="$host_os dyld"
20074  version_type=darwin
20075  need_lib_prefix=no
20076  need_version=no
20077  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20078  soname_spec='${libname}${release}${major}$shared_ext'
20079  shlibpath_overrides_runpath=yes
20080  shlibpath_var=DYLD_LIBRARY_PATH
20081  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20082  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20083  if test "$GCC" = yes; then
20084    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"`
20085  else
20086    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20087  fi
20088  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20089  ;;
20090
20091dgux*)
20092  version_type=linux
20093  need_lib_prefix=no
20094  need_version=no
20095  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20096  soname_spec='${libname}${release}${shared_ext}$major'
20097  shlibpath_var=LD_LIBRARY_PATH
20098  ;;
20099
20100freebsd1*)
20101  dynamic_linker=no
20102  ;;
20103
20104kfreebsd*-gnu)
20105  version_type=linux
20106  need_lib_prefix=no
20107  need_version=no
20108  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20109  soname_spec='${libname}${release}${shared_ext}$major'
20110  shlibpath_var=LD_LIBRARY_PATH
20111  shlibpath_overrides_runpath=no
20112  hardcode_into_libs=yes
20113  dynamic_linker='GNU ld.so'
20114  ;;
20115
20116freebsd*)
20117  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20118  version_type=freebsd-$objformat
20119  case $version_type in
20120    freebsd-elf*)
20121      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20122      need_version=no
20123      need_lib_prefix=no
20124      ;;
20125    freebsd-*)
20126      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20127      need_version=yes
20128      ;;
20129  esac
20130  shlibpath_var=LD_LIBRARY_PATH
20131  case $host_os in
20132  freebsd2*)
20133    shlibpath_overrides_runpath=yes
20134    ;;
20135  freebsd3.01* | freebsdelf3.01*)
20136    shlibpath_overrides_runpath=yes
20137    hardcode_into_libs=yes
20138    ;;
20139  *) # from 3.2 on
20140    shlibpath_overrides_runpath=no
20141    hardcode_into_libs=yes
20142    ;;
20143  esac
20144  ;;
20145
20146gnu*)
20147  version_type=linux
20148  need_lib_prefix=no
20149  need_version=no
20150  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20151  soname_spec='${libname}${release}${shared_ext}$major'
20152  shlibpath_var=LD_LIBRARY_PATH
20153  hardcode_into_libs=yes
20154  ;;
20155
20156hpux9* | hpux10* | hpux11*)
20157  # Give a soname corresponding to the major version so that dld.sl refuses to
20158  # link against other versions.
20159  version_type=sunos
20160  need_lib_prefix=no
20161  need_version=no
20162  case "$host_cpu" in
20163  ia64*)
20164    shrext_cmds='.so'
20165    hardcode_into_libs=yes
20166    dynamic_linker="$host_os dld.so"
20167    shlibpath_var=LD_LIBRARY_PATH
20168    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20169    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20170    soname_spec='${libname}${release}${shared_ext}$major'
20171    if test "X$HPUX_IA64_MODE" = X32; then
20172      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20173    else
20174      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20175    fi
20176    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20177    ;;
20178   hppa*64*)
20179     shrext_cmds='.sl'
20180     hardcode_into_libs=yes
20181     dynamic_linker="$host_os dld.sl"
20182     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20183     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20184     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20185     soname_spec='${libname}${release}${shared_ext}$major'
20186     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20187     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20188     ;;
20189   *)
20190    shrext_cmds='.sl'
20191    dynamic_linker="$host_os dld.sl"
20192    shlibpath_var=SHLIB_PATH
20193    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20194    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20195    soname_spec='${libname}${release}${shared_ext}$major'
20196    ;;
20197  esac
20198  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20199  postinstall_cmds='chmod 555 $lib'
20200  ;;
20201
20202irix5* | irix6* | nonstopux*)
20203  case $host_os in
20204    nonstopux*) version_type=nonstopux ;;
20205    *)
20206	if test "$lt_cv_prog_gnu_ld" = yes; then
20207		version_type=linux
20208	else
20209		version_type=irix
20210	fi ;;
20211  esac
20212  need_lib_prefix=no
20213  need_version=no
20214  soname_spec='${libname}${release}${shared_ext}$major'
20215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20216  case $host_os in
20217  irix5* | nonstopux*)
20218    libsuff= shlibsuff=
20219    ;;
20220  *)
20221    case $LD in # libtool.m4 will add one of these switches to LD
20222    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20223      libsuff= shlibsuff= libmagic=32-bit;;
20224    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20225      libsuff=32 shlibsuff=N32 libmagic=N32;;
20226    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20227      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20228    *) libsuff= shlibsuff= libmagic=never-match;;
20229    esac
20230    ;;
20231  esac
20232  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20233  shlibpath_overrides_runpath=no
20234  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20235  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20236  hardcode_into_libs=yes
20237  ;;
20238
20239# No shared lib support for Linux oldld, aout, or coff.
20240linux*oldld* | linux*aout* | linux*coff*)
20241  dynamic_linker=no
20242  ;;
20243
20244# This must be Linux ELF.
20245linux*)
20246  version_type=linux
20247  need_lib_prefix=no
20248  need_version=no
20249  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20250  soname_spec='${libname}${release}${shared_ext}$major'
20251  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20252  shlibpath_var=LD_LIBRARY_PATH
20253  shlibpath_overrides_runpath=no
20254  # This implies no fast_install, which is unacceptable.
20255  # Some rework will be needed to allow for fast_install
20256  # before this can be enabled.
20257  hardcode_into_libs=yes
20258
20259  # Append ld.so.conf contents to the search path
20260  if test -f /etc/ld.so.conf; then
20261    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20262    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20263  fi
20264
20265  # We used to test for /lib/ld.so.1 and disable shared libraries on
20266  # powerpc, because MkLinux only supported shared libraries with the
20267  # GNU dynamic linker.  Since this was broken with cross compilers,
20268  # most powerpc-linux boxes support dynamic linking these days and
20269  # people can always --disable-shared, the test was removed, and we
20270  # assume the GNU/Linux dynamic linker is in use.
20271  dynamic_linker='GNU/Linux ld.so'
20272  ;;
20273
20274knetbsd*-gnu)
20275  version_type=linux
20276  need_lib_prefix=no
20277  need_version=no
20278  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20279  soname_spec='${libname}${release}${shared_ext}$major'
20280  shlibpath_var=LD_LIBRARY_PATH
20281  shlibpath_overrides_runpath=no
20282  hardcode_into_libs=yes
20283  dynamic_linker='GNU ld.so'
20284  ;;
20285
20286netbsd*)
20287  version_type=sunos
20288  need_lib_prefix=no
20289  need_version=no
20290  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20291    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20292    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20293    dynamic_linker='NetBSD (a.out) ld.so'
20294  else
20295    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20296    soname_spec='${libname}${release}${shared_ext}$major'
20297    dynamic_linker='NetBSD ld.elf_so'
20298  fi
20299  shlibpath_var=LD_LIBRARY_PATH
20300  shlibpath_overrides_runpath=yes
20301  hardcode_into_libs=yes
20302  ;;
20303
20304newsos6)
20305  version_type=linux
20306  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20307  shlibpath_var=LD_LIBRARY_PATH
20308  shlibpath_overrides_runpath=yes
20309  ;;
20310
20311nto-qnx*)
20312  version_type=linux
20313  need_lib_prefix=no
20314  need_version=no
20315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20316  soname_spec='${libname}${release}${shared_ext}$major'
20317  shlibpath_var=LD_LIBRARY_PATH
20318  shlibpath_overrides_runpath=yes
20319  ;;
20320
20321openbsd*)
20322  version_type=sunos
20323  need_lib_prefix=no
20324  need_version=no
20325  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20326  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20327  shlibpath_var=LD_LIBRARY_PATH
20328  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20329    case $host_os in
20330      openbsd2.[89] | openbsd2.[89].*)
20331	shlibpath_overrides_runpath=no
20332	;;
20333      *)
20334	shlibpath_overrides_runpath=yes
20335	;;
20336      esac
20337  else
20338    shlibpath_overrides_runpath=yes
20339  fi
20340  ;;
20341
20342os2*)
20343  libname_spec='$name'
20344  shrext_cmds=".dll"
20345  need_lib_prefix=no
20346  library_names_spec='$libname${shared_ext} $libname.a'
20347  dynamic_linker='OS/2 ld.exe'
20348  shlibpath_var=LIBPATH
20349  ;;
20350
20351osf3* | osf4* | osf5*)
20352  version_type=osf
20353  need_lib_prefix=no
20354  need_version=no
20355  soname_spec='${libname}${release}${shared_ext}$major'
20356  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20357  shlibpath_var=LD_LIBRARY_PATH
20358  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20359  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20360  ;;
20361
20362sco3.2v5*)
20363  version_type=osf
20364  soname_spec='${libname}${release}${shared_ext}$major'
20365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20366  shlibpath_var=LD_LIBRARY_PATH
20367  ;;
20368
20369solaris*)
20370  version_type=linux
20371  need_lib_prefix=no
20372  need_version=no
20373  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20374  soname_spec='${libname}${release}${shared_ext}$major'
20375  shlibpath_var=LD_LIBRARY_PATH
20376  shlibpath_overrides_runpath=yes
20377  hardcode_into_libs=yes
20378  # ldd complains unless libraries are executable
20379  postinstall_cmds='chmod +x $lib'
20380  ;;
20381
20382sunos4*)
20383  version_type=sunos
20384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20385  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20386  shlibpath_var=LD_LIBRARY_PATH
20387  shlibpath_overrides_runpath=yes
20388  if test "$with_gnu_ld" = yes; then
20389    need_lib_prefix=no
20390  fi
20391  need_version=yes
20392  ;;
20393
20394sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20395  version_type=linux
20396  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20397  soname_spec='${libname}${release}${shared_ext}$major'
20398  shlibpath_var=LD_LIBRARY_PATH
20399  case $host_vendor in
20400    sni)
20401      shlibpath_overrides_runpath=no
20402      need_lib_prefix=no
20403      export_dynamic_flag_spec='${wl}-Blargedynsym'
20404      runpath_var=LD_RUN_PATH
20405      ;;
20406    siemens)
20407      need_lib_prefix=no
20408      ;;
20409    motorola)
20410      need_lib_prefix=no
20411      need_version=no
20412      shlibpath_overrides_runpath=no
20413      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20414      ;;
20415  esac
20416  ;;
20417
20418sysv4*MP*)
20419  if test -d /usr/nec ;then
20420    version_type=linux
20421    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20422    soname_spec='$libname${shared_ext}.$major'
20423    shlibpath_var=LD_LIBRARY_PATH
20424  fi
20425  ;;
20426
20427uts4*)
20428  version_type=linux
20429  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20430  soname_spec='${libname}${release}${shared_ext}$major'
20431  shlibpath_var=LD_LIBRARY_PATH
20432  ;;
20433
20434*)
20435  dynamic_linker=no
20436  ;;
20437esac
20438echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20439echo "${ECHO_T}$dynamic_linker" >&6
20440test "$dynamic_linker" = no && can_build_shared=no
20441
20442echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20443echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20444hardcode_action_F77=
20445if test -n "$hardcode_libdir_flag_spec_F77" || \
20446   test -n "$runpath_var_F77" || \
20447   test "X$hardcode_automatic_F77" = "Xyes" ; then
20448
20449  # We can hardcode non-existant directories.
20450  if test "$hardcode_direct_F77" != no &&
20451     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20452     # have to relink, otherwise we might link with an installed library
20453     # when we should be linking with a yet-to-be-installed one
20454     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20455     test "$hardcode_minus_L_F77" != no; then
20456    # Linking always hardcodes the temporary library directory.
20457    hardcode_action_F77=relink
20458  else
20459    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20460    hardcode_action_F77=immediate
20461  fi
20462else
20463  # We cannot hardcode anything, or else we can only hardcode existing
20464  # directories.
20465  hardcode_action_F77=unsupported
20466fi
20467echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20468echo "${ECHO_T}$hardcode_action_F77" >&6
20469
20470if test "$hardcode_action_F77" = relink; then
20471  # Fast installation is not supported
20472  enable_fast_install=no
20473elif test "$shlibpath_overrides_runpath" = yes ||
20474     test "$enable_shared" = no; then
20475  # Fast installation is not necessary
20476  enable_fast_install=needless
20477fi
20478
20479striplib=
20480old_striplib=
20481echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20482echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20483if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20484  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20485  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20486  echo "$as_me:$LINENO: result: yes" >&5
20487echo "${ECHO_T}yes" >&6
20488else
20489# FIXME - insert some real tests, host_os isn't really good enough
20490  case $host_os in
20491   darwin*)
20492       if test -n "$STRIP" ; then
20493         striplib="$STRIP -x"
20494         echo "$as_me:$LINENO: result: yes" >&5
20495echo "${ECHO_T}yes" >&6
20496       else
20497  echo "$as_me:$LINENO: result: no" >&5
20498echo "${ECHO_T}no" >&6
20499fi
20500       ;;
20501   *)
20502  echo "$as_me:$LINENO: result: no" >&5
20503echo "${ECHO_T}no" >&6
20504    ;;
20505  esac
20506fi
20507
20508
20509
20510# The else clause should only fire when bootstrapping the
20511# libtool distribution, otherwise you forgot to ship ltmain.sh
20512# with your package, and you will get complaints that there are
20513# no rules to generate ltmain.sh.
20514if test -f "$ltmain"; then
20515  # See if we are running on zsh, and set the options which allow our commands through
20516  # without removal of \ escapes.
20517  if test -n "${ZSH_VERSION+set}" ; then
20518    setopt NO_GLOB_SUBST
20519  fi
20520  # Now quote all the things that may contain metacharacters while being
20521  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20522  # variables and quote the copies for generation of the libtool script.
20523  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20524    SED SHELL STRIP \
20525    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20526    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20527    deplibs_check_method reload_flag reload_cmds need_locks \
20528    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20529    lt_cv_sys_global_symbol_to_c_name_address \
20530    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20531    old_postinstall_cmds old_postuninstall_cmds \
20532    compiler_F77 \
20533    CC_F77 \
20534    LD_F77 \
20535    lt_prog_compiler_wl_F77 \
20536    lt_prog_compiler_pic_F77 \
20537    lt_prog_compiler_static_F77 \
20538    lt_prog_compiler_no_builtin_flag_F77 \
20539    export_dynamic_flag_spec_F77 \
20540    thread_safe_flag_spec_F77 \
20541    whole_archive_flag_spec_F77 \
20542    enable_shared_with_static_runtimes_F77 \
20543    old_archive_cmds_F77 \
20544    old_archive_from_new_cmds_F77 \
20545    predep_objects_F77 \
20546    postdep_objects_F77 \
20547    predeps_F77 \
20548    postdeps_F77 \
20549    compiler_lib_search_path_F77 \
20550    archive_cmds_F77 \
20551    archive_expsym_cmds_F77 \
20552    postinstall_cmds_F77 \
20553    postuninstall_cmds_F77 \
20554    old_archive_from_expsyms_cmds_F77 \
20555    allow_undefined_flag_F77 \
20556    no_undefined_flag_F77 \
20557    export_symbols_cmds_F77 \
20558    hardcode_libdir_flag_spec_F77 \
20559    hardcode_libdir_flag_spec_ld_F77 \
20560    hardcode_libdir_separator_F77 \
20561    hardcode_automatic_F77 \
20562    module_cmds_F77 \
20563    module_expsym_cmds_F77 \
20564    lt_cv_prog_compiler_c_o_F77 \
20565    exclude_expsyms_F77 \
20566    include_expsyms_F77; do
20567
20568    case $var in
20569    old_archive_cmds_F77 | \
20570    old_archive_from_new_cmds_F77 | \
20571    archive_cmds_F77 | \
20572    archive_expsym_cmds_F77 | \
20573    module_cmds_F77 | \
20574    module_expsym_cmds_F77 | \
20575    old_archive_from_expsyms_cmds_F77 | \
20576    export_symbols_cmds_F77 | \
20577    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20578    postinstall_cmds | postuninstall_cmds | \
20579    old_postinstall_cmds | old_postuninstall_cmds | \
20580    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20581      # Double-quote double-evaled strings.
20582      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20583      ;;
20584    *)
20585      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20586      ;;
20587    esac
20588  done
20589
20590  case $lt_echo in
20591  *'\$0 --fallback-echo"')
20592    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20593    ;;
20594  esac
20595
20596cfgfile="$ofile"
20597
20598  cat <<__EOF__ >> "$cfgfile"
20599# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20600
20601# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20602
20603# Shell to use when invoking shell scripts.
20604SHELL=$lt_SHELL
20605
20606# Whether or not to build shared libraries.
20607build_libtool_libs=$enable_shared
20608
20609# Whether or not to build static libraries.
20610build_old_libs=$enable_static
20611
20612# Whether or not to add -lc for building shared libraries.
20613build_libtool_need_lc=$archive_cmds_need_lc_F77
20614
20615# Whether or not to disallow shared libs when runtime libs are static
20616allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20617
20618# Whether or not to optimize for fast installation.
20619fast_install=$enable_fast_install
20620
20621# The host system.
20622host_alias=$host_alias
20623host=$host
20624
20625# An echo program that does not interpret backslashes.
20626echo=$lt_echo
20627
20628# The archiver.
20629AR=$lt_AR
20630AR_FLAGS=$lt_AR_FLAGS
20631
20632# A C compiler.
20633LTCC=$lt_LTCC
20634
20635# A language-specific compiler.
20636CC=$lt_compiler_F77
20637
20638# Is the compiler the GNU C compiler?
20639with_gcc=$GCC_F77
20640
20641# An ERE matcher.
20642EGREP=$lt_EGREP
20643
20644# The linker used to build libraries.
20645LD=$lt_LD_F77
20646
20647# Whether we need hard or soft links.
20648LN_S=$lt_LN_S
20649
20650# A BSD-compatible nm program.
20651NM=$lt_NM
20652
20653# A symbol stripping program
20654STRIP=$lt_STRIP
20655
20656# Used to examine libraries when file_magic_cmd begins "file"
20657MAGIC_CMD=$MAGIC_CMD
20658
20659# Used on cygwin: DLL creation program.
20660DLLTOOL="$DLLTOOL"
20661
20662# Used on cygwin: object dumper.
20663OBJDUMP="$OBJDUMP"
20664
20665# Used on cygwin: assembler.
20666AS="$AS"
20667
20668# The name of the directory that contains temporary libtool files.
20669objdir=$objdir
20670
20671# How to create reloadable object files.
20672reload_flag=$lt_reload_flag
20673reload_cmds=$lt_reload_cmds
20674
20675# How to pass a linker flag through the compiler.
20676wl=$lt_lt_prog_compiler_wl_F77
20677
20678# Object file suffix (normally "o").
20679objext="$ac_objext"
20680
20681# Old archive suffix (normally "a").
20682libext="$libext"
20683
20684# Shared library suffix (normally ".so").
20685shrext_cmds='$shrext_cmds'
20686
20687# Executable file suffix (normally "").
20688exeext="$exeext"
20689
20690# Additional compiler flags for building library objects.
20691pic_flag=$lt_lt_prog_compiler_pic_F77
20692pic_mode=$pic_mode
20693
20694# What is the maximum length of a command?
20695max_cmd_len=$lt_cv_sys_max_cmd_len
20696
20697# Does compiler simultaneously support -c and -o options?
20698compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20699
20700# Must we lock files when doing compilation ?
20701need_locks=$lt_need_locks
20702
20703# Do we need the lib prefix for modules?
20704need_lib_prefix=$need_lib_prefix
20705
20706# Do we need a version for libraries?
20707need_version=$need_version
20708
20709# Whether dlopen is supported.
20710dlopen_support=$enable_dlopen
20711
20712# Whether dlopen of programs is supported.
20713dlopen_self=$enable_dlopen_self
20714
20715# Whether dlopen of statically linked programs is supported.
20716dlopen_self_static=$enable_dlopen_self_static
20717
20718# Compiler flag to prevent dynamic linking.
20719link_static_flag=$lt_lt_prog_compiler_static_F77
20720
20721# Compiler flag to turn off builtin functions.
20722no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20723
20724# Compiler flag to allow reflexive dlopens.
20725export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20726
20727# Compiler flag to generate shared objects directly from archives.
20728whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20729
20730# Compiler flag to generate thread-safe objects.
20731thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20732
20733# Library versioning type.
20734version_type=$version_type
20735
20736# Format of library name prefix.
20737libname_spec=$lt_libname_spec
20738
20739# List of archive names.  First name is the real one, the rest are links.
20740# The last name is the one that the linker finds with -lNAME.
20741library_names_spec=$lt_library_names_spec
20742
20743# The coded name of the library, if different from the real name.
20744soname_spec=$lt_soname_spec
20745
20746# Commands used to build and install an old-style archive.
20747RANLIB=$lt_RANLIB
20748old_archive_cmds=$lt_old_archive_cmds_F77
20749old_postinstall_cmds=$lt_old_postinstall_cmds
20750old_postuninstall_cmds=$lt_old_postuninstall_cmds
20751
20752# Create an old-style archive from a shared archive.
20753old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20754
20755# Create a temporary old-style archive to link instead of a shared archive.
20756old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20757
20758# Commands used to build and install a shared archive.
20759archive_cmds=$lt_archive_cmds_F77
20760archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20761postinstall_cmds=$lt_postinstall_cmds
20762postuninstall_cmds=$lt_postuninstall_cmds
20763
20764# Commands used to build a loadable module (assumed same as above if empty)
20765module_cmds=$lt_module_cmds_F77
20766module_expsym_cmds=$lt_module_expsym_cmds_F77
20767
20768# Commands to strip libraries.
20769old_striplib=$lt_old_striplib
20770striplib=$lt_striplib
20771
20772# Dependencies to place before the objects being linked to create a
20773# shared library.
20774predep_objects=$lt_predep_objects_F77
20775
20776# Dependencies to place after the objects being linked to create a
20777# shared library.
20778postdep_objects=$lt_postdep_objects_F77
20779
20780# Dependencies to place before the objects being linked to create a
20781# shared library.
20782predeps=$lt_predeps_F77
20783
20784# Dependencies to place after the objects being linked to create a
20785# shared library.
20786postdeps=$lt_postdeps_F77
20787
20788# The library search path used internally by the compiler when linking
20789# a shared library.
20790compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20791
20792# Method to check whether dependent libraries are shared objects.
20793deplibs_check_method=$lt_deplibs_check_method
20794
20795# Command to use when deplibs_check_method == file_magic.
20796file_magic_cmd=$lt_file_magic_cmd
20797
20798# Flag that allows shared libraries with undefined symbols to be built.
20799allow_undefined_flag=$lt_allow_undefined_flag_F77
20800
20801# Flag that forces no undefined symbols.
20802no_undefined_flag=$lt_no_undefined_flag_F77
20803
20804# Commands used to finish a libtool library installation in a directory.
20805finish_cmds=$lt_finish_cmds
20806
20807# Same as above, but a single script fragment to be evaled but not shown.
20808finish_eval=$lt_finish_eval
20809
20810# Take the output of nm and produce a listing of raw symbols and C names.
20811global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20812
20813# Transform the output of nm in a proper C declaration
20814global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20815
20816# Transform the output of nm in a C name address pair
20817global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20818
20819# This is the shared library runtime path variable.
20820runpath_var=$runpath_var
20821
20822# This is the shared library path variable.
20823shlibpath_var=$shlibpath_var
20824
20825# Is shlibpath searched before the hard-coded library search path?
20826shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20827
20828# How to hardcode a shared library path into an executable.
20829hardcode_action=$hardcode_action_F77
20830
20831# Whether we should hardcode library paths into libraries.
20832hardcode_into_libs=$hardcode_into_libs
20833
20834# Flag to hardcode \$libdir into a binary during linking.
20835# This must work even if \$libdir does not exist.
20836hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20837
20838# If ld is used when linking, flag to hardcode \$libdir into
20839# a binary during linking. This must work even if \$libdir does
20840# not exist.
20841hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20842
20843# Whether we need a single -rpath flag with a separated argument.
20844hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20845
20846# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20847# resulting binary.
20848hardcode_direct=$hardcode_direct_F77
20849
20850# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20851# resulting binary.
20852hardcode_minus_L=$hardcode_minus_L_F77
20853
20854# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20855# the resulting binary.
20856hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20857
20858# Set to yes if building a shared library automatically hardcodes DIR into the library
20859# and all subsequent libraries and executables linked against it.
20860hardcode_automatic=$hardcode_automatic_F77
20861
20862# Variables whose values should be saved in libtool wrapper scripts and
20863# restored at relink time.
20864variables_saved_for_relink="$variables_saved_for_relink"
20865
20866# Whether libtool must link a program against all its dependency libraries.
20867link_all_deplibs=$link_all_deplibs_F77
20868
20869# Compile-time system search path for libraries
20870sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20871
20872# Run-time system search path for libraries
20873sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20874
20875# Fix the shell variable \$srcfile for the compiler.
20876fix_srcfile_path="$fix_srcfile_path_F77"
20877
20878# Set to yes if exported symbols are required.
20879always_export_symbols=$always_export_symbols_F77
20880
20881# The commands to list exported symbols.
20882export_symbols_cmds=$lt_export_symbols_cmds_F77
20883
20884# The commands to extract the exported symbol list from a shared archive.
20885extract_expsyms_cmds=$lt_extract_expsyms_cmds
20886
20887# Symbols that should not be listed in the preloaded symbols.
20888exclude_expsyms=$lt_exclude_expsyms_F77
20889
20890# Symbols that must always be exported.
20891include_expsyms=$lt_include_expsyms_F77
20892
20893# ### END LIBTOOL TAG CONFIG: $tagname
20894
20895__EOF__
20896
20897
20898else
20899  # If there is no Makefile yet, we rely on a make rule to execute
20900  # `config.status --recheck' to rerun these tests and create the
20901  # libtool script then.
20902  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20903  if test -f "$ltmain_in"; then
20904    test -f Makefile && make "$ltmain"
20905  fi
20906fi
20907
20908
20909ac_ext=c
20910ac_cpp='$CPP $CPPFLAGS'
20911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20913ac_compiler_gnu=$ac_cv_c_compiler_gnu
20914
20915CC="$lt_save_CC"
20916
20917	else
20918	  tagname=""
20919	fi
20920	;;
20921
20922      GCJ)
20923	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20924	  ac_ext=c
20925ac_cpp='$CPP $CPPFLAGS'
20926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20928ac_compiler_gnu=$ac_cv_c_compiler_gnu
20929
20930
20931# Source file extension for Java test sources.
20932ac_ext=java
20933
20934# Object file extension for compiled Java test sources.
20935objext=o
20936objext_GCJ=$objext
20937
20938# Code to be used in simple compile tests
20939lt_simple_compile_test_code="class foo {}\n"
20940
20941# Code to be used in simple link tests
20942lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20943
20944# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20945
20946# If no C compiler was specified, use CC.
20947LTCC=${LTCC-"$CC"}
20948
20949# Allow CC to be a program name with arguments.
20950compiler=$CC
20951
20952
20953# Allow CC to be a program name with arguments.
20954lt_save_CC="$CC"
20955CC=${GCJ-"gcj"}
20956compiler=$CC
20957compiler_GCJ=$CC
20958
20959# GCJ did not exist at the time GCC didn't implicitly link libc in.
20960archive_cmds_need_lc_GCJ=no
20961
20962
20963lt_prog_compiler_no_builtin_flag_GCJ=
20964
20965if test "$GCC" = yes; then
20966  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20967
20968
20969echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20970echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20971if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20972  echo $ECHO_N "(cached) $ECHO_C" >&6
20973else
20974  lt_cv_prog_compiler_rtti_exceptions=no
20975  ac_outfile=conftest.$ac_objext
20976   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20977   lt_compiler_flag="-fno-rtti -fno-exceptions"
20978   # Insert the option either (1) after the last *FLAGS variable, or
20979   # (2) before a word containing "conftest.", or (3) at the end.
20980   # Note that $ac_compile itself does not contain backslashes and begins
20981   # with a dollar sign (not a hyphen), so the echo should work correctly.
20982   # The option is referenced via a variable to avoid confusing sed.
20983   lt_compile=`echo "$ac_compile" | $SED \
20984   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20985   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20986   -e 's:$: $lt_compiler_flag:'`
20987   (eval echo "\"\$as_me:20987: $lt_compile\"" >&5)
20988   (eval "$lt_compile" 2>conftest.err)
20989   ac_status=$?
20990   cat conftest.err >&5
20991   echo "$as_me:20991: \$? = $ac_status" >&5
20992   if (exit $ac_status) && test -s "$ac_outfile"; then
20993     # The compiler can only warn and ignore the option if not recognized
20994     # So say no if there are warnings
20995     if test ! -s conftest.err; then
20996       lt_cv_prog_compiler_rtti_exceptions=yes
20997     fi
20998   fi
20999   $rm conftest*
21000
21001fi
21002echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21003echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21004
21005if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21006    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21007else
21008    :
21009fi
21010
21011fi
21012
21013lt_prog_compiler_wl_GCJ=
21014lt_prog_compiler_pic_GCJ=
21015lt_prog_compiler_static_GCJ=
21016
21017echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21018echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21019
21020  if test "$GCC" = yes; then
21021    lt_prog_compiler_wl_GCJ='-Wl,'
21022    lt_prog_compiler_static_GCJ='-static'
21023
21024    case $host_os in
21025      aix*)
21026      # All AIX code is PIC.
21027      if test "$host_cpu" = ia64; then
21028	# AIX 5 now supports IA64 processor
21029	lt_prog_compiler_static_GCJ='-Bstatic'
21030      fi
21031      ;;
21032
21033    amigaos*)
21034      # FIXME: we need at least 68020 code to build shared libraries, but
21035      # adding the `-m68020' flag to GCC prevents building anything better,
21036      # like `-m68040'.
21037      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21038      ;;
21039
21040    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21041      # PIC is the default for these OSes.
21042      ;;
21043
21044    mingw* | pw32* | os2*)
21045      # This hack is so that the source file can tell whether it is being
21046      # built for inclusion in a dll (and should export symbols for example).
21047      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21048      ;;
21049
21050    darwin* | rhapsody*)
21051      # PIC is the default on this platform
21052      # Common symbols not allowed in MH_DYLIB files
21053      lt_prog_compiler_pic_GCJ='-fno-common'
21054      ;;
21055
21056    msdosdjgpp*)
21057      # Just because we use GCC doesn't mean we suddenly get shared libraries
21058      # on systems that don't support them.
21059      lt_prog_compiler_can_build_shared_GCJ=no
21060      enable_shared=no
21061      ;;
21062
21063    sysv4*MP*)
21064      if test -d /usr/nec; then
21065	lt_prog_compiler_pic_GCJ=-Kconform_pic
21066      fi
21067      ;;
21068
21069    hpux*)
21070      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21071      # not for PA HP-UX.
21072      case "$host_cpu" in
21073      hppa*64*|ia64*)
21074	# +Z the default
21075	;;
21076      *)
21077	lt_prog_compiler_pic_GCJ='-fPIC'
21078	;;
21079      esac
21080      ;;
21081
21082    *)
21083      lt_prog_compiler_pic_GCJ='-fPIC'
21084      ;;
21085    esac
21086  else
21087    # PORTME Check for flag to pass linker flags through the system compiler.
21088    case $host_os in
21089    aix*)
21090      lt_prog_compiler_wl_GCJ='-Wl,'
21091      if test "$host_cpu" = ia64; then
21092	# AIX 5 now supports IA64 processor
21093	lt_prog_compiler_static_GCJ='-Bstatic'
21094      else
21095	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21096      fi
21097      ;;
21098      darwin*)
21099        # PIC is the default on this platform
21100        # Common symbols not allowed in MH_DYLIB files
21101       case "$cc_basename" in
21102         xlc*)
21103         lt_prog_compiler_pic_GCJ='-qnocommon'
21104         lt_prog_compiler_wl_GCJ='-Wl,'
21105         ;;
21106       esac
21107       ;;
21108
21109    mingw* | pw32* | os2*)
21110      # This hack is so that the source file can tell whether it is being
21111      # built for inclusion in a dll (and should export symbols for example).
21112      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21113      ;;
21114
21115    hpux9* | hpux10* | hpux11*)
21116      lt_prog_compiler_wl_GCJ='-Wl,'
21117      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21118      # not for PA HP-UX.
21119      case "$host_cpu" in
21120      hppa*64*|ia64*)
21121	# +Z the default
21122	;;
21123      *)
21124	lt_prog_compiler_pic_GCJ='+Z'
21125	;;
21126      esac
21127      # Is there a better lt_prog_compiler_static that works with the bundled CC?
21128      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21129      ;;
21130
21131    irix5* | irix6* | nonstopux*)
21132      lt_prog_compiler_wl_GCJ='-Wl,'
21133      # PIC (with -KPIC) is the default.
21134      lt_prog_compiler_static_GCJ='-non_shared'
21135      ;;
21136
21137    newsos6)
21138      lt_prog_compiler_pic_GCJ='-KPIC'
21139      lt_prog_compiler_static_GCJ='-Bstatic'
21140      ;;
21141
21142    linux*)
21143      case $CC in
21144      icc* | ecc*)
21145	lt_prog_compiler_wl_GCJ='-Wl,'
21146	lt_prog_compiler_pic_GCJ='-KPIC'
21147	lt_prog_compiler_static_GCJ='-static'
21148        ;;
21149      ccc*)
21150        lt_prog_compiler_wl_GCJ='-Wl,'
21151        # All Alpha code is PIC.
21152        lt_prog_compiler_static_GCJ='-non_shared'
21153        ;;
21154      esac
21155      ;;
21156
21157    osf3* | osf4* | osf5*)
21158      lt_prog_compiler_wl_GCJ='-Wl,'
21159      # All OSF/1 code is PIC.
21160      lt_prog_compiler_static_GCJ='-non_shared'
21161      ;;
21162
21163    sco3.2v5*)
21164      lt_prog_compiler_pic_GCJ='-Kpic'
21165      lt_prog_compiler_static_GCJ='-dn'
21166      ;;
21167
21168    solaris*)
21169      lt_prog_compiler_wl_GCJ='-Wl,'
21170      lt_prog_compiler_pic_GCJ='-KPIC'
21171      lt_prog_compiler_static_GCJ='-Bstatic'
21172      ;;
21173
21174    sunos4*)
21175      lt_prog_compiler_wl_GCJ='-Qoption ld '
21176      lt_prog_compiler_pic_GCJ='-PIC'
21177      lt_prog_compiler_static_GCJ='-Bstatic'
21178      ;;
21179
21180    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21181      lt_prog_compiler_wl_GCJ='-Wl,'
21182      lt_prog_compiler_pic_GCJ='-KPIC'
21183      lt_prog_compiler_static_GCJ='-Bstatic'
21184      ;;
21185
21186    sysv4*MP*)
21187      if test -d /usr/nec ;then
21188	lt_prog_compiler_pic_GCJ='-Kconform_pic'
21189	lt_prog_compiler_static_GCJ='-Bstatic'
21190      fi
21191      ;;
21192
21193    uts4*)
21194      lt_prog_compiler_pic_GCJ='-pic'
21195      lt_prog_compiler_static_GCJ='-Bstatic'
21196      ;;
21197
21198    *)
21199      lt_prog_compiler_can_build_shared_GCJ=no
21200      ;;
21201    esac
21202  fi
21203
21204echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21205echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21206
21207#
21208# Check to make sure the PIC flag actually works.
21209#
21210if test -n "$lt_prog_compiler_pic_GCJ"; then
21211
21212echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21213echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21214if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21215  echo $ECHO_N "(cached) $ECHO_C" >&6
21216else
21217  lt_prog_compiler_pic_works_GCJ=no
21218  ac_outfile=conftest.$ac_objext
21219   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21220   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21221   # Insert the option either (1) after the last *FLAGS variable, or
21222   # (2) before a word containing "conftest.", or (3) at the end.
21223   # Note that $ac_compile itself does not contain backslashes and begins
21224   # with a dollar sign (not a hyphen), so the echo should work correctly.
21225   # The option is referenced via a variable to avoid confusing sed.
21226   lt_compile=`echo "$ac_compile" | $SED \
21227   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21228   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21229   -e 's:$: $lt_compiler_flag:'`
21230   (eval echo "\"\$as_me:21230: $lt_compile\"" >&5)
21231   (eval "$lt_compile" 2>conftest.err)
21232   ac_status=$?
21233   cat conftest.err >&5
21234   echo "$as_me:21234: \$? = $ac_status" >&5
21235   if (exit $ac_status) && test -s "$ac_outfile"; then
21236     # The compiler can only warn and ignore the option if not recognized
21237     # So say no if there are warnings
21238     if test ! -s conftest.err; then
21239       lt_prog_compiler_pic_works_GCJ=yes
21240     fi
21241   fi
21242   $rm conftest*
21243
21244fi
21245echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21246echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21247
21248if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21249    case $lt_prog_compiler_pic_GCJ in
21250     "" | " "*) ;;
21251     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21252     esac
21253else
21254    lt_prog_compiler_pic_GCJ=
21255     lt_prog_compiler_can_build_shared_GCJ=no
21256fi
21257
21258fi
21259case "$host_os" in
21260  # For platforms which do not support PIC, -DPIC is meaningless:
21261  *djgpp*)
21262    lt_prog_compiler_pic_GCJ=
21263    ;;
21264  *)
21265    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21266    ;;
21267esac
21268
21269echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21270echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21271if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21272  echo $ECHO_N "(cached) $ECHO_C" >&6
21273else
21274  lt_cv_prog_compiler_c_o_GCJ=no
21275   $rm -r conftest 2>/dev/null
21276   mkdir conftest
21277   cd conftest
21278   mkdir out
21279   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21280
21281   lt_compiler_flag="-o out/conftest2.$ac_objext"
21282   # Insert the option either (1) after the last *FLAGS variable, or
21283   # (2) before a word containing "conftest.", or (3) at the end.
21284   # Note that $ac_compile itself does not contain backslashes and begins
21285   # with a dollar sign (not a hyphen), so the echo should work correctly.
21286   lt_compile=`echo "$ac_compile" | $SED \
21287   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21288   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21289   -e 's:$: $lt_compiler_flag:'`
21290   (eval echo "\"\$as_me:21290: $lt_compile\"" >&5)
21291   (eval "$lt_compile" 2>out/conftest.err)
21292   ac_status=$?
21293   cat out/conftest.err >&5
21294   echo "$as_me:21294: \$? = $ac_status" >&5
21295   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21296   then
21297     # The compiler can only warn and ignore the option if not recognized
21298     # So say no if there are warnings
21299     if test ! -s out/conftest.err; then
21300       lt_cv_prog_compiler_c_o_GCJ=yes
21301     fi
21302   fi
21303   chmod u+w .
21304   $rm conftest*
21305   # SGI C++ compiler will create directory out/ii_files/ for
21306   # template instantiation
21307   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21308   $rm out/* && rmdir out
21309   cd ..
21310   rmdir conftest
21311   $rm conftest*
21312
21313fi
21314echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21315echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21316
21317
21318hard_links="nottested"
21319if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21320  # do not overwrite the value of need_locks provided by the user
21321  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21322echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21323  hard_links=yes
21324  $rm conftest*
21325  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21326  touch conftest.a
21327  ln conftest.a conftest.b 2>&5 || hard_links=no
21328  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21329  echo "$as_me:$LINENO: result: $hard_links" >&5
21330echo "${ECHO_T}$hard_links" >&6
21331  if test "$hard_links" = no; then
21332    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21333echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21334    need_locks=warn
21335  fi
21336else
21337  need_locks=no
21338fi
21339
21340echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21341echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21342
21343  runpath_var=
21344  allow_undefined_flag_GCJ=
21345  enable_shared_with_static_runtimes_GCJ=no
21346  archive_cmds_GCJ=
21347  archive_expsym_cmds_GCJ=
21348  old_archive_From_new_cmds_GCJ=
21349  old_archive_from_expsyms_cmds_GCJ=
21350  export_dynamic_flag_spec_GCJ=
21351  whole_archive_flag_spec_GCJ=
21352  thread_safe_flag_spec_GCJ=
21353  hardcode_libdir_flag_spec_GCJ=
21354  hardcode_libdir_flag_spec_ld_GCJ=
21355  hardcode_libdir_separator_GCJ=
21356  hardcode_direct_GCJ=no
21357  hardcode_minus_L_GCJ=no
21358  hardcode_shlibpath_var_GCJ=unsupported
21359  link_all_deplibs_GCJ=unknown
21360  hardcode_automatic_GCJ=no
21361  module_cmds_GCJ=
21362  module_expsym_cmds_GCJ=
21363  always_export_symbols_GCJ=no
21364  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21365  # include_expsyms should be a list of space-separated symbols to be *always*
21366  # included in the symbol list
21367  include_expsyms_GCJ=
21368  # exclude_expsyms can be an extended regexp of symbols to exclude
21369  # it will be wrapped by ` (' and `)$', so one must not match beginning or
21370  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21371  # as well as any symbol that contains `d'.
21372  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21373  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21374  # platforms (ab)use it in PIC code, but their linkers get confused if
21375  # the symbol is explicitly referenced.  Since portable code cannot
21376  # rely on this symbol name, it's probably fine to never include it in
21377  # preloaded symbol tables.
21378  extract_expsyms_cmds=
21379
21380  case $host_os in
21381  cygwin* | mingw* | pw32*)
21382    # FIXME: the MSVC++ port hasn't been tested in a loooong time
21383    # When not using gcc, we currently assume that we are using
21384    # Microsoft Visual C++.
21385    if test "$GCC" != yes; then
21386      with_gnu_ld=no
21387    fi
21388    ;;
21389  openbsd*)
21390    with_gnu_ld=no
21391    ;;
21392  esac
21393
21394  ld_shlibs_GCJ=yes
21395  if test "$with_gnu_ld" = yes; then
21396    # If archive_cmds runs LD, not CC, wlarc should be empty
21397    wlarc='${wl}'
21398
21399    # See if GNU ld supports shared libraries.
21400    case $host_os in
21401    aix3* | aix4* | aix5*)
21402      # On AIX/PPC, the GNU linker is very broken
21403      if test "$host_cpu" != ia64; then
21404	ld_shlibs_GCJ=no
21405	cat <<EOF 1>&2
21406
21407*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21408*** to be unable to reliably create shared libraries on AIX.
21409*** Therefore, libtool is disabling shared libraries support.  If you
21410*** really care for shared libraries, you may want to modify your PATH
21411*** so that a non-GNU linker is found, and then restart.
21412
21413EOF
21414      fi
21415      ;;
21416
21417    amigaos*)
21418      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)'
21419      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21420      hardcode_minus_L_GCJ=yes
21421
21422      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21423      # that the semantics of dynamic libraries on AmigaOS, at least up
21424      # to version 4, is to share data among multiple programs linked
21425      # with the same dynamic library.  Since this doesn't match the
21426      # behavior of shared libraries on other platforms, we can't use
21427      # them.
21428      ld_shlibs_GCJ=no
21429      ;;
21430
21431    beos*)
21432      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21433	allow_undefined_flag_GCJ=unsupported
21434	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21435	# support --undefined.  This deserves some investigation.  FIXME
21436	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21437      else
21438	ld_shlibs_GCJ=no
21439      fi
21440      ;;
21441
21442    cygwin* | mingw* | pw32*)
21443      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21444      # as there is no search path for DLLs.
21445      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21446      allow_undefined_flag_GCJ=unsupported
21447      always_export_symbols_GCJ=no
21448      enable_shared_with_static_runtimes_GCJ=yes
21449      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21450
21451      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21452        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21453	# If the export-symbols file already is a .def file (1st line
21454	# is EXPORTS), use it as is; otherwise, prepend...
21455	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21456	  cp $export_symbols $output_objdir/$soname.def;
21457	else
21458	  echo EXPORTS > $output_objdir/$soname.def;
21459	  cat $export_symbols >> $output_objdir/$soname.def;
21460	fi~
21461	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21462      else
21463	ld_shlibs=no
21464      fi
21465      ;;
21466
21467    netbsd*)
21468      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21469	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21470	wlarc=
21471      else
21472	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21473	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21474      fi
21475      ;;
21476
21477    solaris* | sysv5*)
21478      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21479	ld_shlibs_GCJ=no
21480	cat <<EOF 1>&2
21481
21482*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21483*** create shared libraries on Solaris systems.  Therefore, libtool
21484*** is disabling shared libraries support.  We urge you to upgrade GNU
21485*** binutils to release 2.9.1 or newer.  Another option is to modify
21486*** your PATH or compiler configuration so that the native linker is
21487*** used, and then restart.
21488
21489EOF
21490      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21491	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21492	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21493      else
21494	ld_shlibs_GCJ=no
21495      fi
21496      ;;
21497
21498    sunos4*)
21499      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21500      wlarc=
21501      hardcode_direct_GCJ=yes
21502      hardcode_shlibpath_var_GCJ=no
21503      ;;
21504
21505  linux*)
21506    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21507        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21508	archive_cmds_GCJ="$tmp_archive_cmds"
21509      supports_anon_versioning=no
21510      case `$LD -v 2>/dev/null` in
21511        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21512        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21513        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21514        *\ 2.11.*) ;; # other 2.11 versions
21515        *) supports_anon_versioning=yes ;;
21516      esac
21517      if test $supports_anon_versioning = yes; then
21518        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21519cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21520$echo "local: *; };" >> $output_objdir/$libname.ver~
21521        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21522      else
21523        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21524      fi
21525    else
21526      ld_shlibs_GCJ=no
21527    fi
21528    ;;
21529
21530    *)
21531      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21532	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21533	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21534      else
21535	ld_shlibs_GCJ=no
21536      fi
21537      ;;
21538    esac
21539
21540    if test "$ld_shlibs_GCJ" = yes; then
21541      runpath_var=LD_RUN_PATH
21542      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21543      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21544      # ancient GNU ld didn't support --whole-archive et. al.
21545      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21546 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21547      else
21548  	whole_archive_flag_spec_GCJ=
21549      fi
21550    fi
21551  else
21552    # PORTME fill in a description of your system's linker (not GNU ld)
21553    case $host_os in
21554    aix3*)
21555      allow_undefined_flag_GCJ=unsupported
21556      always_export_symbols_GCJ=yes
21557      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'
21558      # Note: this linker hardcodes the directories in LIBPATH if there
21559      # are no directories specified by -L.
21560      hardcode_minus_L_GCJ=yes
21561      if test "$GCC" = yes && test -z "$link_static_flag"; then
21562	# Neither direct hardcoding nor static linking is supported with a
21563	# broken collect2.
21564	hardcode_direct_GCJ=unsupported
21565      fi
21566      ;;
21567
21568    aix4* | aix5*)
21569      if test "$host_cpu" = ia64; then
21570	# On IA64, the linker does run time linking by default, so we don't
21571	# have to do anything special.
21572	aix_use_runtimelinking=no
21573	exp_sym_flag='-Bexport'
21574	no_entry_flag=""
21575      else
21576	# If we're using GNU nm, then we don't want the "-C" option.
21577	# -C means demangle to AIX nm, but means don't demangle with GNU nm
21578	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21579	  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'
21580	else
21581	  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'
21582	fi
21583	aix_use_runtimelinking=no
21584
21585	# Test if we are trying to use run time linking or normal
21586	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
21587	# need to do runtime linking.
21588	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21589	  for ld_flag in $LDFLAGS; do
21590  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21591  	    aix_use_runtimelinking=yes
21592  	    break
21593  	  fi
21594	  done
21595	esac
21596
21597	exp_sym_flag='-bexport'
21598	no_entry_flag='-bnoentry'
21599      fi
21600
21601      # When large executables or shared objects are built, AIX ld can
21602      # have problems creating the table of contents.  If linking a library
21603      # or program results in "error TOC overflow" add -mminimal-toc to
21604      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21605      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21606
21607      archive_cmds_GCJ=''
21608      hardcode_direct_GCJ=yes
21609      hardcode_libdir_separator_GCJ=':'
21610      link_all_deplibs_GCJ=yes
21611
21612      if test "$GCC" = yes; then
21613	case $host_os in aix4.012|aix4.012.*)
21614	# We only want to do this on AIX 4.2 and lower, the check
21615	# below for broken collect2 doesn't work under 4.3+
21616	  collect2name=`${CC} -print-prog-name=collect2`
21617	  if test -f "$collect2name" && \
21618  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
21619	  then
21620  	  # We have reworked collect2
21621  	  hardcode_direct_GCJ=yes
21622	  else
21623  	  # We have old collect2
21624  	  hardcode_direct_GCJ=unsupported
21625  	  # It fails to find uninstalled libraries when the uninstalled
21626  	  # path is not listed in the libpath.  Setting hardcode_minus_L
21627  	  # to unsupported forces relinking
21628  	  hardcode_minus_L_GCJ=yes
21629  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
21630  	  hardcode_libdir_separator_GCJ=
21631	  fi
21632	esac
21633	shared_flag='-shared'
21634      else
21635	# not using gcc
21636	if test "$host_cpu" = ia64; then
21637  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21638  	# chokes on -Wl,-G. The following line is correct:
21639	  shared_flag='-G'
21640	else
21641  	if test "$aix_use_runtimelinking" = yes; then
21642	    shared_flag='${wl}-G'
21643	  else
21644	    shared_flag='${wl}-bM:SRE'
21645  	fi
21646	fi
21647      fi
21648
21649      # It seems that -bexpall does not export symbols beginning with
21650      # underscore (_), so it is better to generate a list of symbols to export.
21651      always_export_symbols_GCJ=yes
21652      if test "$aix_use_runtimelinking" = yes; then
21653	# Warning - without using the other runtime loading flags (-brtl),
21654	# -berok will link without error, but may produce a broken library.
21655	allow_undefined_flag_GCJ='-berok'
21656       # Determine the default libpath from the value encoded in an empty executable.
21657       cat >conftest.$ac_ext <<_ACEOF
21658/* confdefs.h.  */
21659_ACEOF
21660cat confdefs.h >>conftest.$ac_ext
21661cat >>conftest.$ac_ext <<_ACEOF
21662/* end confdefs.h.  */
21663
21664int
21665main ()
21666{
21667
21668  ;
21669  return 0;
21670}
21671_ACEOF
21672rm -f conftest.$ac_objext conftest$ac_exeext
21673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21674  (eval $ac_link) 2>conftest.er1
21675  ac_status=$?
21676  grep -v '^ *+' conftest.er1 >conftest.err
21677  rm -f conftest.er1
21678  cat conftest.err >&5
21679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680  (exit $ac_status); } &&
21681	 { ac_try='test -z "$ac_c_werror_flag"
21682			 || test ! -s conftest.err'
21683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21684  (eval $ac_try) 2>&5
21685  ac_status=$?
21686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687  (exit $ac_status); }; } &&
21688	 { ac_try='test -s conftest$ac_exeext'
21689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21690  (eval $ac_try) 2>&5
21691  ac_status=$?
21692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693  (exit $ac_status); }; }; then
21694
21695aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21696}'`
21697# Check for a 64-bit object if we didn't find anything.
21698if 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; }
21699}'`; fi
21700else
21701  echo "$as_me: failed program was:" >&5
21702sed 's/^/| /' conftest.$ac_ext >&5
21703
21704fi
21705rm -f conftest.err conftest.$ac_objext \
21706      conftest$ac_exeext conftest.$ac_ext
21707if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21708
21709       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21710	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"
21711       else
21712	if test "$host_cpu" = ia64; then
21713	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21714	  allow_undefined_flag_GCJ="-z nodefs"
21715	  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"
21716	else
21717	 # Determine the default libpath from the value encoded in an empty executable.
21718	 cat >conftest.$ac_ext <<_ACEOF
21719/* confdefs.h.  */
21720_ACEOF
21721cat confdefs.h >>conftest.$ac_ext
21722cat >>conftest.$ac_ext <<_ACEOF
21723/* end confdefs.h.  */
21724
21725int
21726main ()
21727{
21728
21729  ;
21730  return 0;
21731}
21732_ACEOF
21733rm -f conftest.$ac_objext conftest$ac_exeext
21734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21735  (eval $ac_link) 2>conftest.er1
21736  ac_status=$?
21737  grep -v '^ *+' conftest.er1 >conftest.err
21738  rm -f conftest.er1
21739  cat conftest.err >&5
21740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741  (exit $ac_status); } &&
21742	 { ac_try='test -z "$ac_c_werror_flag"
21743			 || test ! -s conftest.err'
21744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21745  (eval $ac_try) 2>&5
21746  ac_status=$?
21747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748  (exit $ac_status); }; } &&
21749	 { ac_try='test -s conftest$ac_exeext'
21750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21751  (eval $ac_try) 2>&5
21752  ac_status=$?
21753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754  (exit $ac_status); }; }; then
21755
21756aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21757}'`
21758# Check for a 64-bit object if we didn't find anything.
21759if 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; }
21760}'`; fi
21761else
21762  echo "$as_me: failed program was:" >&5
21763sed 's/^/| /' conftest.$ac_ext >&5
21764
21765fi
21766rm -f conftest.err conftest.$ac_objext \
21767      conftest$ac_exeext conftest.$ac_ext
21768if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21769
21770	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21771	  # Warning - without using the other run time loading flags,
21772	  # -berok will link without error, but may produce a broken library.
21773	  no_undefined_flag_GCJ=' ${wl}-bernotok'
21774	  allow_undefined_flag_GCJ=' ${wl}-berok'
21775	  # -bexpall does not export symbols beginning with underscore (_)
21776	  always_export_symbols_GCJ=yes
21777	  # Exported symbols can be pulled into shared objects from archives
21778	  whole_archive_flag_spec_GCJ=' '
21779	  archive_cmds_need_lc_GCJ=yes
21780	  # This is similar to how AIX traditionally builds it's shared libraries.
21781	  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'
21782	fi
21783      fi
21784      ;;
21785
21786    amigaos*)
21787      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)'
21788      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21789      hardcode_minus_L_GCJ=yes
21790      # see comment about different semantics on the GNU ld section
21791      ld_shlibs_GCJ=no
21792      ;;
21793
21794    bsdi[45]*)
21795      export_dynamic_flag_spec_GCJ=-rdynamic
21796      ;;
21797
21798    cygwin* | mingw* | pw32*)
21799      # When not using gcc, we currently assume that we are using
21800      # Microsoft Visual C++.
21801      # hardcode_libdir_flag_spec is actually meaningless, as there is
21802      # no search path for DLLs.
21803      hardcode_libdir_flag_spec_GCJ=' '
21804      allow_undefined_flag_GCJ=unsupported
21805      # Tell ltmain to make .lib files, not .a files.
21806      libext=lib
21807      # Tell ltmain to make .dll files, not .so files.
21808      shrext_cmds=".dll"
21809      # FIXME: Setting linknames here is a bad hack.
21810      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21811      # The linker will automatically build a .lib file if we build a DLL.
21812      old_archive_From_new_cmds_GCJ='true'
21813      # FIXME: Should let the user specify the lib program.
21814      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21815      fix_srcfile_path='`cygpath -w "$srcfile"`'
21816      enable_shared_with_static_runtimes_GCJ=yes
21817      ;;
21818
21819    darwin* | rhapsody*)
21820      case "$host_os" in
21821        rhapsody* | darwin1.[012])
21822         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21823         ;;
21824       *) # Darwin 1.3 on
21825         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21826           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21827         else
21828           case ${MACOSX_DEPLOYMENT_TARGET} in
21829             10.[012])
21830               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21831               ;;
21832             10.*)
21833               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21834               ;;
21835           esac
21836         fi
21837         ;;
21838      esac
21839      archive_cmds_need_lc_GCJ=no
21840      hardcode_direct_GCJ=no
21841      hardcode_automatic_GCJ=yes
21842      hardcode_shlibpath_var_GCJ=unsupported
21843      whole_archive_flag_spec_GCJ=''
21844      link_all_deplibs_GCJ=yes
21845    if test "$GCC" = yes ; then
21846    	output_verbose_link_cmd='echo'
21847        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21848      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21849      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21850      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}'
21851      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}'
21852    else
21853      case "$cc_basename" in
21854        xlc*)
21855         output_verbose_link_cmd='echo'
21856         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21857         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21858          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21859         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -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}'
21860          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21861          ;;
21862       *)
21863         ld_shlibs_GCJ=no
21864          ;;
21865      esac
21866    fi
21867      ;;
21868
21869    dgux*)
21870      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21871      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21872      hardcode_shlibpath_var_GCJ=no
21873      ;;
21874
21875    freebsd1*)
21876      ld_shlibs_GCJ=no
21877      ;;
21878
21879    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21880    # support.  Future versions do this automatically, but an explicit c++rt0.o
21881    # does not break anything, and helps significantly (at the cost of a little
21882    # extra space).
21883    freebsd2.2*)
21884      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21885      hardcode_libdir_flag_spec_GCJ='-R$libdir'
21886      hardcode_direct_GCJ=yes
21887      hardcode_shlibpath_var_GCJ=no
21888      ;;
21889
21890    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21891    freebsd2*)
21892      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21893      hardcode_direct_GCJ=yes
21894      hardcode_minus_L_GCJ=yes
21895      hardcode_shlibpath_var_GCJ=no
21896      ;;
21897
21898    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21899    freebsd* | kfreebsd*-gnu)
21900      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21901      hardcode_libdir_flag_spec_GCJ='-R$libdir'
21902      hardcode_direct_GCJ=yes
21903      hardcode_shlibpath_var_GCJ=no
21904      ;;
21905
21906    hpux9*)
21907      if test "$GCC" = yes; then
21908	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'
21909      else
21910	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'
21911      fi
21912      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21913      hardcode_libdir_separator_GCJ=:
21914      hardcode_direct_GCJ=yes
21915
21916      # hardcode_minus_L: Not really in the search PATH,
21917      # but as the default location of the library.
21918      hardcode_minus_L_GCJ=yes
21919      export_dynamic_flag_spec_GCJ='${wl}-E'
21920      ;;
21921
21922    hpux10* | hpux11*)
21923      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21924	case "$host_cpu" in
21925	hppa*64*|ia64*)
21926	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21927	  ;;
21928	*)
21929	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21930	  ;;
21931	esac
21932      else
21933	case "$host_cpu" in
21934	hppa*64*|ia64*)
21935	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21936	  ;;
21937	*)
21938	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21939	  ;;
21940	esac
21941      fi
21942      if test "$with_gnu_ld" = no; then
21943	case "$host_cpu" in
21944	hppa*64*)
21945	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21946	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21947	  hardcode_libdir_separator_GCJ=:
21948	  hardcode_direct_GCJ=no
21949	  hardcode_shlibpath_var_GCJ=no
21950	  ;;
21951	ia64*)
21952	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
21953	  hardcode_direct_GCJ=no
21954	  hardcode_shlibpath_var_GCJ=no
21955
21956	  # hardcode_minus_L: Not really in the search PATH,
21957	  # but as the default location of the library.
21958	  hardcode_minus_L_GCJ=yes
21959	  ;;
21960	*)
21961	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21962	  hardcode_libdir_separator_GCJ=:
21963	  hardcode_direct_GCJ=yes
21964	  export_dynamic_flag_spec_GCJ='${wl}-E'
21965
21966	  # hardcode_minus_L: Not really in the search PATH,
21967	  # but as the default location of the library.
21968	  hardcode_minus_L_GCJ=yes
21969	  ;;
21970	esac
21971      fi
21972      ;;
21973
21974    irix5* | irix6* | nonstopux*)
21975      if test "$GCC" = yes; then
21976	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'
21977      else
21978	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'
21979	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21980      fi
21981      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21982      hardcode_libdir_separator_GCJ=:
21983      link_all_deplibs_GCJ=yes
21984      ;;
21985
21986    netbsd*)
21987      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21988	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21989      else
21990	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21991      fi
21992      hardcode_libdir_flag_spec_GCJ='-R$libdir'
21993      hardcode_direct_GCJ=yes
21994      hardcode_shlibpath_var_GCJ=no
21995      ;;
21996
21997    newsos6)
21998      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21999      hardcode_direct_GCJ=yes
22000      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22001      hardcode_libdir_separator_GCJ=:
22002      hardcode_shlibpath_var_GCJ=no
22003      ;;
22004
22005    openbsd*)
22006      hardcode_direct_GCJ=yes
22007      hardcode_shlibpath_var_GCJ=no
22008      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22009	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22010	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22011	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22012	export_dynamic_flag_spec_GCJ='${wl}-E'
22013      else
22014       case $host_os in
22015	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22016	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22017	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
22018	   ;;
22019	 *)
22020	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22021	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22022	   ;;
22023       esac
22024      fi
22025      ;;
22026
22027    os2*)
22028      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22029      hardcode_minus_L_GCJ=yes
22030      allow_undefined_flag_GCJ=unsupported
22031      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'
22032      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22033      ;;
22034
22035    osf3*)
22036      if test "$GCC" = yes; then
22037	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22038	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'
22039      else
22040	allow_undefined_flag_GCJ=' -expect_unresolved \*'
22041	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'
22042      fi
22043      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22044      hardcode_libdir_separator_GCJ=:
22045      ;;
22046
22047    osf4* | osf5*)	# as osf3* with the addition of -msym flag
22048      if test "$GCC" = yes; then
22049	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22050	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'
22051	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22052      else
22053	allow_undefined_flag_GCJ=' -expect_unresolved \*'
22054	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'
22055	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~
22056	$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'
22057
22058	# Both c and cxx compiler support -rpath directly
22059	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22060      fi
22061      hardcode_libdir_separator_GCJ=:
22062      ;;
22063
22064    sco3.2v5*)
22065      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22066      hardcode_shlibpath_var_GCJ=no
22067      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22068      runpath_var=LD_RUN_PATH
22069      hardcode_runpath_var=yes
22070      ;;
22071
22072    solaris*)
22073      no_undefined_flag_GCJ=' -z text'
22074      if test "$GCC" = yes; then
22075	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22076	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22077	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22078      else
22079	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22080	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22081  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22082      fi
22083      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22084      hardcode_shlibpath_var_GCJ=no
22085      case $host_os in
22086      solaris2.[0-5] | solaris2.[0-5].*) ;;
22087      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22088	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22089      esac
22090      link_all_deplibs_GCJ=yes
22091      ;;
22092
22093    sunos4*)
22094      if test "x$host_vendor" = xsequent; then
22095	# Use $CC to link under sequent, because it throws in some extra .o
22096	# files that make .init and .fini sections work.
22097	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22098      else
22099	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22100      fi
22101      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22102      hardcode_direct_GCJ=yes
22103      hardcode_minus_L_GCJ=yes
22104      hardcode_shlibpath_var_GCJ=no
22105      ;;
22106
22107    sysv4)
22108      case $host_vendor in
22109	sni)
22110	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22111	  hardcode_direct_GCJ=yes # is this really true???
22112	;;
22113	siemens)
22114	  ## LD is ld it makes a PLAMLIB
22115	  ## CC just makes a GrossModule.
22116	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22117	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22118	  hardcode_direct_GCJ=no
22119        ;;
22120	motorola)
22121	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22122	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22123	;;
22124      esac
22125      runpath_var='LD_RUN_PATH'
22126      hardcode_shlibpath_var_GCJ=no
22127      ;;
22128
22129    sysv4.3*)
22130      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22131      hardcode_shlibpath_var_GCJ=no
22132      export_dynamic_flag_spec_GCJ='-Bexport'
22133      ;;
22134
22135    sysv4*MP*)
22136      if test -d /usr/nec; then
22137	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22138	hardcode_shlibpath_var_GCJ=no
22139	runpath_var=LD_RUN_PATH
22140	hardcode_runpath_var=yes
22141	ld_shlibs_GCJ=yes
22142      fi
22143      ;;
22144
22145    sysv4.2uw2*)
22146      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22147      hardcode_direct_GCJ=yes
22148      hardcode_minus_L_GCJ=no
22149      hardcode_shlibpath_var_GCJ=no
22150      hardcode_runpath_var=yes
22151      runpath_var=LD_RUN_PATH
22152      ;;
22153
22154   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22155      no_undefined_flag_GCJ='${wl}-z ${wl}text'
22156      if test "$GCC" = yes; then
22157	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22158      else
22159	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22160      fi
22161      runpath_var='LD_RUN_PATH'
22162      hardcode_shlibpath_var_GCJ=no
22163      ;;
22164
22165    sysv5*)
22166      no_undefined_flag_GCJ=' -z text'
22167      # $CC -shared without GNU ld will not create a library from C++
22168      # object files and a static libstdc++, better avoid it by now
22169      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22170      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22171  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22172      hardcode_libdir_flag_spec_GCJ=
22173      hardcode_shlibpath_var_GCJ=no
22174      runpath_var='LD_RUN_PATH'
22175      ;;
22176
22177    uts4*)
22178      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22179      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22180      hardcode_shlibpath_var_GCJ=no
22181      ;;
22182
22183    *)
22184      ld_shlibs_GCJ=no
22185      ;;
22186    esac
22187  fi
22188
22189echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22190echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22191test "$ld_shlibs_GCJ" = no && can_build_shared=no
22192
22193variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22194if test "$GCC" = yes; then
22195  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22196fi
22197
22198#
22199# Do we need to explicitly link libc?
22200#
22201case "x$archive_cmds_need_lc_GCJ" in
22202x|xyes)
22203  # Assume -lc should be added
22204  archive_cmds_need_lc_GCJ=yes
22205
22206  if test "$enable_shared" = yes && test "$GCC" = yes; then
22207    case $archive_cmds_GCJ in
22208    *'~'*)
22209      # FIXME: we may have to deal with multi-command sequences.
22210      ;;
22211    '$CC '*)
22212      # Test whether the compiler implicitly links with -lc since on some
22213      # systems, -lgcc has to come before -lc. If gcc already passes -lc
22214      # to ld, don't add -lc before -lgcc.
22215      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22216echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22217      $rm conftest*
22218      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22219
22220      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22221  (eval $ac_compile) 2>&5
22222  ac_status=$?
22223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224  (exit $ac_status); } 2>conftest.err; then
22225        soname=conftest
22226        lib=conftest
22227        libobjs=conftest.$ac_objext
22228        deplibs=
22229        wl=$lt_prog_compiler_wl_GCJ
22230        compiler_flags=-v
22231        linker_flags=-v
22232        verstring=
22233        output_objdir=.
22234        libname=conftest
22235        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22236        allow_undefined_flag_GCJ=
22237        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22238  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22239  ac_status=$?
22240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241  (exit $ac_status); }
22242        then
22243	  archive_cmds_need_lc_GCJ=no
22244        else
22245	  archive_cmds_need_lc_GCJ=yes
22246        fi
22247        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22248      else
22249        cat conftest.err 1>&5
22250      fi
22251      $rm conftest*
22252      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22253echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22254      ;;
22255    esac
22256  fi
22257  ;;
22258esac
22259
22260echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22261echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22262library_names_spec=
22263libname_spec='lib$name'
22264soname_spec=
22265shrext_cmds=".so"
22266postinstall_cmds=
22267postuninstall_cmds=
22268finish_cmds=
22269finish_eval=
22270shlibpath_var=
22271shlibpath_overrides_runpath=unknown
22272version_type=none
22273dynamic_linker="$host_os ld.so"
22274sys_lib_dlsearch_path_spec="/lib /usr/lib"
22275if test "$GCC" = yes; then
22276  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22277  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22278    # if the path contains ";" then we assume it to be the separator
22279    # otherwise default to the standard path separator (i.e. ":") - it is
22280    # assumed that no part of a normal pathname contains ";" but that should
22281    # okay in the real world where ";" in dirpaths is itself problematic.
22282    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22283  else
22284    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22285  fi
22286else
22287  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22288fi
22289need_lib_prefix=unknown
22290hardcode_into_libs=no
22291
22292# when you set need_version to no, make sure it does not cause -set_version
22293# flags to be left without arguments
22294need_version=unknown
22295
22296case $host_os in
22297aix3*)
22298  version_type=linux
22299  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22300  shlibpath_var=LIBPATH
22301
22302  # AIX 3 has no versioning support, so we append a major version to the name.
22303  soname_spec='${libname}${release}${shared_ext}$major'
22304  ;;
22305
22306aix4* | aix5*)
22307  version_type=linux
22308  need_lib_prefix=no
22309  need_version=no
22310  hardcode_into_libs=yes
22311  if test "$host_cpu" = ia64; then
22312    # AIX 5 supports IA64
22313    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22314    shlibpath_var=LD_LIBRARY_PATH
22315  else
22316    # With GCC up to 2.95.x, collect2 would create an import file
22317    # for dependence libraries.  The import file would start with
22318    # the line `#! .'.  This would cause the generated library to
22319    # depend on `.', always an invalid library.  This was fixed in
22320    # development snapshots of GCC prior to 3.0.
22321    case $host_os in
22322      aix4 | aix4.[01] | aix4.[01].*)
22323      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22324	   echo ' yes '
22325	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22326	:
22327      else
22328	can_build_shared=no
22329      fi
22330      ;;
22331    esac
22332    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22333    # soname into executable. Probably we can add versioning support to
22334    # collect2, so additional links can be useful in future.
22335    if test "$aix_use_runtimelinking" = yes; then
22336      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22337      # instead of lib<name>.a to let people know that these are not
22338      # typical AIX shared libraries.
22339      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22340    else
22341      # We preserve .a as extension for shared libraries through AIX4.2
22342      # and later when we are not doing run time linking.
22343      library_names_spec='${libname}${release}.a $libname.a'
22344      soname_spec='${libname}${release}${shared_ext}$major'
22345    fi
22346    shlibpath_var=LIBPATH
22347  fi
22348  ;;
22349
22350amigaos*)
22351  library_names_spec='$libname.ixlibrary $libname.a'
22352  # Create ${libname}_ixlibrary.a entries in /sys/libs.
22353  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'
22354  ;;
22355
22356beos*)
22357  library_names_spec='${libname}${shared_ext}'
22358  dynamic_linker="$host_os ld.so"
22359  shlibpath_var=LIBRARY_PATH
22360  ;;
22361
22362bsdi[45]*)
22363  version_type=linux
22364  need_version=no
22365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22366  soname_spec='${libname}${release}${shared_ext}$major'
22367  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22368  shlibpath_var=LD_LIBRARY_PATH
22369  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22370  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22371  # the default ld.so.conf also contains /usr/contrib/lib and
22372  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22373  # libtool to hard-code these into programs
22374  ;;
22375
22376cygwin* | mingw* | pw32*)
22377  version_type=windows
22378  shrext_cmds=".dll"
22379  need_version=no
22380  need_lib_prefix=no
22381
22382  case $GCC,$host_os in
22383  yes,cygwin* | yes,mingw* | yes,pw32*)
22384    library_names_spec='$libname.dll.a'
22385    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22386    postinstall_cmds='base_file=`basename \${file}`~
22387      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22388      dldir=$destdir/`dirname \$dlpath`~
22389      test -d \$dldir || mkdir -p \$dldir~
22390      $install_prog $dir/$dlname \$dldir/$dlname'
22391    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22392      dlpath=$dir/\$dldll~
22393       $rm \$dlpath'
22394    shlibpath_overrides_runpath=yes
22395
22396    case $host_os in
22397    cygwin*)
22398      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22399      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22400      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22401      ;;
22402    mingw*)
22403      # MinGW DLLs use traditional 'lib' prefix
22404      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22405      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22406      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22407        # It is most probably a Windows format PATH printed by
22408        # mingw gcc, but we are running on Cygwin. Gcc prints its search
22409        # path with ; separators, and with drive letters. We can handle the
22410        # drive letters (cygwin fileutils understands them), so leave them,
22411        # especially as we might pass files found there to a mingw objdump,
22412        # which wouldn't understand a cygwinified path. Ahh.
22413        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22414      else
22415        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22416      fi
22417      ;;
22418    pw32*)
22419      # pw32 DLLs use 'pw' prefix rather than 'lib'
22420      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22421      ;;
22422    esac
22423    ;;
22424
22425  *)
22426    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22427    ;;
22428  esac
22429  dynamic_linker='Win32 ld.exe'
22430  # FIXME: first we should search . and the directory the executable is in
22431  shlibpath_var=PATH
22432  ;;
22433
22434darwin* | rhapsody*)
22435  dynamic_linker="$host_os dyld"
22436  version_type=darwin
22437  need_lib_prefix=no
22438  need_version=no
22439  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22440  soname_spec='${libname}${release}${major}$shared_ext'
22441  shlibpath_overrides_runpath=yes
22442  shlibpath_var=DYLD_LIBRARY_PATH
22443  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22444  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22445  if test "$GCC" = yes; then
22446    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"`
22447  else
22448    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22449  fi
22450  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22451  ;;
22452
22453dgux*)
22454  version_type=linux
22455  need_lib_prefix=no
22456  need_version=no
22457  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22458  soname_spec='${libname}${release}${shared_ext}$major'
22459  shlibpath_var=LD_LIBRARY_PATH
22460  ;;
22461
22462freebsd1*)
22463  dynamic_linker=no
22464  ;;
22465
22466kfreebsd*-gnu)
22467  version_type=linux
22468  need_lib_prefix=no
22469  need_version=no
22470  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22471  soname_spec='${libname}${release}${shared_ext}$major'
22472  shlibpath_var=LD_LIBRARY_PATH
22473  shlibpath_overrides_runpath=no
22474  hardcode_into_libs=yes
22475  dynamic_linker='GNU ld.so'
22476  ;;
22477
22478freebsd*)
22479  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22480  version_type=freebsd-$objformat
22481  case $version_type in
22482    freebsd-elf*)
22483      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22484      need_version=no
22485      need_lib_prefix=no
22486      ;;
22487    freebsd-*)
22488      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22489      need_version=yes
22490      ;;
22491  esac
22492  shlibpath_var=LD_LIBRARY_PATH
22493  case $host_os in
22494  freebsd2*)
22495    shlibpath_overrides_runpath=yes
22496    ;;
22497  freebsd3.01* | freebsdelf3.01*)
22498    shlibpath_overrides_runpath=yes
22499    hardcode_into_libs=yes
22500    ;;
22501  *) # from 3.2 on
22502    shlibpath_overrides_runpath=no
22503    hardcode_into_libs=yes
22504    ;;
22505  esac
22506  ;;
22507
22508gnu*)
22509  version_type=linux
22510  need_lib_prefix=no
22511  need_version=no
22512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22513  soname_spec='${libname}${release}${shared_ext}$major'
22514  shlibpath_var=LD_LIBRARY_PATH
22515  hardcode_into_libs=yes
22516  ;;
22517
22518hpux9* | hpux10* | hpux11*)
22519  # Give a soname corresponding to the major version so that dld.sl refuses to
22520  # link against other versions.
22521  version_type=sunos
22522  need_lib_prefix=no
22523  need_version=no
22524  case "$host_cpu" in
22525  ia64*)
22526    shrext_cmds='.so'
22527    hardcode_into_libs=yes
22528    dynamic_linker="$host_os dld.so"
22529    shlibpath_var=LD_LIBRARY_PATH
22530    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22531    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22532    soname_spec='${libname}${release}${shared_ext}$major'
22533    if test "X$HPUX_IA64_MODE" = X32; then
22534      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22535    else
22536      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22537    fi
22538    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22539    ;;
22540   hppa*64*)
22541     shrext_cmds='.sl'
22542     hardcode_into_libs=yes
22543     dynamic_linker="$host_os dld.sl"
22544     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22545     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22546     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22547     soname_spec='${libname}${release}${shared_ext}$major'
22548     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22549     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22550     ;;
22551   *)
22552    shrext_cmds='.sl'
22553    dynamic_linker="$host_os dld.sl"
22554    shlibpath_var=SHLIB_PATH
22555    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22556    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22557    soname_spec='${libname}${release}${shared_ext}$major'
22558    ;;
22559  esac
22560  # HP-UX runs *really* slowly unless shared libraries are mode 555.
22561  postinstall_cmds='chmod 555 $lib'
22562  ;;
22563
22564irix5* | irix6* | nonstopux*)
22565  case $host_os in
22566    nonstopux*) version_type=nonstopux ;;
22567    *)
22568	if test "$lt_cv_prog_gnu_ld" = yes; then
22569		version_type=linux
22570	else
22571		version_type=irix
22572	fi ;;
22573  esac
22574  need_lib_prefix=no
22575  need_version=no
22576  soname_spec='${libname}${release}${shared_ext}$major'
22577  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22578  case $host_os in
22579  irix5* | nonstopux*)
22580    libsuff= shlibsuff=
22581    ;;
22582  *)
22583    case $LD in # libtool.m4 will add one of these switches to LD
22584    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22585      libsuff= shlibsuff= libmagic=32-bit;;
22586    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22587      libsuff=32 shlibsuff=N32 libmagic=N32;;
22588    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22589      libsuff=64 shlibsuff=64 libmagic=64-bit;;
22590    *) libsuff= shlibsuff= libmagic=never-match;;
22591    esac
22592    ;;
22593  esac
22594  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22595  shlibpath_overrides_runpath=no
22596  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22597  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22598  hardcode_into_libs=yes
22599  ;;
22600
22601# No shared lib support for Linux oldld, aout, or coff.
22602linux*oldld* | linux*aout* | linux*coff*)
22603  dynamic_linker=no
22604  ;;
22605
22606# This must be Linux ELF.
22607linux*)
22608  version_type=linux
22609  need_lib_prefix=no
22610  need_version=no
22611  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22612  soname_spec='${libname}${release}${shared_ext}$major'
22613  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22614  shlibpath_var=LD_LIBRARY_PATH
22615  shlibpath_overrides_runpath=no
22616  # This implies no fast_install, which is unacceptable.
22617  # Some rework will be needed to allow for fast_install
22618  # before this can be enabled.
22619  hardcode_into_libs=yes
22620
22621  # Append ld.so.conf contents to the search path
22622  if test -f /etc/ld.so.conf; then
22623    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22624    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22625  fi
22626
22627  # We used to test for /lib/ld.so.1 and disable shared libraries on
22628  # powerpc, because MkLinux only supported shared libraries with the
22629  # GNU dynamic linker.  Since this was broken with cross compilers,
22630  # most powerpc-linux boxes support dynamic linking these days and
22631  # people can always --disable-shared, the test was removed, and we
22632  # assume the GNU/Linux dynamic linker is in use.
22633  dynamic_linker='GNU/Linux ld.so'
22634  ;;
22635
22636knetbsd*-gnu)
22637  version_type=linux
22638  need_lib_prefix=no
22639  need_version=no
22640  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22641  soname_spec='${libname}${release}${shared_ext}$major'
22642  shlibpath_var=LD_LIBRARY_PATH
22643  shlibpath_overrides_runpath=no
22644  hardcode_into_libs=yes
22645  dynamic_linker='GNU ld.so'
22646  ;;
22647
22648netbsd*)
22649  version_type=sunos
22650  need_lib_prefix=no
22651  need_version=no
22652  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22653    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22654    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22655    dynamic_linker='NetBSD (a.out) ld.so'
22656  else
22657    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22658    soname_spec='${libname}${release}${shared_ext}$major'
22659    dynamic_linker='NetBSD ld.elf_so'
22660  fi
22661  shlibpath_var=LD_LIBRARY_PATH
22662  shlibpath_overrides_runpath=yes
22663  hardcode_into_libs=yes
22664  ;;
22665
22666newsos6)
22667  version_type=linux
22668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22669  shlibpath_var=LD_LIBRARY_PATH
22670  shlibpath_overrides_runpath=yes
22671  ;;
22672
22673nto-qnx*)
22674  version_type=linux
22675  need_lib_prefix=no
22676  need_version=no
22677  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22678  soname_spec='${libname}${release}${shared_ext}$major'
22679  shlibpath_var=LD_LIBRARY_PATH
22680  shlibpath_overrides_runpath=yes
22681  ;;
22682
22683openbsd*)
22684  version_type=sunos
22685  need_lib_prefix=no
22686  need_version=no
22687  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22688  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22689  shlibpath_var=LD_LIBRARY_PATH
22690  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22691    case $host_os in
22692      openbsd2.[89] | openbsd2.[89].*)
22693	shlibpath_overrides_runpath=no
22694	;;
22695      *)
22696	shlibpath_overrides_runpath=yes
22697	;;
22698      esac
22699  else
22700    shlibpath_overrides_runpath=yes
22701  fi
22702  ;;
22703
22704os2*)
22705  libname_spec='$name'
22706  shrext_cmds=".dll"
22707  need_lib_prefix=no
22708  library_names_spec='$libname${shared_ext} $libname.a'
22709  dynamic_linker='OS/2 ld.exe'
22710  shlibpath_var=LIBPATH
22711  ;;
22712
22713osf3* | osf4* | osf5*)
22714  version_type=osf
22715  need_lib_prefix=no
22716  need_version=no
22717  soname_spec='${libname}${release}${shared_ext}$major'
22718  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22719  shlibpath_var=LD_LIBRARY_PATH
22720  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22721  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22722  ;;
22723
22724sco3.2v5*)
22725  version_type=osf
22726  soname_spec='${libname}${release}${shared_ext}$major'
22727  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22728  shlibpath_var=LD_LIBRARY_PATH
22729  ;;
22730
22731solaris*)
22732  version_type=linux
22733  need_lib_prefix=no
22734  need_version=no
22735  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22736  soname_spec='${libname}${release}${shared_ext}$major'
22737  shlibpath_var=LD_LIBRARY_PATH
22738  shlibpath_overrides_runpath=yes
22739  hardcode_into_libs=yes
22740  # ldd complains unless libraries are executable
22741  postinstall_cmds='chmod +x $lib'
22742  ;;
22743
22744sunos4*)
22745  version_type=sunos
22746  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22747  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22748  shlibpath_var=LD_LIBRARY_PATH
22749  shlibpath_overrides_runpath=yes
22750  if test "$with_gnu_ld" = yes; then
22751    need_lib_prefix=no
22752  fi
22753  need_version=yes
22754  ;;
22755
22756sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22757  version_type=linux
22758  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22759  soname_spec='${libname}${release}${shared_ext}$major'
22760  shlibpath_var=LD_LIBRARY_PATH
22761  case $host_vendor in
22762    sni)
22763      shlibpath_overrides_runpath=no
22764      need_lib_prefix=no
22765      export_dynamic_flag_spec='${wl}-Blargedynsym'
22766      runpath_var=LD_RUN_PATH
22767      ;;
22768    siemens)
22769      need_lib_prefix=no
22770      ;;
22771    motorola)
22772      need_lib_prefix=no
22773      need_version=no
22774      shlibpath_overrides_runpath=no
22775      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22776      ;;
22777  esac
22778  ;;
22779
22780sysv4*MP*)
22781  if test -d /usr/nec ;then
22782    version_type=linux
22783    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22784    soname_spec='$libname${shared_ext}.$major'
22785    shlibpath_var=LD_LIBRARY_PATH
22786  fi
22787  ;;
22788
22789uts4*)
22790  version_type=linux
22791  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22792  soname_spec='${libname}${release}${shared_ext}$major'
22793  shlibpath_var=LD_LIBRARY_PATH
22794  ;;
22795
22796*)
22797  dynamic_linker=no
22798  ;;
22799esac
22800echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22801echo "${ECHO_T}$dynamic_linker" >&6
22802test "$dynamic_linker" = no && can_build_shared=no
22803
22804echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22805echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22806hardcode_action_GCJ=
22807if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22808   test -n "$runpath_var_GCJ" || \
22809   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22810
22811  # We can hardcode non-existant directories.
22812  if test "$hardcode_direct_GCJ" != no &&
22813     # If the only mechanism to avoid hardcoding is shlibpath_var, we
22814     # have to relink, otherwise we might link with an installed library
22815     # when we should be linking with a yet-to-be-installed one
22816     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22817     test "$hardcode_minus_L_GCJ" != no; then
22818    # Linking always hardcodes the temporary library directory.
22819    hardcode_action_GCJ=relink
22820  else
22821    # We can link without hardcoding, and we can hardcode nonexisting dirs.
22822    hardcode_action_GCJ=immediate
22823  fi
22824else
22825  # We cannot hardcode anything, or else we can only hardcode existing
22826  # directories.
22827  hardcode_action_GCJ=unsupported
22828fi
22829echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22830echo "${ECHO_T}$hardcode_action_GCJ" >&6
22831
22832if test "$hardcode_action_GCJ" = relink; then
22833  # Fast installation is not supported
22834  enable_fast_install=no
22835elif test "$shlibpath_overrides_runpath" = yes ||
22836     test "$enable_shared" = no; then
22837  # Fast installation is not necessary
22838  enable_fast_install=needless
22839fi
22840
22841striplib=
22842old_striplib=
22843echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22844echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22845if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22846  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22847  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22848  echo "$as_me:$LINENO: result: yes" >&5
22849echo "${ECHO_T}yes" >&6
22850else
22851# FIXME - insert some real tests, host_os isn't really good enough
22852  case $host_os in
22853   darwin*)
22854       if test -n "$STRIP" ; then
22855         striplib="$STRIP -x"
22856         echo "$as_me:$LINENO: result: yes" >&5
22857echo "${ECHO_T}yes" >&6
22858       else
22859  echo "$as_me:$LINENO: result: no" >&5
22860echo "${ECHO_T}no" >&6
22861fi
22862       ;;
22863   *)
22864  echo "$as_me:$LINENO: result: no" >&5
22865echo "${ECHO_T}no" >&6
22866    ;;
22867  esac
22868fi
22869
22870if test "x$enable_dlopen" != xyes; then
22871  enable_dlopen=unknown
22872  enable_dlopen_self=unknown
22873  enable_dlopen_self_static=unknown
22874else
22875  lt_cv_dlopen=no
22876  lt_cv_dlopen_libs=
22877
22878  case $host_os in
22879  beos*)
22880    lt_cv_dlopen="load_add_on"
22881    lt_cv_dlopen_libs=
22882    lt_cv_dlopen_self=yes
22883    ;;
22884
22885  mingw* | pw32*)
22886    lt_cv_dlopen="LoadLibrary"
22887    lt_cv_dlopen_libs=
22888   ;;
22889
22890  cygwin*)
22891    lt_cv_dlopen="dlopen"
22892    lt_cv_dlopen_libs=
22893   ;;
22894
22895  darwin*)
22896  # if libdl is installed we need to link against it
22897    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22898echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22899if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22900  echo $ECHO_N "(cached) $ECHO_C" >&6
22901else
22902  ac_check_lib_save_LIBS=$LIBS
22903LIBS="-ldl  $LIBS"
22904cat >conftest.$ac_ext <<_ACEOF
22905/* confdefs.h.  */
22906_ACEOF
22907cat confdefs.h >>conftest.$ac_ext
22908cat >>conftest.$ac_ext <<_ACEOF
22909/* end confdefs.h.  */
22910
22911/* Override any gcc2 internal prototype to avoid an error.  */
22912#ifdef __cplusplus
22913extern "C"
22914#endif
22915/* We use char because int might match the return type of a gcc2
22916   builtin and then its argument prototype would still apply.  */
22917char dlopen ();
22918int
22919main ()
22920{
22921dlopen ();
22922  ;
22923  return 0;
22924}
22925_ACEOF
22926rm -f conftest.$ac_objext conftest$ac_exeext
22927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22928  (eval $ac_link) 2>conftest.er1
22929  ac_status=$?
22930  grep -v '^ *+' conftest.er1 >conftest.err
22931  rm -f conftest.er1
22932  cat conftest.err >&5
22933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934  (exit $ac_status); } &&
22935	 { ac_try='test -z "$ac_c_werror_flag"
22936			 || test ! -s conftest.err'
22937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22938  (eval $ac_try) 2>&5
22939  ac_status=$?
22940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941  (exit $ac_status); }; } &&
22942	 { ac_try='test -s conftest$ac_exeext'
22943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22944  (eval $ac_try) 2>&5
22945  ac_status=$?
22946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947  (exit $ac_status); }; }; then
22948  ac_cv_lib_dl_dlopen=yes
22949else
22950  echo "$as_me: failed program was:" >&5
22951sed 's/^/| /' conftest.$ac_ext >&5
22952
22953ac_cv_lib_dl_dlopen=no
22954fi
22955rm -f conftest.err conftest.$ac_objext \
22956      conftest$ac_exeext conftest.$ac_ext
22957LIBS=$ac_check_lib_save_LIBS
22958fi
22959echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22960echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22961if test $ac_cv_lib_dl_dlopen = yes; then
22962  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22963else
22964
22965    lt_cv_dlopen="dyld"
22966    lt_cv_dlopen_libs=
22967    lt_cv_dlopen_self=yes
22968
22969fi
22970
22971   ;;
22972
22973  *)
22974    echo "$as_me:$LINENO: checking for shl_load" >&5
22975echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22976if test "${ac_cv_func_shl_load+set}" = set; then
22977  echo $ECHO_N "(cached) $ECHO_C" >&6
22978else
22979  cat >conftest.$ac_ext <<_ACEOF
22980/* confdefs.h.  */
22981_ACEOF
22982cat confdefs.h >>conftest.$ac_ext
22983cat >>conftest.$ac_ext <<_ACEOF
22984/* end confdefs.h.  */
22985/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22986   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22987#define shl_load innocuous_shl_load
22988
22989/* System header to define __stub macros and hopefully few prototypes,
22990    which can conflict with char shl_load (); below.
22991    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22992    <limits.h> exists even on freestanding compilers.  */
22993
22994#ifdef __STDC__
22995# include <limits.h>
22996#else
22997# include <assert.h>
22998#endif
22999
23000#undef shl_load
23001
23002/* Override any gcc2 internal prototype to avoid an error.  */
23003#ifdef __cplusplus
23004extern "C"
23005{
23006#endif
23007/* We use char because int might match the return type of a gcc2
23008   builtin and then its argument prototype would still apply.  */
23009char shl_load ();
23010/* The GNU C library defines this for functions which it implements
23011    to always fail with ENOSYS.  Some functions are actually named
23012    something starting with __ and the normal name is an alias.  */
23013#if defined (__stub_shl_load) || defined (__stub___shl_load)
23014choke me
23015#else
23016char (*f) () = shl_load;
23017#endif
23018#ifdef __cplusplus
23019}
23020#endif
23021
23022int
23023main ()
23024{
23025return f != shl_load;
23026  ;
23027  return 0;
23028}
23029_ACEOF
23030rm -f conftest.$ac_objext conftest$ac_exeext
23031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23032  (eval $ac_link) 2>conftest.er1
23033  ac_status=$?
23034  grep -v '^ *+' conftest.er1 >conftest.err
23035  rm -f conftest.er1
23036  cat conftest.err >&5
23037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038  (exit $ac_status); } &&
23039	 { ac_try='test -z "$ac_c_werror_flag"
23040			 || test ! -s conftest.err'
23041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23042  (eval $ac_try) 2>&5
23043  ac_status=$?
23044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045  (exit $ac_status); }; } &&
23046	 { ac_try='test -s conftest$ac_exeext'
23047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048  (eval $ac_try) 2>&5
23049  ac_status=$?
23050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051  (exit $ac_status); }; }; then
23052  ac_cv_func_shl_load=yes
23053else
23054  echo "$as_me: failed program was:" >&5
23055sed 's/^/| /' conftest.$ac_ext >&5
23056
23057ac_cv_func_shl_load=no
23058fi
23059rm -f conftest.err conftest.$ac_objext \
23060      conftest$ac_exeext conftest.$ac_ext
23061fi
23062echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23063echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23064if test $ac_cv_func_shl_load = yes; then
23065  lt_cv_dlopen="shl_load"
23066else
23067  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23068echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23069if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23070  echo $ECHO_N "(cached) $ECHO_C" >&6
23071else
23072  ac_check_lib_save_LIBS=$LIBS
23073LIBS="-ldld  $LIBS"
23074cat >conftest.$ac_ext <<_ACEOF
23075/* confdefs.h.  */
23076_ACEOF
23077cat confdefs.h >>conftest.$ac_ext
23078cat >>conftest.$ac_ext <<_ACEOF
23079/* end confdefs.h.  */
23080
23081/* Override any gcc2 internal prototype to avoid an error.  */
23082#ifdef __cplusplus
23083extern "C"
23084#endif
23085/* We use char because int might match the return type of a gcc2
23086   builtin and then its argument prototype would still apply.  */
23087char shl_load ();
23088int
23089main ()
23090{
23091shl_load ();
23092  ;
23093  return 0;
23094}
23095_ACEOF
23096rm -f conftest.$ac_objext conftest$ac_exeext
23097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23098  (eval $ac_link) 2>conftest.er1
23099  ac_status=$?
23100  grep -v '^ *+' conftest.er1 >conftest.err
23101  rm -f conftest.er1
23102  cat conftest.err >&5
23103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104  (exit $ac_status); } &&
23105	 { ac_try='test -z "$ac_c_werror_flag"
23106			 || test ! -s conftest.err'
23107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23108  (eval $ac_try) 2>&5
23109  ac_status=$?
23110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111  (exit $ac_status); }; } &&
23112	 { ac_try='test -s conftest$ac_exeext'
23113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23114  (eval $ac_try) 2>&5
23115  ac_status=$?
23116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117  (exit $ac_status); }; }; then
23118  ac_cv_lib_dld_shl_load=yes
23119else
23120  echo "$as_me: failed program was:" >&5
23121sed 's/^/| /' conftest.$ac_ext >&5
23122
23123ac_cv_lib_dld_shl_load=no
23124fi
23125rm -f conftest.err conftest.$ac_objext \
23126      conftest$ac_exeext conftest.$ac_ext
23127LIBS=$ac_check_lib_save_LIBS
23128fi
23129echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23130echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23131if test $ac_cv_lib_dld_shl_load = yes; then
23132  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23133else
23134  echo "$as_me:$LINENO: checking for dlopen" >&5
23135echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23136if test "${ac_cv_func_dlopen+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 dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23146   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23147#define dlopen innocuous_dlopen
23148
23149/* System header to define __stub macros and hopefully few prototypes,
23150    which can conflict with char dlopen (); 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 dlopen
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 dlopen ();
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_dlopen) || defined (__stub___dlopen)
23174choke me
23175#else
23176char (*f) () = dlopen;
23177#endif
23178#ifdef __cplusplus
23179}
23180#endif
23181
23182int
23183main ()
23184{
23185return f != dlopen;
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_dlopen=yes
23213else
23214  echo "$as_me: failed program was:" >&5
23215sed 's/^/| /' conftest.$ac_ext >&5
23216
23217ac_cv_func_dlopen=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_dlopen" >&5
23223echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23224if test $ac_cv_func_dlopen = yes; then
23225  lt_cv_dlopen="dlopen"
23226else
23227  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23228echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23229if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23230  echo $ECHO_N "(cached) $ECHO_C" >&6
23231else
23232  ac_check_lib_save_LIBS=$LIBS
23233LIBS="-ldl  $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 dlopen ();
23248int
23249main ()
23250{
23251dlopen ();
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_dl_dlopen=yes
23279else
23280  echo "$as_me: failed program was:" >&5
23281sed 's/^/| /' conftest.$ac_ext >&5
23282
23283ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
23290echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23291if test $ac_cv_lib_dl_dlopen = yes; then
23292  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23293else
23294  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23295echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23296if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23297  echo $ECHO_N "(cached) $ECHO_C" >&6
23298else
23299  ac_check_lib_save_LIBS=$LIBS
23300LIBS="-lsvld  $LIBS"
23301cat >conftest.$ac_ext <<_ACEOF
23302/* confdefs.h.  */
23303_ACEOF
23304cat confdefs.h >>conftest.$ac_ext
23305cat >>conftest.$ac_ext <<_ACEOF
23306/* end confdefs.h.  */
23307
23308/* Override any gcc2 internal prototype to avoid an error.  */
23309#ifdef __cplusplus
23310extern "C"
23311#endif
23312/* We use char because int might match the return type of a gcc2
23313   builtin and then its argument prototype would still apply.  */
23314char dlopen ();
23315int
23316main ()
23317{
23318dlopen ();
23319  ;
23320  return 0;
23321}
23322_ACEOF
23323rm -f conftest.$ac_objext conftest$ac_exeext
23324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23325  (eval $ac_link) 2>conftest.er1
23326  ac_status=$?
23327  grep -v '^ *+' conftest.er1 >conftest.err
23328  rm -f conftest.er1
23329  cat conftest.err >&5
23330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331  (exit $ac_status); } &&
23332	 { ac_try='test -z "$ac_c_werror_flag"
23333			 || test ! -s conftest.err'
23334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23335  (eval $ac_try) 2>&5
23336  ac_status=$?
23337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338  (exit $ac_status); }; } &&
23339	 { ac_try='test -s conftest$ac_exeext'
23340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341  (eval $ac_try) 2>&5
23342  ac_status=$?
23343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344  (exit $ac_status); }; }; then
23345  ac_cv_lib_svld_dlopen=yes
23346else
23347  echo "$as_me: failed program was:" >&5
23348sed 's/^/| /' conftest.$ac_ext >&5
23349
23350ac_cv_lib_svld_dlopen=no
23351fi
23352rm -f conftest.err conftest.$ac_objext \
23353      conftest$ac_exeext conftest.$ac_ext
23354LIBS=$ac_check_lib_save_LIBS
23355fi
23356echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23357echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23358if test $ac_cv_lib_svld_dlopen = yes; then
23359  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23360else
23361  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23362echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23363if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23364  echo $ECHO_N "(cached) $ECHO_C" >&6
23365else
23366  ac_check_lib_save_LIBS=$LIBS
23367LIBS="-ldld  $LIBS"
23368cat >conftest.$ac_ext <<_ACEOF
23369/* confdefs.h.  */
23370_ACEOF
23371cat confdefs.h >>conftest.$ac_ext
23372cat >>conftest.$ac_ext <<_ACEOF
23373/* end confdefs.h.  */
23374
23375/* Override any gcc2 internal prototype to avoid an error.  */
23376#ifdef __cplusplus
23377extern "C"
23378#endif
23379/* We use char because int might match the return type of a gcc2
23380   builtin and then its argument prototype would still apply.  */
23381char dld_link ();
23382int
23383main ()
23384{
23385dld_link ();
23386  ;
23387  return 0;
23388}
23389_ACEOF
23390rm -f conftest.$ac_objext conftest$ac_exeext
23391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23392  (eval $ac_link) 2>conftest.er1
23393  ac_status=$?
23394  grep -v '^ *+' conftest.er1 >conftest.err
23395  rm -f conftest.er1
23396  cat conftest.err >&5
23397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398  (exit $ac_status); } &&
23399	 { ac_try='test -z "$ac_c_werror_flag"
23400			 || test ! -s conftest.err'
23401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23402  (eval $ac_try) 2>&5
23403  ac_status=$?
23404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405  (exit $ac_status); }; } &&
23406	 { ac_try='test -s conftest$ac_exeext'
23407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23408  (eval $ac_try) 2>&5
23409  ac_status=$?
23410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411  (exit $ac_status); }; }; then
23412  ac_cv_lib_dld_dld_link=yes
23413else
23414  echo "$as_me: failed program was:" >&5
23415sed 's/^/| /' conftest.$ac_ext >&5
23416
23417ac_cv_lib_dld_dld_link=no
23418fi
23419rm -f conftest.err conftest.$ac_objext \
23420      conftest$ac_exeext conftest.$ac_ext
23421LIBS=$ac_check_lib_save_LIBS
23422fi
23423echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23424echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23425if test $ac_cv_lib_dld_dld_link = yes; then
23426  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23427fi
23428
23429
23430fi
23431
23432
23433fi
23434
23435
23436fi
23437
23438
23439fi
23440
23441
23442fi
23443
23444    ;;
23445  esac
23446
23447  if test "x$lt_cv_dlopen" != xno; then
23448    enable_dlopen=yes
23449  else
23450    enable_dlopen=no
23451  fi
23452
23453  case $lt_cv_dlopen in
23454  dlopen)
23455    save_CPPFLAGS="$CPPFLAGS"
23456    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23457
23458    save_LDFLAGS="$LDFLAGS"
23459    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23460
23461    save_LIBS="$LIBS"
23462    LIBS="$lt_cv_dlopen_libs $LIBS"
23463
23464    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23465echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23466if test "${lt_cv_dlopen_self+set}" = set; then
23467  echo $ECHO_N "(cached) $ECHO_C" >&6
23468else
23469  	  if test "$cross_compiling" = yes; then :
23470  lt_cv_dlopen_self=cross
23471else
23472  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23473  lt_status=$lt_dlunknown
23474  cat > conftest.$ac_ext <<EOF
23475#line 23475 "configure"
23476#include "confdefs.h"
23477
23478#if HAVE_DLFCN_H
23479#include <dlfcn.h>
23480#endif
23481
23482#include <stdio.h>
23483
23484#ifdef RTLD_GLOBAL
23485#  define LT_DLGLOBAL		RTLD_GLOBAL
23486#else
23487#  ifdef DL_GLOBAL
23488#    define LT_DLGLOBAL		DL_GLOBAL
23489#  else
23490#    define LT_DLGLOBAL		0
23491#  endif
23492#endif
23493
23494/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23495   find out it does not work in some platform. */
23496#ifndef LT_DLLAZY_OR_NOW
23497#  ifdef RTLD_LAZY
23498#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
23499#  else
23500#    ifdef DL_LAZY
23501#      define LT_DLLAZY_OR_NOW		DL_LAZY
23502#    else
23503#      ifdef RTLD_NOW
23504#        define LT_DLLAZY_OR_NOW	RTLD_NOW
23505#      else
23506#        ifdef DL_NOW
23507#          define LT_DLLAZY_OR_NOW	DL_NOW
23508#        else
23509#          define LT_DLLAZY_OR_NOW	0
23510#        endif
23511#      endif
23512#    endif
23513#  endif
23514#endif
23515
23516#ifdef __cplusplus
23517extern "C" void exit (int);
23518#endif
23519
23520void fnord() { int i=42;}
23521int main ()
23522{
23523  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23524  int status = $lt_dlunknown;
23525
23526  if (self)
23527    {
23528      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23529      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23530      /* dlclose (self); */
23531    }
23532
23533    exit (status);
23534}
23535EOF
23536  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23537  (eval $ac_link) 2>&5
23538  ac_status=$?
23539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23541    (./conftest; exit; ) 2>/dev/null
23542    lt_status=$?
23543    case x$lt_status in
23544      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23545      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23546      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23547    esac
23548  else :
23549    # compilation failed
23550    lt_cv_dlopen_self=no
23551  fi
23552fi
23553rm -fr conftest*
23554
23555
23556fi
23557echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23558echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23559
23560    if test "x$lt_cv_dlopen_self" = xyes; then
23561      LDFLAGS="$LDFLAGS $link_static_flag"
23562      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23563echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23564if test "${lt_cv_dlopen_self_static+set}" = set; then
23565  echo $ECHO_N "(cached) $ECHO_C" >&6
23566else
23567  	  if test "$cross_compiling" = yes; then :
23568  lt_cv_dlopen_self_static=cross
23569else
23570  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23571  lt_status=$lt_dlunknown
23572  cat > conftest.$ac_ext <<EOF
23573#line 23573 "configure"
23574#include "confdefs.h"
23575
23576#if HAVE_DLFCN_H
23577#include <dlfcn.h>
23578#endif
23579
23580#include <stdio.h>
23581
23582#ifdef RTLD_GLOBAL
23583#  define LT_DLGLOBAL		RTLD_GLOBAL
23584#else
23585#  ifdef DL_GLOBAL
23586#    define LT_DLGLOBAL		DL_GLOBAL
23587#  else
23588#    define LT_DLGLOBAL		0
23589#  endif
23590#endif
23591
23592/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23593   find out it does not work in some platform. */
23594#ifndef LT_DLLAZY_OR_NOW
23595#  ifdef RTLD_LAZY
23596#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
23597#  else
23598#    ifdef DL_LAZY
23599#      define LT_DLLAZY_OR_NOW		DL_LAZY
23600#    else
23601#      ifdef RTLD_NOW
23602#        define LT_DLLAZY_OR_NOW	RTLD_NOW
23603#      else
23604#        ifdef DL_NOW
23605#          define LT_DLLAZY_OR_NOW	DL_NOW
23606#        else
23607#          define LT_DLLAZY_OR_NOW	0
23608#        endif
23609#      endif
23610#    endif
23611#  endif
23612#endif
23613
23614#ifdef __cplusplus
23615extern "C" void exit (int);
23616#endif
23617
23618void fnord() { int i=42;}
23619int main ()
23620{
23621  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23622  int status = $lt_dlunknown;
23623
23624  if (self)
23625    {
23626      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23627      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23628      /* dlclose (self); */
23629    }
23630
23631    exit (status);
23632}
23633EOF
23634  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23635  (eval $ac_link) 2>&5
23636  ac_status=$?
23637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23639    (./conftest; exit; ) 2>/dev/null
23640    lt_status=$?
23641    case x$lt_status in
23642      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23643      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23644      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23645    esac
23646  else :
23647    # compilation failed
23648    lt_cv_dlopen_self_static=no
23649  fi
23650fi
23651rm -fr conftest*
23652
23653
23654fi
23655echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23656echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23657    fi
23658
23659    CPPFLAGS="$save_CPPFLAGS"
23660    LDFLAGS="$save_LDFLAGS"
23661    LIBS="$save_LIBS"
23662    ;;
23663  esac
23664
23665  case $lt_cv_dlopen_self in
23666  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23667  *) enable_dlopen_self=unknown ;;
23668  esac
23669
23670  case $lt_cv_dlopen_self_static in
23671  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23672  *) enable_dlopen_self_static=unknown ;;
23673  esac
23674fi
23675
23676
23677# The else clause should only fire when bootstrapping the
23678# libtool distribution, otherwise you forgot to ship ltmain.sh
23679# with your package, and you will get complaints that there are
23680# no rules to generate ltmain.sh.
23681if test -f "$ltmain"; then
23682  # See if we are running on zsh, and set the options which allow our commands through
23683  # without removal of \ escapes.
23684  if test -n "${ZSH_VERSION+set}" ; then
23685    setopt NO_GLOB_SUBST
23686  fi
23687  # Now quote all the things that may contain metacharacters while being
23688  # careful not to overquote the AC_SUBSTed values.  We take copies of the
23689  # variables and quote the copies for generation of the libtool script.
23690  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23691    SED SHELL STRIP \
23692    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23693    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23694    deplibs_check_method reload_flag reload_cmds need_locks \
23695    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23696    lt_cv_sys_global_symbol_to_c_name_address \
23697    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23698    old_postinstall_cmds old_postuninstall_cmds \
23699    compiler_GCJ \
23700    CC_GCJ \
23701    LD_GCJ \
23702    lt_prog_compiler_wl_GCJ \
23703    lt_prog_compiler_pic_GCJ \
23704    lt_prog_compiler_static_GCJ \
23705    lt_prog_compiler_no_builtin_flag_GCJ \
23706    export_dynamic_flag_spec_GCJ \
23707    thread_safe_flag_spec_GCJ \
23708    whole_archive_flag_spec_GCJ \
23709    enable_shared_with_static_runtimes_GCJ \
23710    old_archive_cmds_GCJ \
23711    old_archive_from_new_cmds_GCJ \
23712    predep_objects_GCJ \
23713    postdep_objects_GCJ \
23714    predeps_GCJ \
23715    postdeps_GCJ \
23716    compiler_lib_search_path_GCJ \
23717    archive_cmds_GCJ \
23718    archive_expsym_cmds_GCJ \
23719    postinstall_cmds_GCJ \
23720    postuninstall_cmds_GCJ \
23721    old_archive_from_expsyms_cmds_GCJ \
23722    allow_undefined_flag_GCJ \
23723    no_undefined_flag_GCJ \
23724    export_symbols_cmds_GCJ \
23725    hardcode_libdir_flag_spec_GCJ \
23726    hardcode_libdir_flag_spec_ld_GCJ \
23727    hardcode_libdir_separator_GCJ \
23728    hardcode_automatic_GCJ \
23729    module_cmds_GCJ \
23730    module_expsym_cmds_GCJ \
23731    lt_cv_prog_compiler_c_o_GCJ \
23732    exclude_expsyms_GCJ \
23733    include_expsyms_GCJ; do
23734
23735    case $var in
23736    old_archive_cmds_GCJ | \
23737    old_archive_from_new_cmds_GCJ | \
23738    archive_cmds_GCJ | \
23739    archive_expsym_cmds_GCJ | \
23740    module_cmds_GCJ | \
23741    module_expsym_cmds_GCJ | \
23742    old_archive_from_expsyms_cmds_GCJ | \
23743    export_symbols_cmds_GCJ | \
23744    extract_expsyms_cmds | reload_cmds | finish_cmds | \
23745    postinstall_cmds | postuninstall_cmds | \
23746    old_postinstall_cmds | old_postuninstall_cmds | \
23747    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23748      # Double-quote double-evaled strings.
23749      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23750      ;;
23751    *)
23752      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23753      ;;
23754    esac
23755  done
23756
23757  case $lt_echo in
23758  *'\$0 --fallback-echo"')
23759    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23760    ;;
23761  esac
23762
23763cfgfile="$ofile"
23764
23765  cat <<__EOF__ >> "$cfgfile"
23766# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23767
23768# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23769
23770# Shell to use when invoking shell scripts.
23771SHELL=$lt_SHELL
23772
23773# Whether or not to build shared libraries.
23774build_libtool_libs=$enable_shared
23775
23776# Whether or not to build static libraries.
23777build_old_libs=$enable_static
23778
23779# Whether or not to add -lc for building shared libraries.
23780build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23781
23782# Whether or not to disallow shared libs when runtime libs are static
23783allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23784
23785# Whether or not to optimize for fast installation.
23786fast_install=$enable_fast_install
23787
23788# The host system.
23789host_alias=$host_alias
23790host=$host
23791
23792# An echo program that does not interpret backslashes.
23793echo=$lt_echo
23794
23795# The archiver.
23796AR=$lt_AR
23797AR_FLAGS=$lt_AR_FLAGS
23798
23799# A C compiler.
23800LTCC=$lt_LTCC
23801
23802# A language-specific compiler.
23803CC=$lt_compiler_GCJ
23804
23805# Is the compiler the GNU C compiler?
23806with_gcc=$GCC_GCJ
23807
23808# An ERE matcher.
23809EGREP=$lt_EGREP
23810
23811# The linker used to build libraries.
23812LD=$lt_LD_GCJ
23813
23814# Whether we need hard or soft links.
23815LN_S=$lt_LN_S
23816
23817# A BSD-compatible nm program.
23818NM=$lt_NM
23819
23820# A symbol stripping program
23821STRIP=$lt_STRIP
23822
23823# Used to examine libraries when file_magic_cmd begins "file"
23824MAGIC_CMD=$MAGIC_CMD
23825
23826# Used on cygwin: DLL creation program.
23827DLLTOOL="$DLLTOOL"
23828
23829# Used on cygwin: object dumper.
23830OBJDUMP="$OBJDUMP"
23831
23832# Used on cygwin: assembler.
23833AS="$AS"
23834
23835# The name of the directory that contains temporary libtool files.
23836objdir=$objdir
23837
23838# How to create reloadable object files.
23839reload_flag=$lt_reload_flag
23840reload_cmds=$lt_reload_cmds
23841
23842# How to pass a linker flag through the compiler.
23843wl=$lt_lt_prog_compiler_wl_GCJ
23844
23845# Object file suffix (normally "o").
23846objext="$ac_objext"
23847
23848# Old archive suffix (normally "a").
23849libext="$libext"
23850
23851# Shared library suffix (normally ".so").
23852shrext_cmds='$shrext_cmds'
23853
23854# Executable file suffix (normally "").
23855exeext="$exeext"
23856
23857# Additional compiler flags for building library objects.
23858pic_flag=$lt_lt_prog_compiler_pic_GCJ
23859pic_mode=$pic_mode
23860
23861# What is the maximum length of a command?
23862max_cmd_len=$lt_cv_sys_max_cmd_len
23863
23864# Does compiler simultaneously support -c and -o options?
23865compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23866
23867# Must we lock files when doing compilation ?
23868need_locks=$lt_need_locks
23869
23870# Do we need the lib prefix for modules?
23871need_lib_prefix=$need_lib_prefix
23872
23873# Do we need a version for libraries?
23874need_version=$need_version
23875
23876# Whether dlopen is supported.
23877dlopen_support=$enable_dlopen
23878
23879# Whether dlopen of programs is supported.
23880dlopen_self=$enable_dlopen_self
23881
23882# Whether dlopen of statically linked programs is supported.
23883dlopen_self_static=$enable_dlopen_self_static
23884
23885# Compiler flag to prevent dynamic linking.
23886link_static_flag=$lt_lt_prog_compiler_static_GCJ
23887
23888# Compiler flag to turn off builtin functions.
23889no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23890
23891# Compiler flag to allow reflexive dlopens.
23892export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23893
23894# Compiler flag to generate shared objects directly from archives.
23895whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23896
23897# Compiler flag to generate thread-safe objects.
23898thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23899
23900# Library versioning type.
23901version_type=$version_type
23902
23903# Format of library name prefix.
23904libname_spec=$lt_libname_spec
23905
23906# List of archive names.  First name is the real one, the rest are links.
23907# The last name is the one that the linker finds with -lNAME.
23908library_names_spec=$lt_library_names_spec
23909
23910# The coded name of the library, if different from the real name.
23911soname_spec=$lt_soname_spec
23912
23913# Commands used to build and install an old-style archive.
23914RANLIB=$lt_RANLIB
23915old_archive_cmds=$lt_old_archive_cmds_GCJ
23916old_postinstall_cmds=$lt_old_postinstall_cmds
23917old_postuninstall_cmds=$lt_old_postuninstall_cmds
23918
23919# Create an old-style archive from a shared archive.
23920old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23921
23922# Create a temporary old-style archive to link instead of a shared archive.
23923old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23924
23925# Commands used to build and install a shared archive.
23926archive_cmds=$lt_archive_cmds_GCJ
23927archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23928postinstall_cmds=$lt_postinstall_cmds
23929postuninstall_cmds=$lt_postuninstall_cmds
23930
23931# Commands used to build a loadable module (assumed same as above if empty)
23932module_cmds=$lt_module_cmds_GCJ
23933module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23934
23935# Commands to strip libraries.
23936old_striplib=$lt_old_striplib
23937striplib=$lt_striplib
23938
23939# Dependencies to place before the objects being linked to create a
23940# shared library.
23941predep_objects=$lt_predep_objects_GCJ
23942
23943# Dependencies to place after the objects being linked to create a
23944# shared library.
23945postdep_objects=$lt_postdep_objects_GCJ
23946
23947# Dependencies to place before the objects being linked to create a
23948# shared library.
23949predeps=$lt_predeps_GCJ
23950
23951# Dependencies to place after the objects being linked to create a
23952# shared library.
23953postdeps=$lt_postdeps_GCJ
23954
23955# The library search path used internally by the compiler when linking
23956# a shared library.
23957compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23958
23959# Method to check whether dependent libraries are shared objects.
23960deplibs_check_method=$lt_deplibs_check_method
23961
23962# Command to use when deplibs_check_method == file_magic.
23963file_magic_cmd=$lt_file_magic_cmd
23964
23965# Flag that allows shared libraries with undefined symbols to be built.
23966allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23967
23968# Flag that forces no undefined symbols.
23969no_undefined_flag=$lt_no_undefined_flag_GCJ
23970
23971# Commands used to finish a libtool library installation in a directory.
23972finish_cmds=$lt_finish_cmds
23973
23974# Same as above, but a single script fragment to be evaled but not shown.
23975finish_eval=$lt_finish_eval
23976
23977# Take the output of nm and produce a listing of raw symbols and C names.
23978global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23979
23980# Transform the output of nm in a proper C declaration
23981global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23982
23983# Transform the output of nm in a C name address pair
23984global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23985
23986# This is the shared library runtime path variable.
23987runpath_var=$runpath_var
23988
23989# This is the shared library path variable.
23990shlibpath_var=$shlibpath_var
23991
23992# Is shlibpath searched before the hard-coded library search path?
23993shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23994
23995# How to hardcode a shared library path into an executable.
23996hardcode_action=$hardcode_action_GCJ
23997
23998# Whether we should hardcode library paths into libraries.
23999hardcode_into_libs=$hardcode_into_libs
24000
24001# Flag to hardcode \$libdir into a binary during linking.
24002# This must work even if \$libdir does not exist.
24003hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24004
24005# If ld is used when linking, flag to hardcode \$libdir into
24006# a binary during linking. This must work even if \$libdir does
24007# not exist.
24008hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24009
24010# Whether we need a single -rpath flag with a separated argument.
24011hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24012
24013# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24014# resulting binary.
24015hardcode_direct=$hardcode_direct_GCJ
24016
24017# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24018# resulting binary.
24019hardcode_minus_L=$hardcode_minus_L_GCJ
24020
24021# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24022# the resulting binary.
24023hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24024
24025# Set to yes if building a shared library automatically hardcodes DIR into the library
24026# and all subsequent libraries and executables linked against it.
24027hardcode_automatic=$hardcode_automatic_GCJ
24028
24029# Variables whose values should be saved in libtool wrapper scripts and
24030# restored at relink time.
24031variables_saved_for_relink="$variables_saved_for_relink"
24032
24033# Whether libtool must link a program against all its dependency libraries.
24034link_all_deplibs=$link_all_deplibs_GCJ
24035
24036# Compile-time system search path for libraries
24037sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24038
24039# Run-time system search path for libraries
24040sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24041
24042# Fix the shell variable \$srcfile for the compiler.
24043fix_srcfile_path="$fix_srcfile_path_GCJ"
24044
24045# Set to yes if exported symbols are required.
24046always_export_symbols=$always_export_symbols_GCJ
24047
24048# The commands to list exported symbols.
24049export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24050
24051# The commands to extract the exported symbol list from a shared archive.
24052extract_expsyms_cmds=$lt_extract_expsyms_cmds
24053
24054# Symbols that should not be listed in the preloaded symbols.
24055exclude_expsyms=$lt_exclude_expsyms_GCJ
24056
24057# Symbols that must always be exported.
24058include_expsyms=$lt_include_expsyms_GCJ
24059
24060# ### END LIBTOOL TAG CONFIG: $tagname
24061
24062__EOF__
24063
24064
24065else
24066  # If there is no Makefile yet, we rely on a make rule to execute
24067  # `config.status --recheck' to rerun these tests and create the
24068  # libtool script then.
24069  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24070  if test -f "$ltmain_in"; then
24071    test -f Makefile && make "$ltmain"
24072  fi
24073fi
24074
24075
24076ac_ext=c
24077ac_cpp='$CPP $CPPFLAGS'
24078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24080ac_compiler_gnu=$ac_cv_c_compiler_gnu
24081
24082CC="$lt_save_CC"
24083
24084	else
24085	  tagname=""
24086	fi
24087	;;
24088
24089      RC)
24090	ac_ext=c
24091ac_cpp='$CPP $CPPFLAGS'
24092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24094ac_compiler_gnu=$ac_cv_c_compiler_gnu
24095
24096
24097# Source file extension for RC test sources.
24098ac_ext=rc
24099
24100# Object file extension for compiled RC test sources.
24101objext=o
24102objext_RC=$objext
24103
24104# Code to be used in simple compile tests
24105lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24106
24107# Code to be used in simple link tests
24108lt_simple_link_test_code="$lt_simple_compile_test_code"
24109
24110# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24111
24112# If no C compiler was specified, use CC.
24113LTCC=${LTCC-"$CC"}
24114
24115# Allow CC to be a program name with arguments.
24116compiler=$CC
24117
24118
24119# Allow CC to be a program name with arguments.
24120lt_save_CC="$CC"
24121CC=${RC-"windres"}
24122compiler=$CC
24123compiler_RC=$CC
24124lt_cv_prog_compiler_c_o_RC=yes
24125
24126# The else clause should only fire when bootstrapping the
24127# libtool distribution, otherwise you forgot to ship ltmain.sh
24128# with your package, and you will get complaints that there are
24129# no rules to generate ltmain.sh.
24130if test -f "$ltmain"; then
24131  # See if we are running on zsh, and set the options which allow our commands through
24132  # without removal of \ escapes.
24133  if test -n "${ZSH_VERSION+set}" ; then
24134    setopt NO_GLOB_SUBST
24135  fi
24136  # Now quote all the things that may contain metacharacters while being
24137  # careful not to overquote the AC_SUBSTed values.  We take copies of the
24138  # variables and quote the copies for generation of the libtool script.
24139  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24140    SED SHELL STRIP \
24141    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24142    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24143    deplibs_check_method reload_flag reload_cmds need_locks \
24144    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24145    lt_cv_sys_global_symbol_to_c_name_address \
24146    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24147    old_postinstall_cmds old_postuninstall_cmds \
24148    compiler_RC \
24149    CC_RC \
24150    LD_RC \
24151    lt_prog_compiler_wl_RC \
24152    lt_prog_compiler_pic_RC \
24153    lt_prog_compiler_static_RC \
24154    lt_prog_compiler_no_builtin_flag_RC \
24155    export_dynamic_flag_spec_RC \
24156    thread_safe_flag_spec_RC \
24157    whole_archive_flag_spec_RC \
24158    enable_shared_with_static_runtimes_RC \
24159    old_archive_cmds_RC \
24160    old_archive_from_new_cmds_RC \
24161    predep_objects_RC \
24162    postdep_objects_RC \
24163    predeps_RC \
24164    postdeps_RC \
24165    compiler_lib_search_path_RC \
24166    archive_cmds_RC \
24167    archive_expsym_cmds_RC \
24168    postinstall_cmds_RC \
24169    postuninstall_cmds_RC \
24170    old_archive_from_expsyms_cmds_RC \
24171    allow_undefined_flag_RC \
24172    no_undefined_flag_RC \
24173    export_symbols_cmds_RC \
24174    hardcode_libdir_flag_spec_RC \
24175    hardcode_libdir_flag_spec_ld_RC \
24176    hardcode_libdir_separator_RC \
24177    hardcode_automatic_RC \
24178    module_cmds_RC \
24179    module_expsym_cmds_RC \
24180    lt_cv_prog_compiler_c_o_RC \
24181    exclude_expsyms_RC \
24182    include_expsyms_RC; do
24183
24184    case $var in
24185    old_archive_cmds_RC | \
24186    old_archive_from_new_cmds_RC | \
24187    archive_cmds_RC | \
24188    archive_expsym_cmds_RC | \
24189    module_cmds_RC | \
24190    module_expsym_cmds_RC | \
24191    old_archive_from_expsyms_cmds_RC | \
24192    export_symbols_cmds_RC | \
24193    extract_expsyms_cmds | reload_cmds | finish_cmds | \
24194    postinstall_cmds | postuninstall_cmds | \
24195    old_postinstall_cmds | old_postuninstall_cmds | \
24196    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24197      # Double-quote double-evaled strings.
24198      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24199      ;;
24200    *)
24201      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24202      ;;
24203    esac
24204  done
24205
24206  case $lt_echo in
24207  *'\$0 --fallback-echo"')
24208    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24209    ;;
24210  esac
24211
24212cfgfile="$ofile"
24213
24214  cat <<__EOF__ >> "$cfgfile"
24215# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24216
24217# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24218
24219# Shell to use when invoking shell scripts.
24220SHELL=$lt_SHELL
24221
24222# Whether or not to build shared libraries.
24223build_libtool_libs=$enable_shared
24224
24225# Whether or not to build static libraries.
24226build_old_libs=$enable_static
24227
24228# Whether or not to add -lc for building shared libraries.
24229build_libtool_need_lc=$archive_cmds_need_lc_RC
24230
24231# Whether or not to disallow shared libs when runtime libs are static
24232allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24233
24234# Whether or not to optimize for fast installation.
24235fast_install=$enable_fast_install
24236
24237# The host system.
24238host_alias=$host_alias
24239host=$host
24240
24241# An echo program that does not interpret backslashes.
24242echo=$lt_echo
24243
24244# The archiver.
24245AR=$lt_AR
24246AR_FLAGS=$lt_AR_FLAGS
24247
24248# A C compiler.
24249LTCC=$lt_LTCC
24250
24251# A language-specific compiler.
24252CC=$lt_compiler_RC
24253
24254# Is the compiler the GNU C compiler?
24255with_gcc=$GCC_RC
24256
24257# An ERE matcher.
24258EGREP=$lt_EGREP
24259
24260# The linker used to build libraries.
24261LD=$lt_LD_RC
24262
24263# Whether we need hard or soft links.
24264LN_S=$lt_LN_S
24265
24266# A BSD-compatible nm program.
24267NM=$lt_NM
24268
24269# A symbol stripping program
24270STRIP=$lt_STRIP
24271
24272# Used to examine libraries when file_magic_cmd begins "file"
24273MAGIC_CMD=$MAGIC_CMD
24274
24275# Used on cygwin: DLL creation program.
24276DLLTOOL="$DLLTOOL"
24277
24278# Used on cygwin: object dumper.
24279OBJDUMP="$OBJDUMP"
24280
24281# Used on cygwin: assembler.
24282AS="$AS"
24283
24284# The name of the directory that contains temporary libtool files.
24285objdir=$objdir
24286
24287# How to create reloadable object files.
24288reload_flag=$lt_reload_flag
24289reload_cmds=$lt_reload_cmds
24290
24291# How to pass a linker flag through the compiler.
24292wl=$lt_lt_prog_compiler_wl_RC
24293
24294# Object file suffix (normally "o").
24295objext="$ac_objext"
24296
24297# Old archive suffix (normally "a").
24298libext="$libext"
24299
24300# Shared library suffix (normally ".so").
24301shrext_cmds='$shrext_cmds'
24302
24303# Executable file suffix (normally "").
24304exeext="$exeext"
24305
24306# Additional compiler flags for building library objects.
24307pic_flag=$lt_lt_prog_compiler_pic_RC
24308pic_mode=$pic_mode
24309
24310# What is the maximum length of a command?
24311max_cmd_len=$lt_cv_sys_max_cmd_len
24312
24313# Does compiler simultaneously support -c and -o options?
24314compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24315
24316# Must we lock files when doing compilation ?
24317need_locks=$lt_need_locks
24318
24319# Do we need the lib prefix for modules?
24320need_lib_prefix=$need_lib_prefix
24321
24322# Do we need a version for libraries?
24323need_version=$need_version
24324
24325# Whether dlopen is supported.
24326dlopen_support=$enable_dlopen
24327
24328# Whether dlopen of programs is supported.
24329dlopen_self=$enable_dlopen_self
24330
24331# Whether dlopen of statically linked programs is supported.
24332dlopen_self_static=$enable_dlopen_self_static
24333
24334# Compiler flag to prevent dynamic linking.
24335link_static_flag=$lt_lt_prog_compiler_static_RC
24336
24337# Compiler flag to turn off builtin functions.
24338no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24339
24340# Compiler flag to allow reflexive dlopens.
24341export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24342
24343# Compiler flag to generate shared objects directly from archives.
24344whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24345
24346# Compiler flag to generate thread-safe objects.
24347thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24348
24349# Library versioning type.
24350version_type=$version_type
24351
24352# Format of library name prefix.
24353libname_spec=$lt_libname_spec
24354
24355# List of archive names.  First name is the real one, the rest are links.
24356# The last name is the one that the linker finds with -lNAME.
24357library_names_spec=$lt_library_names_spec
24358
24359# The coded name of the library, if different from the real name.
24360soname_spec=$lt_soname_spec
24361
24362# Commands used to build and install an old-style archive.
24363RANLIB=$lt_RANLIB
24364old_archive_cmds=$lt_old_archive_cmds_RC
24365old_postinstall_cmds=$lt_old_postinstall_cmds
24366old_postuninstall_cmds=$lt_old_postuninstall_cmds
24367
24368# Create an old-style archive from a shared archive.
24369old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24370
24371# Create a temporary old-style archive to link instead of a shared archive.
24372old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24373
24374# Commands used to build and install a shared archive.
24375archive_cmds=$lt_archive_cmds_RC
24376archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24377postinstall_cmds=$lt_postinstall_cmds
24378postuninstall_cmds=$lt_postuninstall_cmds
24379
24380# Commands used to build a loadable module (assumed same as above if empty)
24381module_cmds=$lt_module_cmds_RC
24382module_expsym_cmds=$lt_module_expsym_cmds_RC
24383
24384# Commands to strip libraries.
24385old_striplib=$lt_old_striplib
24386striplib=$lt_striplib
24387
24388# Dependencies to place before the objects being linked to create a
24389# shared library.
24390predep_objects=$lt_predep_objects_RC
24391
24392# Dependencies to place after the objects being linked to create a
24393# shared library.
24394postdep_objects=$lt_postdep_objects_RC
24395
24396# Dependencies to place before the objects being linked to create a
24397# shared library.
24398predeps=$lt_predeps_RC
24399
24400# Dependencies to place after the objects being linked to create a
24401# shared library.
24402postdeps=$lt_postdeps_RC
24403
24404# The library search path used internally by the compiler when linking
24405# a shared library.
24406compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24407
24408# Method to check whether dependent libraries are shared objects.
24409deplibs_check_method=$lt_deplibs_check_method
24410
24411# Command to use when deplibs_check_method == file_magic.
24412file_magic_cmd=$lt_file_magic_cmd
24413
24414# Flag that allows shared libraries with undefined symbols to be built.
24415allow_undefined_flag=$lt_allow_undefined_flag_RC
24416
24417# Flag that forces no undefined symbols.
24418no_undefined_flag=$lt_no_undefined_flag_RC
24419
24420# Commands used to finish a libtool library installation in a directory.
24421finish_cmds=$lt_finish_cmds
24422
24423# Same as above, but a single script fragment to be evaled but not shown.
24424finish_eval=$lt_finish_eval
24425
24426# Take the output of nm and produce a listing of raw symbols and C names.
24427global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24428
24429# Transform the output of nm in a proper C declaration
24430global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24431
24432# Transform the output of nm in a C name address pair
24433global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24434
24435# This is the shared library runtime path variable.
24436runpath_var=$runpath_var
24437
24438# This is the shared library path variable.
24439shlibpath_var=$shlibpath_var
24440
24441# Is shlibpath searched before the hard-coded library search path?
24442shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24443
24444# How to hardcode a shared library path into an executable.
24445hardcode_action=$hardcode_action_RC
24446
24447# Whether we should hardcode library paths into libraries.
24448hardcode_into_libs=$hardcode_into_libs
24449
24450# Flag to hardcode \$libdir into a binary during linking.
24451# This must work even if \$libdir does not exist.
24452hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24453
24454# If ld is used when linking, flag to hardcode \$libdir into
24455# a binary during linking. This must work even if \$libdir does
24456# not exist.
24457hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24458
24459# Whether we need a single -rpath flag with a separated argument.
24460hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24461
24462# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24463# resulting binary.
24464hardcode_direct=$hardcode_direct_RC
24465
24466# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24467# resulting binary.
24468hardcode_minus_L=$hardcode_minus_L_RC
24469
24470# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24471# the resulting binary.
24472hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24473
24474# Set to yes if building a shared library automatically hardcodes DIR into the library
24475# and all subsequent libraries and executables linked against it.
24476hardcode_automatic=$hardcode_automatic_RC
24477
24478# Variables whose values should be saved in libtool wrapper scripts and
24479# restored at relink time.
24480variables_saved_for_relink="$variables_saved_for_relink"
24481
24482# Whether libtool must link a program against all its dependency libraries.
24483link_all_deplibs=$link_all_deplibs_RC
24484
24485# Compile-time system search path for libraries
24486sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24487
24488# Run-time system search path for libraries
24489sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24490
24491# Fix the shell variable \$srcfile for the compiler.
24492fix_srcfile_path="$fix_srcfile_path_RC"
24493
24494# Set to yes if exported symbols are required.
24495always_export_symbols=$always_export_symbols_RC
24496
24497# The commands to list exported symbols.
24498export_symbols_cmds=$lt_export_symbols_cmds_RC
24499
24500# The commands to extract the exported symbol list from a shared archive.
24501extract_expsyms_cmds=$lt_extract_expsyms_cmds
24502
24503# Symbols that should not be listed in the preloaded symbols.
24504exclude_expsyms=$lt_exclude_expsyms_RC
24505
24506# Symbols that must always be exported.
24507include_expsyms=$lt_include_expsyms_RC
24508
24509# ### END LIBTOOL TAG CONFIG: $tagname
24510
24511__EOF__
24512
24513
24514else
24515  # If there is no Makefile yet, we rely on a make rule to execute
24516  # `config.status --recheck' to rerun these tests and create the
24517  # libtool script then.
24518  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24519  if test -f "$ltmain_in"; then
24520    test -f Makefile && make "$ltmain"
24521  fi
24522fi
24523
24524
24525ac_ext=c
24526ac_cpp='$CPP $CPPFLAGS'
24527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24529ac_compiler_gnu=$ac_cv_c_compiler_gnu
24530
24531CC="$lt_save_CC"
24532
24533	;;
24534
24535      *)
24536	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24537echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24538   { (exit 1); exit 1; }; }
24539	;;
24540      esac
24541
24542      # Append the new tag name to the list of available tags.
24543      if test -n "$tagname" ; then
24544      available_tags="$available_tags $tagname"
24545    fi
24546    fi
24547  done
24548  IFS="$lt_save_ifs"
24549
24550  # Now substitute the updated list of available tags.
24551  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24552    mv "${ofile}T" "$ofile"
24553    chmod +x "$ofile"
24554  else
24555    rm -f "${ofile}T"
24556    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24557echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24558   { (exit 1); exit 1; }; }
24559  fi
24560fi
24561
24562
24563
24564# This can be used to rebuild libtool when needed
24565LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24566
24567# Always use our own libtool.
24568LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24569
24570# Prevent multiple expansion
24571
24572
24573
24574
24575
24576
24577
24578
24579
24580
24581
24582
24583
24584
24585
24586
24587
24588
24589
24590
24591
24592etags_version=`$ETAGS --version 2>&1`
24593case "$etags_version" in
24594	*Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24595	*GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24596	*) ETAGSFLAGS="" ;;
24597esac
24598ETAGSFLAGS=$ETAGSFLAGS
24599
24600
24601if test "$WITH_LLVMGCCDIR" = "default" ; then
24602  # Extract the first word of "llvm-gcc", so it can be a program name with args.
24603set dummy llvm-gcc; ac_word=$2
24604echo "$as_me:$LINENO: checking for $ac_word" >&5
24605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24606if test "${ac_cv_path_LLVMGCC+set}" = set; then
24607  echo $ECHO_N "(cached) $ECHO_C" >&6
24608else
24609  case $LLVMGCC in
24610  [\\/]* | ?:[\\/]*)
24611  ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24612  ;;
24613  *)
24614  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24615for as_dir in $PATH
24616do
24617  IFS=$as_save_IFS
24618  test -z "$as_dir" && as_dir=.
24619  for ac_exec_ext in '' $ac_executable_extensions; do
24620  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24621    ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24622    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24623    break 2
24624  fi
24625done
24626done
24627
24628  test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
24629  ;;
24630esac
24631fi
24632LLVMGCC=$ac_cv_path_LLVMGCC
24633
24634if test -n "$LLVMGCC"; then
24635  echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24636echo "${ECHO_T}$LLVMGCC" >&6
24637else
24638  echo "$as_me:$LINENO: result: no" >&5
24639echo "${ECHO_T}no" >&6
24640fi
24641
24642  # Extract the first word of "llvm-g++", so it can be a program name with args.
24643set dummy llvm-g++; ac_word=$2
24644echo "$as_me:$LINENO: checking for $ac_word" >&5
24645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24646if test "${ac_cv_path_LLVMGXX+set}" = set; then
24647  echo $ECHO_N "(cached) $ECHO_C" >&6
24648else
24649  case $LLVMGXX in
24650  [\\/]* | ?:[\\/]*)
24651  ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24652  ;;
24653  *)
24654  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24655for as_dir in $PATH
24656do
24657  IFS=$as_save_IFS
24658  test -z "$as_dir" && as_dir=.
24659  for ac_exec_ext in '' $ac_executable_extensions; do
24660  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24661    ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24662    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24663    break 2
24664  fi
24665done
24666done
24667
24668  test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
24669  ;;
24670esac
24671fi
24672LLVMGXX=$ac_cv_path_LLVMGXX
24673
24674if test -n "$LLVMGXX"; then
24675  echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24676echo "${ECHO_T}$LLVMGXX" >&6
24677else
24678  echo "$as_me:$LINENO: result: no" >&5
24679echo "${ECHO_T}no" >&6
24680fi
24681
24682else
24683  LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24684  LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24685  LLVMGCC=$LLVMGCC
24686
24687  LLVMGXX=$LLVMGXX
24688
24689fi
24690
24691echo "$as_me:$LINENO: checking tool compatibility" >&5
24692echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24693
24694ICC=no
24695IXX=no
24696case $CC in
24697  icc*|icpc*)
24698    ICC=yes
24699    IXX=yes
24700    ;;
24701   *)
24702    ;;
24703esac
24704
24705if test "$GCC" != "yes" && test "$ICC" != "yes"
24706then
24707  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24708echo "$as_me: error: gcc|icc required but not found" >&2;}
24709   { (exit 1); exit 1; }; }
24710fi
24711
24712if test "$GXX" != "yes" && test "$IXX" != "yes"
24713then
24714  { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24715echo "$as_me: error: g++|icc required but not found" >&2;}
24716   { (exit 1); exit 1; }; }
24717fi
24718
24719if test "$GCC" = "yes"
24720then
24721  gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24722  if test "$gccmajor" -lt "3"
24723  then
24724    { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24725echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24726   { (exit 1); exit 1; }; }
24727  fi
24728fi
24729
24730if test -z "$llvm_cv_gnu_make_command"
24731then
24732  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24733echo "$as_me: error: GNU Make required but not found" >&2;}
24734   { (exit 1); exit 1; }; }
24735fi
24736
24737echo "$as_me:$LINENO: result: ok" >&5
24738echo "${ECHO_T}ok" >&6
24739
24740
24741
24742echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24743echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24744if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24745  echo $ECHO_N "(cached) $ECHO_C" >&6
24746else
24747  ac_check_lib_save_LIBS=$LIBS
24748LIBS="-lelf  $LIBS"
24749cat >conftest.$ac_ext <<_ACEOF
24750/* confdefs.h.  */
24751_ACEOF
24752cat confdefs.h >>conftest.$ac_ext
24753cat >>conftest.$ac_ext <<_ACEOF
24754/* end confdefs.h.  */
24755
24756/* Override any gcc2 internal prototype to avoid an error.  */
24757#ifdef __cplusplus
24758extern "C"
24759#endif
24760/* We use char because int might match the return type of a gcc2
24761   builtin and then its argument prototype would still apply.  */
24762char elf_begin ();
24763int
24764main ()
24765{
24766elf_begin ();
24767  ;
24768  return 0;
24769}
24770_ACEOF
24771rm -f conftest.$ac_objext conftest$ac_exeext
24772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24773  (eval $ac_link) 2>conftest.er1
24774  ac_status=$?
24775  grep -v '^ *+' conftest.er1 >conftest.err
24776  rm -f conftest.er1
24777  cat conftest.err >&5
24778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779  (exit $ac_status); } &&
24780	 { ac_try='test -z "$ac_c_werror_flag"
24781			 || test ! -s conftest.err'
24782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24783  (eval $ac_try) 2>&5
24784  ac_status=$?
24785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786  (exit $ac_status); }; } &&
24787	 { ac_try='test -s conftest$ac_exeext'
24788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24789  (eval $ac_try) 2>&5
24790  ac_status=$?
24791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24792  (exit $ac_status); }; }; then
24793  ac_cv_lib_elf_elf_begin=yes
24794else
24795  echo "$as_me: failed program was:" >&5
24796sed 's/^/| /' conftest.$ac_ext >&5
24797
24798ac_cv_lib_elf_elf_begin=no
24799fi
24800rm -f conftest.err conftest.$ac_objext \
24801      conftest$ac_exeext conftest.$ac_ext
24802LIBS=$ac_check_lib_save_LIBS
24803fi
24804echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24805echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24806if test $ac_cv_lib_elf_elf_begin = yes; then
24807  cat >>confdefs.h <<_ACEOF
24808#define HAVE_LIBELF 1
24809_ACEOF
24810
24811  LIBS="-lelf $LIBS"
24812
24813fi
24814
24815
24816echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24817echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24818if test "${ac_cv_search_lt_dlopen+set}" = set; then
24819  echo $ECHO_N "(cached) $ECHO_C" >&6
24820else
24821  ac_func_search_save_LIBS=$LIBS
24822ac_cv_search_lt_dlopen=no
24823cat >conftest.$ac_ext <<_ACEOF
24824/* confdefs.h.  */
24825_ACEOF
24826cat confdefs.h >>conftest.$ac_ext
24827cat >>conftest.$ac_ext <<_ACEOF
24828/* end confdefs.h.  */
24829
24830/* Override any gcc2 internal prototype to avoid an error.  */
24831#ifdef __cplusplus
24832extern "C"
24833#endif
24834/* We use char because int might match the return type of a gcc2
24835   builtin and then its argument prototype would still apply.  */
24836char lt_dlopen ();
24837int
24838main ()
24839{
24840lt_dlopen ();
24841  ;
24842  return 0;
24843}
24844_ACEOF
24845rm -f conftest.$ac_objext conftest$ac_exeext
24846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24847  (eval $ac_link) 2>conftest.er1
24848  ac_status=$?
24849  grep -v '^ *+' conftest.er1 >conftest.err
24850  rm -f conftest.er1
24851  cat conftest.err >&5
24852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853  (exit $ac_status); } &&
24854	 { ac_try='test -z "$ac_c_werror_flag"
24855			 || test ! -s conftest.err'
24856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24857  (eval $ac_try) 2>&5
24858  ac_status=$?
24859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860  (exit $ac_status); }; } &&
24861	 { ac_try='test -s conftest$ac_exeext'
24862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24863  (eval $ac_try) 2>&5
24864  ac_status=$?
24865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866  (exit $ac_status); }; }; then
24867  ac_cv_search_lt_dlopen="none required"
24868else
24869  echo "$as_me: failed program was:" >&5
24870sed 's/^/| /' conftest.$ac_ext >&5
24871
24872fi
24873rm -f conftest.err conftest.$ac_objext \
24874      conftest$ac_exeext conftest.$ac_ext
24875if test "$ac_cv_search_lt_dlopen" = no; then
24876  for ac_lib in ltdl; do
24877    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24878    cat >conftest.$ac_ext <<_ACEOF
24879/* confdefs.h.  */
24880_ACEOF
24881cat confdefs.h >>conftest.$ac_ext
24882cat >>conftest.$ac_ext <<_ACEOF
24883/* end confdefs.h.  */
24884
24885/* Override any gcc2 internal prototype to avoid an error.  */
24886#ifdef __cplusplus
24887extern "C"
24888#endif
24889/* We use char because int might match the return type of a gcc2
24890   builtin and then its argument prototype would still apply.  */
24891char lt_dlopen ();
24892int
24893main ()
24894{
24895lt_dlopen ();
24896  ;
24897  return 0;
24898}
24899_ACEOF
24900rm -f conftest.$ac_objext conftest$ac_exeext
24901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24902  (eval $ac_link) 2>conftest.er1
24903  ac_status=$?
24904  grep -v '^ *+' conftest.er1 >conftest.err
24905  rm -f conftest.er1
24906  cat conftest.err >&5
24907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908  (exit $ac_status); } &&
24909	 { ac_try='test -z "$ac_c_werror_flag"
24910			 || test ! -s conftest.err'
24911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24912  (eval $ac_try) 2>&5
24913  ac_status=$?
24914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24915  (exit $ac_status); }; } &&
24916	 { ac_try='test -s conftest$ac_exeext'
24917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24918  (eval $ac_try) 2>&5
24919  ac_status=$?
24920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921  (exit $ac_status); }; }; then
24922  ac_cv_search_lt_dlopen="-l$ac_lib"
24923break
24924else
24925  echo "$as_me: failed program was:" >&5
24926sed 's/^/| /' conftest.$ac_ext >&5
24927
24928fi
24929rm -f conftest.err conftest.$ac_objext \
24930      conftest$ac_exeext conftest.$ac_ext
24931  done
24932fi
24933LIBS=$ac_func_search_save_LIBS
24934fi
24935echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24936echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24937if test "$ac_cv_search_lt_dlopen" != no; then
24938  test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24939
24940cat >>confdefs.h <<\_ACEOF
24941#define HAVE_LT_DLOPEN 1
24942_ACEOF
24943
24944else
24945  { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24946                           not be available" >&5
24947echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24948                           not be available" >&2;}
24949fi
24950
24951
24952echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24953echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24954if test "${ac_cv_search_dlopen+set}" = set; then
24955  echo $ECHO_N "(cached) $ECHO_C" >&6
24956else
24957  ac_func_search_save_LIBS=$LIBS
24958ac_cv_search_dlopen=no
24959cat >conftest.$ac_ext <<_ACEOF
24960/* confdefs.h.  */
24961_ACEOF
24962cat confdefs.h >>conftest.$ac_ext
24963cat >>conftest.$ac_ext <<_ACEOF
24964/* end confdefs.h.  */
24965
24966/* Override any gcc2 internal prototype to avoid an error.  */
24967#ifdef __cplusplus
24968extern "C"
24969#endif
24970/* We use char because int might match the return type of a gcc2
24971   builtin and then its argument prototype would still apply.  */
24972char dlopen ();
24973int
24974main ()
24975{
24976dlopen ();
24977  ;
24978  return 0;
24979}
24980_ACEOF
24981rm -f conftest.$ac_objext conftest$ac_exeext
24982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24983  (eval $ac_link) 2>conftest.er1
24984  ac_status=$?
24985  grep -v '^ *+' conftest.er1 >conftest.err
24986  rm -f conftest.er1
24987  cat conftest.err >&5
24988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989  (exit $ac_status); } &&
24990	 { ac_try='test -z "$ac_c_werror_flag"
24991			 || test ! -s conftest.err'
24992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24993  (eval $ac_try) 2>&5
24994  ac_status=$?
24995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996  (exit $ac_status); }; } &&
24997	 { ac_try='test -s conftest$ac_exeext'
24998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24999  (eval $ac_try) 2>&5
25000  ac_status=$?
25001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002  (exit $ac_status); }; }; then
25003  ac_cv_search_dlopen="none required"
25004else
25005  echo "$as_me: failed program was:" >&5
25006sed 's/^/| /' conftest.$ac_ext >&5
25007
25008fi
25009rm -f conftest.err conftest.$ac_objext \
25010      conftest$ac_exeext conftest.$ac_ext
25011if test "$ac_cv_search_dlopen" = no; then
25012  for ac_lib in dl; do
25013    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25014    cat >conftest.$ac_ext <<_ACEOF
25015/* confdefs.h.  */
25016_ACEOF
25017cat confdefs.h >>conftest.$ac_ext
25018cat >>conftest.$ac_ext <<_ACEOF
25019/* end confdefs.h.  */
25020
25021/* Override any gcc2 internal prototype to avoid an error.  */
25022#ifdef __cplusplus
25023extern "C"
25024#endif
25025/* We use char because int might match the return type of a gcc2
25026   builtin and then its argument prototype would still apply.  */
25027char dlopen ();
25028int
25029main ()
25030{
25031dlopen ();
25032  ;
25033  return 0;
25034}
25035_ACEOF
25036rm -f conftest.$ac_objext conftest$ac_exeext
25037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25038  (eval $ac_link) 2>conftest.er1
25039  ac_status=$?
25040  grep -v '^ *+' conftest.er1 >conftest.err
25041  rm -f conftest.er1
25042  cat conftest.err >&5
25043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25044  (exit $ac_status); } &&
25045	 { ac_try='test -z "$ac_c_werror_flag"
25046			 || test ! -s conftest.err'
25047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25048  (eval $ac_try) 2>&5
25049  ac_status=$?
25050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051  (exit $ac_status); }; } &&
25052	 { ac_try='test -s conftest$ac_exeext'
25053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25054  (eval $ac_try) 2>&5
25055  ac_status=$?
25056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057  (exit $ac_status); }; }; then
25058  ac_cv_search_dlopen="-l$ac_lib"
25059break
25060else
25061  echo "$as_me: failed program was:" >&5
25062sed 's/^/| /' conftest.$ac_ext >&5
25063
25064fi
25065rm -f conftest.err conftest.$ac_objext \
25066      conftest$ac_exeext conftest.$ac_ext
25067  done
25068fi
25069LIBS=$ac_func_search_save_LIBS
25070fi
25071echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25072echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25073if test "$ac_cv_search_dlopen" != no; then
25074  test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25075
25076cat >>confdefs.h <<\_ACEOF
25077#define HAVE_DLOPEN 1
25078_ACEOF
25079
25080else
25081  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25082echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25083fi
25084
25085
25086echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25087echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25088if test "${ac_cv_search_mallinfo+set}" = set; then
25089  echo $ECHO_N "(cached) $ECHO_C" >&6
25090else
25091  ac_func_search_save_LIBS=$LIBS
25092ac_cv_search_mallinfo=no
25093cat >conftest.$ac_ext <<_ACEOF
25094/* confdefs.h.  */
25095_ACEOF
25096cat confdefs.h >>conftest.$ac_ext
25097cat >>conftest.$ac_ext <<_ACEOF
25098/* end confdefs.h.  */
25099
25100/* Override any gcc2 internal prototype to avoid an error.  */
25101#ifdef __cplusplus
25102extern "C"
25103#endif
25104/* We use char because int might match the return type of a gcc2
25105   builtin and then its argument prototype would still apply.  */
25106char mallinfo ();
25107int
25108main ()
25109{
25110mallinfo ();
25111  ;
25112  return 0;
25113}
25114_ACEOF
25115rm -f conftest.$ac_objext conftest$ac_exeext
25116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25117  (eval $ac_link) 2>conftest.er1
25118  ac_status=$?
25119  grep -v '^ *+' conftest.er1 >conftest.err
25120  rm -f conftest.er1
25121  cat conftest.err >&5
25122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25123  (exit $ac_status); } &&
25124	 { ac_try='test -z "$ac_c_werror_flag"
25125			 || test ! -s conftest.err'
25126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25127  (eval $ac_try) 2>&5
25128  ac_status=$?
25129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25130  (exit $ac_status); }; } &&
25131	 { ac_try='test -s conftest$ac_exeext'
25132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25133  (eval $ac_try) 2>&5
25134  ac_status=$?
25135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136  (exit $ac_status); }; }; then
25137  ac_cv_search_mallinfo="none required"
25138else
25139  echo "$as_me: failed program was:" >&5
25140sed 's/^/| /' conftest.$ac_ext >&5
25141
25142fi
25143rm -f conftest.err conftest.$ac_objext \
25144      conftest$ac_exeext conftest.$ac_ext
25145if test "$ac_cv_search_mallinfo" = no; then
25146  for ac_lib in malloc; do
25147    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25148    cat >conftest.$ac_ext <<_ACEOF
25149/* confdefs.h.  */
25150_ACEOF
25151cat confdefs.h >>conftest.$ac_ext
25152cat >>conftest.$ac_ext <<_ACEOF
25153/* end confdefs.h.  */
25154
25155/* Override any gcc2 internal prototype to avoid an error.  */
25156#ifdef __cplusplus
25157extern "C"
25158#endif
25159/* We use char because int might match the return type of a gcc2
25160   builtin and then its argument prototype would still apply.  */
25161char mallinfo ();
25162int
25163main ()
25164{
25165mallinfo ();
25166  ;
25167  return 0;
25168}
25169_ACEOF
25170rm -f conftest.$ac_objext conftest$ac_exeext
25171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25172  (eval $ac_link) 2>conftest.er1
25173  ac_status=$?
25174  grep -v '^ *+' conftest.er1 >conftest.err
25175  rm -f conftest.er1
25176  cat conftest.err >&5
25177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178  (exit $ac_status); } &&
25179	 { ac_try='test -z "$ac_c_werror_flag"
25180			 || test ! -s conftest.err'
25181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25182  (eval $ac_try) 2>&5
25183  ac_status=$?
25184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185  (exit $ac_status); }; } &&
25186	 { ac_try='test -s conftest$ac_exeext'
25187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25188  (eval $ac_try) 2>&5
25189  ac_status=$?
25190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191  (exit $ac_status); }; }; then
25192  ac_cv_search_mallinfo="-l$ac_lib"
25193break
25194else
25195  echo "$as_me: failed program was:" >&5
25196sed 's/^/| /' conftest.$ac_ext >&5
25197
25198fi
25199rm -f conftest.err conftest.$ac_objext \
25200      conftest$ac_exeext conftest.$ac_ext
25201  done
25202fi
25203LIBS=$ac_func_search_save_LIBS
25204fi
25205echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25206echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25207if test "$ac_cv_search_mallinfo" != no; then
25208  test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25209
25210cat >>confdefs.h <<\_ACEOF
25211#define HAVE_MALLINFO 1
25212_ACEOF
25213
25214fi
25215
25216
25217echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25218echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25219if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25220  echo $ECHO_N "(cached) $ECHO_C" >&6
25221else
25222  ac_func_search_save_LIBS=$LIBS
25223ac_cv_search_pthread_mutex_lock=no
25224cat >conftest.$ac_ext <<_ACEOF
25225/* confdefs.h.  */
25226_ACEOF
25227cat confdefs.h >>conftest.$ac_ext
25228cat >>conftest.$ac_ext <<_ACEOF
25229/* end confdefs.h.  */
25230
25231/* Override any gcc2 internal prototype to avoid an error.  */
25232#ifdef __cplusplus
25233extern "C"
25234#endif
25235/* We use char because int might match the return type of a gcc2
25236   builtin and then its argument prototype would still apply.  */
25237char pthread_mutex_lock ();
25238int
25239main ()
25240{
25241pthread_mutex_lock ();
25242  ;
25243  return 0;
25244}
25245_ACEOF
25246rm -f conftest.$ac_objext conftest$ac_exeext
25247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25248  (eval $ac_link) 2>conftest.er1
25249  ac_status=$?
25250  grep -v '^ *+' conftest.er1 >conftest.err
25251  rm -f conftest.er1
25252  cat conftest.err >&5
25253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254  (exit $ac_status); } &&
25255	 { ac_try='test -z "$ac_c_werror_flag"
25256			 || test ! -s conftest.err'
25257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25258  (eval $ac_try) 2>&5
25259  ac_status=$?
25260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261  (exit $ac_status); }; } &&
25262	 { ac_try='test -s conftest$ac_exeext'
25263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25264  (eval $ac_try) 2>&5
25265  ac_status=$?
25266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25267  (exit $ac_status); }; }; then
25268  ac_cv_search_pthread_mutex_lock="none required"
25269else
25270  echo "$as_me: failed program was:" >&5
25271sed 's/^/| /' conftest.$ac_ext >&5
25272
25273fi
25274rm -f conftest.err conftest.$ac_objext \
25275      conftest$ac_exeext conftest.$ac_ext
25276if test "$ac_cv_search_pthread_mutex_lock" = no; then
25277  for ac_lib in pthread; do
25278    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25279    cat >conftest.$ac_ext <<_ACEOF
25280/* confdefs.h.  */
25281_ACEOF
25282cat confdefs.h >>conftest.$ac_ext
25283cat >>conftest.$ac_ext <<_ACEOF
25284/* end confdefs.h.  */
25285
25286/* Override any gcc2 internal prototype to avoid an error.  */
25287#ifdef __cplusplus
25288extern "C"
25289#endif
25290/* We use char because int might match the return type of a gcc2
25291   builtin and then its argument prototype would still apply.  */
25292char pthread_mutex_lock ();
25293int
25294main ()
25295{
25296pthread_mutex_lock ();
25297  ;
25298  return 0;
25299}
25300_ACEOF
25301rm -f conftest.$ac_objext conftest$ac_exeext
25302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25303  (eval $ac_link) 2>conftest.er1
25304  ac_status=$?
25305  grep -v '^ *+' conftest.er1 >conftest.err
25306  rm -f conftest.er1
25307  cat conftest.err >&5
25308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25309  (exit $ac_status); } &&
25310	 { ac_try='test -z "$ac_c_werror_flag"
25311			 || test ! -s conftest.err'
25312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25313  (eval $ac_try) 2>&5
25314  ac_status=$?
25315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25316  (exit $ac_status); }; } &&
25317	 { ac_try='test -s conftest$ac_exeext'
25318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25319  (eval $ac_try) 2>&5
25320  ac_status=$?
25321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322  (exit $ac_status); }; }; then
25323  ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25324break
25325else
25326  echo "$as_me: failed program was:" >&5
25327sed 's/^/| /' conftest.$ac_ext >&5
25328
25329fi
25330rm -f conftest.err conftest.$ac_objext \
25331      conftest$ac_exeext conftest.$ac_ext
25332  done
25333fi
25334LIBS=$ac_func_search_save_LIBS
25335fi
25336echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25337echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25338if test "$ac_cv_search_pthread_mutex_lock" != no; then
25339  test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25340
25341cat >>confdefs.h <<\_ACEOF
25342#define HAVE_PTHREAD_MUTEX_LOCK 1
25343_ACEOF
25344
25345fi
25346
25347
25348
25349
25350
25351
25352
25353
25354ac_header_dirent=no
25355for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25356  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25357echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25358echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25359if eval "test \"\${$as_ac_Header+set}\" = set"; then
25360  echo $ECHO_N "(cached) $ECHO_C" >&6
25361else
25362  cat >conftest.$ac_ext <<_ACEOF
25363/* confdefs.h.  */
25364_ACEOF
25365cat confdefs.h >>conftest.$ac_ext
25366cat >>conftest.$ac_ext <<_ACEOF
25367/* end confdefs.h.  */
25368#include <sys/types.h>
25369#include <$ac_hdr>
25370
25371int
25372main ()
25373{
25374if ((DIR *) 0)
25375return 0;
25376  ;
25377  return 0;
25378}
25379_ACEOF
25380rm -f conftest.$ac_objext
25381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25382  (eval $ac_compile) 2>conftest.er1
25383  ac_status=$?
25384  grep -v '^ *+' conftest.er1 >conftest.err
25385  rm -f conftest.er1
25386  cat conftest.err >&5
25387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25388  (exit $ac_status); } &&
25389	 { ac_try='test -z "$ac_c_werror_flag"
25390			 || test ! -s conftest.err'
25391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25392  (eval $ac_try) 2>&5
25393  ac_status=$?
25394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25395  (exit $ac_status); }; } &&
25396	 { ac_try='test -s conftest.$ac_objext'
25397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25398  (eval $ac_try) 2>&5
25399  ac_status=$?
25400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25401  (exit $ac_status); }; }; then
25402  eval "$as_ac_Header=yes"
25403else
25404  echo "$as_me: failed program was:" >&5
25405sed 's/^/| /' conftest.$ac_ext >&5
25406
25407eval "$as_ac_Header=no"
25408fi
25409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25410fi
25411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25412echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25413if test `eval echo '${'$as_ac_Header'}'` = yes; then
25414  cat >>confdefs.h <<_ACEOF
25415#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25416_ACEOF
25417
25418ac_header_dirent=$ac_hdr; break
25419fi
25420
25421done
25422# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25423if test $ac_header_dirent = dirent.h; then
25424  echo "$as_me:$LINENO: checking for library containing opendir" >&5
25425echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25426if test "${ac_cv_search_opendir+set}" = set; then
25427  echo $ECHO_N "(cached) $ECHO_C" >&6
25428else
25429  ac_func_search_save_LIBS=$LIBS
25430ac_cv_search_opendir=no
25431cat >conftest.$ac_ext <<_ACEOF
25432/* confdefs.h.  */
25433_ACEOF
25434cat confdefs.h >>conftest.$ac_ext
25435cat >>conftest.$ac_ext <<_ACEOF
25436/* end confdefs.h.  */
25437
25438/* Override any gcc2 internal prototype to avoid an error.  */
25439#ifdef __cplusplus
25440extern "C"
25441#endif
25442/* We use char because int might match the return type of a gcc2
25443   builtin and then its argument prototype would still apply.  */
25444char opendir ();
25445int
25446main ()
25447{
25448opendir ();
25449  ;
25450  return 0;
25451}
25452_ACEOF
25453rm -f conftest.$ac_objext conftest$ac_exeext
25454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25455  (eval $ac_link) 2>conftest.er1
25456  ac_status=$?
25457  grep -v '^ *+' conftest.er1 >conftest.err
25458  rm -f conftest.er1
25459  cat conftest.err >&5
25460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461  (exit $ac_status); } &&
25462	 { ac_try='test -z "$ac_c_werror_flag"
25463			 || test ! -s conftest.err'
25464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25465  (eval $ac_try) 2>&5
25466  ac_status=$?
25467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25468  (exit $ac_status); }; } &&
25469	 { ac_try='test -s conftest$ac_exeext'
25470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25471  (eval $ac_try) 2>&5
25472  ac_status=$?
25473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25474  (exit $ac_status); }; }; then
25475  ac_cv_search_opendir="none required"
25476else
25477  echo "$as_me: failed program was:" >&5
25478sed 's/^/| /' conftest.$ac_ext >&5
25479
25480fi
25481rm -f conftest.err conftest.$ac_objext \
25482      conftest$ac_exeext conftest.$ac_ext
25483if test "$ac_cv_search_opendir" = no; then
25484  for ac_lib in dir; do
25485    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25486    cat >conftest.$ac_ext <<_ACEOF
25487/* confdefs.h.  */
25488_ACEOF
25489cat confdefs.h >>conftest.$ac_ext
25490cat >>conftest.$ac_ext <<_ACEOF
25491/* end confdefs.h.  */
25492
25493/* Override any gcc2 internal prototype to avoid an error.  */
25494#ifdef __cplusplus
25495extern "C"
25496#endif
25497/* We use char because int might match the return type of a gcc2
25498   builtin and then its argument prototype would still apply.  */
25499char opendir ();
25500int
25501main ()
25502{
25503opendir ();
25504  ;
25505  return 0;
25506}
25507_ACEOF
25508rm -f conftest.$ac_objext conftest$ac_exeext
25509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25510  (eval $ac_link) 2>conftest.er1
25511  ac_status=$?
25512  grep -v '^ *+' conftest.er1 >conftest.err
25513  rm -f conftest.er1
25514  cat conftest.err >&5
25515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25516  (exit $ac_status); } &&
25517	 { ac_try='test -z "$ac_c_werror_flag"
25518			 || test ! -s conftest.err'
25519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25520  (eval $ac_try) 2>&5
25521  ac_status=$?
25522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523  (exit $ac_status); }; } &&
25524	 { ac_try='test -s conftest$ac_exeext'
25525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25526  (eval $ac_try) 2>&5
25527  ac_status=$?
25528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529  (exit $ac_status); }; }; then
25530  ac_cv_search_opendir="-l$ac_lib"
25531break
25532else
25533  echo "$as_me: failed program was:" >&5
25534sed 's/^/| /' conftest.$ac_ext >&5
25535
25536fi
25537rm -f conftest.err conftest.$ac_objext \
25538      conftest$ac_exeext conftest.$ac_ext
25539  done
25540fi
25541LIBS=$ac_func_search_save_LIBS
25542fi
25543echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25544echo "${ECHO_T}$ac_cv_search_opendir" >&6
25545if test "$ac_cv_search_opendir" != no; then
25546  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25547
25548fi
25549
25550else
25551  echo "$as_me:$LINENO: checking for library containing opendir" >&5
25552echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25553if test "${ac_cv_search_opendir+set}" = set; then
25554  echo $ECHO_N "(cached) $ECHO_C" >&6
25555else
25556  ac_func_search_save_LIBS=$LIBS
25557ac_cv_search_opendir=no
25558cat >conftest.$ac_ext <<_ACEOF
25559/* confdefs.h.  */
25560_ACEOF
25561cat confdefs.h >>conftest.$ac_ext
25562cat >>conftest.$ac_ext <<_ACEOF
25563/* end confdefs.h.  */
25564
25565/* Override any gcc2 internal prototype to avoid an error.  */
25566#ifdef __cplusplus
25567extern "C"
25568#endif
25569/* We use char because int might match the return type of a gcc2
25570   builtin and then its argument prototype would still apply.  */
25571char opendir ();
25572int
25573main ()
25574{
25575opendir ();
25576  ;
25577  return 0;
25578}
25579_ACEOF
25580rm -f conftest.$ac_objext conftest$ac_exeext
25581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25582  (eval $ac_link) 2>conftest.er1
25583  ac_status=$?
25584  grep -v '^ *+' conftest.er1 >conftest.err
25585  rm -f conftest.er1
25586  cat conftest.err >&5
25587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588  (exit $ac_status); } &&
25589	 { ac_try='test -z "$ac_c_werror_flag"
25590			 || test ! -s conftest.err'
25591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25592  (eval $ac_try) 2>&5
25593  ac_status=$?
25594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595  (exit $ac_status); }; } &&
25596	 { ac_try='test -s conftest$ac_exeext'
25597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25598  (eval $ac_try) 2>&5
25599  ac_status=$?
25600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601  (exit $ac_status); }; }; then
25602  ac_cv_search_opendir="none required"
25603else
25604  echo "$as_me: failed program was:" >&5
25605sed 's/^/| /' conftest.$ac_ext >&5
25606
25607fi
25608rm -f conftest.err conftest.$ac_objext \
25609      conftest$ac_exeext conftest.$ac_ext
25610if test "$ac_cv_search_opendir" = no; then
25611  for ac_lib in x; do
25612    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25613    cat >conftest.$ac_ext <<_ACEOF
25614/* confdefs.h.  */
25615_ACEOF
25616cat confdefs.h >>conftest.$ac_ext
25617cat >>conftest.$ac_ext <<_ACEOF
25618/* end confdefs.h.  */
25619
25620/* Override any gcc2 internal prototype to avoid an error.  */
25621#ifdef __cplusplus
25622extern "C"
25623#endif
25624/* We use char because int might match the return type of a gcc2
25625   builtin and then its argument prototype would still apply.  */
25626char opendir ();
25627int
25628main ()
25629{
25630opendir ();
25631  ;
25632  return 0;
25633}
25634_ACEOF
25635rm -f conftest.$ac_objext conftest$ac_exeext
25636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25637  (eval $ac_link) 2>conftest.er1
25638  ac_status=$?
25639  grep -v '^ *+' conftest.er1 >conftest.err
25640  rm -f conftest.er1
25641  cat conftest.err >&5
25642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643  (exit $ac_status); } &&
25644	 { ac_try='test -z "$ac_c_werror_flag"
25645			 || test ! -s conftest.err'
25646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25647  (eval $ac_try) 2>&5
25648  ac_status=$?
25649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650  (exit $ac_status); }; } &&
25651	 { ac_try='test -s conftest$ac_exeext'
25652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25653  (eval $ac_try) 2>&5
25654  ac_status=$?
25655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656  (exit $ac_status); }; }; then
25657  ac_cv_search_opendir="-l$ac_lib"
25658break
25659else
25660  echo "$as_me: failed program was:" >&5
25661sed 's/^/| /' conftest.$ac_ext >&5
25662
25663fi
25664rm -f conftest.err conftest.$ac_objext \
25665      conftest$ac_exeext conftest.$ac_ext
25666  done
25667fi
25668LIBS=$ac_func_search_save_LIBS
25669fi
25670echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25671echo "${ECHO_T}$ac_cv_search_opendir" >&6
25672if test "$ac_cv_search_opendir" != no; then
25673  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25674
25675fi
25676
25677fi
25678
25679echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25680echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25681if test "${ac_cv_header_mmap_anon+set}" = set; then
25682  echo $ECHO_N "(cached) $ECHO_C" >&6
25683else
25684   ac_ext=c
25685ac_cpp='$CPP $CPPFLAGS'
25686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25688ac_compiler_gnu=$ac_cv_c_compiler_gnu
25689
25690  cat >conftest.$ac_ext <<_ACEOF
25691/* confdefs.h.  */
25692_ACEOF
25693cat confdefs.h >>conftest.$ac_ext
25694cat >>conftest.$ac_ext <<_ACEOF
25695/* end confdefs.h.  */
25696#include <sys/mman.h>
25697#include <unistd.h>
25698#include <fcntl.h>
25699int
25700main ()
25701{
25702mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25703  ;
25704  return 0;
25705}
25706_ACEOF
25707rm -f conftest.$ac_objext
25708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25709  (eval $ac_compile) 2>conftest.er1
25710  ac_status=$?
25711  grep -v '^ *+' conftest.er1 >conftest.err
25712  rm -f conftest.er1
25713  cat conftest.err >&5
25714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715  (exit $ac_status); } &&
25716	 { ac_try='test -z "$ac_c_werror_flag"
25717			 || test ! -s conftest.err'
25718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25719  (eval $ac_try) 2>&5
25720  ac_status=$?
25721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722  (exit $ac_status); }; } &&
25723	 { ac_try='test -s conftest.$ac_objext'
25724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25725  (eval $ac_try) 2>&5
25726  ac_status=$?
25727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25728  (exit $ac_status); }; }; then
25729  ac_cv_header_mmap_anon=yes
25730else
25731  echo "$as_me: failed program was:" >&5
25732sed 's/^/| /' conftest.$ac_ext >&5
25733
25734ac_cv_header_mmap_anon=no
25735fi
25736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25737  ac_ext=c
25738ac_cpp='$CPP $CPPFLAGS'
25739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25741ac_compiler_gnu=$ac_cv_c_compiler_gnu
25742
25743
25744fi
25745echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25746echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25747if test "$ac_cv_header_mmap_anon" = yes; then
25748
25749cat >>confdefs.h <<\_ACEOF
25750#define HAVE_MMAP_ANONYMOUS 1
25751_ACEOF
25752
25753fi
25754
25755echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25756echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25757if test "${ac_cv_header_stat_broken+set}" = set; then
25758  echo $ECHO_N "(cached) $ECHO_C" >&6
25759else
25760  cat >conftest.$ac_ext <<_ACEOF
25761/* confdefs.h.  */
25762_ACEOF
25763cat confdefs.h >>conftest.$ac_ext
25764cat >>conftest.$ac_ext <<_ACEOF
25765/* end confdefs.h.  */
25766#include <sys/types.h>
25767#include <sys/stat.h>
25768
25769#if defined(S_ISBLK) && defined(S_IFDIR)
25770# if S_ISBLK (S_IFDIR)
25771You lose.
25772# endif
25773#endif
25774
25775#if defined(S_ISBLK) && defined(S_IFCHR)
25776# if S_ISBLK (S_IFCHR)
25777You lose.
25778# endif
25779#endif
25780
25781#if defined(S_ISLNK) && defined(S_IFREG)
25782# if S_ISLNK (S_IFREG)
25783You lose.
25784# endif
25785#endif
25786
25787#if defined(S_ISSOCK) && defined(S_IFREG)
25788# if S_ISSOCK (S_IFREG)
25789You lose.
25790# endif
25791#endif
25792
25793_ACEOF
25794if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25795  $EGREP "You lose" >/dev/null 2>&1; then
25796  ac_cv_header_stat_broken=yes
25797else
25798  ac_cv_header_stat_broken=no
25799fi
25800rm -f conftest*
25801
25802fi
25803echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25804echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25805if test $ac_cv_header_stat_broken = yes; then
25806
25807cat >>confdefs.h <<\_ACEOF
25808#define STAT_MACROS_BROKEN 1
25809_ACEOF
25810
25811fi
25812
25813echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25814echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25815if test "${ac_cv_header_stdc+set}" = set; then
25816  echo $ECHO_N "(cached) $ECHO_C" >&6
25817else
25818  cat >conftest.$ac_ext <<_ACEOF
25819/* confdefs.h.  */
25820_ACEOF
25821cat confdefs.h >>conftest.$ac_ext
25822cat >>conftest.$ac_ext <<_ACEOF
25823/* end confdefs.h.  */
25824#include <stdlib.h>
25825#include <stdarg.h>
25826#include <string.h>
25827#include <float.h>
25828
25829int
25830main ()
25831{
25832
25833  ;
25834  return 0;
25835}
25836_ACEOF
25837rm -f conftest.$ac_objext
25838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25839  (eval $ac_compile) 2>conftest.er1
25840  ac_status=$?
25841  grep -v '^ *+' conftest.er1 >conftest.err
25842  rm -f conftest.er1
25843  cat conftest.err >&5
25844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845  (exit $ac_status); } &&
25846	 { ac_try='test -z "$ac_c_werror_flag"
25847			 || test ! -s conftest.err'
25848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25849  (eval $ac_try) 2>&5
25850  ac_status=$?
25851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852  (exit $ac_status); }; } &&
25853	 { ac_try='test -s conftest.$ac_objext'
25854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25855  (eval $ac_try) 2>&5
25856  ac_status=$?
25857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858  (exit $ac_status); }; }; then
25859  ac_cv_header_stdc=yes
25860else
25861  echo "$as_me: failed program was:" >&5
25862sed 's/^/| /' conftest.$ac_ext >&5
25863
25864ac_cv_header_stdc=no
25865fi
25866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25867
25868if test $ac_cv_header_stdc = yes; then
25869  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25870  cat >conftest.$ac_ext <<_ACEOF
25871/* confdefs.h.  */
25872_ACEOF
25873cat confdefs.h >>conftest.$ac_ext
25874cat >>conftest.$ac_ext <<_ACEOF
25875/* end confdefs.h.  */
25876#include <string.h>
25877
25878_ACEOF
25879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25880  $EGREP "memchr" >/dev/null 2>&1; then
25881  :
25882else
25883  ac_cv_header_stdc=no
25884fi
25885rm -f conftest*
25886
25887fi
25888
25889if test $ac_cv_header_stdc = yes; then
25890  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25891  cat >conftest.$ac_ext <<_ACEOF
25892/* confdefs.h.  */
25893_ACEOF
25894cat confdefs.h >>conftest.$ac_ext
25895cat >>conftest.$ac_ext <<_ACEOF
25896/* end confdefs.h.  */
25897#include <stdlib.h>
25898
25899_ACEOF
25900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25901  $EGREP "free" >/dev/null 2>&1; then
25902  :
25903else
25904  ac_cv_header_stdc=no
25905fi
25906rm -f conftest*
25907
25908fi
25909
25910if test $ac_cv_header_stdc = yes; then
25911  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25912  if test "$cross_compiling" = yes; then
25913  :
25914else
25915  cat >conftest.$ac_ext <<_ACEOF
25916/* confdefs.h.  */
25917_ACEOF
25918cat confdefs.h >>conftest.$ac_ext
25919cat >>conftest.$ac_ext <<_ACEOF
25920/* end confdefs.h.  */
25921#include <ctype.h>
25922#if ((' ' & 0x0FF) == 0x020)
25923# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25924# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25925#else
25926# define ISLOWER(c) \
25927		   (('a' <= (c) && (c) <= 'i') \
25928		     || ('j' <= (c) && (c) <= 'r') \
25929		     || ('s' <= (c) && (c) <= 'z'))
25930# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25931#endif
25932
25933#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25934int
25935main ()
25936{
25937  int i;
25938  for (i = 0; i < 256; i++)
25939    if (XOR (islower (i), ISLOWER (i))
25940	|| toupper (i) != TOUPPER (i))
25941      exit(2);
25942  exit (0);
25943}
25944_ACEOF
25945rm -f conftest$ac_exeext
25946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25947  (eval $ac_link) 2>&5
25948  ac_status=$?
25949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25952  (eval $ac_try) 2>&5
25953  ac_status=$?
25954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955  (exit $ac_status); }; }; then
25956  :
25957else
25958  echo "$as_me: program exited with status $ac_status" >&5
25959echo "$as_me: failed program was:" >&5
25960sed 's/^/| /' conftest.$ac_ext >&5
25961
25962( exit $ac_status )
25963ac_cv_header_stdc=no
25964fi
25965rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25966fi
25967fi
25968fi
25969echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25970echo "${ECHO_T}$ac_cv_header_stdc" >&6
25971if test $ac_cv_header_stdc = yes; then
25972
25973cat >>confdefs.h <<\_ACEOF
25974#define STDC_HEADERS 1
25975_ACEOF
25976
25977fi
25978
25979echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25980echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25981if test "${ac_cv_header_sys_wait_h+set}" = set; then
25982  echo $ECHO_N "(cached) $ECHO_C" >&6
25983else
25984  cat >conftest.$ac_ext <<_ACEOF
25985/* confdefs.h.  */
25986_ACEOF
25987cat confdefs.h >>conftest.$ac_ext
25988cat >>conftest.$ac_ext <<_ACEOF
25989/* end confdefs.h.  */
25990#include <sys/types.h>
25991#include <sys/wait.h>
25992#ifndef WEXITSTATUS
25993# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25994#endif
25995#ifndef WIFEXITED
25996# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25997#endif
25998
25999int
26000main ()
26001{
26002  int s;
26003  wait (&s);
26004  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26005  ;
26006  return 0;
26007}
26008_ACEOF
26009rm -f conftest.$ac_objext
26010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26011  (eval $ac_compile) 2>conftest.er1
26012  ac_status=$?
26013  grep -v '^ *+' conftest.er1 >conftest.err
26014  rm -f conftest.er1
26015  cat conftest.err >&5
26016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017  (exit $ac_status); } &&
26018	 { ac_try='test -z "$ac_c_werror_flag"
26019			 || test ! -s conftest.err'
26020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26021  (eval $ac_try) 2>&5
26022  ac_status=$?
26023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024  (exit $ac_status); }; } &&
26025	 { ac_try='test -s conftest.$ac_objext'
26026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26027  (eval $ac_try) 2>&5
26028  ac_status=$?
26029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030  (exit $ac_status); }; }; then
26031  ac_cv_header_sys_wait_h=yes
26032else
26033  echo "$as_me: failed program was:" >&5
26034sed 's/^/| /' conftest.$ac_ext >&5
26035
26036ac_cv_header_sys_wait_h=no
26037fi
26038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26039fi
26040echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26041echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26042if test $ac_cv_header_sys_wait_h = yes; then
26043
26044cat >>confdefs.h <<\_ACEOF
26045#define HAVE_SYS_WAIT_H 1
26046_ACEOF
26047
26048fi
26049
26050echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26051echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26052if test "${ac_cv_header_time+set}" = set; then
26053  echo $ECHO_N "(cached) $ECHO_C" >&6
26054else
26055  cat >conftest.$ac_ext <<_ACEOF
26056/* confdefs.h.  */
26057_ACEOF
26058cat confdefs.h >>conftest.$ac_ext
26059cat >>conftest.$ac_ext <<_ACEOF
26060/* end confdefs.h.  */
26061#include <sys/types.h>
26062#include <sys/time.h>
26063#include <time.h>
26064
26065int
26066main ()
26067{
26068if ((struct tm *) 0)
26069return 0;
26070  ;
26071  return 0;
26072}
26073_ACEOF
26074rm -f conftest.$ac_objext
26075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26076  (eval $ac_compile) 2>conftest.er1
26077  ac_status=$?
26078  grep -v '^ *+' conftest.er1 >conftest.err
26079  rm -f conftest.er1
26080  cat conftest.err >&5
26081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26082  (exit $ac_status); } &&
26083	 { ac_try='test -z "$ac_c_werror_flag"
26084			 || test ! -s conftest.err'
26085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26086  (eval $ac_try) 2>&5
26087  ac_status=$?
26088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089  (exit $ac_status); }; } &&
26090	 { ac_try='test -s conftest.$ac_objext'
26091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26092  (eval $ac_try) 2>&5
26093  ac_status=$?
26094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095  (exit $ac_status); }; }; then
26096  ac_cv_header_time=yes
26097else
26098  echo "$as_me: failed program was:" >&5
26099sed 's/^/| /' conftest.$ac_ext >&5
26100
26101ac_cv_header_time=no
26102fi
26103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26104fi
26105echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26106echo "${ECHO_T}$ac_cv_header_time" >&6
26107if test $ac_cv_header_time = yes; then
26108
26109cat >>confdefs.h <<\_ACEOF
26110#define TIME_WITH_SYS_TIME 1
26111_ACEOF
26112
26113fi
26114
26115
26116
26117
26118
26119
26120
26121
26122for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26123do
26124as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26125if eval "test \"\${$as_ac_Header+set}\" = set"; then
26126  echo "$as_me:$LINENO: checking for $ac_header" >&5
26127echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26128if eval "test \"\${$as_ac_Header+set}\" = set"; then
26129  echo $ECHO_N "(cached) $ECHO_C" >&6
26130fi
26131echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26132echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26133else
26134  # Is the header compilable?
26135echo "$as_me:$LINENO: checking $ac_header usability" >&5
26136echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26137cat >conftest.$ac_ext <<_ACEOF
26138/* confdefs.h.  */
26139_ACEOF
26140cat confdefs.h >>conftest.$ac_ext
26141cat >>conftest.$ac_ext <<_ACEOF
26142/* end confdefs.h.  */
26143$ac_includes_default
26144#include <$ac_header>
26145_ACEOF
26146rm -f conftest.$ac_objext
26147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26148  (eval $ac_compile) 2>conftest.er1
26149  ac_status=$?
26150  grep -v '^ *+' conftest.er1 >conftest.err
26151  rm -f conftest.er1
26152  cat conftest.err >&5
26153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154  (exit $ac_status); } &&
26155	 { ac_try='test -z "$ac_c_werror_flag"
26156			 || test ! -s conftest.err'
26157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26158  (eval $ac_try) 2>&5
26159  ac_status=$?
26160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26161  (exit $ac_status); }; } &&
26162	 { ac_try='test -s conftest.$ac_objext'
26163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26164  (eval $ac_try) 2>&5
26165  ac_status=$?
26166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26167  (exit $ac_status); }; }; then
26168  ac_header_compiler=yes
26169else
26170  echo "$as_me: failed program was:" >&5
26171sed 's/^/| /' conftest.$ac_ext >&5
26172
26173ac_header_compiler=no
26174fi
26175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26176echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26177echo "${ECHO_T}$ac_header_compiler" >&6
26178
26179# Is the header present?
26180echo "$as_me:$LINENO: checking $ac_header presence" >&5
26181echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26182cat >conftest.$ac_ext <<_ACEOF
26183/* confdefs.h.  */
26184_ACEOF
26185cat confdefs.h >>conftest.$ac_ext
26186cat >>conftest.$ac_ext <<_ACEOF
26187/* end confdefs.h.  */
26188#include <$ac_header>
26189_ACEOF
26190if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26191  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26192  ac_status=$?
26193  grep -v '^ *+' conftest.er1 >conftest.err
26194  rm -f conftest.er1
26195  cat conftest.err >&5
26196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26197  (exit $ac_status); } >/dev/null; then
26198  if test -s conftest.err; then
26199    ac_cpp_err=$ac_c_preproc_warn_flag
26200    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26201  else
26202    ac_cpp_err=
26203  fi
26204else
26205  ac_cpp_err=yes
26206fi
26207if test -z "$ac_cpp_err"; then
26208  ac_header_preproc=yes
26209else
26210  echo "$as_me: failed program was:" >&5
26211sed 's/^/| /' conftest.$ac_ext >&5
26212
26213  ac_header_preproc=no
26214fi
26215rm -f conftest.err conftest.$ac_ext
26216echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26217echo "${ECHO_T}$ac_header_preproc" >&6
26218
26219# So?  What about this header?
26220case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26221  yes:no: )
26222    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26223echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26224    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26225echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26226    ac_header_preproc=yes
26227    ;;
26228  no:yes:* )
26229    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26230echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26231    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26232echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26233    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26234echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26235    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26236echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26237    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26238echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26239    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26240echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26241    (
26242      cat <<\_ASBOX
26243## ----------------------------------- ##
26244## Report this to llvmbugs@cs.uiuc.edu ##
26245## ----------------------------------- ##
26246_ASBOX
26247    ) |
26248      sed "s/^/$as_me: WARNING:     /" >&2
26249    ;;
26250esac
26251echo "$as_me:$LINENO: checking for $ac_header" >&5
26252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26253if eval "test \"\${$as_ac_Header+set}\" = set"; then
26254  echo $ECHO_N "(cached) $ECHO_C" >&6
26255else
26256  eval "$as_ac_Header=\$ac_header_preproc"
26257fi
26258echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26259echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26260
26261fi
26262if test `eval echo '${'$as_ac_Header'}'` = yes; then
26263  cat >>confdefs.h <<_ACEOF
26264#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26265_ACEOF
26266
26267fi
26268
26269done
26270
26271
26272
26273
26274
26275
26276
26277for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26278do
26279as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26280if eval "test \"\${$as_ac_Header+set}\" = set"; then
26281  echo "$as_me:$LINENO: checking for $ac_header" >&5
26282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26283if eval "test \"\${$as_ac_Header+set}\" = set"; then
26284  echo $ECHO_N "(cached) $ECHO_C" >&6
26285fi
26286echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26287echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26288else
26289  # Is the header compilable?
26290echo "$as_me:$LINENO: checking $ac_header usability" >&5
26291echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26292cat >conftest.$ac_ext <<_ACEOF
26293/* confdefs.h.  */
26294_ACEOF
26295cat confdefs.h >>conftest.$ac_ext
26296cat >>conftest.$ac_ext <<_ACEOF
26297/* end confdefs.h.  */
26298$ac_includes_default
26299#include <$ac_header>
26300_ACEOF
26301rm -f conftest.$ac_objext
26302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26303  (eval $ac_compile) 2>conftest.er1
26304  ac_status=$?
26305  grep -v '^ *+' conftest.er1 >conftest.err
26306  rm -f conftest.er1
26307  cat conftest.err >&5
26308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309  (exit $ac_status); } &&
26310	 { ac_try='test -z "$ac_c_werror_flag"
26311			 || test ! -s conftest.err'
26312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26313  (eval $ac_try) 2>&5
26314  ac_status=$?
26315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316  (exit $ac_status); }; } &&
26317	 { ac_try='test -s conftest.$ac_objext'
26318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26319  (eval $ac_try) 2>&5
26320  ac_status=$?
26321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322  (exit $ac_status); }; }; then
26323  ac_header_compiler=yes
26324else
26325  echo "$as_me: failed program was:" >&5
26326sed 's/^/| /' conftest.$ac_ext >&5
26327
26328ac_header_compiler=no
26329fi
26330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26331echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26332echo "${ECHO_T}$ac_header_compiler" >&6
26333
26334# Is the header present?
26335echo "$as_me:$LINENO: checking $ac_header presence" >&5
26336echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26337cat >conftest.$ac_ext <<_ACEOF
26338/* confdefs.h.  */
26339_ACEOF
26340cat confdefs.h >>conftest.$ac_ext
26341cat >>conftest.$ac_ext <<_ACEOF
26342/* end confdefs.h.  */
26343#include <$ac_header>
26344_ACEOF
26345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26346  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26347  ac_status=$?
26348  grep -v '^ *+' conftest.er1 >conftest.err
26349  rm -f conftest.er1
26350  cat conftest.err >&5
26351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26352  (exit $ac_status); } >/dev/null; then
26353  if test -s conftest.err; then
26354    ac_cpp_err=$ac_c_preproc_warn_flag
26355    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26356  else
26357    ac_cpp_err=
26358  fi
26359else
26360  ac_cpp_err=yes
26361fi
26362if test -z "$ac_cpp_err"; then
26363  ac_header_preproc=yes
26364else
26365  echo "$as_me: failed program was:" >&5
26366sed 's/^/| /' conftest.$ac_ext >&5
26367
26368  ac_header_preproc=no
26369fi
26370rm -f conftest.err conftest.$ac_ext
26371echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26372echo "${ECHO_T}$ac_header_preproc" >&6
26373
26374# So?  What about this header?
26375case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26376  yes:no: )
26377    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26378echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26379    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26380echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26381    ac_header_preproc=yes
26382    ;;
26383  no:yes:* )
26384    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26385echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26386    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26387echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26388    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26389echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26390    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26391echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26392    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26393echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26394    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26395echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26396    (
26397      cat <<\_ASBOX
26398## ----------------------------------- ##
26399## Report this to llvmbugs@cs.uiuc.edu ##
26400## ----------------------------------- ##
26401_ASBOX
26402    ) |
26403      sed "s/^/$as_me: WARNING:     /" >&2
26404    ;;
26405esac
26406echo "$as_me:$LINENO: checking for $ac_header" >&5
26407echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26408if eval "test \"\${$as_ac_Header+set}\" = set"; then
26409  echo $ECHO_N "(cached) $ECHO_C" >&6
26410else
26411  eval "$as_ac_Header=\$ac_header_preproc"
26412fi
26413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26414echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26415
26416fi
26417if test `eval echo '${'$as_ac_Header'}'` = yes; then
26418  cat >>confdefs.h <<_ACEOF
26419#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26420_ACEOF
26421
26422fi
26423
26424done
26425
26426
26427
26428
26429
26430
26431for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26432do
26433as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26434if eval "test \"\${$as_ac_Header+set}\" = set"; then
26435  echo "$as_me:$LINENO: checking for $ac_header" >&5
26436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26437if eval "test \"\${$as_ac_Header+set}\" = set"; then
26438  echo $ECHO_N "(cached) $ECHO_C" >&6
26439fi
26440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26441echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26442else
26443  # Is the header compilable?
26444echo "$as_me:$LINENO: checking $ac_header usability" >&5
26445echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26446cat >conftest.$ac_ext <<_ACEOF
26447/* confdefs.h.  */
26448_ACEOF
26449cat confdefs.h >>conftest.$ac_ext
26450cat >>conftest.$ac_ext <<_ACEOF
26451/* end confdefs.h.  */
26452$ac_includes_default
26453#include <$ac_header>
26454_ACEOF
26455rm -f conftest.$ac_objext
26456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26457  (eval $ac_compile) 2>conftest.er1
26458  ac_status=$?
26459  grep -v '^ *+' conftest.er1 >conftest.err
26460  rm -f conftest.er1
26461  cat conftest.err >&5
26462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463  (exit $ac_status); } &&
26464	 { ac_try='test -z "$ac_c_werror_flag"
26465			 || test ! -s conftest.err'
26466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26467  (eval $ac_try) 2>&5
26468  ac_status=$?
26469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26470  (exit $ac_status); }; } &&
26471	 { ac_try='test -s conftest.$ac_objext'
26472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26473  (eval $ac_try) 2>&5
26474  ac_status=$?
26475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26476  (exit $ac_status); }; }; then
26477  ac_header_compiler=yes
26478else
26479  echo "$as_me: failed program was:" >&5
26480sed 's/^/| /' conftest.$ac_ext >&5
26481
26482ac_header_compiler=no
26483fi
26484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26485echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26486echo "${ECHO_T}$ac_header_compiler" >&6
26487
26488# Is the header present?
26489echo "$as_me:$LINENO: checking $ac_header presence" >&5
26490echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26491cat >conftest.$ac_ext <<_ACEOF
26492/* confdefs.h.  */
26493_ACEOF
26494cat confdefs.h >>conftest.$ac_ext
26495cat >>conftest.$ac_ext <<_ACEOF
26496/* end confdefs.h.  */
26497#include <$ac_header>
26498_ACEOF
26499if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26500  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26501  ac_status=$?
26502  grep -v '^ *+' conftest.er1 >conftest.err
26503  rm -f conftest.er1
26504  cat conftest.err >&5
26505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26506  (exit $ac_status); } >/dev/null; then
26507  if test -s conftest.err; then
26508    ac_cpp_err=$ac_c_preproc_warn_flag
26509    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26510  else
26511    ac_cpp_err=
26512  fi
26513else
26514  ac_cpp_err=yes
26515fi
26516if test -z "$ac_cpp_err"; then
26517  ac_header_preproc=yes
26518else
26519  echo "$as_me: failed program was:" >&5
26520sed 's/^/| /' conftest.$ac_ext >&5
26521
26522  ac_header_preproc=no
26523fi
26524rm -f conftest.err conftest.$ac_ext
26525echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26526echo "${ECHO_T}$ac_header_preproc" >&6
26527
26528# So?  What about this header?
26529case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26530  yes:no: )
26531    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26532echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26533    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26534echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26535    ac_header_preproc=yes
26536    ;;
26537  no:yes:* )
26538    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26539echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26540    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26541echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26542    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26543echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26544    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26545echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26546    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26547echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26548    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26549echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26550    (
26551      cat <<\_ASBOX
26552## ----------------------------------- ##
26553## Report this to llvmbugs@cs.uiuc.edu ##
26554## ----------------------------------- ##
26555_ASBOX
26556    ) |
26557      sed "s/^/$as_me: WARNING:     /" >&2
26558    ;;
26559esac
26560echo "$as_me:$LINENO: checking for $ac_header" >&5
26561echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26562if eval "test \"\${$as_ac_Header+set}\" = set"; then
26563  echo $ECHO_N "(cached) $ECHO_C" >&6
26564else
26565  eval "$as_ac_Header=\$ac_header_preproc"
26566fi
26567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26568echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26569
26570fi
26571if test `eval echo '${'$as_ac_Header'}'` = yes; then
26572  cat >>confdefs.h <<_ACEOF
26573#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26574_ACEOF
26575
26576fi
26577
26578done
26579
26580
26581
26582echo "$as_me:$LINENO: checking for pid_t" >&5
26583echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26584if test "${ac_cv_type_pid_t+set}" = set; then
26585  echo $ECHO_N "(cached) $ECHO_C" >&6
26586else
26587  cat >conftest.$ac_ext <<_ACEOF
26588/* confdefs.h.  */
26589_ACEOF
26590cat confdefs.h >>conftest.$ac_ext
26591cat >>conftest.$ac_ext <<_ACEOF
26592/* end confdefs.h.  */
26593$ac_includes_default
26594int
26595main ()
26596{
26597if ((pid_t *) 0)
26598  return 0;
26599if (sizeof (pid_t))
26600  return 0;
26601  ;
26602  return 0;
26603}
26604_ACEOF
26605rm -f conftest.$ac_objext
26606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26607  (eval $ac_compile) 2>conftest.er1
26608  ac_status=$?
26609  grep -v '^ *+' conftest.er1 >conftest.err
26610  rm -f conftest.er1
26611  cat conftest.err >&5
26612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613  (exit $ac_status); } &&
26614	 { ac_try='test -z "$ac_c_werror_flag"
26615			 || test ! -s conftest.err'
26616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26617  (eval $ac_try) 2>&5
26618  ac_status=$?
26619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26620  (exit $ac_status); }; } &&
26621	 { ac_try='test -s conftest.$ac_objext'
26622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26623  (eval $ac_try) 2>&5
26624  ac_status=$?
26625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626  (exit $ac_status); }; }; then
26627  ac_cv_type_pid_t=yes
26628else
26629  echo "$as_me: failed program was:" >&5
26630sed 's/^/| /' conftest.$ac_ext >&5
26631
26632ac_cv_type_pid_t=no
26633fi
26634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26635fi
26636echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26637echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26638if test $ac_cv_type_pid_t = yes; then
26639  :
26640else
26641
26642cat >>confdefs.h <<_ACEOF
26643#define pid_t int
26644_ACEOF
26645
26646fi
26647
26648echo "$as_me:$LINENO: checking for size_t" >&5
26649echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26650if test "${ac_cv_type_size_t+set}" = set; then
26651  echo $ECHO_N "(cached) $ECHO_C" >&6
26652else
26653  cat >conftest.$ac_ext <<_ACEOF
26654/* confdefs.h.  */
26655_ACEOF
26656cat confdefs.h >>conftest.$ac_ext
26657cat >>conftest.$ac_ext <<_ACEOF
26658/* end confdefs.h.  */
26659$ac_includes_default
26660int
26661main ()
26662{
26663if ((size_t *) 0)
26664  return 0;
26665if (sizeof (size_t))
26666  return 0;
26667  ;
26668  return 0;
26669}
26670_ACEOF
26671rm -f conftest.$ac_objext
26672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26673  (eval $ac_compile) 2>conftest.er1
26674  ac_status=$?
26675  grep -v '^ *+' conftest.er1 >conftest.err
26676  rm -f conftest.er1
26677  cat conftest.err >&5
26678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26679  (exit $ac_status); } &&
26680	 { ac_try='test -z "$ac_c_werror_flag"
26681			 || test ! -s conftest.err'
26682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26683  (eval $ac_try) 2>&5
26684  ac_status=$?
26685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686  (exit $ac_status); }; } &&
26687	 { ac_try='test -s conftest.$ac_objext'
26688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26689  (eval $ac_try) 2>&5
26690  ac_status=$?
26691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692  (exit $ac_status); }; }; then
26693  ac_cv_type_size_t=yes
26694else
26695  echo "$as_me: failed program was:" >&5
26696sed 's/^/| /' conftest.$ac_ext >&5
26697
26698ac_cv_type_size_t=no
26699fi
26700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26701fi
26702echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26703echo "${ECHO_T}$ac_cv_type_size_t" >&6
26704if test $ac_cv_type_size_t = yes; then
26705  :
26706else
26707
26708cat >>confdefs.h <<_ACEOF
26709#define size_t unsigned
26710_ACEOF
26711
26712fi
26713
26714echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26715echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26716if test "${ac_cv_type_signal+set}" = set; then
26717  echo $ECHO_N "(cached) $ECHO_C" >&6
26718else
26719  cat >conftest.$ac_ext <<_ACEOF
26720/* confdefs.h.  */
26721_ACEOF
26722cat confdefs.h >>conftest.$ac_ext
26723cat >>conftest.$ac_ext <<_ACEOF
26724/* end confdefs.h.  */
26725#include <sys/types.h>
26726#include <signal.h>
26727#ifdef signal
26728# undef signal
26729#endif
26730#ifdef __cplusplus
26731extern "C" void (*signal (int, void (*)(int)))(int);
26732#else
26733void (*signal ()) ();
26734#endif
26735
26736int
26737main ()
26738{
26739int i;
26740  ;
26741  return 0;
26742}
26743_ACEOF
26744rm -f conftest.$ac_objext
26745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26746  (eval $ac_compile) 2>conftest.er1
26747  ac_status=$?
26748  grep -v '^ *+' conftest.er1 >conftest.err
26749  rm -f conftest.er1
26750  cat conftest.err >&5
26751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752  (exit $ac_status); } &&
26753	 { ac_try='test -z "$ac_c_werror_flag"
26754			 || test ! -s conftest.err'
26755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26756  (eval $ac_try) 2>&5
26757  ac_status=$?
26758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26759  (exit $ac_status); }; } &&
26760	 { ac_try='test -s conftest.$ac_objext'
26761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26762  (eval $ac_try) 2>&5
26763  ac_status=$?
26764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765  (exit $ac_status); }; }; then
26766  ac_cv_type_signal=void
26767else
26768  echo "$as_me: failed program was:" >&5
26769sed 's/^/| /' conftest.$ac_ext >&5
26770
26771ac_cv_type_signal=int
26772fi
26773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26774fi
26775echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26776echo "${ECHO_T}$ac_cv_type_signal" >&6
26777
26778cat >>confdefs.h <<_ACEOF
26779#define RETSIGTYPE $ac_cv_type_signal
26780_ACEOF
26781
26782
26783echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26784echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26785if test "${ac_cv_struct_tm+set}" = set; then
26786  echo $ECHO_N "(cached) $ECHO_C" >&6
26787else
26788  cat >conftest.$ac_ext <<_ACEOF
26789/* confdefs.h.  */
26790_ACEOF
26791cat confdefs.h >>conftest.$ac_ext
26792cat >>conftest.$ac_ext <<_ACEOF
26793/* end confdefs.h.  */
26794#include <sys/types.h>
26795#include <time.h>
26796
26797int
26798main ()
26799{
26800struct tm *tp; tp->tm_sec;
26801  ;
26802  return 0;
26803}
26804_ACEOF
26805rm -f conftest.$ac_objext
26806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26807  (eval $ac_compile) 2>conftest.er1
26808  ac_status=$?
26809  grep -v '^ *+' conftest.er1 >conftest.err
26810  rm -f conftest.er1
26811  cat conftest.err >&5
26812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26813  (exit $ac_status); } &&
26814	 { ac_try='test -z "$ac_c_werror_flag"
26815			 || test ! -s conftest.err'
26816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26817  (eval $ac_try) 2>&5
26818  ac_status=$?
26819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820  (exit $ac_status); }; } &&
26821	 { ac_try='test -s conftest.$ac_objext'
26822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26823  (eval $ac_try) 2>&5
26824  ac_status=$?
26825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26826  (exit $ac_status); }; }; then
26827  ac_cv_struct_tm=time.h
26828else
26829  echo "$as_me: failed program was:" >&5
26830sed 's/^/| /' conftest.$ac_ext >&5
26831
26832ac_cv_struct_tm=sys/time.h
26833fi
26834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26835fi
26836echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26837echo "${ECHO_T}$ac_cv_struct_tm" >&6
26838if test $ac_cv_struct_tm = sys/time.h; then
26839
26840cat >>confdefs.h <<\_ACEOF
26841#define TM_IN_SYS_TIME 1
26842_ACEOF
26843
26844fi
26845
26846echo "$as_me:$LINENO: checking for int64_t" >&5
26847echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26848if test "${ac_cv_type_int64_t+set}" = set; then
26849  echo $ECHO_N "(cached) $ECHO_C" >&6
26850else
26851  cat >conftest.$ac_ext <<_ACEOF
26852/* confdefs.h.  */
26853_ACEOF
26854cat confdefs.h >>conftest.$ac_ext
26855cat >>conftest.$ac_ext <<_ACEOF
26856/* end confdefs.h.  */
26857$ac_includes_default
26858int
26859main ()
26860{
26861if ((int64_t *) 0)
26862  return 0;
26863if (sizeof (int64_t))
26864  return 0;
26865  ;
26866  return 0;
26867}
26868_ACEOF
26869rm -f conftest.$ac_objext
26870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26871  (eval $ac_compile) 2>conftest.er1
26872  ac_status=$?
26873  grep -v '^ *+' conftest.er1 >conftest.err
26874  rm -f conftest.er1
26875  cat conftest.err >&5
26876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877  (exit $ac_status); } &&
26878	 { ac_try='test -z "$ac_c_werror_flag"
26879			 || test ! -s conftest.err'
26880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26881  (eval $ac_try) 2>&5
26882  ac_status=$?
26883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26884  (exit $ac_status); }; } &&
26885	 { ac_try='test -s conftest.$ac_objext'
26886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26887  (eval $ac_try) 2>&5
26888  ac_status=$?
26889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26890  (exit $ac_status); }; }; then
26891  ac_cv_type_int64_t=yes
26892else
26893  echo "$as_me: failed program was:" >&5
26894sed 's/^/| /' conftest.$ac_ext >&5
26895
26896ac_cv_type_int64_t=no
26897fi
26898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26899fi
26900echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26901echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26902if test $ac_cv_type_int64_t = yes; then
26903
26904cat >>confdefs.h <<_ACEOF
26905#define HAVE_INT64_T 1
26906_ACEOF
26907
26908
26909else
26910  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26911echo "$as_me: error: Type int64_t required but not found" >&2;}
26912   { (exit 1); exit 1; }; }
26913fi
26914
26915echo "$as_me:$LINENO: checking for uint64_t" >&5
26916echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26917if test "${ac_cv_type_uint64_t+set}" = set; then
26918  echo $ECHO_N "(cached) $ECHO_C" >&6
26919else
26920  cat >conftest.$ac_ext <<_ACEOF
26921/* confdefs.h.  */
26922_ACEOF
26923cat confdefs.h >>conftest.$ac_ext
26924cat >>conftest.$ac_ext <<_ACEOF
26925/* end confdefs.h.  */
26926$ac_includes_default
26927int
26928main ()
26929{
26930if ((uint64_t *) 0)
26931  return 0;
26932if (sizeof (uint64_t))
26933  return 0;
26934  ;
26935  return 0;
26936}
26937_ACEOF
26938rm -f conftest.$ac_objext
26939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26940  (eval $ac_compile) 2>conftest.er1
26941  ac_status=$?
26942  grep -v '^ *+' conftest.er1 >conftest.err
26943  rm -f conftest.er1
26944  cat conftest.err >&5
26945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946  (exit $ac_status); } &&
26947	 { ac_try='test -z "$ac_c_werror_flag"
26948			 || test ! -s conftest.err'
26949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26950  (eval $ac_try) 2>&5
26951  ac_status=$?
26952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953  (exit $ac_status); }; } &&
26954	 { ac_try='test -s conftest.$ac_objext'
26955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26956  (eval $ac_try) 2>&5
26957  ac_status=$?
26958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959  (exit $ac_status); }; }; then
26960  ac_cv_type_uint64_t=yes
26961else
26962  echo "$as_me: failed program was:" >&5
26963sed 's/^/| /' conftest.$ac_ext >&5
26964
26965ac_cv_type_uint64_t=no
26966fi
26967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26968fi
26969echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26970echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26971if test $ac_cv_type_uint64_t = yes; then
26972
26973cat >>confdefs.h <<_ACEOF
26974#define HAVE_UINT64_T 1
26975_ACEOF
26976
26977
26978else
26979  echo "$as_me:$LINENO: checking for u_int64_t" >&5
26980echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26981if test "${ac_cv_type_u_int64_t+set}" = set; then
26982  echo $ECHO_N "(cached) $ECHO_C" >&6
26983else
26984  cat >conftest.$ac_ext <<_ACEOF
26985/* confdefs.h.  */
26986_ACEOF
26987cat confdefs.h >>conftest.$ac_ext
26988cat >>conftest.$ac_ext <<_ACEOF
26989/* end confdefs.h.  */
26990$ac_includes_default
26991int
26992main ()
26993{
26994if ((u_int64_t *) 0)
26995  return 0;
26996if (sizeof (u_int64_t))
26997  return 0;
26998  ;
26999  return 0;
27000}
27001_ACEOF
27002rm -f conftest.$ac_objext
27003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27004  (eval $ac_compile) 2>conftest.er1
27005  ac_status=$?
27006  grep -v '^ *+' conftest.er1 >conftest.err
27007  rm -f conftest.er1
27008  cat conftest.err >&5
27009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27010  (exit $ac_status); } &&
27011	 { ac_try='test -z "$ac_c_werror_flag"
27012			 || test ! -s conftest.err'
27013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27014  (eval $ac_try) 2>&5
27015  ac_status=$?
27016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27017  (exit $ac_status); }; } &&
27018	 { ac_try='test -s conftest.$ac_objext'
27019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27020  (eval $ac_try) 2>&5
27021  ac_status=$?
27022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27023  (exit $ac_status); }; }; then
27024  ac_cv_type_u_int64_t=yes
27025else
27026  echo "$as_me: failed program was:" >&5
27027sed 's/^/| /' conftest.$ac_ext >&5
27028
27029ac_cv_type_u_int64_t=no
27030fi
27031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27032fi
27033echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27034echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27035if test $ac_cv_type_u_int64_t = yes; then
27036
27037cat >>confdefs.h <<_ACEOF
27038#define HAVE_U_INT64_T 1
27039_ACEOF
27040
27041
27042else
27043  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27044echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27045   { (exit 1); exit 1; }; }
27046fi
27047
27048fi
27049
27050
27051
27052
27053
27054
27055
27056
27057
27058for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
27059do
27060as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27061echo "$as_me:$LINENO: checking for $ac_func" >&5
27062echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27063if eval "test \"\${$as_ac_var+set}\" = set"; then
27064  echo $ECHO_N "(cached) $ECHO_C" >&6
27065else
27066  cat >conftest.$ac_ext <<_ACEOF
27067/* confdefs.h.  */
27068_ACEOF
27069cat confdefs.h >>conftest.$ac_ext
27070cat >>conftest.$ac_ext <<_ACEOF
27071/* end confdefs.h.  */
27072/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27073   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27074#define $ac_func innocuous_$ac_func
27075
27076/* System header to define __stub macros and hopefully few prototypes,
27077    which can conflict with char $ac_func (); below.
27078    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27079    <limits.h> exists even on freestanding compilers.  */
27080
27081#ifdef __STDC__
27082# include <limits.h>
27083#else
27084# include <assert.h>
27085#endif
27086
27087#undef $ac_func
27088
27089/* Override any gcc2 internal prototype to avoid an error.  */
27090#ifdef __cplusplus
27091extern "C"
27092{
27093#endif
27094/* We use char because int might match the return type of a gcc2
27095   builtin and then its argument prototype would still apply.  */
27096char $ac_func ();
27097/* The GNU C library defines this for functions which it implements
27098    to always fail with ENOSYS.  Some functions are actually named
27099    something starting with __ and the normal name is an alias.  */
27100#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27101choke me
27102#else
27103char (*f) () = $ac_func;
27104#endif
27105#ifdef __cplusplus
27106}
27107#endif
27108
27109int
27110main ()
27111{
27112return f != $ac_func;
27113  ;
27114  return 0;
27115}
27116_ACEOF
27117rm -f conftest.$ac_objext conftest$ac_exeext
27118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27119  (eval $ac_link) 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); } &&
27126	 { ac_try='test -z "$ac_c_werror_flag"
27127			 || test ! -s conftest.err'
27128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27129  (eval $ac_try) 2>&5
27130  ac_status=$?
27131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27132  (exit $ac_status); }; } &&
27133	 { ac_try='test -s conftest$ac_exeext'
27134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27135  (eval $ac_try) 2>&5
27136  ac_status=$?
27137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138  (exit $ac_status); }; }; then
27139  eval "$as_ac_var=yes"
27140else
27141  echo "$as_me: failed program was:" >&5
27142sed 's/^/| /' conftest.$ac_ext >&5
27143
27144eval "$as_ac_var=no"
27145fi
27146rm -f conftest.err conftest.$ac_objext \
27147      conftest$ac_exeext conftest.$ac_ext
27148fi
27149echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27150echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27151if test `eval echo '${'$as_ac_var'}'` = yes; then
27152  cat >>confdefs.h <<_ACEOF
27153#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27154_ACEOF
27155
27156fi
27157done
27158
27159
27160
27161
27162for ac_func in mkdtemp mkstemp mktemp
27163do
27164as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27165echo "$as_me:$LINENO: checking for $ac_func" >&5
27166echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27167if eval "test \"\${$as_ac_var+set}\" = set"; then
27168  echo $ECHO_N "(cached) $ECHO_C" >&6
27169else
27170  cat >conftest.$ac_ext <<_ACEOF
27171/* confdefs.h.  */
27172_ACEOF
27173cat confdefs.h >>conftest.$ac_ext
27174cat >>conftest.$ac_ext <<_ACEOF
27175/* end confdefs.h.  */
27176/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27177   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27178#define $ac_func innocuous_$ac_func
27179
27180/* System header to define __stub macros and hopefully few prototypes,
27181    which can conflict with char $ac_func (); below.
27182    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27183    <limits.h> exists even on freestanding compilers.  */
27184
27185#ifdef __STDC__
27186# include <limits.h>
27187#else
27188# include <assert.h>
27189#endif
27190
27191#undef $ac_func
27192
27193/* Override any gcc2 internal prototype to avoid an error.  */
27194#ifdef __cplusplus
27195extern "C"
27196{
27197#endif
27198/* We use char because int might match the return type of a gcc2
27199   builtin and then its argument prototype would still apply.  */
27200char $ac_func ();
27201/* The GNU C library defines this for functions which it implements
27202    to always fail with ENOSYS.  Some functions are actually named
27203    something starting with __ and the normal name is an alias.  */
27204#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27205choke me
27206#else
27207char (*f) () = $ac_func;
27208#endif
27209#ifdef __cplusplus
27210}
27211#endif
27212
27213int
27214main ()
27215{
27216return f != $ac_func;
27217  ;
27218  return 0;
27219}
27220_ACEOF
27221rm -f conftest.$ac_objext conftest$ac_exeext
27222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27223  (eval $ac_link) 2>conftest.er1
27224  ac_status=$?
27225  grep -v '^ *+' conftest.er1 >conftest.err
27226  rm -f conftest.er1
27227  cat conftest.err >&5
27228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27229  (exit $ac_status); } &&
27230	 { ac_try='test -z "$ac_c_werror_flag"
27231			 || test ! -s conftest.err'
27232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27233  (eval $ac_try) 2>&5
27234  ac_status=$?
27235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236  (exit $ac_status); }; } &&
27237	 { ac_try='test -s conftest$ac_exeext'
27238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27239  (eval $ac_try) 2>&5
27240  ac_status=$?
27241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242  (exit $ac_status); }; }; then
27243  eval "$as_ac_var=yes"
27244else
27245  echo "$as_me: failed program was:" >&5
27246sed 's/^/| /' conftest.$ac_ext >&5
27247
27248eval "$as_ac_var=no"
27249fi
27250rm -f conftest.err conftest.$ac_objext \
27251      conftest$ac_exeext conftest.$ac_ext
27252fi
27253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27254echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27255if test `eval echo '${'$as_ac_var'}'` = yes; then
27256  cat >>confdefs.h <<_ACEOF
27257#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27258_ACEOF
27259
27260fi
27261done
27262
27263
27264
27265
27266
27267
27268
27269
27270for ac_func in realpath setrlimit strdup strerror strerror_r strtoll strtoq
27271do
27272as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27273echo "$as_me:$LINENO: checking for $ac_func" >&5
27274echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27275if eval "test \"\${$as_ac_var+set}\" = set"; then
27276  echo $ECHO_N "(cached) $ECHO_C" >&6
27277else
27278  cat >conftest.$ac_ext <<_ACEOF
27279/* confdefs.h.  */
27280_ACEOF
27281cat confdefs.h >>conftest.$ac_ext
27282cat >>conftest.$ac_ext <<_ACEOF
27283/* end confdefs.h.  */
27284/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27285   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27286#define $ac_func innocuous_$ac_func
27287
27288/* System header to define __stub macros and hopefully few prototypes,
27289    which can conflict with char $ac_func (); below.
27290    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27291    <limits.h> exists even on freestanding compilers.  */
27292
27293#ifdef __STDC__
27294# include <limits.h>
27295#else
27296# include <assert.h>
27297#endif
27298
27299#undef $ac_func
27300
27301/* Override any gcc2 internal prototype to avoid an error.  */
27302#ifdef __cplusplus
27303extern "C"
27304{
27305#endif
27306/* We use char because int might match the return type of a gcc2
27307   builtin and then its argument prototype would still apply.  */
27308char $ac_func ();
27309/* The GNU C library defines this for functions which it implements
27310    to always fail with ENOSYS.  Some functions are actually named
27311    something starting with __ and the normal name is an alias.  */
27312#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27313choke me
27314#else
27315char (*f) () = $ac_func;
27316#endif
27317#ifdef __cplusplus
27318}
27319#endif
27320
27321int
27322main ()
27323{
27324return f != $ac_func;
27325  ;
27326  return 0;
27327}
27328_ACEOF
27329rm -f conftest.$ac_objext conftest$ac_exeext
27330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27331  (eval $ac_link) 2>conftest.er1
27332  ac_status=$?
27333  grep -v '^ *+' conftest.er1 >conftest.err
27334  rm -f conftest.er1
27335  cat conftest.err >&5
27336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337  (exit $ac_status); } &&
27338	 { ac_try='test -z "$ac_c_werror_flag"
27339			 || test ! -s conftest.err'
27340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27341  (eval $ac_try) 2>&5
27342  ac_status=$?
27343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344  (exit $ac_status); }; } &&
27345	 { ac_try='test -s conftest$ac_exeext'
27346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27347  (eval $ac_try) 2>&5
27348  ac_status=$?
27349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350  (exit $ac_status); }; }; then
27351  eval "$as_ac_var=yes"
27352else
27353  echo "$as_me: failed program was:" >&5
27354sed 's/^/| /' conftest.$ac_ext >&5
27355
27356eval "$as_ac_var=no"
27357fi
27358rm -f conftest.err conftest.$ac_objext \
27359      conftest$ac_exeext conftest.$ac_ext
27360fi
27361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27362echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27363if test `eval echo '${'$as_ac_var'}'` = yes; then
27364  cat >>confdefs.h <<_ACEOF
27365#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27366_ACEOF
27367
27368fi
27369done
27370
27371
27372for ac_func in sysconf
27373do
27374as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27375echo "$as_me:$LINENO: checking for $ac_func" >&5
27376echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27377if eval "test \"\${$as_ac_var+set}\" = set"; then
27378  echo $ECHO_N "(cached) $ECHO_C" >&6
27379else
27380  cat >conftest.$ac_ext <<_ACEOF
27381/* confdefs.h.  */
27382_ACEOF
27383cat confdefs.h >>conftest.$ac_ext
27384cat >>conftest.$ac_ext <<_ACEOF
27385/* end confdefs.h.  */
27386/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27387   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27388#define $ac_func innocuous_$ac_func
27389
27390/* System header to define __stub macros and hopefully few prototypes,
27391    which can conflict with char $ac_func (); below.
27392    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27393    <limits.h> exists even on freestanding compilers.  */
27394
27395#ifdef __STDC__
27396# include <limits.h>
27397#else
27398# include <assert.h>
27399#endif
27400
27401#undef $ac_func
27402
27403/* Override any gcc2 internal prototype to avoid an error.  */
27404#ifdef __cplusplus
27405extern "C"
27406{
27407#endif
27408/* We use char because int might match the return type of a gcc2
27409   builtin and then its argument prototype would still apply.  */
27410char $ac_func ();
27411/* The GNU C library defines this for functions which it implements
27412    to always fail with ENOSYS.  Some functions are actually named
27413    something starting with __ and the normal name is an alias.  */
27414#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27415choke me
27416#else
27417char (*f) () = $ac_func;
27418#endif
27419#ifdef __cplusplus
27420}
27421#endif
27422
27423int
27424main ()
27425{
27426return f != $ac_func;
27427  ;
27428  return 0;
27429}
27430_ACEOF
27431rm -f conftest.$ac_objext conftest$ac_exeext
27432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27433  (eval $ac_link) 2>conftest.er1
27434  ac_status=$?
27435  grep -v '^ *+' conftest.er1 >conftest.err
27436  rm -f conftest.er1
27437  cat conftest.err >&5
27438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439  (exit $ac_status); } &&
27440	 { ac_try='test -z "$ac_c_werror_flag"
27441			 || test ! -s conftest.err'
27442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27443  (eval $ac_try) 2>&5
27444  ac_status=$?
27445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446  (exit $ac_status); }; } &&
27447	 { ac_try='test -s conftest$ac_exeext'
27448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27449  (eval $ac_try) 2>&5
27450  ac_status=$?
27451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452  (exit $ac_status); }; }; then
27453  eval "$as_ac_var=yes"
27454else
27455  echo "$as_me: failed program was:" >&5
27456sed 's/^/| /' conftest.$ac_ext >&5
27457
27458eval "$as_ac_var=no"
27459fi
27460rm -f conftest.err conftest.$ac_objext \
27461      conftest$ac_exeext conftest.$ac_ext
27462fi
27463echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27464echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27465if test `eval echo '${'$as_ac_var'}'` = yes; then
27466  cat >>confdefs.h <<_ACEOF
27467#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27468_ACEOF
27469
27470fi
27471done
27472
27473echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27474echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27475if test "${llvm_cv_c_printf_a+set}" = set; then
27476  echo $ECHO_N "(cached) $ECHO_C" >&6
27477else
27478  ac_ext=c
27479ac_cpp='$CPP $CPPFLAGS'
27480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27482ac_compiler_gnu=$ac_cv_c_compiler_gnu
27483
27484 if test "$cross_compiling" = yes; then
27485  llvmac_cv_c_printf_a=no
27486else
27487  cat >conftest.$ac_ext <<_ACEOF
27488
27489  /* confdefs.h.  */
27490_ACEOF
27491cat confdefs.h >>conftest.$ac_ext
27492cat >>conftest.$ac_ext <<_ACEOF
27493/* end confdefs.h.  */
27494
27495#include <stdio.h>
27496#include <stdlib.h>
27497
27498int
27499main ()
27500{
27501
27502volatile double A, B;
27503char Buffer[100];
27504A = 1;
27505A /= 10.0;
27506sprintf(Buffer, "%a", A);
27507B = atof(Buffer);
27508if (A != B)
27509  return (1);
27510if (A != 0x1.999999999999ap-4)
27511  return (1);
27512return (0);
27513  ;
27514  return 0;
27515}
27516_ACEOF
27517rm -f conftest$ac_exeext
27518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27519  (eval $ac_link) 2>&5
27520  ac_status=$?
27521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27524  (eval $ac_try) 2>&5
27525  ac_status=$?
27526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527  (exit $ac_status); }; }; then
27528  llvm_cv_c_printf_a=yes
27529else
27530  echo "$as_me: program exited with status $ac_status" >&5
27531echo "$as_me: failed program was:" >&5
27532sed 's/^/| /' conftest.$ac_ext >&5
27533
27534( exit $ac_status )
27535llvmac_cv_c_printf_a=no
27536fi
27537rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27538fi
27539 ac_ext=c
27540ac_cpp='$CPP $CPPFLAGS'
27541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27543ac_compiler_gnu=$ac_cv_c_compiler_gnu
27544
27545fi
27546echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27547echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27548 if test "$llvm_cv_c_printf_a" = "yes"; then
27549
27550cat >>confdefs.h <<\_ACEOF
27551#define HAVE_PRINTF_A 1
27552_ACEOF
27553
27554 fi
27555
27556# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27557# for constant arguments.  Useless!
27558echo "$as_me:$LINENO: checking for working alloca.h" >&5
27559echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27560if test "${ac_cv_working_alloca_h+set}" = set; then
27561  echo $ECHO_N "(cached) $ECHO_C" >&6
27562else
27563  cat >conftest.$ac_ext <<_ACEOF
27564/* confdefs.h.  */
27565_ACEOF
27566cat confdefs.h >>conftest.$ac_ext
27567cat >>conftest.$ac_ext <<_ACEOF
27568/* end confdefs.h.  */
27569#include <alloca.h>
27570int
27571main ()
27572{
27573char *p = (char *) alloca (2 * sizeof (int));
27574  ;
27575  return 0;
27576}
27577_ACEOF
27578rm -f conftest.$ac_objext conftest$ac_exeext
27579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27580  (eval $ac_link) 2>conftest.er1
27581  ac_status=$?
27582  grep -v '^ *+' conftest.er1 >conftest.err
27583  rm -f conftest.er1
27584  cat conftest.err >&5
27585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586  (exit $ac_status); } &&
27587	 { ac_try='test -z "$ac_c_werror_flag"
27588			 || test ! -s conftest.err'
27589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27590  (eval $ac_try) 2>&5
27591  ac_status=$?
27592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593  (exit $ac_status); }; } &&
27594	 { ac_try='test -s conftest$ac_exeext'
27595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27596  (eval $ac_try) 2>&5
27597  ac_status=$?
27598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599  (exit $ac_status); }; }; then
27600  ac_cv_working_alloca_h=yes
27601else
27602  echo "$as_me: failed program was:" >&5
27603sed 's/^/| /' conftest.$ac_ext >&5
27604
27605ac_cv_working_alloca_h=no
27606fi
27607rm -f conftest.err conftest.$ac_objext \
27608      conftest$ac_exeext conftest.$ac_ext
27609fi
27610echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27611echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27612if test $ac_cv_working_alloca_h = yes; then
27613
27614cat >>confdefs.h <<\_ACEOF
27615#define HAVE_ALLOCA_H 1
27616_ACEOF
27617
27618fi
27619
27620echo "$as_me:$LINENO: checking for alloca" >&5
27621echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27622if test "${ac_cv_func_alloca_works+set}" = set; then
27623  echo $ECHO_N "(cached) $ECHO_C" >&6
27624else
27625  cat >conftest.$ac_ext <<_ACEOF
27626/* confdefs.h.  */
27627_ACEOF
27628cat confdefs.h >>conftest.$ac_ext
27629cat >>conftest.$ac_ext <<_ACEOF
27630/* end confdefs.h.  */
27631#ifdef __GNUC__
27632# define alloca __builtin_alloca
27633#else
27634# ifdef _MSC_VER
27635#  include <malloc.h>
27636#  define alloca _alloca
27637# else
27638#  if HAVE_ALLOCA_H
27639#   include <alloca.h>
27640#  else
27641#   ifdef _AIX
27642 #pragma alloca
27643#   else
27644#    ifndef alloca /* predefined by HP cc +Olibcalls */
27645char *alloca ();
27646#    endif
27647#   endif
27648#  endif
27649# endif
27650#endif
27651
27652int
27653main ()
27654{
27655char *p = (char *) alloca (1);
27656  ;
27657  return 0;
27658}
27659_ACEOF
27660rm -f conftest.$ac_objext conftest$ac_exeext
27661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27662  (eval $ac_link) 2>conftest.er1
27663  ac_status=$?
27664  grep -v '^ *+' conftest.er1 >conftest.err
27665  rm -f conftest.er1
27666  cat conftest.err >&5
27667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668  (exit $ac_status); } &&
27669	 { ac_try='test -z "$ac_c_werror_flag"
27670			 || test ! -s conftest.err'
27671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27672  (eval $ac_try) 2>&5
27673  ac_status=$?
27674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675  (exit $ac_status); }; } &&
27676	 { ac_try='test -s conftest$ac_exeext'
27677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27678  (eval $ac_try) 2>&5
27679  ac_status=$?
27680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681  (exit $ac_status); }; }; then
27682  ac_cv_func_alloca_works=yes
27683else
27684  echo "$as_me: failed program was:" >&5
27685sed 's/^/| /' conftest.$ac_ext >&5
27686
27687ac_cv_func_alloca_works=no
27688fi
27689rm -f conftest.err conftest.$ac_objext \
27690      conftest$ac_exeext conftest.$ac_ext
27691fi
27692echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27693echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27694
27695if test $ac_cv_func_alloca_works = yes; then
27696
27697cat >>confdefs.h <<\_ACEOF
27698#define HAVE_ALLOCA 1
27699_ACEOF
27700
27701else
27702  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27703# that cause trouble.  Some versions do not even contain alloca or
27704# contain a buggy version.  If you still want to use their alloca,
27705# use ar to extract alloca.o from them instead of compiling alloca.c.
27706
27707ALLOCA=alloca.$ac_objext
27708
27709cat >>confdefs.h <<\_ACEOF
27710#define C_ALLOCA 1
27711_ACEOF
27712
27713
27714echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27715echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27716if test "${ac_cv_os_cray+set}" = set; then
27717  echo $ECHO_N "(cached) $ECHO_C" >&6
27718else
27719  cat >conftest.$ac_ext <<_ACEOF
27720/* confdefs.h.  */
27721_ACEOF
27722cat confdefs.h >>conftest.$ac_ext
27723cat >>conftest.$ac_ext <<_ACEOF
27724/* end confdefs.h.  */
27725#if defined(CRAY) && ! defined(CRAY2)
27726webecray
27727#else
27728wenotbecray
27729#endif
27730
27731_ACEOF
27732if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27733  $EGREP "webecray" >/dev/null 2>&1; then
27734  ac_cv_os_cray=yes
27735else
27736  ac_cv_os_cray=no
27737fi
27738rm -f conftest*
27739
27740fi
27741echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27742echo "${ECHO_T}$ac_cv_os_cray" >&6
27743if test $ac_cv_os_cray = yes; then
27744  for ac_func in _getb67 GETB67 getb67; do
27745    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27746echo "$as_me:$LINENO: checking for $ac_func" >&5
27747echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27748if eval "test \"\${$as_ac_var+set}\" = set"; then
27749  echo $ECHO_N "(cached) $ECHO_C" >&6
27750else
27751  cat >conftest.$ac_ext <<_ACEOF
27752/* confdefs.h.  */
27753_ACEOF
27754cat confdefs.h >>conftest.$ac_ext
27755cat >>conftest.$ac_ext <<_ACEOF
27756/* end confdefs.h.  */
27757/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27758   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27759#define $ac_func innocuous_$ac_func
27760
27761/* System header to define __stub macros and hopefully few prototypes,
27762    which can conflict with char $ac_func (); below.
27763    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27764    <limits.h> exists even on freestanding compilers.  */
27765
27766#ifdef __STDC__
27767# include <limits.h>
27768#else
27769# include <assert.h>
27770#endif
27771
27772#undef $ac_func
27773
27774/* Override any gcc2 internal prototype to avoid an error.  */
27775#ifdef __cplusplus
27776extern "C"
27777{
27778#endif
27779/* We use char because int might match the return type of a gcc2
27780   builtin and then its argument prototype would still apply.  */
27781char $ac_func ();
27782/* The GNU C library defines this for functions which it implements
27783    to always fail with ENOSYS.  Some functions are actually named
27784    something starting with __ and the normal name is an alias.  */
27785#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27786choke me
27787#else
27788char (*f) () = $ac_func;
27789#endif
27790#ifdef __cplusplus
27791}
27792#endif
27793
27794int
27795main ()
27796{
27797return f != $ac_func;
27798  ;
27799  return 0;
27800}
27801_ACEOF
27802rm -f conftest.$ac_objext conftest$ac_exeext
27803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27804  (eval $ac_link) 2>conftest.er1
27805  ac_status=$?
27806  grep -v '^ *+' conftest.er1 >conftest.err
27807  rm -f conftest.er1
27808  cat conftest.err >&5
27809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810  (exit $ac_status); } &&
27811	 { ac_try='test -z "$ac_c_werror_flag"
27812			 || test ! -s conftest.err'
27813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27814  (eval $ac_try) 2>&5
27815  ac_status=$?
27816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27817  (exit $ac_status); }; } &&
27818	 { ac_try='test -s conftest$ac_exeext'
27819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27820  (eval $ac_try) 2>&5
27821  ac_status=$?
27822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27823  (exit $ac_status); }; }; then
27824  eval "$as_ac_var=yes"
27825else
27826  echo "$as_me: failed program was:" >&5
27827sed 's/^/| /' conftest.$ac_ext >&5
27828
27829eval "$as_ac_var=no"
27830fi
27831rm -f conftest.err conftest.$ac_objext \
27832      conftest$ac_exeext conftest.$ac_ext
27833fi
27834echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27835echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27836if test `eval echo '${'$as_ac_var'}'` = yes; then
27837
27838cat >>confdefs.h <<_ACEOF
27839#define CRAY_STACKSEG_END $ac_func
27840_ACEOF
27841
27842    break
27843fi
27844
27845  done
27846fi
27847
27848echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27849echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27850if test "${ac_cv_c_stack_direction+set}" = set; then
27851  echo $ECHO_N "(cached) $ECHO_C" >&6
27852else
27853  if test "$cross_compiling" = yes; then
27854  ac_cv_c_stack_direction=0
27855else
27856  cat >conftest.$ac_ext <<_ACEOF
27857/* confdefs.h.  */
27858_ACEOF
27859cat confdefs.h >>conftest.$ac_ext
27860cat >>conftest.$ac_ext <<_ACEOF
27861/* end confdefs.h.  */
27862int
27863find_stack_direction ()
27864{
27865  static char *addr = 0;
27866  auto char dummy;
27867  if (addr == 0)
27868    {
27869      addr = &dummy;
27870      return find_stack_direction ();
27871    }
27872  else
27873    return (&dummy > addr) ? 1 : -1;
27874}
27875
27876int
27877main ()
27878{
27879  exit (find_stack_direction () < 0);
27880}
27881_ACEOF
27882rm -f conftest$ac_exeext
27883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27884  (eval $ac_link) 2>&5
27885  ac_status=$?
27886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27889  (eval $ac_try) 2>&5
27890  ac_status=$?
27891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892  (exit $ac_status); }; }; then
27893  ac_cv_c_stack_direction=1
27894else
27895  echo "$as_me: program exited with status $ac_status" >&5
27896echo "$as_me: failed program was:" >&5
27897sed 's/^/| /' conftest.$ac_ext >&5
27898
27899( exit $ac_status )
27900ac_cv_c_stack_direction=-1
27901fi
27902rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27903fi
27904fi
27905echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27906echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27907
27908cat >>confdefs.h <<_ACEOF
27909#define STACK_DIRECTION $ac_cv_c_stack_direction
27910_ACEOF
27911
27912
27913fi
27914
27915
27916echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27917echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27918if test "${ac_cv_func_rand48+set}" = set; then
27919  echo $ECHO_N "(cached) $ECHO_C" >&6
27920else
27921  ac_ext=cc
27922ac_cpp='$CXXCPP $CPPFLAGS'
27923ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27924ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27925ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27926
27927   cat >conftest.$ac_ext <<_ACEOF
27928/* confdefs.h.  */
27929_ACEOF
27930cat confdefs.h >>conftest.$ac_ext
27931cat >>conftest.$ac_ext <<_ACEOF
27932/* end confdefs.h.  */
27933#include <stdlib.h>
27934int
27935main ()
27936{
27937srand48(0);lrand48();drand48();
27938  ;
27939  return 0;
27940}
27941_ACEOF
27942rm -f conftest.$ac_objext
27943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27944  (eval $ac_compile) 2>conftest.er1
27945  ac_status=$?
27946  grep -v '^ *+' conftest.er1 >conftest.err
27947  rm -f conftest.er1
27948  cat conftest.err >&5
27949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950  (exit $ac_status); } &&
27951	 { ac_try='test -z "$ac_cxx_werror_flag"
27952			 || test ! -s conftest.err'
27953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27954  (eval $ac_try) 2>&5
27955  ac_status=$?
27956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957  (exit $ac_status); }; } &&
27958	 { ac_try='test -s conftest.$ac_objext'
27959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27960  (eval $ac_try) 2>&5
27961  ac_status=$?
27962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963  (exit $ac_status); }; }; then
27964  ac_cv_func_rand48=yes
27965else
27966  echo "$as_me: failed program was:" >&5
27967sed 's/^/| /' conftest.$ac_ext >&5
27968
27969ac_cv_func_rand48=no
27970fi
27971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27972  ac_ext=c
27973ac_cpp='$CPP $CPPFLAGS'
27974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27976ac_compiler_gnu=$ac_cv_c_compiler_gnu
27977
27978fi
27979echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27980echo "${ECHO_T}$ac_cv_func_rand48" >&6
27981
27982if test "$ac_cv_func_rand48" = "yes" ; then
27983
27984cat >>confdefs.h <<\_ACEOF
27985#define HAVE_RAND48 1
27986_ACEOF
27987
27988fi
27989
27990
27991echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27992echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27993if test "${ac_cv_cxx_namespaces+set}" = set; then
27994  echo $ECHO_N "(cached) $ECHO_C" >&6
27995else
27996  ac_ext=cc
27997ac_cpp='$CXXCPP $CPPFLAGS'
27998ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27999ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28000ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28001
28002 cat >conftest.$ac_ext <<_ACEOF
28003/* confdefs.h.  */
28004_ACEOF
28005cat confdefs.h >>conftest.$ac_ext
28006cat >>conftest.$ac_ext <<_ACEOF
28007/* end confdefs.h.  */
28008namespace Outer { namespace Inner { int i = 0; }}
28009int
28010main ()
28011{
28012using namespace Outer::Inner; return i;
28013  ;
28014  return 0;
28015}
28016_ACEOF
28017rm -f conftest.$ac_objext
28018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28019  (eval $ac_compile) 2>conftest.er1
28020  ac_status=$?
28021  grep -v '^ *+' conftest.er1 >conftest.err
28022  rm -f conftest.er1
28023  cat conftest.err >&5
28024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28025  (exit $ac_status); } &&
28026	 { ac_try='test -z "$ac_cxx_werror_flag"
28027			 || test ! -s conftest.err'
28028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28029  (eval $ac_try) 2>&5
28030  ac_status=$?
28031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28032  (exit $ac_status); }; } &&
28033	 { ac_try='test -s conftest.$ac_objext'
28034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28035  (eval $ac_try) 2>&5
28036  ac_status=$?
28037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038  (exit $ac_status); }; }; then
28039  ac_cv_cxx_namespaces=yes
28040else
28041  echo "$as_me: failed program was:" >&5
28042sed 's/^/| /' conftest.$ac_ext >&5
28043
28044ac_cv_cxx_namespaces=no
28045fi
28046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28047 ac_ext=c
28048ac_cpp='$CPP $CPPFLAGS'
28049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28051ac_compiler_gnu=$ac_cv_c_compiler_gnu
28052
28053
28054fi
28055echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28056echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28057if test "$ac_cv_cxx_namespaces" = yes; then
28058
28059cat >>confdefs.h <<\_ACEOF
28060#define HAVE_NAMESPACES
28061_ACEOF
28062
28063fi
28064
28065echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28066echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28067if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28068  echo $ECHO_N "(cached) $ECHO_C" >&6
28069else
28070
28071  ac_ext=cc
28072ac_cpp='$CXXCPP $CPPFLAGS'
28073ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28074ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28075ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28076
28077  cat >conftest.$ac_ext <<_ACEOF
28078/* confdefs.h.  */
28079_ACEOF
28080cat confdefs.h >>conftest.$ac_ext
28081cat >>conftest.$ac_ext <<_ACEOF
28082/* end confdefs.h.  */
28083#include <ext/hash_map>
28084#ifdef HAVE_NAMESPACES
28085using namespace std;
28086#endif
28087int
28088main ()
28089{
28090hash_map<int, int> t;
28091  ;
28092  return 0;
28093}
28094_ACEOF
28095rm -f conftest.$ac_objext
28096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28097  (eval $ac_compile) 2>conftest.er1
28098  ac_status=$?
28099  grep -v '^ *+' conftest.er1 >conftest.err
28100  rm -f conftest.er1
28101  cat conftest.err >&5
28102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28103  (exit $ac_status); } &&
28104	 { ac_try='test -z "$ac_cxx_werror_flag"
28105			 || test ! -s conftest.err'
28106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28107  (eval $ac_try) 2>&5
28108  ac_status=$?
28109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28110  (exit $ac_status); }; } &&
28111	 { ac_try='test -s conftest.$ac_objext'
28112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28113  (eval $ac_try) 2>&5
28114  ac_status=$?
28115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28116  (exit $ac_status); }; }; then
28117  ac_cv_cxx_have_std_ext_hash_map=yes
28118else
28119  echo "$as_me: failed program was:" >&5
28120sed 's/^/| /' conftest.$ac_ext >&5
28121
28122ac_cv_cxx_have_std_ext_hash_map=no
28123fi
28124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28125  ac_ext=c
28126ac_cpp='$CPP $CPPFLAGS'
28127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28129ac_compiler_gnu=$ac_cv_c_compiler_gnu
28130
28131fi
28132echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28133echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28134 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28135 then
28136
28137cat >>confdefs.h <<\_ACEOF
28138#define HAVE_STD_EXT_HASH_MAP 1
28139_ACEOF
28140
28141 else
28142
28143cat >>confdefs.h <<\_ACEOF
28144#define HAVE_STD_EXT_HASH_MAP 0
28145_ACEOF
28146
28147 fi
28148
28149 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28150echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28151if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28152  echo $ECHO_N "(cached) $ECHO_C" >&6
28153else
28154
28155  ac_ext=cc
28156ac_cpp='$CXXCPP $CPPFLAGS'
28157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28160
28161  cat >conftest.$ac_ext <<_ACEOF
28162/* confdefs.h.  */
28163_ACEOF
28164cat confdefs.h >>conftest.$ac_ext
28165cat >>conftest.$ac_ext <<_ACEOF
28166/* end confdefs.h.  */
28167#include <ext/hash_map>
28168#ifdef HAVE_NAMESPACES
28169using namespace __gnu_cxx;
28170#endif
28171int
28172main ()
28173{
28174hash_map<int,int> t;
28175  ;
28176  return 0;
28177}
28178_ACEOF
28179rm -f conftest.$ac_objext
28180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28181  (eval $ac_compile) 2>conftest.er1
28182  ac_status=$?
28183  grep -v '^ *+' conftest.er1 >conftest.err
28184  rm -f conftest.er1
28185  cat conftest.err >&5
28186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28187  (exit $ac_status); } &&
28188	 { ac_try='test -z "$ac_cxx_werror_flag"
28189			 || test ! -s conftest.err'
28190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28191  (eval $ac_try) 2>&5
28192  ac_status=$?
28193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28194  (exit $ac_status); }; } &&
28195	 { ac_try='test -s conftest.$ac_objext'
28196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28197  (eval $ac_try) 2>&5
28198  ac_status=$?
28199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200  (exit $ac_status); }; }; then
28201  ac_cv_cxx_have_gnu_ext_hash_map=yes
28202else
28203  echo "$as_me: failed program was:" >&5
28204sed 's/^/| /' conftest.$ac_ext >&5
28205
28206ac_cv_cxx_have_gnu_ext_hash_map=no
28207fi
28208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28209  ac_ext=c
28210ac_cpp='$CPP $CPPFLAGS'
28211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28213ac_compiler_gnu=$ac_cv_c_compiler_gnu
28214
28215fi
28216echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28217echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28218 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28219 then
28220
28221cat >>confdefs.h <<\_ACEOF
28222#define HAVE_GNU_EXT_HASH_MAP 1
28223_ACEOF
28224
28225 else
28226
28227cat >>confdefs.h <<\_ACEOF
28228#define HAVE_GNU_EXT_HASH_MAP 0
28229_ACEOF
28230
28231 fi
28232
28233 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28234echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28235if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28236  echo $ECHO_N "(cached) $ECHO_C" >&6
28237else
28238
28239  ac_ext=cc
28240ac_cpp='$CXXCPP $CPPFLAGS'
28241ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28242ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28243ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28244
28245  cat >conftest.$ac_ext <<_ACEOF
28246/* confdefs.h.  */
28247_ACEOF
28248cat confdefs.h >>conftest.$ac_ext
28249cat >>conftest.$ac_ext <<_ACEOF
28250/* end confdefs.h.  */
28251#include <hash_map>
28252int
28253main ()
28254{
28255hash_map<int,int> t;
28256  ;
28257  return 0;
28258}
28259_ACEOF
28260rm -f conftest.$ac_objext
28261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28262  (eval $ac_compile) 2>conftest.er1
28263  ac_status=$?
28264  grep -v '^ *+' conftest.er1 >conftest.err
28265  rm -f conftest.er1
28266  cat conftest.err >&5
28267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268  (exit $ac_status); } &&
28269	 { ac_try='test -z "$ac_cxx_werror_flag"
28270			 || test ! -s conftest.err'
28271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28272  (eval $ac_try) 2>&5
28273  ac_status=$?
28274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275  (exit $ac_status); }; } &&
28276	 { ac_try='test -s conftest.$ac_objext'
28277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28278  (eval $ac_try) 2>&5
28279  ac_status=$?
28280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281  (exit $ac_status); }; }; then
28282  ac_cv_cxx_have_global_hash_map=yes
28283else
28284  echo "$as_me: failed program was:" >&5
28285sed 's/^/| /' conftest.$ac_ext >&5
28286
28287ac_cv_cxx_have_global_hash_map=no
28288fi
28289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28290  ac_ext=c
28291ac_cpp='$CPP $CPPFLAGS'
28292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28294ac_compiler_gnu=$ac_cv_c_compiler_gnu
28295
28296fi
28297echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28298echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28299 if test "$ac_cv_cxx_have_global_hash_map" = yes
28300 then
28301
28302cat >>confdefs.h <<\_ACEOF
28303#define HAVE_GLOBAL_HASH_MAP 1
28304_ACEOF
28305
28306 else
28307
28308cat >>confdefs.h <<\_ACEOF
28309#define HAVE_GLOBAL_HASH_MAP 0
28310_ACEOF
28311
28312 fi
28313
28314echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28315echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28316if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28317  echo $ECHO_N "(cached) $ECHO_C" >&6
28318else
28319
28320  ac_ext=cc
28321ac_cpp='$CXXCPP $CPPFLAGS'
28322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28325
28326  cat >conftest.$ac_ext <<_ACEOF
28327/* confdefs.h.  */
28328_ACEOF
28329cat confdefs.h >>conftest.$ac_ext
28330cat >>conftest.$ac_ext <<_ACEOF
28331/* end confdefs.h.  */
28332#include <ext/hash_set>
28333#ifdef HAVE_NAMESPACES
28334using namespace std;
28335#endif
28336int
28337main ()
28338{
28339hash_set<int> t;
28340  ;
28341  return 0;
28342}
28343_ACEOF
28344rm -f conftest.$ac_objext
28345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28346  (eval $ac_compile) 2>conftest.er1
28347  ac_status=$?
28348  grep -v '^ *+' conftest.er1 >conftest.err
28349  rm -f conftest.er1
28350  cat conftest.err >&5
28351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352  (exit $ac_status); } &&
28353	 { ac_try='test -z "$ac_cxx_werror_flag"
28354			 || test ! -s conftest.err'
28355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28356  (eval $ac_try) 2>&5
28357  ac_status=$?
28358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28359  (exit $ac_status); }; } &&
28360	 { ac_try='test -s conftest.$ac_objext'
28361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28362  (eval $ac_try) 2>&5
28363  ac_status=$?
28364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28365  (exit $ac_status); }; }; then
28366  ac_cv_cxx_have_std_ext_hash_set=yes
28367else
28368  echo "$as_me: failed program was:" >&5
28369sed 's/^/| /' conftest.$ac_ext >&5
28370
28371ac_cv_cxx_have_std_ext_hash_set=no
28372fi
28373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28374  ac_ext=c
28375ac_cpp='$CPP $CPPFLAGS'
28376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28378ac_compiler_gnu=$ac_cv_c_compiler_gnu
28379
28380fi
28381echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28382echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28383 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28384 then
28385
28386cat >>confdefs.h <<\_ACEOF
28387#define HAVE_STD_EXT_HASH_SET 1
28388_ACEOF
28389
28390 else
28391
28392cat >>confdefs.h <<\_ACEOF
28393#define HAVE_STD_EXT_HASH_SET 0
28394_ACEOF
28395
28396 fi
28397
28398 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28399echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28400if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28401  echo $ECHO_N "(cached) $ECHO_C" >&6
28402else
28403
28404  ac_ext=cc
28405ac_cpp='$CXXCPP $CPPFLAGS'
28406ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28407ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28408ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28409
28410  cat >conftest.$ac_ext <<_ACEOF
28411/* confdefs.h.  */
28412_ACEOF
28413cat confdefs.h >>conftest.$ac_ext
28414cat >>conftest.$ac_ext <<_ACEOF
28415/* end confdefs.h.  */
28416#include <ext/hash_set>
28417#ifdef HAVE_NAMESPACES
28418using namespace __gnu_cxx;
28419#endif
28420int
28421main ()
28422{
28423hash_set<int> t;
28424  ;
28425  return 0;
28426}
28427_ACEOF
28428rm -f conftest.$ac_objext
28429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28430  (eval $ac_compile) 2>conftest.er1
28431  ac_status=$?
28432  grep -v '^ *+' conftest.er1 >conftest.err
28433  rm -f conftest.er1
28434  cat conftest.err >&5
28435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436  (exit $ac_status); } &&
28437	 { ac_try='test -z "$ac_cxx_werror_flag"
28438			 || test ! -s conftest.err'
28439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28440  (eval $ac_try) 2>&5
28441  ac_status=$?
28442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28443  (exit $ac_status); }; } &&
28444	 { ac_try='test -s conftest.$ac_objext'
28445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28446  (eval $ac_try) 2>&5
28447  ac_status=$?
28448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28449  (exit $ac_status); }; }; then
28450  ac_cv_cxx_have_gnu_ext_hash_set=yes
28451else
28452  echo "$as_me: failed program was:" >&5
28453sed 's/^/| /' conftest.$ac_ext >&5
28454
28455ac_cv_cxx_have_gnu_ext_hash_set=no
28456fi
28457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28458  ac_ext=c
28459ac_cpp='$CPP $CPPFLAGS'
28460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28462ac_compiler_gnu=$ac_cv_c_compiler_gnu
28463
28464fi
28465echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28466echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28467 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28468 then
28469
28470cat >>confdefs.h <<\_ACEOF
28471#define HAVE_GNU_EXT_HASH_SET 1
28472_ACEOF
28473
28474 else
28475
28476cat >>confdefs.h <<\_ACEOF
28477#define HAVE_GNU_EXT_HASH_SET 0
28478_ACEOF
28479
28480 fi
28481
28482 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28483echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28484if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28485  echo $ECHO_N "(cached) $ECHO_C" >&6
28486else
28487
28488  ac_ext=cc
28489ac_cpp='$CXXCPP $CPPFLAGS'
28490ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28491ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28492ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28493
28494  cat >conftest.$ac_ext <<_ACEOF
28495/* confdefs.h.  */
28496_ACEOF
28497cat confdefs.h >>conftest.$ac_ext
28498cat >>conftest.$ac_ext <<_ACEOF
28499/* end confdefs.h.  */
28500#include <hash_set>
28501int
28502main ()
28503{
28504hash_set<int> t; return 0;
28505  ;
28506  return 0;
28507}
28508_ACEOF
28509rm -f conftest.$ac_objext
28510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28511  (eval $ac_compile) 2>conftest.er1
28512  ac_status=$?
28513  grep -v '^ *+' conftest.er1 >conftest.err
28514  rm -f conftest.er1
28515  cat conftest.err >&5
28516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517  (exit $ac_status); } &&
28518	 { ac_try='test -z "$ac_cxx_werror_flag"
28519			 || test ! -s conftest.err'
28520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28521  (eval $ac_try) 2>&5
28522  ac_status=$?
28523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28524  (exit $ac_status); }; } &&
28525	 { ac_try='test -s conftest.$ac_objext'
28526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28527  (eval $ac_try) 2>&5
28528  ac_status=$?
28529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530  (exit $ac_status); }; }; then
28531  ac_cv_cxx_have_global_hash_set=yes
28532else
28533  echo "$as_me: failed program was:" >&5
28534sed 's/^/| /' conftest.$ac_ext >&5
28535
28536ac_cv_cxx_have_global_hash_set=no
28537fi
28538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28539  ac_ext=c
28540ac_cpp='$CPP $CPPFLAGS'
28541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28543ac_compiler_gnu=$ac_cv_c_compiler_gnu
28544
28545fi
28546echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28547echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28548 if test "$ac_cv_cxx_have_global_hash_set" = yes
28549 then
28550
28551cat >>confdefs.h <<\_ACEOF
28552#define HAVE_GLOBAL_HASH_SET 1
28553_ACEOF
28554
28555 else
28556
28557cat >>confdefs.h <<\_ACEOF
28558#define HAVE_GLOBAL_HASH_SET 0
28559_ACEOF
28560
28561 fi
28562
28563echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28564echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28565if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28566  echo $ECHO_N "(cached) $ECHO_C" >&6
28567else
28568
28569  ac_ext=cc
28570ac_cpp='$CXXCPP $CPPFLAGS'
28571ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28572ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28574
28575  cat >conftest.$ac_ext <<_ACEOF
28576/* confdefs.h.  */
28577_ACEOF
28578cat confdefs.h >>conftest.$ac_ext
28579cat >>conftest.$ac_ext <<_ACEOF
28580/* end confdefs.h.  */
28581#include <iterator>
28582#ifdef HAVE_NAMESPACES
28583using namespace std;
28584#endif
28585int
28586main ()
28587{
28588iterator<int,int,int> t; return 0;
28589  ;
28590  return 0;
28591}
28592_ACEOF
28593rm -f conftest.$ac_objext
28594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28595  (eval $ac_compile) 2>conftest.er1
28596  ac_status=$?
28597  grep -v '^ *+' conftest.er1 >conftest.err
28598  rm -f conftest.er1
28599  cat conftest.err >&5
28600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28601  (exit $ac_status); } &&
28602	 { ac_try='test -z "$ac_cxx_werror_flag"
28603			 || test ! -s conftest.err'
28604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28605  (eval $ac_try) 2>&5
28606  ac_status=$?
28607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608  (exit $ac_status); }; } &&
28609	 { ac_try='test -s conftest.$ac_objext'
28610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28611  (eval $ac_try) 2>&5
28612  ac_status=$?
28613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614  (exit $ac_status); }; }; then
28615  ac_cv_cxx_have_std_iterator=yes
28616else
28617  echo "$as_me: failed program was:" >&5
28618sed 's/^/| /' conftest.$ac_ext >&5
28619
28620ac_cv_cxx_have_std_iterator=no
28621fi
28622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28623  ac_ext=c
28624ac_cpp='$CPP $CPPFLAGS'
28625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28627ac_compiler_gnu=$ac_cv_c_compiler_gnu
28628
28629
28630fi
28631echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28632echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28633if test "$ac_cv_cxx_have_std_iterator" = yes
28634then
28635
28636cat >>confdefs.h <<\_ACEOF
28637#define HAVE_STD_ITERATOR 1
28638_ACEOF
28639
28640else
28641
28642cat >>confdefs.h <<\_ACEOF
28643#define HAVE_STD_ITERATOR 0
28644_ACEOF
28645
28646fi
28647
28648echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28649echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28650if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28651  echo $ECHO_N "(cached) $ECHO_C" >&6
28652else
28653
28654  ac_ext=cc
28655ac_cpp='$CXXCPP $CPPFLAGS'
28656ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28657ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28658ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28659
28660  cat >conftest.$ac_ext <<_ACEOF
28661/* confdefs.h.  */
28662_ACEOF
28663cat confdefs.h >>conftest.$ac_ext
28664cat >>conftest.$ac_ext <<_ACEOF
28665/* end confdefs.h.  */
28666#include <iterator>
28667#ifdef HAVE_NAMESPACES
28668using namespace std;
28669#endif
28670int
28671main ()
28672{
28673bidirectional_iterator<int,int> t; return 0;
28674  ;
28675  return 0;
28676}
28677_ACEOF
28678rm -f conftest.$ac_objext
28679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28680  (eval $ac_compile) 2>conftest.er1
28681  ac_status=$?
28682  grep -v '^ *+' conftest.er1 >conftest.err
28683  rm -f conftest.er1
28684  cat conftest.err >&5
28685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686  (exit $ac_status); } &&
28687	 { ac_try='test -z "$ac_cxx_werror_flag"
28688			 || test ! -s conftest.err'
28689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28690  (eval $ac_try) 2>&5
28691  ac_status=$?
28692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693  (exit $ac_status); }; } &&
28694	 { ac_try='test -s conftest.$ac_objext'
28695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28696  (eval $ac_try) 2>&5
28697  ac_status=$?
28698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699  (exit $ac_status); }; }; then
28700  ac_cv_cxx_have_bi_iterator=yes
28701else
28702  echo "$as_me: failed program was:" >&5
28703sed 's/^/| /' conftest.$ac_ext >&5
28704
28705ac_cv_cxx_have_bi_iterator=no
28706fi
28707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28708  ac_ext=c
28709ac_cpp='$CPP $CPPFLAGS'
28710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28712ac_compiler_gnu=$ac_cv_c_compiler_gnu
28713
28714
28715fi
28716echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28717echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28718if test "$ac_cv_cxx_have_bi_iterator" = yes
28719then
28720
28721cat >>confdefs.h <<\_ACEOF
28722#define HAVE_BI_ITERATOR 1
28723_ACEOF
28724
28725else
28726
28727cat >>confdefs.h <<\_ACEOF
28728#define HAVE_BI_ITERATOR 0
28729_ACEOF
28730
28731fi
28732
28733echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28734echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28735if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28736  echo $ECHO_N "(cached) $ECHO_C" >&6
28737else
28738
28739  ac_ext=cc
28740ac_cpp='$CXXCPP $CPPFLAGS'
28741ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28742ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28743ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28744
28745  cat >conftest.$ac_ext <<_ACEOF
28746/* confdefs.h.  */
28747_ACEOF
28748cat confdefs.h >>conftest.$ac_ext
28749cat >>conftest.$ac_ext <<_ACEOF
28750/* end confdefs.h.  */
28751#include <iterator>
28752#ifdef HAVE_NAMESPACES
28753using namespace std;
28754#endif
28755int
28756main ()
28757{
28758forward_iterator<int,int> t; return 0;
28759  ;
28760  return 0;
28761}
28762_ACEOF
28763rm -f conftest.$ac_objext
28764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28765  (eval $ac_compile) 2>conftest.er1
28766  ac_status=$?
28767  grep -v '^ *+' conftest.er1 >conftest.err
28768  rm -f conftest.er1
28769  cat conftest.err >&5
28770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771  (exit $ac_status); } &&
28772	 { ac_try='test -z "$ac_cxx_werror_flag"
28773			 || test ! -s conftest.err'
28774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28775  (eval $ac_try) 2>&5
28776  ac_status=$?
28777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778  (exit $ac_status); }; } &&
28779	 { ac_try='test -s conftest.$ac_objext'
28780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28781  (eval $ac_try) 2>&5
28782  ac_status=$?
28783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784  (exit $ac_status); }; }; then
28785  ac_cv_cxx_have_fwd_iterator=yes
28786else
28787  echo "$as_me: failed program was:" >&5
28788sed 's/^/| /' conftest.$ac_ext >&5
28789
28790ac_cv_cxx_have_fwd_iterator=no
28791fi
28792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28793  ac_ext=c
28794ac_cpp='$CPP $CPPFLAGS'
28795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28797ac_compiler_gnu=$ac_cv_c_compiler_gnu
28798
28799
28800fi
28801echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28802echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28803if test "$ac_cv_cxx_have_fwd_iterator" = yes
28804then
28805
28806cat >>confdefs.h <<\_ACEOF
28807#define HAVE_FWD_ITERATOR 1
28808_ACEOF
28809
28810else
28811
28812cat >>confdefs.h <<\_ACEOF
28813#define HAVE_FWD_ITERATOR 0
28814_ACEOF
28815
28816fi
28817
28818
28819echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28820echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28821if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28822  echo $ECHO_N "(cached) $ECHO_C" >&6
28823else
28824  ac_ext=cc
28825ac_cpp='$CXXCPP $CPPFLAGS'
28826ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28827ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28828ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28829
28830   cat >conftest.$ac_ext <<_ACEOF
28831/* confdefs.h.  */
28832_ACEOF
28833cat confdefs.h >>conftest.$ac_ext
28834cat >>conftest.$ac_ext <<_ACEOF
28835/* end confdefs.h.  */
28836#include <math.h>
28837int
28838main ()
28839{
28840float f; isnan(f);
28841  ;
28842  return 0;
28843}
28844_ACEOF
28845rm -f conftest.$ac_objext
28846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28847  (eval $ac_compile) 2>conftest.er1
28848  ac_status=$?
28849  grep -v '^ *+' conftest.er1 >conftest.err
28850  rm -f conftest.er1
28851  cat conftest.err >&5
28852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853  (exit $ac_status); } &&
28854	 { ac_try='test -z "$ac_cxx_werror_flag"
28855			 || test ! -s conftest.err'
28856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28857  (eval $ac_try) 2>&5
28858  ac_status=$?
28859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28860  (exit $ac_status); }; } &&
28861	 { ac_try='test -s conftest.$ac_objext'
28862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28863  (eval $ac_try) 2>&5
28864  ac_status=$?
28865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866  (exit $ac_status); }; }; then
28867  ac_cv_func_isnan_in_math_h=yes
28868else
28869  echo "$as_me: failed program was:" >&5
28870sed 's/^/| /' conftest.$ac_ext >&5
28871
28872ac_cv_func_isnan_in_math_h=no
28873fi
28874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28875  ac_ext=c
28876ac_cpp='$CPP $CPPFLAGS'
28877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28879ac_compiler_gnu=$ac_cv_c_compiler_gnu
28880
28881fi
28882echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28883echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
28884
28885
28886if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
28887
28888cat >>confdefs.h <<\_ACEOF
28889#define HAVE_ISNAN_IN_MATH_H 1
28890_ACEOF
28891
28892fi
28893
28894echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28895echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28896if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28897  echo $ECHO_N "(cached) $ECHO_C" >&6
28898else
28899  ac_ext=cc
28900ac_cpp='$CXXCPP $CPPFLAGS'
28901ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28902ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28903ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28904
28905   cat >conftest.$ac_ext <<_ACEOF
28906/* confdefs.h.  */
28907_ACEOF
28908cat confdefs.h >>conftest.$ac_ext
28909cat >>conftest.$ac_ext <<_ACEOF
28910/* end confdefs.h.  */
28911#include <cmath>
28912int
28913main ()
28914{
28915float f; isnan(f);
28916  ;
28917  return 0;
28918}
28919_ACEOF
28920rm -f conftest.$ac_objext
28921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28922  (eval $ac_compile) 2>conftest.er1
28923  ac_status=$?
28924  grep -v '^ *+' conftest.er1 >conftest.err
28925  rm -f conftest.er1
28926  cat conftest.err >&5
28927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28928  (exit $ac_status); } &&
28929	 { ac_try='test -z "$ac_cxx_werror_flag"
28930			 || test ! -s conftest.err'
28931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28932  (eval $ac_try) 2>&5
28933  ac_status=$?
28934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935  (exit $ac_status); }; } &&
28936	 { ac_try='test -s conftest.$ac_objext'
28937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28938  (eval $ac_try) 2>&5
28939  ac_status=$?
28940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28941  (exit $ac_status); }; }; then
28942  ac_cv_func_isnan_in_cmath=yes
28943else
28944  echo "$as_me: failed program was:" >&5
28945sed 's/^/| /' conftest.$ac_ext >&5
28946
28947ac_cv_func_isnan_in_cmath=no
28948fi
28949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28950  ac_ext=c
28951ac_cpp='$CPP $CPPFLAGS'
28952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28954ac_compiler_gnu=$ac_cv_c_compiler_gnu
28955
28956fi
28957echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28958echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
28959
28960if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
28961
28962cat >>confdefs.h <<\_ACEOF
28963#define HAVE_ISNAN_IN_CMATH 1
28964_ACEOF
28965
28966fi
28967
28968echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28969echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28970if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28971  echo $ECHO_N "(cached) $ECHO_C" >&6
28972else
28973  ac_ext=cc
28974ac_cpp='$CXXCPP $CPPFLAGS'
28975ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28976ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28977ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28978
28979   cat >conftest.$ac_ext <<_ACEOF
28980/* confdefs.h.  */
28981_ACEOF
28982cat confdefs.h >>conftest.$ac_ext
28983cat >>conftest.$ac_ext <<_ACEOF
28984/* end confdefs.h.  */
28985#include <cmath>
28986int
28987main ()
28988{
28989float f; std::isnan(f);
28990  ;
28991  return 0;
28992}
28993_ACEOF
28994rm -f conftest.$ac_objext
28995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28996  (eval $ac_compile) 2>conftest.er1
28997  ac_status=$?
28998  grep -v '^ *+' conftest.er1 >conftest.err
28999  rm -f conftest.er1
29000  cat conftest.err >&5
29001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002  (exit $ac_status); } &&
29003	 { ac_try='test -z "$ac_cxx_werror_flag"
29004			 || test ! -s conftest.err'
29005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29006  (eval $ac_try) 2>&5
29007  ac_status=$?
29008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009  (exit $ac_status); }; } &&
29010	 { ac_try='test -s conftest.$ac_objext'
29011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29012  (eval $ac_try) 2>&5
29013  ac_status=$?
29014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29015  (exit $ac_status); }; }; then
29016  ac_cv_func_std_isnan_in_cmath=yes
29017else
29018  echo "$as_me: failed program was:" >&5
29019sed 's/^/| /' conftest.$ac_ext >&5
29020
29021ac_cv_func_std_isnan_in_cmath=no
29022fi
29023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29024  ac_ext=c
29025ac_cpp='$CPP $CPPFLAGS'
29026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29028ac_compiler_gnu=$ac_cv_c_compiler_gnu
29029
29030fi
29031echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29032echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29033
29034if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29035
29036cat >>confdefs.h <<\_ACEOF
29037#define HAVE_STD_ISNAN_IN_CMATH 1
29038_ACEOF
29039
29040fi
29041
29042
29043echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29044echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29045if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29046  echo $ECHO_N "(cached) $ECHO_C" >&6
29047else
29048  ac_ext=cc
29049ac_cpp='$CXXCPP $CPPFLAGS'
29050ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29051ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29052ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29053
29054   cat >conftest.$ac_ext <<_ACEOF
29055/* confdefs.h.  */
29056_ACEOF
29057cat confdefs.h >>conftest.$ac_ext
29058cat >>conftest.$ac_ext <<_ACEOF
29059/* end confdefs.h.  */
29060#include <math.h>
29061int
29062main ()
29063{
29064float f; isinf(f);
29065  ;
29066  return 0;
29067}
29068_ACEOF
29069rm -f conftest.$ac_objext
29070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29071  (eval $ac_compile) 2>conftest.er1
29072  ac_status=$?
29073  grep -v '^ *+' conftest.er1 >conftest.err
29074  rm -f conftest.er1
29075  cat conftest.err >&5
29076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29077  (exit $ac_status); } &&
29078	 { ac_try='test -z "$ac_cxx_werror_flag"
29079			 || test ! -s conftest.err'
29080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29081  (eval $ac_try) 2>&5
29082  ac_status=$?
29083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29084  (exit $ac_status); }; } &&
29085	 { ac_try='test -s conftest.$ac_objext'
29086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29087  (eval $ac_try) 2>&5
29088  ac_status=$?
29089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090  (exit $ac_status); }; }; then
29091  ac_cv_func_isinf_in_math_h=yes
29092else
29093  echo "$as_me: failed program was:" >&5
29094sed 's/^/| /' conftest.$ac_ext >&5
29095
29096ac_cv_func_isinf_in_math_h=no
29097fi
29098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29099  ac_ext=c
29100ac_cpp='$CPP $CPPFLAGS'
29101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29103ac_compiler_gnu=$ac_cv_c_compiler_gnu
29104
29105fi
29106echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29107echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29108
29109if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29110
29111cat >>confdefs.h <<\_ACEOF
29112#define HAVE_ISINF_IN_MATH_H 1
29113_ACEOF
29114
29115fi
29116
29117echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29118echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29119if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29120  echo $ECHO_N "(cached) $ECHO_C" >&6
29121else
29122  ac_ext=cc
29123ac_cpp='$CXXCPP $CPPFLAGS'
29124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29127
29128   cat >conftest.$ac_ext <<_ACEOF
29129/* confdefs.h.  */
29130_ACEOF
29131cat confdefs.h >>conftest.$ac_ext
29132cat >>conftest.$ac_ext <<_ACEOF
29133/* end confdefs.h.  */
29134#include <cmath>
29135int
29136main ()
29137{
29138float f; isinf(f);
29139  ;
29140  return 0;
29141}
29142_ACEOF
29143rm -f conftest.$ac_objext
29144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29145  (eval $ac_compile) 2>conftest.er1
29146  ac_status=$?
29147  grep -v '^ *+' conftest.er1 >conftest.err
29148  rm -f conftest.er1
29149  cat conftest.err >&5
29150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151  (exit $ac_status); } &&
29152	 { ac_try='test -z "$ac_cxx_werror_flag"
29153			 || test ! -s conftest.err'
29154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29155  (eval $ac_try) 2>&5
29156  ac_status=$?
29157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158  (exit $ac_status); }; } &&
29159	 { ac_try='test -s conftest.$ac_objext'
29160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29161  (eval $ac_try) 2>&5
29162  ac_status=$?
29163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29164  (exit $ac_status); }; }; then
29165  ac_cv_func_isinf_in_cmath=yes
29166else
29167  echo "$as_me: failed program was:" >&5
29168sed 's/^/| /' conftest.$ac_ext >&5
29169
29170ac_cv_func_isinf_in_cmath=no
29171fi
29172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29173  ac_ext=c
29174ac_cpp='$CPP $CPPFLAGS'
29175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29177ac_compiler_gnu=$ac_cv_c_compiler_gnu
29178
29179fi
29180echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29181echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29182
29183if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29184
29185cat >>confdefs.h <<\_ACEOF
29186#define HAVE_ISINF_IN_CMATH 1
29187_ACEOF
29188
29189fi
29190
29191echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29192echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29193if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29194  echo $ECHO_N "(cached) $ECHO_C" >&6
29195else
29196  ac_ext=cc
29197ac_cpp='$CXXCPP $CPPFLAGS'
29198ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29199ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29200ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29201
29202   cat >conftest.$ac_ext <<_ACEOF
29203/* confdefs.h.  */
29204_ACEOF
29205cat confdefs.h >>conftest.$ac_ext
29206cat >>conftest.$ac_ext <<_ACEOF
29207/* end confdefs.h.  */
29208#include <cmath>
29209int
29210main ()
29211{
29212float f; std::isinf(f)}
29213  ;
29214  return 0;
29215}
29216_ACEOF
29217rm -f conftest.$ac_objext
29218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29219  (eval $ac_compile) 2>conftest.er1
29220  ac_status=$?
29221  grep -v '^ *+' conftest.er1 >conftest.err
29222  rm -f conftest.er1
29223  cat conftest.err >&5
29224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225  (exit $ac_status); } &&
29226	 { ac_try='test -z "$ac_cxx_werror_flag"
29227			 || test ! -s conftest.err'
29228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29229  (eval $ac_try) 2>&5
29230  ac_status=$?
29231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232  (exit $ac_status); }; } &&
29233	 { ac_try='test -s conftest.$ac_objext'
29234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29235  (eval $ac_try) 2>&5
29236  ac_status=$?
29237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238  (exit $ac_status); }; }; then
29239  ac_cv_func_std_isinf_in_cmath=yes
29240else
29241  echo "$as_me: failed program was:" >&5
29242sed 's/^/| /' conftest.$ac_ext >&5
29243
29244ac_cv_func_std_isinf_in_cmath=no
29245fi
29246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29247  ac_ext=c
29248ac_cpp='$CPP $CPPFLAGS'
29249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29251ac_compiler_gnu=$ac_cv_c_compiler_gnu
29252
29253fi
29254echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29255echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29256
29257if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29258
29259cat >>confdefs.h <<\_ACEOF
29260#define HAVE_STD_ISINF_IN_CMATH 1
29261_ACEOF
29262
29263fi
29264
29265echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29266echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29267if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29268  echo $ECHO_N "(cached) $ECHO_C" >&6
29269else
29270  ac_ext=cc
29271ac_cpp='$CXXCPP $CPPFLAGS'
29272ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29273ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29274ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29275
29276   cat >conftest.$ac_ext <<_ACEOF
29277/* confdefs.h.  */
29278_ACEOF
29279cat confdefs.h >>conftest.$ac_ext
29280cat >>conftest.$ac_ext <<_ACEOF
29281/* end confdefs.h.  */
29282#include <ieeefp.h>
29283int
29284main ()
29285{
29286float f; finite(f);
29287  ;
29288  return 0;
29289}
29290_ACEOF
29291rm -f conftest.$ac_objext
29292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29293  (eval $ac_compile) 2>conftest.er1
29294  ac_status=$?
29295  grep -v '^ *+' conftest.er1 >conftest.err
29296  rm -f conftest.er1
29297  cat conftest.err >&5
29298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29299  (exit $ac_status); } &&
29300	 { ac_try='test -z "$ac_cxx_werror_flag"
29301			 || test ! -s conftest.err'
29302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29303  (eval $ac_try) 2>&5
29304  ac_status=$?
29305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306  (exit $ac_status); }; } &&
29307	 { ac_try='test -s conftest.$ac_objext'
29308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29309  (eval $ac_try) 2>&5
29310  ac_status=$?
29311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312  (exit $ac_status); }; }; then
29313  ac_cv_func_finite_in_ieeefp_h=yes
29314else
29315  echo "$as_me: failed program was:" >&5
29316sed 's/^/| /' conftest.$ac_ext >&5
29317
29318ac_cv_func_finite_in_ieeefp_h=no
29319fi
29320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29321  ac_ext=c
29322ac_cpp='$CPP $CPPFLAGS'
29323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29325ac_compiler_gnu=$ac_cv_c_compiler_gnu
29326
29327fi
29328echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29329echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29330
29331if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29332
29333cat >>confdefs.h <<\_ACEOF
29334#define HAVE_FINITE_IN_IEEEFP_H 1
29335_ACEOF
29336
29337fi
29338
29339
29340
29341
29342
29343for ac_header in stdlib.h unistd.h
29344do
29345as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29346if eval "test \"\${$as_ac_Header+set}\" = set"; then
29347  echo "$as_me:$LINENO: checking for $ac_header" >&5
29348echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29349if eval "test \"\${$as_ac_Header+set}\" = set"; then
29350  echo $ECHO_N "(cached) $ECHO_C" >&6
29351fi
29352echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29353echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29354else
29355  # Is the header compilable?
29356echo "$as_me:$LINENO: checking $ac_header usability" >&5
29357echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29358cat >conftest.$ac_ext <<_ACEOF
29359/* confdefs.h.  */
29360_ACEOF
29361cat confdefs.h >>conftest.$ac_ext
29362cat >>conftest.$ac_ext <<_ACEOF
29363/* end confdefs.h.  */
29364$ac_includes_default
29365#include <$ac_header>
29366_ACEOF
29367rm -f conftest.$ac_objext
29368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29369  (eval $ac_compile) 2>conftest.er1
29370  ac_status=$?
29371  grep -v '^ *+' conftest.er1 >conftest.err
29372  rm -f conftest.er1
29373  cat conftest.err >&5
29374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29375  (exit $ac_status); } &&
29376	 { ac_try='test -z "$ac_c_werror_flag"
29377			 || test ! -s conftest.err'
29378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29379  (eval $ac_try) 2>&5
29380  ac_status=$?
29381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29382  (exit $ac_status); }; } &&
29383	 { ac_try='test -s conftest.$ac_objext'
29384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29385  (eval $ac_try) 2>&5
29386  ac_status=$?
29387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29388  (exit $ac_status); }; }; then
29389  ac_header_compiler=yes
29390else
29391  echo "$as_me: failed program was:" >&5
29392sed 's/^/| /' conftest.$ac_ext >&5
29393
29394ac_header_compiler=no
29395fi
29396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29397echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29398echo "${ECHO_T}$ac_header_compiler" >&6
29399
29400# Is the header present?
29401echo "$as_me:$LINENO: checking $ac_header presence" >&5
29402echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29403cat >conftest.$ac_ext <<_ACEOF
29404/* confdefs.h.  */
29405_ACEOF
29406cat confdefs.h >>conftest.$ac_ext
29407cat >>conftest.$ac_ext <<_ACEOF
29408/* end confdefs.h.  */
29409#include <$ac_header>
29410_ACEOF
29411if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29412  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29413  ac_status=$?
29414  grep -v '^ *+' conftest.er1 >conftest.err
29415  rm -f conftest.er1
29416  cat conftest.err >&5
29417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29418  (exit $ac_status); } >/dev/null; then
29419  if test -s conftest.err; then
29420    ac_cpp_err=$ac_c_preproc_warn_flag
29421    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29422  else
29423    ac_cpp_err=
29424  fi
29425else
29426  ac_cpp_err=yes
29427fi
29428if test -z "$ac_cpp_err"; then
29429  ac_header_preproc=yes
29430else
29431  echo "$as_me: failed program was:" >&5
29432sed 's/^/| /' conftest.$ac_ext >&5
29433
29434  ac_header_preproc=no
29435fi
29436rm -f conftest.err conftest.$ac_ext
29437echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29438echo "${ECHO_T}$ac_header_preproc" >&6
29439
29440# So?  What about this header?
29441case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29442  yes:no: )
29443    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29444echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29445    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29446echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29447    ac_header_preproc=yes
29448    ;;
29449  no:yes:* )
29450    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29451echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29452    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29453echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29454    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29455echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29456    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29457echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29458    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29459echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29460    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29461echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29462    (
29463      cat <<\_ASBOX
29464## ----------------------------------- ##
29465## Report this to llvmbugs@cs.uiuc.edu ##
29466## ----------------------------------- ##
29467_ASBOX
29468    ) |
29469      sed "s/^/$as_me: WARNING:     /" >&2
29470    ;;
29471esac
29472echo "$as_me:$LINENO: checking for $ac_header" >&5
29473echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29474if eval "test \"\${$as_ac_Header+set}\" = set"; then
29475  echo $ECHO_N "(cached) $ECHO_C" >&6
29476else
29477  eval "$as_ac_Header=\$ac_header_preproc"
29478fi
29479echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29480echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29481
29482fi
29483if test `eval echo '${'$as_ac_Header'}'` = yes; then
29484  cat >>confdefs.h <<_ACEOF
29485#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29486_ACEOF
29487
29488fi
29489
29490done
29491
29492
29493for ac_func in getpagesize
29494do
29495as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29496echo "$as_me:$LINENO: checking for $ac_func" >&5
29497echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29498if eval "test \"\${$as_ac_var+set}\" = set"; then
29499  echo $ECHO_N "(cached) $ECHO_C" >&6
29500else
29501  cat >conftest.$ac_ext <<_ACEOF
29502/* confdefs.h.  */
29503_ACEOF
29504cat confdefs.h >>conftest.$ac_ext
29505cat >>conftest.$ac_ext <<_ACEOF
29506/* end confdefs.h.  */
29507/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29508   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29509#define $ac_func innocuous_$ac_func
29510
29511/* System header to define __stub macros and hopefully few prototypes,
29512    which can conflict with char $ac_func (); below.
29513    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29514    <limits.h> exists even on freestanding compilers.  */
29515
29516#ifdef __STDC__
29517# include <limits.h>
29518#else
29519# include <assert.h>
29520#endif
29521
29522#undef $ac_func
29523
29524/* Override any gcc2 internal prototype to avoid an error.  */
29525#ifdef __cplusplus
29526extern "C"
29527{
29528#endif
29529/* We use char because int might match the return type of a gcc2
29530   builtin and then its argument prototype would still apply.  */
29531char $ac_func ();
29532/* The GNU C library defines this for functions which it implements
29533    to always fail with ENOSYS.  Some functions are actually named
29534    something starting with __ and the normal name is an alias.  */
29535#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29536choke me
29537#else
29538char (*f) () = $ac_func;
29539#endif
29540#ifdef __cplusplus
29541}
29542#endif
29543
29544int
29545main ()
29546{
29547return f != $ac_func;
29548  ;
29549  return 0;
29550}
29551_ACEOF
29552rm -f conftest.$ac_objext conftest$ac_exeext
29553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29554  (eval $ac_link) 2>conftest.er1
29555  ac_status=$?
29556  grep -v '^ *+' conftest.er1 >conftest.err
29557  rm -f conftest.er1
29558  cat conftest.err >&5
29559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29560  (exit $ac_status); } &&
29561	 { ac_try='test -z "$ac_c_werror_flag"
29562			 || test ! -s conftest.err'
29563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29564  (eval $ac_try) 2>&5
29565  ac_status=$?
29566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29567  (exit $ac_status); }; } &&
29568	 { ac_try='test -s conftest$ac_exeext'
29569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29570  (eval $ac_try) 2>&5
29571  ac_status=$?
29572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573  (exit $ac_status); }; }; then
29574  eval "$as_ac_var=yes"
29575else
29576  echo "$as_me: failed program was:" >&5
29577sed 's/^/| /' conftest.$ac_ext >&5
29578
29579eval "$as_ac_var=no"
29580fi
29581rm -f conftest.err conftest.$ac_objext \
29582      conftest$ac_exeext conftest.$ac_ext
29583fi
29584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29585echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29586if test `eval echo '${'$as_ac_var'}'` = yes; then
29587  cat >>confdefs.h <<_ACEOF
29588#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29589_ACEOF
29590
29591fi
29592done
29593
29594echo "$as_me:$LINENO: checking for working mmap" >&5
29595echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29596if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29597  echo $ECHO_N "(cached) $ECHO_C" >&6
29598else
29599  if test "$cross_compiling" = yes; then
29600  ac_cv_func_mmap_fixed_mapped=no
29601else
29602  cat >conftest.$ac_ext <<_ACEOF
29603/* confdefs.h.  */
29604_ACEOF
29605cat confdefs.h >>conftest.$ac_ext
29606cat >>conftest.$ac_ext <<_ACEOF
29607/* end confdefs.h.  */
29608$ac_includes_default
29609/* malloc might have been renamed as rpl_malloc. */
29610#undef malloc
29611
29612/* Thanks to Mike Haertel and Jim Avera for this test.
29613   Here is a matrix of mmap possibilities:
29614	mmap private not fixed
29615	mmap private fixed at somewhere currently unmapped
29616	mmap private fixed at somewhere already mapped
29617	mmap shared not fixed
29618	mmap shared fixed at somewhere currently unmapped
29619	mmap shared fixed at somewhere already mapped
29620   For private mappings, we should verify that changes cannot be read()
29621   back from the file, nor mmap's back from the file at a different
29622   address.  (There have been systems where private was not correctly
29623   implemented like the infamous i386 svr4.0, and systems where the
29624   VM page cache was not coherent with the file system buffer cache
29625   like early versions of FreeBSD and possibly contemporary NetBSD.)
29626   For shared mappings, we should conversely verify that changes get
29627   propagated back to all the places they're supposed to be.
29628
29629   Grep wants private fixed already mapped.
29630   The main things grep needs to know about mmap are:
29631   * does it exist and is it safe to write into the mmap'd area
29632   * how to use it (BSD variants)  */
29633
29634#include <fcntl.h>
29635#include <sys/mman.h>
29636
29637#if !STDC_HEADERS && !HAVE_STDLIB_H
29638char *malloc ();
29639#endif
29640
29641/* This mess was copied from the GNU getpagesize.h.  */
29642#if !HAVE_GETPAGESIZE
29643/* Assume that all systems that can run configure have sys/param.h.  */
29644# if !HAVE_SYS_PARAM_H
29645#  define HAVE_SYS_PARAM_H 1
29646# endif
29647
29648# ifdef _SC_PAGESIZE
29649#  define getpagesize() sysconf(_SC_PAGESIZE)
29650# else /* no _SC_PAGESIZE */
29651#  if HAVE_SYS_PARAM_H
29652#   include <sys/param.h>
29653#   ifdef EXEC_PAGESIZE
29654#    define getpagesize() EXEC_PAGESIZE
29655#   else /* no EXEC_PAGESIZE */
29656#    ifdef NBPG
29657#     define getpagesize() NBPG * CLSIZE
29658#     ifndef CLSIZE
29659#      define CLSIZE 1
29660#     endif /* no CLSIZE */
29661#    else /* no NBPG */
29662#     ifdef NBPC
29663#      define getpagesize() NBPC
29664#     else /* no NBPC */
29665#      ifdef PAGESIZE
29666#       define getpagesize() PAGESIZE
29667#      endif /* PAGESIZE */
29668#     endif /* no NBPC */
29669#    endif /* no NBPG */
29670#   endif /* no EXEC_PAGESIZE */
29671#  else /* no HAVE_SYS_PARAM_H */
29672#   define getpagesize() 8192	/* punt totally */
29673#  endif /* no HAVE_SYS_PARAM_H */
29674# endif /* no _SC_PAGESIZE */
29675
29676#endif /* no HAVE_GETPAGESIZE */
29677
29678int
29679main ()
29680{
29681  char *data, *data2, *data3;
29682  int i, pagesize;
29683  int fd;
29684
29685  pagesize = getpagesize ();
29686
29687  /* First, make a file with some known garbage in it. */
29688  data = (char *) malloc (pagesize);
29689  if (!data)
29690    exit (1);
29691  for (i = 0; i < pagesize; ++i)
29692    *(data + i) = rand ();
29693  umask (0);
29694  fd = creat ("conftest.mmap", 0600);
29695  if (fd < 0)
29696    exit (1);
29697  if (write (fd, data, pagesize) != pagesize)
29698    exit (1);
29699  close (fd);
29700
29701  /* Next, try to mmap the file at a fixed address which already has
29702     something else allocated at it.  If we can, also make sure that
29703     we see the same garbage.  */
29704  fd = open ("conftest.mmap", O_RDWR);
29705  if (fd < 0)
29706    exit (1);
29707  data2 = (char *) malloc (2 * pagesize);
29708  if (!data2)
29709    exit (1);
29710  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29711  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29712		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
29713    exit (1);
29714  for (i = 0; i < pagesize; ++i)
29715    if (*(data + i) != *(data2 + i))
29716      exit (1);
29717
29718  /* Finally, make sure that changes to the mapped area do not
29719     percolate back to the file as seen by read().  (This is a bug on
29720     some variants of i386 svr4.0.)  */
29721  for (i = 0; i < pagesize; ++i)
29722    *(data2 + i) = *(data2 + i) + 1;
29723  data3 = (char *) malloc (pagesize);
29724  if (!data3)
29725    exit (1);
29726  if (read (fd, data3, pagesize) != pagesize)
29727    exit (1);
29728  for (i = 0; i < pagesize; ++i)
29729    if (*(data + i) != *(data3 + i))
29730      exit (1);
29731  close (fd);
29732  exit (0);
29733}
29734_ACEOF
29735rm -f conftest$ac_exeext
29736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29737  (eval $ac_link) 2>&5
29738  ac_status=$?
29739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29742  (eval $ac_try) 2>&5
29743  ac_status=$?
29744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29745  (exit $ac_status); }; }; then
29746  ac_cv_func_mmap_fixed_mapped=yes
29747else
29748  echo "$as_me: program exited with status $ac_status" >&5
29749echo "$as_me: failed program was:" >&5
29750sed 's/^/| /' conftest.$ac_ext >&5
29751
29752( exit $ac_status )
29753ac_cv_func_mmap_fixed_mapped=no
29754fi
29755rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29756fi
29757fi
29758echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29759echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29760if test $ac_cv_func_mmap_fixed_mapped = yes; then
29761
29762cat >>confdefs.h <<\_ACEOF
29763#define HAVE_MMAP 1
29764_ACEOF
29765
29766fi
29767rm -f conftest.mmap
29768
29769echo "$as_me:$LINENO: checking for mmap of files" >&5
29770echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29771if test "${ac_cv_func_mmap_file+set}" = set; then
29772  echo $ECHO_N "(cached) $ECHO_C" >&6
29773else
29774   ac_ext=c
29775ac_cpp='$CPP $CPPFLAGS'
29776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29778ac_compiler_gnu=$ac_cv_c_compiler_gnu
29779
29780  if test "$cross_compiling" = yes; then
29781  ac_cv_func_mmap_file=no
29782else
29783  cat >conftest.$ac_ext <<_ACEOF
29784
29785    /* confdefs.h.  */
29786_ACEOF
29787cat confdefs.h >>conftest.$ac_ext
29788cat >>conftest.$ac_ext <<_ACEOF
29789/* end confdefs.h.  */
29790
29791#include <sys/types.h>
29792#include <sys/mman.h>
29793#include <fcntl.h>
29794
29795int
29796main ()
29797{
29798
29799  int fd;
29800  fd = creat ("foo",0777);
29801  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29802  unlink ("foo");
29803  return (fd != (int) MAP_FAILED);
29804  ;
29805  return 0;
29806}
29807_ACEOF
29808rm -f conftest$ac_exeext
29809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29810  (eval $ac_link) 2>&5
29811  ac_status=$?
29812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29813  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29815  (eval $ac_try) 2>&5
29816  ac_status=$?
29817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818  (exit $ac_status); }; }; then
29819  ac_cv_func_mmap_file=yes
29820else
29821  echo "$as_me: program exited with status $ac_status" >&5
29822echo "$as_me: failed program was:" >&5
29823sed 's/^/| /' conftest.$ac_ext >&5
29824
29825( exit $ac_status )
29826ac_cv_func_mmap_file=no
29827fi
29828rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29829fi
29830  ac_ext=c
29831ac_cpp='$CPP $CPPFLAGS'
29832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29834ac_compiler_gnu=$ac_cv_c_compiler_gnu
29835
29836
29837fi
29838echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29839echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29840if test "$ac_cv_func_mmap_file" = yes; then
29841
29842cat >>confdefs.h <<\_ACEOF
29843#define HAVE_MMAP_FILE
29844_ACEOF
29845
29846   MMAP_FILE=yes
29847
29848fi
29849
29850echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
29851echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
29852if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
29853  echo $ECHO_N "(cached) $ECHO_C" >&6
29854else
29855  if test "$llvm_cv_os_type" == "Interix" ; then
29856   ac_cv_need_dev_zero_for_mmap=yes
29857 else
29858   ac_cv_need_dev_zero_for_mmap=no
29859 fi
29860
29861fi
29862echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
29863echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
29864if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
29865
29866cat >>confdefs.h <<\_ACEOF
29867#define NEED_DEV_ZERO_FOR_MMAP 1
29868_ACEOF
29869
29870fi
29871echo "$as_me:$LINENO: checking for mprotect" >&5
29872echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29873if test "${ac_cv_func_mprotect+set}" = set; then
29874  echo $ECHO_N "(cached) $ECHO_C" >&6
29875else
29876  cat >conftest.$ac_ext <<_ACEOF
29877/* confdefs.h.  */
29878_ACEOF
29879cat confdefs.h >>conftest.$ac_ext
29880cat >>conftest.$ac_ext <<_ACEOF
29881/* end confdefs.h.  */
29882/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29883   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29884#define mprotect innocuous_mprotect
29885
29886/* System header to define __stub macros and hopefully few prototypes,
29887    which can conflict with char mprotect (); below.
29888    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29889    <limits.h> exists even on freestanding compilers.  */
29890
29891#ifdef __STDC__
29892# include <limits.h>
29893#else
29894# include <assert.h>
29895#endif
29896
29897#undef mprotect
29898
29899/* Override any gcc2 internal prototype to avoid an error.  */
29900#ifdef __cplusplus
29901extern "C"
29902{
29903#endif
29904/* We use char because int might match the return type of a gcc2
29905   builtin and then its argument prototype would still apply.  */
29906char mprotect ();
29907/* The GNU C library defines this for functions which it implements
29908    to always fail with ENOSYS.  Some functions are actually named
29909    something starting with __ and the normal name is an alias.  */
29910#if defined (__stub_mprotect) || defined (__stub___mprotect)
29911choke me
29912#else
29913char (*f) () = mprotect;
29914#endif
29915#ifdef __cplusplus
29916}
29917#endif
29918
29919int
29920main ()
29921{
29922return f != mprotect;
29923  ;
29924  return 0;
29925}
29926_ACEOF
29927rm -f conftest.$ac_objext conftest$ac_exeext
29928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29929  (eval $ac_link) 2>conftest.er1
29930  ac_status=$?
29931  grep -v '^ *+' conftest.er1 >conftest.err
29932  rm -f conftest.er1
29933  cat conftest.err >&5
29934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935  (exit $ac_status); } &&
29936	 { ac_try='test -z "$ac_c_werror_flag"
29937			 || test ! -s conftest.err'
29938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29939  (eval $ac_try) 2>&5
29940  ac_status=$?
29941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942  (exit $ac_status); }; } &&
29943	 { ac_try='test -s conftest$ac_exeext'
29944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29945  (eval $ac_try) 2>&5
29946  ac_status=$?
29947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29948  (exit $ac_status); }; }; then
29949  ac_cv_func_mprotect=yes
29950else
29951  echo "$as_me: failed program was:" >&5
29952sed 's/^/| /' conftest.$ac_ext >&5
29953
29954ac_cv_func_mprotect=no
29955fi
29956rm -f conftest.err conftest.$ac_objext \
29957      conftest$ac_exeext conftest.$ac_ext
29958fi
29959echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29960echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29961if test $ac_cv_func_mprotect = yes; then
29962  :
29963else
29964  { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29965echo "$as_me: error: Function mprotect() required but not found" >&2;}
29966   { (exit 1); exit 1; }; }
29967fi
29968
29969
29970if test "$ac_cv_func_mmap_fixed_mapped" = "no"
29971then
29972  { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29973echo "$as_me: WARNING: mmap() required but not found" >&2;}
29974fi
29975if test "$ac_cv_func_mmap_file" = "no"
29976then
29977  { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29978echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
29979fi
29980
29981
29982echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29983echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
29984if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29985  echo $ECHO_N "(cached) $ECHO_C" >&6
29986else
29987  llvm_cv_llvmgcc_sanity="no"
29988if test -x "$LLVMGCC" ; then
29989  cp /dev/null conftest.c
29990  "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
29991  if test $? -eq 0 ; then
29992    llvm_cv_llvmgcc_sanity="yes"
29993  fi
29994  rm conftest.c
29995fi
29996fi
29997echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
29998echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
29999
30000if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30001  llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30002  LLVMCC1=$llvmcc1path
30003
30004  llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30005  LLVMCC1PLUS=$llvmcc1pluspath
30006
30007  llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30008  LLVMGCCDIR=$llvmgccdir
30009
30010fi
30011
30012SHLIBEXT=$libltdl_cv_shlibext
30013
30014
30015# Translate the various configuration directories and other basic
30016# information into substitutions that will end up in Makefile.config.in
30017# that these configured values can be used by the makefiles
30018eval LLVM_PREFIX="${prefix}";
30019eval LLVM_BINDIR="${prefix}/bin";
30020eval LLVM_LIBDIR="${prefix}/lib";
30021eval LLVM_DATADIR="${prefix}/share/llvm";
30022eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30023eval LLVM_ETCDIR="${prefix}/etc/llvm";
30024eval LLVM_INCLUDEDIR="${prefix}/include";
30025eval LLVM_INFODIR="${prefix}/info";
30026eval LLVM_MANDIR="${prefix}/man";
30027LLVM_CONFIGTIME=`date`
30028
30029
30030
30031
30032
30033
30034
30035
30036
30037
30038
30039# Place the various directores into the config.h file as #defines so that we
30040# can know about the installation paths within LLVM.
30041
30042cat >>confdefs.h <<_ACEOF
30043#define LLVM_PREFIX "$LLVM_PREFIX"
30044_ACEOF
30045
30046
30047cat >>confdefs.h <<_ACEOF
30048#define LLVM_BINDIR "$LLVM_BINDIR"
30049_ACEOF
30050
30051
30052cat >>confdefs.h <<_ACEOF
30053#define LLVM_LIBDIR "$LLVM_LIBDIR"
30054_ACEOF
30055
30056
30057cat >>confdefs.h <<_ACEOF
30058#define LLVM_DATADIR "$LLVM_DATADIR"
30059_ACEOF
30060
30061
30062cat >>confdefs.h <<_ACEOF
30063#define LLVM_DATADIR "$LLVM_DOCSDIR"
30064_ACEOF
30065
30066
30067cat >>confdefs.h <<_ACEOF
30068#define LLVM_ETCDIR "$LLVM_ETCDIR"
30069_ACEOF
30070
30071
30072cat >>confdefs.h <<_ACEOF
30073#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30074_ACEOF
30075
30076
30077cat >>confdefs.h <<_ACEOF
30078#define LLVM_INFODIR "$LLVM_INFODIR"
30079_ACEOF
30080
30081
30082cat >>confdefs.h <<_ACEOF
30083#define LLVM_MANDIR "$LLVM_MANDIR"
30084_ACEOF
30085
30086
30087cat >>confdefs.h <<_ACEOF
30088#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30089_ACEOF
30090
30091
30092
30093          ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30094
30095
30096          ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30097
30098          ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30099
30100          ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30101
30102          ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30103
30104          ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30105
30106
30107          ac_config_files="$ac_config_files Makefile.config"
30108
30109
30110                                        ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
30111
30112
30113          ac_config_files="$ac_config_files docs/doxygen.cfg"
30114
30115
30116          ac_config_commands="$ac_config_commands Makefile"
30117
30118
30119          ac_config_commands="$ac_config_commands Makefile.common"
30120
30121
30122          ac_config_commands="$ac_config_commands examples/Makefile"
30123
30124
30125          ac_config_commands="$ac_config_commands lib/Makefile"
30126
30127
30128          ac_config_commands="$ac_config_commands runtime/Makefile"
30129
30130
30131          ac_config_commands="$ac_config_commands test/Makefile"
30132
30133
30134          ac_config_commands="$ac_config_commands test/Makefile.tests"
30135
30136
30137          ac_config_commands="$ac_config_commands tools/Makefile"
30138
30139
30140          ac_config_commands="$ac_config_commands utils/Makefile"
30141
30142
30143          ac_config_commands="$ac_config_commands projects/Makefile"
30144
30145
30146
30147cat >confcache <<\_ACEOF
30148# This file is a shell script that caches the results of configure
30149# tests run on this system so they can be shared between configure
30150# scripts and configure runs, see configure's option --config-cache.
30151# It is not useful on other systems.  If it contains results you don't
30152# want to keep, you may remove or edit it.
30153#
30154# config.status only pays attention to the cache file if you give it
30155# the --recheck option to rerun configure.
30156#
30157# `ac_cv_env_foo' variables (set or unset) will be overridden when
30158# loading this file, other *unset* `ac_cv_foo' will be assigned the
30159# following values.
30160
30161_ACEOF
30162
30163# The following way of writing the cache mishandles newlines in values,
30164# but we know of no workaround that is simple, portable, and efficient.
30165# So, don't put newlines in cache variables' values.
30166# Ultrix sh set writes to stderr and can't be redirected directly,
30167# and sets the high bit in the cache file unless we assign to the vars.
30168{
30169  (set) 2>&1 |
30170    case `(ac_space=' '; set | grep ac_space) 2>&1` in
30171    *ac_space=\ *)
30172      # `set' does not quote correctly, so add quotes (double-quote
30173      # substitution turns \\\\ into \\, and sed turns \\ into \).
30174      sed -n \
30175	"s/'/'\\\\''/g;
30176	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30177      ;;
30178    *)
30179      # `set' quotes correctly as required by POSIX, so do not add quotes.
30180      sed -n \
30181	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30182      ;;
30183    esac;
30184} |
30185  sed '
30186     t clear
30187     : clear
30188     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30189     t end
30190     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30191     : end' >>confcache
30192if diff $cache_file confcache >/dev/null 2>&1; then :; else
30193  if test -w $cache_file; then
30194    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30195    cat confcache >$cache_file
30196  else
30197    echo "not updating unwritable cache $cache_file"
30198  fi
30199fi
30200rm -f confcache
30201
30202test "x$prefix" = xNONE && prefix=$ac_default_prefix
30203# Let make expand exec_prefix.
30204test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30205
30206# VPATH may cause trouble with some makes, so we remove $(srcdir),
30207# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30208# trailing colons and then remove the whole line if VPATH becomes empty
30209# (actually we leave an empty line to preserve line numbers).
30210if test "x$srcdir" = x.; then
30211  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
30212s/:*\$(srcdir):*/:/;
30213s/:*\${srcdir}:*/:/;
30214s/:*@srcdir@:*/:/;
30215s/^\([^=]*=[	 ]*\):*/\1/;
30216s/:*$//;
30217s/^[^=]*=[	 ]*$//;
30218}'
30219fi
30220
30221DEFS=-DHAVE_CONFIG_H
30222
30223ac_libobjs=
30224ac_ltlibobjs=
30225for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30226  # 1. Remove the extension, and $U if already installed.
30227  ac_i=`echo "$ac_i" |
30228	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30229  # 2. Add them.
30230  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30231  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30232done
30233LIBOBJS=$ac_libobjs
30234
30235LTLIBOBJS=$ac_ltlibobjs
30236
30237
30238if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30239  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30240Usually this means the macro was only invoked conditionally." >&5
30241echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30242Usually this means the macro was only invoked conditionally." >&2;}
30243   { (exit 1); exit 1; }; }
30244fi
30245if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30246  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30247Usually this means the macro was only invoked conditionally." >&5
30248echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30249Usually this means the macro was only invoked conditionally." >&2;}
30250   { (exit 1); exit 1; }; }
30251fi
30252
30253: ${CONFIG_STATUS=./config.status}
30254ac_clean_files_save=$ac_clean_files
30255ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30256{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30257echo "$as_me: creating $CONFIG_STATUS" >&6;}
30258cat >$CONFIG_STATUS <<_ACEOF
30259#! $SHELL
30260# Generated by $as_me.
30261# Run this file to recreate the current configuration.
30262# Compiler output produced by configure, useful for debugging
30263# configure, is in config.log if it exists.
30264
30265debug=false
30266ac_cs_recheck=false
30267ac_cs_silent=false
30268SHELL=\${CONFIG_SHELL-$SHELL}
30269_ACEOF
30270
30271cat >>$CONFIG_STATUS <<\_ACEOF
30272## --------------------- ##
30273## M4sh Initialization.  ##
30274## --------------------- ##
30275
30276# Be Bourne compatible
30277if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30278  emulate sh
30279  NULLCMD=:
30280  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30281  # is contrary to our usage.  Disable this feature.
30282  alias -g '${1+"$@"}'='"$@"'
30283elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30284  set -o posix
30285fi
30286DUALCASE=1; export DUALCASE # for MKS sh
30287
30288# Support unset when possible.
30289if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30290  as_unset=unset
30291else
30292  as_unset=false
30293fi
30294
30295
30296# Work around bugs in pre-3.0 UWIN ksh.
30297$as_unset ENV MAIL MAILPATH
30298PS1='$ '
30299PS2='> '
30300PS4='+ '
30301
30302# NLS nuisances.
30303for as_var in \
30304  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30305  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30306  LC_TELEPHONE LC_TIME
30307do
30308  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30309    eval $as_var=C; export $as_var
30310  else
30311    $as_unset $as_var
30312  fi
30313done
30314
30315# Required to use basename.
30316if expr a : '\(a\)' >/dev/null 2>&1; then
30317  as_expr=expr
30318else
30319  as_expr=false
30320fi
30321
30322if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30323  as_basename=basename
30324else
30325  as_basename=false
30326fi
30327
30328
30329# Name of the executable.
30330as_me=`$as_basename "$0" ||
30331$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30332	 X"$0" : 'X\(//\)$' \| \
30333	 X"$0" : 'X\(/\)$' \| \
30334	 .     : '\(.\)' 2>/dev/null ||
30335echo X/"$0" |
30336    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30337  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
30338  	  /^X\/\(\/\).*/{ s//\1/; q; }
30339  	  s/.*/./; q'`
30340
30341
30342# PATH needs CR, and LINENO needs CR and PATH.
30343# Avoid depending upon Character Ranges.
30344as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30345as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30346as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30347as_cr_digits='0123456789'
30348as_cr_alnum=$as_cr_Letters$as_cr_digits
30349
30350# The user is always right.
30351if test "${PATH_SEPARATOR+set}" != set; then
30352  echo "#! /bin/sh" >conf$$.sh
30353  echo  "exit 0"   >>conf$$.sh
30354  chmod +x conf$$.sh
30355  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30356    PATH_SEPARATOR=';'
30357  else
30358    PATH_SEPARATOR=:
30359  fi
30360  rm -f conf$$.sh
30361fi
30362
30363
30364  as_lineno_1=$LINENO
30365  as_lineno_2=$LINENO
30366  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30367  test "x$as_lineno_1" != "x$as_lineno_2" &&
30368  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30369  # Find who we are.  Look in the path if we contain no path at all
30370  # relative or not.
30371  case $0 in
30372    *[\\/]* ) as_myself=$0 ;;
30373    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30374for as_dir in $PATH
30375do
30376  IFS=$as_save_IFS
30377  test -z "$as_dir" && as_dir=.
30378  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30379done
30380
30381       ;;
30382  esac
30383  # We did not find ourselves, most probably we were run as `sh COMMAND'
30384  # in which case we are not to be found in the path.
30385  if test "x$as_myself" = x; then
30386    as_myself=$0
30387  fi
30388  if test ! -f "$as_myself"; then
30389    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30390echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30391   { (exit 1); exit 1; }; }
30392  fi
30393  case $CONFIG_SHELL in
30394  '')
30395    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30396for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30397do
30398  IFS=$as_save_IFS
30399  test -z "$as_dir" && as_dir=.
30400  for as_base in sh bash ksh sh5; do
30401	 case $as_dir in
30402	 /*)
30403	   if ("$as_dir/$as_base" -c '
30404  as_lineno_1=$LINENO
30405  as_lineno_2=$LINENO
30406  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30407  test "x$as_lineno_1" != "x$as_lineno_2" &&
30408  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30409	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30410	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30411	     CONFIG_SHELL=$as_dir/$as_base
30412	     export CONFIG_SHELL
30413	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30414	   fi;;
30415	 esac
30416       done
30417done
30418;;
30419  esac
30420
30421  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30422  # uniformly replaced by the line number.  The first 'sed' inserts a
30423  # line-number line before each line; the second 'sed' does the real
30424  # work.  The second script uses 'N' to pair each line-number line
30425  # with the numbered line, and appends trailing '-' during
30426  # substitution so that $LINENO is not a special case at line end.
30427  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30428  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30429  sed '=' <$as_myself |
30430    sed '
30431      N
30432      s,$,-,
30433      : loop
30434      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30435      t loop
30436      s,-$,,
30437      s,^['$as_cr_digits']*\n,,
30438    ' >$as_me.lineno &&
30439  chmod +x $as_me.lineno ||
30440    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30441echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30442   { (exit 1); exit 1; }; }
30443
30444  # Don't try to exec as it changes $[0], causing all sort of problems
30445  # (the dirname of $[0] is not the place where we might find the
30446  # original and so on.  Autoconf is especially sensible to this).
30447  . ./$as_me.lineno
30448  # Exit status is that of the last command.
30449  exit
30450}
30451
30452
30453case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30454  *c*,-n*) ECHO_N= ECHO_C='
30455' ECHO_T='	' ;;
30456  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30457  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30458esac
30459
30460if expr a : '\(a\)' >/dev/null 2>&1; then
30461  as_expr=expr
30462else
30463  as_expr=false
30464fi
30465
30466rm -f conf$$ conf$$.exe conf$$.file
30467echo >conf$$.file
30468if ln -s conf$$.file conf$$ 2>/dev/null; then
30469  # We could just check for DJGPP; but this test a) works b) is more generic
30470  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30471  if test -f conf$$.exe; then
30472    # Don't use ln at all; we don't have any links
30473    as_ln_s='cp -p'
30474  else
30475    as_ln_s='ln -s'
30476  fi
30477elif ln conf$$.file conf$$ 2>/dev/null; then
30478  as_ln_s=ln
30479else
30480  as_ln_s='cp -p'
30481fi
30482rm -f conf$$ conf$$.exe conf$$.file
30483
30484if mkdir -p . 2>/dev/null; then
30485  as_mkdir_p=:
30486else
30487  test -d ./-p && rmdir ./-p
30488  as_mkdir_p=false
30489fi
30490
30491as_executable_p="test -f"
30492
30493# Sed expression to map a string onto a valid CPP name.
30494as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30495
30496# Sed expression to map a string onto a valid variable name.
30497as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30498
30499
30500# IFS
30501# We need space, tab and new line, in precisely that order.
30502as_nl='
30503'
30504IFS=" 	$as_nl"
30505
30506# CDPATH.
30507$as_unset CDPATH
30508
30509exec 6>&1
30510
30511# Open the log real soon, to keep \$[0] and so on meaningful, and to
30512# report actual input values of CONFIG_FILES etc. instead of their
30513# values after options handling.  Logging --version etc. is OK.
30514exec 5>>config.log
30515{
30516  echo
30517  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30518## Running $as_me. ##
30519_ASBOX
30520} >&5
30521cat >&5 <<_CSEOF
30522
30523This file was extended by llvm $as_me 1.4, which was
30524generated by GNU Autoconf 2.59.  Invocation command line was
30525
30526  CONFIG_FILES    = $CONFIG_FILES
30527  CONFIG_HEADERS  = $CONFIG_HEADERS
30528  CONFIG_LINKS    = $CONFIG_LINKS
30529  CONFIG_COMMANDS = $CONFIG_COMMANDS
30530  $ $0 $@
30531
30532_CSEOF
30533echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30534echo >&5
30535_ACEOF
30536
30537# Files that config.status was made for.
30538if test -n "$ac_config_files"; then
30539  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30540fi
30541
30542if test -n "$ac_config_headers"; then
30543  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30544fi
30545
30546if test -n "$ac_config_links"; then
30547  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30548fi
30549
30550if test -n "$ac_config_commands"; then
30551  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30552fi
30553
30554cat >>$CONFIG_STATUS <<\_ACEOF
30555
30556ac_cs_usage="\
30557\`$as_me' instantiates files from templates according to the
30558current configuration.
30559
30560Usage: $0 [OPTIONS] [FILE]...
30561
30562  -h, --help       print this help, then exit
30563  -V, --version    print version number, then exit
30564  -q, --quiet      do not print progress messages
30565  -d, --debug      don't remove temporary files
30566      --recheck    update $as_me by reconfiguring in the same conditions
30567  --file=FILE[:TEMPLATE]
30568		   instantiate the configuration file FILE
30569  --header=FILE[:TEMPLATE]
30570		   instantiate the configuration header FILE
30571
30572Configuration files:
30573$config_files
30574
30575Configuration headers:
30576$config_headers
30577
30578Configuration commands:
30579$config_commands
30580
30581Report bugs to <bug-autoconf@gnu.org>."
30582_ACEOF
30583
30584cat >>$CONFIG_STATUS <<_ACEOF
30585ac_cs_version="\\
30586llvm config.status 1.4
30587configured by $0, generated by GNU Autoconf 2.59,
30588  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30589
30590Copyright (C) 2003 Free Software Foundation, Inc.
30591This config.status script is free software; the Free Software Foundation
30592gives unlimited permission to copy, distribute and modify it."
30593srcdir=$srcdir
30594INSTALL="$INSTALL"
30595_ACEOF
30596
30597cat >>$CONFIG_STATUS <<\_ACEOF
30598# If no file are specified by the user, then we need to provide default
30599# value.  By we need to know if files were specified by the user.
30600ac_need_defaults=:
30601while test $# != 0
30602do
30603  case $1 in
30604  --*=*)
30605    ac_option=`expr "x$1" : 'x\([^=]*\)='`
30606    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30607    ac_shift=:
30608    ;;
30609  -*)
30610    ac_option=$1
30611    ac_optarg=$2
30612    ac_shift=shift
30613    ;;
30614  *) # This is not an option, so the user has probably given explicit
30615     # arguments.
30616     ac_option=$1
30617     ac_need_defaults=false;;
30618  esac
30619
30620  case $ac_option in
30621  # Handling of the options.
30622_ACEOF
30623cat >>$CONFIG_STATUS <<\_ACEOF
30624  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30625    ac_cs_recheck=: ;;
30626  --version | --vers* | -V )
30627    echo "$ac_cs_version"; exit 0 ;;
30628  --he | --h)
30629    # Conflict between --help and --header
30630    { { echo "$as_me:$LINENO: error: ambiguous option: $1
30631Try \`$0 --help' for more information." >&5
30632echo "$as_me: error: ambiguous option: $1
30633Try \`$0 --help' for more information." >&2;}
30634   { (exit 1); exit 1; }; };;
30635  --help | --hel | -h )
30636    echo "$ac_cs_usage"; exit 0 ;;
30637  --debug | --d* | -d )
30638    debug=: ;;
30639  --file | --fil | --fi | --f )
30640    $ac_shift
30641    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30642    ac_need_defaults=false;;
30643  --header | --heade | --head | --hea )
30644    $ac_shift
30645    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30646    ac_need_defaults=false;;
30647  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30648  | -silent | --silent | --silen | --sile | --sil | --si | --s)
30649    ac_cs_silent=: ;;
30650
30651  # This is an error.
30652  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30653Try \`$0 --help' for more information." >&5
30654echo "$as_me: error: unrecognized option: $1
30655Try \`$0 --help' for more information." >&2;}
30656   { (exit 1); exit 1; }; } ;;
30657
30658  *) ac_config_targets="$ac_config_targets $1" ;;
30659
30660  esac
30661  shift
30662done
30663
30664ac_configure_extra_args=
30665
30666if $ac_cs_silent; then
30667  exec 6>/dev/null
30668  ac_configure_extra_args="$ac_configure_extra_args --silent"
30669fi
30670
30671_ACEOF
30672cat >>$CONFIG_STATUS <<_ACEOF
30673if \$ac_cs_recheck; then
30674  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30675  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30676fi
30677
30678_ACEOF
30679
30680cat >>$CONFIG_STATUS <<_ACEOF
30681#
30682# INIT-COMMANDS section.
30683#
30684
30685${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30686${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
30687${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
30688${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
30689${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
30690${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30691${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
30692${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
30693${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
30694${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
30695
30696_ACEOF
30697
30698
30699
30700cat >>$CONFIG_STATUS <<\_ACEOF
30701for ac_config_target in $ac_config_targets
30702do
30703  case "$ac_config_target" in
30704  # Handling of arguments.
30705  "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30706  "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30707  "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30708  "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30709  "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30710  "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30711  "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30712  "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30713  "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30714  "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30715  "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30716  "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30717  "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30718  "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30719  "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30720  "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30721  "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30722  "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30723  "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30724  "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30725  "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30726  "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30727  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30728echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30729   { (exit 1); exit 1; }; };;
30730  esac
30731done
30732
30733# If the user did not use the arguments to specify the items to instantiate,
30734# then the envvar interface is used.  Set only those that are not.
30735# We use the long form for the default assignment because of an extremely
30736# bizarre bug on SunOS 4.1.3.
30737if $ac_need_defaults; then
30738  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30739  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30740  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30741fi
30742
30743# Have a temporary directory for convenience.  Make it in the build tree
30744# simply because there is no reason to put it here, and in addition,
30745# creating and moving files from /tmp can sometimes cause problems.
30746# Create a temporary directory, and hook for its removal unless debugging.
30747$debug ||
30748{
30749  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30750  trap '{ (exit 1); exit 1; }' 1 2 13 15
30751}
30752
30753# Create a (secure) tmp directory for tmp files.
30754
30755{
30756  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30757  test -n "$tmp" && test -d "$tmp"
30758}  ||
30759{
30760  tmp=./confstat$$-$RANDOM
30761  (umask 077 && mkdir $tmp)
30762} ||
30763{
30764   echo "$me: cannot create a temporary directory in ." >&2
30765   { (exit 1); exit 1; }
30766}
30767
30768_ACEOF
30769
30770cat >>$CONFIG_STATUS <<_ACEOF
30771
30772#
30773# CONFIG_FILES section.
30774#
30775
30776# No need to generate the scripts if there are no CONFIG_FILES.
30777# This happens for instance when ./config.status config.h
30778if test -n "\$CONFIG_FILES"; then
30779  # Protect against being on the right side of a sed subst in config.status.
30780  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30781   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30782s,@SHELL@,$SHELL,;t t
30783s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30784s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30785s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30786s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30787s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30788s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30789s,@exec_prefix@,$exec_prefix,;t t
30790s,@prefix@,$prefix,;t t
30791s,@program_transform_name@,$program_transform_name,;t t
30792s,@bindir@,$bindir,;t t
30793s,@sbindir@,$sbindir,;t t
30794s,@libexecdir@,$libexecdir,;t t
30795s,@datadir@,$datadir,;t t
30796s,@sysconfdir@,$sysconfdir,;t t
30797s,@sharedstatedir@,$sharedstatedir,;t t
30798s,@localstatedir@,$localstatedir,;t t
30799s,@libdir@,$libdir,;t t
30800s,@includedir@,$includedir,;t t
30801s,@oldincludedir@,$oldincludedir,;t t
30802s,@infodir@,$infodir,;t t
30803s,@mandir@,$mandir,;t t
30804s,@build_alias@,$build_alias,;t t
30805s,@host_alias@,$host_alias,;t t
30806s,@target_alias@,$target_alias,;t t
30807s,@DEFS@,$DEFS,;t t
30808s,@ECHO_C@,$ECHO_C,;t t
30809s,@ECHO_N@,$ECHO_N,;t t
30810s,@ECHO_T@,$ECHO_T,;t t
30811s,@LIBS@,$LIBS,;t t
30812s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30813s,@subdirs@,$subdirs,;t t
30814s,@build@,$build,;t t
30815s,@build_cpu@,$build_cpu,;t t
30816s,@build_vendor@,$build_vendor,;t t
30817s,@build_os@,$build_os,;t t
30818s,@host@,$host,;t t
30819s,@host_cpu@,$host_cpu,;t t
30820s,@host_vendor@,$host_vendor,;t t
30821s,@host_os@,$host_os,;t t
30822s,@target@,$target,;t t
30823s,@target_cpu@,$target_cpu,;t t
30824s,@target_vendor@,$target_vendor,;t t
30825s,@target_os@,$target_os,;t t
30826s,@OS@,$OS,;t t
30827s,@ARCH@,$ARCH,;t t
30828s,@ENDIAN@,$ENDIAN,;t t
30829s,@CC@,$CC,;t t
30830s,@CFLAGS@,$CFLAGS,;t t
30831s,@LDFLAGS@,$LDFLAGS,;t t
30832s,@CPPFLAGS@,$CPPFLAGS,;t t
30833s,@ac_ct_CC@,$ac_ct_CC,;t t
30834s,@EXEEXT@,$EXEEXT,;t t
30835s,@OBJEXT@,$OBJEXT,;t t
30836s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30837s,@JIT@,$JIT,;t t
30838s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
30839s,@CPP@,$CPP,;t t
30840s,@CXX@,$CXX,;t t
30841s,@CXXFLAGS@,$CXXFLAGS,;t t
30842s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30843s,@LEX@,$LEX,;t t
30844s,@LEXLIB@,$LEXLIB,;t t
30845s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
30846s,@FLEX@,$FLEX,;t t
30847s,@YACC@,$YACC,;t t
30848s,@BISON@,$BISON,;t t
30849s,@ifGNUmake@,$ifGNUmake,;t t
30850s,@LN_S@,$LN_S,;t t
30851s,@CMP@,$CMP,;t t
30852s,@CP@,$CP,;t t
30853s,@DATE@,$DATE,;t t
30854s,@FIND@,$FIND,;t t
30855s,@GREP@,$GREP,;t t
30856s,@MKDIR@,$MKDIR,;t t
30857s,@MV@,$MV,;t t
30858s,@PAX@,$PAX,;t t
30859s,@RANLIB@,$RANLIB,;t t
30860s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30861s,@RM@,$RM,;t t
30862s,@SED@,$SED,;t t
30863s,@TAR@,$TAR,;t t
30864s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30865s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30866s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30867s,@BZIP2@,$BZIP2,;t t
30868s,@DOT@,$DOT,;t t
30869s,@DOXYGEN@,$DOXYGEN,;t t
30870s,@ETAGS@,$ETAGS,;t t
30871s,@GROFF@,$GROFF,;t t
30872s,@GZIP@,$GZIP,;t t
30873s,@POD2HTML@,$POD2HTML,;t t
30874s,@POD2MAN@,$POD2MAN,;t t
30875s,@RUNTEST@,$RUNTEST,;t t
30876s,@TCLSH@,$TCLSH,;t t
30877s,@ZIP@,$ZIP,;t t
30878s,@EGREP@,$EGREP,;t t
30879s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30880s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30881s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30882s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30883s,@LIBADD_DL@,$LIBADD_DL,;t t
30884s,@ECHO@,$ECHO,;t t
30885s,@AR@,$AR,;t t
30886s,@ac_ct_AR@,$ac_ct_AR,;t t
30887s,@STRIP@,$STRIP,;t t
30888s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30889s,@CXXCPP@,$CXXCPP,;t t
30890s,@F77@,$F77,;t t
30891s,@FFLAGS@,$FFLAGS,;t t
30892s,@ac_ct_F77@,$ac_ct_F77,;t t
30893s,@LIBTOOL@,$LIBTOOL,;t t
30894s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
30895s,@LLVMGCC@,$LLVMGCC,;t t
30896s,@LLVMGXX@,$LLVMGXX,;t t
30897s,@ALLOCA@,$ALLOCA,;t t
30898s,@MMAP_FILE@,$MMAP_FILE,;t t
30899s,@LLVMCC1@,$LLVMCC1,;t t
30900s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
30901s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
30902s,@SHLIBEXT@,$SHLIBEXT,;t t
30903s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30904s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30905s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30906s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30907s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30908s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30909s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30910s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30911s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30912s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
30913s,@LIBOBJS@,$LIBOBJS,;t t
30914s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30915CEOF
30916
30917_ACEOF
30918
30919  cat >>$CONFIG_STATUS <<\_ACEOF
30920  # Split the substitutions into bite-sized pieces for seds with
30921  # small command number limits, like on Digital OSF/1 and HP-UX.
30922  ac_max_sed_lines=48
30923  ac_sed_frag=1 # Number of current file.
30924  ac_beg=1 # First line for current file.
30925  ac_end=$ac_max_sed_lines # Line after last line for current file.
30926  ac_more_lines=:
30927  ac_sed_cmds=
30928  while $ac_more_lines; do
30929    if test $ac_beg -gt 1; then
30930      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30931    else
30932      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30933    fi
30934    if test ! -s $tmp/subs.frag; then
30935      ac_more_lines=false
30936    else
30937      # The purpose of the label and of the branching condition is to
30938      # speed up the sed processing (if there are no `@' at all, there
30939      # is no need to browse any of the substitutions).
30940      # These are the two extra sed commands mentioned above.
30941      (echo ':t
30942  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30943      if test -z "$ac_sed_cmds"; then
30944	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30945      else
30946	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30947      fi
30948      ac_sed_frag=`expr $ac_sed_frag + 1`
30949      ac_beg=$ac_end
30950      ac_end=`expr $ac_end + $ac_max_sed_lines`
30951    fi
30952  done
30953  if test -z "$ac_sed_cmds"; then
30954    ac_sed_cmds=cat
30955  fi
30956fi # test -n "$CONFIG_FILES"
30957
30958_ACEOF
30959cat >>$CONFIG_STATUS <<\_ACEOF
30960for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30961  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30962  case $ac_file in
30963  - | *:- | *:-:* ) # input from stdin
30964	cat >$tmp/stdin
30965	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30966	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30967  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30968	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30969  * )   ac_file_in=$ac_file.in ;;
30970  esac
30971
30972  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30973  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30974$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30975	 X"$ac_file" : 'X\(//\)[^/]' \| \
30976	 X"$ac_file" : 'X\(//\)$' \| \
30977	 X"$ac_file" : 'X\(/\)' \| \
30978	 .     : '\(.\)' 2>/dev/null ||
30979echo X"$ac_file" |
30980    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30981  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30982  	  /^X\(\/\/\)$/{ s//\1/; q; }
30983  	  /^X\(\/\).*/{ s//\1/; q; }
30984  	  s/.*/./; q'`
30985  { if $as_mkdir_p; then
30986    mkdir -p "$ac_dir"
30987  else
30988    as_dir="$ac_dir"
30989    as_dirs=
30990    while test ! -d "$as_dir"; do
30991      as_dirs="$as_dir $as_dirs"
30992      as_dir=`(dirname "$as_dir") 2>/dev/null ||
30993$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30994	 X"$as_dir" : 'X\(//\)[^/]' \| \
30995	 X"$as_dir" : 'X\(//\)$' \| \
30996	 X"$as_dir" : 'X\(/\)' \| \
30997	 .     : '\(.\)' 2>/dev/null ||
30998echo X"$as_dir" |
30999    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31000  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31001  	  /^X\(\/\/\)$/{ s//\1/; q; }
31002  	  /^X\(\/\).*/{ s//\1/; q; }
31003  	  s/.*/./; q'`
31004    done
31005    test ! -n "$as_dirs" || mkdir $as_dirs
31006  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31007echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31008   { (exit 1); exit 1; }; }; }
31009
31010  ac_builddir=.
31011
31012if test "$ac_dir" != .; then
31013  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31014  # A "../" for each directory in $ac_dir_suffix.
31015  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31016else
31017  ac_dir_suffix= ac_top_builddir=
31018fi
31019
31020case $srcdir in
31021  .)  # No --srcdir option.  We are building in place.
31022    ac_srcdir=.
31023    if test -z "$ac_top_builddir"; then
31024       ac_top_srcdir=.
31025    else
31026       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31027    fi ;;
31028  [\\/]* | ?:[\\/]* )  # Absolute path.
31029    ac_srcdir=$srcdir$ac_dir_suffix;
31030    ac_top_srcdir=$srcdir ;;
31031  *) # Relative path.
31032    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31033    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31034esac
31035
31036# Do not use `cd foo && pwd` to compute absolute paths, because
31037# the directories may not exist.
31038case `pwd` in
31039.) ac_abs_builddir="$ac_dir";;
31040*)
31041  case "$ac_dir" in
31042  .) ac_abs_builddir=`pwd`;;
31043  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31044  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31045  esac;;
31046esac
31047case $ac_abs_builddir in
31048.) ac_abs_top_builddir=${ac_top_builddir}.;;
31049*)
31050  case ${ac_top_builddir}. in
31051  .) ac_abs_top_builddir=$ac_abs_builddir;;
31052  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31053  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31054  esac;;
31055esac
31056case $ac_abs_builddir in
31057.) ac_abs_srcdir=$ac_srcdir;;
31058*)
31059  case $ac_srcdir in
31060  .) ac_abs_srcdir=$ac_abs_builddir;;
31061  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31062  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31063  esac;;
31064esac
31065case $ac_abs_builddir in
31066.) ac_abs_top_srcdir=$ac_top_srcdir;;
31067*)
31068  case $ac_top_srcdir in
31069  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31070  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31071  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31072  esac;;
31073esac
31074
31075
31076  case $INSTALL in
31077  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31078  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31079  esac
31080
31081  if test x"$ac_file" != x-; then
31082    { echo "$as_me:$LINENO: creating $ac_file" >&5
31083echo "$as_me: creating $ac_file" >&6;}
31084    rm -f "$ac_file"
31085  fi
31086  # Let's still pretend it is `configure' which instantiates (i.e., don't
31087  # use $as_me), people would be surprised to read:
31088  #    /* config.h.  Generated by config.status.  */
31089  if test x"$ac_file" = x-; then
31090    configure_input=
31091  else
31092    configure_input="$ac_file.  "
31093  fi
31094  configure_input=$configure_input"Generated from `echo $ac_file_in |
31095				     sed 's,.*/,,'` by configure."
31096
31097  # First look for the input files in the build tree, otherwise in the
31098  # src tree.
31099  ac_file_inputs=`IFS=:
31100    for f in $ac_file_in; do
31101      case $f in
31102      -) echo $tmp/stdin ;;
31103      [\\/$]*)
31104	 # Absolute (can't be DOS-style, as IFS=:)
31105	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31106echo "$as_me: error: cannot find input file: $f" >&2;}
31107   { (exit 1); exit 1; }; }
31108	 echo "$f";;
31109      *) # Relative
31110	 if test -f "$f"; then
31111	   # Build tree
31112	   echo "$f"
31113	 elif test -f "$srcdir/$f"; then
31114	   # Source tree
31115	   echo "$srcdir/$f"
31116	 else
31117	   # /dev/null tree
31118	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31119echo "$as_me: error: cannot find input file: $f" >&2;}
31120   { (exit 1); exit 1; }; }
31121	 fi;;
31122      esac
31123    done` || { (exit 1); exit 1; }
31124_ACEOF
31125cat >>$CONFIG_STATUS <<_ACEOF
31126  sed "$ac_vpsub
31127$extrasub
31128_ACEOF
31129cat >>$CONFIG_STATUS <<\_ACEOF
31130:t
31131/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31132s,@configure_input@,$configure_input,;t t
31133s,@srcdir@,$ac_srcdir,;t t
31134s,@abs_srcdir@,$ac_abs_srcdir,;t t
31135s,@top_srcdir@,$ac_top_srcdir,;t t
31136s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31137s,@builddir@,$ac_builddir,;t t
31138s,@abs_builddir@,$ac_abs_builddir,;t t
31139s,@top_builddir@,$ac_top_builddir,;t t
31140s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31141s,@INSTALL@,$ac_INSTALL,;t t
31142" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31143  rm -f $tmp/stdin
31144  if test x"$ac_file" != x-; then
31145    mv $tmp/out $ac_file
31146  else
31147    cat $tmp/out
31148    rm -f $tmp/out
31149  fi
31150
31151done
31152_ACEOF
31153cat >>$CONFIG_STATUS <<\_ACEOF
31154
31155#
31156# CONFIG_HEADER section.
31157#
31158
31159# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31160# NAME is the cpp macro being defined and VALUE is the value it is being given.
31161#
31162# ac_d sets the value in "#define NAME VALUE" lines.
31163ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
31164ac_dB='[	 ].*$,\1#\2'
31165ac_dC=' '
31166ac_dD=',;t'
31167# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31168ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
31169ac_uB='$,\1#\2define\3'
31170ac_uC=' '
31171ac_uD=',;t'
31172
31173for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31174  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31175  case $ac_file in
31176  - | *:- | *:-:* ) # input from stdin
31177	cat >$tmp/stdin
31178	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31179	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31180  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31181	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31182  * )   ac_file_in=$ac_file.in ;;
31183  esac
31184
31185  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31186echo "$as_me: creating $ac_file" >&6;}
31187
31188  # First look for the input files in the build tree, otherwise in the
31189  # src tree.
31190  ac_file_inputs=`IFS=:
31191    for f in $ac_file_in; do
31192      case $f in
31193      -) echo $tmp/stdin ;;
31194      [\\/$]*)
31195	 # Absolute (can't be DOS-style, as IFS=:)
31196	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31197echo "$as_me: error: cannot find input file: $f" >&2;}
31198   { (exit 1); exit 1; }; }
31199	 # Do quote $f, to prevent DOS paths from being IFS'd.
31200	 echo "$f";;
31201      *) # Relative
31202	 if test -f "$f"; then
31203	   # Build tree
31204	   echo "$f"
31205	 elif test -f "$srcdir/$f"; then
31206	   # Source tree
31207	   echo "$srcdir/$f"
31208	 else
31209	   # /dev/null tree
31210	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31211echo "$as_me: error: cannot find input file: $f" >&2;}
31212   { (exit 1); exit 1; }; }
31213	 fi;;
31214      esac
31215    done` || { (exit 1); exit 1; }
31216  # Remove the trailing spaces.
31217  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
31218
31219_ACEOF
31220
31221# Transform confdefs.h into two sed scripts, `conftest.defines' and
31222# `conftest.undefs', that substitutes the proper values into
31223# config.h.in to produce config.h.  The first handles `#define'
31224# templates, and the second `#undef' templates.
31225# And first: Protect against being on the right side of a sed subst in
31226# config.status.  Protect against being in an unquoted here document
31227# in config.status.
31228rm -f conftest.defines conftest.undefs
31229# Using a here document instead of a string reduces the quoting nightmare.
31230# Putting comments in sed scripts is not portable.
31231#
31232# `end' is used to avoid that the second main sed command (meant for
31233# 0-ary CPP macros) applies to n-ary macro definitions.
31234# See the Autoconf documentation for `clear'.
31235cat >confdef2sed.sed <<\_ACEOF
31236s/[\\&,]/\\&/g
31237s,[\\$`],\\&,g
31238t clear
31239: clear
31240s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31241t end
31242s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31243: end
31244_ACEOF
31245# If some macros were called several times there might be several times
31246# the same #defines, which is useless.  Nevertheless, we may not want to
31247# sort them, since we want the *last* AC-DEFINE to be honored.
31248uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31249sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31250rm -f confdef2sed.sed
31251
31252# This sed command replaces #undef with comments.  This is necessary, for
31253# example, in the case of _POSIX_SOURCE, which is predefined and required
31254# on some systems where configure will not decide to define it.
31255cat >>conftest.undefs <<\_ACEOF
31256s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31257_ACEOF
31258
31259# Break up conftest.defines because some shells have a limit on the size
31260# of here documents, and old seds have small limits too (100 cmds).
31261echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31262echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31263echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31264echo '  :' >>$CONFIG_STATUS
31265rm -f conftest.tail
31266while grep . conftest.defines >/dev/null
31267do
31268  # Write a limited-size here document to $tmp/defines.sed.
31269  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31270  # Speed up: don't consider the non `#define' lines.
31271  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
31272  # Work around the forget-to-reset-the-flag bug.
31273  echo 't clr' >>$CONFIG_STATUS
31274  echo ': clr' >>$CONFIG_STATUS
31275  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31276  echo 'CEOF
31277  sed -f $tmp/defines.sed $tmp/in >$tmp/out
31278  rm -f $tmp/in
31279  mv $tmp/out $tmp/in
31280' >>$CONFIG_STATUS
31281  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31282  rm -f conftest.defines
31283  mv conftest.tail conftest.defines
31284done
31285rm -f conftest.defines
31286echo '  fi # grep' >>$CONFIG_STATUS
31287echo >>$CONFIG_STATUS
31288
31289# Break up conftest.undefs because some shells have a limit on the size
31290# of here documents, and old seds have small limits too (100 cmds).
31291echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31292rm -f conftest.tail
31293while grep . conftest.undefs >/dev/null
31294do
31295  # Write a limited-size here document to $tmp/undefs.sed.
31296  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31297  # Speed up: don't consider the non `#undef'
31298  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
31299  # Work around the forget-to-reset-the-flag bug.
31300  echo 't clr' >>$CONFIG_STATUS
31301  echo ': clr' >>$CONFIG_STATUS
31302  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31303  echo 'CEOF
31304  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31305  rm -f $tmp/in
31306  mv $tmp/out $tmp/in
31307' >>$CONFIG_STATUS
31308  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31309  rm -f conftest.undefs
31310  mv conftest.tail conftest.undefs
31311done
31312rm -f conftest.undefs
31313
31314cat >>$CONFIG_STATUS <<\_ACEOF
31315  # Let's still pretend it is `configure' which instantiates (i.e., don't
31316  # use $as_me), people would be surprised to read:
31317  #    /* config.h.  Generated by config.status.  */
31318  if test x"$ac_file" = x-; then
31319    echo "/* Generated by configure.  */" >$tmp/config.h
31320  else
31321    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31322  fi
31323  cat $tmp/in >>$tmp/config.h
31324  rm -f $tmp/in
31325  if test x"$ac_file" != x-; then
31326    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31327      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31328echo "$as_me: $ac_file is unchanged" >&6;}
31329    else
31330      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31331$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31332	 X"$ac_file" : 'X\(//\)[^/]' \| \
31333	 X"$ac_file" : 'X\(//\)$' \| \
31334	 X"$ac_file" : 'X\(/\)' \| \
31335	 .     : '\(.\)' 2>/dev/null ||
31336echo X"$ac_file" |
31337    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31338  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31339  	  /^X\(\/\/\)$/{ s//\1/; q; }
31340  	  /^X\(\/\).*/{ s//\1/; q; }
31341  	  s/.*/./; q'`
31342      { if $as_mkdir_p; then
31343    mkdir -p "$ac_dir"
31344  else
31345    as_dir="$ac_dir"
31346    as_dirs=
31347    while test ! -d "$as_dir"; do
31348      as_dirs="$as_dir $as_dirs"
31349      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31350$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31351	 X"$as_dir" : 'X\(//\)[^/]' \| \
31352	 X"$as_dir" : 'X\(//\)$' \| \
31353	 X"$as_dir" : 'X\(/\)' \| \
31354	 .     : '\(.\)' 2>/dev/null ||
31355echo X"$as_dir" |
31356    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31357  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31358  	  /^X\(\/\/\)$/{ s//\1/; q; }
31359  	  /^X\(\/\).*/{ s//\1/; q; }
31360  	  s/.*/./; q'`
31361    done
31362    test ! -n "$as_dirs" || mkdir $as_dirs
31363  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31364echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31365   { (exit 1); exit 1; }; }; }
31366
31367      rm -f $ac_file
31368      mv $tmp/config.h $ac_file
31369    fi
31370  else
31371    cat $tmp/config.h
31372    rm -f $tmp/config.h
31373  fi
31374done
31375_ACEOF
31376cat >>$CONFIG_STATUS <<\_ACEOF
31377
31378#
31379# CONFIG_COMMANDS section.
31380#
31381for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31382  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31383  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31384  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31385$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31386	 X"$ac_dest" : 'X\(//\)[^/]' \| \
31387	 X"$ac_dest" : 'X\(//\)$' \| \
31388	 X"$ac_dest" : 'X\(/\)' \| \
31389	 .     : '\(.\)' 2>/dev/null ||
31390echo X"$ac_dest" |
31391    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31392  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31393  	  /^X\(\/\/\)$/{ s//\1/; q; }
31394  	  /^X\(\/\).*/{ s//\1/; q; }
31395  	  s/.*/./; q'`
31396  { if $as_mkdir_p; then
31397    mkdir -p "$ac_dir"
31398  else
31399    as_dir="$ac_dir"
31400    as_dirs=
31401    while test ! -d "$as_dir"; do
31402      as_dirs="$as_dir $as_dirs"
31403      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31404$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31405	 X"$as_dir" : 'X\(//\)[^/]' \| \
31406	 X"$as_dir" : 'X\(//\)$' \| \
31407	 X"$as_dir" : 'X\(/\)' \| \
31408	 .     : '\(.\)' 2>/dev/null ||
31409echo X"$as_dir" |
31410    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31411  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31412  	  /^X\(\/\/\)$/{ s//\1/; q; }
31413  	  /^X\(\/\).*/{ s//\1/; q; }
31414  	  s/.*/./; q'`
31415    done
31416    test ! -n "$as_dirs" || mkdir $as_dirs
31417  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31418echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31419   { (exit 1); exit 1; }; }; }
31420
31421  ac_builddir=.
31422
31423if test "$ac_dir" != .; then
31424  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31425  # A "../" for each directory in $ac_dir_suffix.
31426  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31427else
31428  ac_dir_suffix= ac_top_builddir=
31429fi
31430
31431case $srcdir in
31432  .)  # No --srcdir option.  We are building in place.
31433    ac_srcdir=.
31434    if test -z "$ac_top_builddir"; then
31435       ac_top_srcdir=.
31436    else
31437       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31438    fi ;;
31439  [\\/]* | ?:[\\/]* )  # Absolute path.
31440    ac_srcdir=$srcdir$ac_dir_suffix;
31441    ac_top_srcdir=$srcdir ;;
31442  *) # Relative path.
31443    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31444    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31445esac
31446
31447# Do not use `cd foo && pwd` to compute absolute paths, because
31448# the directories may not exist.
31449case `pwd` in
31450.) ac_abs_builddir="$ac_dir";;
31451*)
31452  case "$ac_dir" in
31453  .) ac_abs_builddir=`pwd`;;
31454  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31455  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31456  esac;;
31457esac
31458case $ac_abs_builddir in
31459.) ac_abs_top_builddir=${ac_top_builddir}.;;
31460*)
31461  case ${ac_top_builddir}. in
31462  .) ac_abs_top_builddir=$ac_abs_builddir;;
31463  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31464  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31465  esac;;
31466esac
31467case $ac_abs_builddir in
31468.) ac_abs_srcdir=$ac_srcdir;;
31469*)
31470  case $ac_srcdir in
31471  .) ac_abs_srcdir=$ac_abs_builddir;;
31472  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31473  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31474  esac;;
31475esac
31476case $ac_abs_builddir in
31477.) ac_abs_top_srcdir=$ac_top_srcdir;;
31478*)
31479  case $ac_top_srcdir in
31480  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31481  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31482  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31483  esac;;
31484esac
31485
31486
31487  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31488echo "$as_me: executing $ac_dest commands" >&6;}
31489  case $ac_dest in
31490    Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31491    Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31492    examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31493    lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31494    runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31495    test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31496    test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31497    tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31498    utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31499    projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31500  esac
31501done
31502_ACEOF
31503
31504cat >>$CONFIG_STATUS <<\_ACEOF
31505
31506{ (exit 0); exit 0; }
31507_ACEOF
31508chmod +x $CONFIG_STATUS
31509ac_clean_files=$ac_clean_files_save
31510
31511
31512# configure is writing to config.log, and then calls config.status.
31513# config.status does its own redirection, appending to config.log.
31514# Unfortunately, on DOS this fails, as config.log is still kept open
31515# by configure, so config.status won't be able to write to it; its
31516# output is simply discarded.  So we exec the FD to /dev/null,
31517# effectively closing config.log, so it can be properly (re)opened and
31518# appended to by config.status.  When coming back to configure, we
31519# need to make the FD available again.
31520if test "$no_create" != yes; then
31521  ac_cs_success=:
31522  ac_config_status_args=
31523  test "$silent" = yes &&
31524    ac_config_status_args="$ac_config_status_args --quiet"
31525  exec 5>/dev/null
31526  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31527  exec 5>>config.log
31528  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31529  # would make configure fail if this is the last instruction.
31530  $ac_cs_success || { (exit 1); exit 1; }
31531fi
31532
31533#
31534# CONFIG_SUBDIRS section.
31535#
31536if test "$no_recursion" != yes; then
31537
31538  # Remove --cache-file and --srcdir arguments so they do not pile up.
31539  ac_sub_configure_args=
31540  ac_prev=
31541  for ac_arg in $ac_configure_args; do
31542    if test -n "$ac_prev"; then
31543      ac_prev=
31544      continue
31545    fi
31546    case $ac_arg in
31547    -cache-file | --cache-file | --cache-fil | --cache-fi \
31548    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31549      ac_prev=cache_file ;;
31550    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31551    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31552    | --c=*)
31553      ;;
31554    --config-cache | -C)
31555      ;;
31556    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31557      ac_prev=srcdir ;;
31558    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31559      ;;
31560    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31561      ac_prev=prefix ;;
31562    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31563      ;;
31564    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31565    esac
31566  done
31567
31568  # Always prepend --prefix to ensure using the same prefix
31569  # in subdir configurations.
31570  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31571
31572  ac_popdir=`pwd`
31573  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31574
31575    # Do not complain, so a configure script can configure whichever
31576    # parts of a large source tree are present.
31577    test -d $srcdir/$ac_dir || continue
31578
31579    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31580echo "$as_me: configuring in $ac_dir" >&6;}
31581    { if $as_mkdir_p; then
31582    mkdir -p "$ac_dir"
31583  else
31584    as_dir="$ac_dir"
31585    as_dirs=
31586    while test ! -d "$as_dir"; do
31587      as_dirs="$as_dir $as_dirs"
31588      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31589$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31590	 X"$as_dir" : 'X\(//\)[^/]' \| \
31591	 X"$as_dir" : 'X\(//\)$' \| \
31592	 X"$as_dir" : 'X\(/\)' \| \
31593	 .     : '\(.\)' 2>/dev/null ||
31594echo X"$as_dir" |
31595    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31596  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31597  	  /^X\(\/\/\)$/{ s//\1/; q; }
31598  	  /^X\(\/\).*/{ s//\1/; q; }
31599  	  s/.*/./; q'`
31600    done
31601    test ! -n "$as_dirs" || mkdir $as_dirs
31602  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31603echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31604   { (exit 1); exit 1; }; }; }
31605
31606    ac_builddir=.
31607
31608if test "$ac_dir" != .; then
31609  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31610  # A "../" for each directory in $ac_dir_suffix.
31611  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31612else
31613  ac_dir_suffix= ac_top_builddir=
31614fi
31615
31616case $srcdir in
31617  .)  # No --srcdir option.  We are building in place.
31618    ac_srcdir=.
31619    if test -z "$ac_top_builddir"; then
31620       ac_top_srcdir=.
31621    else
31622       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31623    fi ;;
31624  [\\/]* | ?:[\\/]* )  # Absolute path.
31625    ac_srcdir=$srcdir$ac_dir_suffix;
31626    ac_top_srcdir=$srcdir ;;
31627  *) # Relative path.
31628    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31629    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31630esac
31631
31632# Do not use `cd foo && pwd` to compute absolute paths, because
31633# the directories may not exist.
31634case `pwd` in
31635.) ac_abs_builddir="$ac_dir";;
31636*)
31637  case "$ac_dir" in
31638  .) ac_abs_builddir=`pwd`;;
31639  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31640  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31641  esac;;
31642esac
31643case $ac_abs_builddir in
31644.) ac_abs_top_builddir=${ac_top_builddir}.;;
31645*)
31646  case ${ac_top_builddir}. in
31647  .) ac_abs_top_builddir=$ac_abs_builddir;;
31648  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31649  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31650  esac;;
31651esac
31652case $ac_abs_builddir in
31653.) ac_abs_srcdir=$ac_srcdir;;
31654*)
31655  case $ac_srcdir in
31656  .) ac_abs_srcdir=$ac_abs_builddir;;
31657  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31658  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31659  esac;;
31660esac
31661case $ac_abs_builddir in
31662.) ac_abs_top_srcdir=$ac_top_srcdir;;
31663*)
31664  case $ac_top_srcdir in
31665  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31666  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31667  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31668  esac;;
31669esac
31670
31671
31672    cd $ac_dir
31673
31674    # Check for guested configure; otherwise get Cygnus style configure.
31675    if test -f $ac_srcdir/configure.gnu; then
31676      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31677    elif test -f $ac_srcdir/configure; then
31678      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31679    elif test -f $ac_srcdir/configure.in; then
31680      ac_sub_configure=$ac_configure
31681    else
31682      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31683echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31684      ac_sub_configure=
31685    fi
31686
31687    # The recursion is here.
31688    if test -n "$ac_sub_configure"; then
31689      # Make the cache file name correct relative to the subdirectory.
31690      case $cache_file in
31691      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31692      *) # Relative path.
31693	ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31694      esac
31695
31696      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31697echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31698      # The eval makes quoting arguments work.
31699      eval $ac_sub_configure $ac_sub_configure_args \
31700	   --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31701	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31702echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31703   { (exit 1); exit 1; }; }
31704    fi
31705
31706    cd $ac_popdir
31707  done
31708fi
31709
31710
31711if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31712 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31713echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
31714 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31715echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31716 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31717echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31718 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31719echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31720 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31721echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
31722fi
31723