configure revision 93e1c72ec0dbdb0a3af1af61e7a78bc992efa60d
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.57 for [LLVM] [1.0].
4#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8# Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17  emulate sh
18  NULLCMD=:
19  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20  # is contrary to our usage.  Disable this feature.
21  alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23  set -o posix
24fi
25
26# Support unset when possible.
27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231# Sed expression to map a string onto a valid variable name.
232as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS=" 	$as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
244
245
246# Check that we are running under the correct shell.
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249case X$ECHO in
250X*--fallback-echo)
251  # Remove one level of quotation (which was required for Make).
252  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253  ;;
254esac
255
256echo=${ECHO-echo}
257if test "X$1" = X--no-reexec; then
258  # Discard the --no-reexec flag, and continue.
259  shift
260elif test "X$1" = X--fallback-echo; then
261  # Avoid inline document here, it may be left over
262  :
263elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264  # Yippee, $echo works!
265  :
266else
267  # Restart under the correct shell.
268  exec $SHELL "$0" --no-reexec ${1+"$@"}
269fi
270
271if test "X$1" = X--fallback-echo; then
272  # used as fallback echo
273  shift
274  cat <<EOF
275$*
276EOF
277  exit 0
278fi
279
280# The HP-UX ksh and POSIX shell print the target directory to stdout
281# if CDPATH is set.
282if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284if test -z "$ECHO"; then
285if test "X${echo_test_string+set}" != Xset; then
286# find a string as large as possible, as long as the shell can cope with it
287  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290       echo_test_string="`eval $cmd`" &&
291       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292    then
293      break
294    fi
295  done
296fi
297
298if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300   test "X$echo_testing_string" = "X$echo_test_string"; then
301  :
302else
303  # The Solaris, AIX, and Digital Unix default echo programs unquote
304  # backslashes.  This makes it impossible to quote backslashes using
305  #   echo "$something" | sed 's/\\/\\\\/g'
306  #
307  # So, first we look for a working echo in the user's PATH.
308
309  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310  for dir in $PATH /usr/ucb; do
311    IFS="$lt_save_ifs"
312    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315       test "X$echo_testing_string" = "X$echo_test_string"; then
316      echo="$dir/echo"
317      break
318    fi
319  done
320  IFS="$lt_save_ifs"
321
322  if test "X$echo" = Xecho; then
323    # We didn't find a better echo, so look for alternatives.
324    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326       test "X$echo_testing_string" = "X$echo_test_string"; then
327      # This shell has a builtin print -r that does the trick.
328      echo='print -r'
329    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330	 test "X$CONFIG_SHELL" != X/bin/ksh; then
331      # If we have ksh, try running configure again with it.
332      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333      export ORIGINAL_CONFIG_SHELL
334      CONFIG_SHELL=/bin/ksh
335      export CONFIG_SHELL
336      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337    else
338      # Try using printf.
339      echo='printf %s\n'
340      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342	 test "X$echo_testing_string" = "X$echo_test_string"; then
343	# Cool, printf works
344	:
345      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346	   test "X$echo_testing_string" = 'X\t' &&
347	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348	   test "X$echo_testing_string" = "X$echo_test_string"; then
349	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350	export CONFIG_SHELL
351	SHELL="$CONFIG_SHELL"
352	export SHELL
353	echo="$CONFIG_SHELL $0 --fallback-echo"
354      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355	   test "X$echo_testing_string" = 'X\t' &&
356	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357	   test "X$echo_testing_string" = "X$echo_test_string"; then
358	echo="$CONFIG_SHELL $0 --fallback-echo"
359      else
360	# maybe with a smaller string...
361	prev=:
362
363	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365	  then
366	    break
367	  fi
368	  prev="$cmd"
369	done
370
371	if test "$prev" != 'sed 50q "$0"'; then
372	  echo_test_string=`eval $prev`
373	  export echo_test_string
374	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375	else
376	  # Oops.  We lost completely, so just stick with echo.
377	  echo=echo
378	fi
379      fi
380    fi
381  fi
382fi
383fi
384
385# Copy echo and quote the copy suitably for passing to libtool from
386# the Makefile, instead of quoting the original, which is used later.
387ECHO=$echo
388if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390fi
391
392
393
394
395tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
399# Name of the host.
400# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401# so uname gets run too.
402ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404exec 6>&1
405
406#
407# Initializations.
408#
409ac_default_prefix=/usr/local
410ac_config_libobj_dir=.
411cross_compiling=no
412subdirs=
413MFLAGS=
414MAKEFLAGS=
415SHELL=${CONFIG_SHELL-/bin/sh}
416
417# Maximum number of lines to put in a shell here document.
418# This variable seems obsolete.  It should probably be removed, and
419# only ac_max_sed_lines should be used.
420: ${ac_max_here_lines=38}
421
422# Identity of this package.
423PACKAGE_NAME='[LLVM]'
424PACKAGE_TARNAME='--llvm--'
425PACKAGE_VERSION='[1.0]'
426PACKAGE_STRING='[LLVM] [1.0]'
427PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429# Factoring default headers for most tests.
430ac_includes_default="\
431#include <stdio.h>
432#if HAVE_SYS_TYPES_H
433# include <sys/types.h>
434#endif
435#if HAVE_SYS_STAT_H
436# include <sys/stat.h>
437#endif
438#if STDC_HEADERS
439# include <stdlib.h>
440# include <stddef.h>
441#else
442# if HAVE_STDLIB_H
443#  include <stdlib.h>
444# endif
445#endif
446#if HAVE_STRING_H
447# if !STDC_HEADERS && HAVE_MEMORY_H
448#  include <memory.h>
449# endif
450# include <string.h>
451#endif
452#if HAVE_STRINGS_H
453# include <strings.h>
454#endif
455#if HAVE_INTTYPES_H
456# include <inttypes.h>
457#else
458# if HAVE_STDINT_H
459#  include <stdint.h>
460# endif
461#endif
462#if HAVE_UNISTD_H
463# include <unistd.h>
464#endif"
465
466ac_unique_file=""Makefile.config.in""
467ac_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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PURIFY PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB DISABLE_LLC_DIFFS JIT SPEC_ROOT BCR PAPIDIR LTLIBOBJS'
468ac_subst_files=''
469
470# Initialize some variables set by options.
471ac_init_help=
472ac_init_version=false
473# The variables have the same names as the options, with
474# dashes changed to underlines.
475cache_file=/dev/null
476exec_prefix=NONE
477no_create=
478no_recursion=
479prefix=NONE
480program_prefix=NONE
481program_suffix=NONE
482program_transform_name=s,x,x,
483silent=
484site=
485srcdir=
486verbose=
487x_includes=NONE
488x_libraries=NONE
489
490# Installation directory options.
491# These are left unexpanded so users can "make install exec_prefix=/foo"
492# and all the variables that are supposed to be based on exec_prefix
493# by default will actually change.
494# Use braces instead of parens because sh, perl, etc. also accept them.
495bindir='${exec_prefix}/bin'
496sbindir='${exec_prefix}/sbin'
497libexecdir='${exec_prefix}/libexec'
498datadir='${prefix}/share'
499sysconfdir='${prefix}/etc'
500sharedstatedir='${prefix}/com'
501localstatedir='${prefix}/var'
502libdir='${exec_prefix}/lib'
503includedir='${prefix}/include'
504oldincludedir='/usr/include'
505infodir='${prefix}/info'
506mandir='${prefix}/man'
507
508ac_prev=
509for ac_option
510do
511  # If the previous option needs an argument, assign it.
512  if test -n "$ac_prev"; then
513    eval "$ac_prev=\$ac_option"
514    ac_prev=
515    continue
516  fi
517
518  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520  # Accept the important Cygnus configure options, so we can diagnose typos.
521
522  case $ac_option in
523
524  -bindir | --bindir | --bindi | --bind | --bin | --bi)
525    ac_prev=bindir ;;
526  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527    bindir=$ac_optarg ;;
528
529  -build | --build | --buil | --bui | --bu)
530    ac_prev=build_alias ;;
531  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532    build_alias=$ac_optarg ;;
533
534  -cache-file | --cache-file | --cache-fil | --cache-fi \
535  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536    ac_prev=cache_file ;;
537  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539    cache_file=$ac_optarg ;;
540
541  --config-cache | -C)
542    cache_file=config.cache ;;
543
544  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545    ac_prev=datadir ;;
546  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547  | --da=*)
548    datadir=$ac_optarg ;;
549
550  -disable-* | --disable-*)
551    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552    # Reject names that are not valid shell variable names.
553    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555   { (exit 1); exit 1; }; }
556    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557    eval "enable_$ac_feature=no" ;;
558
559  -enable-* | --enable-*)
560    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561    # Reject names that are not valid shell variable names.
562    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564   { (exit 1); exit 1; }; }
565    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566    case $ac_option in
567      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568      *) ac_optarg=yes ;;
569    esac
570    eval "enable_$ac_feature='$ac_optarg'" ;;
571
572  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574  | --exec | --exe | --ex)
575    ac_prev=exec_prefix ;;
576  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578  | --exec=* | --exe=* | --ex=*)
579    exec_prefix=$ac_optarg ;;
580
581  -gas | --gas | --ga | --g)
582    # Obsolete; use --with-gas.
583    with_gas=yes ;;
584
585  -help | --help | --hel | --he | -h)
586    ac_init_help=long ;;
587  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588    ac_init_help=recursive ;;
589  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590    ac_init_help=short ;;
591
592  -host | --host | --hos | --ho)
593    ac_prev=host_alias ;;
594  -host=* | --host=* | --hos=* | --ho=*)
595    host_alias=$ac_optarg ;;
596
597  -includedir | --includedir | --includedi | --included | --include \
598  | --includ | --inclu | --incl | --inc)
599    ac_prev=includedir ;;
600  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601  | --includ=* | --inclu=* | --incl=* | --inc=*)
602    includedir=$ac_optarg ;;
603
604  -infodir | --infodir | --infodi | --infod | --info | --inf)
605    ac_prev=infodir ;;
606  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607    infodir=$ac_optarg ;;
608
609  -libdir | --libdir | --libdi | --libd)
610    ac_prev=libdir ;;
611  -libdir=* | --libdir=* | --libdi=* | --libd=*)
612    libdir=$ac_optarg ;;
613
614  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615  | --libexe | --libex | --libe)
616    ac_prev=libexecdir ;;
617  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618  | --libexe=* | --libex=* | --libe=*)
619    libexecdir=$ac_optarg ;;
620
621  -localstatedir | --localstatedir | --localstatedi | --localstated \
622  | --localstate | --localstat | --localsta | --localst \
623  | --locals | --local | --loca | --loc | --lo)
624    ac_prev=localstatedir ;;
625  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628    localstatedir=$ac_optarg ;;
629
630  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631    ac_prev=mandir ;;
632  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633    mandir=$ac_optarg ;;
634
635  -nfp | --nfp | --nf)
636    # Obsolete; use --without-fp.
637    with_fp=no ;;
638
639  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640  | --no-cr | --no-c | -n)
641    no_create=yes ;;
642
643  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645    no_recursion=yes ;;
646
647  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649  | --oldin | --oldi | --old | --ol | --o)
650    ac_prev=oldincludedir ;;
651  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654    oldincludedir=$ac_optarg ;;
655
656  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657    ac_prev=prefix ;;
658  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659    prefix=$ac_optarg ;;
660
661  -program-prefix | --program-prefix | --program-prefi | --program-pref \
662  | --program-pre | --program-pr | --program-p)
663    ac_prev=program_prefix ;;
664  -program-prefix=* | --program-prefix=* | --program-prefi=* \
665  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666    program_prefix=$ac_optarg ;;
667
668  -program-suffix | --program-suffix | --program-suffi | --program-suff \
669  | --program-suf | --program-su | --program-s)
670    ac_prev=program_suffix ;;
671  -program-suffix=* | --program-suffix=* | --program-suffi=* \
672  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673    program_suffix=$ac_optarg ;;
674
675  -program-transform-name | --program-transform-name \
676  | --program-transform-nam | --program-transform-na \
677  | --program-transform-n | --program-transform- \
678  | --program-transform | --program-transfor \
679  | --program-transfo | --program-transf \
680  | --program-trans | --program-tran \
681  | --progr-tra | --program-tr | --program-t)
682    ac_prev=program_transform_name ;;
683  -program-transform-name=* | --program-transform-name=* \
684  | --program-transform-nam=* | --program-transform-na=* \
685  | --program-transform-n=* | --program-transform-=* \
686  | --program-transform=* | --program-transfor=* \
687  | --program-transfo=* | --program-transf=* \
688  | --program-trans=* | --program-tran=* \
689  | --progr-tra=* | --program-tr=* | --program-t=*)
690    program_transform_name=$ac_optarg ;;
691
692  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693  | -silent | --silent | --silen | --sile | --sil)
694    silent=yes ;;
695
696  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697    ac_prev=sbindir ;;
698  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699  | --sbi=* | --sb=*)
700    sbindir=$ac_optarg ;;
701
702  -sharedstatedir | --sharedstatedir | --sharedstatedi \
703  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704  | --sharedst | --shareds | --shared | --share | --shar \
705  | --sha | --sh)
706    ac_prev=sharedstatedir ;;
707  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710  | --sha=* | --sh=*)
711    sharedstatedir=$ac_optarg ;;
712
713  -site | --site | --sit)
714    ac_prev=site ;;
715  -site=* | --site=* | --sit=*)
716    site=$ac_optarg ;;
717
718  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719    ac_prev=srcdir ;;
720  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721    srcdir=$ac_optarg ;;
722
723  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724  | --syscon | --sysco | --sysc | --sys | --sy)
725    ac_prev=sysconfdir ;;
726  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728    sysconfdir=$ac_optarg ;;
729
730  -target | --target | --targe | --targ | --tar | --ta | --t)
731    ac_prev=target_alias ;;
732  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733    target_alias=$ac_optarg ;;
734
735  -v | -verbose | --verbose | --verbos | --verbo | --verb)
736    verbose=yes ;;
737
738  -version | --version | --versio | --versi | --vers | -V)
739    ac_init_version=: ;;
740
741  -with-* | --with-*)
742    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743    # Reject names that are not valid shell variable names.
744    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745      { echo "$as_me: error: invalid package name: $ac_package" >&2
746   { (exit 1); exit 1; }; }
747    ac_package=`echo $ac_package| sed 's/-/_/g'`
748    case $ac_option in
749      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750      *) ac_optarg=yes ;;
751    esac
752    eval "with_$ac_package='$ac_optarg'" ;;
753
754  -without-* | --without-*)
755    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756    # Reject names that are not valid shell variable names.
757    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758      { echo "$as_me: error: invalid package name: $ac_package" >&2
759   { (exit 1); exit 1; }; }
760    ac_package=`echo $ac_package | sed 's/-/_/g'`
761    eval "with_$ac_package=no" ;;
762
763  --x)
764    # Obsolete; use --with-x.
765    with_x=yes ;;
766
767  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768  | --x-incl | --x-inc | --x-in | --x-i)
769    ac_prev=x_includes ;;
770  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772    x_includes=$ac_optarg ;;
773
774  -x-libraries | --x-libraries | --x-librarie | --x-librari \
775  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776    ac_prev=x_libraries ;;
777  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779    x_libraries=$ac_optarg ;;
780
781  -*) { echo "$as_me: error: unrecognized option: $ac_option
782Try \`$0 --help' for more information." >&2
783   { (exit 1); exit 1; }; }
784    ;;
785
786  *=*)
787    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788    # Reject names that are not valid shell variable names.
789    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791   { (exit 1); exit 1; }; }
792    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793    eval "$ac_envvar='$ac_optarg'"
794    export $ac_envvar ;;
795
796  *)
797    # FIXME: should be removed in autoconf 3.0.
798    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802    ;;
803
804  esac
805done
806
807if test -n "$ac_prev"; then
808  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809  { echo "$as_me: error: missing argument to $ac_option" >&2
810   { (exit 1); exit 1; }; }
811fi
812
813# Be sure to have absolute paths.
814for ac_var in exec_prefix prefix
815do
816  eval ac_val=$`echo $ac_var`
817  case $ac_val in
818    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820   { (exit 1); exit 1; }; };;
821  esac
822done
823
824# Be sure to have absolute paths.
825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826              localstatedir libdir includedir oldincludedir infodir mandir
827do
828  eval ac_val=$`echo $ac_var`
829  case $ac_val in
830    [\\/$]* | ?:[\\/]* ) ;;
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# There might be people who depend on the old broken behavior: `$host'
837# used to hold the argument of --host etc.
838# FIXME: To remove some day.
839build=$build_alias
840host=$host_alias
841target=$target_alias
842
843# FIXME: To remove some day.
844if test "x$host_alias" != x; then
845  if test "x$build_alias" = x; then
846    cross_compiling=maybe
847    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848    If a cross compiler is detected then cross compile mode will be used." >&2
849  elif test "x$build_alias" != "x$host_alias"; then
850    cross_compiling=yes
851  fi
852fi
853
854ac_tool_prefix=
855test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857test "$silent" = yes && exec 6>/dev/null
858
859
860# Find the source files, if location was not specified.
861if test -z "$srcdir"; then
862  ac_srcdir_defaulted=yes
863  # Try the directory containing this script, then its parent.
864  ac_confdir=`(dirname "$0") 2>/dev/null ||
865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866         X"$0" : 'X\(//\)[^/]' \| \
867         X"$0" : 'X\(//\)$' \| \
868         X"$0" : 'X\(/\)' \| \
869         .     : '\(.\)' 2>/dev/null ||
870echo X"$0" |
871    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873  	  /^X\(\/\/\)$/{ s//\1/; q; }
874  	  /^X\(\/\).*/{ s//\1/; q; }
875  	  s/.*/./; q'`
876  srcdir=$ac_confdir
877  if test ! -r $srcdir/$ac_unique_file; then
878    srcdir=..
879  fi
880else
881  ac_srcdir_defaulted=no
882fi
883if test ! -r $srcdir/$ac_unique_file; then
884  if test "$ac_srcdir_defaulted" = yes; then
885    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886   { (exit 1); exit 1; }; }
887  else
888    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889   { (exit 1); exit 1; }; }
890  fi
891fi
892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894   { (exit 1); exit 1; }; }
895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896ac_env_build_alias_set=${build_alias+set}
897ac_env_build_alias_value=$build_alias
898ac_cv_env_build_alias_set=${build_alias+set}
899ac_cv_env_build_alias_value=$build_alias
900ac_env_host_alias_set=${host_alias+set}
901ac_env_host_alias_value=$host_alias
902ac_cv_env_host_alias_set=${host_alias+set}
903ac_cv_env_host_alias_value=$host_alias
904ac_env_target_alias_set=${target_alias+set}
905ac_env_target_alias_value=$target_alias
906ac_cv_env_target_alias_set=${target_alias+set}
907ac_cv_env_target_alias_value=$target_alias
908ac_env_CXX_set=${CXX+set}
909ac_env_CXX_value=$CXX
910ac_cv_env_CXX_set=${CXX+set}
911ac_cv_env_CXX_value=$CXX
912ac_env_CXXFLAGS_set=${CXXFLAGS+set}
913ac_env_CXXFLAGS_value=$CXXFLAGS
914ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
915ac_cv_env_CXXFLAGS_value=$CXXFLAGS
916ac_env_LDFLAGS_set=${LDFLAGS+set}
917ac_env_LDFLAGS_value=$LDFLAGS
918ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919ac_cv_env_LDFLAGS_value=$LDFLAGS
920ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_env_CPPFLAGS_value=$CPPFLAGS
922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924ac_env_CC_set=${CC+set}
925ac_env_CC_value=$CC
926ac_cv_env_CC_set=${CC+set}
927ac_cv_env_CC_value=$CC
928ac_env_CFLAGS_set=${CFLAGS+set}
929ac_env_CFLAGS_value=$CFLAGS
930ac_cv_env_CFLAGS_set=${CFLAGS+set}
931ac_cv_env_CFLAGS_value=$CFLAGS
932ac_env_CPP_set=${CPP+set}
933ac_env_CPP_value=$CPP
934ac_cv_env_CPP_set=${CPP+set}
935ac_cv_env_CPP_value=$CPP
936ac_env_CXXCPP_set=${CXXCPP+set}
937ac_env_CXXCPP_value=$CXXCPP
938ac_cv_env_CXXCPP_set=${CXXCPP+set}
939ac_cv_env_CXXCPP_value=$CXXCPP
940ac_env_F77_set=${F77+set}
941ac_env_F77_value=$F77
942ac_cv_env_F77_set=${F77+set}
943ac_cv_env_F77_value=$F77
944ac_env_FFLAGS_set=${FFLAGS+set}
945ac_env_FFLAGS_value=$FFLAGS
946ac_cv_env_FFLAGS_set=${FFLAGS+set}
947ac_cv_env_FFLAGS_value=$FFLAGS
948
949#
950# Report the --help message.
951#
952if test "$ac_init_help" = "long"; then
953  # Omit some internal or obsolete options to make the list less imposing.
954  # This message is too long to be a string in the A/UX 3.1 sh.
955  cat <<_ACEOF
956\`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
957
958Usage: $0 [OPTION]... [VAR=VALUE]...
959
960To assign environment variables (e.g., CC, CFLAGS...), specify them as
961VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963Defaults for the options are specified in brackets.
964
965Configuration:
966  -h, --help              display this help and exit
967      --help=short        display options specific to this package
968      --help=recursive    display the short help of all the included packages
969  -V, --version           display version information and exit
970  -q, --quiet, --silent   do not print \`checking...' messages
971      --cache-file=FILE   cache test results in FILE [disabled]
972  -C, --config-cache      alias for \`--cache-file=config.cache'
973  -n, --no-create         do not create output files
974      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976_ACEOF
977
978  cat <<_ACEOF
979Installation directories:
980  --prefix=PREFIX         install architecture-independent files in PREFIX
981                          [$ac_default_prefix]
982  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983                          [PREFIX]
984
985By default, \`make install' will install all the files in
986\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988for instance \`--prefix=\$HOME'.
989
990For better control, use the options below.
991
992Fine tuning of the installation directories:
993  --bindir=DIR           user executables [EPREFIX/bin]
994  --sbindir=DIR          system admin executables [EPREFIX/sbin]
995  --libexecdir=DIR       program executables [EPREFIX/libexec]
996  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000  --libdir=DIR           object code libraries [EPREFIX/lib]
1001  --includedir=DIR       C header files [PREFIX/include]
1002  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003  --infodir=DIR          info documentation [PREFIX/info]
1004  --mandir=DIR           man documentation [PREFIX/man]
1005_ACEOF
1006
1007  cat <<\_ACEOF
1008
1009System types:
1010  --build=BUILD     configure for building on BUILD [guessed]
1011  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1012  --target=TARGET   configure for building compilers for TARGET [HOST]
1013_ACEOF
1014fi
1015
1016if test -n "$ac_init_help"; then
1017  case $ac_init_help in
1018     short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1019   esac
1020  cat <<\_ACEOF
1021
1022Optional Features:
1023  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1024  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1025  --enable-shared[=PKGS]
1026                          build shared libraries [default=yes]
1027  --enable-static[=PKGS]
1028                          build static libraries [default=yes]
1029  --enable-fast-install[=PKGS]
1030                          optimize for fast installation [default=yes]
1031  --disable-libtool-lock  avoid locking (might break parallel builds)
1032  --enable-purify         Compile with purify (default is NO)
1033  --enable-optimized      Compile with optimizations enabled (default is NO)
1034  --enable-spec           Compile SPEC benchmarks (default is NO)
1035  --enable-precompiled_bytecode
1036                          Use pre-compiled bytecode (default is NO)
1037  --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1038  --enable-jit            Enable Just In Time Compiling (default is YES)
1039
1040Optional Packages:
1041  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1042  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1043  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1044  --with-pic              try to use only PIC/non-PIC objects [default=use
1045                          both]
1046  --with-tags[=TAGS]
1047                          include additional configurations [automatic]
1048  --with-spec             Location of SPEC benchmarks
1049  --with-llvmgccdir       Location of LLVM GCC front-end
1050  --with-bcrepos          Location of Bytecode Repository
1051  --with-papi             Location of PAPI
1052  --with-purify           Location of purify program
1053
1054Some influential environment variables:
1055  CXX         C++ compiler command
1056  CXXFLAGS    C++ compiler flags
1057  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1058              nonstandard directory <lib dir>
1059  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060              headers in a nonstandard directory <include dir>
1061  CC          C compiler command
1062  CFLAGS      C compiler flags
1063  CPP         C preprocessor
1064  CXXCPP      C++ preprocessor
1065  F77         Fortran 77 compiler command
1066  FFLAGS      Fortran 77 compiler flags
1067
1068Use these variables to override the choices made by `configure' or to help
1069it to find libraries and programs with nonstandard names/locations.
1070
1071Report bugs to <llvmbugs@cs.uiuc.edu>.
1072_ACEOF
1073fi
1074
1075if test "$ac_init_help" = "recursive"; then
1076  # If there are subdirs, report their specific --help.
1077  ac_popdir=`pwd`
1078  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079    test -d $ac_dir || continue
1080    ac_builddir=.
1081
1082if test "$ac_dir" != .; then
1083  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084  # A "../" for each directory in $ac_dir_suffix.
1085  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086else
1087  ac_dir_suffix= ac_top_builddir=
1088fi
1089
1090case $srcdir in
1091  .)  # No --srcdir option.  We are building in place.
1092    ac_srcdir=.
1093    if test -z "$ac_top_builddir"; then
1094       ac_top_srcdir=.
1095    else
1096       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097    fi ;;
1098  [\\/]* | ?:[\\/]* )  # Absolute path.
1099    ac_srcdir=$srcdir$ac_dir_suffix;
1100    ac_top_srcdir=$srcdir ;;
1101  *) # Relative path.
1102    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104esac
1105# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106# absolute.
1107ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112    cd $ac_dir
1113    # Check for guested configure; otherwise get Cygnus style configure.
1114    if test -f $ac_srcdir/configure.gnu; then
1115      echo
1116      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1117    elif test -f $ac_srcdir/configure; then
1118      echo
1119      $SHELL $ac_srcdir/configure  --help=recursive
1120    elif test -f $ac_srcdir/configure.ac ||
1121           test -f $ac_srcdir/configure.in; then
1122      echo
1123      $ac_configure --help
1124    else
1125      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126    fi
1127    cd $ac_popdir
1128  done
1129fi
1130
1131test -n "$ac_init_help" && exit 0
1132if $ac_init_version; then
1133  cat <<\_ACEOF
1134[LLVM] configure [1.0]
1135generated by GNU Autoconf 2.57
1136
1137Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138Free Software Foundation, Inc.
1139This configure script is free software; the Free Software Foundation
1140gives unlimited permission to copy, distribute and modify it.
1141_ACEOF
1142  exit 0
1143fi
1144exec 5>config.log
1145cat >&5 <<_ACEOF
1146This file contains any messages produced by compilers while
1147running configure, to aid debugging if configure makes a mistake.
1148
1149It was created by [LLVM] $as_me [1.0], which was
1150generated by GNU Autoconf 2.57.  Invocation command line was
1151
1152  $ $0 $@
1153
1154_ACEOF
1155{
1156cat <<_ASUNAME
1157## --------- ##
1158## Platform. ##
1159## --------- ##
1160
1161hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1169
1170/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1171/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1172/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1174/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1175/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1176/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1177
1178_ASUNAME
1179
1180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181for as_dir in $PATH
1182do
1183  IFS=$as_save_IFS
1184  test -z "$as_dir" && as_dir=.
1185  echo "PATH: $as_dir"
1186done
1187
1188} >&5
1189
1190cat >&5 <<_ACEOF
1191
1192
1193## ----------- ##
1194## Core tests. ##
1195## ----------- ##
1196
1197_ACEOF
1198
1199
1200# Keep a trace of the command line.
1201# Strip out --no-create and --no-recursion so they do not pile up.
1202# Strip out --silent because we don't want to record it for future runs.
1203# Also quote any args containing shell meta-characters.
1204# Make two passes to allow for proper duplicate-argument suppression.
1205ac_configure_args=
1206ac_configure_args0=
1207ac_configure_args1=
1208ac_sep=
1209ac_must_keep_next=false
1210for ac_pass in 1 2
1211do
1212  for ac_arg
1213  do
1214    case $ac_arg in
1215    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217    | -silent | --silent | --silen | --sile | --sil)
1218      continue ;;
1219    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221    esac
1222    case $ac_pass in
1223    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224    2)
1225      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226      if test $ac_must_keep_next = true; then
1227        ac_must_keep_next=false # Got value, back to normal.
1228      else
1229        case $ac_arg in
1230          *=* | --config-cache | -C | -disable-* | --disable-* \
1231          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233          | -with-* | --with-* | -without-* | --without-* | --x)
1234            case "$ac_configure_args0 " in
1235              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236            esac
1237            ;;
1238          -* ) ac_must_keep_next=true ;;
1239        esac
1240      fi
1241      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242      # Get rid of the leading space.
1243      ac_sep=" "
1244      ;;
1245    esac
1246  done
1247done
1248$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
1251# When interrupted or exit'd, cleanup temporary files, and complete
1252# config.log.  We remove comments because anyway the quotes in there
1253# would cause problems or look ugly.
1254# WARNING: Be sure not to use single quotes in there, as some shells,
1255# such as our DU 5.0 friend, will then `close' the trap.
1256trap 'exit_status=$?
1257  # Save into config.log some information that might help in debugging.
1258  {
1259    echo
1260
1261    cat <<\_ASBOX
1262## ---------------- ##
1263## Cache variables. ##
1264## ---------------- ##
1265_ASBOX
1266    echo
1267    # The following way of writing the cache mishandles newlines in values,
1268{
1269  (set) 2>&1 |
1270    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271    *ac_space=\ *)
1272      sed -n \
1273        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275      ;;
1276    *)
1277      sed -n \
1278        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279      ;;
1280    esac;
1281}
1282    echo
1283
1284    cat <<\_ASBOX
1285## ----------------- ##
1286## Output variables. ##
1287## ----------------- ##
1288_ASBOX
1289    echo
1290    for ac_var in $ac_subst_vars
1291    do
1292      eval ac_val=$`echo $ac_var`
1293      echo "$ac_var='"'"'$ac_val'"'"'"
1294    done | sort
1295    echo
1296
1297    if test -n "$ac_subst_files"; then
1298      cat <<\_ASBOX
1299## ------------- ##
1300## Output files. ##
1301## ------------- ##
1302_ASBOX
1303      echo
1304      for ac_var in $ac_subst_files
1305      do
1306	eval ac_val=$`echo $ac_var`
1307        echo "$ac_var='"'"'$ac_val'"'"'"
1308      done | sort
1309      echo
1310    fi
1311
1312    if test -s confdefs.h; then
1313      cat <<\_ASBOX
1314## ----------- ##
1315## confdefs.h. ##
1316## ----------- ##
1317_ASBOX
1318      echo
1319      sed "/^$/d" confdefs.h | sort
1320      echo
1321    fi
1322    test "$ac_signal" != 0 &&
1323      echo "$as_me: caught signal $ac_signal"
1324    echo "$as_me: exit $exit_status"
1325  } >&5
1326  rm -f core core.* *.core &&
1327  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328    exit $exit_status
1329     ' 0
1330for ac_signal in 1 2 13 15; do
1331  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332done
1333ac_signal=0
1334
1335# confdefs.h avoids OS command line length limits that DEFS can exceed.
1336rm -rf conftest* confdefs.h
1337# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338echo >confdefs.h
1339
1340# Predefined preprocessor variables.
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_NAME "$PACKAGE_NAME"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_VERSION "$PACKAGE_VERSION"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_STRING "$PACKAGE_STRING"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364_ACEOF
1365
1366
1367# Let the site file select an alternate cache file if it wants to.
1368# Prefer explicitly selected file to automatically selected ones.
1369if test -z "$CONFIG_SITE"; then
1370  if test "x$prefix" != xNONE; then
1371    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372  else
1373    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374  fi
1375fi
1376for ac_site_file in $CONFIG_SITE; do
1377  if test -r "$ac_site_file"; then
1378    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379echo "$as_me: loading site script $ac_site_file" >&6;}
1380    sed 's/^/| /' "$ac_site_file" >&5
1381    . "$ac_site_file"
1382  fi
1383done
1384
1385if test -r "$cache_file"; then
1386  # Some versions of bash will fail to source /dev/null (special
1387  # files actually), so we avoid doing that.
1388  if test -f "$cache_file"; then
1389    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390echo "$as_me: loading cache $cache_file" >&6;}
1391    case $cache_file in
1392      [\\/]* | ?:[\\/]* ) . $cache_file;;
1393      *)                      . ./$cache_file;;
1394    esac
1395  fi
1396else
1397  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398echo "$as_me: creating cache $cache_file" >&6;}
1399  >$cache_file
1400fi
1401
1402# Check that the precious variables saved in the cache have kept the same
1403# value.
1404ac_cache_corrupted=false
1405for ac_var in `(set) 2>&1 |
1406               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408  eval ac_new_set=\$ac_env_${ac_var}_set
1409  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410  eval ac_new_val="\$ac_env_${ac_var}_value"
1411  case $ac_old_set,$ac_new_set in
1412    set,)
1413      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415      ac_cache_corrupted=: ;;
1416    ,set)
1417      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419      ac_cache_corrupted=: ;;
1420    ,);;
1421    *)
1422      if test "x$ac_old_val" != "x$ac_new_val"; then
1423        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1426echo "$as_me:   former value:  $ac_old_val" >&2;}
1427        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1428echo "$as_me:   current value: $ac_new_val" >&2;}
1429        ac_cache_corrupted=:
1430      fi;;
1431  esac
1432  # Pass precious variables to config.status.
1433  if test "$ac_new_set" = set; then
1434    case $ac_new_val in
1435    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437    *) ac_arg=$ac_var=$ac_new_val ;;
1438    esac
1439    case " $ac_configure_args " in
1440      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1441      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442    esac
1443  fi
1444done
1445if $ac_cache_corrupted; then
1446  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450   { (exit 1); exit 1; }; }
1451fi
1452
1453ac_ext=c
1454ac_cpp='$CPP $CPPFLAGS'
1455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486ac_aux_dir=
1487for ac_dir in autoconf $srcdir/autoconf; do
1488  if test -f $ac_dir/install-sh; then
1489    ac_aux_dir=$ac_dir
1490    ac_install_sh="$ac_aux_dir/install-sh -c"
1491    break
1492  elif test -f $ac_dir/install.sh; then
1493    ac_aux_dir=$ac_dir
1494    ac_install_sh="$ac_aux_dir/install.sh -c"
1495    break
1496  elif test -f $ac_dir/shtool; then
1497    ac_aux_dir=$ac_dir
1498    ac_install_sh="$ac_aux_dir/shtool install -c"
1499    break
1500  fi
1501done
1502if test -z "$ac_aux_dir"; then
1503  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1505   { (exit 1); exit 1; }; }
1506fi
1507ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
1511
1512if test -f ${srcdir}/include/Config/config.h
1513then
1514	{ { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1515echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1516   { (exit 1); exit 1; }; }
1517fi
1518
1519
1520          ac_config_headers="$ac_config_headers include/Config/config.h"
1521
1522          ac_config_commands="$ac_config_commands Makefile"
1523
1524
1525          ac_config_commands="$ac_config_commands Makefile.common"
1526
1527
1528          ac_config_commands="$ac_config_commands Makefile.rules"
1529
1530
1531          ac_config_commands="$ac_config_commands lib/Makefile"
1532
1533
1534          ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
1535
1536
1537          ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
1538
1539
1540          ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
1541
1542
1543          ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
1544
1545
1546          ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
1547
1548
1549          ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
1550
1551
1552          ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
1553
1554
1555          ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
1556
1557
1558          ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
1559
1560
1561          ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
1562
1563
1564          ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
1565
1566
1567          ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
1568
1569
1570          ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
1571
1572
1573          ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
1574
1575
1576          ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
1577
1578
1579          ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
1580
1581
1582          ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
1583
1584
1585          ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
1586
1587
1588          ac_config_commands="$ac_config_commands lib/Support/Makefile"
1589
1590
1591          ac_config_commands="$ac_config_commands lib/Target/Makefile"
1592
1593
1594          ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1595
1596
1597          ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1598
1599
1600          ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1601
1602
1603          ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1604
1605
1606          ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1607
1608
1609          ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1610
1611
1612          ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1613
1614
1615          ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1616
1617
1618          ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1619
1620
1621          ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1622
1623
1624          ac_config_commands="$ac_config_commands runtime/Makefile"
1625
1626
1627          ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1628
1629
1630          ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1631
1632
1633          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
1634
1635
1636          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1637
1638
1639          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libexception/Makefile"
1640
1641
1642          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
1643
1644
1645          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
1646
1647
1648          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
1649
1650
1651          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
1652
1653
1654          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1655
1656
1657          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
1658
1659
1660          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1661
1662
1663          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1664
1665
1666          ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1667
1668
1669          ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1670
1671
1672          ac_config_commands="$ac_config_commands test/Makefile"
1673
1674
1675          ac_config_commands="$ac_config_commands test/Makefile.tests"
1676
1677
1678          ac_config_commands="$ac_config_commands test/Programs/Makefile"
1679
1680
1681          ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1682
1683
1684          ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1685
1686
1687          ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1688
1689
1690          ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1691
1692
1693          ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1694
1695
1696          ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1697
1698
1699          ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1700
1701
1702          ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1703
1704
1705          ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1706
1707
1708          ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1709
1710
1711          ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1712
1713
1714          ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1715
1716
1717          ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1718
1719
1720          ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1721
1722
1723          ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1724
1725
1726          ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1727
1728
1729          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1730
1731
1732          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1733
1734
1735          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1736
1737
1738          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1739
1740
1741          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1742
1743
1744          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1745
1746
1747          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1748
1749
1750          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1751
1752
1753          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1754
1755
1756          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1757
1758
1759          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1760
1761
1762          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1763
1764
1765          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1766
1767
1768          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1769
1770
1771          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1772
1773
1774          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1775
1776
1777          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1778
1779
1780          ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1781
1782
1783          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1784
1785
1786          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1787
1788
1789          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
1790
1791
1792          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
1793
1794
1795          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1796
1797
1798          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1799
1800
1801          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
1802
1803
1804          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
1805
1806
1807          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
1808
1809
1810          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
1811
1812
1813          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
1814
1815
1816          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
1817
1818
1819          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
1820
1821
1822          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
1823
1824
1825          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
1826
1827
1828          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
1829
1830
1831          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
1832
1833
1834          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
1835
1836
1837          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
1838
1839
1840          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
1841
1842
1843          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
1844
1845
1846          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
1847
1848
1849          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
1850
1851
1852          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
1853
1854
1855          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
1856
1857
1858          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
1859
1860
1861          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
1862
1863
1864          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1865
1866
1867          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1868
1869
1870          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
1871
1872
1873          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
1874
1875
1876          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
1877
1878
1879          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
1880
1881
1882          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
1883
1884
1885          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
1886
1887
1888          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
1889
1890
1891          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
1892
1893
1894          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
1895
1896
1897          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
1898
1899
1900          ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
1901
1902
1903          ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
1904
1905
1906          ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
1907
1908
1909          ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
1910
1911
1912          ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
1913
1914
1915          ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
1916
1917
1918          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1919
1920
1921          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1922
1923
1924          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1925
1926
1927          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1928
1929
1930          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1931
1932
1933          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1934
1935
1936          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1937
1938
1939          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1940
1941
1942          ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
1943
1944
1945          ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
1946
1947
1948          ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1949
1950
1951          ac_config_commands="$ac_config_commands tools/Makefile"
1952
1953
1954          ac_config_commands="$ac_config_commands tools/analyze/Makefile"
1955
1956
1957          ac_config_commands="$ac_config_commands tools/as/Makefile"
1958
1959
1960          ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
1961
1962
1963          ac_config_commands="$ac_config_commands tools/dis/Makefile"
1964
1965
1966          ac_config_commands="$ac_config_commands tools/extract/Makefile"
1967
1968
1969          ac_config_commands="$ac_config_commands tools/gccas/Makefile"
1970
1971
1972          ac_config_commands="$ac_config_commands tools/gccld/Makefile"
1973
1974
1975          ac_config_commands="$ac_config_commands tools/link/Makefile"
1976
1977
1978          ac_config_commands="$ac_config_commands tools/llc/Makefile"
1979
1980
1981          ac_config_commands="$ac_config_commands tools/lli/Makefile"
1982
1983
1984          ac_config_commands="$ac_config_commands tools/opt/Makefile"
1985
1986
1987          ac_config_commands="$ac_config_commands tools/llee/Makefile"
1988
1989
1990          ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
1991
1992
1993          ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
1994
1995
1996          ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
1997
1998
1999          ac_config_commands="$ac_config_commands utils/Makefile"
2000
2001
2002          ac_config_commands="$ac_config_commands utils/Burg/Makefile"
2003
2004
2005          ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
2006
2007
2008          ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2009
2010
2011          ac_config_commands="$ac_config_commands www/docs/Makefile"
2012
2013
2014          ac_config_commands="$ac_config_commands projects/Makefile"
2015
2016
2017          ac_config_commands="$ac_config_commands projects/sample/Makefile"
2018
2019
2020          ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
2021
2022
2023          ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
2024
2025
2026          ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
2027
2028
2029          ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
2030
2031
2032          ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
2033
2034
2035          ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
2036
2037
2038          ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2039
2040
2041          ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2042
2043
2044          ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2045
2046
2047          ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2048
2049
2050
2051
2052# Find a good install program.  We prefer a C program (faster),
2053# so one script is as good as another.  But avoid the broken or
2054# incompatible versions:
2055# SysV /etc/install, /usr/sbin/install
2056# SunOS /usr/etc/install
2057# IRIX /sbin/install
2058# AIX /bin/install
2059# AmigaOS /C/install, which installs bootblocks on floppy discs
2060# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2061# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2062# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2063# ./install, which can be erroneously created by make from ./install.sh.
2064echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2065echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2066if test -z "$INSTALL"; then
2067if test "${ac_cv_path_install+set}" = set; then
2068  echo $ECHO_N "(cached) $ECHO_C" >&6
2069else
2070  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071for as_dir in $PATH
2072do
2073  IFS=$as_save_IFS
2074  test -z "$as_dir" && as_dir=.
2075  # Account for people who put trailing slashes in PATH elements.
2076case $as_dir/ in
2077  ./ | .// | /cC/* | \
2078  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2079  /usr/ucb/* ) ;;
2080  *)
2081    # OSF1 and SCO ODT 3.0 have their own names for install.
2082    # Don't use installbsd from OSF since it installs stuff as root
2083    # by default.
2084    for ac_prog in ginstall scoinst install; do
2085      for ac_exec_ext in '' $ac_executable_extensions; do
2086        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2087          if test $ac_prog = install &&
2088            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2089            # AIX install.  It has an incompatible calling convention.
2090            :
2091          elif test $ac_prog = install &&
2092            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2093            # program-specific install script used by HP pwplus--don't use.
2094            :
2095          else
2096            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2097            break 3
2098          fi
2099        fi
2100      done
2101    done
2102    ;;
2103esac
2104done
2105
2106
2107fi
2108  if test "${ac_cv_path_install+set}" = set; then
2109    INSTALL=$ac_cv_path_install
2110  else
2111    # As a last resort, use the slow shell script.  We don't cache a
2112    # path for INSTALL within a source directory, because that will
2113    # break other packages using the cache if that directory is
2114    # removed, or if the path is relative.
2115    INSTALL=$ac_install_sh
2116  fi
2117fi
2118echo "$as_me:$LINENO: result: $INSTALL" >&5
2119echo "${ECHO_T}$INSTALL" >&6
2120
2121# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2122# It thinks the first close brace ends the variable substitution.
2123test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2124
2125test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2126
2127test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2128
2129
2130# Make sure we can run config.sub.
2131$ac_config_sub sun4 >/dev/null 2>&1 ||
2132  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2133echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2134   { (exit 1); exit 1; }; }
2135
2136echo "$as_me:$LINENO: checking build system type" >&5
2137echo $ECHO_N "checking build system type... $ECHO_C" >&6
2138if test "${ac_cv_build+set}" = set; then
2139  echo $ECHO_N "(cached) $ECHO_C" >&6
2140else
2141  ac_cv_build_alias=$build_alias
2142test -z "$ac_cv_build_alias" &&
2143  ac_cv_build_alias=`$ac_config_guess`
2144test -z "$ac_cv_build_alias" &&
2145  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2146echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2147   { (exit 1); exit 1; }; }
2148ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2149  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2150echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2151   { (exit 1); exit 1; }; }
2152
2153fi
2154echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2155echo "${ECHO_T}$ac_cv_build" >&6
2156build=$ac_cv_build
2157build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2158build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2159build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2160
2161
2162echo "$as_me:$LINENO: checking host system type" >&5
2163echo $ECHO_N "checking host system type... $ECHO_C" >&6
2164if test "${ac_cv_host+set}" = set; then
2165  echo $ECHO_N "(cached) $ECHO_C" >&6
2166else
2167  ac_cv_host_alias=$host_alias
2168test -z "$ac_cv_host_alias" &&
2169  ac_cv_host_alias=$ac_cv_build_alias
2170ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2171  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2172echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2173   { (exit 1); exit 1; }; }
2174
2175fi
2176echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2177echo "${ECHO_T}$ac_cv_host" >&6
2178host=$ac_cv_host
2179host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2180host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2181host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2182
2183
2184echo "$as_me:$LINENO: checking target system type" >&5
2185echo $ECHO_N "checking target system type... $ECHO_C" >&6
2186if test "${ac_cv_target+set}" = set; then
2187  echo $ECHO_N "(cached) $ECHO_C" >&6
2188else
2189  ac_cv_target_alias=$target_alias
2190test "x$ac_cv_target_alias" = "x" &&
2191  ac_cv_target_alias=$ac_cv_host_alias
2192ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2193  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2194echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2195   { (exit 1); exit 1; }; }
2196
2197fi
2198echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2199echo "${ECHO_T}$ac_cv_target" >&6
2200target=$ac_cv_target
2201target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2202target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2203target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2204
2205
2206# The aliases save the names the user supplied, while $host etc.
2207# will get canonicalized.
2208test -n "$target_alias" &&
2209  test "$program_prefix$program_suffix$program_transform_name" = \
2210    NONENONEs,x,x, &&
2211  program_prefix=${target_alias}-
2212
2213case $build in
2214	*i*86*)  OS=Linux
2215
2216	         LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2217
2218	         ;;
2219
2220	*sparc*) OS=SunOS
2221
2222	         LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2223
2224	         ;;
2225
2226	*)       OS=Unknown
2227
2228	         ;;
2229esac
2230
2231case $target in
2232	*sparc*solaris*)  target=sparcv9-sun-solaris2.8
2233
2234	                  ;;
2235esac
2236
2237case $target in
2238	*i*86*)           ARCH=x86
2239
2240	                  ;;
2241	*sparc*solaris*)  ARCH=Sparc
2242
2243	                  ;;
2244esac
2245
2246
2247ac_ext=cc
2248ac_cpp='$CXXCPP $CPPFLAGS'
2249ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2250ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2251ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2252if test -n "$ac_tool_prefix"; then
2253  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2254  do
2255    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2256set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2257echo "$as_me:$LINENO: checking for $ac_word" >&5
2258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2259if test "${ac_cv_prog_CXX+set}" = set; then
2260  echo $ECHO_N "(cached) $ECHO_C" >&6
2261else
2262  if test -n "$CXX"; then
2263  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2264else
2265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266for as_dir in $PATH
2267do
2268  IFS=$as_save_IFS
2269  test -z "$as_dir" && as_dir=.
2270  for ac_exec_ext in '' $ac_executable_extensions; do
2271  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2272    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2273    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274    break 2
2275  fi
2276done
2277done
2278
2279fi
2280fi
2281CXX=$ac_cv_prog_CXX
2282if test -n "$CXX"; then
2283  echo "$as_me:$LINENO: result: $CXX" >&5
2284echo "${ECHO_T}$CXX" >&6
2285else
2286  echo "$as_me:$LINENO: result: no" >&5
2287echo "${ECHO_T}no" >&6
2288fi
2289
2290    test -n "$CXX" && break
2291  done
2292fi
2293if test -z "$CXX"; then
2294  ac_ct_CXX=$CXX
2295  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2296do
2297  # Extract the first word of "$ac_prog", so it can be a program name with args.
2298set dummy $ac_prog; ac_word=$2
2299echo "$as_me:$LINENO: checking for $ac_word" >&5
2300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2301if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2302  echo $ECHO_N "(cached) $ECHO_C" >&6
2303else
2304  if test -n "$ac_ct_CXX"; then
2305  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2306else
2307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308for as_dir in $PATH
2309do
2310  IFS=$as_save_IFS
2311  test -z "$as_dir" && as_dir=.
2312  for ac_exec_ext in '' $ac_executable_extensions; do
2313  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2314    ac_cv_prog_ac_ct_CXX="$ac_prog"
2315    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316    break 2
2317  fi
2318done
2319done
2320
2321fi
2322fi
2323ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2324if test -n "$ac_ct_CXX"; then
2325  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2326echo "${ECHO_T}$ac_ct_CXX" >&6
2327else
2328  echo "$as_me:$LINENO: result: no" >&5
2329echo "${ECHO_T}no" >&6
2330fi
2331
2332  test -n "$ac_ct_CXX" && break
2333done
2334test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2335
2336  CXX=$ac_ct_CXX
2337fi
2338
2339
2340# Provide some information about the compiler.
2341echo "$as_me:$LINENO:" \
2342     "checking for C++ compiler version" >&5
2343ac_compiler=`set X $ac_compile; echo $2`
2344{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2345  (eval $ac_compiler --version </dev/null >&5) 2>&5
2346  ac_status=$?
2347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348  (exit $ac_status); }
2349{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2350  (eval $ac_compiler -v </dev/null >&5) 2>&5
2351  ac_status=$?
2352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353  (exit $ac_status); }
2354{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2355  (eval $ac_compiler -V </dev/null >&5) 2>&5
2356  ac_status=$?
2357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358  (exit $ac_status); }
2359
2360cat >conftest.$ac_ext <<_ACEOF
2361#line $LINENO "configure"
2362/* confdefs.h.  */
2363_ACEOF
2364cat confdefs.h >>conftest.$ac_ext
2365cat >>conftest.$ac_ext <<_ACEOF
2366/* end confdefs.h.  */
2367
2368int
2369main ()
2370{
2371
2372  ;
2373  return 0;
2374}
2375_ACEOF
2376ac_clean_files_save=$ac_clean_files
2377ac_clean_files="$ac_clean_files a.out a.exe b.out"
2378# Try to create an executable without -o first, disregard a.out.
2379# It will help us diagnose broken compilers, and finding out an intuition
2380# of exeext.
2381echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2382echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2383ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2384if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2385  (eval $ac_link_default) 2>&5
2386  ac_status=$?
2387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388  (exit $ac_status); }; then
2389  # Find the output, starting from the most likely.  This scheme is
2390# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2391# resort.
2392
2393# Be careful to initialize this variable, since it used to be cached.
2394# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2395ac_cv_exeext=
2396# b.out is created by i960 compilers.
2397for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2398do
2399  test -f "$ac_file" || continue
2400  case $ac_file in
2401    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2402        ;;
2403    conftest.$ac_ext )
2404        # This is the source file.
2405        ;;
2406    [ab].out )
2407        # We found the default executable, but exeext='' is most
2408        # certainly right.
2409        break;;
2410    *.* )
2411        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2412        # FIXME: I believe we export ac_cv_exeext for Libtool,
2413        # but it would be cool to find out if it's true.  Does anybody
2414        # maintain Libtool? --akim.
2415        export ac_cv_exeext
2416        break;;
2417    * )
2418        break;;
2419  esac
2420done
2421else
2422  echo "$as_me: failed program was:" >&5
2423sed 's/^/| /' conftest.$ac_ext >&5
2424
2425{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2426See \`config.log' for more details." >&5
2427echo "$as_me: error: C++ compiler cannot create executables
2428See \`config.log' for more details." >&2;}
2429   { (exit 77); exit 77; }; }
2430fi
2431
2432ac_exeext=$ac_cv_exeext
2433echo "$as_me:$LINENO: result: $ac_file" >&5
2434echo "${ECHO_T}$ac_file" >&6
2435
2436# Check the compiler produces executables we can run.  If not, either
2437# the compiler is broken, or we cross compile.
2438echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2439echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2440# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2441# If not cross compiling, check that we can run a simple program.
2442if test "$cross_compiling" != yes; then
2443  if { ac_try='./$ac_file'
2444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445  (eval $ac_try) 2>&5
2446  ac_status=$?
2447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448  (exit $ac_status); }; }; then
2449    cross_compiling=no
2450  else
2451    if test "$cross_compiling" = maybe; then
2452	cross_compiling=yes
2453    else
2454	{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2455If you meant to cross compile, use \`--host'.
2456See \`config.log' for more details." >&5
2457echo "$as_me: error: cannot run C++ compiled programs.
2458If you meant to cross compile, use \`--host'.
2459See \`config.log' for more details." >&2;}
2460   { (exit 1); exit 1; }; }
2461    fi
2462  fi
2463fi
2464echo "$as_me:$LINENO: result: yes" >&5
2465echo "${ECHO_T}yes" >&6
2466
2467rm -f a.out a.exe conftest$ac_cv_exeext b.out
2468ac_clean_files=$ac_clean_files_save
2469# Check the compiler produces executables we can run.  If not, either
2470# the compiler is broken, or we cross compile.
2471echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2472echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2473echo "$as_me:$LINENO: result: $cross_compiling" >&5
2474echo "${ECHO_T}$cross_compiling" >&6
2475
2476echo "$as_me:$LINENO: checking for suffix of executables" >&5
2477echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2479  (eval $ac_link) 2>&5
2480  ac_status=$?
2481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482  (exit $ac_status); }; then
2483  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2484# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2485# work properly (i.e., refer to `conftest.exe'), while it won't with
2486# `rm'.
2487for ac_file in conftest.exe conftest conftest.*; do
2488  test -f "$ac_file" || continue
2489  case $ac_file in
2490    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2491    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2492          export ac_cv_exeext
2493          break;;
2494    * ) break;;
2495  esac
2496done
2497else
2498  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2499See \`config.log' for more details." >&5
2500echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2501See \`config.log' for more details." >&2;}
2502   { (exit 1); exit 1; }; }
2503fi
2504
2505rm -f conftest$ac_cv_exeext
2506echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2507echo "${ECHO_T}$ac_cv_exeext" >&6
2508
2509rm -f conftest.$ac_ext
2510EXEEXT=$ac_cv_exeext
2511ac_exeext=$EXEEXT
2512echo "$as_me:$LINENO: checking for suffix of object files" >&5
2513echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2514if test "${ac_cv_objext+set}" = set; then
2515  echo $ECHO_N "(cached) $ECHO_C" >&6
2516else
2517  cat >conftest.$ac_ext <<_ACEOF
2518#line $LINENO "configure"
2519/* confdefs.h.  */
2520_ACEOF
2521cat confdefs.h >>conftest.$ac_ext
2522cat >>conftest.$ac_ext <<_ACEOF
2523/* end confdefs.h.  */
2524
2525int
2526main ()
2527{
2528
2529  ;
2530  return 0;
2531}
2532_ACEOF
2533rm -f conftest.o conftest.obj
2534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2535  (eval $ac_compile) 2>&5
2536  ac_status=$?
2537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538  (exit $ac_status); }; then
2539  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2540  case $ac_file in
2541    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2542    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2543       break;;
2544  esac
2545done
2546else
2547  echo "$as_me: failed program was:" >&5
2548sed 's/^/| /' conftest.$ac_ext >&5
2549
2550{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2551See \`config.log' for more details." >&5
2552echo "$as_me: error: cannot compute suffix of object files: cannot compile
2553See \`config.log' for more details." >&2;}
2554   { (exit 1); exit 1; }; }
2555fi
2556
2557rm -f conftest.$ac_cv_objext conftest.$ac_ext
2558fi
2559echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2560echo "${ECHO_T}$ac_cv_objext" >&6
2561OBJEXT=$ac_cv_objext
2562ac_objext=$OBJEXT
2563echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2564echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2565if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2566  echo $ECHO_N "(cached) $ECHO_C" >&6
2567else
2568  cat >conftest.$ac_ext <<_ACEOF
2569#line $LINENO "configure"
2570/* confdefs.h.  */
2571_ACEOF
2572cat confdefs.h >>conftest.$ac_ext
2573cat >>conftest.$ac_ext <<_ACEOF
2574/* end confdefs.h.  */
2575
2576int
2577main ()
2578{
2579#ifndef __GNUC__
2580       choke me
2581#endif
2582
2583  ;
2584  return 0;
2585}
2586_ACEOF
2587rm -f conftest.$ac_objext
2588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589  (eval $ac_compile) 2>&5
2590  ac_status=$?
2591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592  (exit $ac_status); } &&
2593         { ac_try='test -s conftest.$ac_objext'
2594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595  (eval $ac_try) 2>&5
2596  ac_status=$?
2597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598  (exit $ac_status); }; }; then
2599  ac_compiler_gnu=yes
2600else
2601  echo "$as_me: failed program was:" >&5
2602sed 's/^/| /' conftest.$ac_ext >&5
2603
2604ac_compiler_gnu=no
2605fi
2606rm -f conftest.$ac_objext conftest.$ac_ext
2607ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2608
2609fi
2610echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2611echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2612GXX=`test $ac_compiler_gnu = yes && echo yes`
2613ac_test_CXXFLAGS=${CXXFLAGS+set}
2614ac_save_CXXFLAGS=$CXXFLAGS
2615CXXFLAGS="-g"
2616echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2617echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2618if test "${ac_cv_prog_cxx_g+set}" = set; then
2619  echo $ECHO_N "(cached) $ECHO_C" >&6
2620else
2621  cat >conftest.$ac_ext <<_ACEOF
2622#line $LINENO "configure"
2623/* confdefs.h.  */
2624_ACEOF
2625cat confdefs.h >>conftest.$ac_ext
2626cat >>conftest.$ac_ext <<_ACEOF
2627/* end confdefs.h.  */
2628
2629int
2630main ()
2631{
2632
2633  ;
2634  return 0;
2635}
2636_ACEOF
2637rm -f conftest.$ac_objext
2638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2639  (eval $ac_compile) 2>&5
2640  ac_status=$?
2641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642  (exit $ac_status); } &&
2643         { ac_try='test -s conftest.$ac_objext'
2644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645  (eval $ac_try) 2>&5
2646  ac_status=$?
2647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648  (exit $ac_status); }; }; then
2649  ac_cv_prog_cxx_g=yes
2650else
2651  echo "$as_me: failed program was:" >&5
2652sed 's/^/| /' conftest.$ac_ext >&5
2653
2654ac_cv_prog_cxx_g=no
2655fi
2656rm -f conftest.$ac_objext conftest.$ac_ext
2657fi
2658echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2659echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2660if test "$ac_test_CXXFLAGS" = set; then
2661  CXXFLAGS=$ac_save_CXXFLAGS
2662elif test $ac_cv_prog_cxx_g = yes; then
2663  if test "$GXX" = yes; then
2664    CXXFLAGS="-g -O2"
2665  else
2666    CXXFLAGS="-g"
2667  fi
2668else
2669  if test "$GXX" = yes; then
2670    CXXFLAGS="-O2"
2671  else
2672    CXXFLAGS=
2673  fi
2674fi
2675for ac_declaration in \
2676   ''\
2677   '#include <stdlib.h>' \
2678   'extern "C" void std::exit (int) throw (); using std::exit;' \
2679   'extern "C" void std::exit (int); using std::exit;' \
2680   'extern "C" void exit (int) throw ();' \
2681   'extern "C" void exit (int);' \
2682   'void exit (int);'
2683do
2684  cat >conftest.$ac_ext <<_ACEOF
2685#line $LINENO "configure"
2686/* confdefs.h.  */
2687_ACEOF
2688cat confdefs.h >>conftest.$ac_ext
2689cat >>conftest.$ac_ext <<_ACEOF
2690/* end confdefs.h.  */
2691#include <stdlib.h>
2692$ac_declaration
2693int
2694main ()
2695{
2696exit (42);
2697  ;
2698  return 0;
2699}
2700_ACEOF
2701rm -f conftest.$ac_objext
2702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2703  (eval $ac_compile) 2>&5
2704  ac_status=$?
2705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706  (exit $ac_status); } &&
2707         { ac_try='test -s conftest.$ac_objext'
2708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709  (eval $ac_try) 2>&5
2710  ac_status=$?
2711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712  (exit $ac_status); }; }; then
2713  :
2714else
2715  echo "$as_me: failed program was:" >&5
2716sed 's/^/| /' conftest.$ac_ext >&5
2717
2718continue
2719fi
2720rm -f conftest.$ac_objext conftest.$ac_ext
2721  cat >conftest.$ac_ext <<_ACEOF
2722#line $LINENO "configure"
2723/* confdefs.h.  */
2724_ACEOF
2725cat confdefs.h >>conftest.$ac_ext
2726cat >>conftest.$ac_ext <<_ACEOF
2727/* end confdefs.h.  */
2728$ac_declaration
2729int
2730main ()
2731{
2732exit (42);
2733  ;
2734  return 0;
2735}
2736_ACEOF
2737rm -f conftest.$ac_objext
2738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2739  (eval $ac_compile) 2>&5
2740  ac_status=$?
2741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742  (exit $ac_status); } &&
2743         { ac_try='test -s conftest.$ac_objext'
2744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745  (eval $ac_try) 2>&5
2746  ac_status=$?
2747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748  (exit $ac_status); }; }; then
2749  break
2750else
2751  echo "$as_me: failed program was:" >&5
2752sed 's/^/| /' conftest.$ac_ext >&5
2753
2754fi
2755rm -f conftest.$ac_objext conftest.$ac_ext
2756done
2757rm -f conftest*
2758if test -n "$ac_declaration"; then
2759  echo '#ifdef __cplusplus' >>confdefs.h
2760  echo $ac_declaration      >>confdefs.h
2761  echo '#endif'             >>confdefs.h
2762fi
2763
2764ac_ext=c
2765ac_cpp='$CPP $CPPFLAGS'
2766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2768ac_compiler_gnu=$ac_cv_c_compiler_gnu
2769
2770ac_ext=c
2771ac_cpp='$CPP $CPPFLAGS'
2772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774ac_compiler_gnu=$ac_cv_c_compiler_gnu
2775if test -n "$ac_tool_prefix"; then
2776  for ac_prog in gcc
2777  do
2778    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2779set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2780echo "$as_me:$LINENO: checking for $ac_word" >&5
2781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2782if test "${ac_cv_prog_CC+set}" = set; then
2783  echo $ECHO_N "(cached) $ECHO_C" >&6
2784else
2785  if test -n "$CC"; then
2786  ac_cv_prog_CC="$CC" # Let the user override the test.
2787else
2788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789for as_dir in $PATH
2790do
2791  IFS=$as_save_IFS
2792  test -z "$as_dir" && as_dir=.
2793  for ac_exec_ext in '' $ac_executable_extensions; do
2794  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2796    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797    break 2
2798  fi
2799done
2800done
2801
2802fi
2803fi
2804CC=$ac_cv_prog_CC
2805if test -n "$CC"; then
2806  echo "$as_me:$LINENO: result: $CC" >&5
2807echo "${ECHO_T}$CC" >&6
2808else
2809  echo "$as_me:$LINENO: result: no" >&5
2810echo "${ECHO_T}no" >&6
2811fi
2812
2813    test -n "$CC" && break
2814  done
2815fi
2816if test -z "$CC"; then
2817  ac_ct_CC=$CC
2818  for ac_prog in gcc
2819do
2820  # Extract the first word of "$ac_prog", so it can be a program name with args.
2821set dummy $ac_prog; ac_word=$2
2822echo "$as_me:$LINENO: checking for $ac_word" >&5
2823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2824if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2825  echo $ECHO_N "(cached) $ECHO_C" >&6
2826else
2827  if test -n "$ac_ct_CC"; then
2828  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2829else
2830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831for as_dir in $PATH
2832do
2833  IFS=$as_save_IFS
2834  test -z "$as_dir" && as_dir=.
2835  for ac_exec_ext in '' $ac_executable_extensions; do
2836  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2837    ac_cv_prog_ac_ct_CC="$ac_prog"
2838    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2839    break 2
2840  fi
2841done
2842done
2843
2844fi
2845fi
2846ac_ct_CC=$ac_cv_prog_ac_ct_CC
2847if test -n "$ac_ct_CC"; then
2848  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2849echo "${ECHO_T}$ac_ct_CC" >&6
2850else
2851  echo "$as_me:$LINENO: result: no" >&5
2852echo "${ECHO_T}no" >&6
2853fi
2854
2855  test -n "$ac_ct_CC" && break
2856done
2857
2858  CC=$ac_ct_CC
2859fi
2860
2861
2862test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2863See \`config.log' for more details." >&5
2864echo "$as_me: error: no acceptable C compiler found in \$PATH
2865See \`config.log' for more details." >&2;}
2866   { (exit 1); exit 1; }; }
2867
2868# Provide some information about the compiler.
2869echo "$as_me:$LINENO:" \
2870     "checking for C compiler version" >&5
2871ac_compiler=`set X $ac_compile; echo $2`
2872{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2873  (eval $ac_compiler --version </dev/null >&5) 2>&5
2874  ac_status=$?
2875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876  (exit $ac_status); }
2877{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2878  (eval $ac_compiler -v </dev/null >&5) 2>&5
2879  ac_status=$?
2880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881  (exit $ac_status); }
2882{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2883  (eval $ac_compiler -V </dev/null >&5) 2>&5
2884  ac_status=$?
2885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886  (exit $ac_status); }
2887
2888echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2889echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2890if test "${ac_cv_c_compiler_gnu+set}" = set; then
2891  echo $ECHO_N "(cached) $ECHO_C" >&6
2892else
2893  cat >conftest.$ac_ext <<_ACEOF
2894#line $LINENO "configure"
2895/* confdefs.h.  */
2896_ACEOF
2897cat confdefs.h >>conftest.$ac_ext
2898cat >>conftest.$ac_ext <<_ACEOF
2899/* end confdefs.h.  */
2900
2901int
2902main ()
2903{
2904#ifndef __GNUC__
2905       choke me
2906#endif
2907
2908  ;
2909  return 0;
2910}
2911_ACEOF
2912rm -f conftest.$ac_objext
2913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2914  (eval $ac_compile) 2>&5
2915  ac_status=$?
2916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917  (exit $ac_status); } &&
2918         { ac_try='test -s conftest.$ac_objext'
2919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920  (eval $ac_try) 2>&5
2921  ac_status=$?
2922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923  (exit $ac_status); }; }; then
2924  ac_compiler_gnu=yes
2925else
2926  echo "$as_me: failed program was:" >&5
2927sed 's/^/| /' conftest.$ac_ext >&5
2928
2929ac_compiler_gnu=no
2930fi
2931rm -f conftest.$ac_objext conftest.$ac_ext
2932ac_cv_c_compiler_gnu=$ac_compiler_gnu
2933
2934fi
2935echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2936echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2937GCC=`test $ac_compiler_gnu = yes && echo yes`
2938ac_test_CFLAGS=${CFLAGS+set}
2939ac_save_CFLAGS=$CFLAGS
2940CFLAGS="-g"
2941echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2942echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2943if test "${ac_cv_prog_cc_g+set}" = set; then
2944  echo $ECHO_N "(cached) $ECHO_C" >&6
2945else
2946  cat >conftest.$ac_ext <<_ACEOF
2947#line $LINENO "configure"
2948/* confdefs.h.  */
2949_ACEOF
2950cat confdefs.h >>conftest.$ac_ext
2951cat >>conftest.$ac_ext <<_ACEOF
2952/* end confdefs.h.  */
2953
2954int
2955main ()
2956{
2957
2958  ;
2959  return 0;
2960}
2961_ACEOF
2962rm -f conftest.$ac_objext
2963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2964  (eval $ac_compile) 2>&5
2965  ac_status=$?
2966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967  (exit $ac_status); } &&
2968         { ac_try='test -s conftest.$ac_objext'
2969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970  (eval $ac_try) 2>&5
2971  ac_status=$?
2972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973  (exit $ac_status); }; }; then
2974  ac_cv_prog_cc_g=yes
2975else
2976  echo "$as_me: failed program was:" >&5
2977sed 's/^/| /' conftest.$ac_ext >&5
2978
2979ac_cv_prog_cc_g=no
2980fi
2981rm -f conftest.$ac_objext conftest.$ac_ext
2982fi
2983echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2984echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2985if test "$ac_test_CFLAGS" = set; then
2986  CFLAGS=$ac_save_CFLAGS
2987elif test $ac_cv_prog_cc_g = yes; then
2988  if test "$GCC" = yes; then
2989    CFLAGS="-g -O2"
2990  else
2991    CFLAGS="-g"
2992  fi
2993else
2994  if test "$GCC" = yes; then
2995    CFLAGS="-O2"
2996  else
2997    CFLAGS=
2998  fi
2999fi
3000echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3001echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3002if test "${ac_cv_prog_cc_stdc+set}" = set; then
3003  echo $ECHO_N "(cached) $ECHO_C" >&6
3004else
3005  ac_cv_prog_cc_stdc=no
3006ac_save_CC=$CC
3007cat >conftest.$ac_ext <<_ACEOF
3008#line $LINENO "configure"
3009/* confdefs.h.  */
3010_ACEOF
3011cat confdefs.h >>conftest.$ac_ext
3012cat >>conftest.$ac_ext <<_ACEOF
3013/* end confdefs.h.  */
3014#include <stdarg.h>
3015#include <stdio.h>
3016#include <sys/types.h>
3017#include <sys/stat.h>
3018/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3019struct buf { int x; };
3020FILE * (*rcsopen) (struct buf *, struct stat *, int);
3021static char *e (p, i)
3022     char **p;
3023     int i;
3024{
3025  return p[i];
3026}
3027static char *f (char * (*g) (char **, int), char **p, ...)
3028{
3029  char *s;
3030  va_list v;
3031  va_start (v,p);
3032  s = g (p, va_arg (v,int));
3033  va_end (v);
3034  return s;
3035}
3036int test (int i, double x);
3037struct s1 {int (*f) (int a);};
3038struct s2 {int (*f) (double a);};
3039int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3040int argc;
3041char **argv;
3042int
3043main ()
3044{
3045return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3046  ;
3047  return 0;
3048}
3049_ACEOF
3050# Don't try gcc -ansi; that turns off useful extensions and
3051# breaks some systems' header files.
3052# AIX			-qlanglvl=ansi
3053# Ultrix and OSF/1	-std1
3054# HP-UX 10.20 and later	-Ae
3055# HP-UX older versions	-Aa -D_HPUX_SOURCE
3056# SVR4			-Xc -D__EXTENSIONS__
3057for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3058do
3059  CC="$ac_save_CC $ac_arg"
3060  rm -f conftest.$ac_objext
3061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3062  (eval $ac_compile) 2>&5
3063  ac_status=$?
3064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065  (exit $ac_status); } &&
3066         { ac_try='test -s conftest.$ac_objext'
3067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068  (eval $ac_try) 2>&5
3069  ac_status=$?
3070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071  (exit $ac_status); }; }; then
3072  ac_cv_prog_cc_stdc=$ac_arg
3073break
3074else
3075  echo "$as_me: failed program was:" >&5
3076sed 's/^/| /' conftest.$ac_ext >&5
3077
3078fi
3079rm -f conftest.$ac_objext
3080done
3081rm -f conftest.$ac_ext conftest.$ac_objext
3082CC=$ac_save_CC
3083
3084fi
3085
3086case "x$ac_cv_prog_cc_stdc" in
3087  x|xno)
3088    echo "$as_me:$LINENO: result: none needed" >&5
3089echo "${ECHO_T}none needed" >&6 ;;
3090  *)
3091    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3092echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3093    CC="$CC $ac_cv_prog_cc_stdc" ;;
3094esac
3095
3096# Some people use a C++ compiler to compile C.  Since we use `exit',
3097# in C++ we need to declare it.  In case someone uses the same compiler
3098# for both compiling C and C++ we need to have the C++ compiler decide
3099# the declaration of exit, since it's the most demanding environment.
3100cat >conftest.$ac_ext <<_ACEOF
3101#ifndef __cplusplus
3102  choke me
3103#endif
3104_ACEOF
3105rm -f conftest.$ac_objext
3106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3107  (eval $ac_compile) 2>&5
3108  ac_status=$?
3109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110  (exit $ac_status); } &&
3111         { ac_try='test -s conftest.$ac_objext'
3112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113  (eval $ac_try) 2>&5
3114  ac_status=$?
3115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116  (exit $ac_status); }; }; then
3117  for ac_declaration in \
3118   ''\
3119   '#include <stdlib.h>' \
3120   'extern "C" void std::exit (int) throw (); using std::exit;' \
3121   'extern "C" void std::exit (int); using std::exit;' \
3122   'extern "C" void exit (int) throw ();' \
3123   'extern "C" void exit (int);' \
3124   'void exit (int);'
3125do
3126  cat >conftest.$ac_ext <<_ACEOF
3127#line $LINENO "configure"
3128/* confdefs.h.  */
3129_ACEOF
3130cat confdefs.h >>conftest.$ac_ext
3131cat >>conftest.$ac_ext <<_ACEOF
3132/* end confdefs.h.  */
3133#include <stdlib.h>
3134$ac_declaration
3135int
3136main ()
3137{
3138exit (42);
3139  ;
3140  return 0;
3141}
3142_ACEOF
3143rm -f conftest.$ac_objext
3144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3145  (eval $ac_compile) 2>&5
3146  ac_status=$?
3147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148  (exit $ac_status); } &&
3149         { ac_try='test -s conftest.$ac_objext'
3150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151  (eval $ac_try) 2>&5
3152  ac_status=$?
3153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154  (exit $ac_status); }; }; then
3155  :
3156else
3157  echo "$as_me: failed program was:" >&5
3158sed 's/^/| /' conftest.$ac_ext >&5
3159
3160continue
3161fi
3162rm -f conftest.$ac_objext conftest.$ac_ext
3163  cat >conftest.$ac_ext <<_ACEOF
3164#line $LINENO "configure"
3165/* confdefs.h.  */
3166_ACEOF
3167cat confdefs.h >>conftest.$ac_ext
3168cat >>conftest.$ac_ext <<_ACEOF
3169/* end confdefs.h.  */
3170$ac_declaration
3171int
3172main ()
3173{
3174exit (42);
3175  ;
3176  return 0;
3177}
3178_ACEOF
3179rm -f conftest.$ac_objext
3180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3181  (eval $ac_compile) 2>&5
3182  ac_status=$?
3183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184  (exit $ac_status); } &&
3185         { ac_try='test -s conftest.$ac_objext'
3186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187  (eval $ac_try) 2>&5
3188  ac_status=$?
3189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190  (exit $ac_status); }; }; then
3191  break
3192else
3193  echo "$as_me: failed program was:" >&5
3194sed 's/^/| /' conftest.$ac_ext >&5
3195
3196fi
3197rm -f conftest.$ac_objext conftest.$ac_ext
3198done
3199rm -f conftest*
3200if test -n "$ac_declaration"; then
3201  echo '#ifdef __cplusplus' >>confdefs.h
3202  echo $ac_declaration      >>confdefs.h
3203  echo '#endif'             >>confdefs.h
3204fi
3205
3206else
3207  echo "$as_me: failed program was:" >&5
3208sed 's/^/| /' conftest.$ac_ext >&5
3209
3210fi
3211rm -f conftest.$ac_objext conftest.$ac_ext
3212ac_ext=c
3213ac_cpp='$CPP $CPPFLAGS'
3214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3216ac_compiler_gnu=$ac_cv_c_compiler_gnu
3217
3218ac_ext=c
3219ac_cpp='$CPP $CPPFLAGS'
3220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3222ac_compiler_gnu=$ac_cv_c_compiler_gnu
3223echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3224echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3225# On Suns, sometimes $CPP names a directory.
3226if test -n "$CPP" && test -d "$CPP"; then
3227  CPP=
3228fi
3229if test -z "$CPP"; then
3230  if test "${ac_cv_prog_CPP+set}" = set; then
3231  echo $ECHO_N "(cached) $ECHO_C" >&6
3232else
3233      # Double quotes because CPP needs to be expanded
3234    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3235    do
3236      ac_preproc_ok=false
3237for ac_c_preproc_warn_flag in '' yes
3238do
3239  # Use a header file that comes with gcc, so configuring glibc
3240  # with a fresh cross-compiler works.
3241  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3242  # <limits.h> exists even on freestanding compilers.
3243  # On the NeXT, cc -E runs the code through the compiler's parser,
3244  # not just through cpp. "Syntax error" is here to catch this case.
3245  cat >conftest.$ac_ext <<_ACEOF
3246#line $LINENO "configure"
3247/* confdefs.h.  */
3248_ACEOF
3249cat confdefs.h >>conftest.$ac_ext
3250cat >>conftest.$ac_ext <<_ACEOF
3251/* end confdefs.h.  */
3252#ifdef __STDC__
3253# include <limits.h>
3254#else
3255# include <assert.h>
3256#endif
3257                     Syntax error
3258_ACEOF
3259if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3260  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3261  ac_status=$?
3262  grep -v '^ *+' conftest.er1 >conftest.err
3263  rm -f conftest.er1
3264  cat conftest.err >&5
3265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266  (exit $ac_status); } >/dev/null; then
3267  if test -s conftest.err; then
3268    ac_cpp_err=$ac_c_preproc_warn_flag
3269  else
3270    ac_cpp_err=
3271  fi
3272else
3273  ac_cpp_err=yes
3274fi
3275if test -z "$ac_cpp_err"; then
3276  :
3277else
3278  echo "$as_me: failed program was:" >&5
3279sed 's/^/| /' conftest.$ac_ext >&5
3280
3281  # Broken: fails on valid input.
3282continue
3283fi
3284rm -f conftest.err conftest.$ac_ext
3285
3286  # OK, works on sane cases.  Now check whether non-existent headers
3287  # can be detected and how.
3288  cat >conftest.$ac_ext <<_ACEOF
3289#line $LINENO "configure"
3290/* confdefs.h.  */
3291_ACEOF
3292cat confdefs.h >>conftest.$ac_ext
3293cat >>conftest.$ac_ext <<_ACEOF
3294/* end confdefs.h.  */
3295#include <ac_nonexistent.h>
3296_ACEOF
3297if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3298  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3299  ac_status=$?
3300  grep -v '^ *+' conftest.er1 >conftest.err
3301  rm -f conftest.er1
3302  cat conftest.err >&5
3303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304  (exit $ac_status); } >/dev/null; then
3305  if test -s conftest.err; then
3306    ac_cpp_err=$ac_c_preproc_warn_flag
3307  else
3308    ac_cpp_err=
3309  fi
3310else
3311  ac_cpp_err=yes
3312fi
3313if test -z "$ac_cpp_err"; then
3314  # Broken: success on invalid input.
3315continue
3316else
3317  echo "$as_me: failed program was:" >&5
3318sed 's/^/| /' conftest.$ac_ext >&5
3319
3320  # Passes both tests.
3321ac_preproc_ok=:
3322break
3323fi
3324rm -f conftest.err conftest.$ac_ext
3325
3326done
3327# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3328rm -f conftest.err conftest.$ac_ext
3329if $ac_preproc_ok; then
3330  break
3331fi
3332
3333    done
3334    ac_cv_prog_CPP=$CPP
3335
3336fi
3337  CPP=$ac_cv_prog_CPP
3338else
3339  ac_cv_prog_CPP=$CPP
3340fi
3341echo "$as_me:$LINENO: result: $CPP" >&5
3342echo "${ECHO_T}$CPP" >&6
3343ac_preproc_ok=false
3344for ac_c_preproc_warn_flag in '' yes
3345do
3346  # Use a header file that comes with gcc, so configuring glibc
3347  # with a fresh cross-compiler works.
3348  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349  # <limits.h> exists even on freestanding compilers.
3350  # On the NeXT, cc -E runs the code through the compiler's parser,
3351  # not just through cpp. "Syntax error" is here to catch this case.
3352  cat >conftest.$ac_ext <<_ACEOF
3353#line $LINENO "configure"
3354/* confdefs.h.  */
3355_ACEOF
3356cat confdefs.h >>conftest.$ac_ext
3357cat >>conftest.$ac_ext <<_ACEOF
3358/* end confdefs.h.  */
3359#ifdef __STDC__
3360# include <limits.h>
3361#else
3362# include <assert.h>
3363#endif
3364                     Syntax error
3365_ACEOF
3366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3367  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3368  ac_status=$?
3369  grep -v '^ *+' conftest.er1 >conftest.err
3370  rm -f conftest.er1
3371  cat conftest.err >&5
3372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373  (exit $ac_status); } >/dev/null; then
3374  if test -s conftest.err; then
3375    ac_cpp_err=$ac_c_preproc_warn_flag
3376  else
3377    ac_cpp_err=
3378  fi
3379else
3380  ac_cpp_err=yes
3381fi
3382if test -z "$ac_cpp_err"; then
3383  :
3384else
3385  echo "$as_me: failed program was:" >&5
3386sed 's/^/| /' conftest.$ac_ext >&5
3387
3388  # Broken: fails on valid input.
3389continue
3390fi
3391rm -f conftest.err conftest.$ac_ext
3392
3393  # OK, works on sane cases.  Now check whether non-existent headers
3394  # can be detected and how.
3395  cat >conftest.$ac_ext <<_ACEOF
3396#line $LINENO "configure"
3397/* confdefs.h.  */
3398_ACEOF
3399cat confdefs.h >>conftest.$ac_ext
3400cat >>conftest.$ac_ext <<_ACEOF
3401/* end confdefs.h.  */
3402#include <ac_nonexistent.h>
3403_ACEOF
3404if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3405  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3406  ac_status=$?
3407  grep -v '^ *+' conftest.er1 >conftest.err
3408  rm -f conftest.er1
3409  cat conftest.err >&5
3410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411  (exit $ac_status); } >/dev/null; then
3412  if test -s conftest.err; then
3413    ac_cpp_err=$ac_c_preproc_warn_flag
3414  else
3415    ac_cpp_err=
3416  fi
3417else
3418  ac_cpp_err=yes
3419fi
3420if test -z "$ac_cpp_err"; then
3421  # Broken: success on invalid input.
3422continue
3423else
3424  echo "$as_me: failed program was:" >&5
3425sed 's/^/| /' conftest.$ac_ext >&5
3426
3427  # Passes both tests.
3428ac_preproc_ok=:
3429break
3430fi
3431rm -f conftest.err conftest.$ac_ext
3432
3433done
3434# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3435rm -f conftest.err conftest.$ac_ext
3436if $ac_preproc_ok; then
3437  :
3438else
3439  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3440See \`config.log' for more details." >&5
3441echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3442See \`config.log' for more details." >&2;}
3443   { (exit 1); exit 1; }; }
3444fi
3445
3446ac_ext=c
3447ac_cpp='$CPP $CPPFLAGS'
3448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451
3452
3453if test "$GCC" != "yes"
3454then
3455	{ { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3456echo "$as_me: error: gcc required but not found" >&2;}
3457   { (exit 1); exit 1; }; }
3458fi
3459
3460if test "$GXX" != "yes"
3461then
3462	{ { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3463echo "$as_me: error: g++ required but not found" >&2;}
3464   { (exit 1); exit 1; }; }
3465fi
3466
3467gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3468if test "$gccmajor" -lt "3"
3469then
3470	{ { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3471echo "$as_me: error: gcc 3.x required" >&2;}
3472   { (exit 1); exit 1; }; }
3473fi
3474
3475 echo "$as_me:$LINENO: checking for GNU make" >&5
3476echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3477if test "${_cv_gnu_make_command+set}" = set; then
3478  echo $ECHO_N "(cached) $ECHO_C" >&6
3479else
3480  _cv_gnu_make_command='' ;
3481                for a in "$MAKE" make gmake gnumake ; do
3482                        if test -z "$a" ; then continue ; fi ;
3483                        if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3484                                _cv_gnu_make_command=$a ;
3485                                break;
3486                        fi
3487                done ;
3488
3489fi
3490echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3491echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3492        if test  "x$_cv_gnu_make_command" != "x"  ; then
3493                ifGNUmake='' ;
3494        else
3495                ifGNUmake='#' ;
3496                echo "$as_me:$LINENO: result: \"Not found\"" >&5
3497echo "${ECHO_T}\"Not found\"" >&6;
3498        fi
3499
3500
3501if test -z "$_cv_gnu_make_command"
3502then
3503	{ { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3504echo "$as_me: error: GNU Make required but not found" >&2;}
3505   { (exit 1); exit 1; }; }
3506fi
3507
3508
3509echo "$as_me:$LINENO: checking " >&5
3510echo $ECHO_N "checking ... $ECHO_C" >&6
3511if test "${ac_cv_has_flex+set}" = set; then
3512  echo $ECHO_N "(cached) $ECHO_C" >&6
3513else
3514  for ac_prog in flex lex
3515do
3516  # Extract the first word of "$ac_prog", so it can be a program name with args.
3517set dummy $ac_prog; ac_word=$2
3518echo "$as_me:$LINENO: checking for $ac_word" >&5
3519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3520if test "${ac_cv_prog_LEX+set}" = set; then
3521  echo $ECHO_N "(cached) $ECHO_C" >&6
3522else
3523  if test -n "$LEX"; then
3524  ac_cv_prog_LEX="$LEX" # Let the user override the test.
3525else
3526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527for as_dir in $PATH
3528do
3529  IFS=$as_save_IFS
3530  test -z "$as_dir" && as_dir=.
3531  for ac_exec_ext in '' $ac_executable_extensions; do
3532  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3533    ac_cv_prog_LEX="$ac_prog"
3534    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3535    break 2
3536  fi
3537done
3538done
3539
3540fi
3541fi
3542LEX=$ac_cv_prog_LEX
3543if test -n "$LEX"; then
3544  echo "$as_me:$LINENO: result: $LEX" >&5
3545echo "${ECHO_T}$LEX" >&6
3546else
3547  echo "$as_me:$LINENO: result: no" >&5
3548echo "${ECHO_T}no" >&6
3549fi
3550
3551  test -n "$LEX" && break
3552done
3553test -n "$LEX" || LEX=":"
3554
3555if test -z "$LEXLIB"
3556then
3557  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3558echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3559if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3560  echo $ECHO_N "(cached) $ECHO_C" >&6
3561else
3562  ac_check_lib_save_LIBS=$LIBS
3563LIBS="-lfl  $LIBS"
3564cat >conftest.$ac_ext <<_ACEOF
3565#line $LINENO "configure"
3566/* confdefs.h.  */
3567_ACEOF
3568cat confdefs.h >>conftest.$ac_ext
3569cat >>conftest.$ac_ext <<_ACEOF
3570/* end confdefs.h.  */
3571
3572/* Override any gcc2 internal prototype to avoid an error.  */
3573#ifdef __cplusplus
3574extern "C"
3575#endif
3576/* We use char because int might match the return type of a gcc2
3577   builtin and then its argument prototype would still apply.  */
3578char yywrap ();
3579int
3580main ()
3581{
3582yywrap ();
3583  ;
3584  return 0;
3585}
3586_ACEOF
3587rm -f conftest.$ac_objext conftest$ac_exeext
3588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3589  (eval $ac_link) 2>&5
3590  ac_status=$?
3591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592  (exit $ac_status); } &&
3593         { ac_try='test -s conftest$ac_exeext'
3594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595  (eval $ac_try) 2>&5
3596  ac_status=$?
3597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598  (exit $ac_status); }; }; then
3599  ac_cv_lib_fl_yywrap=yes
3600else
3601  echo "$as_me: failed program was:" >&5
3602sed 's/^/| /' conftest.$ac_ext >&5
3603
3604ac_cv_lib_fl_yywrap=no
3605fi
3606rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3607LIBS=$ac_check_lib_save_LIBS
3608fi
3609echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3610echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3611if test $ac_cv_lib_fl_yywrap = yes; then
3612  LEXLIB="-lfl"
3613else
3614  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3615echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3616if test "${ac_cv_lib_l_yywrap+set}" = set; then
3617  echo $ECHO_N "(cached) $ECHO_C" >&6
3618else
3619  ac_check_lib_save_LIBS=$LIBS
3620LIBS="-ll  $LIBS"
3621cat >conftest.$ac_ext <<_ACEOF
3622#line $LINENO "configure"
3623/* confdefs.h.  */
3624_ACEOF
3625cat confdefs.h >>conftest.$ac_ext
3626cat >>conftest.$ac_ext <<_ACEOF
3627/* end confdefs.h.  */
3628
3629/* Override any gcc2 internal prototype to avoid an error.  */
3630#ifdef __cplusplus
3631extern "C"
3632#endif
3633/* We use char because int might match the return type of a gcc2
3634   builtin and then its argument prototype would still apply.  */
3635char yywrap ();
3636int
3637main ()
3638{
3639yywrap ();
3640  ;
3641  return 0;
3642}
3643_ACEOF
3644rm -f conftest.$ac_objext conftest$ac_exeext
3645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3646  (eval $ac_link) 2>&5
3647  ac_status=$?
3648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649  (exit $ac_status); } &&
3650         { ac_try='test -s conftest$ac_exeext'
3651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652  (eval $ac_try) 2>&5
3653  ac_status=$?
3654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655  (exit $ac_status); }; }; then
3656  ac_cv_lib_l_yywrap=yes
3657else
3658  echo "$as_me: failed program was:" >&5
3659sed 's/^/| /' conftest.$ac_ext >&5
3660
3661ac_cv_lib_l_yywrap=no
3662fi
3663rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3664LIBS=$ac_check_lib_save_LIBS
3665fi
3666echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3667echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3668if test $ac_cv_lib_l_yywrap = yes; then
3669  LEXLIB="-ll"
3670fi
3671
3672fi
3673
3674fi
3675
3676if test "x$LEX" != "x:"; then
3677  echo "$as_me:$LINENO: checking lex output file root" >&5
3678echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3679if test "${ac_cv_prog_lex_root+set}" = set; then
3680  echo $ECHO_N "(cached) $ECHO_C" >&6
3681else
3682  # The minimal lex program is just a single line: %%.  But some broken lexes
3683# (Solaris, I think it was) want two %% lines, so accommodate them.
3684cat >conftest.l <<_ACEOF
3685%%
3686%%
3687_ACEOF
3688{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3689  (eval $LEX conftest.l) 2>&5
3690  ac_status=$?
3691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692  (exit $ac_status); }
3693if test -f lex.yy.c; then
3694  ac_cv_prog_lex_root=lex.yy
3695elif test -f lexyy.c; then
3696  ac_cv_prog_lex_root=lexyy
3697else
3698  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3699echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3700   { (exit 1); exit 1; }; }
3701fi
3702fi
3703echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3704echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3705rm -f conftest.l
3706LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3707
3708echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3709echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3710if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3711  echo $ECHO_N "(cached) $ECHO_C" >&6
3712else
3713  # POSIX says lex can declare yytext either as a pointer or an array; the
3714# default is implementation-dependent. Figure out which it is, since
3715# not all implementations provide the %pointer and %array declarations.
3716ac_cv_prog_lex_yytext_pointer=no
3717echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3718ac_save_LIBS=$LIBS
3719LIBS="$LIBS $LEXLIB"
3720cat >conftest.$ac_ext <<_ACEOF
3721`cat $LEX_OUTPUT_ROOT.c`
3722_ACEOF
3723rm -f conftest.$ac_objext conftest$ac_exeext
3724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3725  (eval $ac_link) 2>&5
3726  ac_status=$?
3727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728  (exit $ac_status); } &&
3729         { ac_try='test -s conftest$ac_exeext'
3730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731  (eval $ac_try) 2>&5
3732  ac_status=$?
3733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734  (exit $ac_status); }; }; then
3735  ac_cv_prog_lex_yytext_pointer=yes
3736else
3737  echo "$as_me: failed program was:" >&5
3738sed 's/^/| /' conftest.$ac_ext >&5
3739
3740fi
3741rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3742LIBS=$ac_save_LIBS
3743rm -f "${LEX_OUTPUT_ROOT}.c"
3744
3745fi
3746echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3747echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3748if test $ac_cv_prog_lex_yytext_pointer = yes; then
3749
3750cat >>confdefs.h <<\_ACEOF
3751#define YYTEXT_POINTER 1
3752_ACEOF
3753
3754fi
3755
3756fi
3757
3758fi
3759echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3760echo "${ECHO_T}$ac_cv_has_flex" >&6
3761if test "$LEX" != "flex"; then
3762  { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3763echo "$as_me: error: flex not found but required" >&2;}
3764   { (exit 1); exit 1; }; }
3765fi
3766
3767echo "$as_me:$LINENO: checking " >&5
3768echo $ECHO_N "checking ... $ECHO_C" >&6
3769if test "${ac_cv_has_bison+set}" = set; then
3770  echo $ECHO_N "(cached) $ECHO_C" >&6
3771else
3772  for ac_prog in 'bison -y' byacc
3773do
3774  # Extract the first word of "$ac_prog", so it can be a program name with args.
3775set dummy $ac_prog; ac_word=$2
3776echo "$as_me:$LINENO: checking for $ac_word" >&5
3777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3778if test "${ac_cv_prog_YACC+set}" = set; then
3779  echo $ECHO_N "(cached) $ECHO_C" >&6
3780else
3781  if test -n "$YACC"; then
3782  ac_cv_prog_YACC="$YACC" # Let the user override the test.
3783else
3784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785for as_dir in $PATH
3786do
3787  IFS=$as_save_IFS
3788  test -z "$as_dir" && as_dir=.
3789  for ac_exec_ext in '' $ac_executable_extensions; do
3790  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3791    ac_cv_prog_YACC="$ac_prog"
3792    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3793    break 2
3794  fi
3795done
3796done
3797
3798fi
3799fi
3800YACC=$ac_cv_prog_YACC
3801if test -n "$YACC"; then
3802  echo "$as_me:$LINENO: result: $YACC" >&5
3803echo "${ECHO_T}$YACC" >&6
3804else
3805  echo "$as_me:$LINENO: result: no" >&5
3806echo "${ECHO_T}no" >&6
3807fi
3808
3809  test -n "$YACC" && break
3810done
3811test -n "$YACC" || YACC="yacc"
3812
3813
3814fi
3815echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3816echo "${ECHO_T}$ac_cv_has_bison" >&6
3817if test "$YACC" != "bison -y"; then
3818  { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3819echo "$as_me: error: bison not found but required" >&2;}
3820   { (exit 1); exit 1; }; }
3821else
3822  YACC=bison
3823
3824fi
3825
3826
3827# Check whether --enable-shared or --disable-shared was given.
3828if test "${enable_shared+set}" = set; then
3829  enableval="$enable_shared"
3830  p=${PACKAGE-default}
3831    case $enableval in
3832    yes) enable_shared=yes ;;
3833    no) enable_shared=no ;;
3834    *)
3835      enable_shared=no
3836      # Look at the argument we got.  We use all the common list separators.
3837      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3838      for pkg in $enableval; do
3839	IFS="$lt_save_ifs"
3840	if test "X$pkg" = "X$p"; then
3841	  enable_shared=yes
3842	fi
3843      done
3844      IFS="$lt_save_ifs"
3845      ;;
3846    esac
3847else
3848  enable_shared=yes
3849fi;
3850
3851# Check whether --enable-static or --disable-static was given.
3852if test "${enable_static+set}" = set; then
3853  enableval="$enable_static"
3854  p=${PACKAGE-default}
3855    case $enableval in
3856    yes) enable_static=yes ;;
3857    no) enable_static=no ;;
3858    *)
3859     enable_static=no
3860      # Look at the argument we got.  We use all the common list separators.
3861      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3862      for pkg in $enableval; do
3863	IFS="$lt_save_ifs"
3864	if test "X$pkg" = "X$p"; then
3865	  enable_static=yes
3866	fi
3867      done
3868      IFS="$lt_save_ifs"
3869      ;;
3870    esac
3871else
3872  enable_static=yes
3873fi;
3874
3875# Check whether --enable-fast-install or --disable-fast-install was given.
3876if test "${enable_fast_install+set}" = set; then
3877  enableval="$enable_fast_install"
3878  p=${PACKAGE-default}
3879    case $enableval in
3880    yes) enable_fast_install=yes ;;
3881    no) enable_fast_install=no ;;
3882    *)
3883      enable_fast_install=no
3884      # Look at the argument we got.  We use all the common list separators.
3885      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3886      for pkg in $enableval; do
3887	IFS="$lt_save_ifs"
3888	if test "X$pkg" = "X$p"; then
3889	  enable_fast_install=yes
3890	fi
3891      done
3892      IFS="$lt_save_ifs"
3893      ;;
3894    esac
3895else
3896  enable_fast_install=yes
3897fi;
3898
3899echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3900echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3901if test "${lt_cv_path_SED+set}" = set; then
3902  echo $ECHO_N "(cached) $ECHO_C" >&6
3903else
3904  # Loop through the user's path and test for sed and gsed.
3905# Then use that list of sed's as ones to test for truncation.
3906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907for as_dir in $PATH
3908do
3909  IFS=$as_save_IFS
3910  test -z "$as_dir" && as_dir=.
3911  for lt_ac_prog in sed gsed; do
3912    for ac_exec_ext in '' $ac_executable_extensions; do
3913      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3914        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3915      fi
3916    done
3917  done
3918done
3919lt_ac_max=0
3920lt_ac_count=0
3921# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3922# along with /bin/sed that truncates output.
3923for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3924  test ! -f $lt_ac_sed && break
3925  cat /dev/null > conftest.in
3926  lt_ac_count=0
3927  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3928  # Check for GNU sed and select it if it is found.
3929  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3930    lt_cv_path_SED=$lt_ac_sed
3931    break
3932  fi
3933  while true; do
3934    cat conftest.in conftest.in >conftest.tmp
3935    mv conftest.tmp conftest.in
3936    cp conftest.in conftest.nl
3937    echo >>conftest.nl
3938    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3939    cmp -s conftest.out conftest.nl || break
3940    # 10000 chars as input seems more than enough
3941    test $lt_ac_count -gt 10 && break
3942    lt_ac_count=`expr $lt_ac_count + 1`
3943    if test $lt_ac_count -gt $lt_ac_max; then
3944      lt_ac_max=$lt_ac_count
3945      lt_cv_path_SED=$lt_ac_sed
3946    fi
3947  done
3948done
3949SED=$lt_cv_path_SED
3950
3951fi
3952
3953echo "$as_me:$LINENO: result: $SED" >&5
3954echo "${ECHO_T}$SED" >&6
3955
3956echo "$as_me:$LINENO: checking for egrep" >&5
3957echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3958if test "${ac_cv_prog_egrep+set}" = set; then
3959  echo $ECHO_N "(cached) $ECHO_C" >&6
3960else
3961  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3962    then ac_cv_prog_egrep='grep -E'
3963    else ac_cv_prog_egrep='egrep'
3964    fi
3965fi
3966echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3967echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3968 EGREP=$ac_cv_prog_egrep
3969
3970
3971
3972# Check whether --with-gnu-ld or --without-gnu-ld was given.
3973if test "${with_gnu_ld+set}" = set; then
3974  withval="$with_gnu_ld"
3975  test "$withval" = no || with_gnu_ld=yes
3976else
3977  with_gnu_ld=no
3978fi;
3979ac_prog=ld
3980if test "$GCC" = yes; then
3981  # Check if gcc -print-prog-name=ld gives a path.
3982  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3983echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3984  case $host in
3985  *-*-mingw*)
3986    # gcc leaves a trailing carriage return which upsets mingw
3987    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3988  *)
3989    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3990  esac
3991  case $ac_prog in
3992    # Accept absolute paths.
3993    [\\/]* | ?:[\\/]*)
3994      re_direlt='/[^/][^/]*/\.\./'
3995      # Canonicalize the path of ld
3996      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3997      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3998	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3999      done
4000      test -z "$LD" && LD="$ac_prog"
4001      ;;
4002  "")
4003    # If it fails, then pretend we aren't using GCC.
4004    ac_prog=ld
4005    ;;
4006  *)
4007    # If it is relative, then search for the first ld in PATH.
4008    with_gnu_ld=unknown
4009    ;;
4010  esac
4011elif test "$with_gnu_ld" = yes; then
4012  echo "$as_me:$LINENO: checking for GNU ld" >&5
4013echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4014else
4015  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4016echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4017fi
4018if test "${lt_cv_path_LD+set}" = set; then
4019  echo $ECHO_N "(cached) $ECHO_C" >&6
4020else
4021  if test -z "$LD"; then
4022  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4023  for ac_dir in $PATH; do
4024    IFS="$lt_save_ifs"
4025    test -z "$ac_dir" && ac_dir=.
4026    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4027      lt_cv_path_LD="$ac_dir/$ac_prog"
4028      # Check to see if the program is GNU ld.  I'd rather use --version,
4029      # but apparently some GNU ld's only accept -v.
4030      # Break only if it was the GNU/non-GNU ld that we prefer.
4031      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4032      *GNU* | *'with BFD'*)
4033	test "$with_gnu_ld" != no && break
4034	;;
4035      *)
4036	test "$with_gnu_ld" != yes && break
4037	;;
4038      esac
4039    fi
4040  done
4041  IFS="$lt_save_ifs"
4042else
4043  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4044fi
4045fi
4046
4047LD="$lt_cv_path_LD"
4048if test -n "$LD"; then
4049  echo "$as_me:$LINENO: result: $LD" >&5
4050echo "${ECHO_T}$LD" >&6
4051else
4052  echo "$as_me:$LINENO: result: no" >&5
4053echo "${ECHO_T}no" >&6
4054fi
4055test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4056echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4057   { (exit 1); exit 1; }; }
4058echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4059echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4060if test "${lt_cv_prog_gnu_ld+set}" = set; then
4061  echo $ECHO_N "(cached) $ECHO_C" >&6
4062else
4063  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4064case `"$LD" -v 2>&1 </dev/null` in
4065*GNU* | *'with BFD'*)
4066  lt_cv_prog_gnu_ld=yes
4067  ;;
4068*)
4069  lt_cv_prog_gnu_ld=no
4070  ;;
4071esac
4072fi
4073echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4074echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4075with_gnu_ld=$lt_cv_prog_gnu_ld
4076
4077
4078echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4079echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4080if test "${lt_cv_ld_reload_flag+set}" = set; then
4081  echo $ECHO_N "(cached) $ECHO_C" >&6
4082else
4083  lt_cv_ld_reload_flag='-r'
4084fi
4085echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4086echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4087reload_flag=$lt_cv_ld_reload_flag
4088case $reload_flag in
4089"" | " "*) ;;
4090*) reload_flag=" $reload_flag" ;;
4091esac
4092reload_cmds='$LD$reload_flag -o $output$reload_objs'
4093
4094echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4095echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4096if test "${lt_cv_path_NM+set}" = set; then
4097  echo $ECHO_N "(cached) $ECHO_C" >&6
4098else
4099  if test -n "$NM"; then
4100  # Let the user override the test.
4101  lt_cv_path_NM="$NM"
4102else
4103  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4104  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4105    IFS="$lt_save_ifs"
4106    test -z "$ac_dir" && ac_dir=.
4107    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4108    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4109      # Check to see if the nm accepts a BSD-compat flag.
4110      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4111      #   nm: unknown option "B" ignored
4112      # Tru64's nm complains that /dev/null is an invalid object file
4113      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4114      */dev/null* | *'Invalid file or object type'*)
4115	lt_cv_path_NM="$tmp_nm -B"
4116	break
4117        ;;
4118      *)
4119	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4120	*/dev/null*)
4121	  lt_cv_path_NM="$tmp_nm -p"
4122	  break
4123	  ;;
4124	*)
4125	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4126	  continue # so that we can try to find one that supports BSD flags
4127	  ;;
4128	esac
4129      esac
4130    fi
4131  done
4132  IFS="$lt_save_ifs"
4133  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4134fi
4135fi
4136echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4137echo "${ECHO_T}$lt_cv_path_NM" >&6
4138NM="$lt_cv_path_NM"
4139
4140echo "$as_me:$LINENO: checking whether ln -s works" >&5
4141echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4142LN_S=$as_ln_s
4143if test "$LN_S" = "ln -s"; then
4144  echo "$as_me:$LINENO: result: yes" >&5
4145echo "${ECHO_T}yes" >&6
4146else
4147  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4148echo "${ECHO_T}no, using $LN_S" >&6
4149fi
4150
4151echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4152echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4153if test "${lt_cv_deplibs_check_method+set}" = set; then
4154  echo $ECHO_N "(cached) $ECHO_C" >&6
4155else
4156  lt_cv_file_magic_cmd='$MAGIC_CMD'
4157lt_cv_file_magic_test_file=
4158lt_cv_deplibs_check_method='unknown'
4159# Need to set the preceding variable on all platforms that support
4160# interlibrary dependencies.
4161# 'none' -- dependencies not supported.
4162# `unknown' -- same as none, but documents that we really don't know.
4163# 'pass_all' -- all dependencies passed with no checks.
4164# 'test_compile' -- check by making test program.
4165# 'file_magic [[regex]]' -- check by looking for files in library path
4166# which responds to the $file_magic_cmd with a given extended regex.
4167# If you have `file' or equivalent on your system and you're not sure
4168# whether `pass_all' will *always* work, you probably want this one.
4169
4170case $host_os in
4171aix4* | aix5*)
4172  lt_cv_deplibs_check_method=pass_all
4173  ;;
4174
4175beos*)
4176  lt_cv_deplibs_check_method=pass_all
4177  ;;
4178
4179bsdi4*)
4180  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4181  lt_cv_file_magic_cmd='/usr/bin/file -L'
4182  lt_cv_file_magic_test_file=/shlib/libc.so
4183  ;;
4184
4185cygwin* | mingw* | pw32*)
4186  # win32_libid is a shell function defined in ltmain.sh
4187  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4188  lt_cv_file_magic_cmd='win32_libid'
4189  ;;
4190
4191darwin* | rhapsody*)
4192  # this will be overwritten by pass_all, but leave it in just in case
4193  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4194  lt_cv_file_magic_cmd='/usr/bin/file -L'
4195  case "$host_os" in
4196  rhapsody* | darwin1.[012])
4197    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4198    ;;
4199  *) # Darwin 1.3 on
4200    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4201    ;;
4202  esac
4203  lt_cv_deplibs_check_method=pass_all
4204  ;;
4205
4206freebsd*)
4207  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4208    case $host_cpu in
4209    i*86 )
4210      # Not sure whether the presence of OpenBSD here was a mistake.
4211      # Let's accept both of them until this is cleared up.
4212      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4213      lt_cv_file_magic_cmd=/usr/bin/file
4214      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4215      ;;
4216    esac
4217  else
4218    lt_cv_deplibs_check_method=pass_all
4219  fi
4220  ;;
4221
4222gnu*)
4223  lt_cv_deplibs_check_method=pass_all
4224  ;;
4225
4226hpux10.20* | hpux11*)
4227  lt_cv_file_magic_cmd=/usr/bin/file
4228  case "$host_cpu" in
4229  ia64*)
4230    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4231    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4232    ;;
4233  hppa*64*)
4234    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]'
4235    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4236    ;;
4237  *)
4238    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4239    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4240    ;;
4241  esac
4242  ;;
4243
4244irix5* | irix6* | nonstopux*)
4245  case $host_os in
4246  irix5* | nonstopux*)
4247    # this will be overridden with pass_all, but let us keep it just in case
4248    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4249    ;;
4250  *)
4251    case $LD in
4252    *-32|*"-32 ") libmagic=32-bit;;
4253    *-n32|*"-n32 ") libmagic=N32;;
4254    *-64|*"-64 ") libmagic=64-bit;;
4255    *) libmagic=never-match;;
4256    esac
4257    # this will be overridden with pass_all, but let us keep it just in case
4258    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4259    ;;
4260  esac
4261  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4262  lt_cv_deplibs_check_method=pass_all
4263  ;;
4264
4265# This must be Linux ELF.
4266linux*)
4267  case $host_cpu in
4268  alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4269    lt_cv_deplibs_check_method=pass_all ;;
4270  *)
4271    # glibc up to 2.1.1 does not perform some relocations on ARM
4272    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4273  esac
4274  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4275  ;;
4276
4277netbsd*)
4278  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4279    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4280  else
4281    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4282  fi
4283  ;;
4284
4285newos6*)
4286  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4287  lt_cv_file_magic_cmd=/usr/bin/file
4288  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4289  ;;
4290
4291nto-qnx)
4292  lt_cv_deplibs_check_method=unknown
4293  ;;
4294
4295openbsd*)
4296  lt_cv_file_magic_cmd=/usr/bin/file
4297  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4298  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4299    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4300  else
4301    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4302  fi
4303  ;;
4304
4305osf3* | osf4* | osf5*)
4306  # this will be overridden with pass_all, but let us keep it just in case
4307  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4308  lt_cv_file_magic_test_file=/shlib/libc.so
4309  lt_cv_deplibs_check_method=pass_all
4310  ;;
4311
4312sco3.2v5*)
4313  lt_cv_deplibs_check_method=pass_all
4314  ;;
4315
4316solaris*)
4317  lt_cv_deplibs_check_method=pass_all
4318  lt_cv_file_magic_test_file=/lib/libc.so
4319  ;;
4320
4321sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4322  case $host_vendor in
4323  motorola)
4324    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]'
4325    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4326    ;;
4327  ncr)
4328    lt_cv_deplibs_check_method=pass_all
4329    ;;
4330  sequent)
4331    lt_cv_file_magic_cmd='/bin/file'
4332    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4333    ;;
4334  sni)
4335    lt_cv_file_magic_cmd='/bin/file'
4336    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4337    lt_cv_file_magic_test_file=/lib/libc.so
4338    ;;
4339  siemens)
4340    lt_cv_deplibs_check_method=pass_all
4341    ;;
4342  esac
4343  ;;
4344
4345sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4346  lt_cv_deplibs_check_method=pass_all
4347  ;;
4348esac
4349
4350fi
4351echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4352echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4353file_magic_cmd=$lt_cv_file_magic_cmd
4354deplibs_check_method=$lt_cv_deplibs_check_method
4355test -z "$deplibs_check_method" && deplibs_check_method=unknown
4356
4357
4358
4359
4360# If no C compiler was specified, use CC.
4361LTCC=${LTCC-"$CC"}
4362
4363# Allow CC to be a program name with arguments.
4364compiler=$CC
4365
4366# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4367if test "${enable_libtool_lock+set}" = set; then
4368  enableval="$enable_libtool_lock"
4369
4370fi;
4371test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4372
4373# Some flags need to be propagated to the compiler or linker for good
4374# libtool support.
4375case $host in
4376ia64-*-hpux*)
4377  # Find out which ABI we are using.
4378  echo 'int i;' > conftest.$ac_ext
4379  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4380  (eval $ac_compile) 2>&5
4381  ac_status=$?
4382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383  (exit $ac_status); }; then
4384    case `/usr/bin/file conftest.$ac_objext` in
4385    *ELF-32*)
4386      HPUX_IA64_MODE="32"
4387      ;;
4388    *ELF-64*)
4389      HPUX_IA64_MODE="64"
4390      ;;
4391    esac
4392  fi
4393  rm -rf conftest*
4394  ;;
4395*-*-irix6*)
4396  # Find out which ABI we are using.
4397  echo '#line 4397 "configure"' > conftest.$ac_ext
4398  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4399  (eval $ac_compile) 2>&5
4400  ac_status=$?
4401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402  (exit $ac_status); }; then
4403   if test "$lt_cv_prog_gnu_ld" = yes; then
4404    case `/usr/bin/file conftest.$ac_objext` in
4405    *32-bit*)
4406      LD="${LD-ld} -melf32bsmip"
4407      ;;
4408    *N32*)
4409      LD="${LD-ld} -melf32bmipn32"
4410      ;;
4411    *64-bit*)
4412      LD="${LD-ld} -melf64bmip"
4413      ;;
4414    esac
4415   else
4416    case `/usr/bin/file conftest.$ac_objext` in
4417    *32-bit*)
4418      LD="${LD-ld} -32"
4419      ;;
4420    *N32*)
4421      LD="${LD-ld} -n32"
4422      ;;
4423    *64-bit*)
4424      LD="${LD-ld} -64"
4425      ;;
4426    esac
4427   fi
4428  fi
4429  rm -rf conftest*
4430  ;;
4431
4432x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4433  # Find out which ABI we are using.
4434  echo 'int i;' > conftest.$ac_ext
4435  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4436  (eval $ac_compile) 2>&5
4437  ac_status=$?
4438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439  (exit $ac_status); }; then
4440    case "`/usr/bin/file conftest.o`" in
4441    *32-bit*)
4442      case $host in
4443        x86_64-*linux*)
4444          LD="${LD-ld} -m elf_i386"
4445          ;;
4446        ppc64-*linux*)
4447          LD="${LD-ld} -m elf32ppclinux"
4448          ;;
4449        s390x-*linux*)
4450          LD="${LD-ld} -m elf_s390"
4451          ;;
4452        sparc64-*linux*)
4453          LD="${LD-ld} -m elf32_sparc"
4454          ;;
4455      esac
4456      ;;
4457    *64-bit*)
4458      case $host in
4459        x86_64-*linux*)
4460          LD="${LD-ld} -m elf_x86_64"
4461          ;;
4462        ppc*-*linux*|powerpc*-*linux*)
4463          LD="${LD-ld} -m elf64ppc"
4464          ;;
4465        s390*-*linux*)
4466          LD="${LD-ld} -m elf64_s390"
4467          ;;
4468        sparc*-*linux*)
4469          LD="${LD-ld} -m elf64_sparc"
4470          ;;
4471      esac
4472      ;;
4473    esac
4474  fi
4475  rm -rf conftest*
4476  ;;
4477
4478*-*-sco3.2v5*)
4479  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4480  SAVE_CFLAGS="$CFLAGS"
4481  CFLAGS="$CFLAGS -belf"
4482  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4483echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4484if test "${lt_cv_cc_needs_belf+set}" = set; then
4485  echo $ECHO_N "(cached) $ECHO_C" >&6
4486else
4487  ac_ext=c
4488ac_cpp='$CPP $CPPFLAGS'
4489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4491ac_compiler_gnu=$ac_cv_c_compiler_gnu
4492
4493     cat >conftest.$ac_ext <<_ACEOF
4494#line $LINENO "configure"
4495/* confdefs.h.  */
4496_ACEOF
4497cat confdefs.h >>conftest.$ac_ext
4498cat >>conftest.$ac_ext <<_ACEOF
4499/* end confdefs.h.  */
4500
4501int
4502main ()
4503{
4504
4505  ;
4506  return 0;
4507}
4508_ACEOF
4509rm -f conftest.$ac_objext conftest$ac_exeext
4510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4511  (eval $ac_link) 2>&5
4512  ac_status=$?
4513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514  (exit $ac_status); } &&
4515         { ac_try='test -s conftest$ac_exeext'
4516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517  (eval $ac_try) 2>&5
4518  ac_status=$?
4519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520  (exit $ac_status); }; }; then
4521  lt_cv_cc_needs_belf=yes
4522else
4523  echo "$as_me: failed program was:" >&5
4524sed 's/^/| /' conftest.$ac_ext >&5
4525
4526lt_cv_cc_needs_belf=no
4527fi
4528rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4529     ac_ext=c
4530ac_cpp='$CPP $CPPFLAGS'
4531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533ac_compiler_gnu=$ac_cv_c_compiler_gnu
4534
4535fi
4536echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4537echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4538  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4539    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4540    CFLAGS="$SAVE_CFLAGS"
4541  fi
4542  ;;
4543
4544esac
4545
4546need_locks="$enable_libtool_lock"
4547
4548
4549
4550echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4551echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4552if test "${ac_cv_header_stdc+set}" = set; then
4553  echo $ECHO_N "(cached) $ECHO_C" >&6
4554else
4555  cat >conftest.$ac_ext <<_ACEOF
4556#line $LINENO "configure"
4557/* confdefs.h.  */
4558_ACEOF
4559cat confdefs.h >>conftest.$ac_ext
4560cat >>conftest.$ac_ext <<_ACEOF
4561/* end confdefs.h.  */
4562#include <stdlib.h>
4563#include <stdarg.h>
4564#include <string.h>
4565#include <float.h>
4566
4567int
4568main ()
4569{
4570
4571  ;
4572  return 0;
4573}
4574_ACEOF
4575rm -f conftest.$ac_objext
4576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4577  (eval $ac_compile) 2>&5
4578  ac_status=$?
4579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580  (exit $ac_status); } &&
4581         { ac_try='test -s conftest.$ac_objext'
4582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583  (eval $ac_try) 2>&5
4584  ac_status=$?
4585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586  (exit $ac_status); }; }; then
4587  ac_cv_header_stdc=yes
4588else
4589  echo "$as_me: failed program was:" >&5
4590sed 's/^/| /' conftest.$ac_ext >&5
4591
4592ac_cv_header_stdc=no
4593fi
4594rm -f conftest.$ac_objext conftest.$ac_ext
4595
4596if test $ac_cv_header_stdc = yes; then
4597  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4598  cat >conftest.$ac_ext <<_ACEOF
4599#line $LINENO "configure"
4600/* confdefs.h.  */
4601_ACEOF
4602cat confdefs.h >>conftest.$ac_ext
4603cat >>conftest.$ac_ext <<_ACEOF
4604/* end confdefs.h.  */
4605#include <string.h>
4606
4607_ACEOF
4608if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4609  $EGREP "memchr" >/dev/null 2>&1; then
4610  :
4611else
4612  ac_cv_header_stdc=no
4613fi
4614rm -f conftest*
4615
4616fi
4617
4618if test $ac_cv_header_stdc = yes; then
4619  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4620  cat >conftest.$ac_ext <<_ACEOF
4621#line $LINENO "configure"
4622/* confdefs.h.  */
4623_ACEOF
4624cat confdefs.h >>conftest.$ac_ext
4625cat >>conftest.$ac_ext <<_ACEOF
4626/* end confdefs.h.  */
4627#include <stdlib.h>
4628
4629_ACEOF
4630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4631  $EGREP "free" >/dev/null 2>&1; then
4632  :
4633else
4634  ac_cv_header_stdc=no
4635fi
4636rm -f conftest*
4637
4638fi
4639
4640if test $ac_cv_header_stdc = yes; then
4641  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4642  if test "$cross_compiling" = yes; then
4643  :
4644else
4645  cat >conftest.$ac_ext <<_ACEOF
4646#line $LINENO "configure"
4647/* confdefs.h.  */
4648_ACEOF
4649cat confdefs.h >>conftest.$ac_ext
4650cat >>conftest.$ac_ext <<_ACEOF
4651/* end confdefs.h.  */
4652#include <ctype.h>
4653#if ((' ' & 0x0FF) == 0x020)
4654# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4655# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4656#else
4657# define ISLOWER(c) \
4658                   (('a' <= (c) && (c) <= 'i') \
4659                     || ('j' <= (c) && (c) <= 'r') \
4660                     || ('s' <= (c) && (c) <= 'z'))
4661# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4662#endif
4663
4664#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4665int
4666main ()
4667{
4668  int i;
4669  for (i = 0; i < 256; i++)
4670    if (XOR (islower (i), ISLOWER (i))
4671        || toupper (i) != TOUPPER (i))
4672      exit(2);
4673  exit (0);
4674}
4675_ACEOF
4676rm -f conftest$ac_exeext
4677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4678  (eval $ac_link) 2>&5
4679  ac_status=$?
4680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683  (eval $ac_try) 2>&5
4684  ac_status=$?
4685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686  (exit $ac_status); }; }; then
4687  :
4688else
4689  echo "$as_me: program exited with status $ac_status" >&5
4690echo "$as_me: failed program was:" >&5
4691sed 's/^/| /' conftest.$ac_ext >&5
4692
4693( exit $ac_status )
4694ac_cv_header_stdc=no
4695fi
4696rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4697fi
4698fi
4699fi
4700echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4701echo "${ECHO_T}$ac_cv_header_stdc" >&6
4702if test $ac_cv_header_stdc = yes; then
4703
4704cat >>confdefs.h <<\_ACEOF
4705#define STDC_HEADERS 1
4706_ACEOF
4707
4708fi
4709
4710# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4721                  inttypes.h stdint.h unistd.h
4722do
4723as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4724echo "$as_me:$LINENO: checking for $ac_header" >&5
4725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4726if eval "test \"\${$as_ac_Header+set}\" = set"; then
4727  echo $ECHO_N "(cached) $ECHO_C" >&6
4728else
4729  cat >conftest.$ac_ext <<_ACEOF
4730#line $LINENO "configure"
4731/* confdefs.h.  */
4732_ACEOF
4733cat confdefs.h >>conftest.$ac_ext
4734cat >>conftest.$ac_ext <<_ACEOF
4735/* end confdefs.h.  */
4736$ac_includes_default
4737
4738#include <$ac_header>
4739_ACEOF
4740rm -f conftest.$ac_objext
4741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4742  (eval $ac_compile) 2>&5
4743  ac_status=$?
4744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745  (exit $ac_status); } &&
4746         { ac_try='test -s conftest.$ac_objext'
4747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748  (eval $ac_try) 2>&5
4749  ac_status=$?
4750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751  (exit $ac_status); }; }; then
4752  eval "$as_ac_Header=yes"
4753else
4754  echo "$as_me: failed program was:" >&5
4755sed 's/^/| /' conftest.$ac_ext >&5
4756
4757eval "$as_ac_Header=no"
4758fi
4759rm -f conftest.$ac_objext conftest.$ac_ext
4760fi
4761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4763if test `eval echo '${'$as_ac_Header'}'` = yes; then
4764  cat >>confdefs.h <<_ACEOF
4765#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4766_ACEOF
4767
4768fi
4769
4770done
4771
4772
4773
4774for ac_header in dlfcn.h
4775do
4776as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4777if eval "test \"\${$as_ac_Header+set}\" = set"; then
4778  echo "$as_me:$LINENO: checking for $ac_header" >&5
4779echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4780if eval "test \"\${$as_ac_Header+set}\" = set"; then
4781  echo $ECHO_N "(cached) $ECHO_C" >&6
4782fi
4783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4784echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4785else
4786  # Is the header compilable?
4787echo "$as_me:$LINENO: checking $ac_header usability" >&5
4788echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4789cat >conftest.$ac_ext <<_ACEOF
4790#line $LINENO "configure"
4791/* confdefs.h.  */
4792_ACEOF
4793cat confdefs.h >>conftest.$ac_ext
4794cat >>conftest.$ac_ext <<_ACEOF
4795/* end confdefs.h.  */
4796$ac_includes_default
4797#include <$ac_header>
4798_ACEOF
4799rm -f conftest.$ac_objext
4800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4801  (eval $ac_compile) 2>&5
4802  ac_status=$?
4803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804  (exit $ac_status); } &&
4805         { ac_try='test -s conftest.$ac_objext'
4806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807  (eval $ac_try) 2>&5
4808  ac_status=$?
4809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810  (exit $ac_status); }; }; then
4811  ac_header_compiler=yes
4812else
4813  echo "$as_me: failed program was:" >&5
4814sed 's/^/| /' conftest.$ac_ext >&5
4815
4816ac_header_compiler=no
4817fi
4818rm -f conftest.$ac_objext conftest.$ac_ext
4819echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4820echo "${ECHO_T}$ac_header_compiler" >&6
4821
4822# Is the header present?
4823echo "$as_me:$LINENO: checking $ac_header presence" >&5
4824echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4825cat >conftest.$ac_ext <<_ACEOF
4826#line $LINENO "configure"
4827/* confdefs.h.  */
4828_ACEOF
4829cat confdefs.h >>conftest.$ac_ext
4830cat >>conftest.$ac_ext <<_ACEOF
4831/* end confdefs.h.  */
4832#include <$ac_header>
4833_ACEOF
4834if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4835  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4836  ac_status=$?
4837  grep -v '^ *+' conftest.er1 >conftest.err
4838  rm -f conftest.er1
4839  cat conftest.err >&5
4840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841  (exit $ac_status); } >/dev/null; then
4842  if test -s conftest.err; then
4843    ac_cpp_err=$ac_c_preproc_warn_flag
4844  else
4845    ac_cpp_err=
4846  fi
4847else
4848  ac_cpp_err=yes
4849fi
4850if test -z "$ac_cpp_err"; then
4851  ac_header_preproc=yes
4852else
4853  echo "$as_me: failed program was:" >&5
4854sed 's/^/| /' conftest.$ac_ext >&5
4855
4856  ac_header_preproc=no
4857fi
4858rm -f conftest.err conftest.$ac_ext
4859echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4860echo "${ECHO_T}$ac_header_preproc" >&6
4861
4862# So?  What about this header?
4863case $ac_header_compiler:$ac_header_preproc in
4864  yes:no )
4865    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4866echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4867    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4868echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4869    (
4870      cat <<\_ASBOX
4871## ------------------------------------ ##
4872## Report this to bug-autoconf@gnu.org. ##
4873## ------------------------------------ ##
4874_ASBOX
4875    ) |
4876      sed "s/^/$as_me: WARNING:     /" >&2
4877    ;;
4878  no:yes )
4879    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4880echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4881    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4882echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4883    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4884echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4885    (
4886      cat <<\_ASBOX
4887## ------------------------------------ ##
4888## Report this to bug-autoconf@gnu.org. ##
4889## ------------------------------------ ##
4890_ASBOX
4891    ) |
4892      sed "s/^/$as_me: WARNING:     /" >&2
4893    ;;
4894esac
4895echo "$as_me:$LINENO: checking for $ac_header" >&5
4896echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4897if eval "test \"\${$as_ac_Header+set}\" = set"; then
4898  echo $ECHO_N "(cached) $ECHO_C" >&6
4899else
4900  eval "$as_ac_Header=$ac_header_preproc"
4901fi
4902echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4903echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4904
4905fi
4906if test `eval echo '${'$as_ac_Header'}'` = yes; then
4907  cat >>confdefs.h <<_ACEOF
4908#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4909_ACEOF
4910
4911fi
4912
4913done
4914
4915ac_ext=cc
4916ac_cpp='$CXXCPP $CPPFLAGS'
4917ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4918ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4919ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4920echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4921echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4922if test -z "$CXXCPP"; then
4923  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4924  echo $ECHO_N "(cached) $ECHO_C" >&6
4925else
4926      # Double quotes because CXXCPP needs to be expanded
4927    for CXXCPP in "$CXX -E" "/lib/cpp"
4928    do
4929      ac_preproc_ok=false
4930for ac_cxx_preproc_warn_flag in '' yes
4931do
4932  # Use a header file that comes with gcc, so configuring glibc
4933  # with a fresh cross-compiler works.
4934  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4935  # <limits.h> exists even on freestanding compilers.
4936  # On the NeXT, cc -E runs the code through the compiler's parser,
4937  # not just through cpp. "Syntax error" is here to catch this case.
4938  cat >conftest.$ac_ext <<_ACEOF
4939#line $LINENO "configure"
4940/* confdefs.h.  */
4941_ACEOF
4942cat confdefs.h >>conftest.$ac_ext
4943cat >>conftest.$ac_ext <<_ACEOF
4944/* end confdefs.h.  */
4945#ifdef __STDC__
4946# include <limits.h>
4947#else
4948# include <assert.h>
4949#endif
4950                     Syntax error
4951_ACEOF
4952if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4953  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4954  ac_status=$?
4955  grep -v '^ *+' conftest.er1 >conftest.err
4956  rm -f conftest.er1
4957  cat conftest.err >&5
4958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959  (exit $ac_status); } >/dev/null; then
4960  if test -s conftest.err; then
4961    ac_cpp_err=$ac_cxx_preproc_warn_flag
4962  else
4963    ac_cpp_err=
4964  fi
4965else
4966  ac_cpp_err=yes
4967fi
4968if test -z "$ac_cpp_err"; then
4969  :
4970else
4971  echo "$as_me: failed program was:" >&5
4972sed 's/^/| /' conftest.$ac_ext >&5
4973
4974  # Broken: fails on valid input.
4975continue
4976fi
4977rm -f conftest.err conftest.$ac_ext
4978
4979  # OK, works on sane cases.  Now check whether non-existent headers
4980  # can be detected and how.
4981  cat >conftest.$ac_ext <<_ACEOF
4982#line $LINENO "configure"
4983/* confdefs.h.  */
4984_ACEOF
4985cat confdefs.h >>conftest.$ac_ext
4986cat >>conftest.$ac_ext <<_ACEOF
4987/* end confdefs.h.  */
4988#include <ac_nonexistent.h>
4989_ACEOF
4990if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4991  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4992  ac_status=$?
4993  grep -v '^ *+' conftest.er1 >conftest.err
4994  rm -f conftest.er1
4995  cat conftest.err >&5
4996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997  (exit $ac_status); } >/dev/null; then
4998  if test -s conftest.err; then
4999    ac_cpp_err=$ac_cxx_preproc_warn_flag
5000  else
5001    ac_cpp_err=
5002  fi
5003else
5004  ac_cpp_err=yes
5005fi
5006if test -z "$ac_cpp_err"; then
5007  # Broken: success on invalid input.
5008continue
5009else
5010  echo "$as_me: failed program was:" >&5
5011sed 's/^/| /' conftest.$ac_ext >&5
5012
5013  # Passes both tests.
5014ac_preproc_ok=:
5015break
5016fi
5017rm -f conftest.err conftest.$ac_ext
5018
5019done
5020# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5021rm -f conftest.err conftest.$ac_ext
5022if $ac_preproc_ok; then
5023  break
5024fi
5025
5026    done
5027    ac_cv_prog_CXXCPP=$CXXCPP
5028
5029fi
5030  CXXCPP=$ac_cv_prog_CXXCPP
5031else
5032  ac_cv_prog_CXXCPP=$CXXCPP
5033fi
5034echo "$as_me:$LINENO: result: $CXXCPP" >&5
5035echo "${ECHO_T}$CXXCPP" >&6
5036ac_preproc_ok=false
5037for ac_cxx_preproc_warn_flag in '' yes
5038do
5039  # Use a header file that comes with gcc, so configuring glibc
5040  # with a fresh cross-compiler works.
5041  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5042  # <limits.h> exists even on freestanding compilers.
5043  # On the NeXT, cc -E runs the code through the compiler's parser,
5044  # not just through cpp. "Syntax error" is here to catch this case.
5045  cat >conftest.$ac_ext <<_ACEOF
5046#line $LINENO "configure"
5047/* confdefs.h.  */
5048_ACEOF
5049cat confdefs.h >>conftest.$ac_ext
5050cat >>conftest.$ac_ext <<_ACEOF
5051/* end confdefs.h.  */
5052#ifdef __STDC__
5053# include <limits.h>
5054#else
5055# include <assert.h>
5056#endif
5057                     Syntax error
5058_ACEOF
5059if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5060  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5061  ac_status=$?
5062  grep -v '^ *+' conftest.er1 >conftest.err
5063  rm -f conftest.er1
5064  cat conftest.err >&5
5065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066  (exit $ac_status); } >/dev/null; then
5067  if test -s conftest.err; then
5068    ac_cpp_err=$ac_cxx_preproc_warn_flag
5069  else
5070    ac_cpp_err=
5071  fi
5072else
5073  ac_cpp_err=yes
5074fi
5075if test -z "$ac_cpp_err"; then
5076  :
5077else
5078  echo "$as_me: failed program was:" >&5
5079sed 's/^/| /' conftest.$ac_ext >&5
5080
5081  # Broken: fails on valid input.
5082continue
5083fi
5084rm -f conftest.err conftest.$ac_ext
5085
5086  # OK, works on sane cases.  Now check whether non-existent headers
5087  # can be detected and how.
5088  cat >conftest.$ac_ext <<_ACEOF
5089#line $LINENO "configure"
5090/* confdefs.h.  */
5091_ACEOF
5092cat confdefs.h >>conftest.$ac_ext
5093cat >>conftest.$ac_ext <<_ACEOF
5094/* end confdefs.h.  */
5095#include <ac_nonexistent.h>
5096_ACEOF
5097if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5098  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5099  ac_status=$?
5100  grep -v '^ *+' conftest.er1 >conftest.err
5101  rm -f conftest.er1
5102  cat conftest.err >&5
5103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104  (exit $ac_status); } >/dev/null; then
5105  if test -s conftest.err; then
5106    ac_cpp_err=$ac_cxx_preproc_warn_flag
5107  else
5108    ac_cpp_err=
5109  fi
5110else
5111  ac_cpp_err=yes
5112fi
5113if test -z "$ac_cpp_err"; then
5114  # Broken: success on invalid input.
5115continue
5116else
5117  echo "$as_me: failed program was:" >&5
5118sed 's/^/| /' conftest.$ac_ext >&5
5119
5120  # Passes both tests.
5121ac_preproc_ok=:
5122break
5123fi
5124rm -f conftest.err conftest.$ac_ext
5125
5126done
5127# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5128rm -f conftest.err conftest.$ac_ext
5129if $ac_preproc_ok; then
5130  :
5131else
5132  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5133See \`config.log' for more details." >&5
5134echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5135See \`config.log' for more details." >&2;}
5136   { (exit 1); exit 1; }; }
5137fi
5138
5139ac_ext=cc
5140ac_cpp='$CXXCPP $CPPFLAGS'
5141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5144
5145
5146ac_ext=f
5147ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5148ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5149ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5150if test -n "$ac_tool_prefix"; then
5151  for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5152  do
5153    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5154set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5155echo "$as_me:$LINENO: checking for $ac_word" >&5
5156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5157if test "${ac_cv_prog_F77+set}" = set; then
5158  echo $ECHO_N "(cached) $ECHO_C" >&6
5159else
5160  if test -n "$F77"; then
5161  ac_cv_prog_F77="$F77" # Let the user override the test.
5162else
5163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164for as_dir in $PATH
5165do
5166  IFS=$as_save_IFS
5167  test -z "$as_dir" && as_dir=.
5168  for ac_exec_ext in '' $ac_executable_extensions; do
5169  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5171    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5172    break 2
5173  fi
5174done
5175done
5176
5177fi
5178fi
5179F77=$ac_cv_prog_F77
5180if test -n "$F77"; then
5181  echo "$as_me:$LINENO: result: $F77" >&5
5182echo "${ECHO_T}$F77" >&6
5183else
5184  echo "$as_me:$LINENO: result: no" >&5
5185echo "${ECHO_T}no" >&6
5186fi
5187
5188    test -n "$F77" && break
5189  done
5190fi
5191if test -z "$F77"; then
5192  ac_ct_F77=$F77
5193  for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5194do
5195  # Extract the first word of "$ac_prog", so it can be a program name with args.
5196set dummy $ac_prog; ac_word=$2
5197echo "$as_me:$LINENO: checking for $ac_word" >&5
5198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5199if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5200  echo $ECHO_N "(cached) $ECHO_C" >&6
5201else
5202  if test -n "$ac_ct_F77"; then
5203  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5204else
5205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206for as_dir in $PATH
5207do
5208  IFS=$as_save_IFS
5209  test -z "$as_dir" && as_dir=.
5210  for ac_exec_ext in '' $ac_executable_extensions; do
5211  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5212    ac_cv_prog_ac_ct_F77="$ac_prog"
5213    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5214    break 2
5215  fi
5216done
5217done
5218
5219fi
5220fi
5221ac_ct_F77=$ac_cv_prog_ac_ct_F77
5222if test -n "$ac_ct_F77"; then
5223  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5224echo "${ECHO_T}$ac_ct_F77" >&6
5225else
5226  echo "$as_me:$LINENO: result: no" >&5
5227echo "${ECHO_T}no" >&6
5228fi
5229
5230  test -n "$ac_ct_F77" && break
5231done
5232
5233  F77=$ac_ct_F77
5234fi
5235
5236
5237# Provide some information about the compiler.
5238echo "$as_me:5238:" \
5239     "checking for Fortran 77 compiler version" >&5
5240ac_compiler=`set X $ac_compile; echo $2`
5241{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5242  (eval $ac_compiler --version </dev/null >&5) 2>&5
5243  ac_status=$?
5244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245  (exit $ac_status); }
5246{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5247  (eval $ac_compiler -v </dev/null >&5) 2>&5
5248  ac_status=$?
5249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250  (exit $ac_status); }
5251{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5252  (eval $ac_compiler -V </dev/null >&5) 2>&5
5253  ac_status=$?
5254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255  (exit $ac_status); }
5256
5257# If we don't use `.F' as extension, the preprocessor is not run on the
5258# input file.
5259ac_save_ext=$ac_ext
5260ac_ext=F
5261echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5262echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5263if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5264  echo $ECHO_N "(cached) $ECHO_C" >&6
5265else
5266  cat >conftest.$ac_ext <<_ACEOF
5267      program main
5268#ifndef __GNUC__
5269       choke me
5270#endif
5271
5272      end
5273_ACEOF
5274rm -f conftest.$ac_objext
5275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5276  (eval $ac_compile) 2>&5
5277  ac_status=$?
5278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279  (exit $ac_status); } &&
5280         { ac_try='test -s conftest.$ac_objext'
5281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282  (eval $ac_try) 2>&5
5283  ac_status=$?
5284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285  (exit $ac_status); }; }; then
5286  ac_compiler_gnu=yes
5287else
5288  echo "$as_me: failed program was:" >&5
5289sed 's/^/| /' conftest.$ac_ext >&5
5290
5291ac_compiler_gnu=no
5292fi
5293rm -f conftest.$ac_objext conftest.$ac_ext
5294ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5295
5296fi
5297echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5298echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5299ac_ext=$ac_save_ext
5300G77=`test $ac_compiler_gnu = yes && echo yes`
5301ac_test_FFLAGS=${FFLAGS+set}
5302ac_save_FFLAGS=$FFLAGS
5303FFLAGS=
5304echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5305echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5306if test "${ac_cv_prog_f77_g+set}" = set; then
5307  echo $ECHO_N "(cached) $ECHO_C" >&6
5308else
5309  FFLAGS=-g
5310cat >conftest.$ac_ext <<_ACEOF
5311      program main
5312
5313      end
5314_ACEOF
5315rm -f conftest.$ac_objext
5316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5317  (eval $ac_compile) 2>&5
5318  ac_status=$?
5319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320  (exit $ac_status); } &&
5321         { ac_try='test -s conftest.$ac_objext'
5322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5323  (eval $ac_try) 2>&5
5324  ac_status=$?
5325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326  (exit $ac_status); }; }; then
5327  ac_cv_prog_f77_g=yes
5328else
5329  echo "$as_me: failed program was:" >&5
5330sed 's/^/| /' conftest.$ac_ext >&5
5331
5332ac_cv_prog_f77_g=no
5333fi
5334rm -f conftest.$ac_objext conftest.$ac_ext
5335
5336fi
5337echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5338echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5339if test "$ac_test_FFLAGS" = set; then
5340  FFLAGS=$ac_save_FFLAGS
5341elif test $ac_cv_prog_f77_g = yes; then
5342  if test "$G77" = yes; then
5343    FFLAGS="-g -O2"
5344  else
5345    FFLAGS="-g"
5346  fi
5347else
5348  if test "$G77" = yes; then
5349    FFLAGS="-O2"
5350  else
5351    FFLAGS=
5352  fi
5353fi
5354ac_ext=c
5355ac_cpp='$CPP $CPPFLAGS'
5356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5358ac_compiler_gnu=$ac_cv_c_compiler_gnu
5359
5360
5361
5362# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5363
5364# find the maximum length of command line arguments
5365echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5366echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5367if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5368  echo $ECHO_N "(cached) $ECHO_C" >&6
5369else
5370    i=0
5371  testring="ABCD"
5372
5373  case $build_os in
5374  msdosdjgpp*)
5375    # On DJGPP, this test can blow up pretty badly due to problems in libc
5376    # (any single argument exceeding 2000 bytes causes a buffer overrun
5377    # during glob expansion).  Even if it were fixed, the result of this
5378    # check would be larger than it should be.
5379    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5380    ;;
5381
5382  gnu*)
5383    # Under GNU Hurd, this test is not required because there is
5384    # no limit to the length of command line arguments.
5385    # Libtool will interpret -1 as no limit whatsoever
5386    lt_cv_sys_max_cmd_len=-1;
5387    ;;
5388
5389  cygwin* | mingw*)
5390    # On Win9x/ME, this test blows up -- it succeeds, but takes
5391    # about 5 minutes as the teststring grows exponentially.
5392    # Worse, since 9x/ME are not pre-emptively multitasking,
5393    # you end up with a "frozen" computer, even though with patience
5394    # the test eventually succeeds (with a max line length of 256k).
5395    # Instead, let's just punt: use the minimum linelength reported by
5396    # all of the supported platforms: 8192 (on NT/2K/XP).
5397    lt_cv_sys_max_cmd_len=8192;
5398    ;;
5399
5400 *)
5401    # If test is not a shell built-in, we'll probably end up computing a
5402    # maximum length that is only half of the actual maximum length, but
5403    # we can't tell.
5404    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5405	       = "XX$testring") >/dev/null 2>&1 &&
5406	    new_result=`expr "X$testring" : ".*" 2>&1` &&
5407	    lt_cv_sys_max_cmd_len=$new_result &&
5408	    test $i != 17 # 1/2 MB should be enough
5409    do
5410      i=`expr $i + 1`
5411      testring=$testring$testring
5412    done
5413    testring=
5414    # Add a significant safety factor because C++ compilers can tack on massive
5415    # amounts of additional arguments before passing them to the linker.
5416    # It appears as though 1/2 is a usable value.
5417    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5418    ;;
5419  esac
5420
5421fi
5422
5423if test -n $lt_cv_sys_max_cmd_len ; then
5424  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5425echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5426else
5427  echo "$as_me:$LINENO: result: none" >&5
5428echo "${ECHO_T}none" >&6
5429fi
5430
5431
5432
5433
5434# Check for command to grab the raw symbol name followed by C symbol from nm.
5435echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5436echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5437if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5438  echo $ECHO_N "(cached) $ECHO_C" >&6
5439else
5440
5441# These are sane defaults that work on at least a few old systems.
5442# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5443
5444# Character class describing NM global symbol codes.
5445symcode='[BCDEGRST]'
5446
5447# Regexp to match symbols that can be accessed directly from C.
5448sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5449
5450# Transform the above into a raw symbol and a C symbol.
5451symxfrm='\1 \2\3 \3'
5452
5453# Transform an extracted symbol line into a proper C declaration
5454lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5455
5456# Transform an extracted symbol line into symbol name and symbol address
5457lt_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'"
5458
5459# Define system-specific variables.
5460case $host_os in
5461aix*)
5462  symcode='[BCDT]'
5463  ;;
5464cygwin* | mingw* | pw32*)
5465  symcode='[ABCDGISTW]'
5466  ;;
5467hpux*) # Its linker distinguishes data from code symbols
5468  if test "$host_cpu" = ia64; then
5469    symcode='[ABCDEGRST]'
5470  fi
5471  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5472  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'"
5473  ;;
5474irix* | nonstopux*)
5475  symcode='[BCDEGRST]'
5476  ;;
5477osf*)
5478  symcode='[BCDEGQRST]'
5479  ;;
5480solaris* | sysv5*)
5481  symcode='[BDT]'
5482  ;;
5483sysv4)
5484  symcode='[DFNSTU]'
5485  ;;
5486esac
5487
5488# Handle CRLF in mingw tool chain
5489opt_cr=
5490case $build_os in
5491mingw*)
5492  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5493  ;;
5494esac
5495
5496# If we're using GNU nm, then use its standard symbol codes.
5497case `$NM -V 2>&1` in
5498*GNU* | *'with BFD'*)
5499  symcode='[ABCDGISTW]' ;;
5500esac
5501
5502# Try without a prefix undercore, then with it.
5503for ac_symprfx in "" "_"; do
5504
5505  # Write the raw and C identifiers.
5506  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5507
5508  # Check to see that the pipe works correctly.
5509  pipe_works=no
5510
5511  rm -f conftest*
5512  cat > conftest.$ac_ext <<EOF
5513#ifdef __cplusplus
5514extern "C" {
5515#endif
5516char nm_test_var;
5517void nm_test_func(){}
5518#ifdef __cplusplus
5519}
5520#endif
5521int main(){nm_test_var='a';nm_test_func();return(0);}
5522EOF
5523
5524  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5525  (eval $ac_compile) 2>&5
5526  ac_status=$?
5527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528  (exit $ac_status); }; then
5529    # Now try to grab the symbols.
5530    nlist=conftest.nm
5531    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5532  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5533  ac_status=$?
5534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535  (exit $ac_status); } && test -s "$nlist"; then
5536      # Try sorting and uniquifying the output.
5537      if sort "$nlist" | uniq > "$nlist"T; then
5538	mv -f "$nlist"T "$nlist"
5539      else
5540	rm -f "$nlist"T
5541      fi
5542
5543      # Make sure that we snagged all the symbols we need.
5544      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5545	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5546	  cat <<EOF > conftest.$ac_ext
5547#ifdef __cplusplus
5548extern "C" {
5549#endif
5550
5551EOF
5552	  # Now generate the symbol file.
5553	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5554
5555	  cat <<EOF >> conftest.$ac_ext
5556#if defined (__STDC__) && __STDC__
5557# define lt_ptr_t void *
5558#else
5559# define lt_ptr_t char *
5560# define const
5561#endif
5562
5563/* The mapping between symbol names and symbols. */
5564const struct {
5565  const char *name;
5566  lt_ptr_t address;
5567}
5568lt_preloaded_symbols[] =
5569{
5570EOF
5571	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5572	  cat <<\EOF >> conftest.$ac_ext
5573  {0, (lt_ptr_t) 0}
5574};
5575
5576#ifdef __cplusplus
5577}
5578#endif
5579EOF
5580	  # Now try linking the two files.
5581	  mv conftest.$ac_objext conftstm.$ac_objext
5582	  lt_save_LIBS="$LIBS"
5583	  lt_save_CFLAGS="$CFLAGS"
5584	  LIBS="conftstm.$ac_objext"
5585	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5586	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5587  (eval $ac_link) 2>&5
5588  ac_status=$?
5589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5591	    pipe_works=yes
5592	  fi
5593	  LIBS="$lt_save_LIBS"
5594	  CFLAGS="$lt_save_CFLAGS"
5595	else
5596	  echo "cannot find nm_test_func in $nlist" >&5
5597	fi
5598      else
5599	echo "cannot find nm_test_var in $nlist" >&5
5600      fi
5601    else
5602      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5603    fi
5604  else
5605    echo "$progname: failed program was:" >&5
5606    cat conftest.$ac_ext >&5
5607  fi
5608  rm -f conftest* conftst*
5609
5610  # Do not use the global_symbol_pipe unless it works.
5611  if test "$pipe_works" = yes; then
5612    break
5613  else
5614    lt_cv_sys_global_symbol_pipe=
5615  fi
5616done
5617
5618fi
5619
5620if test -z "$lt_cv_sys_global_symbol_pipe"; then
5621  lt_cv_sys_global_symbol_to_cdecl=
5622fi
5623if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5624  echo "$as_me:$LINENO: result: failed" >&5
5625echo "${ECHO_T}failed" >&6
5626else
5627  echo "$as_me:$LINENO: result: ok" >&5
5628echo "${ECHO_T}ok" >&6
5629fi
5630
5631echo "$as_me:$LINENO: checking for objdir" >&5
5632echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5633if test "${lt_cv_objdir+set}" = set; then
5634  echo $ECHO_N "(cached) $ECHO_C" >&6
5635else
5636  rm -f .libs 2>/dev/null
5637mkdir .libs 2>/dev/null
5638if test -d .libs; then
5639  lt_cv_objdir=.libs
5640else
5641  # MS-DOS does not allow filenames that begin with a dot.
5642  lt_cv_objdir=_libs
5643fi
5644rmdir .libs 2>/dev/null
5645fi
5646echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5647echo "${ECHO_T}$lt_cv_objdir" >&6
5648objdir=$lt_cv_objdir
5649
5650
5651
5652
5653
5654case $host_os in
5655aix3*)
5656  # AIX sometimes has problems with the GCC collect2 program.  For some
5657  # reason, if we set the COLLECT_NAMES environment variable, the problems
5658  # vanish in a puff of smoke.
5659  if test "X${COLLECT_NAMES+set}" != Xset; then
5660    COLLECT_NAMES=
5661    export COLLECT_NAMES
5662  fi
5663  ;;
5664esac
5665
5666# Sed substitution that helps us do robust quoting.  It backslashifies
5667# metacharacters that are still active within double-quoted strings.
5668Xsed='sed -e s/^X//'
5669sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5670
5671# Same as above, but do not quote variable references.
5672double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5673
5674# Sed substitution to delay expansion of an escaped shell variable in a
5675# double_quote_subst'ed string.
5676delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5677
5678# Sed substitution to avoid accidental globbing in evaled expressions
5679no_glob_subst='s/\*/\\\*/g'
5680
5681# Constants:
5682rm="rm -f"
5683
5684# Global variables:
5685default_ofile=mklib
5686can_build_shared=yes
5687
5688# All known linkers require a `.a' archive for static linking (except M$VC,
5689# which needs '.lib').
5690libext=a
5691ltmain="$ac_aux_dir/ltmain.sh"
5692ofile="$default_ofile"
5693with_gnu_ld="$lt_cv_prog_gnu_ld"
5694
5695if test -n "$ac_tool_prefix"; then
5696  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5697set dummy ${ac_tool_prefix}ar; ac_word=$2
5698echo "$as_me:$LINENO: checking for $ac_word" >&5
5699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5700if test "${ac_cv_prog_AR+set}" = set; then
5701  echo $ECHO_N "(cached) $ECHO_C" >&6
5702else
5703  if test -n "$AR"; then
5704  ac_cv_prog_AR="$AR" # Let the user override the test.
5705else
5706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707for as_dir in $PATH
5708do
5709  IFS=$as_save_IFS
5710  test -z "$as_dir" && as_dir=.
5711  for ac_exec_ext in '' $ac_executable_extensions; do
5712  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5713    ac_cv_prog_AR="${ac_tool_prefix}ar"
5714    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5715    break 2
5716  fi
5717done
5718done
5719
5720fi
5721fi
5722AR=$ac_cv_prog_AR
5723if test -n "$AR"; then
5724  echo "$as_me:$LINENO: result: $AR" >&5
5725echo "${ECHO_T}$AR" >&6
5726else
5727  echo "$as_me:$LINENO: result: no" >&5
5728echo "${ECHO_T}no" >&6
5729fi
5730
5731fi
5732if test -z "$ac_cv_prog_AR"; then
5733  ac_ct_AR=$AR
5734  # Extract the first word of "ar", so it can be a program name with args.
5735set dummy ar; ac_word=$2
5736echo "$as_me:$LINENO: checking for $ac_word" >&5
5737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5738if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5739  echo $ECHO_N "(cached) $ECHO_C" >&6
5740else
5741  if test -n "$ac_ct_AR"; then
5742  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5743else
5744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745for as_dir in $PATH
5746do
5747  IFS=$as_save_IFS
5748  test -z "$as_dir" && as_dir=.
5749  for ac_exec_ext in '' $ac_executable_extensions; do
5750  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5751    ac_cv_prog_ac_ct_AR="ar"
5752    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5753    break 2
5754  fi
5755done
5756done
5757
5758  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5759fi
5760fi
5761ac_ct_AR=$ac_cv_prog_ac_ct_AR
5762if test -n "$ac_ct_AR"; then
5763  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5764echo "${ECHO_T}$ac_ct_AR" >&6
5765else
5766  echo "$as_me:$LINENO: result: no" >&5
5767echo "${ECHO_T}no" >&6
5768fi
5769
5770  AR=$ac_ct_AR
5771else
5772  AR="$ac_cv_prog_AR"
5773fi
5774
5775if test -n "$ac_tool_prefix"; then
5776  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5777set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5778echo "$as_me:$LINENO: checking for $ac_word" >&5
5779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5780if test "${ac_cv_prog_RANLIB+set}" = set; then
5781  echo $ECHO_N "(cached) $ECHO_C" >&6
5782else
5783  if test -n "$RANLIB"; then
5784  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5785else
5786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787for as_dir in $PATH
5788do
5789  IFS=$as_save_IFS
5790  test -z "$as_dir" && as_dir=.
5791  for ac_exec_ext in '' $ac_executable_extensions; do
5792  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5793    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5794    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5795    break 2
5796  fi
5797done
5798done
5799
5800fi
5801fi
5802RANLIB=$ac_cv_prog_RANLIB
5803if test -n "$RANLIB"; then
5804  echo "$as_me:$LINENO: result: $RANLIB" >&5
5805echo "${ECHO_T}$RANLIB" >&6
5806else
5807  echo "$as_me:$LINENO: result: no" >&5
5808echo "${ECHO_T}no" >&6
5809fi
5810
5811fi
5812if test -z "$ac_cv_prog_RANLIB"; then
5813  ac_ct_RANLIB=$RANLIB
5814  # Extract the first word of "ranlib", so it can be a program name with args.
5815set dummy ranlib; ac_word=$2
5816echo "$as_me:$LINENO: checking for $ac_word" >&5
5817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5818if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5819  echo $ECHO_N "(cached) $ECHO_C" >&6
5820else
5821  if test -n "$ac_ct_RANLIB"; then
5822  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5823else
5824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825for as_dir in $PATH
5826do
5827  IFS=$as_save_IFS
5828  test -z "$as_dir" && as_dir=.
5829  for ac_exec_ext in '' $ac_executable_extensions; do
5830  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5831    ac_cv_prog_ac_ct_RANLIB="ranlib"
5832    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5833    break 2
5834  fi
5835done
5836done
5837
5838  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5839fi
5840fi
5841ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5842if test -n "$ac_ct_RANLIB"; then
5843  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5844echo "${ECHO_T}$ac_ct_RANLIB" >&6
5845else
5846  echo "$as_me:$LINENO: result: no" >&5
5847echo "${ECHO_T}no" >&6
5848fi
5849
5850  RANLIB=$ac_ct_RANLIB
5851else
5852  RANLIB="$ac_cv_prog_RANLIB"
5853fi
5854
5855if test -n "$ac_tool_prefix"; then
5856  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5857set dummy ${ac_tool_prefix}strip; ac_word=$2
5858echo "$as_me:$LINENO: checking for $ac_word" >&5
5859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5860if test "${ac_cv_prog_STRIP+set}" = set; then
5861  echo $ECHO_N "(cached) $ECHO_C" >&6
5862else
5863  if test -n "$STRIP"; then
5864  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5865else
5866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867for as_dir in $PATH
5868do
5869  IFS=$as_save_IFS
5870  test -z "$as_dir" && as_dir=.
5871  for ac_exec_ext in '' $ac_executable_extensions; do
5872  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5873    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5874    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5875    break 2
5876  fi
5877done
5878done
5879
5880fi
5881fi
5882STRIP=$ac_cv_prog_STRIP
5883if test -n "$STRIP"; then
5884  echo "$as_me:$LINENO: result: $STRIP" >&5
5885echo "${ECHO_T}$STRIP" >&6
5886else
5887  echo "$as_me:$LINENO: result: no" >&5
5888echo "${ECHO_T}no" >&6
5889fi
5890
5891fi
5892if test -z "$ac_cv_prog_STRIP"; then
5893  ac_ct_STRIP=$STRIP
5894  # Extract the first word of "strip", so it can be a program name with args.
5895set dummy strip; ac_word=$2
5896echo "$as_me:$LINENO: checking for $ac_word" >&5
5897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5898if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5899  echo $ECHO_N "(cached) $ECHO_C" >&6
5900else
5901  if test -n "$ac_ct_STRIP"; then
5902  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5903else
5904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905for as_dir in $PATH
5906do
5907  IFS=$as_save_IFS
5908  test -z "$as_dir" && as_dir=.
5909  for ac_exec_ext in '' $ac_executable_extensions; do
5910  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5911    ac_cv_prog_ac_ct_STRIP="strip"
5912    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5913    break 2
5914  fi
5915done
5916done
5917
5918  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5919fi
5920fi
5921ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5922if test -n "$ac_ct_STRIP"; then
5923  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5924echo "${ECHO_T}$ac_ct_STRIP" >&6
5925else
5926  echo "$as_me:$LINENO: result: no" >&5
5927echo "${ECHO_T}no" >&6
5928fi
5929
5930  STRIP=$ac_ct_STRIP
5931else
5932  STRIP="$ac_cv_prog_STRIP"
5933fi
5934
5935
5936old_CC="$CC"
5937old_CFLAGS="$CFLAGS"
5938
5939# Set sane defaults for various variables
5940test -z "$AR" && AR=ar
5941test -z "$AR_FLAGS" && AR_FLAGS=cru
5942test -z "$AS" && AS=as
5943test -z "$CC" && CC=cc
5944test -z "$LTCC" && LTCC=$CC
5945test -z "$DLLTOOL" && DLLTOOL=dlltool
5946test -z "$LD" && LD=ld
5947test -z "$LN_S" && LN_S="ln -s"
5948test -z "$MAGIC_CMD" && MAGIC_CMD=file
5949test -z "$NM" && NM=nm
5950test -z "$SED" && SED=sed
5951test -z "$OBJDUMP" && OBJDUMP=objdump
5952test -z "$RANLIB" && RANLIB=:
5953test -z "$STRIP" && STRIP=:
5954test -z "$ac_objext" && ac_objext=o
5955
5956# Determine commands to create old-style static archives.
5957old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5958old_postinstall_cmds='chmod 644 $oldlib'
5959old_postuninstall_cmds=
5960
5961if test -n "$RANLIB"; then
5962  case $host_os in
5963  openbsd*)
5964    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5965    ;;
5966  *)
5967    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5968    ;;
5969  esac
5970  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5971fi
5972
5973# Only perform the check for file, if the check method requires it
5974case $deplibs_check_method in
5975file_magic*)
5976  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5977    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5978echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5979if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5980  echo $ECHO_N "(cached) $ECHO_C" >&6
5981else
5982  case $MAGIC_CMD in
5983[\\/*] |  ?:[\\/]*)
5984  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5985  ;;
5986*)
5987  lt_save_MAGIC_CMD="$MAGIC_CMD"
5988  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5989  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5990  for ac_dir in $ac_dummy; do
5991    IFS="$lt_save_ifs"
5992    test -z "$ac_dir" && ac_dir=.
5993    if test -f $ac_dir/${ac_tool_prefix}file; then
5994      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5995      if test -n "$file_magic_test_file"; then
5996	case $deplibs_check_method in
5997	"file_magic "*)
5998	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5999	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6000	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6001	    $EGREP "$file_magic_regex" > /dev/null; then
6002	    :
6003	  else
6004	    cat <<EOF 1>&2
6005
6006*** Warning: the command libtool uses to detect shared libraries,
6007*** $file_magic_cmd, produces output that libtool cannot recognize.
6008*** The result is that libtool may fail to recognize shared libraries
6009*** as such.  This will affect the creation of libtool libraries that
6010*** depend on shared libraries, but programs linked with such libtool
6011*** libraries will work regardless of this problem.  Nevertheless, you
6012*** may want to report the problem to your system manager and/or to
6013*** bug-libtool@gnu.org
6014
6015EOF
6016	  fi ;;
6017	esac
6018      fi
6019      break
6020    fi
6021  done
6022  IFS="$lt_save_ifs"
6023  MAGIC_CMD="$lt_save_MAGIC_CMD"
6024  ;;
6025esac
6026fi
6027
6028MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6029if test -n "$MAGIC_CMD"; then
6030  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6031echo "${ECHO_T}$MAGIC_CMD" >&6
6032else
6033  echo "$as_me:$LINENO: result: no" >&5
6034echo "${ECHO_T}no" >&6
6035fi
6036
6037if test -z "$lt_cv_path_MAGIC_CMD"; then
6038  if test -n "$ac_tool_prefix"; then
6039    echo "$as_me:$LINENO: checking for file" >&5
6040echo $ECHO_N "checking for file... $ECHO_C" >&6
6041if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6042  echo $ECHO_N "(cached) $ECHO_C" >&6
6043else
6044  case $MAGIC_CMD in
6045[\\/*] |  ?:[\\/]*)
6046  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6047  ;;
6048*)
6049  lt_save_MAGIC_CMD="$MAGIC_CMD"
6050  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6051  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6052  for ac_dir in $ac_dummy; do
6053    IFS="$lt_save_ifs"
6054    test -z "$ac_dir" && ac_dir=.
6055    if test -f $ac_dir/file; then
6056      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6057      if test -n "$file_magic_test_file"; then
6058	case $deplibs_check_method in
6059	"file_magic "*)
6060	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6061	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6062	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6063	    $EGREP "$file_magic_regex" > /dev/null; then
6064	    :
6065	  else
6066	    cat <<EOF 1>&2
6067
6068*** Warning: the command libtool uses to detect shared libraries,
6069*** $file_magic_cmd, produces output that libtool cannot recognize.
6070*** The result is that libtool may fail to recognize shared libraries
6071*** as such.  This will affect the creation of libtool libraries that
6072*** depend on shared libraries, but programs linked with such libtool
6073*** libraries will work regardless of this problem.  Nevertheless, you
6074*** may want to report the problem to your system manager and/or to
6075*** bug-libtool@gnu.org
6076
6077EOF
6078	  fi ;;
6079	esac
6080      fi
6081      break
6082    fi
6083  done
6084  IFS="$lt_save_ifs"
6085  MAGIC_CMD="$lt_save_MAGIC_CMD"
6086  ;;
6087esac
6088fi
6089
6090MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6091if test -n "$MAGIC_CMD"; then
6092  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6093echo "${ECHO_T}$MAGIC_CMD" >&6
6094else
6095  echo "$as_me:$LINENO: result: no" >&5
6096echo "${ECHO_T}no" >&6
6097fi
6098
6099  else
6100    MAGIC_CMD=:
6101  fi
6102fi
6103
6104  fi
6105  ;;
6106esac
6107
6108enable_dlopen=no
6109enable_win32_dll=no
6110
6111# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6112if test "${enable_libtool_lock+set}" = set; then
6113  enableval="$enable_libtool_lock"
6114
6115fi;
6116test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6117
6118
6119# Check whether --with-pic or --without-pic was given.
6120if test "${with_pic+set}" = set; then
6121  withval="$with_pic"
6122  pic_mode="$withval"
6123else
6124  pic_mode=default
6125fi;
6126test -z "$pic_mode" && pic_mode=default
6127
6128# Use C for the default configuration in the libtool script
6129tagname=
6130lt_save_CC="$CC"
6131ac_ext=c
6132ac_cpp='$CPP $CPPFLAGS'
6133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6135ac_compiler_gnu=$ac_cv_c_compiler_gnu
6136
6137
6138# Source file extension for C test sources.
6139ac_ext=c
6140
6141# Object file extension for compiled C test sources.
6142objext=o
6143objext=$objext
6144
6145# Code to be used in simple compile tests
6146lt_simple_compile_test_code="int some_variable = 0;\n"
6147
6148# Code to be used in simple link tests
6149lt_simple_link_test_code='int main(){return(0);}\n'
6150
6151
6152# If no C compiler was specified, use CC.
6153LTCC=${LTCC-"$CC"}
6154
6155# Allow CC to be a program name with arguments.
6156compiler=$CC
6157
6158
6159#
6160# Check for any special shared library compilation flags.
6161#
6162lt_prog_cc_shlib=
6163if test "$GCC" = no; then
6164  case $host_os in
6165  sco3.2v5*)
6166    lt_prog_cc_shlib='-belf'
6167    ;;
6168  esac
6169fi
6170if test -n "$lt_prog_cc_shlib"; then
6171  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6172echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6173  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6174  else
6175    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6176echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6177    lt_cv_prog_cc_can_build_shared=no
6178  fi
6179fi
6180
6181
6182#
6183# Check to make sure the static flag actually works.
6184#
6185echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6186echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6187if test "${lt_prog_compiler_static_works+set}" = set; then
6188  echo $ECHO_N "(cached) $ECHO_C" >&6
6189else
6190  lt_prog_compiler_static_works=no
6191   save_LDFLAGS="$LDFLAGS"
6192   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6193   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6194   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6195     # The compiler can only warn and ignore the option if not recognized
6196     # So say no if there are warnings
6197     if test -s conftest.err; then
6198       # Append any errors to the config.log.
6199       cat conftest.err 1>&5
6200     else
6201       lt_prog_compiler_static_works=yes
6202     fi
6203   fi
6204   $rm conftest*
6205   LDFLAGS="$save_LDFLAGS"
6206
6207fi
6208echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6209echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6210
6211if test x"$lt_prog_compiler_static_works" = xyes; then
6212    :
6213else
6214    lt_prog_compiler_static=
6215fi
6216
6217
6218
6219## CAVEAT EMPTOR:
6220## There is no encapsulation within the following macros, do not change
6221## the running order or otherwise move them around unless you know exactly
6222## what you are doing...
6223
6224lt_prog_compiler_no_builtin_flag=
6225
6226if test "$GCC" = yes; then
6227  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6228
6229  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6230echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6231if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6232  echo $ECHO_N "(cached) $ECHO_C" >&6
6233else
6234  lt_cv_prog_compiler_rtti_exceptions=no
6235  ac_outfile=conftest.$ac_objext
6236   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6237   lt_compiler_flag="-fno-rtti -fno-exceptions"
6238   # Insert the option either (1) after the last *FLAGS variable, or
6239   # (2) before a word containing "conftest.", or (3) at the end.
6240   # Note that $ac_compile itself does not contain backslashes and begins
6241   # with a dollar sign (not a hyphen), so the echo should work correctly.
6242   # The option is referenced via a variable to avoid confusing sed.
6243   lt_compile=`echo "$ac_compile" | $SED \
6244   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6245   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6246   -e 's:$: $lt_compiler_flag:'`
6247   (eval echo "\"\$as_me:6247: $lt_compile\"" >&5)
6248   (eval "$lt_compile" 2>conftest.err)
6249   ac_status=$?
6250   cat conftest.err >&5
6251   echo "$as_me:6251: \$? = $ac_status" >&5
6252   if (exit $ac_status) && test -s "$ac_outfile"; then
6253     # The compiler can only warn and ignore the option if not recognized
6254     # So say no if there are warnings
6255     if test ! -s conftest.err; then
6256       lt_cv_prog_compiler_rtti_exceptions=yes
6257     fi
6258   fi
6259   $rm conftest*
6260
6261fi
6262echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6263echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6264
6265if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6266    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6267else
6268    :
6269fi
6270
6271fi
6272
6273lt_prog_compiler_wl=
6274lt_prog_compiler_pic=
6275lt_prog_compiler_static=
6276
6277echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6278echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6279
6280  if test "$GCC" = yes; then
6281    lt_prog_compiler_wl='-Wl,'
6282    lt_prog_compiler_static='-static'
6283
6284    case $host_os in
6285      aix*)
6286      # All AIX code is PIC.
6287      if test "$host_cpu" = ia64; then
6288	# AIX 5 now supports IA64 processor
6289	lt_prog_compiler_static='-Bstatic'
6290      fi
6291      ;;
6292
6293    amigaos*)
6294      # FIXME: we need at least 68020 code to build shared libraries, but
6295      # adding the `-m68020' flag to GCC prevents building anything better,
6296      # like `-m68040'.
6297      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6298      ;;
6299
6300    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6301      # PIC is the default for these OSes.
6302      ;;
6303
6304    mingw* | pw32* | os2*)
6305      # This hack is so that the source file can tell whether it is being
6306      # built for inclusion in a dll (and should export symbols for example).
6307      lt_prog_compiler_pic='-DDLL_EXPORT'
6308      ;;
6309
6310    darwin* | rhapsody*)
6311      # PIC is the default on this platform
6312      # Common symbols not allowed in MH_DYLIB files
6313      lt_prog_compiler_pic='-fno-common'
6314      ;;
6315
6316    msdosdjgpp*)
6317      # Just because we use GCC doesn't mean we suddenly get shared libraries
6318      # on systems that don't support them.
6319      lt_prog_compiler_can_build_shared=no
6320      enable_shared=no
6321      ;;
6322
6323    sysv4*MP*)
6324      if test -d /usr/nec; then
6325	lt_prog_compiler_pic=-Kconform_pic
6326      fi
6327      ;;
6328
6329    hpux*)
6330      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6331      # not for PA HP-UX.
6332      case "$host_cpu" in
6333      hppa*64*|ia64*)
6334	# +Z the default
6335	;;
6336      *)
6337	lt_prog_compiler_pic='-fPIC'
6338	;;
6339      esac
6340      ;;
6341
6342    *)
6343      lt_prog_compiler_pic='-fPIC'
6344      ;;
6345    esac
6346  else
6347    # PORTME Check for flag to pass linker flags through the system compiler.
6348    case $host_os in
6349    aix*)
6350      lt_prog_compiler_wl='-Wl,'
6351      if test "$host_cpu" = ia64; then
6352	# AIX 5 now supports IA64 processor
6353	lt_prog_compiler_static='-Bstatic'
6354      else
6355	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6356      fi
6357      ;;
6358
6359    mingw* | pw32* | os2*)
6360      # This hack is so that the source file can tell whether it is being
6361      # built for inclusion in a dll (and should export symbols for example).
6362      lt_prog_compiler_pic='-DDLL_EXPORT'
6363      ;;
6364
6365    hpux9* | hpux10* | hpux11*)
6366      lt_prog_compiler_wl='-Wl,'
6367      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6368      # not for PA HP-UX.
6369      case "$host_cpu" in
6370      hppa*64*|ia64*)
6371	# +Z the default
6372	;;
6373      *)
6374	lt_prog_compiler_pic='+Z'
6375	;;
6376      esac
6377      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6378      lt_prog_compiler_static='${wl}-a ${wl}archive'
6379      ;;
6380
6381    irix5* | irix6* | nonstopux*)
6382      lt_prog_compiler_wl='-Wl,'
6383      # PIC (with -KPIC) is the default.
6384      lt_prog_compiler_static='-non_shared'
6385      ;;
6386
6387    newsos6)
6388      lt_prog_compiler_pic='-KPIC'
6389      lt_prog_compiler_static='-Bstatic'
6390      ;;
6391
6392    linux*)
6393      case $CC in
6394      icc|ecc)
6395	lt_prog_compiler_wl='-Wl,'
6396	lt_prog_compiler_pic='-KPIC'
6397	lt_prog_compiler_static='-static'
6398        ;;
6399      ccc)
6400        lt_prog_compiler_wl='-Wl,'
6401        # All Alpha code is PIC.
6402        lt_prog_compiler_static='-non_shared'
6403        ;;
6404      esac
6405      ;;
6406
6407    osf3* | osf4* | osf5*)
6408      lt_prog_compiler_wl='-Wl,'
6409      # All OSF/1 code is PIC.
6410      lt_prog_compiler_static='-non_shared'
6411      ;;
6412
6413    sco3.2v5*)
6414      lt_prog_compiler_pic='-Kpic'
6415      lt_prog_compiler_static='-dn'
6416      ;;
6417
6418    solaris*)
6419      lt_prog_compiler_wl='-Wl,'
6420      lt_prog_compiler_pic='-KPIC'
6421      lt_prog_compiler_static='-Bstatic'
6422      ;;
6423
6424    sunos4*)
6425      lt_prog_compiler_wl='-Qoption ld '
6426      lt_prog_compiler_pic='-PIC'
6427      lt_prog_compiler_static='-Bstatic'
6428      ;;
6429
6430    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6431      lt_prog_compiler_wl='-Wl,'
6432      lt_prog_compiler_pic='-KPIC'
6433      lt_prog_compiler_static='-Bstatic'
6434      ;;
6435
6436    sysv4*MP*)
6437      if test -d /usr/nec ;then
6438	lt_prog_compiler_pic='-Kconform_pic'
6439	lt_prog_compiler_static='-Bstatic'
6440      fi
6441      ;;
6442
6443    uts4*)
6444      lt_prog_compiler_pic='-pic'
6445      lt_prog_compiler_static='-Bstatic'
6446      ;;
6447
6448    *)
6449      lt_prog_compiler_can_build_shared=no
6450      ;;
6451    esac
6452  fi
6453
6454echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6455echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6456
6457#
6458# Check to make sure the PIC flag actually works.
6459#
6460if test -n "$lt_prog_compiler_pic"; then
6461  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6462echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6463if test "${lt_prog_compiler_pic_works+set}" = set; then
6464  echo $ECHO_N "(cached) $ECHO_C" >&6
6465else
6466  lt_prog_compiler_pic_works=no
6467  ac_outfile=conftest.$ac_objext
6468   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6469   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6470   # Insert the option either (1) after the last *FLAGS variable, or
6471   # (2) before a word containing "conftest.", or (3) at the end.
6472   # Note that $ac_compile itself does not contain backslashes and begins
6473   # with a dollar sign (not a hyphen), so the echo should work correctly.
6474   # The option is referenced via a variable to avoid confusing sed.
6475   lt_compile=`echo "$ac_compile" | $SED \
6476   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6477   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6478   -e 's:$: $lt_compiler_flag:'`
6479   (eval echo "\"\$as_me:6479: $lt_compile\"" >&5)
6480   (eval "$lt_compile" 2>conftest.err)
6481   ac_status=$?
6482   cat conftest.err >&5
6483   echo "$as_me:6483: \$? = $ac_status" >&5
6484   if (exit $ac_status) && test -s "$ac_outfile"; then
6485     # The compiler can only warn and ignore the option if not recognized
6486     # So say no if there are warnings
6487     if test ! -s conftest.err; then
6488       lt_prog_compiler_pic_works=yes
6489     fi
6490   fi
6491   $rm conftest*
6492
6493fi
6494echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6495echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6496
6497if test x"$lt_prog_compiler_pic_works" = xyes; then
6498    case $lt_prog_compiler_pic in
6499     "" | " "*) ;;
6500     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6501     esac
6502else
6503    lt_prog_compiler_pic=
6504     lt_prog_compiler_can_build_shared=no
6505fi
6506
6507fi
6508case "$host_os" in
6509  # For platforms which do not support PIC, -DPIC is meaningless:
6510  *djgpp*)
6511    lt_prog_compiler_pic=
6512    ;;
6513  *)
6514    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6515    ;;
6516esac
6517
6518echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6519echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6520if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6521  echo $ECHO_N "(cached) $ECHO_C" >&6
6522else
6523  lt_cv_prog_compiler_c_o=no
6524   $rm -r conftest 2>/dev/null
6525   mkdir conftest
6526   cd conftest
6527   mkdir out
6528   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6529
6530   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6531   # that will create temporary files in the current directory regardless of
6532   # the output directory.  Thus, making CWD read-only will cause this test
6533   # to fail, enabling locking or at least warning the user not to do parallel
6534   # builds.
6535   chmod -w .
6536
6537   lt_compiler_flag="-o out/conftest2.$ac_objext"
6538   # Insert the option either (1) after the last *FLAGS variable, or
6539   # (2) before a word containing "conftest.", or (3) at the end.
6540   # Note that $ac_compile itself does not contain backslashes and begins
6541   # with a dollar sign (not a hyphen), so the echo should work correctly.
6542   lt_compile=`echo "$ac_compile" | $SED \
6543   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6544   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6545   -e 's:$: $lt_compiler_flag:'`
6546   (eval echo "\"\$as_me:6546: $lt_compile\"" >&5)
6547   (eval "$lt_compile" 2>out/conftest.err)
6548   ac_status=$?
6549   cat out/conftest.err >&5
6550   echo "$as_me:6550: \$? = $ac_status" >&5
6551   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6552   then
6553     # The compiler can only warn and ignore the option if not recognized
6554     # So say no if there are warnings
6555     if test ! -s out/conftest.err; then
6556       lt_cv_prog_compiler_c_o=yes
6557     fi
6558   fi
6559   chmod u+w .
6560   $rm conftest* out/*
6561   rmdir out
6562   cd ..
6563   rmdir conftest
6564   $rm conftest*
6565
6566fi
6567echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6568echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6569
6570
6571hard_links="nottested"
6572if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6573  # do not overwrite the value of need_locks provided by the user
6574  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6575echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6576  hard_links=yes
6577  $rm conftest*
6578  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6579  touch conftest.a
6580  ln conftest.a conftest.b 2>&5 || hard_links=no
6581  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6582  echo "$as_me:$LINENO: result: $hard_links" >&5
6583echo "${ECHO_T}$hard_links" >&6
6584  if test "$hard_links" = no; then
6585    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6586echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6587    need_locks=warn
6588  fi
6589else
6590  need_locks=no
6591fi
6592
6593echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6594echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6595
6596  runpath_var=
6597  allow_undefined_flag=
6598  enable_shared_with_static_runtimes=no
6599  archive_cmds=
6600  archive_expsym_cmds=
6601  old_archive_From_new_cmds=
6602  old_archive_from_expsyms_cmds=
6603  export_dynamic_flag_spec=
6604  whole_archive_flag_spec=
6605  thread_safe_flag_spec=
6606  hardcode_libdir_flag_spec=
6607  hardcode_libdir_flag_spec_ld=
6608  hardcode_libdir_separator=
6609  hardcode_direct=no
6610  hardcode_minus_L=no
6611  hardcode_shlibpath_var=unsupported
6612  link_all_deplibs=unknown
6613  hardcode_automatic=no
6614  module_cmds=
6615  module_expsym_cmds=
6616  always_export_symbols=no
6617  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6618  # include_expsyms should be a list of space-separated symbols to be *always*
6619  # included in the symbol list
6620  include_expsyms=
6621  # exclude_expsyms can be an extended regexp of symbols to exclude
6622  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6623  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6624  # as well as any symbol that contains `d'.
6625  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6626  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6627  # platforms (ab)use it in PIC code, but their linkers get confused if
6628  # the symbol is explicitly referenced.  Since portable code cannot
6629  # rely on this symbol name, it's probably fine to never include it in
6630  # preloaded symbol tables.
6631  extract_expsyms_cmds=
6632
6633  case $host_os in
6634  cygwin* | mingw* | pw32*)
6635    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6636    # When not using gcc, we currently assume that we are using
6637    # Microsoft Visual C++.
6638    if test "$GCC" != yes; then
6639      with_gnu_ld=no
6640    fi
6641    ;;
6642  openbsd*)
6643    with_gnu_ld=no
6644    ;;
6645  esac
6646
6647  ld_shlibs=yes
6648  if test "$with_gnu_ld" = yes; then
6649    # If archive_cmds runs LD, not CC, wlarc should be empty
6650    wlarc='${wl}'
6651
6652    # See if GNU ld supports shared libraries.
6653    case $host_os in
6654    aix3* | aix4* | aix5*)
6655      # On AIX/PPC, the GNU linker is very broken
6656      if test "$host_cpu" != ia64; then
6657	ld_shlibs=no
6658	cat <<EOF 1>&2
6659
6660*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6661*** to be unable to reliably create shared libraries on AIX.
6662*** Therefore, libtool is disabling shared libraries support.  If you
6663*** really care for shared libraries, you may want to modify your PATH
6664*** so that a non-GNU linker is found, and then restart.
6665
6666EOF
6667      fi
6668      ;;
6669
6670    amigaos*)
6671      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)'
6672      hardcode_libdir_flag_spec='-L$libdir'
6673      hardcode_minus_L=yes
6674
6675      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6676      # that the semantics of dynamic libraries on AmigaOS, at least up
6677      # to version 4, is to share data among multiple programs linked
6678      # with the same dynamic library.  Since this doesn't match the
6679      # behavior of shared libraries on other platforms, we can't use
6680      # them.
6681      ld_shlibs=no
6682      ;;
6683
6684    beos*)
6685      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6686	allow_undefined_flag=unsupported
6687	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6688	# support --undefined.  This deserves some investigation.  FIXME
6689	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6690      else
6691	ld_shlibs=no
6692      fi
6693      ;;
6694
6695    cygwin* | mingw* | pw32*)
6696      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6697      # as there is no search path for DLLs.
6698      hardcode_libdir_flag_spec='-L$libdir'
6699      allow_undefined_flag=unsupported
6700      always_export_symbols=no
6701      enable_shared_with_static_runtimes=yes
6702      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6703
6704      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6705        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6706	# If the export-symbols file already is a .def file (1st line
6707	# is EXPORTS), use it as is; otherwise, prepend...
6708	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6709	  cp $export_symbols $output_objdir/$soname.def;
6710	else
6711	  echo EXPORTS > $output_objdir/$soname.def;
6712	  cat $export_symbols >> $output_objdir/$soname.def;
6713	fi~
6714	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6715      else
6716	ld_shlibs=no
6717      fi
6718      ;;
6719
6720    netbsd*)
6721      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6722	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6723	wlarc=
6724      else
6725	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6726	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6727      fi
6728      ;;
6729
6730    solaris* | sysv5*)
6731      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6732	ld_shlibs=no
6733	cat <<EOF 1>&2
6734
6735*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6736*** create shared libraries on Solaris systems.  Therefore, libtool
6737*** is disabling shared libraries support.  We urge you to upgrade GNU
6738*** binutils to release 2.9.1 or newer.  Another option is to modify
6739*** your PATH or compiler configuration so that the native linker is
6740*** used, and then restart.
6741
6742EOF
6743      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6744	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6745	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6746      else
6747	ld_shlibs=no
6748      fi
6749      ;;
6750
6751    sunos4*)
6752      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6753      wlarc=
6754      hardcode_direct=yes
6755      hardcode_shlibpath_var=no
6756      ;;
6757
6758    *)
6759      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6760	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6761	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6762      else
6763	ld_shlibs=no
6764      fi
6765      ;;
6766    esac
6767
6768    if test "$ld_shlibs" = yes; then
6769      runpath_var=LD_RUN_PATH
6770      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6771      export_dynamic_flag_spec='${wl}--export-dynamic'
6772      # ancient GNU ld didn't support --whole-archive et. al.
6773      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6774 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6775      else
6776  	whole_archive_flag_spec=
6777      fi
6778    fi
6779  else
6780    # PORTME fill in a description of your system's linker (not GNU ld)
6781    case $host_os in
6782    aix3*)
6783      allow_undefined_flag=unsupported
6784      always_export_symbols=yes
6785      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'
6786      # Note: this linker hardcodes the directories in LIBPATH if there
6787      # are no directories specified by -L.
6788      hardcode_minus_L=yes
6789      if test "$GCC" = yes && test -z "$link_static_flag"; then
6790	# Neither direct hardcoding nor static linking is supported with a
6791	# broken collect2.
6792	hardcode_direct=unsupported
6793      fi
6794      ;;
6795
6796    aix4* | aix5*)
6797      if test "$host_cpu" = ia64; then
6798	# On IA64, the linker does run time linking by default, so we don't
6799	# have to do anything special.
6800	aix_use_runtimelinking=no
6801	exp_sym_flag='-Bexport'
6802	no_entry_flag=""
6803      else
6804	# If we're using GNU nm, then we don't want the "-C" option.
6805	# -C means demangle to AIX nm, but means don't demangle with GNU nm
6806	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6807	  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'
6808	else
6809	  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'
6810	fi
6811	aix_use_runtimelinking=no
6812
6813	# Test if we are trying to use run time linking or normal
6814	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6815	# need to do runtime linking.
6816	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6817	  for ld_flag in $LDFLAGS; do
6818  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6819  	    aix_use_runtimelinking=yes
6820  	    break
6821  	  fi
6822	  done
6823	esac
6824
6825	exp_sym_flag='-bexport'
6826	no_entry_flag='-bnoentry'
6827      fi
6828
6829      # When large executables or shared objects are built, AIX ld can
6830      # have problems creating the table of contents.  If linking a library
6831      # or program results in "error TOC overflow" add -mminimal-toc to
6832      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6833      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6834
6835      archive_cmds=''
6836      hardcode_direct=yes
6837      hardcode_libdir_separator=':'
6838      link_all_deplibs=yes
6839
6840      if test "$GCC" = yes; then
6841	case $host_os in aix4.012|aix4.012.*)
6842	# We only want to do this on AIX 4.2 and lower, the check
6843	# below for broken collect2 doesn't work under 4.3+
6844	  collect2name=`${CC} -print-prog-name=collect2`
6845	  if test -f "$collect2name" && \
6846  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
6847	  then
6848  	  # We have reworked collect2
6849  	  hardcode_direct=yes
6850	  else
6851  	  # We have old collect2
6852  	  hardcode_direct=unsupported
6853  	  # It fails to find uninstalled libraries when the uninstalled
6854  	  # path is not listed in the libpath.  Setting hardcode_minus_L
6855  	  # to unsupported forces relinking
6856  	  hardcode_minus_L=yes
6857  	  hardcode_libdir_flag_spec='-L$libdir'
6858  	  hardcode_libdir_separator=
6859	  fi
6860	esac
6861	shared_flag='-shared'
6862      else
6863	# not using gcc
6864	if test "$host_cpu" = ia64; then
6865  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6866  	# chokes on -Wl,-G. The following line is correct:
6867	  shared_flag='-G'
6868	else
6869  	if test "$aix_use_runtimelinking" = yes; then
6870	    shared_flag='${wl}-G'
6871	  else
6872	    shared_flag='${wl}-bM:SRE'
6873  	fi
6874	fi
6875      fi
6876
6877      # It seems that -bexpall does not export symbols beginning with
6878      # underscore (_), so it is better to generate a list of symbols to export.
6879      always_export_symbols=yes
6880      if test "$aix_use_runtimelinking" = yes; then
6881	# Warning - without using the other runtime loading flags (-brtl),
6882	# -berok will link without error, but may produce a broken library.
6883	allow_undefined_flag='-berok'
6884       # Determine the default libpath from the value encoded in an empty executable.
6885       cat >conftest.$ac_ext <<_ACEOF
6886#line $LINENO "configure"
6887/* confdefs.h.  */
6888_ACEOF
6889cat confdefs.h >>conftest.$ac_ext
6890cat >>conftest.$ac_ext <<_ACEOF
6891/* end confdefs.h.  */
6892
6893int
6894main ()
6895{
6896
6897  ;
6898  return 0;
6899}
6900_ACEOF
6901rm -f conftest.$ac_objext conftest$ac_exeext
6902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6903  (eval $ac_link) 2>&5
6904  ac_status=$?
6905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906  (exit $ac_status); } &&
6907         { ac_try='test -s conftest$ac_exeext'
6908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909  (eval $ac_try) 2>&5
6910  ac_status=$?
6911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912  (exit $ac_status); }; }; then
6913
6914aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6915}'`
6916# Check for a 64-bit object if we didn't find anything.
6917if 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; }
6918}'`; fi
6919else
6920  echo "$as_me: failed program was:" >&5
6921sed 's/^/| /' conftest.$ac_ext >&5
6922
6923fi
6924rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6925if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6926
6927       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6928	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"
6929       else
6930	if test "$host_cpu" = ia64; then
6931	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6932	  allow_undefined_flag="-z nodefs"
6933	  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"
6934	else
6935	 # Determine the default libpath from the value encoded in an empty executable.
6936	 cat >conftest.$ac_ext <<_ACEOF
6937#line $LINENO "configure"
6938/* confdefs.h.  */
6939_ACEOF
6940cat confdefs.h >>conftest.$ac_ext
6941cat >>conftest.$ac_ext <<_ACEOF
6942/* end confdefs.h.  */
6943
6944int
6945main ()
6946{
6947
6948  ;
6949  return 0;
6950}
6951_ACEOF
6952rm -f conftest.$ac_objext conftest$ac_exeext
6953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6954  (eval $ac_link) 2>&5
6955  ac_status=$?
6956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957  (exit $ac_status); } &&
6958         { ac_try='test -s conftest$ac_exeext'
6959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960  (eval $ac_try) 2>&5
6961  ac_status=$?
6962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963  (exit $ac_status); }; }; then
6964
6965aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6966}'`
6967# Check for a 64-bit object if we didn't find anything.
6968if 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; }
6969}'`; fi
6970else
6971  echo "$as_me: failed program was:" >&5
6972sed 's/^/| /' conftest.$ac_ext >&5
6973
6974fi
6975rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6976if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6977
6978	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6979	  # Warning - without using the other run time loading flags,
6980	  # -berok will link without error, but may produce a broken library.
6981	  no_undefined_flag=' ${wl}-bernotok'
6982	  allow_undefined_flag=' ${wl}-berok'
6983	  # -bexpall does not export symbols beginning with underscore (_)
6984	  always_export_symbols=yes
6985	  # Exported symbols can be pulled into shared objects from archives
6986	  whole_archive_flag_spec=' '
6987	  archive_cmds_need_lc=yes
6988	  # This is similar to how AIX traditionally builds it's shared libraries.
6989	  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'
6990	fi
6991      fi
6992      ;;
6993
6994    amigaos*)
6995      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)'
6996      hardcode_libdir_flag_spec='-L$libdir'
6997      hardcode_minus_L=yes
6998      # see comment about different semantics on the GNU ld section
6999      ld_shlibs=no
7000      ;;
7001
7002    bsdi4*)
7003      export_dynamic_flag_spec=-rdynamic
7004      ;;
7005
7006    cygwin* | mingw* | pw32*)
7007      # When not using gcc, we currently assume that we are using
7008      # Microsoft Visual C++.
7009      # hardcode_libdir_flag_spec is actually meaningless, as there is
7010      # no search path for DLLs.
7011      hardcode_libdir_flag_spec=' '
7012      allow_undefined_flag=unsupported
7013      # Tell ltmain to make .lib files, not .a files.
7014      libext=lib
7015      # Tell ltmain to make .dll files, not .so files.
7016      shrext=".dll"
7017      # FIXME: Setting linknames here is a bad hack.
7018      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7019      # The linker will automatically build a .lib file if we build a DLL.
7020      old_archive_From_new_cmds='true'
7021      # FIXME: Should let the user specify the lib program.
7022      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7023      fix_srcfile_path='`cygpath -w "$srcfile"`'
7024      enable_shared_with_static_runtimes=yes
7025      ;;
7026
7027    darwin* | rhapsody*)
7028    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7029      archive_cmds_need_lc=no
7030      case "$host_os" in
7031      rhapsody* | darwin1.[012])
7032	allow_undefined_flag='-undefined suppress'
7033	;;
7034      *) # Darwin 1.3 on
7035	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7036	;;
7037      esac
7038      # FIXME: Relying on posixy $() will cause problems for
7039      #        cross-compilation, but unfortunately the echo tests do not
7040      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7041      #	       `"' quotes if we put them in here... so don't!
7042    	lt_int_apple_cc_single_mod=no
7043    	output_verbose_link_cmd='echo'
7044    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7045    	  lt_int_apple_cc_single_mod=yes
7046    	fi
7047    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7048    	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7049    	else
7050        archive_cmds='$CC -r ${wl}-bind_at_load -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'
7051      fi
7052      module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7053      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7054        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7055          archive_expsym_cmds='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}'
7056        else
7057          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
7058        fi
7059          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7060      hardcode_direct=no
7061      hardcode_automatic=yes
7062      hardcode_shlibpath_var=unsupported
7063      whole_archive_flag_spec='-all_load $convenience'
7064      link_all_deplibs=yes
7065    fi
7066      ;;
7067
7068    dgux*)
7069      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7070      hardcode_libdir_flag_spec='-L$libdir'
7071      hardcode_shlibpath_var=no
7072      ;;
7073
7074    freebsd1*)
7075      ld_shlibs=no
7076      ;;
7077
7078    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7079    # support.  Future versions do this automatically, but an explicit c++rt0.o
7080    # does not break anything, and helps significantly (at the cost of a little
7081    # extra space).
7082    freebsd2.2*)
7083      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7084      hardcode_libdir_flag_spec='-R$libdir'
7085      hardcode_direct=yes
7086      hardcode_shlibpath_var=no
7087      ;;
7088
7089    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7090    freebsd2*)
7091      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7092      hardcode_direct=yes
7093      hardcode_minus_L=yes
7094      hardcode_shlibpath_var=no
7095      ;;
7096
7097    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7098    freebsd*)
7099      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7100      hardcode_libdir_flag_spec='-R$libdir'
7101      hardcode_direct=yes
7102      hardcode_shlibpath_var=no
7103      ;;
7104
7105    hpux9*)
7106      if test "$GCC" = yes; then
7107	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'
7108      else
7109	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'
7110      fi
7111      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7112      hardcode_libdir_separator=:
7113      hardcode_direct=yes
7114
7115      # hardcode_minus_L: Not really in the search PATH,
7116      # but as the default location of the library.
7117      hardcode_minus_L=yes
7118      export_dynamic_flag_spec='${wl}-E'
7119      ;;
7120
7121    hpux10* | hpux11*)
7122      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7123	case "$host_cpu" in
7124	hppa*64*|ia64*)
7125	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7126	  ;;
7127	*)
7128	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7129	  ;;
7130	esac
7131      else
7132	case "$host_cpu" in
7133	hppa*64*|ia64*)
7134	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7135	  ;;
7136	*)
7137	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7138	  ;;
7139	esac
7140      fi
7141      if test "$with_gnu_ld" = no; then
7142	case "$host_cpu" in
7143	hppa*64*)
7144	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7145	  hardcode_libdir_flag_spec_ld='+b $libdir'
7146	  hardcode_libdir_separator=:
7147	  hardcode_direct=no
7148	  hardcode_shlibpath_var=no
7149	  ;;
7150	ia64*)
7151	  hardcode_libdir_flag_spec='-L$libdir'
7152	  hardcode_direct=no
7153	  hardcode_shlibpath_var=no
7154
7155	  # hardcode_minus_L: Not really in the search PATH,
7156	  # but as the default location of the library.
7157	  hardcode_minus_L=yes
7158	  ;;
7159	*)
7160	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7161	  hardcode_libdir_separator=:
7162	  hardcode_direct=yes
7163	  export_dynamic_flag_spec='${wl}-E'
7164
7165	  # hardcode_minus_L: Not really in the search PATH,
7166	  # but as the default location of the library.
7167	  hardcode_minus_L=yes
7168	  ;;
7169	esac
7170      fi
7171      ;;
7172
7173    irix5* | irix6* | nonstopux*)
7174      if test "$GCC" = yes; then
7175	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'
7176      else
7177	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'
7178	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7179      fi
7180      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7181      hardcode_libdir_separator=:
7182      link_all_deplibs=yes
7183      ;;
7184
7185    netbsd*)
7186      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7187	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7188      else
7189	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7190      fi
7191      hardcode_libdir_flag_spec='-R$libdir'
7192      hardcode_direct=yes
7193      hardcode_shlibpath_var=no
7194      ;;
7195
7196    newsos6)
7197      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7198      hardcode_direct=yes
7199      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7200      hardcode_libdir_separator=:
7201      hardcode_shlibpath_var=no
7202      ;;
7203
7204    openbsd*)
7205      hardcode_direct=yes
7206      hardcode_shlibpath_var=no
7207      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7208	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7209	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7210	export_dynamic_flag_spec='${wl}-E'
7211      else
7212       case $host_os in
7213	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7214	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7215	   hardcode_libdir_flag_spec='-R$libdir'
7216	   ;;
7217	 *)
7218	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7219	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7220	   ;;
7221       esac
7222      fi
7223      ;;
7224
7225    os2*)
7226      hardcode_libdir_flag_spec='-L$libdir'
7227      hardcode_minus_L=yes
7228      allow_undefined_flag=unsupported
7229      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'
7230      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7231      ;;
7232
7233    osf3*)
7234      if test "$GCC" = yes; then
7235	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7236	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'
7237      else
7238	allow_undefined_flag=' -expect_unresolved \*'
7239	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'
7240      fi
7241      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7242      hardcode_libdir_separator=:
7243      ;;
7244
7245    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7246      if test "$GCC" = yes; then
7247	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7248	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'
7249	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7250      else
7251	allow_undefined_flag=' -expect_unresolved \*'
7252	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'
7253	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7254	$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'
7255
7256	# Both c and cxx compiler support -rpath directly
7257	hardcode_libdir_flag_spec='-rpath $libdir'
7258      fi
7259      hardcode_libdir_separator=:
7260      ;;
7261
7262    sco3.2v5*)
7263      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7264      hardcode_shlibpath_var=no
7265      export_dynamic_flag_spec='${wl}-Bexport'
7266      runpath_var=LD_RUN_PATH
7267      hardcode_runpath_var=yes
7268      ;;
7269
7270    solaris*)
7271      no_undefined_flag=' -z text'
7272      if test "$GCC" = yes; then
7273	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7274	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7275	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7276      else
7277	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7278	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7279  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7280      fi
7281      hardcode_libdir_flag_spec='-R$libdir'
7282      hardcode_shlibpath_var=no
7283      case $host_os in
7284      solaris2.[0-5] | solaris2.[0-5].*) ;;
7285      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7286	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7287      esac
7288      link_all_deplibs=yes
7289      ;;
7290
7291    sunos4*)
7292      if test "x$host_vendor" = xsequent; then
7293	# Use $CC to link under sequent, because it throws in some extra .o
7294	# files that make .init and .fini sections work.
7295	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7296      else
7297	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7298      fi
7299      hardcode_libdir_flag_spec='-L$libdir'
7300      hardcode_direct=yes
7301      hardcode_minus_L=yes
7302      hardcode_shlibpath_var=no
7303      ;;
7304
7305    sysv4)
7306      case $host_vendor in
7307	sni)
7308	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7309	  hardcode_direct=yes # is this really true???
7310	;;
7311	siemens)
7312	  ## LD is ld it makes a PLAMLIB
7313	  ## CC just makes a GrossModule.
7314	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7315	  reload_cmds='$CC -r -o $output$reload_objs'
7316	  hardcode_direct=no
7317        ;;
7318	motorola)
7319	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7320	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7321	;;
7322      esac
7323      runpath_var='LD_RUN_PATH'
7324      hardcode_shlibpath_var=no
7325      ;;
7326
7327    sysv4.3*)
7328      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7329      hardcode_shlibpath_var=no
7330      export_dynamic_flag_spec='-Bexport'
7331      ;;
7332
7333    sysv4*MP*)
7334      if test -d /usr/nec; then
7335	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7336	hardcode_shlibpath_var=no
7337	runpath_var=LD_RUN_PATH
7338	hardcode_runpath_var=yes
7339	ld_shlibs=yes
7340      fi
7341      ;;
7342
7343    sysv4.2uw2*)
7344      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7345      hardcode_direct=yes
7346      hardcode_minus_L=no
7347      hardcode_shlibpath_var=no
7348      hardcode_runpath_var=yes
7349      runpath_var=LD_RUN_PATH
7350      ;;
7351
7352   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7353      no_undefined_flag='${wl}-z ${wl}text'
7354      if test "$GCC" = yes; then
7355	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7356      else
7357	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7358      fi
7359      runpath_var='LD_RUN_PATH'
7360      hardcode_shlibpath_var=no
7361      ;;
7362
7363    sysv5*)
7364      no_undefined_flag=' -z text'
7365      # $CC -shared without GNU ld will not create a library from C++
7366      # object files and a static libstdc++, better avoid it by now
7367      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7368      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7369  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7370      hardcode_libdir_flag_spec=
7371      hardcode_shlibpath_var=no
7372      runpath_var='LD_RUN_PATH'
7373      ;;
7374
7375    uts4*)
7376      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7377      hardcode_libdir_flag_spec='-L$libdir'
7378      hardcode_shlibpath_var=no
7379      ;;
7380
7381    *)
7382      ld_shlibs=no
7383      ;;
7384    esac
7385  fi
7386
7387echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7388echo "${ECHO_T}$ld_shlibs" >&6
7389test "$ld_shlibs" = no && can_build_shared=no
7390
7391variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7392if test "$GCC" = yes; then
7393  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7394fi
7395
7396#
7397# Do we need to explicitly link libc?
7398#
7399case "x$archive_cmds_need_lc" in
7400x|xyes)
7401  # Assume -lc should be added
7402  archive_cmds_need_lc=yes
7403
7404  if test "$enable_shared" = yes && test "$GCC" = yes; then
7405    case $archive_cmds in
7406    *'~'*)
7407      # FIXME: we may have to deal with multi-command sequences.
7408      ;;
7409    '$CC '*)
7410      # Test whether the compiler implicitly links with -lc since on some
7411      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7412      # to ld, don't add -lc before -lgcc.
7413      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7414echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7415      $rm conftest*
7416      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7417
7418      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7419  (eval $ac_compile) 2>&5
7420  ac_status=$?
7421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422  (exit $ac_status); } 2>conftest.err; then
7423        soname=conftest
7424        lib=conftest
7425        libobjs=conftest.$ac_objext
7426        deplibs=
7427        wl=$lt_prog_compiler_wl
7428        compiler_flags=-v
7429        linker_flags=-v
7430        verstring=
7431        output_objdir=.
7432        libname=conftest
7433        lt_save_allow_undefined_flag=$allow_undefined_flag
7434        allow_undefined_flag=
7435        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7436  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7437  ac_status=$?
7438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439  (exit $ac_status); }
7440        then
7441	  archive_cmds_need_lc=no
7442        else
7443	  archive_cmds_need_lc=yes
7444        fi
7445        allow_undefined_flag=$lt_save_allow_undefined_flag
7446      else
7447        cat conftest.err 1>&5
7448      fi
7449      $rm conftest*
7450      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7451echo "${ECHO_T}$archive_cmds_need_lc" >&6
7452      ;;
7453    esac
7454  fi
7455  ;;
7456esac
7457
7458echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7459echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7460hardcode_action=
7461if test -n "$hardcode_libdir_flag_spec" || \
7462   test -n "$runpath_var " || \
7463   test "X$hardcode_automatic"="Xyes" ; then
7464
7465  # We can hardcode non-existant directories.
7466  if test "$hardcode_direct" != no &&
7467     # If the only mechanism to avoid hardcoding is shlibpath_var, we
7468     # have to relink, otherwise we might link with an installed library
7469     # when we should be linking with a yet-to-be-installed one
7470     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7471     test "$hardcode_minus_L" != no; then
7472    # Linking always hardcodes the temporary library directory.
7473    hardcode_action=relink
7474  else
7475    # We can link without hardcoding, and we can hardcode nonexisting dirs.
7476    hardcode_action=immediate
7477  fi
7478else
7479  # We cannot hardcode anything, or else we can only hardcode existing
7480  # directories.
7481  hardcode_action=unsupported
7482fi
7483echo "$as_me:$LINENO: result: $hardcode_action" >&5
7484echo "${ECHO_T}$hardcode_action" >&6
7485
7486if test "$hardcode_action" = relink; then
7487  # Fast installation is not supported
7488  enable_fast_install=no
7489elif test "$shlibpath_overrides_runpath" = yes ||
7490     test "$enable_shared" = no; then
7491  # Fast installation is not necessary
7492  enable_fast_install=needless
7493fi
7494
7495striplib=
7496old_striplib=
7497echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7498echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7499if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7500  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7501  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7502  echo "$as_me:$LINENO: result: yes" >&5
7503echo "${ECHO_T}yes" >&6
7504else
7505# FIXME - insert some real tests, host_os isn't really good enough
7506  case $host_os in
7507   darwin*)
7508       if test -n "$STRIP" ; then
7509         striplib="$STRIP -x"
7510         echo "$as_me:$LINENO: result: yes" >&5
7511echo "${ECHO_T}yes" >&6
7512       else
7513  echo "$as_me:$LINENO: result: no" >&5
7514echo "${ECHO_T}no" >&6
7515fi
7516       ;;
7517   *)
7518  echo "$as_me:$LINENO: result: no" >&5
7519echo "${ECHO_T}no" >&6
7520    ;;
7521  esac
7522fi
7523
7524echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7525echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7526library_names_spec=
7527libname_spec='lib$name'
7528soname_spec=
7529shrext=".so"
7530postinstall_cmds=
7531postuninstall_cmds=
7532finish_cmds=
7533finish_eval=
7534shlibpath_var=
7535shlibpath_overrides_runpath=unknown
7536version_type=none
7537dynamic_linker="$host_os ld.so"
7538sys_lib_dlsearch_path_spec="/lib /usr/lib"
7539if test "$GCC" = yes; then
7540  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7541  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7542    # if the path contains ";" then we assume it to be the separator
7543    # otherwise default to the standard path separator (i.e. ":") - it is
7544    # assumed that no part of a normal pathname contains ";" but that should
7545    # okay in the real world where ";" in dirpaths is itself problematic.
7546    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7547  else
7548    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7549  fi
7550else
7551  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7552fi
7553need_lib_prefix=unknown
7554hardcode_into_libs=no
7555
7556# when you set need_version to no, make sure it does not cause -set_version
7557# flags to be left without arguments
7558need_version=unknown
7559
7560case $host_os in
7561aix3*)
7562  version_type=linux
7563  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7564  shlibpath_var=LIBPATH
7565
7566  # AIX 3 has no versioning support, so we append a major version to the name.
7567  soname_spec='${libname}${release}${shared_ext}$major'
7568  ;;
7569
7570aix4* | aix5*)
7571  version_type=linux
7572  need_lib_prefix=no
7573  need_version=no
7574  hardcode_into_libs=yes
7575  if test "$host_cpu" = ia64; then
7576    # AIX 5 supports IA64
7577    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7578    shlibpath_var=LD_LIBRARY_PATH
7579  else
7580    # With GCC up to 2.95.x, collect2 would create an import file
7581    # for dependence libraries.  The import file would start with
7582    # the line `#! .'.  This would cause the generated library to
7583    # depend on `.', always an invalid library.  This was fixed in
7584    # development snapshots of GCC prior to 3.0.
7585    case $host_os in
7586      aix4 | aix4.[01] | aix4.[01].*)
7587      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7588	   echo ' yes '
7589	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7590	:
7591      else
7592	can_build_shared=no
7593      fi
7594      ;;
7595    esac
7596    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7597    # soname into executable. Probably we can add versioning support to
7598    # collect2, so additional links can be useful in future.
7599    if test "$aix_use_runtimelinking" = yes; then
7600      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7601      # instead of lib<name>.a to let people know that these are not
7602      # typical AIX shared libraries.
7603      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7604    else
7605      # We preserve .a as extension for shared libraries through AIX4.2
7606      # and later when we are not doing run time linking.
7607      library_names_spec='${libname}${release}.a $libname.a'
7608      soname_spec='${libname}${release}${shared_ext}$major'
7609    fi
7610    shlibpath_var=LIBPATH
7611  fi
7612  ;;
7613
7614amigaos*)
7615  library_names_spec='$libname.ixlibrary $libname.a'
7616  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7617  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'
7618  ;;
7619
7620beos*)
7621  library_names_spec='${libname}${shared_ext}'
7622  dynamic_linker="$host_os ld.so"
7623  shlibpath_var=LIBRARY_PATH
7624  ;;
7625
7626bsdi4*)
7627  version_type=linux
7628  need_version=no
7629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7630  soname_spec='${libname}${release}${shared_ext}$major'
7631  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7632  shlibpath_var=LD_LIBRARY_PATH
7633  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7634  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7635  # the default ld.so.conf also contains /usr/contrib/lib and
7636  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7637  # libtool to hard-code these into programs
7638  ;;
7639
7640cygwin* | mingw* | pw32*)
7641  version_type=windows
7642  shrext=".dll"
7643  need_version=no
7644  need_lib_prefix=no
7645
7646  case $GCC,$host_os in
7647  yes,cygwin* | yes,mingw* | yes,pw32*)
7648    library_names_spec='$libname.dll.a'
7649    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7650    postinstall_cmds='base_file=`basename \${file}`~
7651      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7652      dldir=$destdir/`dirname \$dlpath`~
7653      test -d \$dldir || mkdir -p \$dldir~
7654      $install_prog $dir/$dlname \$dldir/$dlname'
7655    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7656      dlpath=$dir/\$dldll~
7657       $rm \$dlpath'
7658    shlibpath_overrides_runpath=yes
7659
7660    case $host_os in
7661    cygwin*)
7662      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7663      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7664      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7665      ;;
7666    mingw*)
7667      # MinGW DLLs use traditional 'lib' prefix
7668      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7669      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7670      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7671        # It is most probably a Windows format PATH printed by
7672        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7673        # path with ; separators, and with drive letters. We can handle the
7674        # drive letters (cygwin fileutils understands them), so leave them,
7675        # especially as we might pass files found there to a mingw objdump,
7676        # which wouldn't understand a cygwinified path. Ahh.
7677        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7678      else
7679        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7680      fi
7681      ;;
7682    pw32*)
7683      # pw32 DLLs use 'pw' prefix rather than 'lib'
7684      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7685      ;;
7686    esac
7687    ;;
7688
7689  *)
7690    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7691    ;;
7692  esac
7693  dynamic_linker='Win32 ld.exe'
7694  # FIXME: first we should search . and the directory the executable is in
7695  shlibpath_var=PATH
7696  ;;
7697
7698darwin* | rhapsody*)
7699  dynamic_linker="$host_os dyld"
7700  version_type=darwin
7701  need_lib_prefix=no
7702  need_version=no
7703  # FIXME: Relying on posixy $() will cause problems for
7704  #        cross-compilation, but unfortunately the echo tests do not
7705  #        yet detect zsh echo's removal of \ escapes.
7706  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7707  soname_spec='${libname}${release}${major}$shared_ext'
7708  shlibpath_overrides_runpath=yes
7709  shlibpath_var=DYLD_LIBRARY_PATH
7710  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7711  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7712  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7713  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"`
7714  fi
7715  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7716  ;;
7717
7718dgux*)
7719  version_type=linux
7720  need_lib_prefix=no
7721  need_version=no
7722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7723  soname_spec='${libname}${release}${shared_ext}$major'
7724  shlibpath_var=LD_LIBRARY_PATH
7725  ;;
7726
7727freebsd1*)
7728  dynamic_linker=no
7729  ;;
7730
7731freebsd*)
7732  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7733  version_type=freebsd-$objformat
7734  case $version_type in
7735    freebsd-elf*)
7736      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7737      need_version=no
7738      need_lib_prefix=no
7739      ;;
7740    freebsd-*)
7741      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7742      need_version=yes
7743      ;;
7744  esac
7745  shlibpath_var=LD_LIBRARY_PATH
7746  case $host_os in
7747  freebsd2*)
7748    shlibpath_overrides_runpath=yes
7749    ;;
7750  freebsd3.01* | freebsdelf3.01*)
7751    shlibpath_overrides_runpath=yes
7752    hardcode_into_libs=yes
7753    ;;
7754  *) # from 3.2 on
7755    shlibpath_overrides_runpath=no
7756    hardcode_into_libs=yes
7757    ;;
7758  esac
7759  ;;
7760
7761gnu*)
7762  version_type=linux
7763  need_lib_prefix=no
7764  need_version=no
7765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7766  soname_spec='${libname}${release}${shared_ext}$major'
7767  shlibpath_var=LD_LIBRARY_PATH
7768  hardcode_into_libs=yes
7769  ;;
7770
7771hpux9* | hpux10* | hpux11*)
7772  # Give a soname corresponding to the major version so that dld.sl refuses to
7773  # link against other versions.
7774  version_type=sunos
7775  need_lib_prefix=no
7776  need_version=no
7777  case "$host_cpu" in
7778  ia64*)
7779    shrext='.so'
7780    hardcode_into_libs=yes
7781    dynamic_linker="$host_os dld.so"
7782    shlibpath_var=LD_LIBRARY_PATH
7783    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7784    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7785    soname_spec='${libname}${release}${shared_ext}$major'
7786    if test "X$HPUX_IA64_MODE" = X32; then
7787      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7788    else
7789      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7790    fi
7791    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7792    ;;
7793   hppa*64*)
7794     shrext='.sl'
7795     hardcode_into_libs=yes
7796     dynamic_linker="$host_os dld.sl"
7797     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7798     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7799     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7800     soname_spec='${libname}${release}${shared_ext}$major'
7801     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7802     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7803     ;;
7804   *)
7805    shrext='.sl'
7806    dynamic_linker="$host_os dld.sl"
7807    shlibpath_var=SHLIB_PATH
7808    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7809    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7810    soname_spec='${libname}${release}${shared_ext}$major'
7811    ;;
7812  esac
7813  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7814  postinstall_cmds='chmod 555 $lib'
7815  ;;
7816
7817irix5* | irix6* | nonstopux*)
7818  case $host_os in
7819    nonstopux*) version_type=nonstopux ;;
7820    *)
7821	if test "$lt_cv_prog_gnu_ld" = yes; then
7822		version_type=linux
7823	else
7824		version_type=irix
7825	fi ;;
7826  esac
7827  need_lib_prefix=no
7828  need_version=no
7829  soname_spec='${libname}${release}${shared_ext}$major'
7830  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7831  case $host_os in
7832  irix5* | nonstopux*)
7833    libsuff= shlibsuff=
7834    ;;
7835  *)
7836    case $LD in # libtool.m4 will add one of these switches to LD
7837    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7838      libsuff= shlibsuff= libmagic=32-bit;;
7839    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7840      libsuff=32 shlibsuff=N32 libmagic=N32;;
7841    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7842      libsuff=64 shlibsuff=64 libmagic=64-bit;;
7843    *) libsuff= shlibsuff= libmagic=never-match;;
7844    esac
7845    ;;
7846  esac
7847  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7848  shlibpath_overrides_runpath=no
7849  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7850  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7851  hardcode_into_libs=yes
7852  ;;
7853
7854# No shared lib support for Linux oldld, aout, or coff.
7855linux*oldld* | linux*aout* | linux*coff*)
7856  dynamic_linker=no
7857  ;;
7858
7859# This must be Linux ELF.
7860linux*)
7861  version_type=linux
7862  need_lib_prefix=no
7863  need_version=no
7864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7865  soname_spec='${libname}${release}${shared_ext}$major'
7866  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7867  shlibpath_var=LD_LIBRARY_PATH
7868  shlibpath_overrides_runpath=no
7869  # This implies no fast_install, which is unacceptable.
7870  # Some rework will be needed to allow for fast_install
7871  # before this can be enabled.
7872  hardcode_into_libs=yes
7873
7874  # We used to test for /lib/ld.so.1 and disable shared libraries on
7875  # powerpc, because MkLinux only supported shared libraries with the
7876  # GNU dynamic linker.  Since this was broken with cross compilers,
7877  # most powerpc-linux boxes support dynamic linking these days and
7878  # people can always --disable-shared, the test was removed, and we
7879  # assume the GNU/Linux dynamic linker is in use.
7880  dynamic_linker='GNU/Linux ld.so'
7881  ;;
7882
7883netbsd*)
7884  version_type=sunos
7885  need_lib_prefix=no
7886  need_version=no
7887  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7888    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7889    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7890    dynamic_linker='NetBSD (a.out) ld.so'
7891  else
7892    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7893    soname_spec='${libname}${release}${shared_ext}$major'
7894    dynamic_linker='NetBSD ld.elf_so'
7895  fi
7896  shlibpath_var=LD_LIBRARY_PATH
7897  shlibpath_overrides_runpath=yes
7898  hardcode_into_libs=yes
7899  ;;
7900
7901newsos6)
7902  version_type=linux
7903  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7904  shlibpath_var=LD_LIBRARY_PATH
7905  shlibpath_overrides_runpath=yes
7906  ;;
7907
7908nto-qnx)
7909  version_type=linux
7910  need_lib_prefix=no
7911  need_version=no
7912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7913  soname_spec='${libname}${release}${shared_ext}$major'
7914  shlibpath_var=LD_LIBRARY_PATH
7915  shlibpath_overrides_runpath=yes
7916  ;;
7917
7918openbsd*)
7919  version_type=sunos
7920  need_lib_prefix=no
7921  need_version=no
7922  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7923  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7924  shlibpath_var=LD_LIBRARY_PATH
7925  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7926    case $host_os in
7927      openbsd2.[89] | openbsd2.[89].*)
7928	shlibpath_overrides_runpath=no
7929	;;
7930      *)
7931	shlibpath_overrides_runpath=yes
7932	;;
7933      esac
7934  else
7935    shlibpath_overrides_runpath=yes
7936  fi
7937  ;;
7938
7939os2*)
7940  libname_spec='$name'
7941  shrext=".dll"
7942  need_lib_prefix=no
7943  library_names_spec='$libname${shared_ext} $libname.a'
7944  dynamic_linker='OS/2 ld.exe'
7945  shlibpath_var=LIBPATH
7946  ;;
7947
7948osf3* | osf4* | osf5*)
7949  version_type=osf
7950  need_lib_prefix=no
7951  need_version=no
7952  soname_spec='${libname}${release}${shared_ext}$major'
7953  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7954  shlibpath_var=LD_LIBRARY_PATH
7955  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7956  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7957  ;;
7958
7959sco3.2v5*)
7960  version_type=osf
7961  soname_spec='${libname}${release}${shared_ext}$major'
7962  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7963  shlibpath_var=LD_LIBRARY_PATH
7964  ;;
7965
7966solaris*)
7967  version_type=linux
7968  need_lib_prefix=no
7969  need_version=no
7970  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7971  soname_spec='${libname}${release}${shared_ext}$major'
7972  shlibpath_var=LD_LIBRARY_PATH
7973  shlibpath_overrides_runpath=yes
7974  hardcode_into_libs=yes
7975  # ldd complains unless libraries are executable
7976  postinstall_cmds='chmod +x $lib'
7977  ;;
7978
7979sunos4*)
7980  version_type=sunos
7981  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7982  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7983  shlibpath_var=LD_LIBRARY_PATH
7984  shlibpath_overrides_runpath=yes
7985  if test "$with_gnu_ld" = yes; then
7986    need_lib_prefix=no
7987  fi
7988  need_version=yes
7989  ;;
7990
7991sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7992  version_type=linux
7993  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7994  soname_spec='${libname}${release}${shared_ext}$major'
7995  shlibpath_var=LD_LIBRARY_PATH
7996  case $host_vendor in
7997    sni)
7998      shlibpath_overrides_runpath=no
7999      need_lib_prefix=no
8000      export_dynamic_flag_spec='${wl}-Blargedynsym'
8001      runpath_var=LD_RUN_PATH
8002      ;;
8003    siemens)
8004      need_lib_prefix=no
8005      ;;
8006    motorola)
8007      need_lib_prefix=no
8008      need_version=no
8009      shlibpath_overrides_runpath=no
8010      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8011      ;;
8012  esac
8013  ;;
8014
8015sysv4*MP*)
8016  if test -d /usr/nec ;then
8017    version_type=linux
8018    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8019    soname_spec='$libname${shared_ext}.$major'
8020    shlibpath_var=LD_LIBRARY_PATH
8021  fi
8022  ;;
8023
8024uts4*)
8025  version_type=linux
8026  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8027  soname_spec='${libname}${release}${shared_ext}$major'
8028  shlibpath_var=LD_LIBRARY_PATH
8029  ;;
8030
8031*)
8032  dynamic_linker=no
8033  ;;
8034esac
8035echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8036echo "${ECHO_T}$dynamic_linker" >&6
8037test "$dynamic_linker" = no && can_build_shared=no
8038
8039if test "x$enable_dlopen" != xyes; then
8040  enable_dlopen=unknown
8041  enable_dlopen_self=unknown
8042  enable_dlopen_self_static=unknown
8043else
8044  lt_cv_dlopen=no
8045  lt_cv_dlopen_libs=
8046
8047  case $host_os in
8048  beos*)
8049    lt_cv_dlopen="load_add_on"
8050    lt_cv_dlopen_libs=
8051    lt_cv_dlopen_self=yes
8052    ;;
8053
8054  mingw* | pw32*)
8055    lt_cv_dlopen="LoadLibrary"
8056    lt_cv_dlopen_libs=
8057   ;;
8058
8059  cygwin*)
8060    lt_cv_dlopen="dlopen"
8061    lt_cv_dlopen_libs=
8062   ;;
8063
8064  darwin*)
8065  # if libdl is installed we need to link against it
8066    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8067echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8068if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8069  echo $ECHO_N "(cached) $ECHO_C" >&6
8070else
8071  ac_check_lib_save_LIBS=$LIBS
8072LIBS="-ldl  $LIBS"
8073cat >conftest.$ac_ext <<_ACEOF
8074#line $LINENO "configure"
8075/* confdefs.h.  */
8076_ACEOF
8077cat confdefs.h >>conftest.$ac_ext
8078cat >>conftest.$ac_ext <<_ACEOF
8079/* end confdefs.h.  */
8080
8081/* Override any gcc2 internal prototype to avoid an error.  */
8082#ifdef __cplusplus
8083extern "C"
8084#endif
8085/* We use char because int might match the return type of a gcc2
8086   builtin and then its argument prototype would still apply.  */
8087char dlopen ();
8088int
8089main ()
8090{
8091dlopen ();
8092  ;
8093  return 0;
8094}
8095_ACEOF
8096rm -f conftest.$ac_objext conftest$ac_exeext
8097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8098  (eval $ac_link) 2>&5
8099  ac_status=$?
8100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101  (exit $ac_status); } &&
8102         { ac_try='test -s conftest$ac_exeext'
8103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8104  (eval $ac_try) 2>&5
8105  ac_status=$?
8106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107  (exit $ac_status); }; }; then
8108  ac_cv_lib_dl_dlopen=yes
8109else
8110  echo "$as_me: failed program was:" >&5
8111sed 's/^/| /' conftest.$ac_ext >&5
8112
8113ac_cv_lib_dl_dlopen=no
8114fi
8115rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8116LIBS=$ac_check_lib_save_LIBS
8117fi
8118echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8119echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8120if test $ac_cv_lib_dl_dlopen = yes; then
8121  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8122else
8123
8124    lt_cv_dlopen="dyld"
8125    lt_cv_dlopen_libs=
8126    lt_cv_dlopen_self=yes
8127
8128fi
8129
8130   ;;
8131
8132  *)
8133    echo "$as_me:$LINENO: checking for shl_load" >&5
8134echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8135if test "${ac_cv_func_shl_load+set}" = set; then
8136  echo $ECHO_N "(cached) $ECHO_C" >&6
8137else
8138  cat >conftest.$ac_ext <<_ACEOF
8139#line $LINENO "configure"
8140/* confdefs.h.  */
8141_ACEOF
8142cat confdefs.h >>conftest.$ac_ext
8143cat >>conftest.$ac_ext <<_ACEOF
8144/* end confdefs.h.  */
8145/* System header to define __stub macros and hopefully few prototypes,
8146    which can conflict with char shl_load (); below.
8147    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8148    <limits.h> exists even on freestanding compilers.  */
8149#ifdef __STDC__
8150# include <limits.h>
8151#else
8152# include <assert.h>
8153#endif
8154/* Override any gcc2 internal prototype to avoid an error.  */
8155#ifdef __cplusplus
8156extern "C"
8157{
8158#endif
8159/* We use char because int might match the return type of a gcc2
8160   builtin and then its argument prototype would still apply.  */
8161char shl_load ();
8162/* The GNU C library defines this for functions which it implements
8163    to always fail with ENOSYS.  Some functions are actually named
8164    something starting with __ and the normal name is an alias.  */
8165#if defined (__stub_shl_load) || defined (__stub___shl_load)
8166choke me
8167#else
8168char (*f) () = shl_load;
8169#endif
8170#ifdef __cplusplus
8171}
8172#endif
8173
8174int
8175main ()
8176{
8177return f != shl_load;
8178  ;
8179  return 0;
8180}
8181_ACEOF
8182rm -f conftest.$ac_objext conftest$ac_exeext
8183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8184  (eval $ac_link) 2>&5
8185  ac_status=$?
8186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187  (exit $ac_status); } &&
8188         { ac_try='test -s conftest$ac_exeext'
8189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190  (eval $ac_try) 2>&5
8191  ac_status=$?
8192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193  (exit $ac_status); }; }; then
8194  ac_cv_func_shl_load=yes
8195else
8196  echo "$as_me: failed program was:" >&5
8197sed 's/^/| /' conftest.$ac_ext >&5
8198
8199ac_cv_func_shl_load=no
8200fi
8201rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8202fi
8203echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8204echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8205if test $ac_cv_func_shl_load = yes; then
8206  lt_cv_dlopen="shl_load"
8207else
8208  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8209echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8210if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8211  echo $ECHO_N "(cached) $ECHO_C" >&6
8212else
8213  ac_check_lib_save_LIBS=$LIBS
8214LIBS="-ldld  $LIBS"
8215cat >conftest.$ac_ext <<_ACEOF
8216#line $LINENO "configure"
8217/* confdefs.h.  */
8218_ACEOF
8219cat confdefs.h >>conftest.$ac_ext
8220cat >>conftest.$ac_ext <<_ACEOF
8221/* end confdefs.h.  */
8222
8223/* Override any gcc2 internal prototype to avoid an error.  */
8224#ifdef __cplusplus
8225extern "C"
8226#endif
8227/* We use char because int might match the return type of a gcc2
8228   builtin and then its argument prototype would still apply.  */
8229char shl_load ();
8230int
8231main ()
8232{
8233shl_load ();
8234  ;
8235  return 0;
8236}
8237_ACEOF
8238rm -f conftest.$ac_objext conftest$ac_exeext
8239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8240  (eval $ac_link) 2>&5
8241  ac_status=$?
8242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243  (exit $ac_status); } &&
8244         { ac_try='test -s conftest$ac_exeext'
8245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246  (eval $ac_try) 2>&5
8247  ac_status=$?
8248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249  (exit $ac_status); }; }; then
8250  ac_cv_lib_dld_shl_load=yes
8251else
8252  echo "$as_me: failed program was:" >&5
8253sed 's/^/| /' conftest.$ac_ext >&5
8254
8255ac_cv_lib_dld_shl_load=no
8256fi
8257rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8258LIBS=$ac_check_lib_save_LIBS
8259fi
8260echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8261echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8262if test $ac_cv_lib_dld_shl_load = yes; then
8263  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8264else
8265  echo "$as_me:$LINENO: checking for dlopen" >&5
8266echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8267if test "${ac_cv_func_dlopen+set}" = set; then
8268  echo $ECHO_N "(cached) $ECHO_C" >&6
8269else
8270  cat >conftest.$ac_ext <<_ACEOF
8271#line $LINENO "configure"
8272/* confdefs.h.  */
8273_ACEOF
8274cat confdefs.h >>conftest.$ac_ext
8275cat >>conftest.$ac_ext <<_ACEOF
8276/* end confdefs.h.  */
8277/* System header to define __stub macros and hopefully few prototypes,
8278    which can conflict with char dlopen (); below.
8279    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8280    <limits.h> exists even on freestanding compilers.  */
8281#ifdef __STDC__
8282# include <limits.h>
8283#else
8284# include <assert.h>
8285#endif
8286/* Override any gcc2 internal prototype to avoid an error.  */
8287#ifdef __cplusplus
8288extern "C"
8289{
8290#endif
8291/* We use char because int might match the return type of a gcc2
8292   builtin and then its argument prototype would still apply.  */
8293char dlopen ();
8294/* The GNU C library defines this for functions which it implements
8295    to always fail with ENOSYS.  Some functions are actually named
8296    something starting with __ and the normal name is an alias.  */
8297#if defined (__stub_dlopen) || defined (__stub___dlopen)
8298choke me
8299#else
8300char (*f) () = dlopen;
8301#endif
8302#ifdef __cplusplus
8303}
8304#endif
8305
8306int
8307main ()
8308{
8309return f != dlopen;
8310  ;
8311  return 0;
8312}
8313_ACEOF
8314rm -f conftest.$ac_objext conftest$ac_exeext
8315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8316  (eval $ac_link) 2>&5
8317  ac_status=$?
8318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319  (exit $ac_status); } &&
8320         { ac_try='test -s conftest$ac_exeext'
8321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322  (eval $ac_try) 2>&5
8323  ac_status=$?
8324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325  (exit $ac_status); }; }; then
8326  ac_cv_func_dlopen=yes
8327else
8328  echo "$as_me: failed program was:" >&5
8329sed 's/^/| /' conftest.$ac_ext >&5
8330
8331ac_cv_func_dlopen=no
8332fi
8333rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8334fi
8335echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8336echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8337if test $ac_cv_func_dlopen = yes; then
8338  lt_cv_dlopen="dlopen"
8339else
8340  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8341echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8342if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8343  echo $ECHO_N "(cached) $ECHO_C" >&6
8344else
8345  ac_check_lib_save_LIBS=$LIBS
8346LIBS="-ldl  $LIBS"
8347cat >conftest.$ac_ext <<_ACEOF
8348#line $LINENO "configure"
8349/* confdefs.h.  */
8350_ACEOF
8351cat confdefs.h >>conftest.$ac_ext
8352cat >>conftest.$ac_ext <<_ACEOF
8353/* end confdefs.h.  */
8354
8355/* Override any gcc2 internal prototype to avoid an error.  */
8356#ifdef __cplusplus
8357extern "C"
8358#endif
8359/* We use char because int might match the return type of a gcc2
8360   builtin and then its argument prototype would still apply.  */
8361char dlopen ();
8362int
8363main ()
8364{
8365dlopen ();
8366  ;
8367  return 0;
8368}
8369_ACEOF
8370rm -f conftest.$ac_objext conftest$ac_exeext
8371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8372  (eval $ac_link) 2>&5
8373  ac_status=$?
8374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375  (exit $ac_status); } &&
8376         { ac_try='test -s conftest$ac_exeext'
8377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378  (eval $ac_try) 2>&5
8379  ac_status=$?
8380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381  (exit $ac_status); }; }; then
8382  ac_cv_lib_dl_dlopen=yes
8383else
8384  echo "$as_me: failed program was:" >&5
8385sed 's/^/| /' conftest.$ac_ext >&5
8386
8387ac_cv_lib_dl_dlopen=no
8388fi
8389rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8390LIBS=$ac_check_lib_save_LIBS
8391fi
8392echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8393echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8394if test $ac_cv_lib_dl_dlopen = yes; then
8395  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8396else
8397  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8398echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8399if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8400  echo $ECHO_N "(cached) $ECHO_C" >&6
8401else
8402  ac_check_lib_save_LIBS=$LIBS
8403LIBS="-lsvld  $LIBS"
8404cat >conftest.$ac_ext <<_ACEOF
8405#line $LINENO "configure"
8406/* confdefs.h.  */
8407_ACEOF
8408cat confdefs.h >>conftest.$ac_ext
8409cat >>conftest.$ac_ext <<_ACEOF
8410/* end confdefs.h.  */
8411
8412/* Override any gcc2 internal prototype to avoid an error.  */
8413#ifdef __cplusplus
8414extern "C"
8415#endif
8416/* We use char because int might match the return type of a gcc2
8417   builtin and then its argument prototype would still apply.  */
8418char dlopen ();
8419int
8420main ()
8421{
8422dlopen ();
8423  ;
8424  return 0;
8425}
8426_ACEOF
8427rm -f conftest.$ac_objext conftest$ac_exeext
8428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8429  (eval $ac_link) 2>&5
8430  ac_status=$?
8431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432  (exit $ac_status); } &&
8433         { ac_try='test -s conftest$ac_exeext'
8434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435  (eval $ac_try) 2>&5
8436  ac_status=$?
8437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438  (exit $ac_status); }; }; then
8439  ac_cv_lib_svld_dlopen=yes
8440else
8441  echo "$as_me: failed program was:" >&5
8442sed 's/^/| /' conftest.$ac_ext >&5
8443
8444ac_cv_lib_svld_dlopen=no
8445fi
8446rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8447LIBS=$ac_check_lib_save_LIBS
8448fi
8449echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8450echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8451if test $ac_cv_lib_svld_dlopen = yes; then
8452  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8453else
8454  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8455echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8456if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8457  echo $ECHO_N "(cached) $ECHO_C" >&6
8458else
8459  ac_check_lib_save_LIBS=$LIBS
8460LIBS="-ldld  $LIBS"
8461cat >conftest.$ac_ext <<_ACEOF
8462#line $LINENO "configure"
8463/* confdefs.h.  */
8464_ACEOF
8465cat confdefs.h >>conftest.$ac_ext
8466cat >>conftest.$ac_ext <<_ACEOF
8467/* end confdefs.h.  */
8468
8469/* Override any gcc2 internal prototype to avoid an error.  */
8470#ifdef __cplusplus
8471extern "C"
8472#endif
8473/* We use char because int might match the return type of a gcc2
8474   builtin and then its argument prototype would still apply.  */
8475char dld_link ();
8476int
8477main ()
8478{
8479dld_link ();
8480  ;
8481  return 0;
8482}
8483_ACEOF
8484rm -f conftest.$ac_objext conftest$ac_exeext
8485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8486  (eval $ac_link) 2>&5
8487  ac_status=$?
8488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489  (exit $ac_status); } &&
8490         { ac_try='test -s conftest$ac_exeext'
8491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492  (eval $ac_try) 2>&5
8493  ac_status=$?
8494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495  (exit $ac_status); }; }; then
8496  ac_cv_lib_dld_dld_link=yes
8497else
8498  echo "$as_me: failed program was:" >&5
8499sed 's/^/| /' conftest.$ac_ext >&5
8500
8501ac_cv_lib_dld_dld_link=no
8502fi
8503rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8504LIBS=$ac_check_lib_save_LIBS
8505fi
8506echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8507echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8508if test $ac_cv_lib_dld_dld_link = yes; then
8509  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8510fi
8511
8512
8513fi
8514
8515
8516fi
8517
8518
8519fi
8520
8521
8522fi
8523
8524
8525fi
8526
8527    ;;
8528  esac
8529
8530  if test "x$lt_cv_dlopen" != xno; then
8531    enable_dlopen=yes
8532  else
8533    enable_dlopen=no
8534  fi
8535
8536  case $lt_cv_dlopen in
8537  dlopen)
8538    save_CPPFLAGS="$CPPFLAGS"
8539    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8540
8541    save_LDFLAGS="$LDFLAGS"
8542    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8543
8544    save_LIBS="$LIBS"
8545    LIBS="$lt_cv_dlopen_libs $LIBS"
8546
8547    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8548echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8549if test "${lt_cv_dlopen_self+set}" = set; then
8550  echo $ECHO_N "(cached) $ECHO_C" >&6
8551else
8552  	  if test "$cross_compiling" = yes; then :
8553  lt_cv_dlopen_self=cross
8554else
8555  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8556  lt_status=$lt_dlunknown
8557  cat > conftest.$ac_ext <<EOF
8558#line 8558 "configure"
8559#include "confdefs.h"
8560
8561#if HAVE_DLFCN_H
8562#include <dlfcn.h>
8563#endif
8564
8565#include <stdio.h>
8566
8567#ifdef RTLD_GLOBAL
8568#  define LT_DLGLOBAL		RTLD_GLOBAL
8569#else
8570#  ifdef DL_GLOBAL
8571#    define LT_DLGLOBAL		DL_GLOBAL
8572#  else
8573#    define LT_DLGLOBAL		0
8574#  endif
8575#endif
8576
8577/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8578   find out it does not work in some platform. */
8579#ifndef LT_DLLAZY_OR_NOW
8580#  ifdef RTLD_LAZY
8581#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8582#  else
8583#    ifdef DL_LAZY
8584#      define LT_DLLAZY_OR_NOW		DL_LAZY
8585#    else
8586#      ifdef RTLD_NOW
8587#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8588#      else
8589#        ifdef DL_NOW
8590#          define LT_DLLAZY_OR_NOW	DL_NOW
8591#        else
8592#          define LT_DLLAZY_OR_NOW	0
8593#        endif
8594#      endif
8595#    endif
8596#  endif
8597#endif
8598
8599#ifdef __cplusplus
8600extern "C" void exit (int);
8601#endif
8602
8603void fnord() { int i=42;}
8604int main ()
8605{
8606  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8607  int status = $lt_dlunknown;
8608
8609  if (self)
8610    {
8611      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8612      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8613      /* dlclose (self); */
8614    }
8615
8616    exit (status);
8617}
8618EOF
8619  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8620  (eval $ac_link) 2>&5
8621  ac_status=$?
8622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8624    (./conftest; exit; ) 2>/dev/null
8625    lt_status=$?
8626    case x$lt_status in
8627      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8628      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8629      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8630    esac
8631  else :
8632    # compilation failed
8633    lt_cv_dlopen_self=no
8634  fi
8635fi
8636rm -fr conftest*
8637
8638
8639fi
8640echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8641echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8642
8643    if test "x$lt_cv_dlopen_self" = xyes; then
8644      LDFLAGS="$LDFLAGS $link_static_flag"
8645      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8646echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8647if test "${lt_cv_dlopen_self_static+set}" = set; then
8648  echo $ECHO_N "(cached) $ECHO_C" >&6
8649else
8650  	  if test "$cross_compiling" = yes; then :
8651  lt_cv_dlopen_self_static=cross
8652else
8653  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8654  lt_status=$lt_dlunknown
8655  cat > conftest.$ac_ext <<EOF
8656#line 8656 "configure"
8657#include "confdefs.h"
8658
8659#if HAVE_DLFCN_H
8660#include <dlfcn.h>
8661#endif
8662
8663#include <stdio.h>
8664
8665#ifdef RTLD_GLOBAL
8666#  define LT_DLGLOBAL		RTLD_GLOBAL
8667#else
8668#  ifdef DL_GLOBAL
8669#    define LT_DLGLOBAL		DL_GLOBAL
8670#  else
8671#    define LT_DLGLOBAL		0
8672#  endif
8673#endif
8674
8675/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8676   find out it does not work in some platform. */
8677#ifndef LT_DLLAZY_OR_NOW
8678#  ifdef RTLD_LAZY
8679#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8680#  else
8681#    ifdef DL_LAZY
8682#      define LT_DLLAZY_OR_NOW		DL_LAZY
8683#    else
8684#      ifdef RTLD_NOW
8685#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8686#      else
8687#        ifdef DL_NOW
8688#          define LT_DLLAZY_OR_NOW	DL_NOW
8689#        else
8690#          define LT_DLLAZY_OR_NOW	0
8691#        endif
8692#      endif
8693#    endif
8694#  endif
8695#endif
8696
8697#ifdef __cplusplus
8698extern "C" void exit (int);
8699#endif
8700
8701void fnord() { int i=42;}
8702int main ()
8703{
8704  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8705  int status = $lt_dlunknown;
8706
8707  if (self)
8708    {
8709      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8710      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8711      /* dlclose (self); */
8712    }
8713
8714    exit (status);
8715}
8716EOF
8717  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8718  (eval $ac_link) 2>&5
8719  ac_status=$?
8720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8722    (./conftest; exit; ) 2>/dev/null
8723    lt_status=$?
8724    case x$lt_status in
8725      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8726      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8727      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8728    esac
8729  else :
8730    # compilation failed
8731    lt_cv_dlopen_self_static=no
8732  fi
8733fi
8734rm -fr conftest*
8735
8736
8737fi
8738echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8739echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8740    fi
8741
8742    CPPFLAGS="$save_CPPFLAGS"
8743    LDFLAGS="$save_LDFLAGS"
8744    LIBS="$save_LIBS"
8745    ;;
8746  esac
8747
8748  case $lt_cv_dlopen_self in
8749  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8750  *) enable_dlopen_self=unknown ;;
8751  esac
8752
8753  case $lt_cv_dlopen_self_static in
8754  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8755  *) enable_dlopen_self_static=unknown ;;
8756  esac
8757fi
8758
8759
8760# Report which librarie types wil actually be built
8761echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8762echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8763echo "$as_me:$LINENO: result: $can_build_shared" >&5
8764echo "${ECHO_T}$can_build_shared" >&6
8765
8766echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8767echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8768test "$can_build_shared" = "no" && enable_shared=no
8769
8770# On AIX, shared libraries and static libraries use the same namespace, and
8771# are all built from PIC.
8772case "$host_os" in
8773aix3*)
8774  test "$enable_shared" = yes && enable_static=no
8775  if test -n "$RANLIB"; then
8776    archive_cmds="$archive_cmds~\$RANLIB \$lib"
8777    postinstall_cmds='$RANLIB $lib'
8778  fi
8779  ;;
8780
8781aix4*)
8782  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8783    test "$enable_shared" = yes && enable_static=no
8784  fi
8785  ;;
8786  darwin* | rhapsody*)
8787  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8788    archive_cmds_need_lc=no
8789    case "$host_os" in
8790    rhapsody* | darwin1.[012])
8791      allow_undefined_flag='-undefined suppress'
8792      ;;
8793    *) # Darwin 1.3 on
8794      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8795      ;;
8796    esac
8797    # FIXME: Relying on posixy $() will cause problems for
8798    #        cross-compilation, but unfortunately the echo tests do not
8799    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8800    #	       `"' quotes if we put them in here... so don't!
8801		output_verbose_link_cmd='echo'
8802    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8803    module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8804    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8805		  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}'
8806		  module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8807    hardcode_direct=no
8808    hardcode_automatic=yes
8809    hardcode_shlibpath_var=unsupported
8810    whole_archive_flag_spec='-all_load $convenience'
8811    link_all_deplibs=yes
8812    fi
8813    ;;
8814esac
8815echo "$as_me:$LINENO: result: $enable_shared" >&5
8816echo "${ECHO_T}$enable_shared" >&6
8817
8818echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8819echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8820# Make sure either enable_shared or enable_static is yes.
8821test "$enable_shared" = yes || enable_static=yes
8822echo "$as_me:$LINENO: result: $enable_static" >&5
8823echo "${ECHO_T}$enable_static" >&6
8824
8825# The else clause should only fire when bootstrapping the
8826# libtool distribution, otherwise you forgot to ship ltmain.sh
8827# with your package, and you will get complaints that there are
8828# no rules to generate ltmain.sh.
8829if test -f "$ltmain"; then
8830  # See if we are running on zsh, and set the options which allow our commands through
8831  # without removal of \ escapes.
8832  if test -n "${ZSH_VERSION+set}" ; then
8833    setopt NO_GLOB_SUBST
8834  fi
8835  # Now quote all the things that may contain metacharacters while being
8836  # careful not to overquote the AC_SUBSTed values.  We take copies of the
8837  # variables and quote the copies for generation of the libtool script.
8838  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8839    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8840    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8841    deplibs_check_method reload_flag reload_cmds need_locks \
8842    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8843    lt_cv_sys_global_symbol_to_c_name_address \
8844    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8845    old_postinstall_cmds old_postuninstall_cmds \
8846    compiler \
8847    CC \
8848    LD \
8849    lt_prog_compiler_wl \
8850    lt_prog_compiler_pic \
8851    lt_prog_compiler_static \
8852    lt_prog_compiler_no_builtin_flag \
8853    export_dynamic_flag_spec \
8854    thread_safe_flag_spec \
8855    whole_archive_flag_spec \
8856    enable_shared_with_static_runtimes \
8857    old_archive_cmds \
8858    old_archive_from_new_cmds \
8859    predep_objects \
8860    postdep_objects \
8861    predeps \
8862    postdeps \
8863    compiler_lib_search_path \
8864    archive_cmds \
8865    archive_expsym_cmds \
8866    postinstall_cmds \
8867    postuninstall_cmds \
8868    old_archive_from_expsyms_cmds \
8869    allow_undefined_flag \
8870    no_undefined_flag \
8871    export_symbols_cmds \
8872    hardcode_libdir_flag_spec \
8873    hardcode_libdir_flag_spec_ld \
8874    hardcode_libdir_separator \
8875    hardcode_automatic \
8876    module_cmds \
8877    module_expsym_cmds \
8878    lt_cv_prog_compiler_c_o \
8879    exclude_expsyms \
8880    include_expsyms; do
8881
8882    case $var in
8883    old_archive_cmds | \
8884    old_archive_from_new_cmds | \
8885    archive_cmds | \
8886    archive_expsym_cmds | \
8887    module_cmds | \
8888    module_expsym_cmds | \
8889    old_archive_from_expsyms_cmds | \
8890    export_symbols_cmds | \
8891    extract_expsyms_cmds | reload_cmds | finish_cmds | \
8892    postinstall_cmds | postuninstall_cmds | \
8893    old_postinstall_cmds | old_postuninstall_cmds | \
8894    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8895      # Double-quote double-evaled strings.
8896      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8897      ;;
8898    *)
8899      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8900      ;;
8901    esac
8902  done
8903
8904  case $lt_echo in
8905  *'\$0 --fallback-echo"')
8906    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8907    ;;
8908  esac
8909
8910cfgfile="${ofile}T"
8911  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8912  $rm -f "$cfgfile"
8913  { echo "$as_me:$LINENO: creating $ofile" >&5
8914echo "$as_me: creating $ofile" >&6;}
8915
8916  cat <<__EOF__ >> "$cfgfile"
8917#! $SHELL
8918
8919# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8920# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8921# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8922#
8923# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8924# Free Software Foundation, Inc.
8925#
8926# This file is part of GNU Libtool:
8927# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8928#
8929# This program is free software; you can redistribute it and/or modify
8930# it under the terms of the GNU General Public License as published by
8931# the Free Software Foundation; either version 2 of the License, or
8932# (at your option) any later version.
8933#
8934# This program is distributed in the hope that it will be useful, but
8935# WITHOUT ANY WARRANTY; without even the implied warranty of
8936# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8937# General Public License for more details.
8938#
8939# You should have received a copy of the GNU General Public License
8940# along with this program; if not, write to the Free Software
8941# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8942#
8943# As a special exception to the GNU General Public License, if you
8944# distribute this file as part of a program that contains a
8945# configuration script generated by Autoconf, you may include it under
8946# the same distribution terms that you use for the rest of that program.
8947
8948# A sed program that does not truncate output.
8949SED=$lt_SED
8950
8951# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8952Xsed="$SED -e s/^X//"
8953
8954# The HP-UX ksh and POSIX shell print the target directory to stdout
8955# if CDPATH is set.
8956if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8957
8958# The names of the tagged configurations supported by this script.
8959available_tags=
8960
8961# ### BEGIN LIBTOOL CONFIG
8962
8963# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8964
8965# Shell to use when invoking shell scripts.
8966SHELL=$lt_SHELL
8967
8968# Whether or not to build shared libraries.
8969build_libtool_libs=$enable_shared
8970
8971# Whether or not to build static libraries.
8972build_old_libs=$enable_static
8973
8974# Whether or not to add -lc for building shared libraries.
8975build_libtool_need_lc=$archive_cmds_need_lc
8976
8977# Whether or not to disallow shared libs when runtime libs are static
8978allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8979
8980# Whether or not to optimize for fast installation.
8981fast_install=$enable_fast_install
8982
8983# The host system.
8984host_alias=$host_alias
8985host=$host
8986
8987# An echo program that does not interpret backslashes.
8988echo=$lt_echo
8989
8990# The archiver.
8991AR=$lt_AR
8992AR_FLAGS=$lt_AR_FLAGS
8993
8994# A C compiler.
8995LTCC=$lt_LTCC
8996
8997# A language-specific compiler.
8998CC=$lt_compiler
8999
9000# Is the compiler the GNU C compiler?
9001with_gcc=$GCC
9002
9003# An ERE matcher.
9004EGREP=$lt_EGREP
9005
9006# The linker used to build libraries.
9007LD=$lt_LD
9008
9009# Whether we need hard or soft links.
9010LN_S=$lt_LN_S
9011
9012# A BSD-compatible nm program.
9013NM=$lt_NM
9014
9015# A symbol stripping program
9016STRIP=$STRIP
9017
9018# Used to examine libraries when file_magic_cmd begins "file"
9019MAGIC_CMD=$MAGIC_CMD
9020
9021# Used on cygwin: DLL creation program.
9022DLLTOOL="$DLLTOOL"
9023
9024# Used on cygwin: object dumper.
9025OBJDUMP="$OBJDUMP"
9026
9027# Used on cygwin: assembler.
9028AS="$AS"
9029
9030# The name of the directory that contains temporary libtool files.
9031objdir=$objdir
9032
9033# How to create reloadable object files.
9034reload_flag=$lt_reload_flag
9035reload_cmds=$lt_reload_cmds
9036
9037# How to pass a linker flag through the compiler.
9038wl=$lt_lt_prog_compiler_wl
9039
9040# Object file suffix (normally "o").
9041objext="$ac_objext"
9042
9043# Old archive suffix (normally "a").
9044libext="$libext"
9045
9046# Shared library suffix (normally ".so").
9047shrext='$shrext'
9048
9049# Executable file suffix (normally "").
9050exeext="$exeext"
9051
9052# Additional compiler flags for building library objects.
9053pic_flag=$lt_lt_prog_compiler_pic
9054pic_mode=$pic_mode
9055
9056# What is the maximum length of a command?
9057max_cmd_len=$lt_cv_sys_max_cmd_len
9058
9059# Does compiler simultaneously support -c and -o options?
9060compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9061
9062# Must we lock files when doing compilation ?
9063need_locks=$lt_need_locks
9064
9065# Do we need the lib prefix for modules?
9066need_lib_prefix=$need_lib_prefix
9067
9068# Do we need a version for libraries?
9069need_version=$need_version
9070
9071# Whether dlopen is supported.
9072dlopen_support=$enable_dlopen
9073
9074# Whether dlopen of programs is supported.
9075dlopen_self=$enable_dlopen_self
9076
9077# Whether dlopen of statically linked programs is supported.
9078dlopen_self_static=$enable_dlopen_self_static
9079
9080# Compiler flag to prevent dynamic linking.
9081link_static_flag=$lt_lt_prog_compiler_static
9082
9083# Compiler flag to turn off builtin functions.
9084no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9085
9086# Compiler flag to allow reflexive dlopens.
9087export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9088
9089# Compiler flag to generate shared objects directly from archives.
9090whole_archive_flag_spec=$lt_whole_archive_flag_spec
9091
9092# Compiler flag to generate thread-safe objects.
9093thread_safe_flag_spec=$lt_thread_safe_flag_spec
9094
9095# Library versioning type.
9096version_type=$version_type
9097
9098# Format of library name prefix.
9099libname_spec=$lt_libname_spec
9100
9101# List of archive names.  First name is the real one, the rest are links.
9102# The last name is the one that the linker finds with -lNAME.
9103library_names_spec=$lt_library_names_spec
9104
9105# The coded name of the library, if different from the real name.
9106soname_spec=$lt_soname_spec
9107
9108# Commands used to build and install an old-style archive.
9109RANLIB=$lt_RANLIB
9110old_archive_cmds=$lt_old_archive_cmds
9111old_postinstall_cmds=$lt_old_postinstall_cmds
9112old_postuninstall_cmds=$lt_old_postuninstall_cmds
9113
9114# Create an old-style archive from a shared archive.
9115old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9116
9117# Create a temporary old-style archive to link instead of a shared archive.
9118old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9119
9120# Commands used to build and install a shared archive.
9121archive_cmds=$lt_archive_cmds
9122archive_expsym_cmds=$lt_archive_expsym_cmds
9123postinstall_cmds=$lt_postinstall_cmds
9124postuninstall_cmds=$lt_postuninstall_cmds
9125
9126# Commands used to build a loadable module (assumed same as above if empty)
9127module_cmds=$lt_module_cmds
9128module_expsym_cmds=$lt_module_expsym_cmds
9129
9130# Commands to strip libraries.
9131old_striplib=$lt_old_striplib
9132striplib=$lt_striplib
9133
9134# Dependencies to place before the objects being linked to create a
9135# shared library.
9136predep_objects=$lt_predep_objects
9137
9138# Dependencies to place after the objects being linked to create a
9139# shared library.
9140postdep_objects=$lt_postdep_objects
9141
9142# Dependencies to place before the objects being linked to create a
9143# shared library.
9144predeps=$lt_predeps
9145
9146# Dependencies to place after the objects being linked to create a
9147# shared library.
9148postdeps=$lt_postdeps
9149
9150# The library search path used internally by the compiler when linking
9151# a shared library.
9152compiler_lib_search_path=$lt_compiler_lib_search_path
9153
9154# Method to check whether dependent libraries are shared objects.
9155deplibs_check_method=$lt_deplibs_check_method
9156
9157# Command to use when deplibs_check_method == file_magic.
9158file_magic_cmd=$lt_file_magic_cmd
9159
9160# Flag that allows shared libraries with undefined symbols to be built.
9161allow_undefined_flag=$lt_allow_undefined_flag
9162
9163# Flag that forces no undefined symbols.
9164no_undefined_flag=$lt_no_undefined_flag
9165
9166# Commands used to finish a libtool library installation in a directory.
9167finish_cmds=$lt_finish_cmds
9168
9169# Same as above, but a single script fragment to be evaled but not shown.
9170finish_eval=$lt_finish_eval
9171
9172# Take the output of nm and produce a listing of raw symbols and C names.
9173global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9174
9175# Transform the output of nm in a proper C declaration
9176global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9177
9178# Transform the output of nm in a C name address pair
9179global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9180
9181# This is the shared library runtime path variable.
9182runpath_var=$runpath_var
9183
9184# This is the shared library path variable.
9185shlibpath_var=$shlibpath_var
9186
9187# Is shlibpath searched before the hard-coded library search path?
9188shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9189
9190# How to hardcode a shared library path into an executable.
9191hardcode_action=$hardcode_action
9192
9193# Whether we should hardcode library paths into libraries.
9194hardcode_into_libs=$hardcode_into_libs
9195
9196# Flag to hardcode \$libdir into a binary during linking.
9197# This must work even if \$libdir does not exist.
9198hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9199
9200# If ld is used when linking, flag to hardcode \$libdir into
9201# a binary during linking. This must work even if \$libdir does
9202# not exist.
9203hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9204
9205# Whether we need a single -rpath flag with a separated argument.
9206hardcode_libdir_separator=$lt_hardcode_libdir_separator
9207
9208# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9209# resulting binary.
9210hardcode_direct=$hardcode_direct
9211
9212# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9213# resulting binary.
9214hardcode_minus_L=$hardcode_minus_L
9215
9216# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9217# the resulting binary.
9218hardcode_shlibpath_var=$hardcode_shlibpath_var
9219
9220# Set to yes if building a shared library automatically hardcodes DIR into the library
9221# and all subsequent libraries and executables linked against it.
9222hardcode_automatic=$hardcode_automatic
9223
9224# Variables whose values should be saved in libtool wrapper scripts and
9225# restored at relink time.
9226variables_saved_for_relink="$variables_saved_for_relink"
9227
9228# Whether libtool must link a program against all its dependency libraries.
9229link_all_deplibs=$link_all_deplibs
9230
9231# Compile-time system search path for libraries
9232sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9233
9234# Run-time system search path for libraries
9235sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9236
9237# Fix the shell variable \$srcfile for the compiler.
9238fix_srcfile_path="$fix_srcfile_path"
9239
9240# Set to yes if exported symbols are required.
9241always_export_symbols=$always_export_symbols
9242
9243# The commands to list exported symbols.
9244export_symbols_cmds=$lt_export_symbols_cmds
9245
9246# The commands to extract the exported symbol list from a shared archive.
9247extract_expsyms_cmds=$lt_extract_expsyms_cmds
9248
9249# Symbols that should not be listed in the preloaded symbols.
9250exclude_expsyms=$lt_exclude_expsyms
9251
9252# Symbols that must always be exported.
9253include_expsyms=$lt_include_expsyms
9254
9255# ### END LIBTOOL CONFIG
9256
9257__EOF__
9258
9259
9260  case $host_os in
9261  aix3*)
9262    cat <<\EOF >> "$cfgfile"
9263
9264# AIX sometimes has problems with the GCC collect2 program.  For some
9265# reason, if we set the COLLECT_NAMES environment variable, the problems
9266# vanish in a puff of smoke.
9267if test "X${COLLECT_NAMES+set}" != Xset; then
9268  COLLECT_NAMES=
9269  export COLLECT_NAMES
9270fi
9271EOF
9272    ;;
9273  esac
9274
9275  # We use sed instead of cat because bash on DJGPP gets confused if
9276  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9277  # text mode, it properly converts lines to CR/LF.  This bash problem
9278  # is reportedly fixed, but why not run on old versions too?
9279  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9280
9281  mv -f "$cfgfile" "$ofile" || \
9282    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9283  chmod +x "$ofile"
9284
9285else
9286  # If there is no Makefile yet, we rely on a make rule to execute
9287  # `config.status --recheck' to rerun these tests and create the
9288  # libtool script then.
9289  test -f Makefile && make "$ltmain"
9290fi
9291
9292
9293ac_ext=c
9294ac_cpp='$CPP $CPPFLAGS'
9295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9297ac_compiler_gnu=$ac_cv_c_compiler_gnu
9298
9299CC="$lt_save_CC"
9300
9301
9302# Check whether --with-tags or --without-tags was given.
9303if test "${with_tags+set}" = set; then
9304  withval="$with_tags"
9305  tagnames="$withval"
9306fi;
9307
9308if test -f "$ltmain" && test -n "$tagnames"; then
9309  if test ! -f "${ofile}"; then
9310    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9311echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9312  fi
9313
9314  if test -z "$LTCC"; then
9315    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9316    if test -z "$LTCC"; then
9317      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9318echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9319    else
9320      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9321echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9322    fi
9323  fi
9324
9325  # Extract list of available tagged configurations in $ofile.
9326  # Note that this assumes the entire list is on one line.
9327  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9328
9329  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9330  for tagname in $tagnames; do
9331    IFS="$lt_save_ifs"
9332    # Check whether tagname contains only valid characters
9333    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9334    "") ;;
9335    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9336echo "$as_me: error: invalid tag name: $tagname" >&2;}
9337   { (exit 1); exit 1; }; }
9338	;;
9339    esac
9340
9341    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9342    then
9343      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9344echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9345   { (exit 1); exit 1; }; }
9346    fi
9347
9348    # Update the list of available tags.
9349    if test -n "$tagname"; then
9350      echo appending configuration tag \"$tagname\" to $ofile
9351
9352      case $tagname in
9353      CXX)
9354	if test -n "$CXX" && test "X$CXX" != "Xno"; then
9355	  ac_ext=cc
9356ac_cpp='$CXXCPP $CPPFLAGS'
9357ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9358ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9359ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9360
9361
9362
9363
9364archive_cmds_need_lc_CXX=no
9365allow_undefined_flag_CXX=
9366always_export_symbols_CXX=no
9367archive_expsym_cmds_CXX=
9368export_dynamic_flag_spec_CXX=
9369hardcode_direct_CXX=no
9370hardcode_libdir_flag_spec_CXX=
9371hardcode_libdir_flag_spec_ld_CXX=
9372hardcode_libdir_separator_CXX=
9373hardcode_minus_L_CXX=no
9374hardcode_automatic_CXX=no
9375module_cmds_CXX=
9376module_expsym_cmds_CXX=
9377link_all_deplibs_CXX=unknown
9378old_archive_cmds_CXX=$old_archive_cmds
9379no_undefined_flag_CXX=
9380whole_archive_flag_spec_CXX=
9381enable_shared_with_static_runtimes_CXX=no
9382
9383# Dependencies to place before and after the object being linked:
9384predep_objects_CXX=
9385postdep_objects_CXX=
9386predeps_CXX=
9387postdeps_CXX=
9388compiler_lib_search_path_CXX=
9389
9390# Source file extension for C++ test sources.
9391ac_ext=cc
9392
9393# Object file extension for compiled C++ test sources.
9394objext=o
9395objext_CXX=$objext
9396
9397# Code to be used in simple compile tests
9398lt_simple_compile_test_code="int some_variable = 0;\n"
9399
9400# Code to be used in simple link tests
9401lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9402
9403# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9404
9405# If no C compiler was specified, use CC.
9406LTCC=${LTCC-"$CC"}
9407
9408# Allow CC to be a program name with arguments.
9409compiler=$CC
9410
9411
9412# Allow CC to be a program name with arguments.
9413lt_save_CC=$CC
9414lt_save_LD=$LD
9415lt_save_GCC=$GCC
9416GCC=$GXX
9417lt_save_with_gnu_ld=$with_gnu_ld
9418lt_save_path_LD=$lt_cv_path_LD
9419if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9420  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9421else
9422  unset lt_cv_prog_gnu_ld
9423fi
9424if test -n "${lt_cv_path_LDCXX+set}"; then
9425  lt_cv_path_LD=$lt_cv_path_LDCXX
9426else
9427  unset lt_cv_path_LD
9428fi
9429test -z "${LDCXX+set}" || LD=$LDCXX
9430CC=${CXX-"c++"}
9431compiler=$CC
9432compiler_CXX=$CC
9433cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9434
9435# We don't want -fno-exception wen compiling C++ code, so set the
9436# no_builtin_flag separately
9437if test "$GXX" = yes; then
9438  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9439else
9440  lt_prog_compiler_no_builtin_flag_CXX=
9441fi
9442
9443if test "$GXX" = yes; then
9444  # Set up default GNU C++ configuration
9445
9446
9447# Check whether --with-gnu-ld or --without-gnu-ld was given.
9448if test "${with_gnu_ld+set}" = set; then
9449  withval="$with_gnu_ld"
9450  test "$withval" = no || with_gnu_ld=yes
9451else
9452  with_gnu_ld=no
9453fi;
9454ac_prog=ld
9455if test "$GCC" = yes; then
9456  # Check if gcc -print-prog-name=ld gives a path.
9457  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9458echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9459  case $host in
9460  *-*-mingw*)
9461    # gcc leaves a trailing carriage return which upsets mingw
9462    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9463  *)
9464    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9465  esac
9466  case $ac_prog in
9467    # Accept absolute paths.
9468    [\\/]* | ?:[\\/]*)
9469      re_direlt='/[^/][^/]*/\.\./'
9470      # Canonicalize the path of ld
9471      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9472      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9473	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9474      done
9475      test -z "$LD" && LD="$ac_prog"
9476      ;;
9477  "")
9478    # If it fails, then pretend we aren't using GCC.
9479    ac_prog=ld
9480    ;;
9481  *)
9482    # If it is relative, then search for the first ld in PATH.
9483    with_gnu_ld=unknown
9484    ;;
9485  esac
9486elif test "$with_gnu_ld" = yes; then
9487  echo "$as_me:$LINENO: checking for GNU ld" >&5
9488echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9489else
9490  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9491echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9492fi
9493if test "${lt_cv_path_LD+set}" = set; then
9494  echo $ECHO_N "(cached) $ECHO_C" >&6
9495else
9496  if test -z "$LD"; then
9497  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9498  for ac_dir in $PATH; do
9499    IFS="$lt_save_ifs"
9500    test -z "$ac_dir" && ac_dir=.
9501    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9502      lt_cv_path_LD="$ac_dir/$ac_prog"
9503      # Check to see if the program is GNU ld.  I'd rather use --version,
9504      # but apparently some GNU ld's only accept -v.
9505      # Break only if it was the GNU/non-GNU ld that we prefer.
9506      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9507      *GNU* | *'with BFD'*)
9508	test "$with_gnu_ld" != no && break
9509	;;
9510      *)
9511	test "$with_gnu_ld" != yes && break
9512	;;
9513      esac
9514    fi
9515  done
9516  IFS="$lt_save_ifs"
9517else
9518  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9519fi
9520fi
9521
9522LD="$lt_cv_path_LD"
9523if test -n "$LD"; then
9524  echo "$as_me:$LINENO: result: $LD" >&5
9525echo "${ECHO_T}$LD" >&6
9526else
9527  echo "$as_me:$LINENO: result: no" >&5
9528echo "${ECHO_T}no" >&6
9529fi
9530test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9531echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9532   { (exit 1); exit 1; }; }
9533echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9534echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9535if test "${lt_cv_prog_gnu_ld+set}" = set; then
9536  echo $ECHO_N "(cached) $ECHO_C" >&6
9537else
9538  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9539case `"$LD" -v 2>&1 </dev/null` in
9540*GNU* | *'with BFD'*)
9541  lt_cv_prog_gnu_ld=yes
9542  ;;
9543*)
9544  lt_cv_prog_gnu_ld=no
9545  ;;
9546esac
9547fi
9548echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9549echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9550with_gnu_ld=$lt_cv_prog_gnu_ld
9551
9552
9553
9554  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9555  # archiving commands below assume that GNU ld is being used.
9556  if test "$with_gnu_ld" = yes; then
9557    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9558    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'
9559
9560    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9561    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9562
9563    # If archive_cmds runs LD, not CC, wlarc should be empty
9564    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9565    #     investigate it a little bit more. (MM)
9566    wlarc='${wl}'
9567
9568    # ancient GNU ld didn't support --whole-archive et. al.
9569    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9570	grep 'no-whole-archive' > /dev/null; then
9571      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9572    else
9573      whole_archive_flag_spec_CXX=
9574    fi
9575  else
9576    with_gnu_ld=no
9577    wlarc=
9578
9579    # A generic and very simple default shared library creation
9580    # command for GNU C++ for the case where it uses the native
9581    # linker, instead of GNU ld.  If possible, this setting should
9582    # overridden to take advantage of the native linker features on
9583    # the platform it is being used on.
9584    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9585  fi
9586
9587  # Commands to make compiler produce verbose output that lists
9588  # what "hidden" libraries, object files and flags are used when
9589  # linking a shared library.
9590  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9591
9592else
9593  GXX=no
9594  with_gnu_ld=no
9595  wlarc=
9596fi
9597
9598# PORTME: fill in a description of your system's C++ link characteristics
9599echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9600echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9601ld_shlibs_CXX=yes
9602case $host_os in
9603  aix3*)
9604    # FIXME: insert proper C++ library support
9605    ld_shlibs_CXX=no
9606    ;;
9607  aix4* | aix5*)
9608    if test "$host_cpu" = ia64; then
9609      # On IA64, the linker does run time linking by default, so we don't
9610      # have to do anything special.
9611      aix_use_runtimelinking=no
9612      exp_sym_flag='-Bexport'
9613      no_entry_flag=""
9614    else
9615      aix_use_runtimelinking=no
9616
9617      # Test if we are trying to use run time linking or normal
9618      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9619      # need to do runtime linking.
9620      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9621	for ld_flag in $LDFLAGS; do
9622	  case $ld_flag in
9623	  *-brtl*)
9624	    aix_use_runtimelinking=yes
9625	    break
9626	    ;;
9627	  esac
9628	done
9629      esac
9630
9631      exp_sym_flag='-bexport'
9632      no_entry_flag='-bnoentry'
9633    fi
9634
9635    # When large executables or shared objects are built, AIX ld can
9636    # have problems creating the table of contents.  If linking a library
9637    # or program results in "error TOC overflow" add -mminimal-toc to
9638    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9639    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9640
9641    archive_cmds_CXX=''
9642    hardcode_direct_CXX=yes
9643    hardcode_libdir_separator_CXX=':'
9644    link_all_deplibs_CXX=yes
9645
9646    if test "$GXX" = yes; then
9647      case $host_os in aix4.012|aix4.012.*)
9648      # We only want to do this on AIX 4.2 and lower, the check
9649      # below for broken collect2 doesn't work under 4.3+
9650	collect2name=`${CC} -print-prog-name=collect2`
9651	if test -f "$collect2name" && \
9652	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9653	then
9654	  # We have reworked collect2
9655	  hardcode_direct_CXX=yes
9656	else
9657	  # We have old collect2
9658	  hardcode_direct_CXX=unsupported
9659	  # It fails to find uninstalled libraries when the uninstalled
9660	  # path is not listed in the libpath.  Setting hardcode_minus_L
9661	  # to unsupported forces relinking
9662	  hardcode_minus_L_CXX=yes
9663	  hardcode_libdir_flag_spec_CXX='-L$libdir'
9664	  hardcode_libdir_separator_CXX=
9665	fi
9666      esac
9667      shared_flag='-shared'
9668    else
9669      # not using gcc
9670      if test "$host_cpu" = ia64; then
9671	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9672	# chokes on -Wl,-G. The following line is correct:
9673	shared_flag='-G'
9674      else
9675	if test "$aix_use_runtimelinking" = yes; then
9676	  shared_flag='${wl}-G'
9677	else
9678	  shared_flag='${wl}-bM:SRE'
9679	fi
9680      fi
9681    fi
9682
9683    # It seems that -bexpall does not export symbols beginning with
9684    # underscore (_), so it is better to generate a list of symbols to export.
9685    always_export_symbols_CXX=yes
9686    if test "$aix_use_runtimelinking" = yes; then
9687      # Warning - without using the other runtime loading flags (-brtl),
9688      # -berok will link without error, but may produce a broken library.
9689      allow_undefined_flag_CXX='-berok'
9690      # Determine the default libpath from the value encoded in an empty executable.
9691      cat >conftest.$ac_ext <<_ACEOF
9692#line $LINENO "configure"
9693/* confdefs.h.  */
9694_ACEOF
9695cat confdefs.h >>conftest.$ac_ext
9696cat >>conftest.$ac_ext <<_ACEOF
9697/* end confdefs.h.  */
9698
9699int
9700main ()
9701{
9702
9703  ;
9704  return 0;
9705}
9706_ACEOF
9707rm -f conftest.$ac_objext conftest$ac_exeext
9708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9709  (eval $ac_link) 2>&5
9710  ac_status=$?
9711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712  (exit $ac_status); } &&
9713         { ac_try='test -s conftest$ac_exeext'
9714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715  (eval $ac_try) 2>&5
9716  ac_status=$?
9717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718  (exit $ac_status); }; }; then
9719
9720aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9721}'`
9722# Check for a 64-bit object if we didn't find anything.
9723if 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; }
9724}'`; fi
9725else
9726  echo "$as_me: failed program was:" >&5
9727sed 's/^/| /' conftest.$ac_ext >&5
9728
9729fi
9730rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9731if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9732
9733      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9734
9735      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"
9736     else
9737      if test "$host_cpu" = ia64; then
9738	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9739	allow_undefined_flag_CXX="-z nodefs"
9740	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"
9741      else
9742	# Determine the default libpath from the value encoded in an empty executable.
9743	cat >conftest.$ac_ext <<_ACEOF
9744#line $LINENO "configure"
9745/* confdefs.h.  */
9746_ACEOF
9747cat confdefs.h >>conftest.$ac_ext
9748cat >>conftest.$ac_ext <<_ACEOF
9749/* end confdefs.h.  */
9750
9751int
9752main ()
9753{
9754
9755  ;
9756  return 0;
9757}
9758_ACEOF
9759rm -f conftest.$ac_objext conftest$ac_exeext
9760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9761  (eval $ac_link) 2>&5
9762  ac_status=$?
9763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764  (exit $ac_status); } &&
9765         { ac_try='test -s conftest$ac_exeext'
9766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767  (eval $ac_try) 2>&5
9768  ac_status=$?
9769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770  (exit $ac_status); }; }; then
9771
9772aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9773}'`
9774# Check for a 64-bit object if we didn't find anything.
9775if 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; }
9776}'`; fi
9777else
9778  echo "$as_me: failed program was:" >&5
9779sed 's/^/| /' conftest.$ac_ext >&5
9780
9781fi
9782rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9783if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9784
9785	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9786	# Warning - without using the other run time loading flags,
9787	# -berok will link without error, but may produce a broken library.
9788	no_undefined_flag_CXX=' ${wl}-bernotok'
9789	allow_undefined_flag_CXX=' ${wl}-berok'
9790	# -bexpall does not export symbols beginning with underscore (_)
9791	always_export_symbols_CXX=yes
9792	# Exported symbols can be pulled into shared objects from archives
9793	whole_archive_flag_spec_CXX=' '
9794	archive_cmds_need_lc_CXX=yes
9795	# This is similar to how AIX traditionally builds it's shared libraries.
9796	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'
9797      fi
9798    fi
9799    ;;
9800  chorus*)
9801    case $cc_basename in
9802      *)
9803	# FIXME: insert proper C++ library support
9804	ld_shlibs_CXX=no
9805	;;
9806    esac
9807    ;;
9808
9809  cygwin* | mingw* | pw32*)
9810    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9811    # as there is no search path for DLLs.
9812    hardcode_libdir_flag_spec_CXX='-L$libdir'
9813    allow_undefined_flag_CXX=unsupported
9814    always_export_symbols_CXX=no
9815    enable_shared_with_static_runtimes_CXX=yes
9816
9817    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9818      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'
9819      # If the export-symbols file already is a .def file (1st line
9820      # is EXPORTS), use it as is; otherwise, prepend...
9821      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9822	cp $export_symbols $output_objdir/$soname.def;
9823      else
9824	echo EXPORTS > $output_objdir/$soname.def;
9825	cat $export_symbols >> $output_objdir/$soname.def;
9826      fi~
9827      $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'
9828    else
9829      ld_shlibs_CXX=no
9830    fi
9831  ;;
9832
9833  darwin* | rhapsody*)
9834   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9835    archive_cmds_need_lc_CXX=no
9836    case "$host_os" in
9837    rhapsody* | darwin1.[012])
9838      allow_undefined_flag_CXX='-undefined suppress'
9839      ;;
9840    *) # Darwin 1.3 on
9841      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9842      ;;
9843    esac
9844    	lt_int_apple_cc_single_mod=no
9845    	output_verbose_link_cmd='echo'
9846    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9847    	  lt_int_apple_cc_single_mod=yes
9848    	fi
9849    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9850    	  archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9851    	else
9852        archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
9853      fi
9854      module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9855
9856    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9857      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9858        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}'
9859      else
9860        archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
9861      fi
9862        module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9863    hardcode_direct_CXX=no
9864    hardcode_automatic_CXX=yes
9865    hardcode_shlibpath_var_CXX=unsupported
9866    whole_archive_flag_spec_CXX='-all_load $convenience'
9867    link_all_deplibs_CXX=yes
9868   fi
9869    ;;
9870
9871  dgux*)
9872    case $cc_basename in
9873      ec++)
9874	# FIXME: insert proper C++ library support
9875	ld_shlibs_CXX=no
9876	;;
9877      ghcx)
9878	# Green Hills C++ Compiler
9879	# FIXME: insert proper C++ library support
9880	ld_shlibs_CXX=no
9881	;;
9882      *)
9883	# FIXME: insert proper C++ library support
9884	ld_shlibs_CXX=no
9885	;;
9886    esac
9887    ;;
9888  freebsd12*)
9889    # C++ shared libraries reported to be fairly broken before switch to ELF
9890    ld_shlibs_CXX=no
9891    ;;
9892  freebsd-elf*)
9893    archive_cmds_need_lc_CXX=no
9894    ;;
9895  freebsd*)
9896    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9897    # conventions
9898    ld_shlibs_CXX=yes
9899    ;;
9900  gnu*)
9901    ;;
9902  hpux9*)
9903    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9904    hardcode_libdir_separator_CXX=:
9905    export_dynamic_flag_spec_CXX='${wl}-E'
9906    hardcode_direct_CXX=yes
9907    hardcode_minus_L_CXX=yes # Not in the search PATH,
9908				# but as the default
9909				# location of the library.
9910
9911    case $cc_basename in
9912    CC)
9913      # FIXME: insert proper C++ library support
9914      ld_shlibs_CXX=no
9915      ;;
9916    aCC)
9917      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'
9918      # Commands to make compiler produce verbose output that lists
9919      # what "hidden" libraries, object files and flags are used when
9920      # linking a shared library.
9921      #
9922      # There doesn't appear to be a way to prevent this compiler from
9923      # explicitly linking system object files so we need to strip them
9924      # from the output so that they don't get included in the library
9925      # dependencies.
9926      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9927      ;;
9928    *)
9929      if test "$GXX" = yes; then
9930        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'
9931      else
9932        # FIXME: insert proper C++ library support
9933        ld_shlibs_CXX=no
9934      fi
9935      ;;
9936    esac
9937    ;;
9938  hpux10*|hpux11*)
9939    if test $with_gnu_ld = no; then
9940      case "$host_cpu" in
9941      hppa*64*)
9942	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9943	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9944	hardcode_libdir_separator_CXX=:
9945        ;;
9946      ia64*)
9947	hardcode_libdir_flag_spec_CXX='-L$libdir'
9948        ;;
9949      *)
9950	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9951	hardcode_libdir_separator_CXX=:
9952	export_dynamic_flag_spec_CXX='${wl}-E'
9953        ;;
9954      esac
9955    fi
9956    case "$host_cpu" in
9957    hppa*64*)
9958      hardcode_direct_CXX=no
9959      hardcode_shlibpath_var_CXX=no
9960      ;;
9961    ia64*)
9962      hardcode_direct_CXX=no
9963      hardcode_shlibpath_var_CXX=no
9964      hardcode_minus_L_CXX=yes # Not in the search PATH,
9965					      # but as the default
9966					      # location of the library.
9967      ;;
9968    *)
9969      hardcode_direct_CXX=yes
9970      hardcode_minus_L_CXX=yes # Not in the search PATH,
9971					      # but as the default
9972					      # location of the library.
9973      ;;
9974    esac
9975
9976    case $cc_basename in
9977      CC)
9978	# FIXME: insert proper C++ library support
9979	ld_shlibs_CXX=no
9980	;;
9981      aCC)
9982	case "$host_cpu" in
9983	hppa*64*|ia64*)
9984	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9985	  ;;
9986	*)
9987	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9988	  ;;
9989	esac
9990	# Commands to make compiler produce verbose output that lists
9991	# what "hidden" libraries, object files and flags are used when
9992	# linking a shared library.
9993	#
9994	# There doesn't appear to be a way to prevent this compiler from
9995	# explicitly linking system object files so we need to strip them
9996	# from the output so that they don't get included in the library
9997	# dependencies.
9998	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'
9999	;;
10000      *)
10001	if test "$GXX" = yes; then
10002	  if test $with_gnu_ld = no; then
10003	    case "$host_cpu" in
10004	    ia64*|hppa*64*)
10005	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10006	      ;;
10007	    *)
10008	      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'
10009	      ;;
10010	    esac
10011	  fi
10012	else
10013	  # FIXME: insert proper C++ library support
10014	  ld_shlibs_CXX=no
10015	fi
10016	;;
10017    esac
10018    ;;
10019  irix5* | irix6*)
10020    case $cc_basename in
10021      CC)
10022	# SGI C++
10023	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'
10024
10025	# Archives containing C++ object files must be created using
10026	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10027	# necessary to make sure instantiated templates are included
10028	# in the archive.
10029	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10030	;;
10031      *)
10032	if test "$GXX" = yes; then
10033	  if test "$with_gnu_ld" = no; then
10034	    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'
10035	  else
10036	    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'
10037	  fi
10038	fi
10039	link_all_deplibs_CXX=yes
10040	;;
10041    esac
10042    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10043    hardcode_libdir_separator_CXX=:
10044    ;;
10045  linux*)
10046    case $cc_basename in
10047      KCC)
10048	# Kuck and Associates, Inc. (KAI) C++ Compiler
10049
10050	# KCC will only create a shared library if the output file
10051	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10052	# to its proper name (with version) after linking.
10053	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'
10054	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'
10055	# Commands to make compiler produce verbose output that lists
10056	# what "hidden" libraries, object files and flags are used when
10057	# linking a shared library.
10058	#
10059	# There doesn't appear to be a way to prevent this compiler from
10060	# explicitly linking system object files so we need to strip them
10061	# from the output so that they don't get included in the library
10062	# dependencies.
10063	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'
10064
10065	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10066	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10067
10068	# Archives containing C++ object files must be created using
10069	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10070	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10071	;;
10072      icpc)
10073	# Intel C++
10074	with_gnu_ld=yes
10075	archive_cmds_need_lc_CXX=no
10076	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10077	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'
10078	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10079	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10080	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10081	;;
10082      cxx)
10083	# Compaq C++
10084	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10085	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'
10086
10087	runpath_var=LD_RUN_PATH
10088	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10089	hardcode_libdir_separator_CXX=:
10090
10091	# Commands to make compiler produce verbose output that lists
10092	# what "hidden" libraries, object files and flags are used when
10093	# linking a shared library.
10094	#
10095	# There doesn't appear to be a way to prevent this compiler from
10096	# explicitly linking system object files so we need to strip them
10097	# from the output so that they don't get included in the library
10098	# dependencies.
10099	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'
10100	;;
10101    esac
10102    ;;
10103  lynxos*)
10104    # FIXME: insert proper C++ library support
10105    ld_shlibs_CXX=no
10106    ;;
10107  m88k*)
10108    # FIXME: insert proper C++ library support
10109    ld_shlibs_CXX=no
10110    ;;
10111  mvs*)
10112    case $cc_basename in
10113      cxx)
10114	# FIXME: insert proper C++ library support
10115	ld_shlibs_CXX=no
10116	;;
10117      *)
10118	# FIXME: insert proper C++ library support
10119	ld_shlibs_CXX=no
10120	;;
10121    esac
10122    ;;
10123  netbsd*)
10124    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10125      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10126      wlarc=
10127      hardcode_libdir_flag_spec_CXX='-R$libdir'
10128      hardcode_direct_CXX=yes
10129      hardcode_shlibpath_var_CXX=no
10130    fi
10131    # Workaround some broken pre-1.5 toolchains
10132    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10133    ;;
10134  osf3*)
10135    case $cc_basename in
10136      KCC)
10137	# Kuck and Associates, Inc. (KAI) C++ Compiler
10138
10139	# KCC will only create a shared library if the output file
10140	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10141	# to its proper name (with version) after linking.
10142	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'
10143
10144	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10145	hardcode_libdir_separator_CXX=:
10146
10147	# Archives containing C++ object files must be created using
10148	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10149	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10150
10151	;;
10152      RCC)
10153	# Rational C++ 2.4.1
10154	# FIXME: insert proper C++ library support
10155	ld_shlibs_CXX=no
10156	;;
10157      cxx)
10158	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10159	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'
10160
10161	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10162	hardcode_libdir_separator_CXX=:
10163
10164	# Commands to make compiler produce verbose output that lists
10165	# what "hidden" libraries, object files and flags are used when
10166	# linking a shared library.
10167	#
10168	# There doesn't appear to be a way to prevent this compiler from
10169	# explicitly linking system object files so we need to strip them
10170	# from the output so that they don't get included in the library
10171	# dependencies.
10172	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'
10173	;;
10174      *)
10175	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10176	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10177	  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'
10178
10179	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10180	  hardcode_libdir_separator_CXX=:
10181
10182	  # Commands to make compiler produce verbose output that lists
10183	  # what "hidden" libraries, object files and flags are used when
10184	  # linking a shared library.
10185	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10186
10187	else
10188	  # FIXME: insert proper C++ library support
10189	  ld_shlibs_CXX=no
10190	fi
10191	;;
10192    esac
10193    ;;
10194  osf4* | osf5*)
10195    case $cc_basename in
10196      KCC)
10197	# Kuck and Associates, Inc. (KAI) C++ Compiler
10198
10199	# KCC will only create a shared library if the output file
10200	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10201	# to its proper name (with version) after linking.
10202	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'
10203
10204	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10205	hardcode_libdir_separator_CXX=:
10206
10207	# Archives containing C++ object files must be created using
10208	# the KAI C++ compiler.
10209	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10210	;;
10211      RCC)
10212	# Rational C++ 2.4.1
10213	# FIXME: insert proper C++ library support
10214	ld_shlibs_CXX=no
10215	;;
10216      cxx)
10217	allow_undefined_flag_CXX=' -expect_unresolved \*'
10218	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'
10219	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10220	  echo "-hidden">> $lib.exp~
10221	  $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~
10222	  $rm $lib.exp'
10223
10224	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10225	hardcode_libdir_separator_CXX=:
10226
10227	# Commands to make compiler produce verbose output that lists
10228	# what "hidden" libraries, object files and flags are used when
10229	# linking a shared library.
10230	#
10231	# There doesn't appear to be a way to prevent this compiler from
10232	# explicitly linking system object files so we need to strip them
10233	# from the output so that they don't get included in the library
10234	# dependencies.
10235	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'
10236	;;
10237      *)
10238	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10239	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10240	 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'
10241
10242	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10243	  hardcode_libdir_separator_CXX=:
10244
10245	  # Commands to make compiler produce verbose output that lists
10246	  # what "hidden" libraries, object files and flags are used when
10247	  # linking a shared library.
10248	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10249
10250	else
10251	  # FIXME: insert proper C++ library support
10252	  ld_shlibs_CXX=no
10253	fi
10254	;;
10255    esac
10256    ;;
10257  psos*)
10258    # FIXME: insert proper C++ library support
10259    ld_shlibs_CXX=no
10260    ;;
10261  sco*)
10262    archive_cmds_need_lc_CXX=no
10263    case $cc_basename in
10264      CC)
10265	# FIXME: insert proper C++ library support
10266	ld_shlibs_CXX=no
10267	;;
10268      *)
10269	# FIXME: insert proper C++ library support
10270	ld_shlibs_CXX=no
10271	;;
10272    esac
10273    ;;
10274  sunos4*)
10275    case $cc_basename in
10276      CC)
10277	# Sun C++ 4.x
10278	# FIXME: insert proper C++ library support
10279	ld_shlibs_CXX=no
10280	;;
10281      lcc)
10282	# Lucid
10283	# FIXME: insert proper C++ library support
10284	ld_shlibs_CXX=no
10285	;;
10286      *)
10287	# FIXME: insert proper C++ library support
10288	ld_shlibs_CXX=no
10289	;;
10290    esac
10291    ;;
10292  solaris*)
10293    case $cc_basename in
10294      CC)
10295	# Sun C++ 4.2, 5.x and Centerline C++
10296	no_undefined_flag_CXX=' -zdefs'
10297	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10298	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10299	$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'
10300
10301	hardcode_libdir_flag_spec_CXX='-R$libdir'
10302	hardcode_shlibpath_var_CXX=no
10303	case $host_os in
10304	  solaris2.0-5 | solaris2.0-5.*) ;;
10305	  *)
10306	    # The C++ compiler is used as linker so we must use $wl
10307	    # flag to pass the commands to the underlying system
10308	    # linker.
10309	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10310	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10311	    ;;
10312	esac
10313	link_all_deplibs_CXX=yes
10314
10315	# Commands to make compiler produce verbose output that lists
10316	# what "hidden" libraries, object files and flags are used when
10317	# linking a shared library.
10318	#
10319	# There doesn't appear to be a way to prevent this compiler from
10320	# explicitly linking system object files so we need to strip them
10321	# from the output so that they don't get included in the library
10322	# dependencies.
10323	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'
10324
10325	# Archives containing C++ object files must be created using
10326	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10327	# necessary to make sure instantiated templates are included
10328	# in the archive.
10329	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10330	;;
10331      gcx)
10332	# Green Hills C++ Compiler
10333	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10334
10335	# The C++ compiler must be used to create the archive.
10336	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10337	;;
10338      *)
10339	# GNU C++ compiler with Solaris linker
10340	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10341	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10342	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10343	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10344	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10345		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10346
10347	    # Commands to make compiler produce verbose output that lists
10348	    # what "hidden" libraries, object files and flags are used when
10349	    # linking a shared library.
10350	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10351	  else
10352	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10353	    # platform.
10354	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10355	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10356		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10357
10358	    # Commands to make compiler produce verbose output that lists
10359	    # what "hidden" libraries, object files and flags are used when
10360	    # linking a shared library.
10361	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10362	  fi
10363
10364	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10365	fi
10366	;;
10367    esac
10368    ;;
10369  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10370    archive_cmds_need_lc_CXX=no
10371    ;;
10372  tandem*)
10373    case $cc_basename in
10374      NCC)
10375	# NonStop-UX NCC 3.20
10376	# FIXME: insert proper C++ library support
10377	ld_shlibs_CXX=no
10378	;;
10379      *)
10380	# FIXME: insert proper C++ library support
10381	ld_shlibs_CXX=no
10382	;;
10383    esac
10384    ;;
10385  vxworks*)
10386    # FIXME: insert proper C++ library support
10387    ld_shlibs_CXX=no
10388    ;;
10389  *)
10390    # FIXME: insert proper C++ library support
10391    ld_shlibs_CXX=no
10392    ;;
10393esac
10394echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10395echo "${ECHO_T}$ld_shlibs_CXX" >&6
10396test "$ld_shlibs_CXX" = no && can_build_shared=no
10397
10398GCC_CXX="$GXX"
10399LD_CXX="$LD"
10400
10401## CAVEAT EMPTOR:
10402## There is no encapsulation within the following macros, do not change
10403## the running order or otherwise move them around unless you know exactly
10404## what you are doing...
10405
10406cat > conftest.$ac_ext <<EOF
10407class Foo
10408{
10409public:
10410  Foo (void) { a = 0; }
10411private:
10412  int a;
10413};
10414EOF
10415
10416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10417  (eval $ac_compile) 2>&5
10418  ac_status=$?
10419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420  (exit $ac_status); }; then
10421  # Parse the compiler output and extract the necessary
10422  # objects, libraries and library flags.
10423
10424  # Sentinel used to keep track of whether or not we are before
10425  # the conftest object file.
10426  pre_test_object_deps_done=no
10427
10428  # The `*' in the case matches for architectures that use `case' in
10429  # $output_verbose_cmd can trigger glob expansion during the loop
10430  # eval without this substitution.
10431  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10432
10433  for p in `eval $output_verbose_link_cmd`; do
10434    case $p in
10435
10436    -L* | -R* | -l*)
10437       # Some compilers place space between "-{L,R}" and the path.
10438       # Remove the space.
10439       if test $p = "-L" \
10440	  || test $p = "-R"; then
10441	 prev=$p
10442	 continue
10443       else
10444	 prev=
10445       fi
10446
10447       if test "$pre_test_object_deps_done" = no; then
10448	 case $p in
10449	 -L* | -R*)
10450	   # Internal compiler library paths should come after those
10451	   # provided the user.  The postdeps already come after the
10452	   # user supplied libs so there is no need to process them.
10453	   if test -z "$compiler_lib_search_path_CXX"; then
10454	     compiler_lib_search_path_CXX="${prev}${p}"
10455	   else
10456	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10457	   fi
10458	   ;;
10459	 # The "-l" case would never come before the object being
10460	 # linked, so don't bother handling this case.
10461	 esac
10462       else
10463	 if test -z "$postdeps_CXX"; then
10464	   postdeps_CXX="${prev}${p}"
10465	 else
10466	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10467	 fi
10468       fi
10469       ;;
10470
10471    *.$objext)
10472       # This assumes that the test object file only shows up
10473       # once in the compiler output.
10474       if test "$p" = "conftest.$objext"; then
10475	 pre_test_object_deps_done=yes
10476	 continue
10477       fi
10478
10479       if test "$pre_test_object_deps_done" = no; then
10480	 if test -z "$predep_objects_CXX"; then
10481	   predep_objects_CXX="$p"
10482	 else
10483	   predep_objects_CXX="$predep_objects_CXX $p"
10484	 fi
10485       else
10486	 if test -z "$postdep_objects_CXX"; then
10487	   postdep_objects_CXX="$p"
10488	 else
10489	   postdep_objects_CXX="$postdep_objects_CXX $p"
10490	 fi
10491       fi
10492       ;;
10493
10494    *) ;; # Ignore the rest.
10495
10496    esac
10497  done
10498
10499  # Clean up.
10500  rm -f a.out a.exe
10501else
10502  echo "libtool.m4: error: problem compiling CXX test program"
10503fi
10504
10505$rm -f confest.$objext
10506
10507case " $postdeps_CXX " in
10508*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10509esac
10510
10511lt_prog_compiler_wl_CXX=
10512lt_prog_compiler_pic_CXX=
10513lt_prog_compiler_static_CXX=
10514
10515echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10516echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10517
10518  # C++ specific cases for pic, static, wl, etc.
10519  if test "$GXX" = yes; then
10520    lt_prog_compiler_wl_CXX='-Wl,'
10521    lt_prog_compiler_static_CXX='-static'
10522
10523    case $host_os in
10524    aix*)
10525      # All AIX code is PIC.
10526      if test "$host_cpu" = ia64; then
10527	# AIX 5 now supports IA64 processor
10528	lt_prog_compiler_static_CXX='-Bstatic'
10529      fi
10530      ;;
10531    amigaos*)
10532      # FIXME: we need at least 68020 code to build shared libraries, but
10533      # adding the `-m68020' flag to GCC prevents building anything better,
10534      # like `-m68040'.
10535      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10536      ;;
10537    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10538      # PIC is the default for these OSes.
10539      ;;
10540    mingw* | os2* | pw32*)
10541      # This hack is so that the source file can tell whether it is being
10542      # built for inclusion in a dll (and should export symbols for example).
10543      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10544      ;;
10545    darwin* | rhapsody*)
10546      # PIC is the default on this platform
10547      # Common symbols not allowed in MH_DYLIB files
10548      lt_prog_compiler_pic_CXX='-fno-common'
10549      ;;
10550    *djgpp*)
10551      # DJGPP does not support shared libraries at all
10552      lt_prog_compiler_pic_CXX=
10553      ;;
10554    sysv4*MP*)
10555      if test -d /usr/nec; then
10556	lt_prog_compiler_pic_CXX=-Kconform_pic
10557      fi
10558      ;;
10559    hpux*)
10560      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10561      # not for PA HP-UX.
10562      case "$host_cpu" in
10563      hppa*64*|ia64*)
10564	;;
10565      *)
10566	lt_prog_compiler_pic_CXX='-fPIC'
10567	;;
10568      esac
10569      ;;
10570    *)
10571      lt_prog_compiler_pic_CXX='-fPIC'
10572      ;;
10573    esac
10574  else
10575    case $host_os in
10576      aix4* | aix5*)
10577	# All AIX code is PIC.
10578	if test "$host_cpu" = ia64; then
10579	  # AIX 5 now supports IA64 processor
10580	  lt_prog_compiler_static_CXX='-Bstatic'
10581	else
10582	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10583	fi
10584	;;
10585      chorus*)
10586	case $cc_basename in
10587	cxch68)
10588	  # Green Hills C++ Compiler
10589	  # _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"
10590	  ;;
10591	esac
10592	;;
10593      dgux*)
10594	case $cc_basename in
10595	  ec++)
10596	    lt_prog_compiler_pic_CXX='-KPIC'
10597	    ;;
10598	  ghcx)
10599	    # Green Hills C++ Compiler
10600	    lt_prog_compiler_pic_CXX='-pic'
10601	    ;;
10602	  *)
10603	    ;;
10604	esac
10605	;;
10606      freebsd*)
10607	# FreeBSD uses GNU C++
10608	;;
10609      hpux9* | hpux10* | hpux11*)
10610	case $cc_basename in
10611	  CC)
10612	    lt_prog_compiler_wl_CXX='-Wl,'
10613	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10614	    if test "$host_cpu" != ia64; then
10615	      lt_prog_compiler_pic_CXX='+Z'
10616	    fi
10617	    ;;
10618	  aCC)
10619	    lt_prog_compiler_wl_CXX='-Wl,'
10620	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10621	    case "$host_cpu" in
10622	    hppa*64*|ia64*)
10623	      # +Z the default
10624	      ;;
10625	    *)
10626	      lt_prog_compiler_pic_CXX='+Z'
10627	      ;;
10628	    esac
10629	    ;;
10630	  *)
10631	    ;;
10632	esac
10633	;;
10634      irix5* | irix6* | nonstopux*)
10635	case $cc_basename in
10636	  CC)
10637	    lt_prog_compiler_wl_CXX='-Wl,'
10638	    lt_prog_compiler_static_CXX='-non_shared'
10639	    # CC pic flag -KPIC is the default.
10640	    ;;
10641	  *)
10642	    ;;
10643	esac
10644	;;
10645      linux*)
10646	case $cc_basename in
10647	  KCC)
10648	    # KAI C++ Compiler
10649	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10650	    lt_prog_compiler_pic_CXX='-fPIC'
10651	    ;;
10652	  icpc)
10653	    # Intel C++
10654	    lt_prog_compiler_wl_CXX='-Wl,'
10655	    lt_prog_compiler_pic_CXX='-KPIC'
10656	    lt_prog_compiler_static_CXX='-static'
10657	    ;;
10658	  cxx)
10659	    # Compaq C++
10660	    # Make sure the PIC flag is empty.  It appears that all Alpha
10661	    # Linux and Compaq Tru64 Unix objects are PIC.
10662	    lt_prog_compiler_pic_CXX=
10663	    lt_prog_compiler_static_CXX='-non_shared'
10664	    ;;
10665	  *)
10666	    ;;
10667	esac
10668	;;
10669      lynxos*)
10670	;;
10671      m88k*)
10672	;;
10673      mvs*)
10674	case $cc_basename in
10675	  cxx)
10676	    lt_prog_compiler_pic_CXX='-W c,exportall'
10677	    ;;
10678	  *)
10679	    ;;
10680	esac
10681	;;
10682      netbsd*)
10683	;;
10684      osf3* | osf4* | osf5*)
10685	case $cc_basename in
10686	  KCC)
10687	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10688	    ;;
10689	  RCC)
10690	    # Rational C++ 2.4.1
10691	    lt_prog_compiler_pic_CXX='-pic'
10692	    ;;
10693	  cxx)
10694	    # Digital/Compaq C++
10695	    lt_prog_compiler_wl_CXX='-Wl,'
10696	    # Make sure the PIC flag is empty.  It appears that all Alpha
10697	    # Linux and Compaq Tru64 Unix objects are PIC.
10698	    lt_prog_compiler_pic_CXX=
10699	    lt_prog_compiler_static_CXX='-non_shared'
10700	    ;;
10701	  *)
10702	    ;;
10703	esac
10704	;;
10705      psos*)
10706	;;
10707      sco*)
10708	case $cc_basename in
10709	  CC)
10710	    lt_prog_compiler_pic_CXX='-fPIC'
10711	    ;;
10712	  *)
10713	    ;;
10714	esac
10715	;;
10716      solaris*)
10717	case $cc_basename in
10718	  CC)
10719	    # Sun C++ 4.2, 5.x and Centerline C++
10720	    lt_prog_compiler_pic_CXX='-KPIC'
10721	    lt_prog_compiler_static_CXX='-Bstatic'
10722	    lt_prog_compiler_wl_CXX='-Qoption ld '
10723	    ;;
10724	  gcx)
10725	    # Green Hills C++ Compiler
10726	    lt_prog_compiler_pic_CXX='-PIC'
10727	    ;;
10728	  *)
10729	    ;;
10730	esac
10731	;;
10732      sunos4*)
10733	case $cc_basename in
10734	  CC)
10735	    # Sun C++ 4.x
10736	    lt_prog_compiler_pic_CXX='-pic'
10737	    lt_prog_compiler_static_CXX='-Bstatic'
10738	    ;;
10739	  lcc)
10740	    # Lucid
10741	    lt_prog_compiler_pic_CXX='-pic'
10742	    ;;
10743	  *)
10744	    ;;
10745	esac
10746	;;
10747      tandem*)
10748	case $cc_basename in
10749	  NCC)
10750	    # NonStop-UX NCC 3.20
10751	    lt_prog_compiler_pic_CXX='-KPIC'
10752	    ;;
10753	  *)
10754	    ;;
10755	esac
10756	;;
10757      unixware*)
10758	;;
10759      vxworks*)
10760	;;
10761      *)
10762	lt_prog_compiler_can_build_shared_CXX=no
10763	;;
10764    esac
10765  fi
10766
10767echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10768echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10769
10770#
10771# Check to make sure the PIC flag actually works.
10772#
10773if test -n "$lt_prog_compiler_pic_CXX"; then
10774  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10775echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10776if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10777  echo $ECHO_N "(cached) $ECHO_C" >&6
10778else
10779  lt_prog_compiler_pic_works_CXX=no
10780  ac_outfile=conftest.$ac_objext
10781   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10782   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10783   # Insert the option either (1) after the last *FLAGS variable, or
10784   # (2) before a word containing "conftest.", or (3) at the end.
10785   # Note that $ac_compile itself does not contain backslashes and begins
10786   # with a dollar sign (not a hyphen), so the echo should work correctly.
10787   # The option is referenced via a variable to avoid confusing sed.
10788   lt_compile=`echo "$ac_compile" | $SED \
10789   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10790   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10791   -e 's:$: $lt_compiler_flag:'`
10792   (eval echo "\"\$as_me:10792: $lt_compile\"" >&5)
10793   (eval "$lt_compile" 2>conftest.err)
10794   ac_status=$?
10795   cat conftest.err >&5
10796   echo "$as_me:10796: \$? = $ac_status" >&5
10797   if (exit $ac_status) && test -s "$ac_outfile"; then
10798     # The compiler can only warn and ignore the option if not recognized
10799     # So say no if there are warnings
10800     if test ! -s conftest.err; then
10801       lt_prog_compiler_pic_works_CXX=yes
10802     fi
10803   fi
10804   $rm conftest*
10805
10806fi
10807echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10808echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10809
10810if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10811    case $lt_prog_compiler_pic_CXX in
10812     "" | " "*) ;;
10813     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10814     esac
10815else
10816    lt_prog_compiler_pic_CXX=
10817     lt_prog_compiler_can_build_shared_CXX=no
10818fi
10819
10820fi
10821case "$host_os" in
10822  # For platforms which do not support PIC, -DPIC is meaningless:
10823  *djgpp*)
10824    lt_prog_compiler_pic_CXX=
10825    ;;
10826  *)
10827    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10828    ;;
10829esac
10830
10831echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10832echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10833if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10834  echo $ECHO_N "(cached) $ECHO_C" >&6
10835else
10836  lt_cv_prog_compiler_c_o_CXX=no
10837   $rm -r conftest 2>/dev/null
10838   mkdir conftest
10839   cd conftest
10840   mkdir out
10841   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10842
10843   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10844   # that will create temporary files in the current directory regardless of
10845   # the output directory.  Thus, making CWD read-only will cause this test
10846   # to fail, enabling locking or at least warning the user not to do parallel
10847   # builds.
10848   chmod -w .
10849
10850   lt_compiler_flag="-o out/conftest2.$ac_objext"
10851   # Insert the option either (1) after the last *FLAGS variable, or
10852   # (2) before a word containing "conftest.", or (3) at the end.
10853   # Note that $ac_compile itself does not contain backslashes and begins
10854   # with a dollar sign (not a hyphen), so the echo should work correctly.
10855   lt_compile=`echo "$ac_compile" | $SED \
10856   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10857   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10858   -e 's:$: $lt_compiler_flag:'`
10859   (eval echo "\"\$as_me:10859: $lt_compile\"" >&5)
10860   (eval "$lt_compile" 2>out/conftest.err)
10861   ac_status=$?
10862   cat out/conftest.err >&5
10863   echo "$as_me:10863: \$? = $ac_status" >&5
10864   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10865   then
10866     # The compiler can only warn and ignore the option if not recognized
10867     # So say no if there are warnings
10868     if test ! -s out/conftest.err; then
10869       lt_cv_prog_compiler_c_o_CXX=yes
10870     fi
10871   fi
10872   chmod u+w .
10873   $rm conftest* out/*
10874   rmdir out
10875   cd ..
10876   rmdir conftest
10877   $rm conftest*
10878
10879fi
10880echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10881echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10882
10883
10884hard_links="nottested"
10885if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10886  # do not overwrite the value of need_locks provided by the user
10887  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10888echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10889  hard_links=yes
10890  $rm conftest*
10891  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10892  touch conftest.a
10893  ln conftest.a conftest.b 2>&5 || hard_links=no
10894  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10895  echo "$as_me:$LINENO: result: $hard_links" >&5
10896echo "${ECHO_T}$hard_links" >&6
10897  if test "$hard_links" = no; then
10898    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10899echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10900    need_locks=warn
10901  fi
10902else
10903  need_locks=no
10904fi
10905
10906echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10907echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10908
10909  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10910  case $host_os in
10911  aix4* | aix5*)
10912    # If we're using GNU nm, then we don't want the "-C" option.
10913    # -C means demangle to AIX nm, but means don't demangle with GNU nm
10914    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10915      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'
10916    else
10917      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'
10918    fi
10919    ;;
10920  pw32*)
10921    export_symbols_cmds_CXX="$ltdll_cmds"
10922  ;;
10923  cygwin* | mingw*)
10924    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10925  ;;
10926  *)
10927    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10928  ;;
10929  esac
10930
10931echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10932echo "${ECHO_T}$ld_shlibs_CXX" >&6
10933test "$ld_shlibs_CXX" = no && can_build_shared=no
10934
10935variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10936if test "$GCC" = yes; then
10937  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10938fi
10939
10940#
10941# Do we need to explicitly link libc?
10942#
10943case "x$archive_cmds_need_lc_CXX" in
10944x|xyes)
10945  # Assume -lc should be added
10946  archive_cmds_need_lc_CXX=yes
10947
10948  if test "$enable_shared" = yes && test "$GCC" = yes; then
10949    case $archive_cmds_CXX in
10950    *'~'*)
10951      # FIXME: we may have to deal with multi-command sequences.
10952      ;;
10953    '$CC '*)
10954      # Test whether the compiler implicitly links with -lc since on some
10955      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10956      # to ld, don't add -lc before -lgcc.
10957      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10958echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10959      $rm conftest*
10960      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10961
10962      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10963  (eval $ac_compile) 2>&5
10964  ac_status=$?
10965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966  (exit $ac_status); } 2>conftest.err; then
10967        soname=conftest
10968        lib=conftest
10969        libobjs=conftest.$ac_objext
10970        deplibs=
10971        wl=$lt_prog_compiler_wl_CXX
10972        compiler_flags=-v
10973        linker_flags=-v
10974        verstring=
10975        output_objdir=.
10976        libname=conftest
10977        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10978        allow_undefined_flag_CXX=
10979        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10980  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10981  ac_status=$?
10982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983  (exit $ac_status); }
10984        then
10985	  archive_cmds_need_lc_CXX=no
10986        else
10987	  archive_cmds_need_lc_CXX=yes
10988        fi
10989        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10990      else
10991        cat conftest.err 1>&5
10992      fi
10993      $rm conftest*
10994      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10995echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10996      ;;
10997    esac
10998  fi
10999  ;;
11000esac
11001
11002echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11003echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11004hardcode_action_CXX=
11005if test -n "$hardcode_libdir_flag_spec_CXX" || \
11006   test -n "$runpath_var CXX" || \
11007   test "X$hardcode_automatic_CXX"="Xyes" ; then
11008
11009  # We can hardcode non-existant directories.
11010  if test "$hardcode_direct_CXX" != no &&
11011     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11012     # have to relink, otherwise we might link with an installed library
11013     # when we should be linking with a yet-to-be-installed one
11014     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11015     test "$hardcode_minus_L_CXX" != no; then
11016    # Linking always hardcodes the temporary library directory.
11017    hardcode_action_CXX=relink
11018  else
11019    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11020    hardcode_action_CXX=immediate
11021  fi
11022else
11023  # We cannot hardcode anything, or else we can only hardcode existing
11024  # directories.
11025  hardcode_action_CXX=unsupported
11026fi
11027echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11028echo "${ECHO_T}$hardcode_action_CXX" >&6
11029
11030if test "$hardcode_action_CXX" = relink; then
11031  # Fast installation is not supported
11032  enable_fast_install=no
11033elif test "$shlibpath_overrides_runpath" = yes ||
11034     test "$enable_shared" = no; then
11035  # Fast installation is not necessary
11036  enable_fast_install=needless
11037fi
11038
11039striplib=
11040old_striplib=
11041echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11042echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11043if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11044  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11045  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11046  echo "$as_me:$LINENO: result: yes" >&5
11047echo "${ECHO_T}yes" >&6
11048else
11049# FIXME - insert some real tests, host_os isn't really good enough
11050  case $host_os in
11051   darwin*)
11052       if test -n "$STRIP" ; then
11053         striplib="$STRIP -x"
11054         echo "$as_me:$LINENO: result: yes" >&5
11055echo "${ECHO_T}yes" >&6
11056       else
11057  echo "$as_me:$LINENO: result: no" >&5
11058echo "${ECHO_T}no" >&6
11059fi
11060       ;;
11061   *)
11062  echo "$as_me:$LINENO: result: no" >&5
11063echo "${ECHO_T}no" >&6
11064    ;;
11065  esac
11066fi
11067
11068echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11069echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11070library_names_spec=
11071libname_spec='lib$name'
11072soname_spec=
11073shrext=".so"
11074postinstall_cmds=
11075postuninstall_cmds=
11076finish_cmds=
11077finish_eval=
11078shlibpath_var=
11079shlibpath_overrides_runpath=unknown
11080version_type=none
11081dynamic_linker="$host_os ld.so"
11082sys_lib_dlsearch_path_spec="/lib /usr/lib"
11083if test "$GCC" = yes; then
11084  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11085  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11086    # if the path contains ";" then we assume it to be the separator
11087    # otherwise default to the standard path separator (i.e. ":") - it is
11088    # assumed that no part of a normal pathname contains ";" but that should
11089    # okay in the real world where ";" in dirpaths is itself problematic.
11090    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11091  else
11092    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11093  fi
11094else
11095  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11096fi
11097need_lib_prefix=unknown
11098hardcode_into_libs=no
11099
11100# when you set need_version to no, make sure it does not cause -set_version
11101# flags to be left without arguments
11102need_version=unknown
11103
11104case $host_os in
11105aix3*)
11106  version_type=linux
11107  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11108  shlibpath_var=LIBPATH
11109
11110  # AIX 3 has no versioning support, so we append a major version to the name.
11111  soname_spec='${libname}${release}${shared_ext}$major'
11112  ;;
11113
11114aix4* | aix5*)
11115  version_type=linux
11116  need_lib_prefix=no
11117  need_version=no
11118  hardcode_into_libs=yes
11119  if test "$host_cpu" = ia64; then
11120    # AIX 5 supports IA64
11121    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11122    shlibpath_var=LD_LIBRARY_PATH
11123  else
11124    # With GCC up to 2.95.x, collect2 would create an import file
11125    # for dependence libraries.  The import file would start with
11126    # the line `#! .'.  This would cause the generated library to
11127    # depend on `.', always an invalid library.  This was fixed in
11128    # development snapshots of GCC prior to 3.0.
11129    case $host_os in
11130      aix4 | aix4.[01] | aix4.[01].*)
11131      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11132	   echo ' yes '
11133	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11134	:
11135      else
11136	can_build_shared=no
11137      fi
11138      ;;
11139    esac
11140    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11141    # soname into executable. Probably we can add versioning support to
11142    # collect2, so additional links can be useful in future.
11143    if test "$aix_use_runtimelinking" = yes; then
11144      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11145      # instead of lib<name>.a to let people know that these are not
11146      # typical AIX shared libraries.
11147      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11148    else
11149      # We preserve .a as extension for shared libraries through AIX4.2
11150      # and later when we are not doing run time linking.
11151      library_names_spec='${libname}${release}.a $libname.a'
11152      soname_spec='${libname}${release}${shared_ext}$major'
11153    fi
11154    shlibpath_var=LIBPATH
11155  fi
11156  ;;
11157
11158amigaos*)
11159  library_names_spec='$libname.ixlibrary $libname.a'
11160  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11161  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'
11162  ;;
11163
11164beos*)
11165  library_names_spec='${libname}${shared_ext}'
11166  dynamic_linker="$host_os ld.so"
11167  shlibpath_var=LIBRARY_PATH
11168  ;;
11169
11170bsdi4*)
11171  version_type=linux
11172  need_version=no
11173  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11174  soname_spec='${libname}${release}${shared_ext}$major'
11175  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11176  shlibpath_var=LD_LIBRARY_PATH
11177  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11178  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11179  # the default ld.so.conf also contains /usr/contrib/lib and
11180  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11181  # libtool to hard-code these into programs
11182  ;;
11183
11184cygwin* | mingw* | pw32*)
11185  version_type=windows
11186  shrext=".dll"
11187  need_version=no
11188  need_lib_prefix=no
11189
11190  case $GCC,$host_os in
11191  yes,cygwin* | yes,mingw* | yes,pw32*)
11192    library_names_spec='$libname.dll.a'
11193    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11194    postinstall_cmds='base_file=`basename \${file}`~
11195      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11196      dldir=$destdir/`dirname \$dlpath`~
11197      test -d \$dldir || mkdir -p \$dldir~
11198      $install_prog $dir/$dlname \$dldir/$dlname'
11199    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11200      dlpath=$dir/\$dldll~
11201       $rm \$dlpath'
11202    shlibpath_overrides_runpath=yes
11203
11204    case $host_os in
11205    cygwin*)
11206      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11207      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11208      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11209      ;;
11210    mingw*)
11211      # MinGW DLLs use traditional 'lib' prefix
11212      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11213      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11214      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11215        # It is most probably a Windows format PATH printed by
11216        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11217        # path with ; separators, and with drive letters. We can handle the
11218        # drive letters (cygwin fileutils understands them), so leave them,
11219        # especially as we might pass files found there to a mingw objdump,
11220        # which wouldn't understand a cygwinified path. Ahh.
11221        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11222      else
11223        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11224      fi
11225      ;;
11226    pw32*)
11227      # pw32 DLLs use 'pw' prefix rather than 'lib'
11228      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11229      ;;
11230    esac
11231    ;;
11232
11233  *)
11234    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11235    ;;
11236  esac
11237  dynamic_linker='Win32 ld.exe'
11238  # FIXME: first we should search . and the directory the executable is in
11239  shlibpath_var=PATH
11240  ;;
11241
11242darwin* | rhapsody*)
11243  dynamic_linker="$host_os dyld"
11244  version_type=darwin
11245  need_lib_prefix=no
11246  need_version=no
11247  # FIXME: Relying on posixy $() will cause problems for
11248  #        cross-compilation, but unfortunately the echo tests do not
11249  #        yet detect zsh echo's removal of \ escapes.
11250  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11251  soname_spec='${libname}${release}${major}$shared_ext'
11252  shlibpath_overrides_runpath=yes
11253  shlibpath_var=DYLD_LIBRARY_PATH
11254  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11255  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11256  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11257  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"`
11258  fi
11259  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11260  ;;
11261
11262dgux*)
11263  version_type=linux
11264  need_lib_prefix=no
11265  need_version=no
11266  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11267  soname_spec='${libname}${release}${shared_ext}$major'
11268  shlibpath_var=LD_LIBRARY_PATH
11269  ;;
11270
11271freebsd1*)
11272  dynamic_linker=no
11273  ;;
11274
11275freebsd*)
11276  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11277  version_type=freebsd-$objformat
11278  case $version_type in
11279    freebsd-elf*)
11280      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11281      need_version=no
11282      need_lib_prefix=no
11283      ;;
11284    freebsd-*)
11285      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11286      need_version=yes
11287      ;;
11288  esac
11289  shlibpath_var=LD_LIBRARY_PATH
11290  case $host_os in
11291  freebsd2*)
11292    shlibpath_overrides_runpath=yes
11293    ;;
11294  freebsd3.01* | freebsdelf3.01*)
11295    shlibpath_overrides_runpath=yes
11296    hardcode_into_libs=yes
11297    ;;
11298  *) # from 3.2 on
11299    shlibpath_overrides_runpath=no
11300    hardcode_into_libs=yes
11301    ;;
11302  esac
11303  ;;
11304
11305gnu*)
11306  version_type=linux
11307  need_lib_prefix=no
11308  need_version=no
11309  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11310  soname_spec='${libname}${release}${shared_ext}$major'
11311  shlibpath_var=LD_LIBRARY_PATH
11312  hardcode_into_libs=yes
11313  ;;
11314
11315hpux9* | hpux10* | hpux11*)
11316  # Give a soname corresponding to the major version so that dld.sl refuses to
11317  # link against other versions.
11318  version_type=sunos
11319  need_lib_prefix=no
11320  need_version=no
11321  case "$host_cpu" in
11322  ia64*)
11323    shrext='.so'
11324    hardcode_into_libs=yes
11325    dynamic_linker="$host_os dld.so"
11326    shlibpath_var=LD_LIBRARY_PATH
11327    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11328    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11329    soname_spec='${libname}${release}${shared_ext}$major'
11330    if test "X$HPUX_IA64_MODE" = X32; then
11331      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11332    else
11333      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11334    fi
11335    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11336    ;;
11337   hppa*64*)
11338     shrext='.sl'
11339     hardcode_into_libs=yes
11340     dynamic_linker="$host_os dld.sl"
11341     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11342     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11343     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11344     soname_spec='${libname}${release}${shared_ext}$major'
11345     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11346     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11347     ;;
11348   *)
11349    shrext='.sl'
11350    dynamic_linker="$host_os dld.sl"
11351    shlibpath_var=SHLIB_PATH
11352    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11353    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11354    soname_spec='${libname}${release}${shared_ext}$major'
11355    ;;
11356  esac
11357  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11358  postinstall_cmds='chmod 555 $lib'
11359  ;;
11360
11361irix5* | irix6* | nonstopux*)
11362  case $host_os in
11363    nonstopux*) version_type=nonstopux ;;
11364    *)
11365	if test "$lt_cv_prog_gnu_ld" = yes; then
11366		version_type=linux
11367	else
11368		version_type=irix
11369	fi ;;
11370  esac
11371  need_lib_prefix=no
11372  need_version=no
11373  soname_spec='${libname}${release}${shared_ext}$major'
11374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11375  case $host_os in
11376  irix5* | nonstopux*)
11377    libsuff= shlibsuff=
11378    ;;
11379  *)
11380    case $LD in # libtool.m4 will add one of these switches to LD
11381    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11382      libsuff= shlibsuff= libmagic=32-bit;;
11383    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11384      libsuff=32 shlibsuff=N32 libmagic=N32;;
11385    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11386      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11387    *) libsuff= shlibsuff= libmagic=never-match;;
11388    esac
11389    ;;
11390  esac
11391  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11392  shlibpath_overrides_runpath=no
11393  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11394  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11395  hardcode_into_libs=yes
11396  ;;
11397
11398# No shared lib support for Linux oldld, aout, or coff.
11399linux*oldld* | linux*aout* | linux*coff*)
11400  dynamic_linker=no
11401  ;;
11402
11403# This must be Linux ELF.
11404linux*)
11405  version_type=linux
11406  need_lib_prefix=no
11407  need_version=no
11408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11409  soname_spec='${libname}${release}${shared_ext}$major'
11410  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11411  shlibpath_var=LD_LIBRARY_PATH
11412  shlibpath_overrides_runpath=no
11413  # This implies no fast_install, which is unacceptable.
11414  # Some rework will be needed to allow for fast_install
11415  # before this can be enabled.
11416  hardcode_into_libs=yes
11417
11418  # We used to test for /lib/ld.so.1 and disable shared libraries on
11419  # powerpc, because MkLinux only supported shared libraries with the
11420  # GNU dynamic linker.  Since this was broken with cross compilers,
11421  # most powerpc-linux boxes support dynamic linking these days and
11422  # people can always --disable-shared, the test was removed, and we
11423  # assume the GNU/Linux dynamic linker is in use.
11424  dynamic_linker='GNU/Linux ld.so'
11425  ;;
11426
11427netbsd*)
11428  version_type=sunos
11429  need_lib_prefix=no
11430  need_version=no
11431  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11432    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11433    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11434    dynamic_linker='NetBSD (a.out) ld.so'
11435  else
11436    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11437    soname_spec='${libname}${release}${shared_ext}$major'
11438    dynamic_linker='NetBSD ld.elf_so'
11439  fi
11440  shlibpath_var=LD_LIBRARY_PATH
11441  shlibpath_overrides_runpath=yes
11442  hardcode_into_libs=yes
11443  ;;
11444
11445newsos6)
11446  version_type=linux
11447  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11448  shlibpath_var=LD_LIBRARY_PATH
11449  shlibpath_overrides_runpath=yes
11450  ;;
11451
11452nto-qnx)
11453  version_type=linux
11454  need_lib_prefix=no
11455  need_version=no
11456  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11457  soname_spec='${libname}${release}${shared_ext}$major'
11458  shlibpath_var=LD_LIBRARY_PATH
11459  shlibpath_overrides_runpath=yes
11460  ;;
11461
11462openbsd*)
11463  version_type=sunos
11464  need_lib_prefix=no
11465  need_version=no
11466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11467  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11468  shlibpath_var=LD_LIBRARY_PATH
11469  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11470    case $host_os in
11471      openbsd2.[89] | openbsd2.[89].*)
11472	shlibpath_overrides_runpath=no
11473	;;
11474      *)
11475	shlibpath_overrides_runpath=yes
11476	;;
11477      esac
11478  else
11479    shlibpath_overrides_runpath=yes
11480  fi
11481  ;;
11482
11483os2*)
11484  libname_spec='$name'
11485  shrext=".dll"
11486  need_lib_prefix=no
11487  library_names_spec='$libname${shared_ext} $libname.a'
11488  dynamic_linker='OS/2 ld.exe'
11489  shlibpath_var=LIBPATH
11490  ;;
11491
11492osf3* | osf4* | osf5*)
11493  version_type=osf
11494  need_lib_prefix=no
11495  need_version=no
11496  soname_spec='${libname}${release}${shared_ext}$major'
11497  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11498  shlibpath_var=LD_LIBRARY_PATH
11499  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11500  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11501  ;;
11502
11503sco3.2v5*)
11504  version_type=osf
11505  soname_spec='${libname}${release}${shared_ext}$major'
11506  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11507  shlibpath_var=LD_LIBRARY_PATH
11508  ;;
11509
11510solaris*)
11511  version_type=linux
11512  need_lib_prefix=no
11513  need_version=no
11514  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11515  soname_spec='${libname}${release}${shared_ext}$major'
11516  shlibpath_var=LD_LIBRARY_PATH
11517  shlibpath_overrides_runpath=yes
11518  hardcode_into_libs=yes
11519  # ldd complains unless libraries are executable
11520  postinstall_cmds='chmod +x $lib'
11521  ;;
11522
11523sunos4*)
11524  version_type=sunos
11525  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11526  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11527  shlibpath_var=LD_LIBRARY_PATH
11528  shlibpath_overrides_runpath=yes
11529  if test "$with_gnu_ld" = yes; then
11530    need_lib_prefix=no
11531  fi
11532  need_version=yes
11533  ;;
11534
11535sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11536  version_type=linux
11537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11538  soname_spec='${libname}${release}${shared_ext}$major'
11539  shlibpath_var=LD_LIBRARY_PATH
11540  case $host_vendor in
11541    sni)
11542      shlibpath_overrides_runpath=no
11543      need_lib_prefix=no
11544      export_dynamic_flag_spec='${wl}-Blargedynsym'
11545      runpath_var=LD_RUN_PATH
11546      ;;
11547    siemens)
11548      need_lib_prefix=no
11549      ;;
11550    motorola)
11551      need_lib_prefix=no
11552      need_version=no
11553      shlibpath_overrides_runpath=no
11554      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11555      ;;
11556  esac
11557  ;;
11558
11559sysv4*MP*)
11560  if test -d /usr/nec ;then
11561    version_type=linux
11562    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11563    soname_spec='$libname${shared_ext}.$major'
11564    shlibpath_var=LD_LIBRARY_PATH
11565  fi
11566  ;;
11567
11568uts4*)
11569  version_type=linux
11570  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11571  soname_spec='${libname}${release}${shared_ext}$major'
11572  shlibpath_var=LD_LIBRARY_PATH
11573  ;;
11574
11575*)
11576  dynamic_linker=no
11577  ;;
11578esac
11579echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11580echo "${ECHO_T}$dynamic_linker" >&6
11581test "$dynamic_linker" = no && can_build_shared=no
11582
11583if test "x$enable_dlopen" != xyes; then
11584  enable_dlopen=unknown
11585  enable_dlopen_self=unknown
11586  enable_dlopen_self_static=unknown
11587else
11588  lt_cv_dlopen=no
11589  lt_cv_dlopen_libs=
11590
11591  case $host_os in
11592  beos*)
11593    lt_cv_dlopen="load_add_on"
11594    lt_cv_dlopen_libs=
11595    lt_cv_dlopen_self=yes
11596    ;;
11597
11598  mingw* | pw32*)
11599    lt_cv_dlopen="LoadLibrary"
11600    lt_cv_dlopen_libs=
11601   ;;
11602
11603  cygwin*)
11604    lt_cv_dlopen="dlopen"
11605    lt_cv_dlopen_libs=
11606   ;;
11607
11608  darwin*)
11609  # if libdl is installed we need to link against it
11610    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11611echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11612if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11613  echo $ECHO_N "(cached) $ECHO_C" >&6
11614else
11615  ac_check_lib_save_LIBS=$LIBS
11616LIBS="-ldl  $LIBS"
11617cat >conftest.$ac_ext <<_ACEOF
11618#line $LINENO "configure"
11619/* confdefs.h.  */
11620_ACEOF
11621cat confdefs.h >>conftest.$ac_ext
11622cat >>conftest.$ac_ext <<_ACEOF
11623/* end confdefs.h.  */
11624
11625/* Override any gcc2 internal prototype to avoid an error.  */
11626#ifdef __cplusplus
11627extern "C"
11628#endif
11629/* We use char because int might match the return type of a gcc2
11630   builtin and then its argument prototype would still apply.  */
11631char dlopen ();
11632int
11633main ()
11634{
11635dlopen ();
11636  ;
11637  return 0;
11638}
11639_ACEOF
11640rm -f conftest.$ac_objext conftest$ac_exeext
11641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11642  (eval $ac_link) 2>&5
11643  ac_status=$?
11644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645  (exit $ac_status); } &&
11646         { ac_try='test -s conftest$ac_exeext'
11647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648  (eval $ac_try) 2>&5
11649  ac_status=$?
11650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651  (exit $ac_status); }; }; then
11652  ac_cv_lib_dl_dlopen=yes
11653else
11654  echo "$as_me: failed program was:" >&5
11655sed 's/^/| /' conftest.$ac_ext >&5
11656
11657ac_cv_lib_dl_dlopen=no
11658fi
11659rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11660LIBS=$ac_check_lib_save_LIBS
11661fi
11662echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11663echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11664if test $ac_cv_lib_dl_dlopen = yes; then
11665  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11666else
11667
11668    lt_cv_dlopen="dyld"
11669    lt_cv_dlopen_libs=
11670    lt_cv_dlopen_self=yes
11671
11672fi
11673
11674   ;;
11675
11676  *)
11677    echo "$as_me:$LINENO: checking for shl_load" >&5
11678echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11679if test "${ac_cv_func_shl_load+set}" = set; then
11680  echo $ECHO_N "(cached) $ECHO_C" >&6
11681else
11682  cat >conftest.$ac_ext <<_ACEOF
11683#line $LINENO "configure"
11684/* confdefs.h.  */
11685_ACEOF
11686cat confdefs.h >>conftest.$ac_ext
11687cat >>conftest.$ac_ext <<_ACEOF
11688/* end confdefs.h.  */
11689/* System header to define __stub macros and hopefully few prototypes,
11690    which can conflict with char shl_load (); below.
11691    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11692    <limits.h> exists even on freestanding compilers.  */
11693#ifdef __STDC__
11694# include <limits.h>
11695#else
11696# include <assert.h>
11697#endif
11698/* Override any gcc2 internal prototype to avoid an error.  */
11699#ifdef __cplusplus
11700extern "C"
11701{
11702#endif
11703/* We use char because int might match the return type of a gcc2
11704   builtin and then its argument prototype would still apply.  */
11705char shl_load ();
11706/* The GNU C library defines this for functions which it implements
11707    to always fail with ENOSYS.  Some functions are actually named
11708    something starting with __ and the normal name is an alias.  */
11709#if defined (__stub_shl_load) || defined (__stub___shl_load)
11710choke me
11711#else
11712char (*f) () = shl_load;
11713#endif
11714#ifdef __cplusplus
11715}
11716#endif
11717
11718int
11719main ()
11720{
11721return f != shl_load;
11722  ;
11723  return 0;
11724}
11725_ACEOF
11726rm -f conftest.$ac_objext conftest$ac_exeext
11727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11728  (eval $ac_link) 2>&5
11729  ac_status=$?
11730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731  (exit $ac_status); } &&
11732         { ac_try='test -s conftest$ac_exeext'
11733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734  (eval $ac_try) 2>&5
11735  ac_status=$?
11736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737  (exit $ac_status); }; }; then
11738  ac_cv_func_shl_load=yes
11739else
11740  echo "$as_me: failed program was:" >&5
11741sed 's/^/| /' conftest.$ac_ext >&5
11742
11743ac_cv_func_shl_load=no
11744fi
11745rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11746fi
11747echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11748echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11749if test $ac_cv_func_shl_load = yes; then
11750  lt_cv_dlopen="shl_load"
11751else
11752  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11753echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11754if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11755  echo $ECHO_N "(cached) $ECHO_C" >&6
11756else
11757  ac_check_lib_save_LIBS=$LIBS
11758LIBS="-ldld  $LIBS"
11759cat >conftest.$ac_ext <<_ACEOF
11760#line $LINENO "configure"
11761/* confdefs.h.  */
11762_ACEOF
11763cat confdefs.h >>conftest.$ac_ext
11764cat >>conftest.$ac_ext <<_ACEOF
11765/* end confdefs.h.  */
11766
11767/* Override any gcc2 internal prototype to avoid an error.  */
11768#ifdef __cplusplus
11769extern "C"
11770#endif
11771/* We use char because int might match the return type of a gcc2
11772   builtin and then its argument prototype would still apply.  */
11773char shl_load ();
11774int
11775main ()
11776{
11777shl_load ();
11778  ;
11779  return 0;
11780}
11781_ACEOF
11782rm -f conftest.$ac_objext conftest$ac_exeext
11783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11784  (eval $ac_link) 2>&5
11785  ac_status=$?
11786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787  (exit $ac_status); } &&
11788         { ac_try='test -s conftest$ac_exeext'
11789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790  (eval $ac_try) 2>&5
11791  ac_status=$?
11792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793  (exit $ac_status); }; }; then
11794  ac_cv_lib_dld_shl_load=yes
11795else
11796  echo "$as_me: failed program was:" >&5
11797sed 's/^/| /' conftest.$ac_ext >&5
11798
11799ac_cv_lib_dld_shl_load=no
11800fi
11801rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11802LIBS=$ac_check_lib_save_LIBS
11803fi
11804echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11805echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11806if test $ac_cv_lib_dld_shl_load = yes; then
11807  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11808else
11809  echo "$as_me:$LINENO: checking for dlopen" >&5
11810echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11811if test "${ac_cv_func_dlopen+set}" = set; then
11812  echo $ECHO_N "(cached) $ECHO_C" >&6
11813else
11814  cat >conftest.$ac_ext <<_ACEOF
11815#line $LINENO "configure"
11816/* confdefs.h.  */
11817_ACEOF
11818cat confdefs.h >>conftest.$ac_ext
11819cat >>conftest.$ac_ext <<_ACEOF
11820/* end confdefs.h.  */
11821/* System header to define __stub macros and hopefully few prototypes,
11822    which can conflict with char dlopen (); below.
11823    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11824    <limits.h> exists even on freestanding compilers.  */
11825#ifdef __STDC__
11826# include <limits.h>
11827#else
11828# include <assert.h>
11829#endif
11830/* Override any gcc2 internal prototype to avoid an error.  */
11831#ifdef __cplusplus
11832extern "C"
11833{
11834#endif
11835/* We use char because int might match the return type of a gcc2
11836   builtin and then its argument prototype would still apply.  */
11837char dlopen ();
11838/* The GNU C library defines this for functions which it implements
11839    to always fail with ENOSYS.  Some functions are actually named
11840    something starting with __ and the normal name is an alias.  */
11841#if defined (__stub_dlopen) || defined (__stub___dlopen)
11842choke me
11843#else
11844char (*f) () = dlopen;
11845#endif
11846#ifdef __cplusplus
11847}
11848#endif
11849
11850int
11851main ()
11852{
11853return f != dlopen;
11854  ;
11855  return 0;
11856}
11857_ACEOF
11858rm -f conftest.$ac_objext conftest$ac_exeext
11859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11860  (eval $ac_link) 2>&5
11861  ac_status=$?
11862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863  (exit $ac_status); } &&
11864         { ac_try='test -s conftest$ac_exeext'
11865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866  (eval $ac_try) 2>&5
11867  ac_status=$?
11868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869  (exit $ac_status); }; }; then
11870  ac_cv_func_dlopen=yes
11871else
11872  echo "$as_me: failed program was:" >&5
11873sed 's/^/| /' conftest.$ac_ext >&5
11874
11875ac_cv_func_dlopen=no
11876fi
11877rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11878fi
11879echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11880echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11881if test $ac_cv_func_dlopen = yes; then
11882  lt_cv_dlopen="dlopen"
11883else
11884  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11885echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11886if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11887  echo $ECHO_N "(cached) $ECHO_C" >&6
11888else
11889  ac_check_lib_save_LIBS=$LIBS
11890LIBS="-ldl  $LIBS"
11891cat >conftest.$ac_ext <<_ACEOF
11892#line $LINENO "configure"
11893/* confdefs.h.  */
11894_ACEOF
11895cat confdefs.h >>conftest.$ac_ext
11896cat >>conftest.$ac_ext <<_ACEOF
11897/* end confdefs.h.  */
11898
11899/* Override any gcc2 internal prototype to avoid an error.  */
11900#ifdef __cplusplus
11901extern "C"
11902#endif
11903/* We use char because int might match the return type of a gcc2
11904   builtin and then its argument prototype would still apply.  */
11905char dlopen ();
11906int
11907main ()
11908{
11909dlopen ();
11910  ;
11911  return 0;
11912}
11913_ACEOF
11914rm -f conftest.$ac_objext conftest$ac_exeext
11915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11916  (eval $ac_link) 2>&5
11917  ac_status=$?
11918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919  (exit $ac_status); } &&
11920         { ac_try='test -s conftest$ac_exeext'
11921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922  (eval $ac_try) 2>&5
11923  ac_status=$?
11924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925  (exit $ac_status); }; }; then
11926  ac_cv_lib_dl_dlopen=yes
11927else
11928  echo "$as_me: failed program was:" >&5
11929sed 's/^/| /' conftest.$ac_ext >&5
11930
11931ac_cv_lib_dl_dlopen=no
11932fi
11933rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11934LIBS=$ac_check_lib_save_LIBS
11935fi
11936echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11937echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11938if test $ac_cv_lib_dl_dlopen = yes; then
11939  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11940else
11941  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11942echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11943if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11944  echo $ECHO_N "(cached) $ECHO_C" >&6
11945else
11946  ac_check_lib_save_LIBS=$LIBS
11947LIBS="-lsvld  $LIBS"
11948cat >conftest.$ac_ext <<_ACEOF
11949#line $LINENO "configure"
11950/* confdefs.h.  */
11951_ACEOF
11952cat confdefs.h >>conftest.$ac_ext
11953cat >>conftest.$ac_ext <<_ACEOF
11954/* end confdefs.h.  */
11955
11956/* Override any gcc2 internal prototype to avoid an error.  */
11957#ifdef __cplusplus
11958extern "C"
11959#endif
11960/* We use char because int might match the return type of a gcc2
11961   builtin and then its argument prototype would still apply.  */
11962char dlopen ();
11963int
11964main ()
11965{
11966dlopen ();
11967  ;
11968  return 0;
11969}
11970_ACEOF
11971rm -f conftest.$ac_objext conftest$ac_exeext
11972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11973  (eval $ac_link) 2>&5
11974  ac_status=$?
11975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976  (exit $ac_status); } &&
11977         { ac_try='test -s conftest$ac_exeext'
11978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979  (eval $ac_try) 2>&5
11980  ac_status=$?
11981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982  (exit $ac_status); }; }; then
11983  ac_cv_lib_svld_dlopen=yes
11984else
11985  echo "$as_me: failed program was:" >&5
11986sed 's/^/| /' conftest.$ac_ext >&5
11987
11988ac_cv_lib_svld_dlopen=no
11989fi
11990rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11991LIBS=$ac_check_lib_save_LIBS
11992fi
11993echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11994echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11995if test $ac_cv_lib_svld_dlopen = yes; then
11996  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11997else
11998  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11999echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12000if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12001  echo $ECHO_N "(cached) $ECHO_C" >&6
12002else
12003  ac_check_lib_save_LIBS=$LIBS
12004LIBS="-ldld  $LIBS"
12005cat >conftest.$ac_ext <<_ACEOF
12006#line $LINENO "configure"
12007/* confdefs.h.  */
12008_ACEOF
12009cat confdefs.h >>conftest.$ac_ext
12010cat >>conftest.$ac_ext <<_ACEOF
12011/* end confdefs.h.  */
12012
12013/* Override any gcc2 internal prototype to avoid an error.  */
12014#ifdef __cplusplus
12015extern "C"
12016#endif
12017/* We use char because int might match the return type of a gcc2
12018   builtin and then its argument prototype would still apply.  */
12019char dld_link ();
12020int
12021main ()
12022{
12023dld_link ();
12024  ;
12025  return 0;
12026}
12027_ACEOF
12028rm -f conftest.$ac_objext conftest$ac_exeext
12029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12030  (eval $ac_link) 2>&5
12031  ac_status=$?
12032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033  (exit $ac_status); } &&
12034         { ac_try='test -s conftest$ac_exeext'
12035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036  (eval $ac_try) 2>&5
12037  ac_status=$?
12038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039  (exit $ac_status); }; }; then
12040  ac_cv_lib_dld_dld_link=yes
12041else
12042  echo "$as_me: failed program was:" >&5
12043sed 's/^/| /' conftest.$ac_ext >&5
12044
12045ac_cv_lib_dld_dld_link=no
12046fi
12047rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12048LIBS=$ac_check_lib_save_LIBS
12049fi
12050echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12051echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12052if test $ac_cv_lib_dld_dld_link = yes; then
12053  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12054fi
12055
12056
12057fi
12058
12059
12060fi
12061
12062
12063fi
12064
12065
12066fi
12067
12068
12069fi
12070
12071    ;;
12072  esac
12073
12074  if test "x$lt_cv_dlopen" != xno; then
12075    enable_dlopen=yes
12076  else
12077    enable_dlopen=no
12078  fi
12079
12080  case $lt_cv_dlopen in
12081  dlopen)
12082    save_CPPFLAGS="$CPPFLAGS"
12083    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12084
12085    save_LDFLAGS="$LDFLAGS"
12086    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12087
12088    save_LIBS="$LIBS"
12089    LIBS="$lt_cv_dlopen_libs $LIBS"
12090
12091    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12092echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12093if test "${lt_cv_dlopen_self+set}" = set; then
12094  echo $ECHO_N "(cached) $ECHO_C" >&6
12095else
12096  	  if test "$cross_compiling" = yes; then :
12097  lt_cv_dlopen_self=cross
12098else
12099  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12100  lt_status=$lt_dlunknown
12101  cat > conftest.$ac_ext <<EOF
12102#line 12102 "configure"
12103#include "confdefs.h"
12104
12105#if HAVE_DLFCN_H
12106#include <dlfcn.h>
12107#endif
12108
12109#include <stdio.h>
12110
12111#ifdef RTLD_GLOBAL
12112#  define LT_DLGLOBAL		RTLD_GLOBAL
12113#else
12114#  ifdef DL_GLOBAL
12115#    define LT_DLGLOBAL		DL_GLOBAL
12116#  else
12117#    define LT_DLGLOBAL		0
12118#  endif
12119#endif
12120
12121/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12122   find out it does not work in some platform. */
12123#ifndef LT_DLLAZY_OR_NOW
12124#  ifdef RTLD_LAZY
12125#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12126#  else
12127#    ifdef DL_LAZY
12128#      define LT_DLLAZY_OR_NOW		DL_LAZY
12129#    else
12130#      ifdef RTLD_NOW
12131#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12132#      else
12133#        ifdef DL_NOW
12134#          define LT_DLLAZY_OR_NOW	DL_NOW
12135#        else
12136#          define LT_DLLAZY_OR_NOW	0
12137#        endif
12138#      endif
12139#    endif
12140#  endif
12141#endif
12142
12143#ifdef __cplusplus
12144extern "C" void exit (int);
12145#endif
12146
12147void fnord() { int i=42;}
12148int main ()
12149{
12150  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12151  int status = $lt_dlunknown;
12152
12153  if (self)
12154    {
12155      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12156      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12157      /* dlclose (self); */
12158    }
12159
12160    exit (status);
12161}
12162EOF
12163  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12164  (eval $ac_link) 2>&5
12165  ac_status=$?
12166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12168    (./conftest; exit; ) 2>/dev/null
12169    lt_status=$?
12170    case x$lt_status in
12171      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12172      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12173      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12174    esac
12175  else :
12176    # compilation failed
12177    lt_cv_dlopen_self=no
12178  fi
12179fi
12180rm -fr conftest*
12181
12182
12183fi
12184echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12185echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12186
12187    if test "x$lt_cv_dlopen_self" = xyes; then
12188      LDFLAGS="$LDFLAGS $link_static_flag"
12189      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12190echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12191if test "${lt_cv_dlopen_self_static+set}" = set; then
12192  echo $ECHO_N "(cached) $ECHO_C" >&6
12193else
12194  	  if test "$cross_compiling" = yes; then :
12195  lt_cv_dlopen_self_static=cross
12196else
12197  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12198  lt_status=$lt_dlunknown
12199  cat > conftest.$ac_ext <<EOF
12200#line 12200 "configure"
12201#include "confdefs.h"
12202
12203#if HAVE_DLFCN_H
12204#include <dlfcn.h>
12205#endif
12206
12207#include <stdio.h>
12208
12209#ifdef RTLD_GLOBAL
12210#  define LT_DLGLOBAL		RTLD_GLOBAL
12211#else
12212#  ifdef DL_GLOBAL
12213#    define LT_DLGLOBAL		DL_GLOBAL
12214#  else
12215#    define LT_DLGLOBAL		0
12216#  endif
12217#endif
12218
12219/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12220   find out it does not work in some platform. */
12221#ifndef LT_DLLAZY_OR_NOW
12222#  ifdef RTLD_LAZY
12223#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12224#  else
12225#    ifdef DL_LAZY
12226#      define LT_DLLAZY_OR_NOW		DL_LAZY
12227#    else
12228#      ifdef RTLD_NOW
12229#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12230#      else
12231#        ifdef DL_NOW
12232#          define LT_DLLAZY_OR_NOW	DL_NOW
12233#        else
12234#          define LT_DLLAZY_OR_NOW	0
12235#        endif
12236#      endif
12237#    endif
12238#  endif
12239#endif
12240
12241#ifdef __cplusplus
12242extern "C" void exit (int);
12243#endif
12244
12245void fnord() { int i=42;}
12246int main ()
12247{
12248  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12249  int status = $lt_dlunknown;
12250
12251  if (self)
12252    {
12253      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12254      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12255      /* dlclose (self); */
12256    }
12257
12258    exit (status);
12259}
12260EOF
12261  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12262  (eval $ac_link) 2>&5
12263  ac_status=$?
12264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12266    (./conftest; exit; ) 2>/dev/null
12267    lt_status=$?
12268    case x$lt_status in
12269      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12270      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12271      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12272    esac
12273  else :
12274    # compilation failed
12275    lt_cv_dlopen_self_static=no
12276  fi
12277fi
12278rm -fr conftest*
12279
12280
12281fi
12282echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12283echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12284    fi
12285
12286    CPPFLAGS="$save_CPPFLAGS"
12287    LDFLAGS="$save_LDFLAGS"
12288    LIBS="$save_LIBS"
12289    ;;
12290  esac
12291
12292  case $lt_cv_dlopen_self in
12293  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12294  *) enable_dlopen_self=unknown ;;
12295  esac
12296
12297  case $lt_cv_dlopen_self_static in
12298  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12299  *) enable_dlopen_self_static=unknown ;;
12300  esac
12301fi
12302
12303
12304# The else clause should only fire when bootstrapping the
12305# libtool distribution, otherwise you forgot to ship ltmain.sh
12306# with your package, and you will get complaints that there are
12307# no rules to generate ltmain.sh.
12308if test -f "$ltmain"; then
12309  # See if we are running on zsh, and set the options which allow our commands through
12310  # without removal of \ escapes.
12311  if test -n "${ZSH_VERSION+set}" ; then
12312    setopt NO_GLOB_SUBST
12313  fi
12314  # Now quote all the things that may contain metacharacters while being
12315  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12316  # variables and quote the copies for generation of the libtool script.
12317  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12318    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12319    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12320    deplibs_check_method reload_flag reload_cmds need_locks \
12321    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12322    lt_cv_sys_global_symbol_to_c_name_address \
12323    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12324    old_postinstall_cmds old_postuninstall_cmds \
12325    compiler_CXX \
12326    CC_CXX \
12327    LD_CXX \
12328    lt_prog_compiler_wl_CXX \
12329    lt_prog_compiler_pic_CXX \
12330    lt_prog_compiler_static_CXX \
12331    lt_prog_compiler_no_builtin_flag_CXX \
12332    export_dynamic_flag_spec_CXX \
12333    thread_safe_flag_spec_CXX \
12334    whole_archive_flag_spec_CXX \
12335    enable_shared_with_static_runtimes_CXX \
12336    old_archive_cmds_CXX \
12337    old_archive_from_new_cmds_CXX \
12338    predep_objects_CXX \
12339    postdep_objects_CXX \
12340    predeps_CXX \
12341    postdeps_CXX \
12342    compiler_lib_search_path_CXX \
12343    archive_cmds_CXX \
12344    archive_expsym_cmds_CXX \
12345    postinstall_cmds_CXX \
12346    postuninstall_cmds_CXX \
12347    old_archive_from_expsyms_cmds_CXX \
12348    allow_undefined_flag_CXX \
12349    no_undefined_flag_CXX \
12350    export_symbols_cmds_CXX \
12351    hardcode_libdir_flag_spec_CXX \
12352    hardcode_libdir_flag_spec_ld_CXX \
12353    hardcode_libdir_separator_CXX \
12354    hardcode_automatic_CXX \
12355    module_cmds_CXX \
12356    module_expsym_cmds_CXX \
12357    lt_cv_prog_compiler_c_o_CXX \
12358    exclude_expsyms_CXX \
12359    include_expsyms_CXX; do
12360
12361    case $var in
12362    old_archive_cmds_CXX | \
12363    old_archive_from_new_cmds_CXX | \
12364    archive_cmds_CXX | \
12365    archive_expsym_cmds_CXX | \
12366    module_cmds_CXX | \
12367    module_expsym_cmds_CXX | \
12368    old_archive_from_expsyms_cmds_CXX | \
12369    export_symbols_cmds_CXX | \
12370    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12371    postinstall_cmds | postuninstall_cmds | \
12372    old_postinstall_cmds | old_postuninstall_cmds | \
12373    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12374      # Double-quote double-evaled strings.
12375      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12376      ;;
12377    *)
12378      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12379      ;;
12380    esac
12381  done
12382
12383  case $lt_echo in
12384  *'\$0 --fallback-echo"')
12385    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12386    ;;
12387  esac
12388
12389cfgfile="$ofile"
12390
12391  cat <<__EOF__ >> "$cfgfile"
12392# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12393
12394# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12395
12396# Shell to use when invoking shell scripts.
12397SHELL=$lt_SHELL
12398
12399# Whether or not to build shared libraries.
12400build_libtool_libs=$enable_shared
12401
12402# Whether or not to build static libraries.
12403build_old_libs=$enable_static
12404
12405# Whether or not to add -lc for building shared libraries.
12406build_libtool_need_lc=$archive_cmds_need_lc_CXX
12407
12408# Whether or not to disallow shared libs when runtime libs are static
12409allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12410
12411# Whether or not to optimize for fast installation.
12412fast_install=$enable_fast_install
12413
12414# The host system.
12415host_alias=$host_alias
12416host=$host
12417
12418# An echo program that does not interpret backslashes.
12419echo=$lt_echo
12420
12421# The archiver.
12422AR=$lt_AR
12423AR_FLAGS=$lt_AR_FLAGS
12424
12425# A C compiler.
12426LTCC=$lt_LTCC
12427
12428# A language-specific compiler.
12429CC=$lt_compiler_CXX
12430
12431# Is the compiler the GNU C compiler?
12432with_gcc=$GCC_CXX
12433
12434# An ERE matcher.
12435EGREP=$lt_EGREP
12436
12437# The linker used to build libraries.
12438LD=$lt_LD_CXX
12439
12440# Whether we need hard or soft links.
12441LN_S=$lt_LN_S
12442
12443# A BSD-compatible nm program.
12444NM=$lt_NM
12445
12446# A symbol stripping program
12447STRIP=$STRIP
12448
12449# Used to examine libraries when file_magic_cmd begins "file"
12450MAGIC_CMD=$MAGIC_CMD
12451
12452# Used on cygwin: DLL creation program.
12453DLLTOOL="$DLLTOOL"
12454
12455# Used on cygwin: object dumper.
12456OBJDUMP="$OBJDUMP"
12457
12458# Used on cygwin: assembler.
12459AS="$AS"
12460
12461# The name of the directory that contains temporary libtool files.
12462objdir=$objdir
12463
12464# How to create reloadable object files.
12465reload_flag=$lt_reload_flag
12466reload_cmds=$lt_reload_cmds
12467
12468# How to pass a linker flag through the compiler.
12469wl=$lt_lt_prog_compiler_wl_CXX
12470
12471# Object file suffix (normally "o").
12472objext="$ac_objext"
12473
12474# Old archive suffix (normally "a").
12475libext="$libext"
12476
12477# Shared library suffix (normally ".so").
12478shrext='$shrext'
12479
12480# Executable file suffix (normally "").
12481exeext="$exeext"
12482
12483# Additional compiler flags for building library objects.
12484pic_flag=$lt_lt_prog_compiler_pic_CXX
12485pic_mode=$pic_mode
12486
12487# What is the maximum length of a command?
12488max_cmd_len=$lt_cv_sys_max_cmd_len
12489
12490# Does compiler simultaneously support -c and -o options?
12491compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12492
12493# Must we lock files when doing compilation ?
12494need_locks=$lt_need_locks
12495
12496# Do we need the lib prefix for modules?
12497need_lib_prefix=$need_lib_prefix
12498
12499# Do we need a version for libraries?
12500need_version=$need_version
12501
12502# Whether dlopen is supported.
12503dlopen_support=$enable_dlopen
12504
12505# Whether dlopen of programs is supported.
12506dlopen_self=$enable_dlopen_self
12507
12508# Whether dlopen of statically linked programs is supported.
12509dlopen_self_static=$enable_dlopen_self_static
12510
12511# Compiler flag to prevent dynamic linking.
12512link_static_flag=$lt_lt_prog_compiler_static_CXX
12513
12514# Compiler flag to turn off builtin functions.
12515no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12516
12517# Compiler flag to allow reflexive dlopens.
12518export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12519
12520# Compiler flag to generate shared objects directly from archives.
12521whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12522
12523# Compiler flag to generate thread-safe objects.
12524thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12525
12526# Library versioning type.
12527version_type=$version_type
12528
12529# Format of library name prefix.
12530libname_spec=$lt_libname_spec
12531
12532# List of archive names.  First name is the real one, the rest are links.
12533# The last name is the one that the linker finds with -lNAME.
12534library_names_spec=$lt_library_names_spec
12535
12536# The coded name of the library, if different from the real name.
12537soname_spec=$lt_soname_spec
12538
12539# Commands used to build and install an old-style archive.
12540RANLIB=$lt_RANLIB
12541old_archive_cmds=$lt_old_archive_cmds_CXX
12542old_postinstall_cmds=$lt_old_postinstall_cmds
12543old_postuninstall_cmds=$lt_old_postuninstall_cmds
12544
12545# Create an old-style archive from a shared archive.
12546old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12547
12548# Create a temporary old-style archive to link instead of a shared archive.
12549old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12550
12551# Commands used to build and install a shared archive.
12552archive_cmds=$lt_archive_cmds_CXX
12553archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12554postinstall_cmds=$lt_postinstall_cmds
12555postuninstall_cmds=$lt_postuninstall_cmds
12556
12557# Commands used to build a loadable module (assumed same as above if empty)
12558module_cmds=$lt_module_cmds_CXX
12559module_expsym_cmds=$lt_module_expsym_cmds_CXX
12560
12561# Commands to strip libraries.
12562old_striplib=$lt_old_striplib
12563striplib=$lt_striplib
12564
12565# Dependencies to place before the objects being linked to create a
12566# shared library.
12567predep_objects=$lt_predep_objects_CXX
12568
12569# Dependencies to place after the objects being linked to create a
12570# shared library.
12571postdep_objects=$lt_postdep_objects_CXX
12572
12573# Dependencies to place before the objects being linked to create a
12574# shared library.
12575predeps=$lt_predeps_CXX
12576
12577# Dependencies to place after the objects being linked to create a
12578# shared library.
12579postdeps=$lt_postdeps_CXX
12580
12581# The library search path used internally by the compiler when linking
12582# a shared library.
12583compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12584
12585# Method to check whether dependent libraries are shared objects.
12586deplibs_check_method=$lt_deplibs_check_method
12587
12588# Command to use when deplibs_check_method == file_magic.
12589file_magic_cmd=$lt_file_magic_cmd
12590
12591# Flag that allows shared libraries with undefined symbols to be built.
12592allow_undefined_flag=$lt_allow_undefined_flag_CXX
12593
12594# Flag that forces no undefined symbols.
12595no_undefined_flag=$lt_no_undefined_flag_CXX
12596
12597# Commands used to finish a libtool library installation in a directory.
12598finish_cmds=$lt_finish_cmds
12599
12600# Same as above, but a single script fragment to be evaled but not shown.
12601finish_eval=$lt_finish_eval
12602
12603# Take the output of nm and produce a listing of raw symbols and C names.
12604global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12605
12606# Transform the output of nm in a proper C declaration
12607global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12608
12609# Transform the output of nm in a C name address pair
12610global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12611
12612# This is the shared library runtime path variable.
12613runpath_var=$runpath_var
12614
12615# This is the shared library path variable.
12616shlibpath_var=$shlibpath_var
12617
12618# Is shlibpath searched before the hard-coded library search path?
12619shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12620
12621# How to hardcode a shared library path into an executable.
12622hardcode_action=$hardcode_action_CXX
12623
12624# Whether we should hardcode library paths into libraries.
12625hardcode_into_libs=$hardcode_into_libs
12626
12627# Flag to hardcode \$libdir into a binary during linking.
12628# This must work even if \$libdir does not exist.
12629hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12630
12631# If ld is used when linking, flag to hardcode \$libdir into
12632# a binary during linking. This must work even if \$libdir does
12633# not exist.
12634hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12635
12636# Whether we need a single -rpath flag with a separated argument.
12637hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12638
12639# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12640# resulting binary.
12641hardcode_direct=$hardcode_direct_CXX
12642
12643# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12644# resulting binary.
12645hardcode_minus_L=$hardcode_minus_L_CXX
12646
12647# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12648# the resulting binary.
12649hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12650
12651# Set to yes if building a shared library automatically hardcodes DIR into the library
12652# and all subsequent libraries and executables linked against it.
12653hardcode_automatic=$hardcode_automatic_CXX
12654
12655# Variables whose values should be saved in libtool wrapper scripts and
12656# restored at relink time.
12657variables_saved_for_relink="$variables_saved_for_relink"
12658
12659# Whether libtool must link a program against all its dependency libraries.
12660link_all_deplibs=$link_all_deplibs_CXX
12661
12662# Compile-time system search path for libraries
12663sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12664
12665# Run-time system search path for libraries
12666sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12667
12668# Fix the shell variable \$srcfile for the compiler.
12669fix_srcfile_path="$fix_srcfile_path_CXX"
12670
12671# Set to yes if exported symbols are required.
12672always_export_symbols=$always_export_symbols_CXX
12673
12674# The commands to list exported symbols.
12675export_symbols_cmds=$lt_export_symbols_cmds_CXX
12676
12677# The commands to extract the exported symbol list from a shared archive.
12678extract_expsyms_cmds=$lt_extract_expsyms_cmds
12679
12680# Symbols that should not be listed in the preloaded symbols.
12681exclude_expsyms=$lt_exclude_expsyms_CXX
12682
12683# Symbols that must always be exported.
12684include_expsyms=$lt_include_expsyms_CXX
12685
12686# ### END LIBTOOL TAG CONFIG: $tagname
12687
12688__EOF__
12689
12690
12691else
12692  # If there is no Makefile yet, we rely on a make rule to execute
12693  # `config.status --recheck' to rerun these tests and create the
12694  # libtool script then.
12695  test -f Makefile && make "$ltmain"
12696fi
12697
12698
12699ac_ext=c
12700ac_cpp='$CPP $CPPFLAGS'
12701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12703ac_compiler_gnu=$ac_cv_c_compiler_gnu
12704
12705CC=$lt_save_CC
12706LDCXX=$LD
12707LD=$lt_save_LD
12708GCC=$lt_save_GCC
12709with_gnu_ldcxx=$with_gnu_ld
12710with_gnu_ld=$lt_save_with_gnu_ld
12711lt_cv_path_LDCXX=$lt_cv_path_LD
12712lt_cv_path_LD=$lt_save_path_LD
12713lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12714lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12715
12716	else
12717	  tagname=""
12718	fi
12719	;;
12720
12721      F77)
12722	if test -n "$F77" && test "X$F77" != "Xno"; then
12723
12724ac_ext=f
12725ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12726ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12727ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12728
12729
12730archive_cmds_need_lc_F77=no
12731allow_undefined_flag_F77=
12732always_export_symbols_F77=no
12733archive_expsym_cmds_F77=
12734export_dynamic_flag_spec_F77=
12735hardcode_direct_F77=no
12736hardcode_libdir_flag_spec_F77=
12737hardcode_libdir_flag_spec_ld_F77=
12738hardcode_libdir_separator_F77=
12739hardcode_minus_L_F77=no
12740hardcode_automatic_F77=no
12741module_cmds_F77=
12742module_expsym_cmds_F77=
12743link_all_deplibs_F77=unknown
12744old_archive_cmds_F77=$old_archive_cmds
12745no_undefined_flag_F77=
12746whole_archive_flag_spec_F77=
12747enable_shared_with_static_runtimes_F77=no
12748
12749# Source file extension for f77 test sources.
12750ac_ext=f
12751
12752# Object file extension for compiled f77 test sources.
12753objext=o
12754objext_F77=$objext
12755
12756# Code to be used in simple compile tests
12757lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12758
12759# Code to be used in simple link tests
12760lt_simple_link_test_code="      program t\n      end\n"
12761
12762# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12763
12764# If no C compiler was specified, use CC.
12765LTCC=${LTCC-"$CC"}
12766
12767# Allow CC to be a program name with arguments.
12768compiler=$CC
12769
12770
12771# Allow CC to be a program name with arguments.
12772lt_save_CC="$CC"
12773CC=${F77-"f77"}
12774compiler=$CC
12775compiler_F77=$CC
12776cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12777
12778echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12779echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12780echo "$as_me:$LINENO: result: $can_build_shared" >&5
12781echo "${ECHO_T}$can_build_shared" >&6
12782
12783echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12784echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12785test "$can_build_shared" = "no" && enable_shared=no
12786
12787# On AIX, shared libraries and static libraries use the same namespace, and
12788# are all built from PIC.
12789case "$host_os" in
12790aix3*)
12791  test "$enable_shared" = yes && enable_static=no
12792  if test -n "$RANLIB"; then
12793    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12794    postinstall_cmds='$RANLIB $lib'
12795  fi
12796  ;;
12797aix4*)
12798  test "$enable_shared" = yes && enable_static=no
12799  ;;
12800esac
12801echo "$as_me:$LINENO: result: $enable_shared" >&5
12802echo "${ECHO_T}$enable_shared" >&6
12803
12804echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12805echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12806# Make sure either enable_shared or enable_static is yes.
12807test "$enable_shared" = yes || enable_static=yes
12808echo "$as_me:$LINENO: result: $enable_static" >&5
12809echo "${ECHO_T}$enable_static" >&6
12810
12811test "$ld_shlibs_F77" = no && can_build_shared=no
12812
12813GCC_F77="$G77"
12814LD_F77="$LD"
12815
12816lt_prog_compiler_wl_F77=
12817lt_prog_compiler_pic_F77=
12818lt_prog_compiler_static_F77=
12819
12820echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12821echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12822
12823  if test "$GCC" = yes; then
12824    lt_prog_compiler_wl_F77='-Wl,'
12825    lt_prog_compiler_static_F77='-static'
12826
12827    case $host_os in
12828      aix*)
12829      # All AIX code is PIC.
12830      if test "$host_cpu" = ia64; then
12831	# AIX 5 now supports IA64 processor
12832	lt_prog_compiler_static_F77='-Bstatic'
12833      fi
12834      ;;
12835
12836    amigaos*)
12837      # FIXME: we need at least 68020 code to build shared libraries, but
12838      # adding the `-m68020' flag to GCC prevents building anything better,
12839      # like `-m68040'.
12840      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12841      ;;
12842
12843    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12844      # PIC is the default for these OSes.
12845      ;;
12846
12847    mingw* | pw32* | os2*)
12848      # This hack is so that the source file can tell whether it is being
12849      # built for inclusion in a dll (and should export symbols for example).
12850      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12851      ;;
12852
12853    darwin* | rhapsody*)
12854      # PIC is the default on this platform
12855      # Common symbols not allowed in MH_DYLIB files
12856      lt_prog_compiler_pic_F77='-fno-common'
12857      ;;
12858
12859    msdosdjgpp*)
12860      # Just because we use GCC doesn't mean we suddenly get shared libraries
12861      # on systems that don't support them.
12862      lt_prog_compiler_can_build_shared_F77=no
12863      enable_shared=no
12864      ;;
12865
12866    sysv4*MP*)
12867      if test -d /usr/nec; then
12868	lt_prog_compiler_pic_F77=-Kconform_pic
12869      fi
12870      ;;
12871
12872    hpux*)
12873      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12874      # not for PA HP-UX.
12875      case "$host_cpu" in
12876      hppa*64*|ia64*)
12877	# +Z the default
12878	;;
12879      *)
12880	lt_prog_compiler_pic_F77='-fPIC'
12881	;;
12882      esac
12883      ;;
12884
12885    *)
12886      lt_prog_compiler_pic_F77='-fPIC'
12887      ;;
12888    esac
12889  else
12890    # PORTME Check for flag to pass linker flags through the system compiler.
12891    case $host_os in
12892    aix*)
12893      lt_prog_compiler_wl_F77='-Wl,'
12894      if test "$host_cpu" = ia64; then
12895	# AIX 5 now supports IA64 processor
12896	lt_prog_compiler_static_F77='-Bstatic'
12897      else
12898	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12899      fi
12900      ;;
12901
12902    mingw* | pw32* | os2*)
12903      # This hack is so that the source file can tell whether it is being
12904      # built for inclusion in a dll (and should export symbols for example).
12905      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12906      ;;
12907
12908    hpux9* | hpux10* | hpux11*)
12909      lt_prog_compiler_wl_F77='-Wl,'
12910      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12911      # not for PA HP-UX.
12912      case "$host_cpu" in
12913      hppa*64*|ia64*)
12914	# +Z the default
12915	;;
12916      *)
12917	lt_prog_compiler_pic_F77='+Z'
12918	;;
12919      esac
12920      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12921      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12922      ;;
12923
12924    irix5* | irix6* | nonstopux*)
12925      lt_prog_compiler_wl_F77='-Wl,'
12926      # PIC (with -KPIC) is the default.
12927      lt_prog_compiler_static_F77='-non_shared'
12928      ;;
12929
12930    newsos6)
12931      lt_prog_compiler_pic_F77='-KPIC'
12932      lt_prog_compiler_static_F77='-Bstatic'
12933      ;;
12934
12935    linux*)
12936      case $CC in
12937      icc|ecc)
12938	lt_prog_compiler_wl_F77='-Wl,'
12939	lt_prog_compiler_pic_F77='-KPIC'
12940	lt_prog_compiler_static_F77='-static'
12941        ;;
12942      ccc)
12943        lt_prog_compiler_wl_F77='-Wl,'
12944        # All Alpha code is PIC.
12945        lt_prog_compiler_static_F77='-non_shared'
12946        ;;
12947      esac
12948      ;;
12949
12950    osf3* | osf4* | osf5*)
12951      lt_prog_compiler_wl_F77='-Wl,'
12952      # All OSF/1 code is PIC.
12953      lt_prog_compiler_static_F77='-non_shared'
12954      ;;
12955
12956    sco3.2v5*)
12957      lt_prog_compiler_pic_F77='-Kpic'
12958      lt_prog_compiler_static_F77='-dn'
12959      ;;
12960
12961    solaris*)
12962      lt_prog_compiler_wl_F77='-Wl,'
12963      lt_prog_compiler_pic_F77='-KPIC'
12964      lt_prog_compiler_static_F77='-Bstatic'
12965      ;;
12966
12967    sunos4*)
12968      lt_prog_compiler_wl_F77='-Qoption ld '
12969      lt_prog_compiler_pic_F77='-PIC'
12970      lt_prog_compiler_static_F77='-Bstatic'
12971      ;;
12972
12973    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12974      lt_prog_compiler_wl_F77='-Wl,'
12975      lt_prog_compiler_pic_F77='-KPIC'
12976      lt_prog_compiler_static_F77='-Bstatic'
12977      ;;
12978
12979    sysv4*MP*)
12980      if test -d /usr/nec ;then
12981	lt_prog_compiler_pic_F77='-Kconform_pic'
12982	lt_prog_compiler_static_F77='-Bstatic'
12983      fi
12984      ;;
12985
12986    uts4*)
12987      lt_prog_compiler_pic_F77='-pic'
12988      lt_prog_compiler_static_F77='-Bstatic'
12989      ;;
12990
12991    *)
12992      lt_prog_compiler_can_build_shared_F77=no
12993      ;;
12994    esac
12995  fi
12996
12997echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12998echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12999
13000#
13001# Check to make sure the PIC flag actually works.
13002#
13003if test -n "$lt_prog_compiler_pic_F77"; then
13004  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13005echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13006if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13007  echo $ECHO_N "(cached) $ECHO_C" >&6
13008else
13009  lt_prog_compiler_pic_works_F77=no
13010  ac_outfile=conftest.$ac_objext
13011   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13012   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13013   # Insert the option either (1) after the last *FLAGS variable, or
13014   # (2) before a word containing "conftest.", or (3) at the end.
13015   # Note that $ac_compile itself does not contain backslashes and begins
13016   # with a dollar sign (not a hyphen), so the echo should work correctly.
13017   # The option is referenced via a variable to avoid confusing sed.
13018   lt_compile=`echo "$ac_compile" | $SED \
13019   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13020   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13021   -e 's:$: $lt_compiler_flag:'`
13022   (eval echo "\"\$as_me:13022: $lt_compile\"" >&5)
13023   (eval "$lt_compile" 2>conftest.err)
13024   ac_status=$?
13025   cat conftest.err >&5
13026   echo "$as_me:13026: \$? = $ac_status" >&5
13027   if (exit $ac_status) && test -s "$ac_outfile"; then
13028     # The compiler can only warn and ignore the option if not recognized
13029     # So say no if there are warnings
13030     if test ! -s conftest.err; then
13031       lt_prog_compiler_pic_works_F77=yes
13032     fi
13033   fi
13034   $rm conftest*
13035
13036fi
13037echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13038echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13039
13040if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13041    case $lt_prog_compiler_pic_F77 in
13042     "" | " "*) ;;
13043     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13044     esac
13045else
13046    lt_prog_compiler_pic_F77=
13047     lt_prog_compiler_can_build_shared_F77=no
13048fi
13049
13050fi
13051case "$host_os" in
13052  # For platforms which do not support PIC, -DPIC is meaningless:
13053  *djgpp*)
13054    lt_prog_compiler_pic_F77=
13055    ;;
13056  *)
13057    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13058    ;;
13059esac
13060
13061echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13062echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13063if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13064  echo $ECHO_N "(cached) $ECHO_C" >&6
13065else
13066  lt_cv_prog_compiler_c_o_F77=no
13067   $rm -r conftest 2>/dev/null
13068   mkdir conftest
13069   cd conftest
13070   mkdir out
13071   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13072
13073   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13074   # that will create temporary files in the current directory regardless of
13075   # the output directory.  Thus, making CWD read-only will cause this test
13076   # to fail, enabling locking or at least warning the user not to do parallel
13077   # builds.
13078   chmod -w .
13079
13080   lt_compiler_flag="-o out/conftest2.$ac_objext"
13081   # Insert the option either (1) after the last *FLAGS variable, or
13082   # (2) before a word containing "conftest.", or (3) at the end.
13083   # Note that $ac_compile itself does not contain backslashes and begins
13084   # with a dollar sign (not a hyphen), so the echo should work correctly.
13085   lt_compile=`echo "$ac_compile" | $SED \
13086   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13087   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13088   -e 's:$: $lt_compiler_flag:'`
13089   (eval echo "\"\$as_me:13089: $lt_compile\"" >&5)
13090   (eval "$lt_compile" 2>out/conftest.err)
13091   ac_status=$?
13092   cat out/conftest.err >&5
13093   echo "$as_me:13093: \$? = $ac_status" >&5
13094   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13095   then
13096     # The compiler can only warn and ignore the option if not recognized
13097     # So say no if there are warnings
13098     if test ! -s out/conftest.err; then
13099       lt_cv_prog_compiler_c_o_F77=yes
13100     fi
13101   fi
13102   chmod u+w .
13103   $rm conftest* out/*
13104   rmdir out
13105   cd ..
13106   rmdir conftest
13107   $rm conftest*
13108
13109fi
13110echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13111echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13112
13113
13114hard_links="nottested"
13115if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13116  # do not overwrite the value of need_locks provided by the user
13117  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13118echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13119  hard_links=yes
13120  $rm conftest*
13121  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13122  touch conftest.a
13123  ln conftest.a conftest.b 2>&5 || hard_links=no
13124  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13125  echo "$as_me:$LINENO: result: $hard_links" >&5
13126echo "${ECHO_T}$hard_links" >&6
13127  if test "$hard_links" = no; then
13128    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13129echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13130    need_locks=warn
13131  fi
13132else
13133  need_locks=no
13134fi
13135
13136echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13137echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13138
13139  runpath_var=
13140  allow_undefined_flag_F77=
13141  enable_shared_with_static_runtimes_F77=no
13142  archive_cmds_F77=
13143  archive_expsym_cmds_F77=
13144  old_archive_From_new_cmds_F77=
13145  old_archive_from_expsyms_cmds_F77=
13146  export_dynamic_flag_spec_F77=
13147  whole_archive_flag_spec_F77=
13148  thread_safe_flag_spec_F77=
13149  hardcode_libdir_flag_spec_F77=
13150  hardcode_libdir_flag_spec_ld_F77=
13151  hardcode_libdir_separator_F77=
13152  hardcode_direct_F77=no
13153  hardcode_minus_L_F77=no
13154  hardcode_shlibpath_var_F77=unsupported
13155  link_all_deplibs_F77=unknown
13156  hardcode_automatic_F77=no
13157  module_cmds_F77=
13158  module_expsym_cmds_F77=
13159  always_export_symbols_F77=no
13160  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13161  # include_expsyms should be a list of space-separated symbols to be *always*
13162  # included in the symbol list
13163  include_expsyms_F77=
13164  # exclude_expsyms can be an extended regexp of symbols to exclude
13165  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13166  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13167  # as well as any symbol that contains `d'.
13168  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13169  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13170  # platforms (ab)use it in PIC code, but their linkers get confused if
13171  # the symbol is explicitly referenced.  Since portable code cannot
13172  # rely on this symbol name, it's probably fine to never include it in
13173  # preloaded symbol tables.
13174  extract_expsyms_cmds=
13175
13176  case $host_os in
13177  cygwin* | mingw* | pw32*)
13178    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13179    # When not using gcc, we currently assume that we are using
13180    # Microsoft Visual C++.
13181    if test "$GCC" != yes; then
13182      with_gnu_ld=no
13183    fi
13184    ;;
13185  openbsd*)
13186    with_gnu_ld=no
13187    ;;
13188  esac
13189
13190  ld_shlibs_F77=yes
13191  if test "$with_gnu_ld" = yes; then
13192    # If archive_cmds runs LD, not CC, wlarc should be empty
13193    wlarc='${wl}'
13194
13195    # See if GNU ld supports shared libraries.
13196    case $host_os in
13197    aix3* | aix4* | aix5*)
13198      # On AIX/PPC, the GNU linker is very broken
13199      if test "$host_cpu" != ia64; then
13200	ld_shlibs_F77=no
13201	cat <<EOF 1>&2
13202
13203*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13204*** to be unable to reliably create shared libraries on AIX.
13205*** Therefore, libtool is disabling shared libraries support.  If you
13206*** really care for shared libraries, you may want to modify your PATH
13207*** so that a non-GNU linker is found, and then restart.
13208
13209EOF
13210      fi
13211      ;;
13212
13213    amigaos*)
13214      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)'
13215      hardcode_libdir_flag_spec_F77='-L$libdir'
13216      hardcode_minus_L_F77=yes
13217
13218      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13219      # that the semantics of dynamic libraries on AmigaOS, at least up
13220      # to version 4, is to share data among multiple programs linked
13221      # with the same dynamic library.  Since this doesn't match the
13222      # behavior of shared libraries on other platforms, we can't use
13223      # them.
13224      ld_shlibs_F77=no
13225      ;;
13226
13227    beos*)
13228      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13229	allow_undefined_flag_F77=unsupported
13230	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13231	# support --undefined.  This deserves some investigation.  FIXME
13232	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13233      else
13234	ld_shlibs_F77=no
13235      fi
13236      ;;
13237
13238    cygwin* | mingw* | pw32*)
13239      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13240      # as there is no search path for DLLs.
13241      hardcode_libdir_flag_spec_F77='-L$libdir'
13242      allow_undefined_flag_F77=unsupported
13243      always_export_symbols_F77=no
13244      enable_shared_with_static_runtimes_F77=yes
13245      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13246
13247      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13248        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13249	# If the export-symbols file already is a .def file (1st line
13250	# is EXPORTS), use it as is; otherwise, prepend...
13251	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13252	  cp $export_symbols $output_objdir/$soname.def;
13253	else
13254	  echo EXPORTS > $output_objdir/$soname.def;
13255	  cat $export_symbols >> $output_objdir/$soname.def;
13256	fi~
13257	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13258      else
13259	ld_shlibs=no
13260      fi
13261      ;;
13262
13263    netbsd*)
13264      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13265	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13266	wlarc=
13267      else
13268	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13269	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13270      fi
13271      ;;
13272
13273    solaris* | sysv5*)
13274      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13275	ld_shlibs_F77=no
13276	cat <<EOF 1>&2
13277
13278*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13279*** create shared libraries on Solaris systems.  Therefore, libtool
13280*** is disabling shared libraries support.  We urge you to upgrade GNU
13281*** binutils to release 2.9.1 or newer.  Another option is to modify
13282*** your PATH or compiler configuration so that the native linker is
13283*** used, and then restart.
13284
13285EOF
13286      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13287	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13288	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13289      else
13290	ld_shlibs_F77=no
13291      fi
13292      ;;
13293
13294    sunos4*)
13295      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13296      wlarc=
13297      hardcode_direct_F77=yes
13298      hardcode_shlibpath_var_F77=no
13299      ;;
13300
13301    *)
13302      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13303	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13304	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13305      else
13306	ld_shlibs_F77=no
13307      fi
13308      ;;
13309    esac
13310
13311    if test "$ld_shlibs_F77" = yes; then
13312      runpath_var=LD_RUN_PATH
13313      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13314      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13315      # ancient GNU ld didn't support --whole-archive et. al.
13316      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13317 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13318      else
13319  	whole_archive_flag_spec_F77=
13320      fi
13321    fi
13322  else
13323    # PORTME fill in a description of your system's linker (not GNU ld)
13324    case $host_os in
13325    aix3*)
13326      allow_undefined_flag_F77=unsupported
13327      always_export_symbols_F77=yes
13328      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'
13329      # Note: this linker hardcodes the directories in LIBPATH if there
13330      # are no directories specified by -L.
13331      hardcode_minus_L_F77=yes
13332      if test "$GCC" = yes && test -z "$link_static_flag"; then
13333	# Neither direct hardcoding nor static linking is supported with a
13334	# broken collect2.
13335	hardcode_direct_F77=unsupported
13336      fi
13337      ;;
13338
13339    aix4* | aix5*)
13340      if test "$host_cpu" = ia64; then
13341	# On IA64, the linker does run time linking by default, so we don't
13342	# have to do anything special.
13343	aix_use_runtimelinking=no
13344	exp_sym_flag='-Bexport'
13345	no_entry_flag=""
13346      else
13347	# If we're using GNU nm, then we don't want the "-C" option.
13348	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13349	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13350	  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'
13351	else
13352	  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'
13353	fi
13354	aix_use_runtimelinking=no
13355
13356	# Test if we are trying to use run time linking or normal
13357	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13358	# need to do runtime linking.
13359	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13360	  for ld_flag in $LDFLAGS; do
13361  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13362  	    aix_use_runtimelinking=yes
13363  	    break
13364  	  fi
13365	  done
13366	esac
13367
13368	exp_sym_flag='-bexport'
13369	no_entry_flag='-bnoentry'
13370      fi
13371
13372      # When large executables or shared objects are built, AIX ld can
13373      # have problems creating the table of contents.  If linking a library
13374      # or program results in "error TOC overflow" add -mminimal-toc to
13375      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13376      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13377
13378      archive_cmds_F77=''
13379      hardcode_direct_F77=yes
13380      hardcode_libdir_separator_F77=':'
13381      link_all_deplibs_F77=yes
13382
13383      if test "$GCC" = yes; then
13384	case $host_os in aix4.012|aix4.012.*)
13385	# We only want to do this on AIX 4.2 and lower, the check
13386	# below for broken collect2 doesn't work under 4.3+
13387	  collect2name=`${CC} -print-prog-name=collect2`
13388	  if test -f "$collect2name" && \
13389  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13390	  then
13391  	  # We have reworked collect2
13392  	  hardcode_direct_F77=yes
13393	  else
13394  	  # We have old collect2
13395  	  hardcode_direct_F77=unsupported
13396  	  # It fails to find uninstalled libraries when the uninstalled
13397  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13398  	  # to unsupported forces relinking
13399  	  hardcode_minus_L_F77=yes
13400  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13401  	  hardcode_libdir_separator_F77=
13402	  fi
13403	esac
13404	shared_flag='-shared'
13405      else
13406	# not using gcc
13407	if test "$host_cpu" = ia64; then
13408  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13409  	# chokes on -Wl,-G. The following line is correct:
13410	  shared_flag='-G'
13411	else
13412  	if test "$aix_use_runtimelinking" = yes; then
13413	    shared_flag='${wl}-G'
13414	  else
13415	    shared_flag='${wl}-bM:SRE'
13416  	fi
13417	fi
13418      fi
13419
13420      # It seems that -bexpall does not export symbols beginning with
13421      # underscore (_), so it is better to generate a list of symbols to export.
13422      always_export_symbols_F77=yes
13423      if test "$aix_use_runtimelinking" = yes; then
13424	# Warning - without using the other runtime loading flags (-brtl),
13425	# -berok will link without error, but may produce a broken library.
13426	allow_undefined_flag_F77='-berok'
13427       # Determine the default libpath from the value encoded in an empty executable.
13428       cat >conftest.$ac_ext <<_ACEOF
13429      program main
13430
13431      end
13432_ACEOF
13433rm -f conftest.$ac_objext conftest$ac_exeext
13434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13435  (eval $ac_link) 2>&5
13436  ac_status=$?
13437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438  (exit $ac_status); } &&
13439         { ac_try='test -s conftest$ac_exeext'
13440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441  (eval $ac_try) 2>&5
13442  ac_status=$?
13443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444  (exit $ac_status); }; }; then
13445
13446aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13447}'`
13448# Check for a 64-bit object if we didn't find anything.
13449if 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; }
13450}'`; fi
13451else
13452  echo "$as_me: failed program was:" >&5
13453sed 's/^/| /' conftest.$ac_ext >&5
13454
13455fi
13456rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13457if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13458
13459       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13460	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"
13461       else
13462	if test "$host_cpu" = ia64; then
13463	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13464	  allow_undefined_flag_F77="-z nodefs"
13465	  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"
13466	else
13467	 # Determine the default libpath from the value encoded in an empty executable.
13468	 cat >conftest.$ac_ext <<_ACEOF
13469      program main
13470
13471      end
13472_ACEOF
13473rm -f conftest.$ac_objext conftest$ac_exeext
13474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13475  (eval $ac_link) 2>&5
13476  ac_status=$?
13477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478  (exit $ac_status); } &&
13479         { ac_try='test -s conftest$ac_exeext'
13480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481  (eval $ac_try) 2>&5
13482  ac_status=$?
13483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484  (exit $ac_status); }; }; then
13485
13486aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13487}'`
13488# Check for a 64-bit object if we didn't find anything.
13489if 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; }
13490}'`; fi
13491else
13492  echo "$as_me: failed program was:" >&5
13493sed 's/^/| /' conftest.$ac_ext >&5
13494
13495fi
13496rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13497if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13498
13499	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13500	  # Warning - without using the other run time loading flags,
13501	  # -berok will link without error, but may produce a broken library.
13502	  no_undefined_flag_F77=' ${wl}-bernotok'
13503	  allow_undefined_flag_F77=' ${wl}-berok'
13504	  # -bexpall does not export symbols beginning with underscore (_)
13505	  always_export_symbols_F77=yes
13506	  # Exported symbols can be pulled into shared objects from archives
13507	  whole_archive_flag_spec_F77=' '
13508	  archive_cmds_need_lc_F77=yes
13509	  # This is similar to how AIX traditionally builds it's shared libraries.
13510	  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'
13511	fi
13512      fi
13513      ;;
13514
13515    amigaos*)
13516      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)'
13517      hardcode_libdir_flag_spec_F77='-L$libdir'
13518      hardcode_minus_L_F77=yes
13519      # see comment about different semantics on the GNU ld section
13520      ld_shlibs_F77=no
13521      ;;
13522
13523    bsdi4*)
13524      export_dynamic_flag_spec_F77=-rdynamic
13525      ;;
13526
13527    cygwin* | mingw* | pw32*)
13528      # When not using gcc, we currently assume that we are using
13529      # Microsoft Visual C++.
13530      # hardcode_libdir_flag_spec is actually meaningless, as there is
13531      # no search path for DLLs.
13532      hardcode_libdir_flag_spec_F77=' '
13533      allow_undefined_flag_F77=unsupported
13534      # Tell ltmain to make .lib files, not .a files.
13535      libext=lib
13536      # Tell ltmain to make .dll files, not .so files.
13537      shrext=".dll"
13538      # FIXME: Setting linknames here is a bad hack.
13539      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13540      # The linker will automatically build a .lib file if we build a DLL.
13541      old_archive_From_new_cmds_F77='true'
13542      # FIXME: Should let the user specify the lib program.
13543      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13544      fix_srcfile_path='`cygpath -w "$srcfile"`'
13545      enable_shared_with_static_runtimes_F77=yes
13546      ;;
13547
13548    darwin* | rhapsody*)
13549    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13550      archive_cmds_need_lc_F77=no
13551      case "$host_os" in
13552      rhapsody* | darwin1.[012])
13553	allow_undefined_flag_F77='-undefined suppress'
13554	;;
13555      *) # Darwin 1.3 on
13556	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13557	;;
13558      esac
13559      # FIXME: Relying on posixy $() will cause problems for
13560      #        cross-compilation, but unfortunately the echo tests do not
13561      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13562      #	       `"' quotes if we put them in here... so don't!
13563    	lt_int_apple_cc_single_mod=no
13564    	output_verbose_link_cmd='echo'
13565    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13566    	  lt_int_apple_cc_single_mod=yes
13567    	fi
13568    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13569    	  archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13570    	else
13571        archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13572      fi
13573      module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13574      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13575        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13576          archive_expsym_cmds_F77='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}'
13577        else
13578          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
13579        fi
13580          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13581      hardcode_direct_F77=no
13582      hardcode_automatic_F77=yes
13583      hardcode_shlibpath_var_F77=unsupported
13584      whole_archive_flag_spec_F77='-all_load $convenience'
13585      link_all_deplibs_F77=yes
13586    fi
13587      ;;
13588
13589    dgux*)
13590      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13591      hardcode_libdir_flag_spec_F77='-L$libdir'
13592      hardcode_shlibpath_var_F77=no
13593      ;;
13594
13595    freebsd1*)
13596      ld_shlibs_F77=no
13597      ;;
13598
13599    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13600    # support.  Future versions do this automatically, but an explicit c++rt0.o
13601    # does not break anything, and helps significantly (at the cost of a little
13602    # extra space).
13603    freebsd2.2*)
13604      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13605      hardcode_libdir_flag_spec_F77='-R$libdir'
13606      hardcode_direct_F77=yes
13607      hardcode_shlibpath_var_F77=no
13608      ;;
13609
13610    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13611    freebsd2*)
13612      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13613      hardcode_direct_F77=yes
13614      hardcode_minus_L_F77=yes
13615      hardcode_shlibpath_var_F77=no
13616      ;;
13617
13618    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13619    freebsd*)
13620      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13621      hardcode_libdir_flag_spec_F77='-R$libdir'
13622      hardcode_direct_F77=yes
13623      hardcode_shlibpath_var_F77=no
13624      ;;
13625
13626    hpux9*)
13627      if test "$GCC" = yes; then
13628	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'
13629      else
13630	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'
13631      fi
13632      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13633      hardcode_libdir_separator_F77=:
13634      hardcode_direct_F77=yes
13635
13636      # hardcode_minus_L: Not really in the search PATH,
13637      # but as the default location of the library.
13638      hardcode_minus_L_F77=yes
13639      export_dynamic_flag_spec_F77='${wl}-E'
13640      ;;
13641
13642    hpux10* | hpux11*)
13643      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13644	case "$host_cpu" in
13645	hppa*64*|ia64*)
13646	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13647	  ;;
13648	*)
13649	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13650	  ;;
13651	esac
13652      else
13653	case "$host_cpu" in
13654	hppa*64*|ia64*)
13655	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13656	  ;;
13657	*)
13658	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13659	  ;;
13660	esac
13661      fi
13662      if test "$with_gnu_ld" = no; then
13663	case "$host_cpu" in
13664	hppa*64*)
13665	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13666	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13667	  hardcode_libdir_separator_F77=:
13668	  hardcode_direct_F77=no
13669	  hardcode_shlibpath_var_F77=no
13670	  ;;
13671	ia64*)
13672	  hardcode_libdir_flag_spec_F77='-L$libdir'
13673	  hardcode_direct_F77=no
13674	  hardcode_shlibpath_var_F77=no
13675
13676	  # hardcode_minus_L: Not really in the search PATH,
13677	  # but as the default location of the library.
13678	  hardcode_minus_L_F77=yes
13679	  ;;
13680	*)
13681	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13682	  hardcode_libdir_separator_F77=:
13683	  hardcode_direct_F77=yes
13684	  export_dynamic_flag_spec_F77='${wl}-E'
13685
13686	  # hardcode_minus_L: Not really in the search PATH,
13687	  # but as the default location of the library.
13688	  hardcode_minus_L_F77=yes
13689	  ;;
13690	esac
13691      fi
13692      ;;
13693
13694    irix5* | irix6* | nonstopux*)
13695      if test "$GCC" = yes; then
13696	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'
13697      else
13698	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'
13699	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13700      fi
13701      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13702      hardcode_libdir_separator_F77=:
13703      link_all_deplibs_F77=yes
13704      ;;
13705
13706    netbsd*)
13707      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13708	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13709      else
13710	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13711      fi
13712      hardcode_libdir_flag_spec_F77='-R$libdir'
13713      hardcode_direct_F77=yes
13714      hardcode_shlibpath_var_F77=no
13715      ;;
13716
13717    newsos6)
13718      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13719      hardcode_direct_F77=yes
13720      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13721      hardcode_libdir_separator_F77=:
13722      hardcode_shlibpath_var_F77=no
13723      ;;
13724
13725    openbsd*)
13726      hardcode_direct_F77=yes
13727      hardcode_shlibpath_var_F77=no
13728      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13729	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13730	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13731	export_dynamic_flag_spec_F77='${wl}-E'
13732      else
13733       case $host_os in
13734	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13735	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13736	   hardcode_libdir_flag_spec_F77='-R$libdir'
13737	   ;;
13738	 *)
13739	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13740	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13741	   ;;
13742       esac
13743      fi
13744      ;;
13745
13746    os2*)
13747      hardcode_libdir_flag_spec_F77='-L$libdir'
13748      hardcode_minus_L_F77=yes
13749      allow_undefined_flag_F77=unsupported
13750      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'
13751      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13752      ;;
13753
13754    osf3*)
13755      if test "$GCC" = yes; then
13756	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13757	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'
13758      else
13759	allow_undefined_flag_F77=' -expect_unresolved \*'
13760	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'
13761      fi
13762      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13763      hardcode_libdir_separator_F77=:
13764      ;;
13765
13766    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13767      if test "$GCC" = yes; then
13768	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13769	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'
13770	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13771      else
13772	allow_undefined_flag_F77=' -expect_unresolved \*'
13773	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'
13774	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~
13775	$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'
13776
13777	# Both c and cxx compiler support -rpath directly
13778	hardcode_libdir_flag_spec_F77='-rpath $libdir'
13779      fi
13780      hardcode_libdir_separator_F77=:
13781      ;;
13782
13783    sco3.2v5*)
13784      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13785      hardcode_shlibpath_var_F77=no
13786      export_dynamic_flag_spec_F77='${wl}-Bexport'
13787      runpath_var=LD_RUN_PATH
13788      hardcode_runpath_var=yes
13789      ;;
13790
13791    solaris*)
13792      no_undefined_flag_F77=' -z text'
13793      if test "$GCC" = yes; then
13794	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13795	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13796	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13797      else
13798	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13799	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13800  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13801      fi
13802      hardcode_libdir_flag_spec_F77='-R$libdir'
13803      hardcode_shlibpath_var_F77=no
13804      case $host_os in
13805      solaris2.[0-5] | solaris2.[0-5].*) ;;
13806      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13807	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13808      esac
13809      link_all_deplibs_F77=yes
13810      ;;
13811
13812    sunos4*)
13813      if test "x$host_vendor" = xsequent; then
13814	# Use $CC to link under sequent, because it throws in some extra .o
13815	# files that make .init and .fini sections work.
13816	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13817      else
13818	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13819      fi
13820      hardcode_libdir_flag_spec_F77='-L$libdir'
13821      hardcode_direct_F77=yes
13822      hardcode_minus_L_F77=yes
13823      hardcode_shlibpath_var_F77=no
13824      ;;
13825
13826    sysv4)
13827      case $host_vendor in
13828	sni)
13829	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13830	  hardcode_direct_F77=yes # is this really true???
13831	;;
13832	siemens)
13833	  ## LD is ld it makes a PLAMLIB
13834	  ## CC just makes a GrossModule.
13835	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13836	  reload_cmds_F77='$CC -r -o $output$reload_objs'
13837	  hardcode_direct_F77=no
13838        ;;
13839	motorola)
13840	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13841	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13842	;;
13843      esac
13844      runpath_var='LD_RUN_PATH'
13845      hardcode_shlibpath_var_F77=no
13846      ;;
13847
13848    sysv4.3*)
13849      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13850      hardcode_shlibpath_var_F77=no
13851      export_dynamic_flag_spec_F77='-Bexport'
13852      ;;
13853
13854    sysv4*MP*)
13855      if test -d /usr/nec; then
13856	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13857	hardcode_shlibpath_var_F77=no
13858	runpath_var=LD_RUN_PATH
13859	hardcode_runpath_var=yes
13860	ld_shlibs_F77=yes
13861      fi
13862      ;;
13863
13864    sysv4.2uw2*)
13865      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13866      hardcode_direct_F77=yes
13867      hardcode_minus_L_F77=no
13868      hardcode_shlibpath_var_F77=no
13869      hardcode_runpath_var=yes
13870      runpath_var=LD_RUN_PATH
13871      ;;
13872
13873   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13874      no_undefined_flag_F77='${wl}-z ${wl}text'
13875      if test "$GCC" = yes; then
13876	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13877      else
13878	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13879      fi
13880      runpath_var='LD_RUN_PATH'
13881      hardcode_shlibpath_var_F77=no
13882      ;;
13883
13884    sysv5*)
13885      no_undefined_flag_F77=' -z text'
13886      # $CC -shared without GNU ld will not create a library from C++
13887      # object files and a static libstdc++, better avoid it by now
13888      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13889      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13890  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13891      hardcode_libdir_flag_spec_F77=
13892      hardcode_shlibpath_var_F77=no
13893      runpath_var='LD_RUN_PATH'
13894      ;;
13895
13896    uts4*)
13897      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13898      hardcode_libdir_flag_spec_F77='-L$libdir'
13899      hardcode_shlibpath_var_F77=no
13900      ;;
13901
13902    *)
13903      ld_shlibs_F77=no
13904      ;;
13905    esac
13906  fi
13907
13908echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13909echo "${ECHO_T}$ld_shlibs_F77" >&6
13910test "$ld_shlibs_F77" = no && can_build_shared=no
13911
13912variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13913if test "$GCC" = yes; then
13914  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13915fi
13916
13917#
13918# Do we need to explicitly link libc?
13919#
13920case "x$archive_cmds_need_lc_F77" in
13921x|xyes)
13922  # Assume -lc should be added
13923  archive_cmds_need_lc_F77=yes
13924
13925  if test "$enable_shared" = yes && test "$GCC" = yes; then
13926    case $archive_cmds_F77 in
13927    *'~'*)
13928      # FIXME: we may have to deal with multi-command sequences.
13929      ;;
13930    '$CC '*)
13931      # Test whether the compiler implicitly links with -lc since on some
13932      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13933      # to ld, don't add -lc before -lgcc.
13934      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13935echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13936      $rm conftest*
13937      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13938
13939      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13940  (eval $ac_compile) 2>&5
13941  ac_status=$?
13942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943  (exit $ac_status); } 2>conftest.err; then
13944        soname=conftest
13945        lib=conftest
13946        libobjs=conftest.$ac_objext
13947        deplibs=
13948        wl=$lt_prog_compiler_wl_F77
13949        compiler_flags=-v
13950        linker_flags=-v
13951        verstring=
13952        output_objdir=.
13953        libname=conftest
13954        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13955        allow_undefined_flag_F77=
13956        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13957  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13958  ac_status=$?
13959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960  (exit $ac_status); }
13961        then
13962	  archive_cmds_need_lc_F77=no
13963        else
13964	  archive_cmds_need_lc_F77=yes
13965        fi
13966        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13967      else
13968        cat conftest.err 1>&5
13969      fi
13970      $rm conftest*
13971      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13972echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13973      ;;
13974    esac
13975  fi
13976  ;;
13977esac
13978
13979echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13980echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13981hardcode_action_F77=
13982if test -n "$hardcode_libdir_flag_spec_F77" || \
13983   test -n "$runpath_var F77" || \
13984   test "X$hardcode_automatic_F77"="Xyes" ; then
13985
13986  # We can hardcode non-existant directories.
13987  if test "$hardcode_direct_F77" != no &&
13988     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13989     # have to relink, otherwise we might link with an installed library
13990     # when we should be linking with a yet-to-be-installed one
13991     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13992     test "$hardcode_minus_L_F77" != no; then
13993    # Linking always hardcodes the temporary library directory.
13994    hardcode_action_F77=relink
13995  else
13996    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13997    hardcode_action_F77=immediate
13998  fi
13999else
14000  # We cannot hardcode anything, or else we can only hardcode existing
14001  # directories.
14002  hardcode_action_F77=unsupported
14003fi
14004echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14005echo "${ECHO_T}$hardcode_action_F77" >&6
14006
14007if test "$hardcode_action_F77" = relink; then
14008  # Fast installation is not supported
14009  enable_fast_install=no
14010elif test "$shlibpath_overrides_runpath" = yes ||
14011     test "$enable_shared" = no; then
14012  # Fast installation is not necessary
14013  enable_fast_install=needless
14014fi
14015
14016striplib=
14017old_striplib=
14018echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14019echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14020if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14021  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14022  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14023  echo "$as_me:$LINENO: result: yes" >&5
14024echo "${ECHO_T}yes" >&6
14025else
14026# FIXME - insert some real tests, host_os isn't really good enough
14027  case $host_os in
14028   darwin*)
14029       if test -n "$STRIP" ; then
14030         striplib="$STRIP -x"
14031         echo "$as_me:$LINENO: result: yes" >&5
14032echo "${ECHO_T}yes" >&6
14033       else
14034  echo "$as_me:$LINENO: result: no" >&5
14035echo "${ECHO_T}no" >&6
14036fi
14037       ;;
14038   *)
14039  echo "$as_me:$LINENO: result: no" >&5
14040echo "${ECHO_T}no" >&6
14041    ;;
14042  esac
14043fi
14044
14045echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14046echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14047library_names_spec=
14048libname_spec='lib$name'
14049soname_spec=
14050shrext=".so"
14051postinstall_cmds=
14052postuninstall_cmds=
14053finish_cmds=
14054finish_eval=
14055shlibpath_var=
14056shlibpath_overrides_runpath=unknown
14057version_type=none
14058dynamic_linker="$host_os ld.so"
14059sys_lib_dlsearch_path_spec="/lib /usr/lib"
14060if test "$GCC" = yes; then
14061  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14062  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14063    # if the path contains ";" then we assume it to be the separator
14064    # otherwise default to the standard path separator (i.e. ":") - it is
14065    # assumed that no part of a normal pathname contains ";" but that should
14066    # okay in the real world where ";" in dirpaths is itself problematic.
14067    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14068  else
14069    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14070  fi
14071else
14072  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14073fi
14074need_lib_prefix=unknown
14075hardcode_into_libs=no
14076
14077# when you set need_version to no, make sure it does not cause -set_version
14078# flags to be left without arguments
14079need_version=unknown
14080
14081case $host_os in
14082aix3*)
14083  version_type=linux
14084  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14085  shlibpath_var=LIBPATH
14086
14087  # AIX 3 has no versioning support, so we append a major version to the name.
14088  soname_spec='${libname}${release}${shared_ext}$major'
14089  ;;
14090
14091aix4* | aix5*)
14092  version_type=linux
14093  need_lib_prefix=no
14094  need_version=no
14095  hardcode_into_libs=yes
14096  if test "$host_cpu" = ia64; then
14097    # AIX 5 supports IA64
14098    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14099    shlibpath_var=LD_LIBRARY_PATH
14100  else
14101    # With GCC up to 2.95.x, collect2 would create an import file
14102    # for dependence libraries.  The import file would start with
14103    # the line `#! .'.  This would cause the generated library to
14104    # depend on `.', always an invalid library.  This was fixed in
14105    # development snapshots of GCC prior to 3.0.
14106    case $host_os in
14107      aix4 | aix4.[01] | aix4.[01].*)
14108      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14109	   echo ' yes '
14110	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14111	:
14112      else
14113	can_build_shared=no
14114      fi
14115      ;;
14116    esac
14117    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14118    # soname into executable. Probably we can add versioning support to
14119    # collect2, so additional links can be useful in future.
14120    if test "$aix_use_runtimelinking" = yes; then
14121      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14122      # instead of lib<name>.a to let people know that these are not
14123      # typical AIX shared libraries.
14124      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14125    else
14126      # We preserve .a as extension for shared libraries through AIX4.2
14127      # and later when we are not doing run time linking.
14128      library_names_spec='${libname}${release}.a $libname.a'
14129      soname_spec='${libname}${release}${shared_ext}$major'
14130    fi
14131    shlibpath_var=LIBPATH
14132  fi
14133  ;;
14134
14135amigaos*)
14136  library_names_spec='$libname.ixlibrary $libname.a'
14137  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14138  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'
14139  ;;
14140
14141beos*)
14142  library_names_spec='${libname}${shared_ext}'
14143  dynamic_linker="$host_os ld.so"
14144  shlibpath_var=LIBRARY_PATH
14145  ;;
14146
14147bsdi4*)
14148  version_type=linux
14149  need_version=no
14150  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14151  soname_spec='${libname}${release}${shared_ext}$major'
14152  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14153  shlibpath_var=LD_LIBRARY_PATH
14154  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14155  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14156  # the default ld.so.conf also contains /usr/contrib/lib and
14157  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14158  # libtool to hard-code these into programs
14159  ;;
14160
14161cygwin* | mingw* | pw32*)
14162  version_type=windows
14163  shrext=".dll"
14164  need_version=no
14165  need_lib_prefix=no
14166
14167  case $GCC,$host_os in
14168  yes,cygwin* | yes,mingw* | yes,pw32*)
14169    library_names_spec='$libname.dll.a'
14170    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14171    postinstall_cmds='base_file=`basename \${file}`~
14172      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14173      dldir=$destdir/`dirname \$dlpath`~
14174      test -d \$dldir || mkdir -p \$dldir~
14175      $install_prog $dir/$dlname \$dldir/$dlname'
14176    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14177      dlpath=$dir/\$dldll~
14178       $rm \$dlpath'
14179    shlibpath_overrides_runpath=yes
14180
14181    case $host_os in
14182    cygwin*)
14183      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14184      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14185      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14186      ;;
14187    mingw*)
14188      # MinGW DLLs use traditional 'lib' prefix
14189      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14190      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14191      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14192        # It is most probably a Windows format PATH printed by
14193        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14194        # path with ; separators, and with drive letters. We can handle the
14195        # drive letters (cygwin fileutils understands them), so leave them,
14196        # especially as we might pass files found there to a mingw objdump,
14197        # which wouldn't understand a cygwinified path. Ahh.
14198        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14199      else
14200        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14201      fi
14202      ;;
14203    pw32*)
14204      # pw32 DLLs use 'pw' prefix rather than 'lib'
14205      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14206      ;;
14207    esac
14208    ;;
14209
14210  *)
14211    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14212    ;;
14213  esac
14214  dynamic_linker='Win32 ld.exe'
14215  # FIXME: first we should search . and the directory the executable is in
14216  shlibpath_var=PATH
14217  ;;
14218
14219darwin* | rhapsody*)
14220  dynamic_linker="$host_os dyld"
14221  version_type=darwin
14222  need_lib_prefix=no
14223  need_version=no
14224  # FIXME: Relying on posixy $() will cause problems for
14225  #        cross-compilation, but unfortunately the echo tests do not
14226  #        yet detect zsh echo's removal of \ escapes.
14227  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14228  soname_spec='${libname}${release}${major}$shared_ext'
14229  shlibpath_overrides_runpath=yes
14230  shlibpath_var=DYLD_LIBRARY_PATH
14231  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14232  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14233  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14234  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"`
14235  fi
14236  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14237  ;;
14238
14239dgux*)
14240  version_type=linux
14241  need_lib_prefix=no
14242  need_version=no
14243  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14244  soname_spec='${libname}${release}${shared_ext}$major'
14245  shlibpath_var=LD_LIBRARY_PATH
14246  ;;
14247
14248freebsd1*)
14249  dynamic_linker=no
14250  ;;
14251
14252freebsd*)
14253  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14254  version_type=freebsd-$objformat
14255  case $version_type in
14256    freebsd-elf*)
14257      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14258      need_version=no
14259      need_lib_prefix=no
14260      ;;
14261    freebsd-*)
14262      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14263      need_version=yes
14264      ;;
14265  esac
14266  shlibpath_var=LD_LIBRARY_PATH
14267  case $host_os in
14268  freebsd2*)
14269    shlibpath_overrides_runpath=yes
14270    ;;
14271  freebsd3.01* | freebsdelf3.01*)
14272    shlibpath_overrides_runpath=yes
14273    hardcode_into_libs=yes
14274    ;;
14275  *) # from 3.2 on
14276    shlibpath_overrides_runpath=no
14277    hardcode_into_libs=yes
14278    ;;
14279  esac
14280  ;;
14281
14282gnu*)
14283  version_type=linux
14284  need_lib_prefix=no
14285  need_version=no
14286  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14287  soname_spec='${libname}${release}${shared_ext}$major'
14288  shlibpath_var=LD_LIBRARY_PATH
14289  hardcode_into_libs=yes
14290  ;;
14291
14292hpux9* | hpux10* | hpux11*)
14293  # Give a soname corresponding to the major version so that dld.sl refuses to
14294  # link against other versions.
14295  version_type=sunos
14296  need_lib_prefix=no
14297  need_version=no
14298  case "$host_cpu" in
14299  ia64*)
14300    shrext='.so'
14301    hardcode_into_libs=yes
14302    dynamic_linker="$host_os dld.so"
14303    shlibpath_var=LD_LIBRARY_PATH
14304    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14305    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14306    soname_spec='${libname}${release}${shared_ext}$major'
14307    if test "X$HPUX_IA64_MODE" = X32; then
14308      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14309    else
14310      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14311    fi
14312    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14313    ;;
14314   hppa*64*)
14315     shrext='.sl'
14316     hardcode_into_libs=yes
14317     dynamic_linker="$host_os dld.sl"
14318     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14319     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14320     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14321     soname_spec='${libname}${release}${shared_ext}$major'
14322     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14323     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14324     ;;
14325   *)
14326    shrext='.sl'
14327    dynamic_linker="$host_os dld.sl"
14328    shlibpath_var=SHLIB_PATH
14329    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14330    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14331    soname_spec='${libname}${release}${shared_ext}$major'
14332    ;;
14333  esac
14334  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14335  postinstall_cmds='chmod 555 $lib'
14336  ;;
14337
14338irix5* | irix6* | nonstopux*)
14339  case $host_os in
14340    nonstopux*) version_type=nonstopux ;;
14341    *)
14342	if test "$lt_cv_prog_gnu_ld" = yes; then
14343		version_type=linux
14344	else
14345		version_type=irix
14346	fi ;;
14347  esac
14348  need_lib_prefix=no
14349  need_version=no
14350  soname_spec='${libname}${release}${shared_ext}$major'
14351  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14352  case $host_os in
14353  irix5* | nonstopux*)
14354    libsuff= shlibsuff=
14355    ;;
14356  *)
14357    case $LD in # libtool.m4 will add one of these switches to LD
14358    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14359      libsuff= shlibsuff= libmagic=32-bit;;
14360    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14361      libsuff=32 shlibsuff=N32 libmagic=N32;;
14362    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14363      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14364    *) libsuff= shlibsuff= libmagic=never-match;;
14365    esac
14366    ;;
14367  esac
14368  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14369  shlibpath_overrides_runpath=no
14370  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14371  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14372  hardcode_into_libs=yes
14373  ;;
14374
14375# No shared lib support for Linux oldld, aout, or coff.
14376linux*oldld* | linux*aout* | linux*coff*)
14377  dynamic_linker=no
14378  ;;
14379
14380# This must be Linux ELF.
14381linux*)
14382  version_type=linux
14383  need_lib_prefix=no
14384  need_version=no
14385  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14386  soname_spec='${libname}${release}${shared_ext}$major'
14387  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14388  shlibpath_var=LD_LIBRARY_PATH
14389  shlibpath_overrides_runpath=no
14390  # This implies no fast_install, which is unacceptable.
14391  # Some rework will be needed to allow for fast_install
14392  # before this can be enabled.
14393  hardcode_into_libs=yes
14394
14395  # We used to test for /lib/ld.so.1 and disable shared libraries on
14396  # powerpc, because MkLinux only supported shared libraries with the
14397  # GNU dynamic linker.  Since this was broken with cross compilers,
14398  # most powerpc-linux boxes support dynamic linking these days and
14399  # people can always --disable-shared, the test was removed, and we
14400  # assume the GNU/Linux dynamic linker is in use.
14401  dynamic_linker='GNU/Linux ld.so'
14402  ;;
14403
14404netbsd*)
14405  version_type=sunos
14406  need_lib_prefix=no
14407  need_version=no
14408  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14409    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14410    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14411    dynamic_linker='NetBSD (a.out) ld.so'
14412  else
14413    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14414    soname_spec='${libname}${release}${shared_ext}$major'
14415    dynamic_linker='NetBSD ld.elf_so'
14416  fi
14417  shlibpath_var=LD_LIBRARY_PATH
14418  shlibpath_overrides_runpath=yes
14419  hardcode_into_libs=yes
14420  ;;
14421
14422newsos6)
14423  version_type=linux
14424  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14425  shlibpath_var=LD_LIBRARY_PATH
14426  shlibpath_overrides_runpath=yes
14427  ;;
14428
14429nto-qnx)
14430  version_type=linux
14431  need_lib_prefix=no
14432  need_version=no
14433  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14434  soname_spec='${libname}${release}${shared_ext}$major'
14435  shlibpath_var=LD_LIBRARY_PATH
14436  shlibpath_overrides_runpath=yes
14437  ;;
14438
14439openbsd*)
14440  version_type=sunos
14441  need_lib_prefix=no
14442  need_version=no
14443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14444  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14445  shlibpath_var=LD_LIBRARY_PATH
14446  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14447    case $host_os in
14448      openbsd2.[89] | openbsd2.[89].*)
14449	shlibpath_overrides_runpath=no
14450	;;
14451      *)
14452	shlibpath_overrides_runpath=yes
14453	;;
14454      esac
14455  else
14456    shlibpath_overrides_runpath=yes
14457  fi
14458  ;;
14459
14460os2*)
14461  libname_spec='$name'
14462  shrext=".dll"
14463  need_lib_prefix=no
14464  library_names_spec='$libname${shared_ext} $libname.a'
14465  dynamic_linker='OS/2 ld.exe'
14466  shlibpath_var=LIBPATH
14467  ;;
14468
14469osf3* | osf4* | osf5*)
14470  version_type=osf
14471  need_lib_prefix=no
14472  need_version=no
14473  soname_spec='${libname}${release}${shared_ext}$major'
14474  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14475  shlibpath_var=LD_LIBRARY_PATH
14476  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14477  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14478  ;;
14479
14480sco3.2v5*)
14481  version_type=osf
14482  soname_spec='${libname}${release}${shared_ext}$major'
14483  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14484  shlibpath_var=LD_LIBRARY_PATH
14485  ;;
14486
14487solaris*)
14488  version_type=linux
14489  need_lib_prefix=no
14490  need_version=no
14491  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14492  soname_spec='${libname}${release}${shared_ext}$major'
14493  shlibpath_var=LD_LIBRARY_PATH
14494  shlibpath_overrides_runpath=yes
14495  hardcode_into_libs=yes
14496  # ldd complains unless libraries are executable
14497  postinstall_cmds='chmod +x $lib'
14498  ;;
14499
14500sunos4*)
14501  version_type=sunos
14502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14503  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14504  shlibpath_var=LD_LIBRARY_PATH
14505  shlibpath_overrides_runpath=yes
14506  if test "$with_gnu_ld" = yes; then
14507    need_lib_prefix=no
14508  fi
14509  need_version=yes
14510  ;;
14511
14512sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14513  version_type=linux
14514  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14515  soname_spec='${libname}${release}${shared_ext}$major'
14516  shlibpath_var=LD_LIBRARY_PATH
14517  case $host_vendor in
14518    sni)
14519      shlibpath_overrides_runpath=no
14520      need_lib_prefix=no
14521      export_dynamic_flag_spec='${wl}-Blargedynsym'
14522      runpath_var=LD_RUN_PATH
14523      ;;
14524    siemens)
14525      need_lib_prefix=no
14526      ;;
14527    motorola)
14528      need_lib_prefix=no
14529      need_version=no
14530      shlibpath_overrides_runpath=no
14531      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14532      ;;
14533  esac
14534  ;;
14535
14536sysv4*MP*)
14537  if test -d /usr/nec ;then
14538    version_type=linux
14539    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14540    soname_spec='$libname${shared_ext}.$major'
14541    shlibpath_var=LD_LIBRARY_PATH
14542  fi
14543  ;;
14544
14545uts4*)
14546  version_type=linux
14547  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14548  soname_spec='${libname}${release}${shared_ext}$major'
14549  shlibpath_var=LD_LIBRARY_PATH
14550  ;;
14551
14552*)
14553  dynamic_linker=no
14554  ;;
14555esac
14556echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14557echo "${ECHO_T}$dynamic_linker" >&6
14558test "$dynamic_linker" = no && can_build_shared=no
14559
14560
14561# The else clause should only fire when bootstrapping the
14562# libtool distribution, otherwise you forgot to ship ltmain.sh
14563# with your package, and you will get complaints that there are
14564# no rules to generate ltmain.sh.
14565if test -f "$ltmain"; then
14566  # See if we are running on zsh, and set the options which allow our commands through
14567  # without removal of \ escapes.
14568  if test -n "${ZSH_VERSION+set}" ; then
14569    setopt NO_GLOB_SUBST
14570  fi
14571  # Now quote all the things that may contain metacharacters while being
14572  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14573  # variables and quote the copies for generation of the libtool script.
14574  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14575    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14576    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14577    deplibs_check_method reload_flag reload_cmds need_locks \
14578    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14579    lt_cv_sys_global_symbol_to_c_name_address \
14580    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14581    old_postinstall_cmds old_postuninstall_cmds \
14582    compiler_F77 \
14583    CC_F77 \
14584    LD_F77 \
14585    lt_prog_compiler_wl_F77 \
14586    lt_prog_compiler_pic_F77 \
14587    lt_prog_compiler_static_F77 \
14588    lt_prog_compiler_no_builtin_flag_F77 \
14589    export_dynamic_flag_spec_F77 \
14590    thread_safe_flag_spec_F77 \
14591    whole_archive_flag_spec_F77 \
14592    enable_shared_with_static_runtimes_F77 \
14593    old_archive_cmds_F77 \
14594    old_archive_from_new_cmds_F77 \
14595    predep_objects_F77 \
14596    postdep_objects_F77 \
14597    predeps_F77 \
14598    postdeps_F77 \
14599    compiler_lib_search_path_F77 \
14600    archive_cmds_F77 \
14601    archive_expsym_cmds_F77 \
14602    postinstall_cmds_F77 \
14603    postuninstall_cmds_F77 \
14604    old_archive_from_expsyms_cmds_F77 \
14605    allow_undefined_flag_F77 \
14606    no_undefined_flag_F77 \
14607    export_symbols_cmds_F77 \
14608    hardcode_libdir_flag_spec_F77 \
14609    hardcode_libdir_flag_spec_ld_F77 \
14610    hardcode_libdir_separator_F77 \
14611    hardcode_automatic_F77 \
14612    module_cmds_F77 \
14613    module_expsym_cmds_F77 \
14614    lt_cv_prog_compiler_c_o_F77 \
14615    exclude_expsyms_F77 \
14616    include_expsyms_F77; do
14617
14618    case $var in
14619    old_archive_cmds_F77 | \
14620    old_archive_from_new_cmds_F77 | \
14621    archive_cmds_F77 | \
14622    archive_expsym_cmds_F77 | \
14623    module_cmds_F77 | \
14624    module_expsym_cmds_F77 | \
14625    old_archive_from_expsyms_cmds_F77 | \
14626    export_symbols_cmds_F77 | \
14627    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14628    postinstall_cmds | postuninstall_cmds | \
14629    old_postinstall_cmds | old_postuninstall_cmds | \
14630    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14631      # Double-quote double-evaled strings.
14632      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14633      ;;
14634    *)
14635      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14636      ;;
14637    esac
14638  done
14639
14640  case $lt_echo in
14641  *'\$0 --fallback-echo"')
14642    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14643    ;;
14644  esac
14645
14646cfgfile="$ofile"
14647
14648  cat <<__EOF__ >> "$cfgfile"
14649# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14650
14651# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14652
14653# Shell to use when invoking shell scripts.
14654SHELL=$lt_SHELL
14655
14656# Whether or not to build shared libraries.
14657build_libtool_libs=$enable_shared
14658
14659# Whether or not to build static libraries.
14660build_old_libs=$enable_static
14661
14662# Whether or not to add -lc for building shared libraries.
14663build_libtool_need_lc=$archive_cmds_need_lc_F77
14664
14665# Whether or not to disallow shared libs when runtime libs are static
14666allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14667
14668# Whether or not to optimize for fast installation.
14669fast_install=$enable_fast_install
14670
14671# The host system.
14672host_alias=$host_alias
14673host=$host
14674
14675# An echo program that does not interpret backslashes.
14676echo=$lt_echo
14677
14678# The archiver.
14679AR=$lt_AR
14680AR_FLAGS=$lt_AR_FLAGS
14681
14682# A C compiler.
14683LTCC=$lt_LTCC
14684
14685# A language-specific compiler.
14686CC=$lt_compiler_F77
14687
14688# Is the compiler the GNU C compiler?
14689with_gcc=$GCC_F77
14690
14691# An ERE matcher.
14692EGREP=$lt_EGREP
14693
14694# The linker used to build libraries.
14695LD=$lt_LD_F77
14696
14697# Whether we need hard or soft links.
14698LN_S=$lt_LN_S
14699
14700# A BSD-compatible nm program.
14701NM=$lt_NM
14702
14703# A symbol stripping program
14704STRIP=$STRIP
14705
14706# Used to examine libraries when file_magic_cmd begins "file"
14707MAGIC_CMD=$MAGIC_CMD
14708
14709# Used on cygwin: DLL creation program.
14710DLLTOOL="$DLLTOOL"
14711
14712# Used on cygwin: object dumper.
14713OBJDUMP="$OBJDUMP"
14714
14715# Used on cygwin: assembler.
14716AS="$AS"
14717
14718# The name of the directory that contains temporary libtool files.
14719objdir=$objdir
14720
14721# How to create reloadable object files.
14722reload_flag=$lt_reload_flag
14723reload_cmds=$lt_reload_cmds
14724
14725# How to pass a linker flag through the compiler.
14726wl=$lt_lt_prog_compiler_wl_F77
14727
14728# Object file suffix (normally "o").
14729objext="$ac_objext"
14730
14731# Old archive suffix (normally "a").
14732libext="$libext"
14733
14734# Shared library suffix (normally ".so").
14735shrext='$shrext'
14736
14737# Executable file suffix (normally "").
14738exeext="$exeext"
14739
14740# Additional compiler flags for building library objects.
14741pic_flag=$lt_lt_prog_compiler_pic_F77
14742pic_mode=$pic_mode
14743
14744# What is the maximum length of a command?
14745max_cmd_len=$lt_cv_sys_max_cmd_len
14746
14747# Does compiler simultaneously support -c and -o options?
14748compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14749
14750# Must we lock files when doing compilation ?
14751need_locks=$lt_need_locks
14752
14753# Do we need the lib prefix for modules?
14754need_lib_prefix=$need_lib_prefix
14755
14756# Do we need a version for libraries?
14757need_version=$need_version
14758
14759# Whether dlopen is supported.
14760dlopen_support=$enable_dlopen
14761
14762# Whether dlopen of programs is supported.
14763dlopen_self=$enable_dlopen_self
14764
14765# Whether dlopen of statically linked programs is supported.
14766dlopen_self_static=$enable_dlopen_self_static
14767
14768# Compiler flag to prevent dynamic linking.
14769link_static_flag=$lt_lt_prog_compiler_static_F77
14770
14771# Compiler flag to turn off builtin functions.
14772no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14773
14774# Compiler flag to allow reflexive dlopens.
14775export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14776
14777# Compiler flag to generate shared objects directly from archives.
14778whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14779
14780# Compiler flag to generate thread-safe objects.
14781thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14782
14783# Library versioning type.
14784version_type=$version_type
14785
14786# Format of library name prefix.
14787libname_spec=$lt_libname_spec
14788
14789# List of archive names.  First name is the real one, the rest are links.
14790# The last name is the one that the linker finds with -lNAME.
14791library_names_spec=$lt_library_names_spec
14792
14793# The coded name of the library, if different from the real name.
14794soname_spec=$lt_soname_spec
14795
14796# Commands used to build and install an old-style archive.
14797RANLIB=$lt_RANLIB
14798old_archive_cmds=$lt_old_archive_cmds_F77
14799old_postinstall_cmds=$lt_old_postinstall_cmds
14800old_postuninstall_cmds=$lt_old_postuninstall_cmds
14801
14802# Create an old-style archive from a shared archive.
14803old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14804
14805# Create a temporary old-style archive to link instead of a shared archive.
14806old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14807
14808# Commands used to build and install a shared archive.
14809archive_cmds=$lt_archive_cmds_F77
14810archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14811postinstall_cmds=$lt_postinstall_cmds
14812postuninstall_cmds=$lt_postuninstall_cmds
14813
14814# Commands used to build a loadable module (assumed same as above if empty)
14815module_cmds=$lt_module_cmds_F77
14816module_expsym_cmds=$lt_module_expsym_cmds_F77
14817
14818# Commands to strip libraries.
14819old_striplib=$lt_old_striplib
14820striplib=$lt_striplib
14821
14822# Dependencies to place before the objects being linked to create a
14823# shared library.
14824predep_objects=$lt_predep_objects_F77
14825
14826# Dependencies to place after the objects being linked to create a
14827# shared library.
14828postdep_objects=$lt_postdep_objects_F77
14829
14830# Dependencies to place before the objects being linked to create a
14831# shared library.
14832predeps=$lt_predeps_F77
14833
14834# Dependencies to place after the objects being linked to create a
14835# shared library.
14836postdeps=$lt_postdeps_F77
14837
14838# The library search path used internally by the compiler when linking
14839# a shared library.
14840compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14841
14842# Method to check whether dependent libraries are shared objects.
14843deplibs_check_method=$lt_deplibs_check_method
14844
14845# Command to use when deplibs_check_method == file_magic.
14846file_magic_cmd=$lt_file_magic_cmd
14847
14848# Flag that allows shared libraries with undefined symbols to be built.
14849allow_undefined_flag=$lt_allow_undefined_flag_F77
14850
14851# Flag that forces no undefined symbols.
14852no_undefined_flag=$lt_no_undefined_flag_F77
14853
14854# Commands used to finish a libtool library installation in a directory.
14855finish_cmds=$lt_finish_cmds
14856
14857# Same as above, but a single script fragment to be evaled but not shown.
14858finish_eval=$lt_finish_eval
14859
14860# Take the output of nm and produce a listing of raw symbols and C names.
14861global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14862
14863# Transform the output of nm in a proper C declaration
14864global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14865
14866# Transform the output of nm in a C name address pair
14867global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14868
14869# This is the shared library runtime path variable.
14870runpath_var=$runpath_var
14871
14872# This is the shared library path variable.
14873shlibpath_var=$shlibpath_var
14874
14875# Is shlibpath searched before the hard-coded library search path?
14876shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14877
14878# How to hardcode a shared library path into an executable.
14879hardcode_action=$hardcode_action_F77
14880
14881# Whether we should hardcode library paths into libraries.
14882hardcode_into_libs=$hardcode_into_libs
14883
14884# Flag to hardcode \$libdir into a binary during linking.
14885# This must work even if \$libdir does not exist.
14886hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14887
14888# If ld is used when linking, flag to hardcode \$libdir into
14889# a binary during linking. This must work even if \$libdir does
14890# not exist.
14891hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14892
14893# Whether we need a single -rpath flag with a separated argument.
14894hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14895
14896# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14897# resulting binary.
14898hardcode_direct=$hardcode_direct_F77
14899
14900# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14901# resulting binary.
14902hardcode_minus_L=$hardcode_minus_L_F77
14903
14904# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14905# the resulting binary.
14906hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14907
14908# Set to yes if building a shared library automatically hardcodes DIR into the library
14909# and all subsequent libraries and executables linked against it.
14910hardcode_automatic=$hardcode_automatic_F77
14911
14912# Variables whose values should be saved in libtool wrapper scripts and
14913# restored at relink time.
14914variables_saved_for_relink="$variables_saved_for_relink"
14915
14916# Whether libtool must link a program against all its dependency libraries.
14917link_all_deplibs=$link_all_deplibs_F77
14918
14919# Compile-time system search path for libraries
14920sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14921
14922# Run-time system search path for libraries
14923sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14924
14925# Fix the shell variable \$srcfile for the compiler.
14926fix_srcfile_path="$fix_srcfile_path_F77"
14927
14928# Set to yes if exported symbols are required.
14929always_export_symbols=$always_export_symbols_F77
14930
14931# The commands to list exported symbols.
14932export_symbols_cmds=$lt_export_symbols_cmds_F77
14933
14934# The commands to extract the exported symbol list from a shared archive.
14935extract_expsyms_cmds=$lt_extract_expsyms_cmds
14936
14937# Symbols that should not be listed in the preloaded symbols.
14938exclude_expsyms=$lt_exclude_expsyms_F77
14939
14940# Symbols that must always be exported.
14941include_expsyms=$lt_include_expsyms_F77
14942
14943# ### END LIBTOOL TAG CONFIG: $tagname
14944
14945__EOF__
14946
14947
14948else
14949  # If there is no Makefile yet, we rely on a make rule to execute
14950  # `config.status --recheck' to rerun these tests and create the
14951  # libtool script then.
14952  test -f Makefile && make "$ltmain"
14953fi
14954
14955
14956ac_ext=c
14957ac_cpp='$CPP $CPPFLAGS'
14958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14960ac_compiler_gnu=$ac_cv_c_compiler_gnu
14961
14962CC="$lt_save_CC"
14963
14964	else
14965	  tagname=""
14966	fi
14967	;;
14968
14969      GCJ)
14970	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14971
14972
14973
14974# Source file extension for Java test sources.
14975ac_ext=java
14976
14977# Object file extension for compiled Java test sources.
14978objext=o
14979objext_GCJ=$objext
14980
14981# Code to be used in simple compile tests
14982lt_simple_compile_test_code="class foo {}\n"
14983
14984# Code to be used in simple link tests
14985lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14986
14987# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14988
14989# If no C compiler was specified, use CC.
14990LTCC=${LTCC-"$CC"}
14991
14992# Allow CC to be a program name with arguments.
14993compiler=$CC
14994
14995
14996# Allow CC to be a program name with arguments.
14997lt_save_CC="$CC"
14998CC=${GCJ-"gcj"}
14999compiler=$CC
15000compiler_GCJ=$CC
15001
15002# GCJ did not exist at the time GCC didn't implicitly link libc in.
15003archive_cmds_need_lc_GCJ=no
15004
15005## CAVEAT EMPTOR:
15006## There is no encapsulation within the following macros, do not change
15007## the running order or otherwise move them around unless you know exactly
15008## what you are doing...
15009
15010lt_prog_compiler_no_builtin_flag_GCJ=
15011
15012if test "$GCC" = yes; then
15013  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15014
15015  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15016echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15017if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15018  echo $ECHO_N "(cached) $ECHO_C" >&6
15019else
15020  lt_cv_prog_compiler_rtti_exceptions=no
15021  ac_outfile=conftest.$ac_objext
15022   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15023   lt_compiler_flag="-fno-rtti -fno-exceptions"
15024   # Insert the option either (1) after the last *FLAGS variable, or
15025   # (2) before a word containing "conftest.", or (3) at the end.
15026   # Note that $ac_compile itself does not contain backslashes and begins
15027   # with a dollar sign (not a hyphen), so the echo should work correctly.
15028   # The option is referenced via a variable to avoid confusing sed.
15029   lt_compile=`echo "$ac_compile" | $SED \
15030   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15031   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15032   -e 's:$: $lt_compiler_flag:'`
15033   (eval echo "\"\$as_me:15033: $lt_compile\"" >&5)
15034   (eval "$lt_compile" 2>conftest.err)
15035   ac_status=$?
15036   cat conftest.err >&5
15037   echo "$as_me:15037: \$? = $ac_status" >&5
15038   if (exit $ac_status) && test -s "$ac_outfile"; then
15039     # The compiler can only warn and ignore the option if not recognized
15040     # So say no if there are warnings
15041     if test ! -s conftest.err; then
15042       lt_cv_prog_compiler_rtti_exceptions=yes
15043     fi
15044   fi
15045   $rm conftest*
15046
15047fi
15048echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15049echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15050
15051if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15052    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15053else
15054    :
15055fi
15056
15057fi
15058
15059lt_prog_compiler_wl_GCJ=
15060lt_prog_compiler_pic_GCJ=
15061lt_prog_compiler_static_GCJ=
15062
15063echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15064echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15065
15066  if test "$GCC" = yes; then
15067    lt_prog_compiler_wl_GCJ='-Wl,'
15068    lt_prog_compiler_static_GCJ='-static'
15069
15070    case $host_os in
15071      aix*)
15072      # All AIX code is PIC.
15073      if test "$host_cpu" = ia64; then
15074	# AIX 5 now supports IA64 processor
15075	lt_prog_compiler_static_GCJ='-Bstatic'
15076      fi
15077      ;;
15078
15079    amigaos*)
15080      # FIXME: we need at least 68020 code to build shared libraries, but
15081      # adding the `-m68020' flag to GCC prevents building anything better,
15082      # like `-m68040'.
15083      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15084      ;;
15085
15086    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15087      # PIC is the default for these OSes.
15088      ;;
15089
15090    mingw* | pw32* | os2*)
15091      # This hack is so that the source file can tell whether it is being
15092      # built for inclusion in a dll (and should export symbols for example).
15093      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15094      ;;
15095
15096    darwin* | rhapsody*)
15097      # PIC is the default on this platform
15098      # Common symbols not allowed in MH_DYLIB files
15099      lt_prog_compiler_pic_GCJ='-fno-common'
15100      ;;
15101
15102    msdosdjgpp*)
15103      # Just because we use GCC doesn't mean we suddenly get shared libraries
15104      # on systems that don't support them.
15105      lt_prog_compiler_can_build_shared_GCJ=no
15106      enable_shared=no
15107      ;;
15108
15109    sysv4*MP*)
15110      if test -d /usr/nec; then
15111	lt_prog_compiler_pic_GCJ=-Kconform_pic
15112      fi
15113      ;;
15114
15115    hpux*)
15116      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15117      # not for PA HP-UX.
15118      case "$host_cpu" in
15119      hppa*64*|ia64*)
15120	# +Z the default
15121	;;
15122      *)
15123	lt_prog_compiler_pic_GCJ='-fPIC'
15124	;;
15125      esac
15126      ;;
15127
15128    *)
15129      lt_prog_compiler_pic_GCJ='-fPIC'
15130      ;;
15131    esac
15132  else
15133    # PORTME Check for flag to pass linker flags through the system compiler.
15134    case $host_os in
15135    aix*)
15136      lt_prog_compiler_wl_GCJ='-Wl,'
15137      if test "$host_cpu" = ia64; then
15138	# AIX 5 now supports IA64 processor
15139	lt_prog_compiler_static_GCJ='-Bstatic'
15140      else
15141	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15142      fi
15143      ;;
15144
15145    mingw* | pw32* | os2*)
15146      # This hack is so that the source file can tell whether it is being
15147      # built for inclusion in a dll (and should export symbols for example).
15148      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15149      ;;
15150
15151    hpux9* | hpux10* | hpux11*)
15152      lt_prog_compiler_wl_GCJ='-Wl,'
15153      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15154      # not for PA HP-UX.
15155      case "$host_cpu" in
15156      hppa*64*|ia64*)
15157	# +Z the default
15158	;;
15159      *)
15160	lt_prog_compiler_pic_GCJ='+Z'
15161	;;
15162      esac
15163      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15164      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15165      ;;
15166
15167    irix5* | irix6* | nonstopux*)
15168      lt_prog_compiler_wl_GCJ='-Wl,'
15169      # PIC (with -KPIC) is the default.
15170      lt_prog_compiler_static_GCJ='-non_shared'
15171      ;;
15172
15173    newsos6)
15174      lt_prog_compiler_pic_GCJ='-KPIC'
15175      lt_prog_compiler_static_GCJ='-Bstatic'
15176      ;;
15177
15178    linux*)
15179      case $CC in
15180      icc|ecc)
15181	lt_prog_compiler_wl_GCJ='-Wl,'
15182	lt_prog_compiler_pic_GCJ='-KPIC'
15183	lt_prog_compiler_static_GCJ='-static'
15184        ;;
15185      ccc)
15186        lt_prog_compiler_wl_GCJ='-Wl,'
15187        # All Alpha code is PIC.
15188        lt_prog_compiler_static_GCJ='-non_shared'
15189        ;;
15190      esac
15191      ;;
15192
15193    osf3* | osf4* | osf5*)
15194      lt_prog_compiler_wl_GCJ='-Wl,'
15195      # All OSF/1 code is PIC.
15196      lt_prog_compiler_static_GCJ='-non_shared'
15197      ;;
15198
15199    sco3.2v5*)
15200      lt_prog_compiler_pic_GCJ='-Kpic'
15201      lt_prog_compiler_static_GCJ='-dn'
15202      ;;
15203
15204    solaris*)
15205      lt_prog_compiler_wl_GCJ='-Wl,'
15206      lt_prog_compiler_pic_GCJ='-KPIC'
15207      lt_prog_compiler_static_GCJ='-Bstatic'
15208      ;;
15209
15210    sunos4*)
15211      lt_prog_compiler_wl_GCJ='-Qoption ld '
15212      lt_prog_compiler_pic_GCJ='-PIC'
15213      lt_prog_compiler_static_GCJ='-Bstatic'
15214      ;;
15215
15216    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15217      lt_prog_compiler_wl_GCJ='-Wl,'
15218      lt_prog_compiler_pic_GCJ='-KPIC'
15219      lt_prog_compiler_static_GCJ='-Bstatic'
15220      ;;
15221
15222    sysv4*MP*)
15223      if test -d /usr/nec ;then
15224	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15225	lt_prog_compiler_static_GCJ='-Bstatic'
15226      fi
15227      ;;
15228
15229    uts4*)
15230      lt_prog_compiler_pic_GCJ='-pic'
15231      lt_prog_compiler_static_GCJ='-Bstatic'
15232      ;;
15233
15234    *)
15235      lt_prog_compiler_can_build_shared_GCJ=no
15236      ;;
15237    esac
15238  fi
15239
15240echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15241echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15242
15243#
15244# Check to make sure the PIC flag actually works.
15245#
15246if test -n "$lt_prog_compiler_pic_GCJ"; then
15247  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15248echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15249if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15250  echo $ECHO_N "(cached) $ECHO_C" >&6
15251else
15252  lt_prog_compiler_pic_works_GCJ=no
15253  ac_outfile=conftest.$ac_objext
15254   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15255   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15256   # Insert the option either (1) after the last *FLAGS variable, or
15257   # (2) before a word containing "conftest.", or (3) at the end.
15258   # Note that $ac_compile itself does not contain backslashes and begins
15259   # with a dollar sign (not a hyphen), so the echo should work correctly.
15260   # The option is referenced via a variable to avoid confusing sed.
15261   lt_compile=`echo "$ac_compile" | $SED \
15262   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15263   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15264   -e 's:$: $lt_compiler_flag:'`
15265   (eval echo "\"\$as_me:15265: $lt_compile\"" >&5)
15266   (eval "$lt_compile" 2>conftest.err)
15267   ac_status=$?
15268   cat conftest.err >&5
15269   echo "$as_me:15269: \$? = $ac_status" >&5
15270   if (exit $ac_status) && test -s "$ac_outfile"; then
15271     # The compiler can only warn and ignore the option if not recognized
15272     # So say no if there are warnings
15273     if test ! -s conftest.err; then
15274       lt_prog_compiler_pic_works_GCJ=yes
15275     fi
15276   fi
15277   $rm conftest*
15278
15279fi
15280echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15281echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15282
15283if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15284    case $lt_prog_compiler_pic_GCJ in
15285     "" | " "*) ;;
15286     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15287     esac
15288else
15289    lt_prog_compiler_pic_GCJ=
15290     lt_prog_compiler_can_build_shared_GCJ=no
15291fi
15292
15293fi
15294case "$host_os" in
15295  # For platforms which do not support PIC, -DPIC is meaningless:
15296  *djgpp*)
15297    lt_prog_compiler_pic_GCJ=
15298    ;;
15299  *)
15300    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15301    ;;
15302esac
15303
15304echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15305echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15306if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15307  echo $ECHO_N "(cached) $ECHO_C" >&6
15308else
15309  lt_cv_prog_compiler_c_o_GCJ=no
15310   $rm -r conftest 2>/dev/null
15311   mkdir conftest
15312   cd conftest
15313   mkdir out
15314   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15315
15316   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15317   # that will create temporary files in the current directory regardless of
15318   # the output directory.  Thus, making CWD read-only will cause this test
15319   # to fail, enabling locking or at least warning the user not to do parallel
15320   # builds.
15321   chmod -w .
15322
15323   lt_compiler_flag="-o out/conftest2.$ac_objext"
15324   # Insert the option either (1) after the last *FLAGS variable, or
15325   # (2) before a word containing "conftest.", or (3) at the end.
15326   # Note that $ac_compile itself does not contain backslashes and begins
15327   # with a dollar sign (not a hyphen), so the echo should work correctly.
15328   lt_compile=`echo "$ac_compile" | $SED \
15329   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15330   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15331   -e 's:$: $lt_compiler_flag:'`
15332   (eval echo "\"\$as_me:15332: $lt_compile\"" >&5)
15333   (eval "$lt_compile" 2>out/conftest.err)
15334   ac_status=$?
15335   cat out/conftest.err >&5
15336   echo "$as_me:15336: \$? = $ac_status" >&5
15337   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15338   then
15339     # The compiler can only warn and ignore the option if not recognized
15340     # So say no if there are warnings
15341     if test ! -s out/conftest.err; then
15342       lt_cv_prog_compiler_c_o_GCJ=yes
15343     fi
15344   fi
15345   chmod u+w .
15346   $rm conftest* out/*
15347   rmdir out
15348   cd ..
15349   rmdir conftest
15350   $rm conftest*
15351
15352fi
15353echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15354echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15355
15356
15357hard_links="nottested"
15358if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15359  # do not overwrite the value of need_locks provided by the user
15360  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15361echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15362  hard_links=yes
15363  $rm conftest*
15364  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15365  touch conftest.a
15366  ln conftest.a conftest.b 2>&5 || hard_links=no
15367  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15368  echo "$as_me:$LINENO: result: $hard_links" >&5
15369echo "${ECHO_T}$hard_links" >&6
15370  if test "$hard_links" = no; then
15371    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15372echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15373    need_locks=warn
15374  fi
15375else
15376  need_locks=no
15377fi
15378
15379echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15380echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15381
15382  runpath_var=
15383  allow_undefined_flag_GCJ=
15384  enable_shared_with_static_runtimes_GCJ=no
15385  archive_cmds_GCJ=
15386  archive_expsym_cmds_GCJ=
15387  old_archive_From_new_cmds_GCJ=
15388  old_archive_from_expsyms_cmds_GCJ=
15389  export_dynamic_flag_spec_GCJ=
15390  whole_archive_flag_spec_GCJ=
15391  thread_safe_flag_spec_GCJ=
15392  hardcode_libdir_flag_spec_GCJ=
15393  hardcode_libdir_flag_spec_ld_GCJ=
15394  hardcode_libdir_separator_GCJ=
15395  hardcode_direct_GCJ=no
15396  hardcode_minus_L_GCJ=no
15397  hardcode_shlibpath_var_GCJ=unsupported
15398  link_all_deplibs_GCJ=unknown
15399  hardcode_automatic_GCJ=no
15400  module_cmds_GCJ=
15401  module_expsym_cmds_GCJ=
15402  always_export_symbols_GCJ=no
15403  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15404  # include_expsyms should be a list of space-separated symbols to be *always*
15405  # included in the symbol list
15406  include_expsyms_GCJ=
15407  # exclude_expsyms can be an extended regexp of symbols to exclude
15408  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15409  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15410  # as well as any symbol that contains `d'.
15411  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15412  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15413  # platforms (ab)use it in PIC code, but their linkers get confused if
15414  # the symbol is explicitly referenced.  Since portable code cannot
15415  # rely on this symbol name, it's probably fine to never include it in
15416  # preloaded symbol tables.
15417  extract_expsyms_cmds=
15418
15419  case $host_os in
15420  cygwin* | mingw* | pw32*)
15421    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15422    # When not using gcc, we currently assume that we are using
15423    # Microsoft Visual C++.
15424    if test "$GCC" != yes; then
15425      with_gnu_ld=no
15426    fi
15427    ;;
15428  openbsd*)
15429    with_gnu_ld=no
15430    ;;
15431  esac
15432
15433  ld_shlibs_GCJ=yes
15434  if test "$with_gnu_ld" = yes; then
15435    # If archive_cmds runs LD, not CC, wlarc should be empty
15436    wlarc='${wl}'
15437
15438    # See if GNU ld supports shared libraries.
15439    case $host_os in
15440    aix3* | aix4* | aix5*)
15441      # On AIX/PPC, the GNU linker is very broken
15442      if test "$host_cpu" != ia64; then
15443	ld_shlibs_GCJ=no
15444	cat <<EOF 1>&2
15445
15446*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15447*** to be unable to reliably create shared libraries on AIX.
15448*** Therefore, libtool is disabling shared libraries support.  If you
15449*** really care for shared libraries, you may want to modify your PATH
15450*** so that a non-GNU linker is found, and then restart.
15451
15452EOF
15453      fi
15454      ;;
15455
15456    amigaos*)
15457      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)'
15458      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15459      hardcode_minus_L_GCJ=yes
15460
15461      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15462      # that the semantics of dynamic libraries on AmigaOS, at least up
15463      # to version 4, is to share data among multiple programs linked
15464      # with the same dynamic library.  Since this doesn't match the
15465      # behavior of shared libraries on other platforms, we can't use
15466      # them.
15467      ld_shlibs_GCJ=no
15468      ;;
15469
15470    beos*)
15471      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15472	allow_undefined_flag_GCJ=unsupported
15473	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15474	# support --undefined.  This deserves some investigation.  FIXME
15475	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15476      else
15477	ld_shlibs_GCJ=no
15478      fi
15479      ;;
15480
15481    cygwin* | mingw* | pw32*)
15482      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15483      # as there is no search path for DLLs.
15484      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15485      allow_undefined_flag_GCJ=unsupported
15486      always_export_symbols_GCJ=no
15487      enable_shared_with_static_runtimes_GCJ=yes
15488      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15489
15490      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15491        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15492	# If the export-symbols file already is a .def file (1st line
15493	# is EXPORTS), use it as is; otherwise, prepend...
15494	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15495	  cp $export_symbols $output_objdir/$soname.def;
15496	else
15497	  echo EXPORTS > $output_objdir/$soname.def;
15498	  cat $export_symbols >> $output_objdir/$soname.def;
15499	fi~
15500	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15501      else
15502	ld_shlibs=no
15503      fi
15504      ;;
15505
15506    netbsd*)
15507      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15508	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15509	wlarc=
15510      else
15511	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15512	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15513      fi
15514      ;;
15515
15516    solaris* | sysv5*)
15517      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15518	ld_shlibs_GCJ=no
15519	cat <<EOF 1>&2
15520
15521*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15522*** create shared libraries on Solaris systems.  Therefore, libtool
15523*** is disabling shared libraries support.  We urge you to upgrade GNU
15524*** binutils to release 2.9.1 or newer.  Another option is to modify
15525*** your PATH or compiler configuration so that the native linker is
15526*** used, and then restart.
15527
15528EOF
15529      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15530	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15531	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15532      else
15533	ld_shlibs_GCJ=no
15534      fi
15535      ;;
15536
15537    sunos4*)
15538      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15539      wlarc=
15540      hardcode_direct_GCJ=yes
15541      hardcode_shlibpath_var_GCJ=no
15542      ;;
15543
15544    *)
15545      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15546	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15547	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15548      else
15549	ld_shlibs_GCJ=no
15550      fi
15551      ;;
15552    esac
15553
15554    if test "$ld_shlibs_GCJ" = yes; then
15555      runpath_var=LD_RUN_PATH
15556      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15557      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15558      # ancient GNU ld didn't support --whole-archive et. al.
15559      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15560 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15561      else
15562  	whole_archive_flag_spec_GCJ=
15563      fi
15564    fi
15565  else
15566    # PORTME fill in a description of your system's linker (not GNU ld)
15567    case $host_os in
15568    aix3*)
15569      allow_undefined_flag_GCJ=unsupported
15570      always_export_symbols_GCJ=yes
15571      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'
15572      # Note: this linker hardcodes the directories in LIBPATH if there
15573      # are no directories specified by -L.
15574      hardcode_minus_L_GCJ=yes
15575      if test "$GCC" = yes && test -z "$link_static_flag"; then
15576	# Neither direct hardcoding nor static linking is supported with a
15577	# broken collect2.
15578	hardcode_direct_GCJ=unsupported
15579      fi
15580      ;;
15581
15582    aix4* | aix5*)
15583      if test "$host_cpu" = ia64; then
15584	# On IA64, the linker does run time linking by default, so we don't
15585	# have to do anything special.
15586	aix_use_runtimelinking=no
15587	exp_sym_flag='-Bexport'
15588	no_entry_flag=""
15589      else
15590	# If we're using GNU nm, then we don't want the "-C" option.
15591	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15592	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15593	  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'
15594	else
15595	  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'
15596	fi
15597	aix_use_runtimelinking=no
15598
15599	# Test if we are trying to use run time linking or normal
15600	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15601	# need to do runtime linking.
15602	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15603	  for ld_flag in $LDFLAGS; do
15604  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15605  	    aix_use_runtimelinking=yes
15606  	    break
15607  	  fi
15608	  done
15609	esac
15610
15611	exp_sym_flag='-bexport'
15612	no_entry_flag='-bnoentry'
15613      fi
15614
15615      # When large executables or shared objects are built, AIX ld can
15616      # have problems creating the table of contents.  If linking a library
15617      # or program results in "error TOC overflow" add -mminimal-toc to
15618      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15619      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15620
15621      archive_cmds_GCJ=''
15622      hardcode_direct_GCJ=yes
15623      hardcode_libdir_separator_GCJ=':'
15624      link_all_deplibs_GCJ=yes
15625
15626      if test "$GCC" = yes; then
15627	case $host_os in aix4.012|aix4.012.*)
15628	# We only want to do this on AIX 4.2 and lower, the check
15629	# below for broken collect2 doesn't work under 4.3+
15630	  collect2name=`${CC} -print-prog-name=collect2`
15631	  if test -f "$collect2name" && \
15632  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15633	  then
15634  	  # We have reworked collect2
15635  	  hardcode_direct_GCJ=yes
15636	  else
15637  	  # We have old collect2
15638  	  hardcode_direct_GCJ=unsupported
15639  	  # It fails to find uninstalled libraries when the uninstalled
15640  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15641  	  # to unsupported forces relinking
15642  	  hardcode_minus_L_GCJ=yes
15643  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
15644  	  hardcode_libdir_separator_GCJ=
15645	  fi
15646	esac
15647	shared_flag='-shared'
15648      else
15649	# not using gcc
15650	if test "$host_cpu" = ia64; then
15651  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15652  	# chokes on -Wl,-G. The following line is correct:
15653	  shared_flag='-G'
15654	else
15655  	if test "$aix_use_runtimelinking" = yes; then
15656	    shared_flag='${wl}-G'
15657	  else
15658	    shared_flag='${wl}-bM:SRE'
15659  	fi
15660	fi
15661      fi
15662
15663      # It seems that -bexpall does not export symbols beginning with
15664      # underscore (_), so it is better to generate a list of symbols to export.
15665      always_export_symbols_GCJ=yes
15666      if test "$aix_use_runtimelinking" = yes; then
15667	# Warning - without using the other runtime loading flags (-brtl),
15668	# -berok will link without error, but may produce a broken library.
15669	allow_undefined_flag_GCJ='-berok'
15670       # Determine the default libpath from the value encoded in an empty executable.
15671       cat >conftest.$ac_ext <<_ACEOF
15672#line $LINENO "configure"
15673/* confdefs.h.  */
15674_ACEOF
15675cat confdefs.h >>conftest.$ac_ext
15676cat >>conftest.$ac_ext <<_ACEOF
15677/* end confdefs.h.  */
15678
15679int
15680main ()
15681{
15682
15683  ;
15684  return 0;
15685}
15686_ACEOF
15687rm -f conftest.$ac_objext conftest$ac_exeext
15688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15689  (eval $ac_link) 2>&5
15690  ac_status=$?
15691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692  (exit $ac_status); } &&
15693         { ac_try='test -s conftest$ac_exeext'
15694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15695  (eval $ac_try) 2>&5
15696  ac_status=$?
15697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698  (exit $ac_status); }; }; then
15699
15700aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15701}'`
15702# Check for a 64-bit object if we didn't find anything.
15703if 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; }
15704}'`; fi
15705else
15706  echo "$as_me: failed program was:" >&5
15707sed 's/^/| /' conftest.$ac_ext >&5
15708
15709fi
15710rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15711if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15712
15713       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15714	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"
15715       else
15716	if test "$host_cpu" = ia64; then
15717	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15718	  allow_undefined_flag_GCJ="-z nodefs"
15719	  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"
15720	else
15721	 # Determine the default libpath from the value encoded in an empty executable.
15722	 cat >conftest.$ac_ext <<_ACEOF
15723#line $LINENO "configure"
15724/* confdefs.h.  */
15725_ACEOF
15726cat confdefs.h >>conftest.$ac_ext
15727cat >>conftest.$ac_ext <<_ACEOF
15728/* end confdefs.h.  */
15729
15730int
15731main ()
15732{
15733
15734  ;
15735  return 0;
15736}
15737_ACEOF
15738rm -f conftest.$ac_objext conftest$ac_exeext
15739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15740  (eval $ac_link) 2>&5
15741  ac_status=$?
15742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743  (exit $ac_status); } &&
15744         { ac_try='test -s conftest$ac_exeext'
15745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15746  (eval $ac_try) 2>&5
15747  ac_status=$?
15748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749  (exit $ac_status); }; }; then
15750
15751aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15752}'`
15753# Check for a 64-bit object if we didn't find anything.
15754if 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; }
15755}'`; fi
15756else
15757  echo "$as_me: failed program was:" >&5
15758sed 's/^/| /' conftest.$ac_ext >&5
15759
15760fi
15761rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15762if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15763
15764	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15765	  # Warning - without using the other run time loading flags,
15766	  # -berok will link without error, but may produce a broken library.
15767	  no_undefined_flag_GCJ=' ${wl}-bernotok'
15768	  allow_undefined_flag_GCJ=' ${wl}-berok'
15769	  # -bexpall does not export symbols beginning with underscore (_)
15770	  always_export_symbols_GCJ=yes
15771	  # Exported symbols can be pulled into shared objects from archives
15772	  whole_archive_flag_spec_GCJ=' '
15773	  archive_cmds_need_lc_GCJ=yes
15774	  # This is similar to how AIX traditionally builds it's shared libraries.
15775	  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'
15776	fi
15777      fi
15778      ;;
15779
15780    amigaos*)
15781      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)'
15782      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15783      hardcode_minus_L_GCJ=yes
15784      # see comment about different semantics on the GNU ld section
15785      ld_shlibs_GCJ=no
15786      ;;
15787
15788    bsdi4*)
15789      export_dynamic_flag_spec_GCJ=-rdynamic
15790      ;;
15791
15792    cygwin* | mingw* | pw32*)
15793      # When not using gcc, we currently assume that we are using
15794      # Microsoft Visual C++.
15795      # hardcode_libdir_flag_spec is actually meaningless, as there is
15796      # no search path for DLLs.
15797      hardcode_libdir_flag_spec_GCJ=' '
15798      allow_undefined_flag_GCJ=unsupported
15799      # Tell ltmain to make .lib files, not .a files.
15800      libext=lib
15801      # Tell ltmain to make .dll files, not .so files.
15802      shrext=".dll"
15803      # FIXME: Setting linknames here is a bad hack.
15804      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15805      # The linker will automatically build a .lib file if we build a DLL.
15806      old_archive_From_new_cmds_GCJ='true'
15807      # FIXME: Should let the user specify the lib program.
15808      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15809      fix_srcfile_path='`cygpath -w "$srcfile"`'
15810      enable_shared_with_static_runtimes_GCJ=yes
15811      ;;
15812
15813    darwin* | rhapsody*)
15814    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15815      archive_cmds_need_lc_GCJ=no
15816      case "$host_os" in
15817      rhapsody* | darwin1.[012])
15818	allow_undefined_flag_GCJ='-undefined suppress'
15819	;;
15820      *) # Darwin 1.3 on
15821	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15822	;;
15823      esac
15824      # FIXME: Relying on posixy $() will cause problems for
15825      #        cross-compilation, but unfortunately the echo tests do not
15826      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15827      #	       `"' quotes if we put them in here... so don't!
15828    	lt_int_apple_cc_single_mod=no
15829    	output_verbose_link_cmd='echo'
15830    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15831    	  lt_int_apple_cc_single_mod=yes
15832    	fi
15833    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15834    	  archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15835    	else
15836        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
15837      fi
15838      module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15839      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15840        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15841          archive_expsym_cmds_GCJ='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}'
15842        else
15843          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
15844        fi
15845          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15846      hardcode_direct_GCJ=no
15847      hardcode_automatic_GCJ=yes
15848      hardcode_shlibpath_var_GCJ=unsupported
15849      whole_archive_flag_spec_GCJ='-all_load $convenience'
15850      link_all_deplibs_GCJ=yes
15851    fi
15852      ;;
15853
15854    dgux*)
15855      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15856      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15857      hardcode_shlibpath_var_GCJ=no
15858      ;;
15859
15860    freebsd1*)
15861      ld_shlibs_GCJ=no
15862      ;;
15863
15864    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15865    # support.  Future versions do this automatically, but an explicit c++rt0.o
15866    # does not break anything, and helps significantly (at the cost of a little
15867    # extra space).
15868    freebsd2.2*)
15869      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15870      hardcode_libdir_flag_spec_GCJ='-R$libdir'
15871      hardcode_direct_GCJ=yes
15872      hardcode_shlibpath_var_GCJ=no
15873      ;;
15874
15875    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15876    freebsd2*)
15877      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15878      hardcode_direct_GCJ=yes
15879      hardcode_minus_L_GCJ=yes
15880      hardcode_shlibpath_var_GCJ=no
15881      ;;
15882
15883    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15884    freebsd*)
15885      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15886      hardcode_libdir_flag_spec_GCJ='-R$libdir'
15887      hardcode_direct_GCJ=yes
15888      hardcode_shlibpath_var_GCJ=no
15889      ;;
15890
15891    hpux9*)
15892      if test "$GCC" = yes; then
15893	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'
15894      else
15895	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'
15896      fi
15897      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15898      hardcode_libdir_separator_GCJ=:
15899      hardcode_direct_GCJ=yes
15900
15901      # hardcode_minus_L: Not really in the search PATH,
15902      # but as the default location of the library.
15903      hardcode_minus_L_GCJ=yes
15904      export_dynamic_flag_spec_GCJ='${wl}-E'
15905      ;;
15906
15907    hpux10* | hpux11*)
15908      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15909	case "$host_cpu" in
15910	hppa*64*|ia64*)
15911	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15912	  ;;
15913	*)
15914	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15915	  ;;
15916	esac
15917      else
15918	case "$host_cpu" in
15919	hppa*64*|ia64*)
15920	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15921	  ;;
15922	*)
15923	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15924	  ;;
15925	esac
15926      fi
15927      if test "$with_gnu_ld" = no; then
15928	case "$host_cpu" in
15929	hppa*64*)
15930	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15931	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15932	  hardcode_libdir_separator_GCJ=:
15933	  hardcode_direct_GCJ=no
15934	  hardcode_shlibpath_var_GCJ=no
15935	  ;;
15936	ia64*)
15937	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
15938	  hardcode_direct_GCJ=no
15939	  hardcode_shlibpath_var_GCJ=no
15940
15941	  # hardcode_minus_L: Not really in the search PATH,
15942	  # but as the default location of the library.
15943	  hardcode_minus_L_GCJ=yes
15944	  ;;
15945	*)
15946	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15947	  hardcode_libdir_separator_GCJ=:
15948	  hardcode_direct_GCJ=yes
15949	  export_dynamic_flag_spec_GCJ='${wl}-E'
15950
15951	  # hardcode_minus_L: Not really in the search PATH,
15952	  # but as the default location of the library.
15953	  hardcode_minus_L_GCJ=yes
15954	  ;;
15955	esac
15956      fi
15957      ;;
15958
15959    irix5* | irix6* | nonstopux*)
15960      if test "$GCC" = yes; then
15961	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'
15962      else
15963	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'
15964	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15965      fi
15966      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15967      hardcode_libdir_separator_GCJ=:
15968      link_all_deplibs_GCJ=yes
15969      ;;
15970
15971    netbsd*)
15972      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15973	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15974      else
15975	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15976      fi
15977      hardcode_libdir_flag_spec_GCJ='-R$libdir'
15978      hardcode_direct_GCJ=yes
15979      hardcode_shlibpath_var_GCJ=no
15980      ;;
15981
15982    newsos6)
15983      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15984      hardcode_direct_GCJ=yes
15985      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15986      hardcode_libdir_separator_GCJ=:
15987      hardcode_shlibpath_var_GCJ=no
15988      ;;
15989
15990    openbsd*)
15991      hardcode_direct_GCJ=yes
15992      hardcode_shlibpath_var_GCJ=no
15993      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15994	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15995	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15996	export_dynamic_flag_spec_GCJ='${wl}-E'
15997      else
15998       case $host_os in
15999	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16000	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16001	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16002	   ;;
16003	 *)
16004	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16005	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16006	   ;;
16007       esac
16008      fi
16009      ;;
16010
16011    os2*)
16012      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16013      hardcode_minus_L_GCJ=yes
16014      allow_undefined_flag_GCJ=unsupported
16015      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'
16016      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16017      ;;
16018
16019    osf3*)
16020      if test "$GCC" = yes; then
16021	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16022	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'
16023      else
16024	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16025	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'
16026      fi
16027      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16028      hardcode_libdir_separator_GCJ=:
16029      ;;
16030
16031    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16032      if test "$GCC" = yes; then
16033	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16034	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'
16035	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16036      else
16037	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16038	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'
16039	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~
16040	$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'
16041
16042	# Both c and cxx compiler support -rpath directly
16043	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16044      fi
16045      hardcode_libdir_separator_GCJ=:
16046      ;;
16047
16048    sco3.2v5*)
16049      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16050      hardcode_shlibpath_var_GCJ=no
16051      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16052      runpath_var=LD_RUN_PATH
16053      hardcode_runpath_var=yes
16054      ;;
16055
16056    solaris*)
16057      no_undefined_flag_GCJ=' -z text'
16058      if test "$GCC" = yes; then
16059	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16060	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16061	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16062      else
16063	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16064	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16065  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16066      fi
16067      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16068      hardcode_shlibpath_var_GCJ=no
16069      case $host_os in
16070      solaris2.[0-5] | solaris2.[0-5].*) ;;
16071      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16072	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16073      esac
16074      link_all_deplibs_GCJ=yes
16075      ;;
16076
16077    sunos4*)
16078      if test "x$host_vendor" = xsequent; then
16079	# Use $CC to link under sequent, because it throws in some extra .o
16080	# files that make .init and .fini sections work.
16081	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16082      else
16083	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16084      fi
16085      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16086      hardcode_direct_GCJ=yes
16087      hardcode_minus_L_GCJ=yes
16088      hardcode_shlibpath_var_GCJ=no
16089      ;;
16090
16091    sysv4)
16092      case $host_vendor in
16093	sni)
16094	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16095	  hardcode_direct_GCJ=yes # is this really true???
16096	;;
16097	siemens)
16098	  ## LD is ld it makes a PLAMLIB
16099	  ## CC just makes a GrossModule.
16100	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16101	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16102	  hardcode_direct_GCJ=no
16103        ;;
16104	motorola)
16105	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16106	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16107	;;
16108      esac
16109      runpath_var='LD_RUN_PATH'
16110      hardcode_shlibpath_var_GCJ=no
16111      ;;
16112
16113    sysv4.3*)
16114      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16115      hardcode_shlibpath_var_GCJ=no
16116      export_dynamic_flag_spec_GCJ='-Bexport'
16117      ;;
16118
16119    sysv4*MP*)
16120      if test -d /usr/nec; then
16121	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16122	hardcode_shlibpath_var_GCJ=no
16123	runpath_var=LD_RUN_PATH
16124	hardcode_runpath_var=yes
16125	ld_shlibs_GCJ=yes
16126      fi
16127      ;;
16128
16129    sysv4.2uw2*)
16130      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16131      hardcode_direct_GCJ=yes
16132      hardcode_minus_L_GCJ=no
16133      hardcode_shlibpath_var_GCJ=no
16134      hardcode_runpath_var=yes
16135      runpath_var=LD_RUN_PATH
16136      ;;
16137
16138   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16139      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16140      if test "$GCC" = yes; then
16141	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16142      else
16143	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16144      fi
16145      runpath_var='LD_RUN_PATH'
16146      hardcode_shlibpath_var_GCJ=no
16147      ;;
16148
16149    sysv5*)
16150      no_undefined_flag_GCJ=' -z text'
16151      # $CC -shared without GNU ld will not create a library from C++
16152      # object files and a static libstdc++, better avoid it by now
16153      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16154      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16155  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16156      hardcode_libdir_flag_spec_GCJ=
16157      hardcode_shlibpath_var_GCJ=no
16158      runpath_var='LD_RUN_PATH'
16159      ;;
16160
16161    uts4*)
16162      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16163      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16164      hardcode_shlibpath_var_GCJ=no
16165      ;;
16166
16167    *)
16168      ld_shlibs_GCJ=no
16169      ;;
16170    esac
16171  fi
16172
16173echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16174echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16175test "$ld_shlibs_GCJ" = no && can_build_shared=no
16176
16177variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16178if test "$GCC" = yes; then
16179  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16180fi
16181
16182#
16183# Do we need to explicitly link libc?
16184#
16185case "x$archive_cmds_need_lc_GCJ" in
16186x|xyes)
16187  # Assume -lc should be added
16188  archive_cmds_need_lc_GCJ=yes
16189
16190  if test "$enable_shared" = yes && test "$GCC" = yes; then
16191    case $archive_cmds_GCJ in
16192    *'~'*)
16193      # FIXME: we may have to deal with multi-command sequences.
16194      ;;
16195    '$CC '*)
16196      # Test whether the compiler implicitly links with -lc since on some
16197      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16198      # to ld, don't add -lc before -lgcc.
16199      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16200echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16201      $rm conftest*
16202      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16203
16204      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16205  (eval $ac_compile) 2>&5
16206  ac_status=$?
16207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208  (exit $ac_status); } 2>conftest.err; then
16209        soname=conftest
16210        lib=conftest
16211        libobjs=conftest.$ac_objext
16212        deplibs=
16213        wl=$lt_prog_compiler_wl_GCJ
16214        compiler_flags=-v
16215        linker_flags=-v
16216        verstring=
16217        output_objdir=.
16218        libname=conftest
16219        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16220        allow_undefined_flag_GCJ=
16221        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16222  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16223  ac_status=$?
16224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225  (exit $ac_status); }
16226        then
16227	  archive_cmds_need_lc_GCJ=no
16228        else
16229	  archive_cmds_need_lc_GCJ=yes
16230        fi
16231        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16232      else
16233        cat conftest.err 1>&5
16234      fi
16235      $rm conftest*
16236      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16237echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16238      ;;
16239    esac
16240  fi
16241  ;;
16242esac
16243
16244echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16245echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16246hardcode_action_GCJ=
16247if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16248   test -n "$runpath_var GCJ" || \
16249   test "X$hardcode_automatic_GCJ"="Xyes" ; then
16250
16251  # We can hardcode non-existant directories.
16252  if test "$hardcode_direct_GCJ" != no &&
16253     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16254     # have to relink, otherwise we might link with an installed library
16255     # when we should be linking with a yet-to-be-installed one
16256     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16257     test "$hardcode_minus_L_GCJ" != no; then
16258    # Linking always hardcodes the temporary library directory.
16259    hardcode_action_GCJ=relink
16260  else
16261    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16262    hardcode_action_GCJ=immediate
16263  fi
16264else
16265  # We cannot hardcode anything, or else we can only hardcode existing
16266  # directories.
16267  hardcode_action_GCJ=unsupported
16268fi
16269echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16270echo "${ECHO_T}$hardcode_action_GCJ" >&6
16271
16272if test "$hardcode_action_GCJ" = relink; then
16273  # Fast installation is not supported
16274  enable_fast_install=no
16275elif test "$shlibpath_overrides_runpath" = yes ||
16276     test "$enable_shared" = no; then
16277  # Fast installation is not necessary
16278  enable_fast_install=needless
16279fi
16280
16281striplib=
16282old_striplib=
16283echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16284echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16285if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16286  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16287  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16288  echo "$as_me:$LINENO: result: yes" >&5
16289echo "${ECHO_T}yes" >&6
16290else
16291# FIXME - insert some real tests, host_os isn't really good enough
16292  case $host_os in
16293   darwin*)
16294       if test -n "$STRIP" ; then
16295         striplib="$STRIP -x"
16296         echo "$as_me:$LINENO: result: yes" >&5
16297echo "${ECHO_T}yes" >&6
16298       else
16299  echo "$as_me:$LINENO: result: no" >&5
16300echo "${ECHO_T}no" >&6
16301fi
16302       ;;
16303   *)
16304  echo "$as_me:$LINENO: result: no" >&5
16305echo "${ECHO_T}no" >&6
16306    ;;
16307  esac
16308fi
16309
16310echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16311echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16312library_names_spec=
16313libname_spec='lib$name'
16314soname_spec=
16315shrext=".so"
16316postinstall_cmds=
16317postuninstall_cmds=
16318finish_cmds=
16319finish_eval=
16320shlibpath_var=
16321shlibpath_overrides_runpath=unknown
16322version_type=none
16323dynamic_linker="$host_os ld.so"
16324sys_lib_dlsearch_path_spec="/lib /usr/lib"
16325if test "$GCC" = yes; then
16326  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16327  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16328    # if the path contains ";" then we assume it to be the separator
16329    # otherwise default to the standard path separator (i.e. ":") - it is
16330    # assumed that no part of a normal pathname contains ";" but that should
16331    # okay in the real world where ";" in dirpaths is itself problematic.
16332    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16333  else
16334    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16335  fi
16336else
16337  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16338fi
16339need_lib_prefix=unknown
16340hardcode_into_libs=no
16341
16342# when you set need_version to no, make sure it does not cause -set_version
16343# flags to be left without arguments
16344need_version=unknown
16345
16346case $host_os in
16347aix3*)
16348  version_type=linux
16349  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16350  shlibpath_var=LIBPATH
16351
16352  # AIX 3 has no versioning support, so we append a major version to the name.
16353  soname_spec='${libname}${release}${shared_ext}$major'
16354  ;;
16355
16356aix4* | aix5*)
16357  version_type=linux
16358  need_lib_prefix=no
16359  need_version=no
16360  hardcode_into_libs=yes
16361  if test "$host_cpu" = ia64; then
16362    # AIX 5 supports IA64
16363    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16364    shlibpath_var=LD_LIBRARY_PATH
16365  else
16366    # With GCC up to 2.95.x, collect2 would create an import file
16367    # for dependence libraries.  The import file would start with
16368    # the line `#! .'.  This would cause the generated library to
16369    # depend on `.', always an invalid library.  This was fixed in
16370    # development snapshots of GCC prior to 3.0.
16371    case $host_os in
16372      aix4 | aix4.[01] | aix4.[01].*)
16373      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16374	   echo ' yes '
16375	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16376	:
16377      else
16378	can_build_shared=no
16379      fi
16380      ;;
16381    esac
16382    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16383    # soname into executable. Probably we can add versioning support to
16384    # collect2, so additional links can be useful in future.
16385    if test "$aix_use_runtimelinking" = yes; then
16386      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16387      # instead of lib<name>.a to let people know that these are not
16388      # typical AIX shared libraries.
16389      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16390    else
16391      # We preserve .a as extension for shared libraries through AIX4.2
16392      # and later when we are not doing run time linking.
16393      library_names_spec='${libname}${release}.a $libname.a'
16394      soname_spec='${libname}${release}${shared_ext}$major'
16395    fi
16396    shlibpath_var=LIBPATH
16397  fi
16398  ;;
16399
16400amigaos*)
16401  library_names_spec='$libname.ixlibrary $libname.a'
16402  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16403  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'
16404  ;;
16405
16406beos*)
16407  library_names_spec='${libname}${shared_ext}'
16408  dynamic_linker="$host_os ld.so"
16409  shlibpath_var=LIBRARY_PATH
16410  ;;
16411
16412bsdi4*)
16413  version_type=linux
16414  need_version=no
16415  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16416  soname_spec='${libname}${release}${shared_ext}$major'
16417  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16418  shlibpath_var=LD_LIBRARY_PATH
16419  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16420  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16421  # the default ld.so.conf also contains /usr/contrib/lib and
16422  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16423  # libtool to hard-code these into programs
16424  ;;
16425
16426cygwin* | mingw* | pw32*)
16427  version_type=windows
16428  shrext=".dll"
16429  need_version=no
16430  need_lib_prefix=no
16431
16432  case $GCC,$host_os in
16433  yes,cygwin* | yes,mingw* | yes,pw32*)
16434    library_names_spec='$libname.dll.a'
16435    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16436    postinstall_cmds='base_file=`basename \${file}`~
16437      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16438      dldir=$destdir/`dirname \$dlpath`~
16439      test -d \$dldir || mkdir -p \$dldir~
16440      $install_prog $dir/$dlname \$dldir/$dlname'
16441    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16442      dlpath=$dir/\$dldll~
16443       $rm \$dlpath'
16444    shlibpath_overrides_runpath=yes
16445
16446    case $host_os in
16447    cygwin*)
16448      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16449      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16450      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16451      ;;
16452    mingw*)
16453      # MinGW DLLs use traditional 'lib' prefix
16454      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16455      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16456      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16457        # It is most probably a Windows format PATH printed by
16458        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16459        # path with ; separators, and with drive letters. We can handle the
16460        # drive letters (cygwin fileutils understands them), so leave them,
16461        # especially as we might pass files found there to a mingw objdump,
16462        # which wouldn't understand a cygwinified path. Ahh.
16463        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16464      else
16465        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16466      fi
16467      ;;
16468    pw32*)
16469      # pw32 DLLs use 'pw' prefix rather than 'lib'
16470      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16471      ;;
16472    esac
16473    ;;
16474
16475  *)
16476    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16477    ;;
16478  esac
16479  dynamic_linker='Win32 ld.exe'
16480  # FIXME: first we should search . and the directory the executable is in
16481  shlibpath_var=PATH
16482  ;;
16483
16484darwin* | rhapsody*)
16485  dynamic_linker="$host_os dyld"
16486  version_type=darwin
16487  need_lib_prefix=no
16488  need_version=no
16489  # FIXME: Relying on posixy $() will cause problems for
16490  #        cross-compilation, but unfortunately the echo tests do not
16491  #        yet detect zsh echo's removal of \ escapes.
16492  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16493  soname_spec='${libname}${release}${major}$shared_ext'
16494  shlibpath_overrides_runpath=yes
16495  shlibpath_var=DYLD_LIBRARY_PATH
16496  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16497  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16498  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16499  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"`
16500  fi
16501  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16502  ;;
16503
16504dgux*)
16505  version_type=linux
16506  need_lib_prefix=no
16507  need_version=no
16508  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16509  soname_spec='${libname}${release}${shared_ext}$major'
16510  shlibpath_var=LD_LIBRARY_PATH
16511  ;;
16512
16513freebsd1*)
16514  dynamic_linker=no
16515  ;;
16516
16517freebsd*)
16518  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16519  version_type=freebsd-$objformat
16520  case $version_type in
16521    freebsd-elf*)
16522      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16523      need_version=no
16524      need_lib_prefix=no
16525      ;;
16526    freebsd-*)
16527      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16528      need_version=yes
16529      ;;
16530  esac
16531  shlibpath_var=LD_LIBRARY_PATH
16532  case $host_os in
16533  freebsd2*)
16534    shlibpath_overrides_runpath=yes
16535    ;;
16536  freebsd3.01* | freebsdelf3.01*)
16537    shlibpath_overrides_runpath=yes
16538    hardcode_into_libs=yes
16539    ;;
16540  *) # from 3.2 on
16541    shlibpath_overrides_runpath=no
16542    hardcode_into_libs=yes
16543    ;;
16544  esac
16545  ;;
16546
16547gnu*)
16548  version_type=linux
16549  need_lib_prefix=no
16550  need_version=no
16551  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16552  soname_spec='${libname}${release}${shared_ext}$major'
16553  shlibpath_var=LD_LIBRARY_PATH
16554  hardcode_into_libs=yes
16555  ;;
16556
16557hpux9* | hpux10* | hpux11*)
16558  # Give a soname corresponding to the major version so that dld.sl refuses to
16559  # link against other versions.
16560  version_type=sunos
16561  need_lib_prefix=no
16562  need_version=no
16563  case "$host_cpu" in
16564  ia64*)
16565    shrext='.so'
16566    hardcode_into_libs=yes
16567    dynamic_linker="$host_os dld.so"
16568    shlibpath_var=LD_LIBRARY_PATH
16569    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16570    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16571    soname_spec='${libname}${release}${shared_ext}$major'
16572    if test "X$HPUX_IA64_MODE" = X32; then
16573      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16574    else
16575      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16576    fi
16577    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16578    ;;
16579   hppa*64*)
16580     shrext='.sl'
16581     hardcode_into_libs=yes
16582     dynamic_linker="$host_os dld.sl"
16583     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16584     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16585     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16586     soname_spec='${libname}${release}${shared_ext}$major'
16587     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16588     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16589     ;;
16590   *)
16591    shrext='.sl'
16592    dynamic_linker="$host_os dld.sl"
16593    shlibpath_var=SHLIB_PATH
16594    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16595    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16596    soname_spec='${libname}${release}${shared_ext}$major'
16597    ;;
16598  esac
16599  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16600  postinstall_cmds='chmod 555 $lib'
16601  ;;
16602
16603irix5* | irix6* | nonstopux*)
16604  case $host_os in
16605    nonstopux*) version_type=nonstopux ;;
16606    *)
16607	if test "$lt_cv_prog_gnu_ld" = yes; then
16608		version_type=linux
16609	else
16610		version_type=irix
16611	fi ;;
16612  esac
16613  need_lib_prefix=no
16614  need_version=no
16615  soname_spec='${libname}${release}${shared_ext}$major'
16616  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16617  case $host_os in
16618  irix5* | nonstopux*)
16619    libsuff= shlibsuff=
16620    ;;
16621  *)
16622    case $LD in # libtool.m4 will add one of these switches to LD
16623    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16624      libsuff= shlibsuff= libmagic=32-bit;;
16625    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16626      libsuff=32 shlibsuff=N32 libmagic=N32;;
16627    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16628      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16629    *) libsuff= shlibsuff= libmagic=never-match;;
16630    esac
16631    ;;
16632  esac
16633  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16634  shlibpath_overrides_runpath=no
16635  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16636  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16637  hardcode_into_libs=yes
16638  ;;
16639
16640# No shared lib support for Linux oldld, aout, or coff.
16641linux*oldld* | linux*aout* | linux*coff*)
16642  dynamic_linker=no
16643  ;;
16644
16645# This must be Linux ELF.
16646linux*)
16647  version_type=linux
16648  need_lib_prefix=no
16649  need_version=no
16650  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16651  soname_spec='${libname}${release}${shared_ext}$major'
16652  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16653  shlibpath_var=LD_LIBRARY_PATH
16654  shlibpath_overrides_runpath=no
16655  # This implies no fast_install, which is unacceptable.
16656  # Some rework will be needed to allow for fast_install
16657  # before this can be enabled.
16658  hardcode_into_libs=yes
16659
16660  # We used to test for /lib/ld.so.1 and disable shared libraries on
16661  # powerpc, because MkLinux only supported shared libraries with the
16662  # GNU dynamic linker.  Since this was broken with cross compilers,
16663  # most powerpc-linux boxes support dynamic linking these days and
16664  # people can always --disable-shared, the test was removed, and we
16665  # assume the GNU/Linux dynamic linker is in use.
16666  dynamic_linker='GNU/Linux ld.so'
16667  ;;
16668
16669netbsd*)
16670  version_type=sunos
16671  need_lib_prefix=no
16672  need_version=no
16673  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16674    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16675    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16676    dynamic_linker='NetBSD (a.out) ld.so'
16677  else
16678    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16679    soname_spec='${libname}${release}${shared_ext}$major'
16680    dynamic_linker='NetBSD ld.elf_so'
16681  fi
16682  shlibpath_var=LD_LIBRARY_PATH
16683  shlibpath_overrides_runpath=yes
16684  hardcode_into_libs=yes
16685  ;;
16686
16687newsos6)
16688  version_type=linux
16689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16690  shlibpath_var=LD_LIBRARY_PATH
16691  shlibpath_overrides_runpath=yes
16692  ;;
16693
16694nto-qnx)
16695  version_type=linux
16696  need_lib_prefix=no
16697  need_version=no
16698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16699  soname_spec='${libname}${release}${shared_ext}$major'
16700  shlibpath_var=LD_LIBRARY_PATH
16701  shlibpath_overrides_runpath=yes
16702  ;;
16703
16704openbsd*)
16705  version_type=sunos
16706  need_lib_prefix=no
16707  need_version=no
16708  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16709  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16710  shlibpath_var=LD_LIBRARY_PATH
16711  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16712    case $host_os in
16713      openbsd2.[89] | openbsd2.[89].*)
16714	shlibpath_overrides_runpath=no
16715	;;
16716      *)
16717	shlibpath_overrides_runpath=yes
16718	;;
16719      esac
16720  else
16721    shlibpath_overrides_runpath=yes
16722  fi
16723  ;;
16724
16725os2*)
16726  libname_spec='$name'
16727  shrext=".dll"
16728  need_lib_prefix=no
16729  library_names_spec='$libname${shared_ext} $libname.a'
16730  dynamic_linker='OS/2 ld.exe'
16731  shlibpath_var=LIBPATH
16732  ;;
16733
16734osf3* | osf4* | osf5*)
16735  version_type=osf
16736  need_lib_prefix=no
16737  need_version=no
16738  soname_spec='${libname}${release}${shared_ext}$major'
16739  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16740  shlibpath_var=LD_LIBRARY_PATH
16741  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16742  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16743  ;;
16744
16745sco3.2v5*)
16746  version_type=osf
16747  soname_spec='${libname}${release}${shared_ext}$major'
16748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16749  shlibpath_var=LD_LIBRARY_PATH
16750  ;;
16751
16752solaris*)
16753  version_type=linux
16754  need_lib_prefix=no
16755  need_version=no
16756  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16757  soname_spec='${libname}${release}${shared_ext}$major'
16758  shlibpath_var=LD_LIBRARY_PATH
16759  shlibpath_overrides_runpath=yes
16760  hardcode_into_libs=yes
16761  # ldd complains unless libraries are executable
16762  postinstall_cmds='chmod +x $lib'
16763  ;;
16764
16765sunos4*)
16766  version_type=sunos
16767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16768  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16769  shlibpath_var=LD_LIBRARY_PATH
16770  shlibpath_overrides_runpath=yes
16771  if test "$with_gnu_ld" = yes; then
16772    need_lib_prefix=no
16773  fi
16774  need_version=yes
16775  ;;
16776
16777sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16778  version_type=linux
16779  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16780  soname_spec='${libname}${release}${shared_ext}$major'
16781  shlibpath_var=LD_LIBRARY_PATH
16782  case $host_vendor in
16783    sni)
16784      shlibpath_overrides_runpath=no
16785      need_lib_prefix=no
16786      export_dynamic_flag_spec='${wl}-Blargedynsym'
16787      runpath_var=LD_RUN_PATH
16788      ;;
16789    siemens)
16790      need_lib_prefix=no
16791      ;;
16792    motorola)
16793      need_lib_prefix=no
16794      need_version=no
16795      shlibpath_overrides_runpath=no
16796      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16797      ;;
16798  esac
16799  ;;
16800
16801sysv4*MP*)
16802  if test -d /usr/nec ;then
16803    version_type=linux
16804    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16805    soname_spec='$libname${shared_ext}.$major'
16806    shlibpath_var=LD_LIBRARY_PATH
16807  fi
16808  ;;
16809
16810uts4*)
16811  version_type=linux
16812  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16813  soname_spec='${libname}${release}${shared_ext}$major'
16814  shlibpath_var=LD_LIBRARY_PATH
16815  ;;
16816
16817*)
16818  dynamic_linker=no
16819  ;;
16820esac
16821echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16822echo "${ECHO_T}$dynamic_linker" >&6
16823test "$dynamic_linker" = no && can_build_shared=no
16824
16825if test "x$enable_dlopen" != xyes; then
16826  enable_dlopen=unknown
16827  enable_dlopen_self=unknown
16828  enable_dlopen_self_static=unknown
16829else
16830  lt_cv_dlopen=no
16831  lt_cv_dlopen_libs=
16832
16833  case $host_os in
16834  beos*)
16835    lt_cv_dlopen="load_add_on"
16836    lt_cv_dlopen_libs=
16837    lt_cv_dlopen_self=yes
16838    ;;
16839
16840  mingw* | pw32*)
16841    lt_cv_dlopen="LoadLibrary"
16842    lt_cv_dlopen_libs=
16843   ;;
16844
16845  cygwin*)
16846    lt_cv_dlopen="dlopen"
16847    lt_cv_dlopen_libs=
16848   ;;
16849
16850  darwin*)
16851  # if libdl is installed we need to link against it
16852    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16853echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16854if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16855  echo $ECHO_N "(cached) $ECHO_C" >&6
16856else
16857  ac_check_lib_save_LIBS=$LIBS
16858LIBS="-ldl  $LIBS"
16859cat >conftest.$ac_ext <<_ACEOF
16860#line $LINENO "configure"
16861/* confdefs.h.  */
16862_ACEOF
16863cat confdefs.h >>conftest.$ac_ext
16864cat >>conftest.$ac_ext <<_ACEOF
16865/* end confdefs.h.  */
16866
16867/* Override any gcc2 internal prototype to avoid an error.  */
16868#ifdef __cplusplus
16869extern "C"
16870#endif
16871/* We use char because int might match the return type of a gcc2
16872   builtin and then its argument prototype would still apply.  */
16873char dlopen ();
16874int
16875main ()
16876{
16877dlopen ();
16878  ;
16879  return 0;
16880}
16881_ACEOF
16882rm -f conftest.$ac_objext conftest$ac_exeext
16883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16884  (eval $ac_link) 2>&5
16885  ac_status=$?
16886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887  (exit $ac_status); } &&
16888         { ac_try='test -s conftest$ac_exeext'
16889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16890  (eval $ac_try) 2>&5
16891  ac_status=$?
16892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893  (exit $ac_status); }; }; then
16894  ac_cv_lib_dl_dlopen=yes
16895else
16896  echo "$as_me: failed program was:" >&5
16897sed 's/^/| /' conftest.$ac_ext >&5
16898
16899ac_cv_lib_dl_dlopen=no
16900fi
16901rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16902LIBS=$ac_check_lib_save_LIBS
16903fi
16904echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16905echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16906if test $ac_cv_lib_dl_dlopen = yes; then
16907  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16908else
16909
16910    lt_cv_dlopen="dyld"
16911    lt_cv_dlopen_libs=
16912    lt_cv_dlopen_self=yes
16913
16914fi
16915
16916   ;;
16917
16918  *)
16919    echo "$as_me:$LINENO: checking for shl_load" >&5
16920echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16921if test "${ac_cv_func_shl_load+set}" = set; then
16922  echo $ECHO_N "(cached) $ECHO_C" >&6
16923else
16924  cat >conftest.$ac_ext <<_ACEOF
16925#line $LINENO "configure"
16926/* confdefs.h.  */
16927_ACEOF
16928cat confdefs.h >>conftest.$ac_ext
16929cat >>conftest.$ac_ext <<_ACEOF
16930/* end confdefs.h.  */
16931/* System header to define __stub macros and hopefully few prototypes,
16932    which can conflict with char shl_load (); below.
16933    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16934    <limits.h> exists even on freestanding compilers.  */
16935#ifdef __STDC__
16936# include <limits.h>
16937#else
16938# include <assert.h>
16939#endif
16940/* Override any gcc2 internal prototype to avoid an error.  */
16941#ifdef __cplusplus
16942extern "C"
16943{
16944#endif
16945/* We use char because int might match the return type of a gcc2
16946   builtin and then its argument prototype would still apply.  */
16947char shl_load ();
16948/* The GNU C library defines this for functions which it implements
16949    to always fail with ENOSYS.  Some functions are actually named
16950    something starting with __ and the normal name is an alias.  */
16951#if defined (__stub_shl_load) || defined (__stub___shl_load)
16952choke me
16953#else
16954char (*f) () = shl_load;
16955#endif
16956#ifdef __cplusplus
16957}
16958#endif
16959
16960int
16961main ()
16962{
16963return f != shl_load;
16964  ;
16965  return 0;
16966}
16967_ACEOF
16968rm -f conftest.$ac_objext conftest$ac_exeext
16969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16970  (eval $ac_link) 2>&5
16971  ac_status=$?
16972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973  (exit $ac_status); } &&
16974         { ac_try='test -s conftest$ac_exeext'
16975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16976  (eval $ac_try) 2>&5
16977  ac_status=$?
16978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979  (exit $ac_status); }; }; then
16980  ac_cv_func_shl_load=yes
16981else
16982  echo "$as_me: failed program was:" >&5
16983sed 's/^/| /' conftest.$ac_ext >&5
16984
16985ac_cv_func_shl_load=no
16986fi
16987rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16988fi
16989echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16990echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16991if test $ac_cv_func_shl_load = yes; then
16992  lt_cv_dlopen="shl_load"
16993else
16994  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16995echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16996if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16997  echo $ECHO_N "(cached) $ECHO_C" >&6
16998else
16999  ac_check_lib_save_LIBS=$LIBS
17000LIBS="-ldld  $LIBS"
17001cat >conftest.$ac_ext <<_ACEOF
17002#line $LINENO "configure"
17003/* confdefs.h.  */
17004_ACEOF
17005cat confdefs.h >>conftest.$ac_ext
17006cat >>conftest.$ac_ext <<_ACEOF
17007/* end confdefs.h.  */
17008
17009/* Override any gcc2 internal prototype to avoid an error.  */
17010#ifdef __cplusplus
17011extern "C"
17012#endif
17013/* We use char because int might match the return type of a gcc2
17014   builtin and then its argument prototype would still apply.  */
17015char shl_load ();
17016int
17017main ()
17018{
17019shl_load ();
17020  ;
17021  return 0;
17022}
17023_ACEOF
17024rm -f conftest.$ac_objext conftest$ac_exeext
17025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17026  (eval $ac_link) 2>&5
17027  ac_status=$?
17028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029  (exit $ac_status); } &&
17030         { ac_try='test -s conftest$ac_exeext'
17031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17032  (eval $ac_try) 2>&5
17033  ac_status=$?
17034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035  (exit $ac_status); }; }; then
17036  ac_cv_lib_dld_shl_load=yes
17037else
17038  echo "$as_me: failed program was:" >&5
17039sed 's/^/| /' conftest.$ac_ext >&5
17040
17041ac_cv_lib_dld_shl_load=no
17042fi
17043rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17044LIBS=$ac_check_lib_save_LIBS
17045fi
17046echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17047echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17048if test $ac_cv_lib_dld_shl_load = yes; then
17049  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17050else
17051  echo "$as_me:$LINENO: checking for dlopen" >&5
17052echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17053if test "${ac_cv_func_dlopen+set}" = set; then
17054  echo $ECHO_N "(cached) $ECHO_C" >&6
17055else
17056  cat >conftest.$ac_ext <<_ACEOF
17057#line $LINENO "configure"
17058/* confdefs.h.  */
17059_ACEOF
17060cat confdefs.h >>conftest.$ac_ext
17061cat >>conftest.$ac_ext <<_ACEOF
17062/* end confdefs.h.  */
17063/* System header to define __stub macros and hopefully few prototypes,
17064    which can conflict with char dlopen (); below.
17065    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17066    <limits.h> exists even on freestanding compilers.  */
17067#ifdef __STDC__
17068# include <limits.h>
17069#else
17070# include <assert.h>
17071#endif
17072/* Override any gcc2 internal prototype to avoid an error.  */
17073#ifdef __cplusplus
17074extern "C"
17075{
17076#endif
17077/* We use char because int might match the return type of a gcc2
17078   builtin and then its argument prototype would still apply.  */
17079char dlopen ();
17080/* The GNU C library defines this for functions which it implements
17081    to always fail with ENOSYS.  Some functions are actually named
17082    something starting with __ and the normal name is an alias.  */
17083#if defined (__stub_dlopen) || defined (__stub___dlopen)
17084choke me
17085#else
17086char (*f) () = dlopen;
17087#endif
17088#ifdef __cplusplus
17089}
17090#endif
17091
17092int
17093main ()
17094{
17095return f != dlopen;
17096  ;
17097  return 0;
17098}
17099_ACEOF
17100rm -f conftest.$ac_objext conftest$ac_exeext
17101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17102  (eval $ac_link) 2>&5
17103  ac_status=$?
17104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105  (exit $ac_status); } &&
17106         { ac_try='test -s conftest$ac_exeext'
17107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17108  (eval $ac_try) 2>&5
17109  ac_status=$?
17110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111  (exit $ac_status); }; }; then
17112  ac_cv_func_dlopen=yes
17113else
17114  echo "$as_me: failed program was:" >&5
17115sed 's/^/| /' conftest.$ac_ext >&5
17116
17117ac_cv_func_dlopen=no
17118fi
17119rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17120fi
17121echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17122echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17123if test $ac_cv_func_dlopen = yes; then
17124  lt_cv_dlopen="dlopen"
17125else
17126  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17127echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17128if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17129  echo $ECHO_N "(cached) $ECHO_C" >&6
17130else
17131  ac_check_lib_save_LIBS=$LIBS
17132LIBS="-ldl  $LIBS"
17133cat >conftest.$ac_ext <<_ACEOF
17134#line $LINENO "configure"
17135/* confdefs.h.  */
17136_ACEOF
17137cat confdefs.h >>conftest.$ac_ext
17138cat >>conftest.$ac_ext <<_ACEOF
17139/* end confdefs.h.  */
17140
17141/* Override any gcc2 internal prototype to avoid an error.  */
17142#ifdef __cplusplus
17143extern "C"
17144#endif
17145/* We use char because int might match the return type of a gcc2
17146   builtin and then its argument prototype would still apply.  */
17147char dlopen ();
17148int
17149main ()
17150{
17151dlopen ();
17152  ;
17153  return 0;
17154}
17155_ACEOF
17156rm -f conftest.$ac_objext conftest$ac_exeext
17157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17158  (eval $ac_link) 2>&5
17159  ac_status=$?
17160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161  (exit $ac_status); } &&
17162         { ac_try='test -s conftest$ac_exeext'
17163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164  (eval $ac_try) 2>&5
17165  ac_status=$?
17166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167  (exit $ac_status); }; }; then
17168  ac_cv_lib_dl_dlopen=yes
17169else
17170  echo "$as_me: failed program was:" >&5
17171sed 's/^/| /' conftest.$ac_ext >&5
17172
17173ac_cv_lib_dl_dlopen=no
17174fi
17175rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17176LIBS=$ac_check_lib_save_LIBS
17177fi
17178echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17179echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17180if test $ac_cv_lib_dl_dlopen = yes; then
17181  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17182else
17183  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17184echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17185if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17186  echo $ECHO_N "(cached) $ECHO_C" >&6
17187else
17188  ac_check_lib_save_LIBS=$LIBS
17189LIBS="-lsvld  $LIBS"
17190cat >conftest.$ac_ext <<_ACEOF
17191#line $LINENO "configure"
17192/* confdefs.h.  */
17193_ACEOF
17194cat confdefs.h >>conftest.$ac_ext
17195cat >>conftest.$ac_ext <<_ACEOF
17196/* end confdefs.h.  */
17197
17198/* Override any gcc2 internal prototype to avoid an error.  */
17199#ifdef __cplusplus
17200extern "C"
17201#endif
17202/* We use char because int might match the return type of a gcc2
17203   builtin and then its argument prototype would still apply.  */
17204char dlopen ();
17205int
17206main ()
17207{
17208dlopen ();
17209  ;
17210  return 0;
17211}
17212_ACEOF
17213rm -f conftest.$ac_objext conftest$ac_exeext
17214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17215  (eval $ac_link) 2>&5
17216  ac_status=$?
17217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218  (exit $ac_status); } &&
17219         { ac_try='test -s conftest$ac_exeext'
17220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17221  (eval $ac_try) 2>&5
17222  ac_status=$?
17223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224  (exit $ac_status); }; }; then
17225  ac_cv_lib_svld_dlopen=yes
17226else
17227  echo "$as_me: failed program was:" >&5
17228sed 's/^/| /' conftest.$ac_ext >&5
17229
17230ac_cv_lib_svld_dlopen=no
17231fi
17232rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17233LIBS=$ac_check_lib_save_LIBS
17234fi
17235echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17236echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17237if test $ac_cv_lib_svld_dlopen = yes; then
17238  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17239else
17240  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17241echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17242if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17243  echo $ECHO_N "(cached) $ECHO_C" >&6
17244else
17245  ac_check_lib_save_LIBS=$LIBS
17246LIBS="-ldld  $LIBS"
17247cat >conftest.$ac_ext <<_ACEOF
17248#line $LINENO "configure"
17249/* confdefs.h.  */
17250_ACEOF
17251cat confdefs.h >>conftest.$ac_ext
17252cat >>conftest.$ac_ext <<_ACEOF
17253/* end confdefs.h.  */
17254
17255/* Override any gcc2 internal prototype to avoid an error.  */
17256#ifdef __cplusplus
17257extern "C"
17258#endif
17259/* We use char because int might match the return type of a gcc2
17260   builtin and then its argument prototype would still apply.  */
17261char dld_link ();
17262int
17263main ()
17264{
17265dld_link ();
17266  ;
17267  return 0;
17268}
17269_ACEOF
17270rm -f conftest.$ac_objext conftest$ac_exeext
17271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17272  (eval $ac_link) 2>&5
17273  ac_status=$?
17274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275  (exit $ac_status); } &&
17276         { ac_try='test -s conftest$ac_exeext'
17277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17278  (eval $ac_try) 2>&5
17279  ac_status=$?
17280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281  (exit $ac_status); }; }; then
17282  ac_cv_lib_dld_dld_link=yes
17283else
17284  echo "$as_me: failed program was:" >&5
17285sed 's/^/| /' conftest.$ac_ext >&5
17286
17287ac_cv_lib_dld_dld_link=no
17288fi
17289rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17290LIBS=$ac_check_lib_save_LIBS
17291fi
17292echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17293echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17294if test $ac_cv_lib_dld_dld_link = yes; then
17295  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17296fi
17297
17298
17299fi
17300
17301
17302fi
17303
17304
17305fi
17306
17307
17308fi
17309
17310
17311fi
17312
17313    ;;
17314  esac
17315
17316  if test "x$lt_cv_dlopen" != xno; then
17317    enable_dlopen=yes
17318  else
17319    enable_dlopen=no
17320  fi
17321
17322  case $lt_cv_dlopen in
17323  dlopen)
17324    save_CPPFLAGS="$CPPFLAGS"
17325    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17326
17327    save_LDFLAGS="$LDFLAGS"
17328    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17329
17330    save_LIBS="$LIBS"
17331    LIBS="$lt_cv_dlopen_libs $LIBS"
17332
17333    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17334echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17335if test "${lt_cv_dlopen_self+set}" = set; then
17336  echo $ECHO_N "(cached) $ECHO_C" >&6
17337else
17338  	  if test "$cross_compiling" = yes; then :
17339  lt_cv_dlopen_self=cross
17340else
17341  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17342  lt_status=$lt_dlunknown
17343  cat > conftest.$ac_ext <<EOF
17344#line 17344 "configure"
17345#include "confdefs.h"
17346
17347#if HAVE_DLFCN_H
17348#include <dlfcn.h>
17349#endif
17350
17351#include <stdio.h>
17352
17353#ifdef RTLD_GLOBAL
17354#  define LT_DLGLOBAL		RTLD_GLOBAL
17355#else
17356#  ifdef DL_GLOBAL
17357#    define LT_DLGLOBAL		DL_GLOBAL
17358#  else
17359#    define LT_DLGLOBAL		0
17360#  endif
17361#endif
17362
17363/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17364   find out it does not work in some platform. */
17365#ifndef LT_DLLAZY_OR_NOW
17366#  ifdef RTLD_LAZY
17367#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17368#  else
17369#    ifdef DL_LAZY
17370#      define LT_DLLAZY_OR_NOW		DL_LAZY
17371#    else
17372#      ifdef RTLD_NOW
17373#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17374#      else
17375#        ifdef DL_NOW
17376#          define LT_DLLAZY_OR_NOW	DL_NOW
17377#        else
17378#          define LT_DLLAZY_OR_NOW	0
17379#        endif
17380#      endif
17381#    endif
17382#  endif
17383#endif
17384
17385#ifdef __cplusplus
17386extern "C" void exit (int);
17387#endif
17388
17389void fnord() { int i=42;}
17390int main ()
17391{
17392  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17393  int status = $lt_dlunknown;
17394
17395  if (self)
17396    {
17397      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17398      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17399      /* dlclose (self); */
17400    }
17401
17402    exit (status);
17403}
17404EOF
17405  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17406  (eval $ac_link) 2>&5
17407  ac_status=$?
17408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17410    (./conftest; exit; ) 2>/dev/null
17411    lt_status=$?
17412    case x$lt_status in
17413      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17414      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17415      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17416    esac
17417  else :
17418    # compilation failed
17419    lt_cv_dlopen_self=no
17420  fi
17421fi
17422rm -fr conftest*
17423
17424
17425fi
17426echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17427echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17428
17429    if test "x$lt_cv_dlopen_self" = xyes; then
17430      LDFLAGS="$LDFLAGS $link_static_flag"
17431      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17432echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17433if test "${lt_cv_dlopen_self_static+set}" = set; then
17434  echo $ECHO_N "(cached) $ECHO_C" >&6
17435else
17436  	  if test "$cross_compiling" = yes; then :
17437  lt_cv_dlopen_self_static=cross
17438else
17439  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17440  lt_status=$lt_dlunknown
17441  cat > conftest.$ac_ext <<EOF
17442#line 17442 "configure"
17443#include "confdefs.h"
17444
17445#if HAVE_DLFCN_H
17446#include <dlfcn.h>
17447#endif
17448
17449#include <stdio.h>
17450
17451#ifdef RTLD_GLOBAL
17452#  define LT_DLGLOBAL		RTLD_GLOBAL
17453#else
17454#  ifdef DL_GLOBAL
17455#    define LT_DLGLOBAL		DL_GLOBAL
17456#  else
17457#    define LT_DLGLOBAL		0
17458#  endif
17459#endif
17460
17461/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17462   find out it does not work in some platform. */
17463#ifndef LT_DLLAZY_OR_NOW
17464#  ifdef RTLD_LAZY
17465#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17466#  else
17467#    ifdef DL_LAZY
17468#      define LT_DLLAZY_OR_NOW		DL_LAZY
17469#    else
17470#      ifdef RTLD_NOW
17471#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17472#      else
17473#        ifdef DL_NOW
17474#          define LT_DLLAZY_OR_NOW	DL_NOW
17475#        else
17476#          define LT_DLLAZY_OR_NOW	0
17477#        endif
17478#      endif
17479#    endif
17480#  endif
17481#endif
17482
17483#ifdef __cplusplus
17484extern "C" void exit (int);
17485#endif
17486
17487void fnord() { int i=42;}
17488int main ()
17489{
17490  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17491  int status = $lt_dlunknown;
17492
17493  if (self)
17494    {
17495      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17496      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17497      /* dlclose (self); */
17498    }
17499
17500    exit (status);
17501}
17502EOF
17503  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17504  (eval $ac_link) 2>&5
17505  ac_status=$?
17506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17508    (./conftest; exit; ) 2>/dev/null
17509    lt_status=$?
17510    case x$lt_status in
17511      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17512      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17513      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17514    esac
17515  else :
17516    # compilation failed
17517    lt_cv_dlopen_self_static=no
17518  fi
17519fi
17520rm -fr conftest*
17521
17522
17523fi
17524echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17525echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17526    fi
17527
17528    CPPFLAGS="$save_CPPFLAGS"
17529    LDFLAGS="$save_LDFLAGS"
17530    LIBS="$save_LIBS"
17531    ;;
17532  esac
17533
17534  case $lt_cv_dlopen_self in
17535  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17536  *) enable_dlopen_self=unknown ;;
17537  esac
17538
17539  case $lt_cv_dlopen_self_static in
17540  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17541  *) enable_dlopen_self_static=unknown ;;
17542  esac
17543fi
17544
17545
17546# The else clause should only fire when bootstrapping the
17547# libtool distribution, otherwise you forgot to ship ltmain.sh
17548# with your package, and you will get complaints that there are
17549# no rules to generate ltmain.sh.
17550if test -f "$ltmain"; then
17551  # See if we are running on zsh, and set the options which allow our commands through
17552  # without removal of \ escapes.
17553  if test -n "${ZSH_VERSION+set}" ; then
17554    setopt NO_GLOB_SUBST
17555  fi
17556  # Now quote all the things that may contain metacharacters while being
17557  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17558  # variables and quote the copies for generation of the libtool script.
17559  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17560    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17561    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17562    deplibs_check_method reload_flag reload_cmds need_locks \
17563    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17564    lt_cv_sys_global_symbol_to_c_name_address \
17565    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17566    old_postinstall_cmds old_postuninstall_cmds \
17567    compiler_GCJ \
17568    CC_GCJ \
17569    LD_GCJ \
17570    lt_prog_compiler_wl_GCJ \
17571    lt_prog_compiler_pic_GCJ \
17572    lt_prog_compiler_static_GCJ \
17573    lt_prog_compiler_no_builtin_flag_GCJ \
17574    export_dynamic_flag_spec_GCJ \
17575    thread_safe_flag_spec_GCJ \
17576    whole_archive_flag_spec_GCJ \
17577    enable_shared_with_static_runtimes_GCJ \
17578    old_archive_cmds_GCJ \
17579    old_archive_from_new_cmds_GCJ \
17580    predep_objects_GCJ \
17581    postdep_objects_GCJ \
17582    predeps_GCJ \
17583    postdeps_GCJ \
17584    compiler_lib_search_path_GCJ \
17585    archive_cmds_GCJ \
17586    archive_expsym_cmds_GCJ \
17587    postinstall_cmds_GCJ \
17588    postuninstall_cmds_GCJ \
17589    old_archive_from_expsyms_cmds_GCJ \
17590    allow_undefined_flag_GCJ \
17591    no_undefined_flag_GCJ \
17592    export_symbols_cmds_GCJ \
17593    hardcode_libdir_flag_spec_GCJ \
17594    hardcode_libdir_flag_spec_ld_GCJ \
17595    hardcode_libdir_separator_GCJ \
17596    hardcode_automatic_GCJ \
17597    module_cmds_GCJ \
17598    module_expsym_cmds_GCJ \
17599    lt_cv_prog_compiler_c_o_GCJ \
17600    exclude_expsyms_GCJ \
17601    include_expsyms_GCJ; do
17602
17603    case $var in
17604    old_archive_cmds_GCJ | \
17605    old_archive_from_new_cmds_GCJ | \
17606    archive_cmds_GCJ | \
17607    archive_expsym_cmds_GCJ | \
17608    module_cmds_GCJ | \
17609    module_expsym_cmds_GCJ | \
17610    old_archive_from_expsyms_cmds_GCJ | \
17611    export_symbols_cmds_GCJ | \
17612    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17613    postinstall_cmds | postuninstall_cmds | \
17614    old_postinstall_cmds | old_postuninstall_cmds | \
17615    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17616      # Double-quote double-evaled strings.
17617      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17618      ;;
17619    *)
17620      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17621      ;;
17622    esac
17623  done
17624
17625  case $lt_echo in
17626  *'\$0 --fallback-echo"')
17627    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17628    ;;
17629  esac
17630
17631cfgfile="$ofile"
17632
17633  cat <<__EOF__ >> "$cfgfile"
17634# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17635
17636# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17637
17638# Shell to use when invoking shell scripts.
17639SHELL=$lt_SHELL
17640
17641# Whether or not to build shared libraries.
17642build_libtool_libs=$enable_shared
17643
17644# Whether or not to build static libraries.
17645build_old_libs=$enable_static
17646
17647# Whether or not to add -lc for building shared libraries.
17648build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17649
17650# Whether or not to disallow shared libs when runtime libs are static
17651allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17652
17653# Whether or not to optimize for fast installation.
17654fast_install=$enable_fast_install
17655
17656# The host system.
17657host_alias=$host_alias
17658host=$host
17659
17660# An echo program that does not interpret backslashes.
17661echo=$lt_echo
17662
17663# The archiver.
17664AR=$lt_AR
17665AR_FLAGS=$lt_AR_FLAGS
17666
17667# A C compiler.
17668LTCC=$lt_LTCC
17669
17670# A language-specific compiler.
17671CC=$lt_compiler_GCJ
17672
17673# Is the compiler the GNU C compiler?
17674with_gcc=$GCC_GCJ
17675
17676# An ERE matcher.
17677EGREP=$lt_EGREP
17678
17679# The linker used to build libraries.
17680LD=$lt_LD_GCJ
17681
17682# Whether we need hard or soft links.
17683LN_S=$lt_LN_S
17684
17685# A BSD-compatible nm program.
17686NM=$lt_NM
17687
17688# A symbol stripping program
17689STRIP=$STRIP
17690
17691# Used to examine libraries when file_magic_cmd begins "file"
17692MAGIC_CMD=$MAGIC_CMD
17693
17694# Used on cygwin: DLL creation program.
17695DLLTOOL="$DLLTOOL"
17696
17697# Used on cygwin: object dumper.
17698OBJDUMP="$OBJDUMP"
17699
17700# Used on cygwin: assembler.
17701AS="$AS"
17702
17703# The name of the directory that contains temporary libtool files.
17704objdir=$objdir
17705
17706# How to create reloadable object files.
17707reload_flag=$lt_reload_flag
17708reload_cmds=$lt_reload_cmds
17709
17710# How to pass a linker flag through the compiler.
17711wl=$lt_lt_prog_compiler_wl_GCJ
17712
17713# Object file suffix (normally "o").
17714objext="$ac_objext"
17715
17716# Old archive suffix (normally "a").
17717libext="$libext"
17718
17719# Shared library suffix (normally ".so").
17720shrext='$shrext'
17721
17722# Executable file suffix (normally "").
17723exeext="$exeext"
17724
17725# Additional compiler flags for building library objects.
17726pic_flag=$lt_lt_prog_compiler_pic_GCJ
17727pic_mode=$pic_mode
17728
17729# What is the maximum length of a command?
17730max_cmd_len=$lt_cv_sys_max_cmd_len
17731
17732# Does compiler simultaneously support -c and -o options?
17733compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17734
17735# Must we lock files when doing compilation ?
17736need_locks=$lt_need_locks
17737
17738# Do we need the lib prefix for modules?
17739need_lib_prefix=$need_lib_prefix
17740
17741# Do we need a version for libraries?
17742need_version=$need_version
17743
17744# Whether dlopen is supported.
17745dlopen_support=$enable_dlopen
17746
17747# Whether dlopen of programs is supported.
17748dlopen_self=$enable_dlopen_self
17749
17750# Whether dlopen of statically linked programs is supported.
17751dlopen_self_static=$enable_dlopen_self_static
17752
17753# Compiler flag to prevent dynamic linking.
17754link_static_flag=$lt_lt_prog_compiler_static_GCJ
17755
17756# Compiler flag to turn off builtin functions.
17757no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17758
17759# Compiler flag to allow reflexive dlopens.
17760export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17761
17762# Compiler flag to generate shared objects directly from archives.
17763whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17764
17765# Compiler flag to generate thread-safe objects.
17766thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17767
17768# Library versioning type.
17769version_type=$version_type
17770
17771# Format of library name prefix.
17772libname_spec=$lt_libname_spec
17773
17774# List of archive names.  First name is the real one, the rest are links.
17775# The last name is the one that the linker finds with -lNAME.
17776library_names_spec=$lt_library_names_spec
17777
17778# The coded name of the library, if different from the real name.
17779soname_spec=$lt_soname_spec
17780
17781# Commands used to build and install an old-style archive.
17782RANLIB=$lt_RANLIB
17783old_archive_cmds=$lt_old_archive_cmds_GCJ
17784old_postinstall_cmds=$lt_old_postinstall_cmds
17785old_postuninstall_cmds=$lt_old_postuninstall_cmds
17786
17787# Create an old-style archive from a shared archive.
17788old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17789
17790# Create a temporary old-style archive to link instead of a shared archive.
17791old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17792
17793# Commands used to build and install a shared archive.
17794archive_cmds=$lt_archive_cmds_GCJ
17795archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17796postinstall_cmds=$lt_postinstall_cmds
17797postuninstall_cmds=$lt_postuninstall_cmds
17798
17799# Commands used to build a loadable module (assumed same as above if empty)
17800module_cmds=$lt_module_cmds_GCJ
17801module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17802
17803# Commands to strip libraries.
17804old_striplib=$lt_old_striplib
17805striplib=$lt_striplib
17806
17807# Dependencies to place before the objects being linked to create a
17808# shared library.
17809predep_objects=$lt_predep_objects_GCJ
17810
17811# Dependencies to place after the objects being linked to create a
17812# shared library.
17813postdep_objects=$lt_postdep_objects_GCJ
17814
17815# Dependencies to place before the objects being linked to create a
17816# shared library.
17817predeps=$lt_predeps_GCJ
17818
17819# Dependencies to place after the objects being linked to create a
17820# shared library.
17821postdeps=$lt_postdeps_GCJ
17822
17823# The library search path used internally by the compiler when linking
17824# a shared library.
17825compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17826
17827# Method to check whether dependent libraries are shared objects.
17828deplibs_check_method=$lt_deplibs_check_method
17829
17830# Command to use when deplibs_check_method == file_magic.
17831file_magic_cmd=$lt_file_magic_cmd
17832
17833# Flag that allows shared libraries with undefined symbols to be built.
17834allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17835
17836# Flag that forces no undefined symbols.
17837no_undefined_flag=$lt_no_undefined_flag_GCJ
17838
17839# Commands used to finish a libtool library installation in a directory.
17840finish_cmds=$lt_finish_cmds
17841
17842# Same as above, but a single script fragment to be evaled but not shown.
17843finish_eval=$lt_finish_eval
17844
17845# Take the output of nm and produce a listing of raw symbols and C names.
17846global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17847
17848# Transform the output of nm in a proper C declaration
17849global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17850
17851# Transform the output of nm in a C name address pair
17852global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17853
17854# This is the shared library runtime path variable.
17855runpath_var=$runpath_var
17856
17857# This is the shared library path variable.
17858shlibpath_var=$shlibpath_var
17859
17860# Is shlibpath searched before the hard-coded library search path?
17861shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17862
17863# How to hardcode a shared library path into an executable.
17864hardcode_action=$hardcode_action_GCJ
17865
17866# Whether we should hardcode library paths into libraries.
17867hardcode_into_libs=$hardcode_into_libs
17868
17869# Flag to hardcode \$libdir into a binary during linking.
17870# This must work even if \$libdir does not exist.
17871hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17872
17873# If ld is used when linking, flag to hardcode \$libdir into
17874# a binary during linking. This must work even if \$libdir does
17875# not exist.
17876hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17877
17878# Whether we need a single -rpath flag with a separated argument.
17879hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17880
17881# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17882# resulting binary.
17883hardcode_direct=$hardcode_direct_GCJ
17884
17885# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17886# resulting binary.
17887hardcode_minus_L=$hardcode_minus_L_GCJ
17888
17889# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17890# the resulting binary.
17891hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17892
17893# Set to yes if building a shared library automatically hardcodes DIR into the library
17894# and all subsequent libraries and executables linked against it.
17895hardcode_automatic=$hardcode_automatic_GCJ
17896
17897# Variables whose values should be saved in libtool wrapper scripts and
17898# restored at relink time.
17899variables_saved_for_relink="$variables_saved_for_relink"
17900
17901# Whether libtool must link a program against all its dependency libraries.
17902link_all_deplibs=$link_all_deplibs_GCJ
17903
17904# Compile-time system search path for libraries
17905sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17906
17907# Run-time system search path for libraries
17908sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17909
17910# Fix the shell variable \$srcfile for the compiler.
17911fix_srcfile_path="$fix_srcfile_path_GCJ"
17912
17913# Set to yes if exported symbols are required.
17914always_export_symbols=$always_export_symbols_GCJ
17915
17916# The commands to list exported symbols.
17917export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17918
17919# The commands to extract the exported symbol list from a shared archive.
17920extract_expsyms_cmds=$lt_extract_expsyms_cmds
17921
17922# Symbols that should not be listed in the preloaded symbols.
17923exclude_expsyms=$lt_exclude_expsyms_GCJ
17924
17925# Symbols that must always be exported.
17926include_expsyms=$lt_include_expsyms_GCJ
17927
17928# ### END LIBTOOL TAG CONFIG: $tagname
17929
17930__EOF__
17931
17932
17933else
17934  # If there is no Makefile yet, we rely on a make rule to execute
17935  # `config.status --recheck' to rerun these tests and create the
17936  # libtool script then.
17937  test -f Makefile && make "$ltmain"
17938fi
17939
17940
17941ac_ext=c
17942ac_cpp='$CPP $CPPFLAGS'
17943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17945ac_compiler_gnu=$ac_cv_c_compiler_gnu
17946
17947CC="$lt_save_CC"
17948
17949	else
17950	  tagname=""
17951	fi
17952	;;
17953
17954      RC)
17955
17956
17957
17958# Source file extension for RC test sources.
17959ac_ext=rc
17960
17961# Object file extension for compiled RC test sources.
17962objext=o
17963objext_RC=$objext
17964
17965# Code to be used in simple compile tests
17966lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17967
17968# Code to be used in simple link tests
17969lt_simple_link_test_code="$lt_simple_compile_test_code"
17970
17971# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17972
17973# If no C compiler was specified, use CC.
17974LTCC=${LTCC-"$CC"}
17975
17976# Allow CC to be a program name with arguments.
17977compiler=$CC
17978
17979
17980# Allow CC to be a program name with arguments.
17981lt_save_CC="$CC"
17982CC=${RC-"windres"}
17983compiler=$CC
17984compiler_RC=$CC
17985lt_cv_prog_compiler_c_o_RC=yes
17986
17987# The else clause should only fire when bootstrapping the
17988# libtool distribution, otherwise you forgot to ship ltmain.sh
17989# with your package, and you will get complaints that there are
17990# no rules to generate ltmain.sh.
17991if test -f "$ltmain"; then
17992  # See if we are running on zsh, and set the options which allow our commands through
17993  # without removal of \ escapes.
17994  if test -n "${ZSH_VERSION+set}" ; then
17995    setopt NO_GLOB_SUBST
17996  fi
17997  # Now quote all the things that may contain metacharacters while being
17998  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17999  # variables and quote the copies for generation of the libtool script.
18000  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18001    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18002    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18003    deplibs_check_method reload_flag reload_cmds need_locks \
18004    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18005    lt_cv_sys_global_symbol_to_c_name_address \
18006    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18007    old_postinstall_cmds old_postuninstall_cmds \
18008    compiler_RC \
18009    CC_RC \
18010    LD_RC \
18011    lt_prog_compiler_wl_RC \
18012    lt_prog_compiler_pic_RC \
18013    lt_prog_compiler_static_RC \
18014    lt_prog_compiler_no_builtin_flag_RC \
18015    export_dynamic_flag_spec_RC \
18016    thread_safe_flag_spec_RC \
18017    whole_archive_flag_spec_RC \
18018    enable_shared_with_static_runtimes_RC \
18019    old_archive_cmds_RC \
18020    old_archive_from_new_cmds_RC \
18021    predep_objects_RC \
18022    postdep_objects_RC \
18023    predeps_RC \
18024    postdeps_RC \
18025    compiler_lib_search_path_RC \
18026    archive_cmds_RC \
18027    archive_expsym_cmds_RC \
18028    postinstall_cmds_RC \
18029    postuninstall_cmds_RC \
18030    old_archive_from_expsyms_cmds_RC \
18031    allow_undefined_flag_RC \
18032    no_undefined_flag_RC \
18033    export_symbols_cmds_RC \
18034    hardcode_libdir_flag_spec_RC \
18035    hardcode_libdir_flag_spec_ld_RC \
18036    hardcode_libdir_separator_RC \
18037    hardcode_automatic_RC \
18038    module_cmds_RC \
18039    module_expsym_cmds_RC \
18040    lt_cv_prog_compiler_c_o_RC \
18041    exclude_expsyms_RC \
18042    include_expsyms_RC; do
18043
18044    case $var in
18045    old_archive_cmds_RC | \
18046    old_archive_from_new_cmds_RC | \
18047    archive_cmds_RC | \
18048    archive_expsym_cmds_RC | \
18049    module_cmds_RC | \
18050    module_expsym_cmds_RC | \
18051    old_archive_from_expsyms_cmds_RC | \
18052    export_symbols_cmds_RC | \
18053    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18054    postinstall_cmds | postuninstall_cmds | \
18055    old_postinstall_cmds | old_postuninstall_cmds | \
18056    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18057      # Double-quote double-evaled strings.
18058      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18059      ;;
18060    *)
18061      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18062      ;;
18063    esac
18064  done
18065
18066  case $lt_echo in
18067  *'\$0 --fallback-echo"')
18068    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18069    ;;
18070  esac
18071
18072cfgfile="$ofile"
18073
18074  cat <<__EOF__ >> "$cfgfile"
18075# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18076
18077# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18078
18079# Shell to use when invoking shell scripts.
18080SHELL=$lt_SHELL
18081
18082# Whether or not to build shared libraries.
18083build_libtool_libs=$enable_shared
18084
18085# Whether or not to build static libraries.
18086build_old_libs=$enable_static
18087
18088# Whether or not to add -lc for building shared libraries.
18089build_libtool_need_lc=$archive_cmds_need_lc_RC
18090
18091# Whether or not to disallow shared libs when runtime libs are static
18092allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18093
18094# Whether or not to optimize for fast installation.
18095fast_install=$enable_fast_install
18096
18097# The host system.
18098host_alias=$host_alias
18099host=$host
18100
18101# An echo program that does not interpret backslashes.
18102echo=$lt_echo
18103
18104# The archiver.
18105AR=$lt_AR
18106AR_FLAGS=$lt_AR_FLAGS
18107
18108# A C compiler.
18109LTCC=$lt_LTCC
18110
18111# A language-specific compiler.
18112CC=$lt_compiler_RC
18113
18114# Is the compiler the GNU C compiler?
18115with_gcc=$GCC_RC
18116
18117# An ERE matcher.
18118EGREP=$lt_EGREP
18119
18120# The linker used to build libraries.
18121LD=$lt_LD_RC
18122
18123# Whether we need hard or soft links.
18124LN_S=$lt_LN_S
18125
18126# A BSD-compatible nm program.
18127NM=$lt_NM
18128
18129# A symbol stripping program
18130STRIP=$STRIP
18131
18132# Used to examine libraries when file_magic_cmd begins "file"
18133MAGIC_CMD=$MAGIC_CMD
18134
18135# Used on cygwin: DLL creation program.
18136DLLTOOL="$DLLTOOL"
18137
18138# Used on cygwin: object dumper.
18139OBJDUMP="$OBJDUMP"
18140
18141# Used on cygwin: assembler.
18142AS="$AS"
18143
18144# The name of the directory that contains temporary libtool files.
18145objdir=$objdir
18146
18147# How to create reloadable object files.
18148reload_flag=$lt_reload_flag
18149reload_cmds=$lt_reload_cmds
18150
18151# How to pass a linker flag through the compiler.
18152wl=$lt_lt_prog_compiler_wl_RC
18153
18154# Object file suffix (normally "o").
18155objext="$ac_objext"
18156
18157# Old archive suffix (normally "a").
18158libext="$libext"
18159
18160# Shared library suffix (normally ".so").
18161shrext='$shrext'
18162
18163# Executable file suffix (normally "").
18164exeext="$exeext"
18165
18166# Additional compiler flags for building library objects.
18167pic_flag=$lt_lt_prog_compiler_pic_RC
18168pic_mode=$pic_mode
18169
18170# What is the maximum length of a command?
18171max_cmd_len=$lt_cv_sys_max_cmd_len
18172
18173# Does compiler simultaneously support -c and -o options?
18174compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18175
18176# Must we lock files when doing compilation ?
18177need_locks=$lt_need_locks
18178
18179# Do we need the lib prefix for modules?
18180need_lib_prefix=$need_lib_prefix
18181
18182# Do we need a version for libraries?
18183need_version=$need_version
18184
18185# Whether dlopen is supported.
18186dlopen_support=$enable_dlopen
18187
18188# Whether dlopen of programs is supported.
18189dlopen_self=$enable_dlopen_self
18190
18191# Whether dlopen of statically linked programs is supported.
18192dlopen_self_static=$enable_dlopen_self_static
18193
18194# Compiler flag to prevent dynamic linking.
18195link_static_flag=$lt_lt_prog_compiler_static_RC
18196
18197# Compiler flag to turn off builtin functions.
18198no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18199
18200# Compiler flag to allow reflexive dlopens.
18201export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18202
18203# Compiler flag to generate shared objects directly from archives.
18204whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18205
18206# Compiler flag to generate thread-safe objects.
18207thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18208
18209# Library versioning type.
18210version_type=$version_type
18211
18212# Format of library name prefix.
18213libname_spec=$lt_libname_spec
18214
18215# List of archive names.  First name is the real one, the rest are links.
18216# The last name is the one that the linker finds with -lNAME.
18217library_names_spec=$lt_library_names_spec
18218
18219# The coded name of the library, if different from the real name.
18220soname_spec=$lt_soname_spec
18221
18222# Commands used to build and install an old-style archive.
18223RANLIB=$lt_RANLIB
18224old_archive_cmds=$lt_old_archive_cmds_RC
18225old_postinstall_cmds=$lt_old_postinstall_cmds
18226old_postuninstall_cmds=$lt_old_postuninstall_cmds
18227
18228# Create an old-style archive from a shared archive.
18229old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18230
18231# Create a temporary old-style archive to link instead of a shared archive.
18232old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18233
18234# Commands used to build and install a shared archive.
18235archive_cmds=$lt_archive_cmds_RC
18236archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18237postinstall_cmds=$lt_postinstall_cmds
18238postuninstall_cmds=$lt_postuninstall_cmds
18239
18240# Commands used to build a loadable module (assumed same as above if empty)
18241module_cmds=$lt_module_cmds_RC
18242module_expsym_cmds=$lt_module_expsym_cmds_RC
18243
18244# Commands to strip libraries.
18245old_striplib=$lt_old_striplib
18246striplib=$lt_striplib
18247
18248# Dependencies to place before the objects being linked to create a
18249# shared library.
18250predep_objects=$lt_predep_objects_RC
18251
18252# Dependencies to place after the objects being linked to create a
18253# shared library.
18254postdep_objects=$lt_postdep_objects_RC
18255
18256# Dependencies to place before the objects being linked to create a
18257# shared library.
18258predeps=$lt_predeps_RC
18259
18260# Dependencies to place after the objects being linked to create a
18261# shared library.
18262postdeps=$lt_postdeps_RC
18263
18264# The library search path used internally by the compiler when linking
18265# a shared library.
18266compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18267
18268# Method to check whether dependent libraries are shared objects.
18269deplibs_check_method=$lt_deplibs_check_method
18270
18271# Command to use when deplibs_check_method == file_magic.
18272file_magic_cmd=$lt_file_magic_cmd
18273
18274# Flag that allows shared libraries with undefined symbols to be built.
18275allow_undefined_flag=$lt_allow_undefined_flag_RC
18276
18277# Flag that forces no undefined symbols.
18278no_undefined_flag=$lt_no_undefined_flag_RC
18279
18280# Commands used to finish a libtool library installation in a directory.
18281finish_cmds=$lt_finish_cmds
18282
18283# Same as above, but a single script fragment to be evaled but not shown.
18284finish_eval=$lt_finish_eval
18285
18286# Take the output of nm and produce a listing of raw symbols and C names.
18287global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18288
18289# Transform the output of nm in a proper C declaration
18290global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18291
18292# Transform the output of nm in a C name address pair
18293global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18294
18295# This is the shared library runtime path variable.
18296runpath_var=$runpath_var
18297
18298# This is the shared library path variable.
18299shlibpath_var=$shlibpath_var
18300
18301# Is shlibpath searched before the hard-coded library search path?
18302shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18303
18304# How to hardcode a shared library path into an executable.
18305hardcode_action=$hardcode_action_RC
18306
18307# Whether we should hardcode library paths into libraries.
18308hardcode_into_libs=$hardcode_into_libs
18309
18310# Flag to hardcode \$libdir into a binary during linking.
18311# This must work even if \$libdir does not exist.
18312hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18313
18314# If ld is used when linking, flag to hardcode \$libdir into
18315# a binary during linking. This must work even if \$libdir does
18316# not exist.
18317hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18318
18319# Whether we need a single -rpath flag with a separated argument.
18320hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18321
18322# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18323# resulting binary.
18324hardcode_direct=$hardcode_direct_RC
18325
18326# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18327# resulting binary.
18328hardcode_minus_L=$hardcode_minus_L_RC
18329
18330# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18331# the resulting binary.
18332hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18333
18334# Set to yes if building a shared library automatically hardcodes DIR into the library
18335# and all subsequent libraries and executables linked against it.
18336hardcode_automatic=$hardcode_automatic_RC
18337
18338# Variables whose values should be saved in libtool wrapper scripts and
18339# restored at relink time.
18340variables_saved_for_relink="$variables_saved_for_relink"
18341
18342# Whether libtool must link a program against all its dependency libraries.
18343link_all_deplibs=$link_all_deplibs_RC
18344
18345# Compile-time system search path for libraries
18346sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18347
18348# Run-time system search path for libraries
18349sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18350
18351# Fix the shell variable \$srcfile for the compiler.
18352fix_srcfile_path="$fix_srcfile_path_RC"
18353
18354# Set to yes if exported symbols are required.
18355always_export_symbols=$always_export_symbols_RC
18356
18357# The commands to list exported symbols.
18358export_symbols_cmds=$lt_export_symbols_cmds_RC
18359
18360# The commands to extract the exported symbol list from a shared archive.
18361extract_expsyms_cmds=$lt_extract_expsyms_cmds
18362
18363# Symbols that should not be listed in the preloaded symbols.
18364exclude_expsyms=$lt_exclude_expsyms_RC
18365
18366# Symbols that must always be exported.
18367include_expsyms=$lt_include_expsyms_RC
18368
18369# ### END LIBTOOL TAG CONFIG: $tagname
18370
18371__EOF__
18372
18373
18374else
18375  # If there is no Makefile yet, we rely on a make rule to execute
18376  # `config.status --recheck' to rerun these tests and create the
18377  # libtool script then.
18378  test -f Makefile && make "$ltmain"
18379fi
18380
18381
18382ac_ext=c
18383ac_cpp='$CPP $CPPFLAGS'
18384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18386ac_compiler_gnu=$ac_cv_c_compiler_gnu
18387
18388CC="$lt_save_CC"
18389
18390	;;
18391
18392      *)
18393	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18394echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18395   { (exit 1); exit 1; }; }
18396	;;
18397      esac
18398
18399      # Append the new tag name to the list of available tags.
18400      if test -n "$tagname" ; then
18401      available_tags="$available_tags $tagname"
18402    fi
18403    fi
18404  done
18405  IFS="$lt_save_ifs"
18406
18407  # Now substitute the updated list of available tags.
18408  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18409    mv "${ofile}T" "$ofile"
18410    chmod +x "$ofile"
18411  else
18412    rm -f "${ofile}T"
18413    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18414echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18415   { (exit 1); exit 1; }; }
18416  fi
18417fi
18418
18419
18420
18421# This can be used to rebuild libtool when needed
18422LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18423
18424# Always use our own libtool.
18425LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18426
18427# Prevent multiple expansion
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449# Extract the first word of "pwd", so it can be a program name with args.
18450set dummy pwd; ac_word=$2
18451echo "$as_me:$LINENO: checking for $ac_word" >&5
18452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18453if test "${ac_cv_path_RPWD+set}" = set; then
18454  echo $ECHO_N "(cached) $ECHO_C" >&6
18455else
18456  case $RPWD in
18457  [\\/]* | ?:[\\/]*)
18458  ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18459  ;;
18460  *)
18461  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18462for as_dir in $PATH
18463do
18464  IFS=$as_save_IFS
18465  test -z "$as_dir" && as_dir=.
18466  for ac_exec_ext in '' $ac_executable_extensions; do
18467  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18468    ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18469    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18470    break 2
18471  fi
18472done
18473done
18474
18475  ;;
18476esac
18477fi
18478RPWD=$ac_cv_path_RPWD
18479
18480if test -n "$RPWD"; then
18481  echo "$as_me:$LINENO: result: $RPWD" >&5
18482echo "${ECHO_T}$RPWD" >&6
18483else
18484  echo "$as_me:$LINENO: result: no" >&5
18485echo "${ECHO_T}no" >&6
18486fi
18487
18488# Extract the first word of "ar", so it can be a program name with args.
18489set dummy ar; ac_word=$2
18490echo "$as_me:$LINENO: checking for $ac_word" >&5
18491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18492if test "${ac_cv_path_AR+set}" = set; then
18493  echo $ECHO_N "(cached) $ECHO_C" >&6
18494else
18495  case $AR in
18496  [\\/]* | ?:[\\/]*)
18497  ac_cv_path_AR="$AR" # Let the user override the test with a path.
18498  ;;
18499  *)
18500  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18501for as_dir in $PATH
18502do
18503  IFS=$as_save_IFS
18504  test -z "$as_dir" && as_dir=.
18505  for ac_exec_ext in '' $ac_executable_extensions; do
18506  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18507    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18508    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18509    break 2
18510  fi
18511done
18512done
18513
18514  ;;
18515esac
18516fi
18517AR=$ac_cv_path_AR
18518
18519if test -n "$AR"; then
18520  echo "$as_me:$LINENO: result: $AR" >&5
18521echo "${ECHO_T}$AR" >&6
18522else
18523  echo "$as_me:$LINENO: result: no" >&5
18524echo "${ECHO_T}no" >&6
18525fi
18526
18527# Extract the first word of "sed", so it can be a program name with args.
18528set dummy sed; ac_word=$2
18529echo "$as_me:$LINENO: checking for $ac_word" >&5
18530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18531if test "${ac_cv_path_SED+set}" = set; then
18532  echo $ECHO_N "(cached) $ECHO_C" >&6
18533else
18534  case $SED in
18535  [\\/]* | ?:[\\/]*)
18536  ac_cv_path_SED="$SED" # Let the user override the test with a path.
18537  ;;
18538  *)
18539  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18540for as_dir in $PATH
18541do
18542  IFS=$as_save_IFS
18543  test -z "$as_dir" && as_dir=.
18544  for ac_exec_ext in '' $ac_executable_extensions; do
18545  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18546    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18547    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18548    break 2
18549  fi
18550done
18551done
18552
18553  ;;
18554esac
18555fi
18556SED=$ac_cv_path_SED
18557
18558if test -n "$SED"; then
18559  echo "$as_me:$LINENO: result: $SED" >&5
18560echo "${ECHO_T}$SED" >&6
18561else
18562  echo "$as_me:$LINENO: result: no" >&5
18563echo "${ECHO_T}no" >&6
18564fi
18565
18566# Extract the first word of "rm", so it can be a program name with args.
18567set dummy rm; ac_word=$2
18568echo "$as_me:$LINENO: checking for $ac_word" >&5
18569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18570if test "${ac_cv_path_RM+set}" = set; then
18571  echo $ECHO_N "(cached) $ECHO_C" >&6
18572else
18573  case $RM in
18574  [\\/]* | ?:[\\/]*)
18575  ac_cv_path_RM="$RM" # Let the user override the test with a path.
18576  ;;
18577  *)
18578  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18579for as_dir in $PATH
18580do
18581  IFS=$as_save_IFS
18582  test -z "$as_dir" && as_dir=.
18583  for ac_exec_ext in '' $ac_executable_extensions; do
18584  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18585    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18586    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18587    break 2
18588  fi
18589done
18590done
18591
18592  ;;
18593esac
18594fi
18595RM=$ac_cv_path_RM
18596
18597if test -n "$RM"; then
18598  echo "$as_me:$LINENO: result: $RM" >&5
18599echo "${ECHO_T}$RM" >&6
18600else
18601  echo "$as_me:$LINENO: result: no" >&5
18602echo "${ECHO_T}no" >&6
18603fi
18604
18605# Extract the first word of "echo", so it can be a program name with args.
18606set dummy echo; ac_word=$2
18607echo "$as_me:$LINENO: checking for $ac_word" >&5
18608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18609if test "${ac_cv_path_ECHO+set}" = set; then
18610  echo $ECHO_N "(cached) $ECHO_C" >&6
18611else
18612  case $ECHO in
18613  [\\/]* | ?:[\\/]*)
18614  ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18615  ;;
18616  *)
18617  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18618for as_dir in $PATH
18619do
18620  IFS=$as_save_IFS
18621  test -z "$as_dir" && as_dir=.
18622  for ac_exec_ext in '' $ac_executable_extensions; do
18623  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18624    ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18625    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18626    break 2
18627  fi
18628done
18629done
18630
18631  ;;
18632esac
18633fi
18634ECHO=$ac_cv_path_ECHO
18635
18636if test -n "$ECHO"; then
18637  echo "$as_me:$LINENO: result: $ECHO" >&5
18638echo "${ECHO_T}$ECHO" >&6
18639else
18640  echo "$as_me:$LINENO: result: no" >&5
18641echo "${ECHO_T}no" >&6
18642fi
18643
18644# Extract the first word of "mkdir", so it can be a program name with args.
18645set dummy mkdir; ac_word=$2
18646echo "$as_me:$LINENO: checking for $ac_word" >&5
18647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18648if test "${ac_cv_path_MKDIR+set}" = set; then
18649  echo $ECHO_N "(cached) $ECHO_C" >&6
18650else
18651  case $MKDIR in
18652  [\\/]* | ?:[\\/]*)
18653  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18654  ;;
18655  *)
18656  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18657for as_dir in $PATH
18658do
18659  IFS=$as_save_IFS
18660  test -z "$as_dir" && as_dir=.
18661  for ac_exec_ext in '' $ac_executable_extensions; do
18662  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18663    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18664    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18665    break 2
18666  fi
18667done
18668done
18669
18670  ;;
18671esac
18672fi
18673MKDIR=$ac_cv_path_MKDIR
18674
18675if test -n "$MKDIR"; then
18676  echo "$as_me:$LINENO: result: $MKDIR" >&5
18677echo "${ECHO_T}$MKDIR" >&6
18678else
18679  echo "$as_me:$LINENO: result: no" >&5
18680echo "${ECHO_T}no" >&6
18681fi
18682
18683# Extract the first word of "date", so it can be a program name with args.
18684set dummy date; ac_word=$2
18685echo "$as_me:$LINENO: checking for $ac_word" >&5
18686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18687if test "${ac_cv_path_DATE+set}" = set; then
18688  echo $ECHO_N "(cached) $ECHO_C" >&6
18689else
18690  case $DATE in
18691  [\\/]* | ?:[\\/]*)
18692  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18693  ;;
18694  *)
18695  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18696for as_dir in $PATH
18697do
18698  IFS=$as_save_IFS
18699  test -z "$as_dir" && as_dir=.
18700  for ac_exec_ext in '' $ac_executable_extensions; do
18701  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18702    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18703    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18704    break 2
18705  fi
18706done
18707done
18708
18709  ;;
18710esac
18711fi
18712DATE=$ac_cv_path_DATE
18713
18714if test -n "$DATE"; then
18715  echo "$as_me:$LINENO: result: $DATE" >&5
18716echo "${ECHO_T}$DATE" >&6
18717else
18718  echo "$as_me:$LINENO: result: no" >&5
18719echo "${ECHO_T}no" >&6
18720fi
18721
18722# Extract the first word of "mv", so it can be a program name with args.
18723set dummy mv; ac_word=$2
18724echo "$as_me:$LINENO: checking for $ac_word" >&5
18725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18726if test "${ac_cv_path_MV+set}" = set; then
18727  echo $ECHO_N "(cached) $ECHO_C" >&6
18728else
18729  case $MV in
18730  [\\/]* | ?:[\\/]*)
18731  ac_cv_path_MV="$MV" # Let the user override the test with a path.
18732  ;;
18733  *)
18734  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18735for as_dir in $PATH
18736do
18737  IFS=$as_save_IFS
18738  test -z "$as_dir" && as_dir=.
18739  for ac_exec_ext in '' $ac_executable_extensions; do
18740  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18741    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18742    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18743    break 2
18744  fi
18745done
18746done
18747
18748  ;;
18749esac
18750fi
18751MV=$ac_cv_path_MV
18752
18753if test -n "$MV"; then
18754  echo "$as_me:$LINENO: result: $MV" >&5
18755echo "${ECHO_T}$MV" >&6
18756else
18757  echo "$as_me:$LINENO: result: no" >&5
18758echo "${ECHO_T}no" >&6
18759fi
18760
18761# Extract the first word of "dot", so it can be a program name with args.
18762set dummy dot; ac_word=$2
18763echo "$as_me:$LINENO: checking for $ac_word" >&5
18764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18765if test "${ac_cv_path_DOT+set}" = set; then
18766  echo $ECHO_N "(cached) $ECHO_C" >&6
18767else
18768  case $DOT in
18769  [\\/]* | ?:[\\/]*)
18770  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18771  ;;
18772  *)
18773  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18774for as_dir in $PATH
18775do
18776  IFS=$as_save_IFS
18777  test -z "$as_dir" && as_dir=.
18778  for ac_exec_ext in '' $ac_executable_extensions; do
18779  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18780    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18781    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18782    break 2
18783  fi
18784done
18785done
18786
18787  ;;
18788esac
18789fi
18790DOT=$ac_cv_path_DOT
18791
18792if test -n "$DOT"; then
18793  echo "$as_me:$LINENO: result: $DOT" >&5
18794echo "${ECHO_T}$DOT" >&6
18795else
18796  echo "$as_me:$LINENO: result: no" >&5
18797echo "${ECHO_T}no" >&6
18798fi
18799
18800# Extract the first word of "etags", so it can be a program name with args.
18801set dummy etags; ac_word=$2
18802echo "$as_me:$LINENO: checking for $ac_word" >&5
18803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18804if test "${ac_cv_path_ETAGS+set}" = set; then
18805  echo $ECHO_N "(cached) $ECHO_C" >&6
18806else
18807  case $ETAGS in
18808  [\\/]* | ?:[\\/]*)
18809  ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18810  ;;
18811  *)
18812  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18813for as_dir in $PATH
18814do
18815  IFS=$as_save_IFS
18816  test -z "$as_dir" && as_dir=.
18817  for ac_exec_ext in '' $ac_executable_extensions; do
18818  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18819    ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18820    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18821    break 2
18822  fi
18823done
18824done
18825
18826  ;;
18827esac
18828fi
18829ETAGS=$ac_cv_path_ETAGS
18830
18831if test -n "$ETAGS"; then
18832  echo "$as_me:$LINENO: result: $ETAGS" >&5
18833echo "${ECHO_T}$ETAGS" >&6
18834else
18835  echo "$as_me:$LINENO: result: no" >&5
18836echo "${ECHO_T}no" >&6
18837fi
18838
18839# Extract the first word of "purify", so it can be a program name with args.
18840set dummy purify; ac_word=$2
18841echo "$as_me:$LINENO: checking for $ac_word" >&5
18842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18843if test "${ac_cv_path_PURIFY+set}" = set; then
18844  echo $ECHO_N "(cached) $ECHO_C" >&6
18845else
18846  case $PURIFY in
18847  [\\/]* | ?:[\\/]*)
18848  ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18849  ;;
18850  *)
18851  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18852for as_dir in $PATH
18853do
18854  IFS=$as_save_IFS
18855  test -z "$as_dir" && as_dir=.
18856  for ac_exec_ext in '' $ac_executable_extensions; do
18857  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18858    ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18859    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18860    break 2
18861  fi
18862done
18863done
18864
18865  ;;
18866esac
18867fi
18868PURIFY=$ac_cv_path_PURIFY
18869
18870if test -n "$PURIFY"; then
18871  echo "$as_me:$LINENO: result: $PURIFY" >&5
18872echo "${ECHO_T}$PURIFY" >&6
18873else
18874  echo "$as_me:$LINENO: result: no" >&5
18875echo "${ECHO_T}no" >&6
18876fi
18877
18878# Extract the first word of "python", so it can be a program name with args.
18879set dummy python; ac_word=$2
18880echo "$as_me:$LINENO: checking for $ac_word" >&5
18881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18882if test "${ac_cv_path_PYTHON+set}" = set; then
18883  echo $ECHO_N "(cached) $ECHO_C" >&6
18884else
18885  case $PYTHON in
18886  [\\/]* | ?:[\\/]*)
18887  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18888  ;;
18889  *)
18890  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18891for as_dir in $PATH
18892do
18893  IFS=$as_save_IFS
18894  test -z "$as_dir" && as_dir=.
18895  for ac_exec_ext in '' $ac_executable_extensions; do
18896  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18897    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18898    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18899    break 2
18900  fi
18901done
18902done
18903
18904  ;;
18905esac
18906fi
18907PYTHON=$ac_cv_path_PYTHON
18908
18909if test -n "$PYTHON"; then
18910  echo "$as_me:$LINENO: result: $PYTHON" >&5
18911echo "${ECHO_T}$PYTHON" >&6
18912else
18913  echo "$as_me:$LINENO: result: no" >&5
18914echo "${ECHO_T}no" >&6
18915fi
18916
18917# Extract the first word of "qmtest", so it can be a program name with args.
18918set dummy qmtest; ac_word=$2
18919echo "$as_me:$LINENO: checking for $ac_word" >&5
18920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18921if test "${ac_cv_path_QMTEST+set}" = set; then
18922  echo $ECHO_N "(cached) $ECHO_C" >&6
18923else
18924  case $QMTEST in
18925  [\\/]* | ?:[\\/]*)
18926  ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18927  ;;
18928  *)
18929  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18930for as_dir in $PATH
18931do
18932  IFS=$as_save_IFS
18933  test -z "$as_dir" && as_dir=.
18934  for ac_exec_ext in '' $ac_executable_extensions; do
18935  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18936    ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18937    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18938    break 2
18939  fi
18940done
18941done
18942
18943  ;;
18944esac
18945fi
18946QMTEST=$ac_cv_path_QMTEST
18947
18948if test -n "$QMTEST"; then
18949  echo "$as_me:$LINENO: result: $QMTEST" >&5
18950echo "${ECHO_T}$QMTEST" >&6
18951else
18952  echo "$as_me:$LINENO: result: no" >&5
18953echo "${ECHO_T}no" >&6
18954fi
18955
18956
18957pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18958pymajor=`echo $pyversion | cut -d. -f1`
18959pyminor=`echo $pyversion | cut -d. -f2`
18960
18961if test "$pymajor" -ge "2"
18962then
18963	if test "$pymajor" -eq "2"
18964	then
18965		if test "$pyminor" -lt "2"
18966		then
18967			{ { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18968echo "$as_me: error: Python 2.2 or greater required" >&2;}
18969   { (exit 1); exit 1; }; }
18970		fi
18971	fi
18972else
18973	{ { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18974echo "$as_me: error: Python 2.2 or greater required" >&2;}
18975   { (exit 1); exit 1; }; }
18976fi
18977
18978
18979
18980
18981
18982echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18983echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18984if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18985  echo $ECHO_N "(cached) $ECHO_C" >&6
18986else
18987  ac_check_lib_save_LIBS=$LIBS
18988LIBS="-lelf  $LIBS"
18989cat >conftest.$ac_ext <<_ACEOF
18990#line $LINENO "configure"
18991/* confdefs.h.  */
18992_ACEOF
18993cat confdefs.h >>conftest.$ac_ext
18994cat >>conftest.$ac_ext <<_ACEOF
18995/* end confdefs.h.  */
18996
18997/* Override any gcc2 internal prototype to avoid an error.  */
18998#ifdef __cplusplus
18999extern "C"
19000#endif
19001/* We use char because int might match the return type of a gcc2
19002   builtin and then its argument prototype would still apply.  */
19003char elf_begin ();
19004int
19005main ()
19006{
19007elf_begin ();
19008  ;
19009  return 0;
19010}
19011_ACEOF
19012rm -f conftest.$ac_objext conftest$ac_exeext
19013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19014  (eval $ac_link) 2>&5
19015  ac_status=$?
19016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017  (exit $ac_status); } &&
19018         { ac_try='test -s conftest$ac_exeext'
19019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19020  (eval $ac_try) 2>&5
19021  ac_status=$?
19022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023  (exit $ac_status); }; }; then
19024  ac_cv_lib_elf_elf_begin=yes
19025else
19026  echo "$as_me: failed program was:" >&5
19027sed 's/^/| /' conftest.$ac_ext >&5
19028
19029ac_cv_lib_elf_elf_begin=no
19030fi
19031rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19032LIBS=$ac_check_lib_save_LIBS
19033fi
19034echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19035echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19036if test $ac_cv_lib_elf_elf_begin = yes; then
19037  cat >>confdefs.h <<_ACEOF
19038#define HAVE_LIBELF 1
19039_ACEOF
19040
19041  LIBS="-lelf $LIBS"
19042
19043fi
19044
19045
19046echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19047echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19048if test "${ac_cv_search_dlopen+set}" = set; then
19049  echo $ECHO_N "(cached) $ECHO_C" >&6
19050else
19051  ac_func_search_save_LIBS=$LIBS
19052ac_cv_search_dlopen=no
19053cat >conftest.$ac_ext <<_ACEOF
19054#line $LINENO "configure"
19055/* confdefs.h.  */
19056_ACEOF
19057cat confdefs.h >>conftest.$ac_ext
19058cat >>conftest.$ac_ext <<_ACEOF
19059/* end confdefs.h.  */
19060
19061/* Override any gcc2 internal prototype to avoid an error.  */
19062#ifdef __cplusplus
19063extern "C"
19064#endif
19065/* We use char because int might match the return type of a gcc2
19066   builtin and then its argument prototype would still apply.  */
19067char dlopen ();
19068int
19069main ()
19070{
19071dlopen ();
19072  ;
19073  return 0;
19074}
19075_ACEOF
19076rm -f conftest.$ac_objext conftest$ac_exeext
19077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19078  (eval $ac_link) 2>&5
19079  ac_status=$?
19080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081  (exit $ac_status); } &&
19082         { ac_try='test -s conftest$ac_exeext'
19083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19084  (eval $ac_try) 2>&5
19085  ac_status=$?
19086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087  (exit $ac_status); }; }; then
19088  ac_cv_search_dlopen="none required"
19089else
19090  echo "$as_me: failed program was:" >&5
19091sed 's/^/| /' conftest.$ac_ext >&5
19092
19093fi
19094rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19095if test "$ac_cv_search_dlopen" = no; then
19096  for ac_lib in dl; do
19097    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19098    cat >conftest.$ac_ext <<_ACEOF
19099#line $LINENO "configure"
19100/* confdefs.h.  */
19101_ACEOF
19102cat confdefs.h >>conftest.$ac_ext
19103cat >>conftest.$ac_ext <<_ACEOF
19104/* end confdefs.h.  */
19105
19106/* Override any gcc2 internal prototype to avoid an error.  */
19107#ifdef __cplusplus
19108extern "C"
19109#endif
19110/* We use char because int might match the return type of a gcc2
19111   builtin and then its argument prototype would still apply.  */
19112char dlopen ();
19113int
19114main ()
19115{
19116dlopen ();
19117  ;
19118  return 0;
19119}
19120_ACEOF
19121rm -f conftest.$ac_objext conftest$ac_exeext
19122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19123  (eval $ac_link) 2>&5
19124  ac_status=$?
19125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126  (exit $ac_status); } &&
19127         { ac_try='test -s conftest$ac_exeext'
19128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129  (eval $ac_try) 2>&5
19130  ac_status=$?
19131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132  (exit $ac_status); }; }; then
19133  ac_cv_search_dlopen="-l$ac_lib"
19134break
19135else
19136  echo "$as_me: failed program was:" >&5
19137sed 's/^/| /' conftest.$ac_ext >&5
19138
19139fi
19140rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19141  done
19142fi
19143LIBS=$ac_func_search_save_LIBS
19144fi
19145echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19146echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19147if test "$ac_cv_search_dlopen" != no; then
19148  test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19149
19150else
19151  { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19152echo "$as_me: error: dlopen() required but not found" >&2;}
19153   { (exit 1); exit 1; }; }
19154fi
19155
19156
19157echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19158echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19159if test "${ac_cv_search_mallinfo+set}" = set; then
19160  echo $ECHO_N "(cached) $ECHO_C" >&6
19161else
19162  ac_func_search_save_LIBS=$LIBS
19163ac_cv_search_mallinfo=no
19164cat >conftest.$ac_ext <<_ACEOF
19165#line $LINENO "configure"
19166/* confdefs.h.  */
19167_ACEOF
19168cat confdefs.h >>conftest.$ac_ext
19169cat >>conftest.$ac_ext <<_ACEOF
19170/* end confdefs.h.  */
19171
19172/* Override any gcc2 internal prototype to avoid an error.  */
19173#ifdef __cplusplus
19174extern "C"
19175#endif
19176/* We use char because int might match the return type of a gcc2
19177   builtin and then its argument prototype would still apply.  */
19178char mallinfo ();
19179int
19180main ()
19181{
19182mallinfo ();
19183  ;
19184  return 0;
19185}
19186_ACEOF
19187rm -f conftest.$ac_objext conftest$ac_exeext
19188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19189  (eval $ac_link) 2>&5
19190  ac_status=$?
19191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192  (exit $ac_status); } &&
19193         { ac_try='test -s conftest$ac_exeext'
19194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195  (eval $ac_try) 2>&5
19196  ac_status=$?
19197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198  (exit $ac_status); }; }; then
19199  ac_cv_search_mallinfo="none required"
19200else
19201  echo "$as_me: failed program was:" >&5
19202sed 's/^/| /' conftest.$ac_ext >&5
19203
19204fi
19205rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19206if test "$ac_cv_search_mallinfo" = no; then
19207  for ac_lib in malloc; do
19208    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19209    cat >conftest.$ac_ext <<_ACEOF
19210#line $LINENO "configure"
19211/* confdefs.h.  */
19212_ACEOF
19213cat confdefs.h >>conftest.$ac_ext
19214cat >>conftest.$ac_ext <<_ACEOF
19215/* end confdefs.h.  */
19216
19217/* Override any gcc2 internal prototype to avoid an error.  */
19218#ifdef __cplusplus
19219extern "C"
19220#endif
19221/* We use char because int might match the return type of a gcc2
19222   builtin and then its argument prototype would still apply.  */
19223char mallinfo ();
19224int
19225main ()
19226{
19227mallinfo ();
19228  ;
19229  return 0;
19230}
19231_ACEOF
19232rm -f conftest.$ac_objext conftest$ac_exeext
19233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19234  (eval $ac_link) 2>&5
19235  ac_status=$?
19236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237  (exit $ac_status); } &&
19238         { ac_try='test -s conftest$ac_exeext'
19239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19240  (eval $ac_try) 2>&5
19241  ac_status=$?
19242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243  (exit $ac_status); }; }; then
19244  ac_cv_search_mallinfo="-l$ac_lib"
19245break
19246else
19247  echo "$as_me: failed program was:" >&5
19248sed 's/^/| /' conftest.$ac_ext >&5
19249
19250fi
19251rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19252  done
19253fi
19254LIBS=$ac_func_search_save_LIBS
19255fi
19256echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19257echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19258if test "$ac_cv_search_mallinfo" != no; then
19259  test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19260  cat >>confdefs.h <<\_ACEOF
19261#define HAVE_MALLINFO 1
19262_ACEOF
19263
19264fi
19265
19266
19267
19268echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19269echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19270if test "${ac_cv_header_stdc+set}" = set; then
19271  echo $ECHO_N "(cached) $ECHO_C" >&6
19272else
19273  cat >conftest.$ac_ext <<_ACEOF
19274#line $LINENO "configure"
19275/* confdefs.h.  */
19276_ACEOF
19277cat confdefs.h >>conftest.$ac_ext
19278cat >>conftest.$ac_ext <<_ACEOF
19279/* end confdefs.h.  */
19280#include <stdlib.h>
19281#include <stdarg.h>
19282#include <string.h>
19283#include <float.h>
19284
19285int
19286main ()
19287{
19288
19289  ;
19290  return 0;
19291}
19292_ACEOF
19293rm -f conftest.$ac_objext
19294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19295  (eval $ac_compile) 2>&5
19296  ac_status=$?
19297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298  (exit $ac_status); } &&
19299         { ac_try='test -s conftest.$ac_objext'
19300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301  (eval $ac_try) 2>&5
19302  ac_status=$?
19303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304  (exit $ac_status); }; }; then
19305  ac_cv_header_stdc=yes
19306else
19307  echo "$as_me: failed program was:" >&5
19308sed 's/^/| /' conftest.$ac_ext >&5
19309
19310ac_cv_header_stdc=no
19311fi
19312rm -f conftest.$ac_objext conftest.$ac_ext
19313
19314if test $ac_cv_header_stdc = yes; then
19315  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19316  cat >conftest.$ac_ext <<_ACEOF
19317#line $LINENO "configure"
19318/* confdefs.h.  */
19319_ACEOF
19320cat confdefs.h >>conftest.$ac_ext
19321cat >>conftest.$ac_ext <<_ACEOF
19322/* end confdefs.h.  */
19323#include <string.h>
19324
19325_ACEOF
19326if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19327  $EGREP "memchr" >/dev/null 2>&1; then
19328  :
19329else
19330  ac_cv_header_stdc=no
19331fi
19332rm -f conftest*
19333
19334fi
19335
19336if test $ac_cv_header_stdc = yes; then
19337  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19338  cat >conftest.$ac_ext <<_ACEOF
19339#line $LINENO "configure"
19340/* confdefs.h.  */
19341_ACEOF
19342cat confdefs.h >>conftest.$ac_ext
19343cat >>conftest.$ac_ext <<_ACEOF
19344/* end confdefs.h.  */
19345#include <stdlib.h>
19346
19347_ACEOF
19348if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19349  $EGREP "free" >/dev/null 2>&1; then
19350  :
19351else
19352  ac_cv_header_stdc=no
19353fi
19354rm -f conftest*
19355
19356fi
19357
19358if test $ac_cv_header_stdc = yes; then
19359  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19360  if test "$cross_compiling" = yes; then
19361  :
19362else
19363  cat >conftest.$ac_ext <<_ACEOF
19364#line $LINENO "configure"
19365/* confdefs.h.  */
19366_ACEOF
19367cat confdefs.h >>conftest.$ac_ext
19368cat >>conftest.$ac_ext <<_ACEOF
19369/* end confdefs.h.  */
19370#include <ctype.h>
19371#if ((' ' & 0x0FF) == 0x020)
19372# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19373# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19374#else
19375# define ISLOWER(c) \
19376                   (('a' <= (c) && (c) <= 'i') \
19377                     || ('j' <= (c) && (c) <= 'r') \
19378                     || ('s' <= (c) && (c) <= 'z'))
19379# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19380#endif
19381
19382#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19383int
19384main ()
19385{
19386  int i;
19387  for (i = 0; i < 256; i++)
19388    if (XOR (islower (i), ISLOWER (i))
19389        || toupper (i) != TOUPPER (i))
19390      exit(2);
19391  exit (0);
19392}
19393_ACEOF
19394rm -f conftest$ac_exeext
19395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19396  (eval $ac_link) 2>&5
19397  ac_status=$?
19398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19401  (eval $ac_try) 2>&5
19402  ac_status=$?
19403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404  (exit $ac_status); }; }; then
19405  :
19406else
19407  echo "$as_me: program exited with status $ac_status" >&5
19408echo "$as_me: failed program was:" >&5
19409sed 's/^/| /' conftest.$ac_ext >&5
19410
19411( exit $ac_status )
19412ac_cv_header_stdc=no
19413fi
19414rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19415fi
19416fi
19417fi
19418echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19419echo "${ECHO_T}$ac_cv_header_stdc" >&6
19420if test $ac_cv_header_stdc = yes; then
19421
19422cat >>confdefs.h <<\_ACEOF
19423#define STDC_HEADERS 1
19424_ACEOF
19425
19426fi
19427
19428echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19429echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19430if test "${ac_cv_header_sys_wait_h+set}" = set; then
19431  echo $ECHO_N "(cached) $ECHO_C" >&6
19432else
19433  cat >conftest.$ac_ext <<_ACEOF
19434#line $LINENO "configure"
19435/* confdefs.h.  */
19436_ACEOF
19437cat confdefs.h >>conftest.$ac_ext
19438cat >>conftest.$ac_ext <<_ACEOF
19439/* end confdefs.h.  */
19440#include <sys/types.h>
19441#include <sys/wait.h>
19442#ifndef WEXITSTATUS
19443# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19444#endif
19445#ifndef WIFEXITED
19446# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19447#endif
19448
19449int
19450main ()
19451{
19452  int s;
19453  wait (&s);
19454  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19455  ;
19456  return 0;
19457}
19458_ACEOF
19459rm -f conftest.$ac_objext
19460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19461  (eval $ac_compile) 2>&5
19462  ac_status=$?
19463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464  (exit $ac_status); } &&
19465         { ac_try='test -s conftest.$ac_objext'
19466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19467  (eval $ac_try) 2>&5
19468  ac_status=$?
19469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470  (exit $ac_status); }; }; then
19471  ac_cv_header_sys_wait_h=yes
19472else
19473  echo "$as_me: failed program was:" >&5
19474sed 's/^/| /' conftest.$ac_ext >&5
19475
19476ac_cv_header_sys_wait_h=no
19477fi
19478rm -f conftest.$ac_objext conftest.$ac_ext
19479fi
19480echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19481echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19482if test $ac_cv_header_sys_wait_h = yes; then
19483
19484cat >>confdefs.h <<\_ACEOF
19485#define HAVE_SYS_WAIT_H 1
19486_ACEOF
19487
19488fi
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19500do
19501as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19502if eval "test \"\${$as_ac_Header+set}\" = set"; then
19503  echo "$as_me:$LINENO: checking for $ac_header" >&5
19504echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19505if eval "test \"\${$as_ac_Header+set}\" = set"; then
19506  echo $ECHO_N "(cached) $ECHO_C" >&6
19507fi
19508echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19509echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19510else
19511  # Is the header compilable?
19512echo "$as_me:$LINENO: checking $ac_header usability" >&5
19513echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19514cat >conftest.$ac_ext <<_ACEOF
19515#line $LINENO "configure"
19516/* confdefs.h.  */
19517_ACEOF
19518cat confdefs.h >>conftest.$ac_ext
19519cat >>conftest.$ac_ext <<_ACEOF
19520/* end confdefs.h.  */
19521$ac_includes_default
19522#include <$ac_header>
19523_ACEOF
19524rm -f conftest.$ac_objext
19525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19526  (eval $ac_compile) 2>&5
19527  ac_status=$?
19528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529  (exit $ac_status); } &&
19530         { ac_try='test -s conftest.$ac_objext'
19531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19532  (eval $ac_try) 2>&5
19533  ac_status=$?
19534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535  (exit $ac_status); }; }; then
19536  ac_header_compiler=yes
19537else
19538  echo "$as_me: failed program was:" >&5
19539sed 's/^/| /' conftest.$ac_ext >&5
19540
19541ac_header_compiler=no
19542fi
19543rm -f conftest.$ac_objext conftest.$ac_ext
19544echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19545echo "${ECHO_T}$ac_header_compiler" >&6
19546
19547# Is the header present?
19548echo "$as_me:$LINENO: checking $ac_header presence" >&5
19549echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19550cat >conftest.$ac_ext <<_ACEOF
19551#line $LINENO "configure"
19552/* confdefs.h.  */
19553_ACEOF
19554cat confdefs.h >>conftest.$ac_ext
19555cat >>conftest.$ac_ext <<_ACEOF
19556/* end confdefs.h.  */
19557#include <$ac_header>
19558_ACEOF
19559if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19560  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19561  ac_status=$?
19562  grep -v '^ *+' conftest.er1 >conftest.err
19563  rm -f conftest.er1
19564  cat conftest.err >&5
19565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566  (exit $ac_status); } >/dev/null; then
19567  if test -s conftest.err; then
19568    ac_cpp_err=$ac_c_preproc_warn_flag
19569  else
19570    ac_cpp_err=
19571  fi
19572else
19573  ac_cpp_err=yes
19574fi
19575if test -z "$ac_cpp_err"; then
19576  ac_header_preproc=yes
19577else
19578  echo "$as_me: failed program was:" >&5
19579sed 's/^/| /' conftest.$ac_ext >&5
19580
19581  ac_header_preproc=no
19582fi
19583rm -f conftest.err conftest.$ac_ext
19584echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19585echo "${ECHO_T}$ac_header_preproc" >&6
19586
19587# So?  What about this header?
19588case $ac_header_compiler:$ac_header_preproc in
19589  yes:no )
19590    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19591echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19592    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19593echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19594    (
19595      cat <<\_ASBOX
19596## ------------------------------------ ##
19597## Report this to bug-autoconf@gnu.org. ##
19598## ------------------------------------ ##
19599_ASBOX
19600    ) |
19601      sed "s/^/$as_me: WARNING:     /" >&2
19602    ;;
19603  no:yes )
19604    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19605echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19606    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19607echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19608    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19609echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19610    (
19611      cat <<\_ASBOX
19612## ------------------------------------ ##
19613## Report this to bug-autoconf@gnu.org. ##
19614## ------------------------------------ ##
19615_ASBOX
19616    ) |
19617      sed "s/^/$as_me: WARNING:     /" >&2
19618    ;;
19619esac
19620echo "$as_me:$LINENO: checking for $ac_header" >&5
19621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19622if eval "test \"\${$as_ac_Header+set}\" = set"; then
19623  echo $ECHO_N "(cached) $ECHO_C" >&6
19624else
19625  eval "$as_ac_Header=$ac_header_preproc"
19626fi
19627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19628echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19629
19630fi
19631if test `eval echo '${'$as_ac_Header'}'` = yes; then
19632  cat >>confdefs.h <<_ACEOF
19633#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19634_ACEOF
19635
19636fi
19637
19638done
19639
19640
19641
19642
19643
19644
19645for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19646do
19647as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19648if eval "test \"\${$as_ac_Header+set}\" = set"; then
19649  echo "$as_me:$LINENO: checking for $ac_header" >&5
19650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19651if eval "test \"\${$as_ac_Header+set}\" = set"; then
19652  echo $ECHO_N "(cached) $ECHO_C" >&6
19653fi
19654echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19655echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19656else
19657  # Is the header compilable?
19658echo "$as_me:$LINENO: checking $ac_header usability" >&5
19659echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19660cat >conftest.$ac_ext <<_ACEOF
19661#line $LINENO "configure"
19662/* confdefs.h.  */
19663_ACEOF
19664cat confdefs.h >>conftest.$ac_ext
19665cat >>conftest.$ac_ext <<_ACEOF
19666/* end confdefs.h.  */
19667$ac_includes_default
19668#include <$ac_header>
19669_ACEOF
19670rm -f conftest.$ac_objext
19671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19672  (eval $ac_compile) 2>&5
19673  ac_status=$?
19674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675  (exit $ac_status); } &&
19676         { ac_try='test -s conftest.$ac_objext'
19677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19678  (eval $ac_try) 2>&5
19679  ac_status=$?
19680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681  (exit $ac_status); }; }; then
19682  ac_header_compiler=yes
19683else
19684  echo "$as_me: failed program was:" >&5
19685sed 's/^/| /' conftest.$ac_ext >&5
19686
19687ac_header_compiler=no
19688fi
19689rm -f conftest.$ac_objext conftest.$ac_ext
19690echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19691echo "${ECHO_T}$ac_header_compiler" >&6
19692
19693# Is the header present?
19694echo "$as_me:$LINENO: checking $ac_header presence" >&5
19695echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19696cat >conftest.$ac_ext <<_ACEOF
19697#line $LINENO "configure"
19698/* confdefs.h.  */
19699_ACEOF
19700cat confdefs.h >>conftest.$ac_ext
19701cat >>conftest.$ac_ext <<_ACEOF
19702/* end confdefs.h.  */
19703#include <$ac_header>
19704_ACEOF
19705if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19706  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19707  ac_status=$?
19708  grep -v '^ *+' conftest.er1 >conftest.err
19709  rm -f conftest.er1
19710  cat conftest.err >&5
19711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712  (exit $ac_status); } >/dev/null; then
19713  if test -s conftest.err; then
19714    ac_cpp_err=$ac_c_preproc_warn_flag
19715  else
19716    ac_cpp_err=
19717  fi
19718else
19719  ac_cpp_err=yes
19720fi
19721if test -z "$ac_cpp_err"; then
19722  ac_header_preproc=yes
19723else
19724  echo "$as_me: failed program was:" >&5
19725sed 's/^/| /' conftest.$ac_ext >&5
19726
19727  ac_header_preproc=no
19728fi
19729rm -f conftest.err conftest.$ac_ext
19730echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19731echo "${ECHO_T}$ac_header_preproc" >&6
19732
19733# So?  What about this header?
19734case $ac_header_compiler:$ac_header_preproc in
19735  yes:no )
19736    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19737echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19738    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19739echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19740    (
19741      cat <<\_ASBOX
19742## ------------------------------------ ##
19743## Report this to bug-autoconf@gnu.org. ##
19744## ------------------------------------ ##
19745_ASBOX
19746    ) |
19747      sed "s/^/$as_me: WARNING:     /" >&2
19748    ;;
19749  no:yes )
19750    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19751echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19752    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19753echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19754    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19755echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19756    (
19757      cat <<\_ASBOX
19758## ------------------------------------ ##
19759## Report this to bug-autoconf@gnu.org. ##
19760## ------------------------------------ ##
19761_ASBOX
19762    ) |
19763      sed "s/^/$as_me: WARNING:     /" >&2
19764    ;;
19765esac
19766echo "$as_me:$LINENO: checking for $ac_header" >&5
19767echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19768if eval "test \"\${$as_ac_Header+set}\" = set"; then
19769  echo $ECHO_N "(cached) $ECHO_C" >&6
19770else
19771  eval "$as_ac_Header=$ac_header_preproc"
19772fi
19773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19774echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19775
19776fi
19777if test `eval echo '${'$as_ac_Header'}'` = yes; then
19778  cat >>confdefs.h <<_ACEOF
19779#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19780_ACEOF
19781
19782fi
19783
19784done
19785
19786
19787
19788
19789for ac_header in dlfcn.h link.h
19790do
19791as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19792if eval "test \"\${$as_ac_Header+set}\" = set"; then
19793  echo "$as_me:$LINENO: checking for $ac_header" >&5
19794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19795if eval "test \"\${$as_ac_Header+set}\" = set"; then
19796  echo $ECHO_N "(cached) $ECHO_C" >&6
19797fi
19798echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19799echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19800else
19801  # Is the header compilable?
19802echo "$as_me:$LINENO: checking $ac_header usability" >&5
19803echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19804cat >conftest.$ac_ext <<_ACEOF
19805#line $LINENO "configure"
19806/* confdefs.h.  */
19807_ACEOF
19808cat confdefs.h >>conftest.$ac_ext
19809cat >>conftest.$ac_ext <<_ACEOF
19810/* end confdefs.h.  */
19811$ac_includes_default
19812#include <$ac_header>
19813_ACEOF
19814rm -f conftest.$ac_objext
19815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19816  (eval $ac_compile) 2>&5
19817  ac_status=$?
19818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819  (exit $ac_status); } &&
19820         { ac_try='test -s conftest.$ac_objext'
19821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822  (eval $ac_try) 2>&5
19823  ac_status=$?
19824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825  (exit $ac_status); }; }; then
19826  ac_header_compiler=yes
19827else
19828  echo "$as_me: failed program was:" >&5
19829sed 's/^/| /' conftest.$ac_ext >&5
19830
19831ac_header_compiler=no
19832fi
19833rm -f conftest.$ac_objext conftest.$ac_ext
19834echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19835echo "${ECHO_T}$ac_header_compiler" >&6
19836
19837# Is the header present?
19838echo "$as_me:$LINENO: checking $ac_header presence" >&5
19839echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19840cat >conftest.$ac_ext <<_ACEOF
19841#line $LINENO "configure"
19842/* confdefs.h.  */
19843_ACEOF
19844cat confdefs.h >>conftest.$ac_ext
19845cat >>conftest.$ac_ext <<_ACEOF
19846/* end confdefs.h.  */
19847#include <$ac_header>
19848_ACEOF
19849if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19850  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19851  ac_status=$?
19852  grep -v '^ *+' conftest.er1 >conftest.err
19853  rm -f conftest.er1
19854  cat conftest.err >&5
19855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856  (exit $ac_status); } >/dev/null; then
19857  if test -s conftest.err; then
19858    ac_cpp_err=$ac_c_preproc_warn_flag
19859  else
19860    ac_cpp_err=
19861  fi
19862else
19863  ac_cpp_err=yes
19864fi
19865if test -z "$ac_cpp_err"; then
19866  ac_header_preproc=yes
19867else
19868  echo "$as_me: failed program was:" >&5
19869sed 's/^/| /' conftest.$ac_ext >&5
19870
19871  ac_header_preproc=no
19872fi
19873rm -f conftest.err conftest.$ac_ext
19874echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19875echo "${ECHO_T}$ac_header_preproc" >&6
19876
19877# So?  What about this header?
19878case $ac_header_compiler:$ac_header_preproc in
19879  yes:no )
19880    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19881echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19882    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19883echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19884    (
19885      cat <<\_ASBOX
19886## ------------------------------------ ##
19887## Report this to bug-autoconf@gnu.org. ##
19888## ------------------------------------ ##
19889_ASBOX
19890    ) |
19891      sed "s/^/$as_me: WARNING:     /" >&2
19892    ;;
19893  no:yes )
19894    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19895echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19896    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19897echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19898    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19899echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19900    (
19901      cat <<\_ASBOX
19902## ------------------------------------ ##
19903## Report this to bug-autoconf@gnu.org. ##
19904## ------------------------------------ ##
19905_ASBOX
19906    ) |
19907      sed "s/^/$as_me: WARNING:     /" >&2
19908    ;;
19909esac
19910echo "$as_me:$LINENO: checking for $ac_header" >&5
19911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19912if eval "test \"\${$as_ac_Header+set}\" = set"; then
19913  echo $ECHO_N "(cached) $ECHO_C" >&6
19914else
19915  eval "$as_ac_Header=$ac_header_preproc"
19916fi
19917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19918echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19919
19920fi
19921if test `eval echo '${'$as_ac_Header'}'` = yes; then
19922  cat >>confdefs.h <<_ACEOF
19923#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19924_ACEOF
19925
19926fi
19927
19928done
19929
19930
19931
19932echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19933echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19934if test "${ac_cv_c_const+set}" = set; then
19935  echo $ECHO_N "(cached) $ECHO_C" >&6
19936else
19937  cat >conftest.$ac_ext <<_ACEOF
19938#line $LINENO "configure"
19939/* confdefs.h.  */
19940_ACEOF
19941cat confdefs.h >>conftest.$ac_ext
19942cat >>conftest.$ac_ext <<_ACEOF
19943/* end confdefs.h.  */
19944
19945int
19946main ()
19947{
19948/* FIXME: Include the comments suggested by Paul. */
19949#ifndef __cplusplus
19950  /* Ultrix mips cc rejects this.  */
19951  typedef int charset[2];
19952  const charset x;
19953  /* SunOS 4.1.1 cc rejects this.  */
19954  char const *const *ccp;
19955  char **p;
19956  /* NEC SVR4.0.2 mips cc rejects this.  */
19957  struct point {int x, y;};
19958  static struct point const zero = {0,0};
19959  /* AIX XL C 1.02.0.0 rejects this.
19960     It does not let you subtract one const X* pointer from another in
19961     an arm of an if-expression whose if-part is not a constant
19962     expression */
19963  const char *g = "string";
19964  ccp = &g + (g ? g-g : 0);
19965  /* HPUX 7.0 cc rejects these. */
19966  ++ccp;
19967  p = (char**) ccp;
19968  ccp = (char const *const *) p;
19969  { /* SCO 3.2v4 cc rejects this.  */
19970    char *t;
19971    char const *s = 0 ? (char *) 0 : (char const *) 0;
19972
19973    *t++ = 0;
19974  }
19975  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19976    int x[] = {25, 17};
19977    const int *foo = &x[0];
19978    ++foo;
19979  }
19980  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19981    typedef const int *iptr;
19982    iptr p = 0;
19983    ++p;
19984  }
19985  { /* AIX XL C 1.02.0.0 rejects this saying
19986       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19987    struct s { int j; const int *ap[3]; };
19988    struct s *b; b->j = 5;
19989  }
19990  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19991    const int foo = 10;
19992  }
19993#endif
19994
19995  ;
19996  return 0;
19997}
19998_ACEOF
19999rm -f conftest.$ac_objext
20000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20001  (eval $ac_compile) 2>&5
20002  ac_status=$?
20003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004  (exit $ac_status); } &&
20005         { ac_try='test -s conftest.$ac_objext'
20006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20007  (eval $ac_try) 2>&5
20008  ac_status=$?
20009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010  (exit $ac_status); }; }; then
20011  ac_cv_c_const=yes
20012else
20013  echo "$as_me: failed program was:" >&5
20014sed 's/^/| /' conftest.$ac_ext >&5
20015
20016ac_cv_c_const=no
20017fi
20018rm -f conftest.$ac_objext conftest.$ac_ext
20019fi
20020echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20021echo "${ECHO_T}$ac_cv_c_const" >&6
20022if test $ac_cv_c_const = no; then
20023
20024cat >>confdefs.h <<\_ACEOF
20025#define const
20026_ACEOF
20027
20028fi
20029
20030echo "$as_me:$LINENO: checking for inline" >&5
20031echo $ECHO_N "checking for inline... $ECHO_C" >&6
20032if test "${ac_cv_c_inline+set}" = set; then
20033  echo $ECHO_N "(cached) $ECHO_C" >&6
20034else
20035  ac_cv_c_inline=no
20036for ac_kw in inline __inline__ __inline; do
20037  cat >conftest.$ac_ext <<_ACEOF
20038#line $LINENO "configure"
20039/* confdefs.h.  */
20040_ACEOF
20041cat confdefs.h >>conftest.$ac_ext
20042cat >>conftest.$ac_ext <<_ACEOF
20043/* end confdefs.h.  */
20044#ifndef __cplusplus
20045typedef int foo_t;
20046static $ac_kw foo_t static_foo () {return 0; }
20047$ac_kw foo_t foo () {return 0; }
20048#endif
20049
20050_ACEOF
20051rm -f conftest.$ac_objext
20052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20053  (eval $ac_compile) 2>&5
20054  ac_status=$?
20055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056  (exit $ac_status); } &&
20057         { ac_try='test -s conftest.$ac_objext'
20058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20059  (eval $ac_try) 2>&5
20060  ac_status=$?
20061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062  (exit $ac_status); }; }; then
20063  ac_cv_c_inline=$ac_kw; break
20064else
20065  echo "$as_me: failed program was:" >&5
20066sed 's/^/| /' conftest.$ac_ext >&5
20067
20068fi
20069rm -f conftest.$ac_objext conftest.$ac_ext
20070done
20071
20072fi
20073echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20074echo "${ECHO_T}$ac_cv_c_inline" >&6
20075case $ac_cv_c_inline in
20076  inline | yes) ;;
20077  no)
20078cat >>confdefs.h <<\_ACEOF
20079#define inline
20080_ACEOF
20081 ;;
20082  *)  cat >>confdefs.h <<_ACEOF
20083#define inline $ac_cv_c_inline
20084_ACEOF
20085 ;;
20086esac
20087
20088
20089echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20090echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20091if test "${ac_cv_c_bigendian+set}" = set; then
20092  echo $ECHO_N "(cached) $ECHO_C" >&6
20093else
20094  # See if sys/param.h defines the BYTE_ORDER macro.
20095cat >conftest.$ac_ext <<_ACEOF
20096#line $LINENO "configure"
20097/* confdefs.h.  */
20098_ACEOF
20099cat confdefs.h >>conftest.$ac_ext
20100cat >>conftest.$ac_ext <<_ACEOF
20101/* end confdefs.h.  */
20102#include <sys/types.h>
20103#include <sys/param.h>
20104
20105int
20106main ()
20107{
20108#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20109 bogus endian macros
20110#endif
20111
20112  ;
20113  return 0;
20114}
20115_ACEOF
20116rm -f conftest.$ac_objext
20117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20118  (eval $ac_compile) 2>&5
20119  ac_status=$?
20120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121  (exit $ac_status); } &&
20122         { ac_try='test -s conftest.$ac_objext'
20123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20124  (eval $ac_try) 2>&5
20125  ac_status=$?
20126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127  (exit $ac_status); }; }; then
20128  # It does; now see whether it defined to BIG_ENDIAN or not.
20129cat >conftest.$ac_ext <<_ACEOF
20130#line $LINENO "configure"
20131/* confdefs.h.  */
20132_ACEOF
20133cat confdefs.h >>conftest.$ac_ext
20134cat >>conftest.$ac_ext <<_ACEOF
20135/* end confdefs.h.  */
20136#include <sys/types.h>
20137#include <sys/param.h>
20138
20139int
20140main ()
20141{
20142#if BYTE_ORDER != BIG_ENDIAN
20143 not big endian
20144#endif
20145
20146  ;
20147  return 0;
20148}
20149_ACEOF
20150rm -f conftest.$ac_objext
20151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20152  (eval $ac_compile) 2>&5
20153  ac_status=$?
20154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155  (exit $ac_status); } &&
20156         { ac_try='test -s conftest.$ac_objext'
20157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158  (eval $ac_try) 2>&5
20159  ac_status=$?
20160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161  (exit $ac_status); }; }; then
20162  ac_cv_c_bigendian=yes
20163else
20164  echo "$as_me: failed program was:" >&5
20165sed 's/^/| /' conftest.$ac_ext >&5
20166
20167ac_cv_c_bigendian=no
20168fi
20169rm -f conftest.$ac_objext conftest.$ac_ext
20170else
20171  echo "$as_me: failed program was:" >&5
20172sed 's/^/| /' conftest.$ac_ext >&5
20173
20174# It does not; compile a test program.
20175if test "$cross_compiling" = yes; then
20176  # try to guess the endianness by grepping values into an object file
20177  ac_cv_c_bigendian=unknown
20178  cat >conftest.$ac_ext <<_ACEOF
20179#line $LINENO "configure"
20180/* confdefs.h.  */
20181_ACEOF
20182cat confdefs.h >>conftest.$ac_ext
20183cat >>conftest.$ac_ext <<_ACEOF
20184/* end confdefs.h.  */
20185short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20186short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20187void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20188short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20189short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20190void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20191int
20192main ()
20193{
20194 _ascii (); _ebcdic ();
20195  ;
20196  return 0;
20197}
20198_ACEOF
20199rm -f conftest.$ac_objext
20200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20201  (eval $ac_compile) 2>&5
20202  ac_status=$?
20203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204  (exit $ac_status); } &&
20205         { ac_try='test -s conftest.$ac_objext'
20206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20207  (eval $ac_try) 2>&5
20208  ac_status=$?
20209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210  (exit $ac_status); }; }; then
20211  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20212  ac_cv_c_bigendian=yes
20213fi
20214if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20215  if test "$ac_cv_c_bigendian" = unknown; then
20216    ac_cv_c_bigendian=no
20217  else
20218    # finding both strings is unlikely to happen, but who knows?
20219    ac_cv_c_bigendian=unknown
20220  fi
20221fi
20222else
20223  echo "$as_me: failed program was:" >&5
20224sed 's/^/| /' conftest.$ac_ext >&5
20225
20226fi
20227rm -f conftest.$ac_objext conftest.$ac_ext
20228else
20229  cat >conftest.$ac_ext <<_ACEOF
20230#line $LINENO "configure"
20231/* confdefs.h.  */
20232_ACEOF
20233cat confdefs.h >>conftest.$ac_ext
20234cat >>conftest.$ac_ext <<_ACEOF
20235/* end confdefs.h.  */
20236int
20237main ()
20238{
20239  /* Are we little or big endian?  From Harbison&Steele.  */
20240  union
20241  {
20242    long l;
20243    char c[sizeof (long)];
20244  } u;
20245  u.l = 1;
20246  exit (u.c[sizeof (long) - 1] == 1);
20247}
20248_ACEOF
20249rm -f conftest$ac_exeext
20250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20251  (eval $ac_link) 2>&5
20252  ac_status=$?
20253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20256  (eval $ac_try) 2>&5
20257  ac_status=$?
20258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259  (exit $ac_status); }; }; then
20260  ac_cv_c_bigendian=no
20261else
20262  echo "$as_me: program exited with status $ac_status" >&5
20263echo "$as_me: failed program was:" >&5
20264sed 's/^/| /' conftest.$ac_ext >&5
20265
20266( exit $ac_status )
20267ac_cv_c_bigendian=yes
20268fi
20269rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20270fi
20271fi
20272rm -f conftest.$ac_objext conftest.$ac_ext
20273fi
20274echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20275echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20276case $ac_cv_c_bigendian in
20277  yes)
20278    cat >>confdefs.h <<\_ACEOF
20279#define ENDIAN_BIG 1
20280_ACEOF
20281 ;;
20282  no)
20283    cat >>confdefs.h <<\_ACEOF
20284#define ENDIAN_LITTLE 1
20285_ACEOF
20286 ;;
20287  *)
20288    { { echo "$as_me:$LINENO: error: unknown endianness
20289presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20290echo "$as_me: error: unknown endianness
20291presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20292   { (exit 1); exit 1; }; } ;;
20293esac
20294
20295
20296echo "$as_me:$LINENO: checking for pid_t" >&5
20297echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20298if test "${ac_cv_type_pid_t+set}" = set; then
20299  echo $ECHO_N "(cached) $ECHO_C" >&6
20300else
20301  cat >conftest.$ac_ext <<_ACEOF
20302#line $LINENO "configure"
20303/* confdefs.h.  */
20304_ACEOF
20305cat confdefs.h >>conftest.$ac_ext
20306cat >>conftest.$ac_ext <<_ACEOF
20307/* end confdefs.h.  */
20308$ac_includes_default
20309int
20310main ()
20311{
20312if ((pid_t *) 0)
20313  return 0;
20314if (sizeof (pid_t))
20315  return 0;
20316  ;
20317  return 0;
20318}
20319_ACEOF
20320rm -f conftest.$ac_objext
20321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20322  (eval $ac_compile) 2>&5
20323  ac_status=$?
20324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325  (exit $ac_status); } &&
20326         { ac_try='test -s conftest.$ac_objext'
20327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20328  (eval $ac_try) 2>&5
20329  ac_status=$?
20330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331  (exit $ac_status); }; }; then
20332  ac_cv_type_pid_t=yes
20333else
20334  echo "$as_me: failed program was:" >&5
20335sed 's/^/| /' conftest.$ac_ext >&5
20336
20337ac_cv_type_pid_t=no
20338fi
20339rm -f conftest.$ac_objext conftest.$ac_ext
20340fi
20341echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20342echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20343if test $ac_cv_type_pid_t = yes; then
20344  :
20345else
20346
20347cat >>confdefs.h <<_ACEOF
20348#define pid_t int
20349_ACEOF
20350
20351fi
20352
20353echo "$as_me:$LINENO: checking for size_t" >&5
20354echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20355if test "${ac_cv_type_size_t+set}" = set; then
20356  echo $ECHO_N "(cached) $ECHO_C" >&6
20357else
20358  cat >conftest.$ac_ext <<_ACEOF
20359#line $LINENO "configure"
20360/* confdefs.h.  */
20361_ACEOF
20362cat confdefs.h >>conftest.$ac_ext
20363cat >>conftest.$ac_ext <<_ACEOF
20364/* end confdefs.h.  */
20365$ac_includes_default
20366int
20367main ()
20368{
20369if ((size_t *) 0)
20370  return 0;
20371if (sizeof (size_t))
20372  return 0;
20373  ;
20374  return 0;
20375}
20376_ACEOF
20377rm -f conftest.$ac_objext
20378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20379  (eval $ac_compile) 2>&5
20380  ac_status=$?
20381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382  (exit $ac_status); } &&
20383         { ac_try='test -s conftest.$ac_objext'
20384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385  (eval $ac_try) 2>&5
20386  ac_status=$?
20387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388  (exit $ac_status); }; }; then
20389  ac_cv_type_size_t=yes
20390else
20391  echo "$as_me: failed program was:" >&5
20392sed 's/^/| /' conftest.$ac_ext >&5
20393
20394ac_cv_type_size_t=no
20395fi
20396rm -f conftest.$ac_objext conftest.$ac_ext
20397fi
20398echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20399echo "${ECHO_T}$ac_cv_type_size_t" >&6
20400if test $ac_cv_type_size_t = yes; then
20401  :
20402else
20403
20404cat >>confdefs.h <<_ACEOF
20405#define size_t unsigned
20406_ACEOF
20407
20408fi
20409
20410echo "$as_me:$LINENO: checking for int64_t" >&5
20411echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20412if test "${ac_cv_type_int64_t+set}" = set; then
20413  echo $ECHO_N "(cached) $ECHO_C" >&6
20414else
20415  cat >conftest.$ac_ext <<_ACEOF
20416#line $LINENO "configure"
20417/* confdefs.h.  */
20418_ACEOF
20419cat confdefs.h >>conftest.$ac_ext
20420cat >>conftest.$ac_ext <<_ACEOF
20421/* end confdefs.h.  */
20422$ac_includes_default
20423int
20424main ()
20425{
20426if ((int64_t *) 0)
20427  return 0;
20428if (sizeof (int64_t))
20429  return 0;
20430  ;
20431  return 0;
20432}
20433_ACEOF
20434rm -f conftest.$ac_objext
20435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20436  (eval $ac_compile) 2>&5
20437  ac_status=$?
20438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439  (exit $ac_status); } &&
20440         { ac_try='test -s conftest.$ac_objext'
20441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20442  (eval $ac_try) 2>&5
20443  ac_status=$?
20444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445  (exit $ac_status); }; }; then
20446  ac_cv_type_int64_t=yes
20447else
20448  echo "$as_me: failed program was:" >&5
20449sed 's/^/| /' conftest.$ac_ext >&5
20450
20451ac_cv_type_int64_t=no
20452fi
20453rm -f conftest.$ac_objext conftest.$ac_ext
20454fi
20455echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20456echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20457if test $ac_cv_type_int64_t = yes; then
20458
20459cat >>confdefs.h <<_ACEOF
20460#define HAVE_INT64_T 1
20461_ACEOF
20462
20463
20464else
20465  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20466echo "$as_me: error: Type int64_t required but not found" >&2;}
20467   { (exit 1); exit 1; }; }
20468fi
20469
20470echo "$as_me:$LINENO: checking for uint64_t" >&5
20471echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20472if test "${ac_cv_type_uint64_t+set}" = set; then
20473  echo $ECHO_N "(cached) $ECHO_C" >&6
20474else
20475  cat >conftest.$ac_ext <<_ACEOF
20476#line $LINENO "configure"
20477/* confdefs.h.  */
20478_ACEOF
20479cat confdefs.h >>conftest.$ac_ext
20480cat >>conftest.$ac_ext <<_ACEOF
20481/* end confdefs.h.  */
20482$ac_includes_default
20483int
20484main ()
20485{
20486if ((uint64_t *) 0)
20487  return 0;
20488if (sizeof (uint64_t))
20489  return 0;
20490  ;
20491  return 0;
20492}
20493_ACEOF
20494rm -f conftest.$ac_objext
20495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20496  (eval $ac_compile) 2>&5
20497  ac_status=$?
20498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499  (exit $ac_status); } &&
20500         { ac_try='test -s conftest.$ac_objext'
20501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502  (eval $ac_try) 2>&5
20503  ac_status=$?
20504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505  (exit $ac_status); }; }; then
20506  ac_cv_type_uint64_t=yes
20507else
20508  echo "$as_me: failed program was:" >&5
20509sed 's/^/| /' conftest.$ac_ext >&5
20510
20511ac_cv_type_uint64_t=no
20512fi
20513rm -f conftest.$ac_objext conftest.$ac_ext
20514fi
20515echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20516echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20517if test $ac_cv_type_uint64_t = yes; then
20518
20519cat >>confdefs.h <<_ACEOF
20520#define HAVE_UINT64_T 1
20521_ACEOF
20522
20523
20524else
20525  { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20526echo "$as_me: error: Type uint64_t required but not found" >&2;}
20527   { (exit 1); exit 1; }; }
20528fi
20529
20530echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20531echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20532if test "${ac_cv_header_time+set}" = set; then
20533  echo $ECHO_N "(cached) $ECHO_C" >&6
20534else
20535  cat >conftest.$ac_ext <<_ACEOF
20536#line $LINENO "configure"
20537/* confdefs.h.  */
20538_ACEOF
20539cat confdefs.h >>conftest.$ac_ext
20540cat >>conftest.$ac_ext <<_ACEOF
20541/* end confdefs.h.  */
20542#include <sys/types.h>
20543#include <sys/time.h>
20544#include <time.h>
20545
20546int
20547main ()
20548{
20549if ((struct tm *) 0)
20550return 0;
20551  ;
20552  return 0;
20553}
20554_ACEOF
20555rm -f conftest.$ac_objext
20556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20557  (eval $ac_compile) 2>&5
20558  ac_status=$?
20559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560  (exit $ac_status); } &&
20561         { ac_try='test -s conftest.$ac_objext'
20562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563  (eval $ac_try) 2>&5
20564  ac_status=$?
20565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566  (exit $ac_status); }; }; then
20567  ac_cv_header_time=yes
20568else
20569  echo "$as_me: failed program was:" >&5
20570sed 's/^/| /' conftest.$ac_ext >&5
20571
20572ac_cv_header_time=no
20573fi
20574rm -f conftest.$ac_objext conftest.$ac_ext
20575fi
20576echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20577echo "${ECHO_T}$ac_cv_header_time" >&6
20578if test $ac_cv_header_time = yes; then
20579
20580cat >>confdefs.h <<\_ACEOF
20581#define TIME_WITH_SYS_TIME 1
20582_ACEOF
20583
20584fi
20585
20586echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20587echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20588if test "${ac_cv_struct_tm+set}" = set; then
20589  echo $ECHO_N "(cached) $ECHO_C" >&6
20590else
20591  cat >conftest.$ac_ext <<_ACEOF
20592#line $LINENO "configure"
20593/* confdefs.h.  */
20594_ACEOF
20595cat confdefs.h >>conftest.$ac_ext
20596cat >>conftest.$ac_ext <<_ACEOF
20597/* end confdefs.h.  */
20598#include <sys/types.h>
20599#include <time.h>
20600
20601int
20602main ()
20603{
20604struct tm *tp; tp->tm_sec;
20605  ;
20606  return 0;
20607}
20608_ACEOF
20609rm -f conftest.$ac_objext
20610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20611  (eval $ac_compile) 2>&5
20612  ac_status=$?
20613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614  (exit $ac_status); } &&
20615         { ac_try='test -s conftest.$ac_objext'
20616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20617  (eval $ac_try) 2>&5
20618  ac_status=$?
20619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620  (exit $ac_status); }; }; then
20621  ac_cv_struct_tm=time.h
20622else
20623  echo "$as_me: failed program was:" >&5
20624sed 's/^/| /' conftest.$ac_ext >&5
20625
20626ac_cv_struct_tm=sys/time.h
20627fi
20628rm -f conftest.$ac_objext conftest.$ac_ext
20629fi
20630echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20631echo "${ECHO_T}$ac_cv_struct_tm" >&6
20632if test $ac_cv_struct_tm = sys/time.h; then
20633
20634cat >>confdefs.h <<\_ACEOF
20635#define TM_IN_SYS_TIME 1
20636_ACEOF
20637
20638fi
20639
20640
20641echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20642echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20643if test "${ac_cv_cxx_namespaces+set}" = set; then
20644  echo $ECHO_N "(cached) $ECHO_C" >&6
20645else
20646
20647
20648 ac_ext=cc
20649ac_cpp='$CXXCPP $CPPFLAGS'
20650ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20651ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20652ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20653
20654 cat >conftest.$ac_ext <<_ACEOF
20655#line $LINENO "configure"
20656/* confdefs.h.  */
20657_ACEOF
20658cat confdefs.h >>conftest.$ac_ext
20659cat >>conftest.$ac_ext <<_ACEOF
20660/* end confdefs.h.  */
20661namespace Outer { namespace Inner { int i = 0; }}
20662int
20663main ()
20664{
20665using namespace Outer::Inner; return i;
20666  ;
20667  return 0;
20668}
20669_ACEOF
20670rm -f conftest.$ac_objext
20671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20672  (eval $ac_compile) 2>&5
20673  ac_status=$?
20674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675  (exit $ac_status); } &&
20676         { ac_try='test -s conftest.$ac_objext'
20677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20678  (eval $ac_try) 2>&5
20679  ac_status=$?
20680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681  (exit $ac_status); }; }; then
20682  ac_cv_cxx_namespaces=yes
20683else
20684  echo "$as_me: failed program was:" >&5
20685sed 's/^/| /' conftest.$ac_ext >&5
20686
20687ac_cv_cxx_namespaces=no
20688fi
20689rm -f conftest.$ac_objext conftest.$ac_ext
20690 ac_ext=c
20691ac_cpp='$CPP $CPPFLAGS'
20692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20694ac_compiler_gnu=$ac_cv_c_compiler_gnu
20695
20696
20697fi
20698echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20699echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20700if test "$ac_cv_cxx_namespaces" = yes; then
20701
20702cat >>confdefs.h <<\_ACEOF
20703#define HAVE_NAMESPACES
20704_ACEOF
20705
20706fi
20707
20708echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20709echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20710if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20711  echo $ECHO_N "(cached) $ECHO_C" >&6
20712else
20713
20714
20715
20716  ac_ext=cc
20717ac_cpp='$CXXCPP $CPPFLAGS'
20718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20721
20722  cat >conftest.$ac_ext <<_ACEOF
20723#line $LINENO "configure"
20724/* confdefs.h.  */
20725_ACEOF
20726cat confdefs.h >>conftest.$ac_ext
20727cat >>conftest.$ac_ext <<_ACEOF
20728/* end confdefs.h.  */
20729#include <ext/hash_map>
20730#ifdef HAVE_NAMESPACES
20731using namespace std;
20732#endif
20733int
20734main ()
20735{
20736hash_map<int, int> t; return 0;
20737  ;
20738  return 0;
20739}
20740_ACEOF
20741rm -f conftest.$ac_objext
20742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20743  (eval $ac_compile) 2>&5
20744  ac_status=$?
20745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746  (exit $ac_status); } &&
20747         { ac_try='test -s conftest.$ac_objext'
20748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749  (eval $ac_try) 2>&5
20750  ac_status=$?
20751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752  (exit $ac_status); }; }; then
20753  ac_cv_cxx_have_ext_hash_map=std
20754else
20755  echo "$as_me: failed program was:" >&5
20756sed 's/^/| /' conftest.$ac_ext >&5
20757
20758ac_cv_cxx_have_ext_hash_map=no
20759fi
20760rm -f conftest.$ac_objext conftest.$ac_ext
20761  cat >conftest.$ac_ext <<_ACEOF
20762#line $LINENO "configure"
20763/* confdefs.h.  */
20764_ACEOF
20765cat confdefs.h >>conftest.$ac_ext
20766cat >>conftest.$ac_ext <<_ACEOF
20767/* end confdefs.h.  */
20768#include <ext/hash_map>
20769#ifdef HAVE_NAMESPACES
20770using namespace __gnu_cxx;
20771#endif
20772int
20773main ()
20774{
20775hash_map<int, int> t; return 0;
20776  ;
20777  return 0;
20778}
20779_ACEOF
20780rm -f conftest.$ac_objext
20781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20782  (eval $ac_compile) 2>&5
20783  ac_status=$?
20784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785  (exit $ac_status); } &&
20786         { ac_try='test -s conftest.$ac_objext'
20787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20788  (eval $ac_try) 2>&5
20789  ac_status=$?
20790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791  (exit $ac_status); }; }; then
20792  ac_cv_cxx_have_ext_hash_map=gnu
20793else
20794  echo "$as_me: failed program was:" >&5
20795sed 's/^/| /' conftest.$ac_ext >&5
20796
20797ac_cv_cxx_have_ext_hash_map=no
20798fi
20799rm -f conftest.$ac_objext conftest.$ac_ext
20800  ac_ext=c
20801ac_cpp='$CPP $CPPFLAGS'
20802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20804ac_compiler_gnu=$ac_cv_c_compiler_gnu
20805
20806
20807fi
20808echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20809echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20810if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20811
20812cat >>confdefs.h <<\_ACEOF
20813#define HAVE_STD_EXT_HASH_MAP
20814_ACEOF
20815
20816fi
20817if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20818
20819cat >>confdefs.h <<\_ACEOF
20820#define HAVE_GNU_EXT_HASH_MAP
20821_ACEOF
20822
20823fi
20824
20825echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20826echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20827if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20828  echo $ECHO_N "(cached) $ECHO_C" >&6
20829else
20830
20831
20832
20833  ac_ext=cc
20834ac_cpp='$CXXCPP $CPPFLAGS'
20835ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20836ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20837ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20838
20839  cat >conftest.$ac_ext <<_ACEOF
20840#line $LINENO "configure"
20841/* confdefs.h.  */
20842_ACEOF
20843cat confdefs.h >>conftest.$ac_ext
20844cat >>conftest.$ac_ext <<_ACEOF
20845/* end confdefs.h.  */
20846#include <ext/hash_set>
20847#ifdef HAVE_NAMESPACES
20848using namespace std;
20849#endif
20850int
20851main ()
20852{
20853hash_set<int> t; return 0;
20854  ;
20855  return 0;
20856}
20857_ACEOF
20858rm -f conftest.$ac_objext
20859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20860  (eval $ac_compile) 2>&5
20861  ac_status=$?
20862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863  (exit $ac_status); } &&
20864         { ac_try='test -s conftest.$ac_objext'
20865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866  (eval $ac_try) 2>&5
20867  ac_status=$?
20868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869  (exit $ac_status); }; }; then
20870  ac_cv_cxx_have_ext_hash_set=std
20871else
20872  echo "$as_me: failed program was:" >&5
20873sed 's/^/| /' conftest.$ac_ext >&5
20874
20875ac_cv_cxx_have_ext_hash_set=no
20876fi
20877rm -f conftest.$ac_objext conftest.$ac_ext
20878  cat >conftest.$ac_ext <<_ACEOF
20879#line $LINENO "configure"
20880/* confdefs.h.  */
20881_ACEOF
20882cat confdefs.h >>conftest.$ac_ext
20883cat >>conftest.$ac_ext <<_ACEOF
20884/* end confdefs.h.  */
20885#include <ext/hash_set>
20886#ifdef HAVE_NAMESPACES
20887using namespace __gnu_cxx;
20888#endif
20889int
20890main ()
20891{
20892hash_set<int> t; return 0;
20893  ;
20894  return 0;
20895}
20896_ACEOF
20897rm -f conftest.$ac_objext
20898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20899  (eval $ac_compile) 2>&5
20900  ac_status=$?
20901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902  (exit $ac_status); } &&
20903         { ac_try='test -s conftest.$ac_objext'
20904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20905  (eval $ac_try) 2>&5
20906  ac_status=$?
20907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908  (exit $ac_status); }; }; then
20909  ac_cv_cxx_have_ext_hash_set=gnu
20910else
20911  echo "$as_me: failed program was:" >&5
20912sed 's/^/| /' conftest.$ac_ext >&5
20913
20914ac_cv_cxx_have_ext_hash_set=no
20915fi
20916rm -f conftest.$ac_objext conftest.$ac_ext
20917  ac_ext=c
20918ac_cpp='$CPP $CPPFLAGS'
20919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20921ac_compiler_gnu=$ac_cv_c_compiler_gnu
20922
20923
20924fi
20925echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20926echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20927if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20928
20929cat >>confdefs.h <<\_ACEOF
20930#define HAVE_STD_EXT_HASH_SET
20931_ACEOF
20932
20933fi
20934if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20935
20936cat >>confdefs.h <<\_ACEOF
20937#define HAVE_GNU_EXT_HASH_SET
20938_ACEOF
20939
20940fi
20941
20942echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20943echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20944if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20945  echo $ECHO_N "(cached) $ECHO_C" >&6
20946else
20947
20948
20949
20950  ac_ext=cc
20951ac_cpp='$CXXCPP $CPPFLAGS'
20952ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20953ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20954ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20955
20956  cat >conftest.$ac_ext <<_ACEOF
20957#line $LINENO "configure"
20958/* confdefs.h.  */
20959_ACEOF
20960cat confdefs.h >>conftest.$ac_ext
20961cat >>conftest.$ac_ext <<_ACEOF
20962/* end confdefs.h.  */
20963#include <ext/slist>
20964#ifdef HAVE_NAMESPACES
20965using namespace std;
20966#endif
20967int
20968main ()
20969{
20970slist<int> s; return 0;
20971  ;
20972  return 0;
20973}
20974_ACEOF
20975rm -f conftest.$ac_objext
20976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20977  (eval $ac_compile) 2>&5
20978  ac_status=$?
20979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980  (exit $ac_status); } &&
20981         { ac_try='test -s conftest.$ac_objext'
20982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20983  (eval $ac_try) 2>&5
20984  ac_status=$?
20985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986  (exit $ac_status); }; }; then
20987  ac_cv_cxx_have_ext_slist=std
20988else
20989  echo "$as_me: failed program was:" >&5
20990sed 's/^/| /' conftest.$ac_ext >&5
20991
20992ac_cv_cxx_have_ext_slist=no
20993fi
20994rm -f conftest.$ac_objext conftest.$ac_ext
20995  cat >conftest.$ac_ext <<_ACEOF
20996#line $LINENO "configure"
20997/* confdefs.h.  */
20998_ACEOF
20999cat confdefs.h >>conftest.$ac_ext
21000cat >>conftest.$ac_ext <<_ACEOF
21001/* end confdefs.h.  */
21002#include <ext/slist>
21003#ifdef HAVE_NAMESPACES
21004using namespace __gnu_cxx;
21005#endif
21006int
21007main ()
21008{
21009slist<int> s; return 0;
21010  ;
21011  return 0;
21012}
21013_ACEOF
21014rm -f conftest.$ac_objext
21015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21016  (eval $ac_compile) 2>&5
21017  ac_status=$?
21018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019  (exit $ac_status); } &&
21020         { ac_try='test -s conftest.$ac_objext'
21021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21022  (eval $ac_try) 2>&5
21023  ac_status=$?
21024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025  (exit $ac_status); }; }; then
21026  ac_cv_cxx_have_ext_slist=gnu
21027else
21028  echo "$as_me: failed program was:" >&5
21029sed 's/^/| /' conftest.$ac_ext >&5
21030
21031ac_cv_cxx_have_ext_slist=no
21032fi
21033rm -f conftest.$ac_objext conftest.$ac_ext
21034
21035  ac_ext=c
21036ac_cpp='$CPP $CPPFLAGS'
21037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21039ac_compiler_gnu=$ac_cv_c_compiler_gnu
21040
21041
21042fi
21043echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21044echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21045if test "$ac_cv_cxx_have_ext_slist" = std; then
21046
21047cat >>confdefs.h <<\_ACEOF
21048#define HAVE_EXT_SLIST std
21049_ACEOF
21050
21051fi
21052if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21053
21054cat >>confdefs.h <<\_ACEOF
21055#define HAVE_EXT_SLIST gnu
21056_ACEOF
21057
21058fi
21059
21060echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21061echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21062if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21063  echo $ECHO_N "(cached) $ECHO_C" >&6
21064else
21065
21066
21067
21068  ac_ext=cc
21069ac_cpp='$CXXCPP $CPPFLAGS'
21070ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21071ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21072ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21073
21074  cat >conftest.$ac_ext <<_ACEOF
21075#line $LINENO "configure"
21076/* confdefs.h.  */
21077_ACEOF
21078cat confdefs.h >>conftest.$ac_ext
21079cat >>conftest.$ac_ext <<_ACEOF
21080/* end confdefs.h.  */
21081#include <iterator>
21082#ifdef HAVE_NAMESPACES
21083using namespace std;
21084#endif
21085int
21086main ()
21087{
21088iterator<int,int,int> t; return 0;
21089  ;
21090  return 0;
21091}
21092_ACEOF
21093rm -f conftest.$ac_objext
21094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21095  (eval $ac_compile) 2>&5
21096  ac_status=$?
21097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098  (exit $ac_status); } &&
21099         { ac_try='test -s conftest.$ac_objext'
21100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21101  (eval $ac_try) 2>&5
21102  ac_status=$?
21103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104  (exit $ac_status); }; }; then
21105  ac_cv_cxx_have_std_iterator=yes
21106else
21107  echo "$as_me: failed program was:" >&5
21108sed 's/^/| /' conftest.$ac_ext >&5
21109
21110ac_cv_cxx_have_std_iterator=no
21111fi
21112rm -f conftest.$ac_objext conftest.$ac_ext
21113  ac_ext=c
21114ac_cpp='$CPP $CPPFLAGS'
21115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21117ac_compiler_gnu=$ac_cv_c_compiler_gnu
21118
21119
21120fi
21121echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21122echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21123if test "$ac_cv_cxx_have_std_iterator" = yes; then
21124
21125cat >>confdefs.h <<\_ACEOF
21126#define HAVE_STD_ITERATOR
21127_ACEOF
21128
21129fi
21130
21131echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21132echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21133if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21134  echo $ECHO_N "(cached) $ECHO_C" >&6
21135else
21136
21137
21138
21139  ac_ext=cc
21140ac_cpp='$CXXCPP $CPPFLAGS'
21141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21144
21145  cat >conftest.$ac_ext <<_ACEOF
21146#line $LINENO "configure"
21147/* confdefs.h.  */
21148_ACEOF
21149cat confdefs.h >>conftest.$ac_ext
21150cat >>conftest.$ac_ext <<_ACEOF
21151/* end confdefs.h.  */
21152#include <iterator>
21153#ifdef HAVE_NAMESPACES
21154using namespace std;
21155#endif
21156int
21157main ()
21158{
21159bidirectional_iterator<int,int> t; return 0;
21160  ;
21161  return 0;
21162}
21163_ACEOF
21164rm -f conftest.$ac_objext
21165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21166  (eval $ac_compile) 2>&5
21167  ac_status=$?
21168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169  (exit $ac_status); } &&
21170         { ac_try='test -s conftest.$ac_objext'
21171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21172  (eval $ac_try) 2>&5
21173  ac_status=$?
21174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175  (exit $ac_status); }; }; then
21176  ac_cv_cxx_have_bi_iterator=yes
21177else
21178  echo "$as_me: failed program was:" >&5
21179sed 's/^/| /' conftest.$ac_ext >&5
21180
21181ac_cv_cxx_have_bi_iterator=no
21182fi
21183rm -f conftest.$ac_objext conftest.$ac_ext
21184  ac_ext=c
21185ac_cpp='$CPP $CPPFLAGS'
21186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21188ac_compiler_gnu=$ac_cv_c_compiler_gnu
21189
21190
21191fi
21192echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21193echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21194if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21195
21196cat >>confdefs.h <<\_ACEOF
21197#define HAVE_BI_ITERATOR
21198_ACEOF
21199
21200fi
21201
21202echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21203echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21204if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21205  echo $ECHO_N "(cached) $ECHO_C" >&6
21206else
21207
21208
21209
21210  ac_ext=cc
21211ac_cpp='$CXXCPP $CPPFLAGS'
21212ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21213ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21214ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21215
21216  cat >conftest.$ac_ext <<_ACEOF
21217#line $LINENO "configure"
21218/* confdefs.h.  */
21219_ACEOF
21220cat confdefs.h >>conftest.$ac_ext
21221cat >>conftest.$ac_ext <<_ACEOF
21222/* end confdefs.h.  */
21223#include <iterator>
21224#ifdef HAVE_NAMESPACES
21225using namespace std;
21226#endif
21227int
21228main ()
21229{
21230forward_iterator<int,int> t; return 0;
21231  ;
21232  return 0;
21233}
21234_ACEOF
21235rm -f conftest.$ac_objext
21236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21237  (eval $ac_compile) 2>&5
21238  ac_status=$?
21239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240  (exit $ac_status); } &&
21241         { ac_try='test -s conftest.$ac_objext'
21242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21243  (eval $ac_try) 2>&5
21244  ac_status=$?
21245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246  (exit $ac_status); }; }; then
21247  ac_cv_cxx_have_fwd_iterator=yes
21248else
21249  echo "$as_me: failed program was:" >&5
21250sed 's/^/| /' conftest.$ac_ext >&5
21251
21252ac_cv_cxx_have_fwd_iterator=no
21253fi
21254rm -f conftest.$ac_objext conftest.$ac_ext
21255  ac_ext=c
21256ac_cpp='$CPP $CPPFLAGS'
21257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21259ac_compiler_gnu=$ac_cv_c_compiler_gnu
21260
21261
21262fi
21263echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21264echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21265if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21266
21267cat >>confdefs.h <<\_ACEOF
21268#define HAVE_FWD_ITERATOR
21269_ACEOF
21270
21271fi
21272
21273
21274# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21275# for constant arguments.  Useless!
21276echo "$as_me:$LINENO: checking for working alloca.h" >&5
21277echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21278if test "${ac_cv_working_alloca_h+set}" = set; then
21279  echo $ECHO_N "(cached) $ECHO_C" >&6
21280else
21281  cat >conftest.$ac_ext <<_ACEOF
21282#line $LINENO "configure"
21283/* confdefs.h.  */
21284_ACEOF
21285cat confdefs.h >>conftest.$ac_ext
21286cat >>conftest.$ac_ext <<_ACEOF
21287/* end confdefs.h.  */
21288#include <alloca.h>
21289int
21290main ()
21291{
21292char *p = (char *) alloca (2 * sizeof (int));
21293  ;
21294  return 0;
21295}
21296_ACEOF
21297rm -f conftest.$ac_objext conftest$ac_exeext
21298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21299  (eval $ac_link) 2>&5
21300  ac_status=$?
21301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302  (exit $ac_status); } &&
21303         { ac_try='test -s conftest$ac_exeext'
21304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21305  (eval $ac_try) 2>&5
21306  ac_status=$?
21307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308  (exit $ac_status); }; }; then
21309  ac_cv_working_alloca_h=yes
21310else
21311  echo "$as_me: failed program was:" >&5
21312sed 's/^/| /' conftest.$ac_ext >&5
21313
21314ac_cv_working_alloca_h=no
21315fi
21316rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21317fi
21318echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21319echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21320if test $ac_cv_working_alloca_h = yes; then
21321
21322cat >>confdefs.h <<\_ACEOF
21323#define HAVE_ALLOCA_H 1
21324_ACEOF
21325
21326fi
21327
21328echo "$as_me:$LINENO: checking for alloca" >&5
21329echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21330if test "${ac_cv_func_alloca_works+set}" = set; then
21331  echo $ECHO_N "(cached) $ECHO_C" >&6
21332else
21333  cat >conftest.$ac_ext <<_ACEOF
21334#line $LINENO "configure"
21335/* confdefs.h.  */
21336_ACEOF
21337cat confdefs.h >>conftest.$ac_ext
21338cat >>conftest.$ac_ext <<_ACEOF
21339/* end confdefs.h.  */
21340#ifdef __GNUC__
21341# define alloca __builtin_alloca
21342#else
21343# ifdef _MSC_VER
21344#  include <malloc.h>
21345#  define alloca _alloca
21346# else
21347#  if HAVE_ALLOCA_H
21348#   include <alloca.h>
21349#  else
21350#   ifdef _AIX
21351 #pragma alloca
21352#   else
21353#    ifndef alloca /* predefined by HP cc +Olibcalls */
21354char *alloca ();
21355#    endif
21356#   endif
21357#  endif
21358# endif
21359#endif
21360
21361int
21362main ()
21363{
21364char *p = (char *) alloca (1);
21365  ;
21366  return 0;
21367}
21368_ACEOF
21369rm -f conftest.$ac_objext conftest$ac_exeext
21370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21371  (eval $ac_link) 2>&5
21372  ac_status=$?
21373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374  (exit $ac_status); } &&
21375         { ac_try='test -s conftest$ac_exeext'
21376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21377  (eval $ac_try) 2>&5
21378  ac_status=$?
21379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380  (exit $ac_status); }; }; then
21381  ac_cv_func_alloca_works=yes
21382else
21383  echo "$as_me: failed program was:" >&5
21384sed 's/^/| /' conftest.$ac_ext >&5
21385
21386ac_cv_func_alloca_works=no
21387fi
21388rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21389fi
21390echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21391echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21392
21393if test $ac_cv_func_alloca_works = yes; then
21394
21395cat >>confdefs.h <<\_ACEOF
21396#define HAVE_ALLOCA 1
21397_ACEOF
21398
21399else
21400  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21401# that cause trouble.  Some versions do not even contain alloca or
21402# contain a buggy version.  If you still want to use their alloca,
21403# use ar to extract alloca.o from them instead of compiling alloca.c.
21404
21405ALLOCA=alloca.$ac_objext
21406
21407cat >>confdefs.h <<\_ACEOF
21408#define C_ALLOCA 1
21409_ACEOF
21410
21411
21412echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21413echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21414if test "${ac_cv_os_cray+set}" = set; then
21415  echo $ECHO_N "(cached) $ECHO_C" >&6
21416else
21417  cat >conftest.$ac_ext <<_ACEOF
21418#line $LINENO "configure"
21419/* confdefs.h.  */
21420_ACEOF
21421cat confdefs.h >>conftest.$ac_ext
21422cat >>conftest.$ac_ext <<_ACEOF
21423/* end confdefs.h.  */
21424#if defined(CRAY) && ! defined(CRAY2)
21425webecray
21426#else
21427wenotbecray
21428#endif
21429
21430_ACEOF
21431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21432  $EGREP "webecray" >/dev/null 2>&1; then
21433  ac_cv_os_cray=yes
21434else
21435  ac_cv_os_cray=no
21436fi
21437rm -f conftest*
21438
21439fi
21440echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21441echo "${ECHO_T}$ac_cv_os_cray" >&6
21442if test $ac_cv_os_cray = yes; then
21443  for ac_func in _getb67 GETB67 getb67; do
21444    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21445echo "$as_me:$LINENO: checking for $ac_func" >&5
21446echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21447if eval "test \"\${$as_ac_var+set}\" = set"; then
21448  echo $ECHO_N "(cached) $ECHO_C" >&6
21449else
21450  cat >conftest.$ac_ext <<_ACEOF
21451#line $LINENO "configure"
21452/* confdefs.h.  */
21453_ACEOF
21454cat confdefs.h >>conftest.$ac_ext
21455cat >>conftest.$ac_ext <<_ACEOF
21456/* end confdefs.h.  */
21457/* System header to define __stub macros and hopefully few prototypes,
21458    which can conflict with char $ac_func (); below.
21459    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21460    <limits.h> exists even on freestanding compilers.  */
21461#ifdef __STDC__
21462# include <limits.h>
21463#else
21464# include <assert.h>
21465#endif
21466/* Override any gcc2 internal prototype to avoid an error.  */
21467#ifdef __cplusplus
21468extern "C"
21469{
21470#endif
21471/* We use char because int might match the return type of a gcc2
21472   builtin and then its argument prototype would still apply.  */
21473char $ac_func ();
21474/* The GNU C library defines this for functions which it implements
21475    to always fail with ENOSYS.  Some functions are actually named
21476    something starting with __ and the normal name is an alias.  */
21477#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21478choke me
21479#else
21480char (*f) () = $ac_func;
21481#endif
21482#ifdef __cplusplus
21483}
21484#endif
21485
21486int
21487main ()
21488{
21489return f != $ac_func;
21490  ;
21491  return 0;
21492}
21493_ACEOF
21494rm -f conftest.$ac_objext conftest$ac_exeext
21495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21496  (eval $ac_link) 2>&5
21497  ac_status=$?
21498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499  (exit $ac_status); } &&
21500         { ac_try='test -s conftest$ac_exeext'
21501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21502  (eval $ac_try) 2>&5
21503  ac_status=$?
21504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505  (exit $ac_status); }; }; then
21506  eval "$as_ac_var=yes"
21507else
21508  echo "$as_me: failed program was:" >&5
21509sed 's/^/| /' conftest.$ac_ext >&5
21510
21511eval "$as_ac_var=no"
21512fi
21513rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21514fi
21515echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21516echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21517if test `eval echo '${'$as_ac_var'}'` = yes; then
21518
21519cat >>confdefs.h <<_ACEOF
21520#define CRAY_STACKSEG_END $ac_func
21521_ACEOF
21522
21523    break
21524fi
21525
21526  done
21527fi
21528
21529echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21530echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21531if test "${ac_cv_c_stack_direction+set}" = set; then
21532  echo $ECHO_N "(cached) $ECHO_C" >&6
21533else
21534  if test "$cross_compiling" = yes; then
21535  ac_cv_c_stack_direction=0
21536else
21537  cat >conftest.$ac_ext <<_ACEOF
21538#line $LINENO "configure"
21539/* confdefs.h.  */
21540_ACEOF
21541cat confdefs.h >>conftest.$ac_ext
21542cat >>conftest.$ac_ext <<_ACEOF
21543/* end confdefs.h.  */
21544int
21545find_stack_direction ()
21546{
21547  static char *addr = 0;
21548  auto char dummy;
21549  if (addr == 0)
21550    {
21551      addr = &dummy;
21552      return find_stack_direction ();
21553    }
21554  else
21555    return (&dummy > addr) ? 1 : -1;
21556}
21557
21558int
21559main ()
21560{
21561  exit (find_stack_direction () < 0);
21562}
21563_ACEOF
21564rm -f conftest$ac_exeext
21565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21566  (eval $ac_link) 2>&5
21567  ac_status=$?
21568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21571  (eval $ac_try) 2>&5
21572  ac_status=$?
21573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574  (exit $ac_status); }; }; then
21575  ac_cv_c_stack_direction=1
21576else
21577  echo "$as_me: program exited with status $ac_status" >&5
21578echo "$as_me: failed program was:" >&5
21579sed 's/^/| /' conftest.$ac_ext >&5
21580
21581( exit $ac_status )
21582ac_cv_c_stack_direction=-1
21583fi
21584rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21585fi
21586fi
21587echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21588echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21589
21590cat >>confdefs.h <<_ACEOF
21591#define STACK_DIRECTION $ac_cv_c_stack_direction
21592_ACEOF
21593
21594
21595fi
21596
21597if test $ac_cv_c_compiler_gnu = yes; then
21598    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21599echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21600if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21601  echo $ECHO_N "(cached) $ECHO_C" >&6
21602else
21603    ac_pattern="Autoconf.*'x'"
21604  cat >conftest.$ac_ext <<_ACEOF
21605#line $LINENO "configure"
21606/* confdefs.h.  */
21607_ACEOF
21608cat confdefs.h >>conftest.$ac_ext
21609cat >>conftest.$ac_ext <<_ACEOF
21610/* end confdefs.h.  */
21611#include <sgtty.h>
21612Autoconf TIOCGETP
21613_ACEOF
21614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21615  $EGREP "$ac_pattern" >/dev/null 2>&1; then
21616  ac_cv_prog_gcc_traditional=yes
21617else
21618  ac_cv_prog_gcc_traditional=no
21619fi
21620rm -f conftest*
21621
21622
21623  if test $ac_cv_prog_gcc_traditional = no; then
21624    cat >conftest.$ac_ext <<_ACEOF
21625#line $LINENO "configure"
21626/* confdefs.h.  */
21627_ACEOF
21628cat confdefs.h >>conftest.$ac_ext
21629cat >>conftest.$ac_ext <<_ACEOF
21630/* end confdefs.h.  */
21631#include <termio.h>
21632Autoconf TCGETA
21633_ACEOF
21634if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21635  $EGREP "$ac_pattern" >/dev/null 2>&1; then
21636  ac_cv_prog_gcc_traditional=yes
21637fi
21638rm -f conftest*
21639
21640  fi
21641fi
21642echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21643echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21644  if test $ac_cv_prog_gcc_traditional = yes; then
21645    CC="$CC -traditional"
21646  fi
21647fi
21648
21649echo "$as_me:$LINENO: checking for working memcmp" >&5
21650echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21651if test "${ac_cv_func_memcmp_working+set}" = set; then
21652  echo $ECHO_N "(cached) $ECHO_C" >&6
21653else
21654  if test "$cross_compiling" = yes; then
21655  ac_cv_func_memcmp_working=no
21656else
21657  cat >conftest.$ac_ext <<_ACEOF
21658#line $LINENO "configure"
21659/* confdefs.h.  */
21660_ACEOF
21661cat confdefs.h >>conftest.$ac_ext
21662cat >>conftest.$ac_ext <<_ACEOF
21663/* end confdefs.h.  */
21664
21665int
21666main ()
21667{
21668
21669  /* Some versions of memcmp are not 8-bit clean.  */
21670  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21671  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21672    exit (1);
21673
21674  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21675     or more and with at least one buffer not starting on a 4-byte boundary.
21676     William Lewis provided this test program.   */
21677  {
21678    char foo[21];
21679    char bar[21];
21680    int i;
21681    for (i = 0; i < 4; i++)
21682      {
21683        char *a = foo + i;
21684        char *b = bar + i;
21685        strcpy (a, "--------01111111");
21686        strcpy (b, "--------10000000");
21687        if (memcmp (a, b, 16) >= 0)
21688          exit (1);
21689      }
21690    exit (0);
21691  }
21692
21693  ;
21694  return 0;
21695}
21696_ACEOF
21697rm -f conftest$ac_exeext
21698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21699  (eval $ac_link) 2>&5
21700  ac_status=$?
21701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21704  (eval $ac_try) 2>&5
21705  ac_status=$?
21706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707  (exit $ac_status); }; }; then
21708  ac_cv_func_memcmp_working=yes
21709else
21710  echo "$as_me: program exited with status $ac_status" >&5
21711echo "$as_me: failed program was:" >&5
21712sed 's/^/| /' conftest.$ac_ext >&5
21713
21714( exit $ac_status )
21715ac_cv_func_memcmp_working=no
21716fi
21717rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21718fi
21719fi
21720echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21721echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21722test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21723
21724
21725
21726for ac_header in stdlib.h unistd.h
21727do
21728as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21729if eval "test \"\${$as_ac_Header+set}\" = set"; then
21730  echo "$as_me:$LINENO: checking for $ac_header" >&5
21731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21732if eval "test \"\${$as_ac_Header+set}\" = set"; then
21733  echo $ECHO_N "(cached) $ECHO_C" >&6
21734fi
21735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21736echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21737else
21738  # Is the header compilable?
21739echo "$as_me:$LINENO: checking $ac_header usability" >&5
21740echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21741cat >conftest.$ac_ext <<_ACEOF
21742#line $LINENO "configure"
21743/* confdefs.h.  */
21744_ACEOF
21745cat confdefs.h >>conftest.$ac_ext
21746cat >>conftest.$ac_ext <<_ACEOF
21747/* end confdefs.h.  */
21748$ac_includes_default
21749#include <$ac_header>
21750_ACEOF
21751rm -f conftest.$ac_objext
21752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21753  (eval $ac_compile) 2>&5
21754  ac_status=$?
21755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756  (exit $ac_status); } &&
21757         { ac_try='test -s conftest.$ac_objext'
21758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21759  (eval $ac_try) 2>&5
21760  ac_status=$?
21761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762  (exit $ac_status); }; }; then
21763  ac_header_compiler=yes
21764else
21765  echo "$as_me: failed program was:" >&5
21766sed 's/^/| /' conftest.$ac_ext >&5
21767
21768ac_header_compiler=no
21769fi
21770rm -f conftest.$ac_objext conftest.$ac_ext
21771echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21772echo "${ECHO_T}$ac_header_compiler" >&6
21773
21774# Is the header present?
21775echo "$as_me:$LINENO: checking $ac_header presence" >&5
21776echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21777cat >conftest.$ac_ext <<_ACEOF
21778#line $LINENO "configure"
21779/* confdefs.h.  */
21780_ACEOF
21781cat confdefs.h >>conftest.$ac_ext
21782cat >>conftest.$ac_ext <<_ACEOF
21783/* end confdefs.h.  */
21784#include <$ac_header>
21785_ACEOF
21786if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21787  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21788  ac_status=$?
21789  grep -v '^ *+' conftest.er1 >conftest.err
21790  rm -f conftest.er1
21791  cat conftest.err >&5
21792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793  (exit $ac_status); } >/dev/null; then
21794  if test -s conftest.err; then
21795    ac_cpp_err=$ac_c_preproc_warn_flag
21796  else
21797    ac_cpp_err=
21798  fi
21799else
21800  ac_cpp_err=yes
21801fi
21802if test -z "$ac_cpp_err"; then
21803  ac_header_preproc=yes
21804else
21805  echo "$as_me: failed program was:" >&5
21806sed 's/^/| /' conftest.$ac_ext >&5
21807
21808  ac_header_preproc=no
21809fi
21810rm -f conftest.err conftest.$ac_ext
21811echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21812echo "${ECHO_T}$ac_header_preproc" >&6
21813
21814# So?  What about this header?
21815case $ac_header_compiler:$ac_header_preproc in
21816  yes:no )
21817    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21818echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21819    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21820echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21821    (
21822      cat <<\_ASBOX
21823## ------------------------------------ ##
21824## Report this to bug-autoconf@gnu.org. ##
21825## ------------------------------------ ##
21826_ASBOX
21827    ) |
21828      sed "s/^/$as_me: WARNING:     /" >&2
21829    ;;
21830  no:yes )
21831    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21832echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21833    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21834echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21835    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21836echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21837    (
21838      cat <<\_ASBOX
21839## ------------------------------------ ##
21840## Report this to bug-autoconf@gnu.org. ##
21841## ------------------------------------ ##
21842_ASBOX
21843    ) |
21844      sed "s/^/$as_me: WARNING:     /" >&2
21845    ;;
21846esac
21847echo "$as_me:$LINENO: checking for $ac_header" >&5
21848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21849if eval "test \"\${$as_ac_Header+set}\" = set"; then
21850  echo $ECHO_N "(cached) $ECHO_C" >&6
21851else
21852  eval "$as_ac_Header=$ac_header_preproc"
21853fi
21854echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21855echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21856
21857fi
21858if test `eval echo '${'$as_ac_Header'}'` = yes; then
21859  cat >>confdefs.h <<_ACEOF
21860#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21861_ACEOF
21862
21863fi
21864
21865done
21866
21867
21868for ac_func in getpagesize
21869do
21870as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21871echo "$as_me:$LINENO: checking for $ac_func" >&5
21872echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21873if eval "test \"\${$as_ac_var+set}\" = set"; then
21874  echo $ECHO_N "(cached) $ECHO_C" >&6
21875else
21876  cat >conftest.$ac_ext <<_ACEOF
21877#line $LINENO "configure"
21878/* confdefs.h.  */
21879_ACEOF
21880cat confdefs.h >>conftest.$ac_ext
21881cat >>conftest.$ac_ext <<_ACEOF
21882/* end confdefs.h.  */
21883/* System header to define __stub macros and hopefully few prototypes,
21884    which can conflict with char $ac_func (); below.
21885    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21886    <limits.h> exists even on freestanding compilers.  */
21887#ifdef __STDC__
21888# include <limits.h>
21889#else
21890# include <assert.h>
21891#endif
21892/* Override any gcc2 internal prototype to avoid an error.  */
21893#ifdef __cplusplus
21894extern "C"
21895{
21896#endif
21897/* We use char because int might match the return type of a gcc2
21898   builtin and then its argument prototype would still apply.  */
21899char $ac_func ();
21900/* The GNU C library defines this for functions which it implements
21901    to always fail with ENOSYS.  Some functions are actually named
21902    something starting with __ and the normal name is an alias.  */
21903#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21904choke me
21905#else
21906char (*f) () = $ac_func;
21907#endif
21908#ifdef __cplusplus
21909}
21910#endif
21911
21912int
21913main ()
21914{
21915return f != $ac_func;
21916  ;
21917  return 0;
21918}
21919_ACEOF
21920rm -f conftest.$ac_objext conftest$ac_exeext
21921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21922  (eval $ac_link) 2>&5
21923  ac_status=$?
21924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925  (exit $ac_status); } &&
21926         { ac_try='test -s conftest$ac_exeext'
21927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21928  (eval $ac_try) 2>&5
21929  ac_status=$?
21930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931  (exit $ac_status); }; }; then
21932  eval "$as_ac_var=yes"
21933else
21934  echo "$as_me: failed program was:" >&5
21935sed 's/^/| /' conftest.$ac_ext >&5
21936
21937eval "$as_ac_var=no"
21938fi
21939rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21940fi
21941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21942echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21943if test `eval echo '${'$as_ac_var'}'` = yes; then
21944  cat >>confdefs.h <<_ACEOF
21945#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21946_ACEOF
21947
21948fi
21949done
21950
21951echo "$as_me:$LINENO: checking for working mmap" >&5
21952echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21953if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21954  echo $ECHO_N "(cached) $ECHO_C" >&6
21955else
21956  if test "$cross_compiling" = yes; then
21957  ac_cv_func_mmap_fixed_mapped=no
21958else
21959  cat >conftest.$ac_ext <<_ACEOF
21960#line $LINENO "configure"
21961/* confdefs.h.  */
21962_ACEOF
21963cat confdefs.h >>conftest.$ac_ext
21964cat >>conftest.$ac_ext <<_ACEOF
21965/* end confdefs.h.  */
21966$ac_includes_default
21967/* malloc might have been renamed as rpl_malloc. */
21968#undef malloc
21969
21970/* Thanks to Mike Haertel and Jim Avera for this test.
21971   Here is a matrix of mmap possibilities:
21972	mmap private not fixed
21973	mmap private fixed at somewhere currently unmapped
21974	mmap private fixed at somewhere already mapped
21975	mmap shared not fixed
21976	mmap shared fixed at somewhere currently unmapped
21977	mmap shared fixed at somewhere already mapped
21978   For private mappings, we should verify that changes cannot be read()
21979   back from the file, nor mmap's back from the file at a different
21980   address.  (There have been systems where private was not correctly
21981   implemented like the infamous i386 svr4.0, and systems where the
21982   VM page cache was not coherent with the file system buffer cache
21983   like early versions of FreeBSD and possibly contemporary NetBSD.)
21984   For shared mappings, we should conversely verify that changes get
21985   propagated back to all the places they're supposed to be.
21986
21987   Grep wants private fixed already mapped.
21988   The main things grep needs to know about mmap are:
21989   * does it exist and is it safe to write into the mmap'd area
21990   * how to use it (BSD variants)  */
21991
21992#include <fcntl.h>
21993#include <sys/mman.h>
21994
21995#if !STDC_HEADERS && !HAVE_STDLIB_H
21996char *malloc ();
21997#endif
21998
21999/* This mess was copied from the GNU getpagesize.h.  */
22000#if !HAVE_GETPAGESIZE
22001/* Assume that all systems that can run configure have sys/param.h.  */
22002# if !HAVE_SYS_PARAM_H
22003#  define HAVE_SYS_PARAM_H 1
22004# endif
22005
22006# ifdef _SC_PAGESIZE
22007#  define getpagesize() sysconf(_SC_PAGESIZE)
22008# else /* no _SC_PAGESIZE */
22009#  if HAVE_SYS_PARAM_H
22010#   include <sys/param.h>
22011#   ifdef EXEC_PAGESIZE
22012#    define getpagesize() EXEC_PAGESIZE
22013#   else /* no EXEC_PAGESIZE */
22014#    ifdef NBPG
22015#     define getpagesize() NBPG * CLSIZE
22016#     ifndef CLSIZE
22017#      define CLSIZE 1
22018#     endif /* no CLSIZE */
22019#    else /* no NBPG */
22020#     ifdef NBPC
22021#      define getpagesize() NBPC
22022#     else /* no NBPC */
22023#      ifdef PAGESIZE
22024#       define getpagesize() PAGESIZE
22025#      endif /* PAGESIZE */
22026#     endif /* no NBPC */
22027#    endif /* no NBPG */
22028#   endif /* no EXEC_PAGESIZE */
22029#  else /* no HAVE_SYS_PARAM_H */
22030#   define getpagesize() 8192	/* punt totally */
22031#  endif /* no HAVE_SYS_PARAM_H */
22032# endif /* no _SC_PAGESIZE */
22033
22034#endif /* no HAVE_GETPAGESIZE */
22035
22036int
22037main ()
22038{
22039  char *data, *data2, *data3;
22040  int i, pagesize;
22041  int fd;
22042
22043  pagesize = getpagesize ();
22044
22045  /* First, make a file with some known garbage in it. */
22046  data = (char *) malloc (pagesize);
22047  if (!data)
22048    exit (1);
22049  for (i = 0; i < pagesize; ++i)
22050    *(data + i) = rand ();
22051  umask (0);
22052  fd = creat ("conftest.mmap", 0600);
22053  if (fd < 0)
22054    exit (1);
22055  if (write (fd, data, pagesize) != pagesize)
22056    exit (1);
22057  close (fd);
22058
22059  /* Next, try to mmap the file at a fixed address which already has
22060     something else allocated at it.  If we can, also make sure that
22061     we see the same garbage.  */
22062  fd = open ("conftest.mmap", O_RDWR);
22063  if (fd < 0)
22064    exit (1);
22065  data2 = (char *) malloc (2 * pagesize);
22066  if (!data2)
22067    exit (1);
22068  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22069  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22070                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
22071    exit (1);
22072  for (i = 0; i < pagesize; ++i)
22073    if (*(data + i) != *(data2 + i))
22074      exit (1);
22075
22076  /* Finally, make sure that changes to the mapped area do not
22077     percolate back to the file as seen by read().  (This is a bug on
22078     some variants of i386 svr4.0.)  */
22079  for (i = 0; i < pagesize; ++i)
22080    *(data2 + i) = *(data2 + i) + 1;
22081  data3 = (char *) malloc (pagesize);
22082  if (!data3)
22083    exit (1);
22084  if (read (fd, data3, pagesize) != pagesize)
22085    exit (1);
22086  for (i = 0; i < pagesize; ++i)
22087    if (*(data + i) != *(data3 + i))
22088      exit (1);
22089  close (fd);
22090  exit (0);
22091}
22092_ACEOF
22093rm -f conftest$ac_exeext
22094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22095  (eval $ac_link) 2>&5
22096  ac_status=$?
22097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22100  (eval $ac_try) 2>&5
22101  ac_status=$?
22102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103  (exit $ac_status); }; }; then
22104  ac_cv_func_mmap_fixed_mapped=yes
22105else
22106  echo "$as_me: program exited with status $ac_status" >&5
22107echo "$as_me: failed program was:" >&5
22108sed 's/^/| /' conftest.$ac_ext >&5
22109
22110( exit $ac_status )
22111ac_cv_func_mmap_fixed_mapped=no
22112fi
22113rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22114fi
22115fi
22116echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22117echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22118if test $ac_cv_func_mmap_fixed_mapped = yes; then
22119
22120cat >>confdefs.h <<\_ACEOF
22121#define HAVE_MMAP 1
22122_ACEOF
22123
22124fi
22125rm -f conftest.mmap
22126
22127echo "$as_me:$LINENO: checking for mmap of files" >&5
22128echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22129if test "${ac_cv_func_mmap_file+set}" = set; then
22130  echo $ECHO_N "(cached) $ECHO_C" >&6
22131else
22132
22133
22134  ac_ext=c
22135ac_cpp='$CPP $CPPFLAGS'
22136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22138ac_compiler_gnu=$ac_cv_c_compiler_gnu
22139
22140  if test "$cross_compiling" = yes; then
22141  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22142See \`config.log' for more details." >&5
22143echo "$as_me: error: cannot run test program while cross compiling
22144See \`config.log' for more details." >&2;}
22145   { (exit 1); exit 1; }; }
22146else
22147  cat >conftest.$ac_ext <<_ACEOF
22148#line $LINENO "configure"
22149/* confdefs.h.  */
22150_ACEOF
22151cat confdefs.h >>conftest.$ac_ext
22152cat >>conftest.$ac_ext <<_ACEOF
22153/* end confdefs.h.  */
22154
22155#ifdef HAVE_SYS_MMAN_H
22156#include <sys/mman.h>
22157#endif
22158
22159#ifdef HAVE_SYS_TYPES_H
22160#include <sys/types.h>
22161#endif
22162
22163#ifdef HAVE_FCNTL_H
22164#include <fcntl.h>
22165#endif
22166
22167  int fd;
22168  int main () {
22169  fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22170_ACEOF
22171rm -f conftest$ac_exeext
22172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22173  (eval $ac_link) 2>&5
22174  ac_status=$?
22175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22178  (eval $ac_try) 2>&5
22179  ac_status=$?
22180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181  (exit $ac_status); }; }; then
22182  ac_cv_func_mmap_file=yes
22183else
22184  echo "$as_me: program exited with status $ac_status" >&5
22185echo "$as_me: failed program was:" >&5
22186sed 's/^/| /' conftest.$ac_ext >&5
22187
22188( exit $ac_status )
22189ac_cv_func_mmap_file=no
22190fi
22191rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22192fi
22193  ac_ext=c
22194ac_cpp='$CPP $CPPFLAGS'
22195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22197ac_compiler_gnu=$ac_cv_c_compiler_gnu
22198
22199
22200fi
22201echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22202echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22203if test "$ac_cv_func_mmap_file" = yes; then
22204   cat >>confdefs.h <<\_ACEOF
22205#define HAVE_MMAP_FILE 1
22206_ACEOF
22207
22208   MMAP_FILE=yes
22209
22210fi
22211
22212if test ${ac_cv_func_mmap_file} = "no"
22213then
22214	{ { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22215echo "$as_me: error: mmap() of files required but not found" >&2;}
22216   { (exit 1); exit 1; }; }
22217fi
22218echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22219echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22220if test "${ac_cv_header_mmap_anon+set}" = set; then
22221  echo $ECHO_N "(cached) $ECHO_C" >&6
22222else
22223
22224
22225  ac_ext=c
22226ac_cpp='$CPP $CPPFLAGS'
22227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22229ac_compiler_gnu=$ac_cv_c_compiler_gnu
22230
22231  cat >conftest.$ac_ext <<_ACEOF
22232#line $LINENO "configure"
22233/* confdefs.h.  */
22234_ACEOF
22235cat confdefs.h >>conftest.$ac_ext
22236cat >>conftest.$ac_ext <<_ACEOF
22237/* end confdefs.h.  */
22238#include <sys/mman.h>
22239  #include <unistd.h>
22240  #include <fcntl.h>
22241int
22242main ()
22243{
22244mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22245  ;
22246  return 0;
22247}
22248_ACEOF
22249rm -f conftest.$ac_objext
22250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22251  (eval $ac_compile) 2>&5
22252  ac_status=$?
22253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254  (exit $ac_status); } &&
22255         { ac_try='test -s conftest.$ac_objext'
22256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22257  (eval $ac_try) 2>&5
22258  ac_status=$?
22259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260  (exit $ac_status); }; }; then
22261  ac_cv_header_mmap_anon=yes
22262else
22263  echo "$as_me: failed program was:" >&5
22264sed 's/^/| /' conftest.$ac_ext >&5
22265
22266ac_cv_header_mmap_anon=no
22267fi
22268rm -f conftest.$ac_objext conftest.$ac_ext
22269  ac_ext=c
22270ac_cpp='$CPP $CPPFLAGS'
22271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22273ac_compiler_gnu=$ac_cv_c_compiler_gnu
22274
22275
22276fi
22277echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22278echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22279if test "$ac_cv_header_mmap_anon" = yes; then
22280   cat >>confdefs.h <<\_ACEOF
22281#define HAVE_MMAP_ANONYMOUS 1
22282_ACEOF
22283
22284fi
22285
22286echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22287echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22288if test "${ac_cv_type_signal+set}" = set; then
22289  echo $ECHO_N "(cached) $ECHO_C" >&6
22290else
22291  cat >conftest.$ac_ext <<_ACEOF
22292#line $LINENO "configure"
22293/* confdefs.h.  */
22294_ACEOF
22295cat confdefs.h >>conftest.$ac_ext
22296cat >>conftest.$ac_ext <<_ACEOF
22297/* end confdefs.h.  */
22298#include <sys/types.h>
22299#include <signal.h>
22300#ifdef signal
22301# undef signal
22302#endif
22303#ifdef __cplusplus
22304extern "C" void (*signal (int, void (*)(int)))(int);
22305#else
22306void (*signal ()) ();
22307#endif
22308
22309int
22310main ()
22311{
22312int i;
22313  ;
22314  return 0;
22315}
22316_ACEOF
22317rm -f conftest.$ac_objext
22318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22319  (eval $ac_compile) 2>&5
22320  ac_status=$?
22321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322  (exit $ac_status); } &&
22323         { ac_try='test -s conftest.$ac_objext'
22324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22325  (eval $ac_try) 2>&5
22326  ac_status=$?
22327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328  (exit $ac_status); }; }; then
22329  ac_cv_type_signal=void
22330else
22331  echo "$as_me: failed program was:" >&5
22332sed 's/^/| /' conftest.$ac_ext >&5
22333
22334ac_cv_type_signal=int
22335fi
22336rm -f conftest.$ac_objext conftest.$ac_ext
22337fi
22338echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22339echo "${ECHO_T}$ac_cv_type_signal" >&6
22340
22341cat >>confdefs.h <<_ACEOF
22342#define RETSIGTYPE $ac_cv_type_signal
22343_ACEOF
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22356do
22357as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22358echo "$as_me:$LINENO: checking for $ac_func" >&5
22359echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22360if eval "test \"\${$as_ac_var+set}\" = set"; then
22361  echo $ECHO_N "(cached) $ECHO_C" >&6
22362else
22363  cat >conftest.$ac_ext <<_ACEOF
22364#line $LINENO "configure"
22365/* confdefs.h.  */
22366_ACEOF
22367cat confdefs.h >>conftest.$ac_ext
22368cat >>conftest.$ac_ext <<_ACEOF
22369/* end confdefs.h.  */
22370/* System header to define __stub macros and hopefully few prototypes,
22371    which can conflict with char $ac_func (); below.
22372    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22373    <limits.h> exists even on freestanding compilers.  */
22374#ifdef __STDC__
22375# include <limits.h>
22376#else
22377# include <assert.h>
22378#endif
22379/* Override any gcc2 internal prototype to avoid an error.  */
22380#ifdef __cplusplus
22381extern "C"
22382{
22383#endif
22384/* We use char because int might match the return type of a gcc2
22385   builtin and then its argument prototype would still apply.  */
22386char $ac_func ();
22387/* The GNU C library defines this for functions which it implements
22388    to always fail with ENOSYS.  Some functions are actually named
22389    something starting with __ and the normal name is an alias.  */
22390#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22391choke me
22392#else
22393char (*f) () = $ac_func;
22394#endif
22395#ifdef __cplusplus
22396}
22397#endif
22398
22399int
22400main ()
22401{
22402return f != $ac_func;
22403  ;
22404  return 0;
22405}
22406_ACEOF
22407rm -f conftest.$ac_objext conftest$ac_exeext
22408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22409  (eval $ac_link) 2>&5
22410  ac_status=$?
22411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412  (exit $ac_status); } &&
22413         { ac_try='test -s conftest$ac_exeext'
22414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22415  (eval $ac_try) 2>&5
22416  ac_status=$?
22417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418  (exit $ac_status); }; }; then
22419  eval "$as_ac_var=yes"
22420else
22421  echo "$as_me: failed program was:" >&5
22422sed 's/^/| /' conftest.$ac_ext >&5
22423
22424eval "$as_ac_var=no"
22425fi
22426rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22427fi
22428echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22429echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22430if test `eval echo '${'$as_ac_var'}'` = yes; then
22431  cat >>confdefs.h <<_ACEOF
22432#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22433_ACEOF
22434
22435fi
22436done
22437
22438
22439
22440echo "$as_me:$LINENO: checking for mmap" >&5
22441echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22442if test "${ac_cv_func_mmap+set}" = set; then
22443  echo $ECHO_N "(cached) $ECHO_C" >&6
22444else
22445  cat >conftest.$ac_ext <<_ACEOF
22446#line $LINENO "configure"
22447/* confdefs.h.  */
22448_ACEOF
22449cat confdefs.h >>conftest.$ac_ext
22450cat >>conftest.$ac_ext <<_ACEOF
22451/* end confdefs.h.  */
22452/* System header to define __stub macros and hopefully few prototypes,
22453    which can conflict with char mmap (); below.
22454    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22455    <limits.h> exists even on freestanding compilers.  */
22456#ifdef __STDC__
22457# include <limits.h>
22458#else
22459# include <assert.h>
22460#endif
22461/* Override any gcc2 internal prototype to avoid an error.  */
22462#ifdef __cplusplus
22463extern "C"
22464{
22465#endif
22466/* We use char because int might match the return type of a gcc2
22467   builtin and then its argument prototype would still apply.  */
22468char mmap ();
22469/* The GNU C library defines this for functions which it implements
22470    to always fail with ENOSYS.  Some functions are actually named
22471    something starting with __ and the normal name is an alias.  */
22472#if defined (__stub_mmap) || defined (__stub___mmap)
22473choke me
22474#else
22475char (*f) () = mmap;
22476#endif
22477#ifdef __cplusplus
22478}
22479#endif
22480
22481int
22482main ()
22483{
22484return f != mmap;
22485  ;
22486  return 0;
22487}
22488_ACEOF
22489rm -f conftest.$ac_objext conftest$ac_exeext
22490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22491  (eval $ac_link) 2>&5
22492  ac_status=$?
22493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494  (exit $ac_status); } &&
22495         { ac_try='test -s conftest$ac_exeext'
22496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22497  (eval $ac_try) 2>&5
22498  ac_status=$?
22499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500  (exit $ac_status); }; }; then
22501  ac_cv_func_mmap=yes
22502else
22503  echo "$as_me: failed program was:" >&5
22504sed 's/^/| /' conftest.$ac_ext >&5
22505
22506ac_cv_func_mmap=no
22507fi
22508rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22509fi
22510echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22511echo "${ECHO_T}$ac_cv_func_mmap" >&6
22512if test $ac_cv_func_mmap = yes; then
22513  :
22514else
22515  { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22516echo "$as_me: error: Function mmap() required but not found" >&2;}
22517   { (exit 1); exit 1; }; }
22518fi
22519
22520echo "$as_me:$LINENO: checking for mprotect" >&5
22521echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22522if test "${ac_cv_func_mprotect+set}" = set; then
22523  echo $ECHO_N "(cached) $ECHO_C" >&6
22524else
22525  cat >conftest.$ac_ext <<_ACEOF
22526#line $LINENO "configure"
22527/* confdefs.h.  */
22528_ACEOF
22529cat confdefs.h >>conftest.$ac_ext
22530cat >>conftest.$ac_ext <<_ACEOF
22531/* end confdefs.h.  */
22532/* System header to define __stub macros and hopefully few prototypes,
22533    which can conflict with char mprotect (); below.
22534    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22535    <limits.h> exists even on freestanding compilers.  */
22536#ifdef __STDC__
22537# include <limits.h>
22538#else
22539# include <assert.h>
22540#endif
22541/* Override any gcc2 internal prototype to avoid an error.  */
22542#ifdef __cplusplus
22543extern "C"
22544{
22545#endif
22546/* We use char because int might match the return type of a gcc2
22547   builtin and then its argument prototype would still apply.  */
22548char mprotect ();
22549/* The GNU C library defines this for functions which it implements
22550    to always fail with ENOSYS.  Some functions are actually named
22551    something starting with __ and the normal name is an alias.  */
22552#if defined (__stub_mprotect) || defined (__stub___mprotect)
22553choke me
22554#else
22555char (*f) () = mprotect;
22556#endif
22557#ifdef __cplusplus
22558}
22559#endif
22560
22561int
22562main ()
22563{
22564return f != mprotect;
22565  ;
22566  return 0;
22567}
22568_ACEOF
22569rm -f conftest.$ac_objext conftest$ac_exeext
22570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22571  (eval $ac_link) 2>&5
22572  ac_status=$?
22573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574  (exit $ac_status); } &&
22575         { ac_try='test -s conftest$ac_exeext'
22576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22577  (eval $ac_try) 2>&5
22578  ac_status=$?
22579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580  (exit $ac_status); }; }; then
22581  ac_cv_func_mprotect=yes
22582else
22583  echo "$as_me: failed program was:" >&5
22584sed 's/^/| /' conftest.$ac_ext >&5
22585
22586ac_cv_func_mprotect=no
22587fi
22588rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22589fi
22590echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22591echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22592if test $ac_cv_func_mprotect = yes; then
22593  :
22594else
22595  { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22596echo "$as_me: error: Function mprotect() required but not found" >&2;}
22597   { (exit 1); exit 1; }; }
22598fi
22599
22600
22601
22602# Check whether --enable-purify or --disable-purify was given.
22603if test "${enable_purify+set}" = set; then
22604  enableval="$enable_purify"
22605
22606else
22607  enableval="no"
22608fi;
22609if test ${enableval} = "no"
22610then
22611	ENABLE_PURIFY=
22612
22613else
22614	ENABLE_PURIFY=ENABLE_PURIFY=1
22615
22616fi
22617
22618# Check whether --enable-optimized or --disable-optimized was given.
22619if test "${enable_optimized+set}" = set; then
22620  enableval="$enable_optimized"
22621
22622else
22623  enableval=no
22624fi;
22625if test ${enableval} = "no"
22626then
22627	ENABLE_OPTIMIZED=
22628
22629else
22630	ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22631
22632fi
22633
22634# Check whether --enable-spec or --disable-spec was given.
22635if test "${enable_spec+set}" = set; then
22636  enableval="$enable_spec"
22637
22638else
22639  enableval=no
22640fi;
22641if test ${enableval} = "no"
22642then
22643	USE_SPEC=
22644
22645else
22646	USE_SPEC=USE_SPEC=1
22647
22648fi
22649
22650# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22651if test "${enable_precompiled_bytecode+set}" = set; then
22652  enableval="$enable_precompiled_bytecode"
22653
22654else
22655  enableval=no
22656fi;
22657if test ${enableval} = "no"
22658then
22659	UPB=
22660
22661else
22662	UPB=USE_PRECOMPILED_BYTECODE=1
22663
22664fi
22665
22666
22667# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22668if test "${enable_llc_diffs+set}" = set; then
22669  enableval="$enable_llc_diffs"
22670
22671else
22672  enableval=yes
22673fi;
22674if test ${enableval} = "no"
22675then
22676	DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22677
22678else
22679	DISABLE_LLC_DIFFS=
22680
22681fi
22682
22683# Check whether --enable-jit or --disable-jit was given.
22684if test "${enable_jit+set}" = set; then
22685  enableval="$enable_jit"
22686
22687else
22688  enableval=default
22689fi;
22690
22691if test ${enableval} = "no"
22692then
22693	JIT=
22694
22695else
22696	case $target in
22697		*i*86*)
22698			JIT=TARGET_HAS_JIT=1
22699
22700			;;
22701		*sparc*)
22702			JIT=TARGET_HAS_JIT=1
22703
22704			;;
22705		*)
22706			JIT=
22707
22708			;;
22709	esac
22710fi
22711
22712
22713
22714# Check whether --with-spec or --without-spec was given.
22715if test "${with_spec+set}" = set; then
22716  withval="$with_spec"
22717  SPEC_ROOT=$withval
22718
22719else
22720  SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22721
22722fi;
22723
22724
22725# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22726if test "${with_llvmgccdir+set}" = set; then
22727  withval="$with_llvmgccdir"
22728  LLVMGCCDIR=$withval
22729
22730fi;
22731
22732
22733# Check whether --with-bcrepos or --without-bcrepos was given.
22734if test "${with_bcrepos+set}" = set; then
22735  withval="$with_bcrepos"
22736  BCR=$withval
22737
22738else
22739  BCR=/home/vadve/lattner/LLVMPrograms
22740
22741fi;
22742
22743
22744# Check whether --with-papi or --without-papi was given.
22745if test "${with_papi+set}" = set; then
22746  withval="$with_papi"
22747  PAPIDIR=$withval
22748
22749else
22750  PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22751
22752fi;
22753
22754
22755# Check whether --with-purify or --without-purify was given.
22756if test "${with_purify+set}" = set; then
22757  withval="$with_purify"
22758  PURIFY=$withval
22759
22760fi;
22761
22762
22763          ac_config_files="$ac_config_files Makefile.config"
22764cat >confcache <<\_ACEOF
22765# This file is a shell script that caches the results of configure
22766# tests run on this system so they can be shared between configure
22767# scripts and configure runs, see configure's option --config-cache.
22768# It is not useful on other systems.  If it contains results you don't
22769# want to keep, you may remove or edit it.
22770#
22771# config.status only pays attention to the cache file if you give it
22772# the --recheck option to rerun configure.
22773#
22774# `ac_cv_env_foo' variables (set or unset) will be overridden when
22775# loading this file, other *unset* `ac_cv_foo' will be assigned the
22776# following values.
22777
22778_ACEOF
22779
22780# The following way of writing the cache mishandles newlines in values,
22781# but we know of no workaround that is simple, portable, and efficient.
22782# So, don't put newlines in cache variables' values.
22783# Ultrix sh set writes to stderr and can't be redirected directly,
22784# and sets the high bit in the cache file unless we assign to the vars.
22785{
22786  (set) 2>&1 |
22787    case `(ac_space=' '; set | grep ac_space) 2>&1` in
22788    *ac_space=\ *)
22789      # `set' does not quote correctly, so add quotes (double-quote
22790      # substitution turns \\\\ into \\, and sed turns \\ into \).
22791      sed -n \
22792        "s/'/'\\\\''/g;
22793    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22794      ;;
22795    *)
22796      # `set' quotes correctly as required by POSIX, so do not add quotes.
22797      sed -n \
22798        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22799      ;;
22800    esac;
22801} |
22802  sed '
22803     t clear
22804     : clear
22805     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22806     t end
22807     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22808     : end' >>confcache
22809if diff $cache_file confcache >/dev/null 2>&1; then :; else
22810  if test -w $cache_file; then
22811    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22812    cat confcache >$cache_file
22813  else
22814    echo "not updating unwritable cache $cache_file"
22815  fi
22816fi
22817rm -f confcache
22818
22819test "x$prefix" = xNONE && prefix=$ac_default_prefix
22820# Let make expand exec_prefix.
22821test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22822
22823# VPATH may cause trouble with some makes, so we remove $(srcdir),
22824# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22825# trailing colons and then remove the whole line if VPATH becomes empty
22826# (actually we leave an empty line to preserve line numbers).
22827if test "x$srcdir" = x.; then
22828  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
22829s/:*\$(srcdir):*/:/;
22830s/:*\${srcdir}:*/:/;
22831s/:*@srcdir@:*/:/;
22832s/^\([^=]*=[ 	]*\):*/\1/;
22833s/:*$//;
22834s/^[^=]*=[ 	]*$//;
22835}'
22836fi
22837
22838DEFS=-DHAVE_CONFIG_H
22839
22840ac_libobjs=
22841ac_ltlibobjs=
22842for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22843  # 1. Remove the extension, and $U if already installed.
22844  ac_i=`echo "$ac_i" |
22845         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22846  # 2. Add them.
22847  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22848  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22849done
22850LIBOBJS=$ac_libobjs
22851
22852LTLIBOBJS=$ac_ltlibobjs
22853
22854
22855
22856: ${CONFIG_STATUS=./config.status}
22857ac_clean_files_save=$ac_clean_files
22858ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22859{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22860echo "$as_me: creating $CONFIG_STATUS" >&6;}
22861cat >$CONFIG_STATUS <<_ACEOF
22862#! $SHELL
22863# Generated by $as_me.
22864# Run this file to recreate the current configuration.
22865# Compiler output produced by configure, useful for debugging
22866# configure, is in config.log if it exists.
22867
22868debug=false
22869ac_cs_recheck=false
22870ac_cs_silent=false
22871SHELL=\${CONFIG_SHELL-$SHELL}
22872_ACEOF
22873
22874cat >>$CONFIG_STATUS <<\_ACEOF
22875## --------------------- ##
22876## M4sh Initialization.  ##
22877## --------------------- ##
22878
22879# Be Bourne compatible
22880if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22881  emulate sh
22882  NULLCMD=:
22883  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22884  # is contrary to our usage.  Disable this feature.
22885  alias -g '${1+"$@"}'='"$@"'
22886elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22887  set -o posix
22888fi
22889
22890# Support unset when possible.
22891if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22892  as_unset=unset
22893else
22894  as_unset=false
22895fi
22896
22897
22898# Work around bugs in pre-3.0 UWIN ksh.
22899$as_unset ENV MAIL MAILPATH
22900PS1='$ '
22901PS2='> '
22902PS4='+ '
22903
22904# NLS nuisances.
22905for as_var in \
22906  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22907  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22908  LC_TELEPHONE LC_TIME
22909do
22910  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22911    eval $as_var=C; export $as_var
22912  else
22913    $as_unset $as_var
22914  fi
22915done
22916
22917# Required to use basename.
22918if expr a : '\(a\)' >/dev/null 2>&1; then
22919  as_expr=expr
22920else
22921  as_expr=false
22922fi
22923
22924if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22925  as_basename=basename
22926else
22927  as_basename=false
22928fi
22929
22930
22931# Name of the executable.
22932as_me=`$as_basename "$0" ||
22933$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22934	 X"$0" : 'X\(//\)$' \| \
22935	 X"$0" : 'X\(/\)$' \| \
22936	 .     : '\(.\)' 2>/dev/null ||
22937echo X/"$0" |
22938    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22939  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
22940  	  /^X\/\(\/\).*/{ s//\1/; q; }
22941  	  s/.*/./; q'`
22942
22943
22944# PATH needs CR, and LINENO needs CR and PATH.
22945# Avoid depending upon Character Ranges.
22946as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22947as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22948as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22949as_cr_digits='0123456789'
22950as_cr_alnum=$as_cr_Letters$as_cr_digits
22951
22952# The user is always right.
22953if test "${PATH_SEPARATOR+set}" != set; then
22954  echo "#! /bin/sh" >conf$$.sh
22955  echo  "exit 0"   >>conf$$.sh
22956  chmod +x conf$$.sh
22957  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22958    PATH_SEPARATOR=';'
22959  else
22960    PATH_SEPARATOR=:
22961  fi
22962  rm -f conf$$.sh
22963fi
22964
22965
22966  as_lineno_1=$LINENO
22967  as_lineno_2=$LINENO
22968  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22969  test "x$as_lineno_1" != "x$as_lineno_2" &&
22970  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22971  # Find who we are.  Look in the path if we contain no path at all
22972  # relative or not.
22973  case $0 in
22974    *[\\/]* ) as_myself=$0 ;;
22975    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22976for as_dir in $PATH
22977do
22978  IFS=$as_save_IFS
22979  test -z "$as_dir" && as_dir=.
22980  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22981done
22982
22983       ;;
22984  esac
22985  # We did not find ourselves, most probably we were run as `sh COMMAND'
22986  # in which case we are not to be found in the path.
22987  if test "x$as_myself" = x; then
22988    as_myself=$0
22989  fi
22990  if test ! -f "$as_myself"; then
22991    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22992echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22993   { (exit 1); exit 1; }; }
22994  fi
22995  case $CONFIG_SHELL in
22996  '')
22997    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22998for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22999do
23000  IFS=$as_save_IFS
23001  test -z "$as_dir" && as_dir=.
23002  for as_base in sh bash ksh sh5; do
23003	 case $as_dir in
23004	 /*)
23005	   if ("$as_dir/$as_base" -c '
23006  as_lineno_1=$LINENO
23007  as_lineno_2=$LINENO
23008  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23009  test "x$as_lineno_1" != "x$as_lineno_2" &&
23010  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23011	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23012	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23013	     CONFIG_SHELL=$as_dir/$as_base
23014	     export CONFIG_SHELL
23015	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23016	   fi;;
23017	 esac
23018       done
23019done
23020;;
23021  esac
23022
23023  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23024  # uniformly replaced by the line number.  The first 'sed' inserts a
23025  # line-number line before each line; the second 'sed' does the real
23026  # work.  The second script uses 'N' to pair each line-number line
23027  # with the numbered line, and appends trailing '-' during
23028  # substitution so that $LINENO is not a special case at line end.
23029  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23030  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23031  sed '=' <$as_myself |
23032    sed '
23033      N
23034      s,$,-,
23035      : loop
23036      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23037      t loop
23038      s,-$,,
23039      s,^['$as_cr_digits']*\n,,
23040    ' >$as_me.lineno &&
23041  chmod +x $as_me.lineno ||
23042    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23043echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23044   { (exit 1); exit 1; }; }
23045
23046  # Don't try to exec as it changes $[0], causing all sort of problems
23047  # (the dirname of $[0] is not the place where we might find the
23048  # original and so on.  Autoconf is especially sensible to this).
23049  . ./$as_me.lineno
23050  # Exit status is that of the last command.
23051  exit
23052}
23053
23054
23055case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23056  *c*,-n*) ECHO_N= ECHO_C='
23057' ECHO_T='	' ;;
23058  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23059  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23060esac
23061
23062if expr a : '\(a\)' >/dev/null 2>&1; then
23063  as_expr=expr
23064else
23065  as_expr=false
23066fi
23067
23068rm -f conf$$ conf$$.exe conf$$.file
23069echo >conf$$.file
23070if ln -s conf$$.file conf$$ 2>/dev/null; then
23071  # We could just check for DJGPP; but this test a) works b) is more generic
23072  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23073  if test -f conf$$.exe; then
23074    # Don't use ln at all; we don't have any links
23075    as_ln_s='cp -p'
23076  else
23077    as_ln_s='ln -s'
23078  fi
23079elif ln conf$$.file conf$$ 2>/dev/null; then
23080  as_ln_s=ln
23081else
23082  as_ln_s='cp -p'
23083fi
23084rm -f conf$$ conf$$.exe conf$$.file
23085
23086if mkdir -p . 2>/dev/null; then
23087  as_mkdir_p=:
23088else
23089  as_mkdir_p=false
23090fi
23091
23092as_executable_p="test -f"
23093
23094# Sed expression to map a string onto a valid CPP name.
23095as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23096
23097# Sed expression to map a string onto a valid variable name.
23098as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23099
23100
23101# IFS
23102# We need space, tab and new line, in precisely that order.
23103as_nl='
23104'
23105IFS=" 	$as_nl"
23106
23107# CDPATH.
23108$as_unset CDPATH
23109
23110exec 6>&1
23111
23112# Open the log real soon, to keep \$[0] and so on meaningful, and to
23113# report actual input values of CONFIG_FILES etc. instead of their
23114# values after options handling.  Logging --version etc. is OK.
23115exec 5>>config.log
23116{
23117  echo
23118  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23119## Running $as_me. ##
23120_ASBOX
23121} >&5
23122cat >&5 <<_CSEOF
23123
23124This file was extended by [LLVM] $as_me [1.0], which was
23125generated by GNU Autoconf 2.57.  Invocation command line was
23126
23127  CONFIG_FILES    = $CONFIG_FILES
23128  CONFIG_HEADERS  = $CONFIG_HEADERS
23129  CONFIG_LINKS    = $CONFIG_LINKS
23130  CONFIG_COMMANDS = $CONFIG_COMMANDS
23131  $ $0 $@
23132
23133_CSEOF
23134echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23135echo >&5
23136_ACEOF
23137
23138# Files that config.status was made for.
23139if test -n "$ac_config_files"; then
23140  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23141fi
23142
23143if test -n "$ac_config_headers"; then
23144  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23145fi
23146
23147if test -n "$ac_config_links"; then
23148  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23149fi
23150
23151if test -n "$ac_config_commands"; then
23152  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23153fi
23154
23155cat >>$CONFIG_STATUS <<\_ACEOF
23156
23157ac_cs_usage="\
23158\`$as_me' instantiates files from templates according to the
23159current configuration.
23160
23161Usage: $0 [OPTIONS] [FILE]...
23162
23163  -h, --help       print this help, then exit
23164  -V, --version    print version number, then exit
23165  -q, --quiet      do not print progress messages
23166  -d, --debug      don't remove temporary files
23167      --recheck    update $as_me by reconfiguring in the same conditions
23168  --file=FILE[:TEMPLATE]
23169                   instantiate the configuration file FILE
23170  --header=FILE[:TEMPLATE]
23171                   instantiate the configuration header FILE
23172
23173Configuration files:
23174$config_files
23175
23176Configuration headers:
23177$config_headers
23178
23179Configuration commands:
23180$config_commands
23181
23182Report bugs to <bug-autoconf@gnu.org>."
23183_ACEOF
23184
23185cat >>$CONFIG_STATUS <<_ACEOF
23186ac_cs_version="\\
23187[LLVM] config.status [1.0]
23188configured by $0, generated by GNU Autoconf 2.57,
23189  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23190
23191Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23192Free Software Foundation, Inc.
23193This config.status script is free software; the Free Software Foundation
23194gives unlimited permission to copy, distribute and modify it."
23195srcdir=$srcdir
23196INSTALL="$INSTALL"
23197_ACEOF
23198
23199cat >>$CONFIG_STATUS <<\_ACEOF
23200# If no file are specified by the user, then we need to provide default
23201# value.  By we need to know if files were specified by the user.
23202ac_need_defaults=:
23203while test $# != 0
23204do
23205  case $1 in
23206  --*=*)
23207    ac_option=`expr "x$1" : 'x\([^=]*\)='`
23208    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23209    ac_shift=:
23210    ;;
23211  -*)
23212    ac_option=$1
23213    ac_optarg=$2
23214    ac_shift=shift
23215    ;;
23216  *) # This is not an option, so the user has probably given explicit
23217     # arguments.
23218     ac_option=$1
23219     ac_need_defaults=false;;
23220  esac
23221
23222  case $ac_option in
23223  # Handling of the options.
23224_ACEOF
23225cat >>$CONFIG_STATUS <<\_ACEOF
23226  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23227    ac_cs_recheck=: ;;
23228  --version | --vers* | -V )
23229    echo "$ac_cs_version"; exit 0 ;;
23230  --he | --h)
23231    # Conflict between --help and --header
23232    { { echo "$as_me:$LINENO: error: ambiguous option: $1
23233Try \`$0 --help' for more information." >&5
23234echo "$as_me: error: ambiguous option: $1
23235Try \`$0 --help' for more information." >&2;}
23236   { (exit 1); exit 1; }; };;
23237  --help | --hel | -h )
23238    echo "$ac_cs_usage"; exit 0 ;;
23239  --debug | --d* | -d )
23240    debug=: ;;
23241  --file | --fil | --fi | --f )
23242    $ac_shift
23243    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23244    ac_need_defaults=false;;
23245  --header | --heade | --head | --hea )
23246    $ac_shift
23247    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23248    ac_need_defaults=false;;
23249  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23250  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23251    ac_cs_silent=: ;;
23252
23253  # This is an error.
23254  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23255Try \`$0 --help' for more information." >&5
23256echo "$as_me: error: unrecognized option: $1
23257Try \`$0 --help' for more information." >&2;}
23258   { (exit 1); exit 1; }; } ;;
23259
23260  *) ac_config_targets="$ac_config_targets $1" ;;
23261
23262  esac
23263  shift
23264done
23265
23266ac_configure_extra_args=
23267
23268if $ac_cs_silent; then
23269  exec 6>/dev/null
23270  ac_configure_extra_args="$ac_configure_extra_args --silent"
23271fi
23272
23273_ACEOF
23274cat >>$CONFIG_STATUS <<_ACEOF
23275if \$ac_cs_recheck; then
23276  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23277  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23278fi
23279
23280_ACEOF
23281
23282cat >>$CONFIG_STATUS <<_ACEOF
23283#
23284# INIT-COMMANDS section.
23285#
23286
23287${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23288${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23289${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23290${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23291${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23292${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23293${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23294${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23295${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23296${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23297${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23298${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23299${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23300${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23301${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23302${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23303${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23304${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23305${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23306${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23307${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23308${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23309${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23310${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23311${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23312${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23313${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23314${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23315${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23316${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23317${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23318${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23319${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23320${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23321${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23322${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23323${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23324${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23325${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23326${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libexception/Makefile`
23327${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23328${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23329${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23330${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23331${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
23332${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23333${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23334${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
23335${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23336${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23337${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23338${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23339${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23340${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23341${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23342${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23343${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23344${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23345${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23346${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23347${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23348${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23349${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23350${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23351${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23352${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23353${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23354${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23355${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23356${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23357${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23358${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23359${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23360${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23361${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23362${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23363${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23364${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23365${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23366${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23367${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23368${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23369${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23370${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23371${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23372${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23373${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23374${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23375${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23376${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23377${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
23378${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23379${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
23380${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23381${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23382${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23383${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23384${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23385${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23386${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23387${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23388${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23389${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23390${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23391${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23392${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23393${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23394${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23395${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23396${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23397${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23398${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23399${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23400${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23401${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23402${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23403${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
23404${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
23405${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23406${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23407${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23408${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23409${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23410${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
23411${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
23412${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
23413${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23414${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23415${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23416${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23417${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
23418${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23419${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23420${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23421${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23422${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23423${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23424${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23425${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23426${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
23427${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23428${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23429${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23430${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23431${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23432${srcdir}/autoconf/mkinstalldirs `dirname tools/as/Makefile`
23433${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23434${srcdir}/autoconf/mkinstalldirs `dirname tools/dis/Makefile`
23435${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23436${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23437${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23438${srcdir}/autoconf/mkinstalldirs `dirname tools/link/Makefile`
23439${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23440${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23441${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23442${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23443${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23444${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
23445${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23446${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23447${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23448${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23449${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23450${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23451${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23452${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23453${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23454${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23455${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23456${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23457${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23458${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23459${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23460${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23461${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23462${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23463
23464_ACEOF
23465
23466
23467
23468cat >>$CONFIG_STATUS <<\_ACEOF
23469for ac_config_target in $ac_config_targets
23470do
23471  case "$ac_config_target" in
23472  # Handling of arguments.
23473  "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23474  "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23475  "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23476  "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23477  "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23478  "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23479  "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23480  "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23481  "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23482  "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23483  "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23484  "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23485  "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23486  "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23487  "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23488  "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23489  "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23490  "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23491  "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23492  "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23493  "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23494  "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23495  "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23496  "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23497  "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23498  "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23499  "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23500  "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23501  "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23502  "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23503  "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23504  "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23505  "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23506  "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23507  "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23508  "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23509  "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23510  "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23511  "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23512  "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23513  "runtime/GCCLibraries/libexception/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libexception/Makefile" ;;
23514  "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23515  "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23516  "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23517  "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23518  "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
23519  "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23520  "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23521  "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
23522  "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23523  "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23524  "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23525  "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23526  "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23527  "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23528  "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23529  "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23530  "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23531  "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23532  "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23533  "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23534  "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23535  "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23536  "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23537  "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23538  "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23539  "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23540  "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23541  "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23542  "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23543  "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23544  "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23545  "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23546  "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23547  "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23548  "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23549  "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23550  "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23551  "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23552  "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23553  "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23554  "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23555  "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23556  "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23557  "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23558  "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23559  "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23560  "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23561  "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23562  "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23563  "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23564  "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
23565  "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23566  "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
23567  "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23568  "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23569  "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23570  "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23571  "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23572  "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23573  "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23574  "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23575  "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23576  "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23577  "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23578  "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23579  "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23580  "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23581  "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23582  "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23583  "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23584  "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23585  "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23586  "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23587  "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23588  "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23589  "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23590  "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
23591  "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
23592  "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23593  "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23594  "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23595  "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23596  "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23597  "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
23598  "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
23599  "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
23600  "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23601  "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23602  "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23603  "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23604  "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
23605  "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23606  "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23607  "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23608  "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23609  "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23610  "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23611  "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23612  "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23613  "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
23614  "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23615  "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23616  "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23617  "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23618  "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23619  "tools/as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/as/Makefile" ;;
23620  "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23621  "tools/dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/dis/Makefile" ;;
23622  "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23623  "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23624  "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23625  "tools/link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/link/Makefile" ;;
23626  "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23627  "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23628  "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23629  "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23630  "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23631  "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
23632  "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23633  "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23634  "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23635  "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23636  "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23637  "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23638  "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23639  "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23640  "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23641  "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23642  "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23643  "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23644  "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23645  "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23646  "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23647  "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23648  "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23649  "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23650  "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23651  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23652echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23653   { (exit 1); exit 1; }; };;
23654  esac
23655done
23656
23657# If the user did not use the arguments to specify the items to instantiate,
23658# then the envvar interface is used.  Set only those that are not.
23659# We use the long form for the default assignment because of an extremely
23660# bizarre bug on SunOS 4.1.3.
23661if $ac_need_defaults; then
23662  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23663  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23664  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23665fi
23666
23667# Have a temporary directory for convenience.  Make it in the build tree
23668# simply because there is no reason to put it here, and in addition,
23669# creating and moving files from /tmp can sometimes cause problems.
23670# Create a temporary directory, and hook for its removal unless debugging.
23671$debug ||
23672{
23673  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23674  trap '{ (exit 1); exit 1; }' 1 2 13 15
23675}
23676
23677# Create a (secure) tmp directory for tmp files.
23678
23679{
23680  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23681  test -n "$tmp" && test -d "$tmp"
23682}  ||
23683{
23684  tmp=./confstat$$-$RANDOM
23685  (umask 077 && mkdir $tmp)
23686} ||
23687{
23688   echo "$me: cannot create a temporary directory in ." >&2
23689   { (exit 1); exit 1; }
23690}
23691
23692_ACEOF
23693
23694cat >>$CONFIG_STATUS <<_ACEOF
23695
23696#
23697# CONFIG_FILES section.
23698#
23699
23700# No need to generate the scripts if there are no CONFIG_FILES.
23701# This happens for instance when ./config.status config.h
23702if test -n "\$CONFIG_FILES"; then
23703  # Protect against being on the right side of a sed subst in config.status.
23704  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23705   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23706s,@SHELL@,$SHELL,;t t
23707s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23708s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23709s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23710s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23711s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23712s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23713s,@exec_prefix@,$exec_prefix,;t t
23714s,@prefix@,$prefix,;t t
23715s,@program_transform_name@,$program_transform_name,;t t
23716s,@bindir@,$bindir,;t t
23717s,@sbindir@,$sbindir,;t t
23718s,@libexecdir@,$libexecdir,;t t
23719s,@datadir@,$datadir,;t t
23720s,@sysconfdir@,$sysconfdir,;t t
23721s,@sharedstatedir@,$sharedstatedir,;t t
23722s,@localstatedir@,$localstatedir,;t t
23723s,@libdir@,$libdir,;t t
23724s,@includedir@,$includedir,;t t
23725s,@oldincludedir@,$oldincludedir,;t t
23726s,@infodir@,$infodir,;t t
23727s,@mandir@,$mandir,;t t
23728s,@build_alias@,$build_alias,;t t
23729s,@host_alias@,$host_alias,;t t
23730s,@target_alias@,$target_alias,;t t
23731s,@DEFS@,$DEFS,;t t
23732s,@ECHO_C@,$ECHO_C,;t t
23733s,@ECHO_N@,$ECHO_N,;t t
23734s,@ECHO_T@,$ECHO_T,;t t
23735s,@LIBS@,$LIBS,;t t
23736s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23737s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23738s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23739s,@build@,$build,;t t
23740s,@build_cpu@,$build_cpu,;t t
23741s,@build_vendor@,$build_vendor,;t t
23742s,@build_os@,$build_os,;t t
23743s,@host@,$host,;t t
23744s,@host_cpu@,$host_cpu,;t t
23745s,@host_vendor@,$host_vendor,;t t
23746s,@host_os@,$host_os,;t t
23747s,@target@,$target,;t t
23748s,@target_cpu@,$target_cpu,;t t
23749s,@target_vendor@,$target_vendor,;t t
23750s,@target_os@,$target_os,;t t
23751s,@OS@,$OS,;t t
23752s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23753s,@ARCH@,$ARCH,;t t
23754s,@CXX@,$CXX,;t t
23755s,@CXXFLAGS@,$CXXFLAGS,;t t
23756s,@LDFLAGS@,$LDFLAGS,;t t
23757s,@CPPFLAGS@,$CPPFLAGS,;t t
23758s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23759s,@EXEEXT@,$EXEEXT,;t t
23760s,@OBJEXT@,$OBJEXT,;t t
23761s,@CC@,$CC,;t t
23762s,@CFLAGS@,$CFLAGS,;t t
23763s,@ac_ct_CC@,$ac_ct_CC,;t t
23764s,@CPP@,$CPP,;t t
23765s,@ifGNUmake@,$ifGNUmake,;t t
23766s,@LEX@,$LEX,;t t
23767s,@LEXLIB@,$LEXLIB,;t t
23768s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23769s,@YACC@,$YACC,;t t
23770s,@EGREP@,$EGREP,;t t
23771s,@LN_S@,$LN_S,;t t
23772s,@ECHO@,$ECHO,;t t
23773s,@AR@,$AR,;t t
23774s,@ac_ct_AR@,$ac_ct_AR,;t t
23775s,@RANLIB@,$RANLIB,;t t
23776s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23777s,@STRIP@,$STRIP,;t t
23778s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23779s,@CXXCPP@,$CXXCPP,;t t
23780s,@F77@,$F77,;t t
23781s,@FFLAGS@,$FFLAGS,;t t
23782s,@ac_ct_F77@,$ac_ct_F77,;t t
23783s,@LIBTOOL@,$LIBTOOL,;t t
23784s,@RPWD@,$RPWD,;t t
23785s,@SED@,$SED,;t t
23786s,@RM@,$RM,;t t
23787s,@MKDIR@,$MKDIR,;t t
23788s,@DATE@,$DATE,;t t
23789s,@MV@,$MV,;t t
23790s,@DOT@,$DOT,;t t
23791s,@ETAGS@,$ETAGS,;t t
23792s,@PURIFY@,$PURIFY,;t t
23793s,@PYTHON@,$PYTHON,;t t
23794s,@QMTEST@,$QMTEST,;t t
23795s,@ALLOCA@,$ALLOCA,;t t
23796s,@LIBOBJS@,$LIBOBJS,;t t
23797s,@MMAP_FILE@,$MMAP_FILE,;t t
23798s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23799s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23800s,@USE_SPEC@,$USE_SPEC,;t t
23801s,@UPB@,$UPB,;t t
23802s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23803s,@JIT@,$JIT,;t t
23804s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23805s,@BCR@,$BCR,;t t
23806s,@PAPIDIR@,$PAPIDIR,;t t
23807s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23808CEOF
23809
23810_ACEOF
23811
23812  cat >>$CONFIG_STATUS <<\_ACEOF
23813  # Split the substitutions into bite-sized pieces for seds with
23814  # small command number limits, like on Digital OSF/1 and HP-UX.
23815  ac_max_sed_lines=48
23816  ac_sed_frag=1 # Number of current file.
23817  ac_beg=1 # First line for current file.
23818  ac_end=$ac_max_sed_lines # Line after last line for current file.
23819  ac_more_lines=:
23820  ac_sed_cmds=
23821  while $ac_more_lines; do
23822    if test $ac_beg -gt 1; then
23823      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23824    else
23825      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23826    fi
23827    if test ! -s $tmp/subs.frag; then
23828      ac_more_lines=false
23829    else
23830      # The purpose of the label and of the branching condition is to
23831      # speed up the sed processing (if there are no `@' at all, there
23832      # is no need to browse any of the substitutions).
23833      # These are the two extra sed commands mentioned above.
23834      (echo ':t
23835  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23836      if test -z "$ac_sed_cmds"; then
23837  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23838      else
23839  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23840      fi
23841      ac_sed_frag=`expr $ac_sed_frag + 1`
23842      ac_beg=$ac_end
23843      ac_end=`expr $ac_end + $ac_max_sed_lines`
23844    fi
23845  done
23846  if test -z "$ac_sed_cmds"; then
23847    ac_sed_cmds=cat
23848  fi
23849fi # test -n "$CONFIG_FILES"
23850
23851_ACEOF
23852cat >>$CONFIG_STATUS <<\_ACEOF
23853for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23854  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23855  case $ac_file in
23856  - | *:- | *:-:* ) # input from stdin
23857        cat >$tmp/stdin
23858        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23859        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23860  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23861        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23862  * )   ac_file_in=$ac_file.in ;;
23863  esac
23864
23865  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23866  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23867$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23868         X"$ac_file" : 'X\(//\)[^/]' \| \
23869         X"$ac_file" : 'X\(//\)$' \| \
23870         X"$ac_file" : 'X\(/\)' \| \
23871         .     : '\(.\)' 2>/dev/null ||
23872echo X"$ac_file" |
23873    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23874  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23875  	  /^X\(\/\/\)$/{ s//\1/; q; }
23876  	  /^X\(\/\).*/{ s//\1/; q; }
23877  	  s/.*/./; q'`
23878  { if $as_mkdir_p; then
23879    mkdir -p "$ac_dir"
23880  else
23881    as_dir="$ac_dir"
23882    as_dirs=
23883    while test ! -d "$as_dir"; do
23884      as_dirs="$as_dir $as_dirs"
23885      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23886$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23887         X"$as_dir" : 'X\(//\)[^/]' \| \
23888         X"$as_dir" : 'X\(//\)$' \| \
23889         X"$as_dir" : 'X\(/\)' \| \
23890         .     : '\(.\)' 2>/dev/null ||
23891echo X"$as_dir" |
23892    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23893  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23894  	  /^X\(\/\/\)$/{ s//\1/; q; }
23895  	  /^X\(\/\).*/{ s//\1/; q; }
23896  	  s/.*/./; q'`
23897    done
23898    test ! -n "$as_dirs" || mkdir $as_dirs
23899  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23900echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23901   { (exit 1); exit 1; }; }; }
23902
23903  ac_builddir=.
23904
23905if test "$ac_dir" != .; then
23906  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23907  # A "../" for each directory in $ac_dir_suffix.
23908  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23909else
23910  ac_dir_suffix= ac_top_builddir=
23911fi
23912
23913case $srcdir in
23914  .)  # No --srcdir option.  We are building in place.
23915    ac_srcdir=.
23916    if test -z "$ac_top_builddir"; then
23917       ac_top_srcdir=.
23918    else
23919       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23920    fi ;;
23921  [\\/]* | ?:[\\/]* )  # Absolute path.
23922    ac_srcdir=$srcdir$ac_dir_suffix;
23923    ac_top_srcdir=$srcdir ;;
23924  *) # Relative path.
23925    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23926    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23927esac
23928# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23929# absolute.
23930ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23931ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23932ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23933ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23934
23935
23936  case $INSTALL in
23937  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23938  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23939  esac
23940
23941  if test x"$ac_file" != x-; then
23942    { echo "$as_me:$LINENO: creating $ac_file" >&5
23943echo "$as_me: creating $ac_file" >&6;}
23944    rm -f "$ac_file"
23945  fi
23946  # Let's still pretend it is `configure' which instantiates (i.e., don't
23947  # use $as_me), people would be surprised to read:
23948  #    /* config.h.  Generated by config.status.  */
23949  if test x"$ac_file" = x-; then
23950    configure_input=
23951  else
23952    configure_input="$ac_file.  "
23953  fi
23954  configure_input=$configure_input"Generated from `echo $ac_file_in |
23955                                     sed 's,.*/,,'` by configure."
23956
23957  # First look for the input files in the build tree, otherwise in the
23958  # src tree.
23959  ac_file_inputs=`IFS=:
23960    for f in $ac_file_in; do
23961      case $f in
23962      -) echo $tmp/stdin ;;
23963      [\\/$]*)
23964         # Absolute (can't be DOS-style, as IFS=:)
23965         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23966echo "$as_me: error: cannot find input file: $f" >&2;}
23967   { (exit 1); exit 1; }; }
23968         echo $f;;
23969      *) # Relative
23970         if test -f "$f"; then
23971           # Build tree
23972           echo $f
23973         elif test -f "$srcdir/$f"; then
23974           # Source tree
23975           echo $srcdir/$f
23976         else
23977           # /dev/null tree
23978           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23979echo "$as_me: error: cannot find input file: $f" >&2;}
23980   { (exit 1); exit 1; }; }
23981         fi;;
23982      esac
23983    done` || { (exit 1); exit 1; }
23984_ACEOF
23985cat >>$CONFIG_STATUS <<_ACEOF
23986  sed "$ac_vpsub
23987$extrasub
23988_ACEOF
23989cat >>$CONFIG_STATUS <<\_ACEOF
23990:t
23991/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23992s,@configure_input@,$configure_input,;t t
23993s,@srcdir@,$ac_srcdir,;t t
23994s,@abs_srcdir@,$ac_abs_srcdir,;t t
23995s,@top_srcdir@,$ac_top_srcdir,;t t
23996s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23997s,@builddir@,$ac_builddir,;t t
23998s,@abs_builddir@,$ac_abs_builddir,;t t
23999s,@top_builddir@,$ac_top_builddir,;t t
24000s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24001s,@INSTALL@,$ac_INSTALL,;t t
24002" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24003  rm -f $tmp/stdin
24004  if test x"$ac_file" != x-; then
24005    mv $tmp/out $ac_file
24006  else
24007    cat $tmp/out
24008    rm -f $tmp/out
24009  fi
24010
24011done
24012_ACEOF
24013cat >>$CONFIG_STATUS <<\_ACEOF
24014
24015#
24016# CONFIG_HEADER section.
24017#
24018
24019# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24020# NAME is the cpp macro being defined and VALUE is the value it is being given.
24021#
24022# ac_d sets the value in "#define NAME VALUE" lines.
24023ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
24024ac_dB='[ 	].*$,\1#\2'
24025ac_dC=' '
24026ac_dD=',;t'
24027# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24028ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
24029ac_uB='$,\1#\2define\3'
24030ac_uC=' '
24031ac_uD=',;t'
24032
24033for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24034  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24035  case $ac_file in
24036  - | *:- | *:-:* ) # input from stdin
24037        cat >$tmp/stdin
24038        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24039        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24040  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24041        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24042  * )   ac_file_in=$ac_file.in ;;
24043  esac
24044
24045  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24046echo "$as_me: creating $ac_file" >&6;}
24047
24048  # First look for the input files in the build tree, otherwise in the
24049  # src tree.
24050  ac_file_inputs=`IFS=:
24051    for f in $ac_file_in; do
24052      case $f in
24053      -) echo $tmp/stdin ;;
24054      [\\/$]*)
24055         # Absolute (can't be DOS-style, as IFS=:)
24056         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24057echo "$as_me: error: cannot find input file: $f" >&2;}
24058   { (exit 1); exit 1; }; }
24059         echo $f;;
24060      *) # Relative
24061         if test -f "$f"; then
24062           # Build tree
24063           echo $f
24064         elif test -f "$srcdir/$f"; then
24065           # Source tree
24066           echo $srcdir/$f
24067         else
24068           # /dev/null tree
24069           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24070echo "$as_me: error: cannot find input file: $f" >&2;}
24071   { (exit 1); exit 1; }; }
24072         fi;;
24073      esac
24074    done` || { (exit 1); exit 1; }
24075  # Remove the trailing spaces.
24076  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
24077
24078_ACEOF
24079
24080# Transform confdefs.h into two sed scripts, `conftest.defines' and
24081# `conftest.undefs', that substitutes the proper values into
24082# config.h.in to produce config.h.  The first handles `#define'
24083# templates, and the second `#undef' templates.
24084# And first: Protect against being on the right side of a sed subst in
24085# config.status.  Protect against being in an unquoted here document
24086# in config.status.
24087rm -f conftest.defines conftest.undefs
24088# Using a here document instead of a string reduces the quoting nightmare.
24089# Putting comments in sed scripts is not portable.
24090#
24091# `end' is used to avoid that the second main sed command (meant for
24092# 0-ary CPP macros) applies to n-ary macro definitions.
24093# See the Autoconf documentation for `clear'.
24094cat >confdef2sed.sed <<\_ACEOF
24095s/[\\&,]/\\&/g
24096s,[\\$`],\\&,g
24097t clear
24098: clear
24099s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24100t end
24101s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24102: end
24103_ACEOF
24104# If some macros were called several times there might be several times
24105# the same #defines, which is useless.  Nevertheless, we may not want to
24106# sort them, since we want the *last* AC-DEFINE to be honored.
24107uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24108sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24109rm -f confdef2sed.sed
24110
24111# This sed command replaces #undef with comments.  This is necessary, for
24112# example, in the case of _POSIX_SOURCE, which is predefined and required
24113# on some systems where configure will not decide to define it.
24114cat >>conftest.undefs <<\_ACEOF
24115s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24116_ACEOF
24117
24118# Break up conftest.defines because some shells have a limit on the size
24119# of here documents, and old seds have small limits too (100 cmds).
24120echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24121echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24122echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24123echo '  :' >>$CONFIG_STATUS
24124rm -f conftest.tail
24125while grep . conftest.defines >/dev/null
24126do
24127  # Write a limited-size here document to $tmp/defines.sed.
24128  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24129  # Speed up: don't consider the non `#define' lines.
24130  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
24131  # Work around the forget-to-reset-the-flag bug.
24132  echo 't clr' >>$CONFIG_STATUS
24133  echo ': clr' >>$CONFIG_STATUS
24134  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24135  echo 'CEOF
24136  sed -f $tmp/defines.sed $tmp/in >$tmp/out
24137  rm -f $tmp/in
24138  mv $tmp/out $tmp/in
24139' >>$CONFIG_STATUS
24140  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24141  rm -f conftest.defines
24142  mv conftest.tail conftest.defines
24143done
24144rm -f conftest.defines
24145echo '  fi # grep' >>$CONFIG_STATUS
24146echo >>$CONFIG_STATUS
24147
24148# Break up conftest.undefs because some shells have a limit on the size
24149# of here documents, and old seds have small limits too (100 cmds).
24150echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24151rm -f conftest.tail
24152while grep . conftest.undefs >/dev/null
24153do
24154  # Write a limited-size here document to $tmp/undefs.sed.
24155  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24156  # Speed up: don't consider the non `#undef'
24157  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
24158  # Work around the forget-to-reset-the-flag bug.
24159  echo 't clr' >>$CONFIG_STATUS
24160  echo ': clr' >>$CONFIG_STATUS
24161  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24162  echo 'CEOF
24163  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24164  rm -f $tmp/in
24165  mv $tmp/out $tmp/in
24166' >>$CONFIG_STATUS
24167  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24168  rm -f conftest.undefs
24169  mv conftest.tail conftest.undefs
24170done
24171rm -f conftest.undefs
24172
24173cat >>$CONFIG_STATUS <<\_ACEOF
24174  # Let's still pretend it is `configure' which instantiates (i.e., don't
24175  # use $as_me), people would be surprised to read:
24176  #    /* config.h.  Generated by config.status.  */
24177  if test x"$ac_file" = x-; then
24178    echo "/* Generated by configure.  */" >$tmp/config.h
24179  else
24180    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24181  fi
24182  cat $tmp/in >>$tmp/config.h
24183  rm -f $tmp/in
24184  if test x"$ac_file" != x-; then
24185    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24186      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24187echo "$as_me: $ac_file is unchanged" >&6;}
24188    else
24189      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24190$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24191         X"$ac_file" : 'X\(//\)[^/]' \| \
24192         X"$ac_file" : 'X\(//\)$' \| \
24193         X"$ac_file" : 'X\(/\)' \| \
24194         .     : '\(.\)' 2>/dev/null ||
24195echo X"$ac_file" |
24196    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24197  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24198  	  /^X\(\/\/\)$/{ s//\1/; q; }
24199  	  /^X\(\/\).*/{ s//\1/; q; }
24200  	  s/.*/./; q'`
24201      { if $as_mkdir_p; then
24202    mkdir -p "$ac_dir"
24203  else
24204    as_dir="$ac_dir"
24205    as_dirs=
24206    while test ! -d "$as_dir"; do
24207      as_dirs="$as_dir $as_dirs"
24208      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24209$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24210         X"$as_dir" : 'X\(//\)[^/]' \| \
24211         X"$as_dir" : 'X\(//\)$' \| \
24212         X"$as_dir" : 'X\(/\)' \| \
24213         .     : '\(.\)' 2>/dev/null ||
24214echo X"$as_dir" |
24215    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24216  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24217  	  /^X\(\/\/\)$/{ s//\1/; q; }
24218  	  /^X\(\/\).*/{ s//\1/; q; }
24219  	  s/.*/./; q'`
24220    done
24221    test ! -n "$as_dirs" || mkdir $as_dirs
24222  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24223echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24224   { (exit 1); exit 1; }; }; }
24225
24226      rm -f $ac_file
24227      mv $tmp/config.h $ac_file
24228    fi
24229  else
24230    cat $tmp/config.h
24231    rm -f $tmp/config.h
24232  fi
24233done
24234_ACEOF
24235cat >>$CONFIG_STATUS <<\_ACEOF
24236
24237#
24238# CONFIG_COMMANDS section.
24239#
24240for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24241  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24242  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24243  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24244$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24245         X"$ac_dest" : 'X\(//\)[^/]' \| \
24246         X"$ac_dest" : 'X\(//\)$' \| \
24247         X"$ac_dest" : 'X\(/\)' \| \
24248         .     : '\(.\)' 2>/dev/null ||
24249echo X"$ac_dest" |
24250    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24251  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24252  	  /^X\(\/\/\)$/{ s//\1/; q; }
24253  	  /^X\(\/\).*/{ s//\1/; q; }
24254  	  s/.*/./; q'`
24255  ac_builddir=.
24256
24257if test "$ac_dir" != .; then
24258  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24259  # A "../" for each directory in $ac_dir_suffix.
24260  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24261else
24262  ac_dir_suffix= ac_top_builddir=
24263fi
24264
24265case $srcdir in
24266  .)  # No --srcdir option.  We are building in place.
24267    ac_srcdir=.
24268    if test -z "$ac_top_builddir"; then
24269       ac_top_srcdir=.
24270    else
24271       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24272    fi ;;
24273  [\\/]* | ?:[\\/]* )  # Absolute path.
24274    ac_srcdir=$srcdir$ac_dir_suffix;
24275    ac_top_srcdir=$srcdir ;;
24276  *) # Relative path.
24277    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24278    ac_top_srcdir=$ac_top_builddir$srcdir ;;
24279esac
24280# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24281# absolute.
24282ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24283ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24284ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24285ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24286
24287
24288  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24289echo "$as_me: executing $ac_dest commands" >&6;}
24290  case $ac_dest in
24291    Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24292    Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24293    Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24294    lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24295    lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24296    lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24297    lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24298    lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24299    lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24300    lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24301    lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24302    lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24303    lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24304    lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24305    lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24306    lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24307    lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24308    lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24309    lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24310    lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24311    lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24312    lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24313    lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24314    lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24315    lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24316    lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24317    lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24318    lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24319    lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24320    lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24321    lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24322    lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24323    lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24324    lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24325    runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24326    runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24327    runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24328    runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24329    runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24330    runtime/GCCLibraries/libexception/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libexception/Makefile runtime/GCCLibraries/libexception/Makefile ;;
24331    runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24332    runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24333    runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24334    runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24335    runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
24336    runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24337    runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24338    runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
24339    runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24340    runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24341    test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24342    test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24343    test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24344    test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24345    test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24346    test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24347    test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24348    test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24349    test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24350    test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24351    test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24352    test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24353    test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24354    test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24355    test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24356    test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24357    test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24358    test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24359    test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24360    test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24361    test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;;
24362    test/Programs/External/SPEC/CFP2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/Makefile test/Programs/External/SPEC/CFP2000/Makefile ;;
24363    test/Programs/External/SPEC/CFP2000/179.art/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/179.art/Makefile test/Programs/External/SPEC/CFP2000/179.art/Makefile ;;
24364    test/Programs/External/SPEC/CFP2000/183.equake/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/183.equake/Makefile test/Programs/External/SPEC/CFP2000/183.equake/Makefile ;;
24365    test/Programs/External/SPEC/CFP2000/188.ammp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/188.ammp/Makefile test/Programs/External/SPEC/CFP2000/188.ammp/Makefile ;;
24366    test/Programs/External/SPEC/CINT2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/Makefile test/Programs/External/SPEC/CINT2000/Makefile ;;
24367    test/Programs/External/SPEC/CINT2000/164.gzip/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/164.gzip/Makefile test/Programs/External/SPEC/CINT2000/164.gzip/Makefile ;;
24368    test/Programs/External/SPEC/CINT2000/175.vpr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/175.vpr/Makefile test/Programs/External/SPEC/CINT2000/175.vpr/Makefile ;;
24369    test/Programs/External/SPEC/CINT2000/176.gcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/176.gcc/Makefile test/Programs/External/SPEC/CINT2000/176.gcc/Makefile ;;
24370    test/Programs/External/SPEC/CINT2000/181.mcf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/181.mcf/Makefile test/Programs/External/SPEC/CINT2000/181.mcf/Makefile ;;
24371    test/Programs/External/SPEC/CINT2000/186.crafty/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/186.crafty/Makefile test/Programs/External/SPEC/CINT2000/186.crafty/Makefile ;;
24372    test/Programs/External/SPEC/CINT2000/197.parser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/197.parser/Makefile test/Programs/External/SPEC/CINT2000/197.parser/Makefile ;;
24373    test/Programs/External/SPEC/CINT2000/254.gap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/254.gap/Makefile test/Programs/External/SPEC/CINT2000/254.gap/Makefile ;;
24374    test/Programs/External/SPEC/CINT2000/255.vortex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/255.vortex/Makefile test/Programs/External/SPEC/CINT2000/255.vortex/Makefile ;;
24375    test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile ;;
24376    test/Programs/External/SPEC/CINT2000/300.twolf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/300.twolf/Makefile test/Programs/External/SPEC/CINT2000/300.twolf/Makefile ;;
24377    test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24378    test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24379    test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24380    test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24381    test/Programs/MultiSource/Applications/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Burg/Makefile test/Programs/MultiSource/Applications/Burg/Makefile ;;
24382    test/Programs/MultiSource/Applications/aha/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/aha/Makefile test/Programs/MultiSource/Applications/aha/Makefile ;;
24383    test/Programs/MultiSource/Applications/sgefa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/sgefa/Makefile test/Programs/MultiSource/Applications/sgefa/Makefile ;;
24384    test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24385    test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile ;;
24386    test/Programs/MultiSource/Benchmarks/McCat/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/Makefile test/Programs/MultiSource/Benchmarks/McCat/Makefile ;;
24387    test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile ;;
24388    test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile ;;
24389    test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile ;;
24390    test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile ;;
24391    test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile ;;
24392    test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile ;;
24393    test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile ;;
24394    test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile ;;
24395    test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile ;;
24396    test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile ;;
24397    test/Programs/MultiSource/Benchmarks/Olden/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/Makefile test/Programs/MultiSource/Benchmarks/Olden/Makefile ;;
24398    test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile ;;
24399    test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile ;;
24400    test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile ;;
24401    test/Programs/MultiSource/Benchmarks/Olden/health/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/health/Makefile test/Programs/MultiSource/Benchmarks/Olden/health/Makefile ;;
24402    test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile ;;
24403    test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile ;;
24404    test/Programs/MultiSource/Benchmarks/Olden/power/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/power/Makefile test/Programs/MultiSource/Benchmarks/Olden/power/Makefile ;;
24405    test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile ;;
24406    test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile ;;
24407    test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile ;;
24408    test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile ;;
24409    test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile ;;
24410    test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile ;;
24411    test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile ;;
24412    test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile ;;
24413    test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile ;;
24414    test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile ;;
24415    test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile ;;
24416    test/Programs/MultiSource/Benchmarks/sim/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/sim/Makefile test/Programs/MultiSource/Benchmarks/sim/Makefile ;;
24417    test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24418    test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24419    test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24420    test/Programs/NoSource/Moria-5.5.2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Moria-5.5.2/Makefile test/Programs/NoSource/Moria-5.5.2/Makefile ;;
24421    test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
24422    test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24423    test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24424    test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24425    test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24426    test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24427    test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ;;
24428    test/Programs/SingleSource/Benchmarks/Shootout/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Shootout/Makefile test/Programs/SingleSource/Benchmarks/Shootout/Makefile ;;
24429    test/Programs/SingleSource/Benchmarks/Stanford/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Stanford/Makefile test/Programs/SingleSource/Benchmarks/Stanford/Makefile ;;
24430    test/Programs/SingleSource/Benchmarks/Misc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Misc/Makefile test/Programs/SingleSource/Benchmarks/Misc/Makefile ;;
24431    test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24432    test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24433    test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;;
24434    tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24435    tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24436    tools/as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/as/Makefile tools/as/Makefile ;;
24437    tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24438    tools/dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/dis/Makefile tools/dis/Makefile ;;
24439    tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24440    tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24441    tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24442    tools/link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/link/Makefile tools/link/Makefile ;;
24443    tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24444    tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24445    tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24446    tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24447    tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24448    tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
24449    tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24450    utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24451    utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24452    utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24453    utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24454    www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24455    projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24456    projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24457    projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24458    projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24459    projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24460    projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24461    projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24462    projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24463    projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24464    projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24465    projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24466    projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24467  esac
24468done
24469_ACEOF
24470
24471cat >>$CONFIG_STATUS <<\_ACEOF
24472
24473{ (exit 0); exit 0; }
24474_ACEOF
24475chmod +x $CONFIG_STATUS
24476ac_clean_files=$ac_clean_files_save
24477
24478
24479# configure is writing to config.log, and then calls config.status.
24480# config.status does its own redirection, appending to config.log.
24481# Unfortunately, on DOS this fails, as config.log is still kept open
24482# by configure, so config.status won't be able to write to it; its
24483# output is simply discarded.  So we exec the FD to /dev/null,
24484# effectively closing config.log, so it can be properly (re)opened and
24485# appended to by config.status.  When coming back to configure, we
24486# need to make the FD available again.
24487if test "$no_create" != yes; then
24488  ac_cs_success=:
24489  ac_config_status_args=
24490  test "$silent" = yes &&
24491    ac_config_status_args="$ac_config_status_args --quiet"
24492  exec 5>/dev/null
24493  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24494  exec 5>>config.log
24495  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24496  # would make configure fail if this is the last instruction.
24497  $ac_cs_success || { (exit 1); exit 1; }
24498fi
24499
24500