configure revision 1b82432a8377e1fbfac3b3e48a1000f49338513a
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 ${srcdir} != "."
1513then
1514	if test -f ${srcdir}/include/Config/config.h
1515	then
1516		{ { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1517echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518   { (exit 1); exit 1; }; }
1519	fi
1520fi
1521
1522          ac_config_headers="$ac_config_headers include/Config/config.h"
1523
1524          ac_config_commands="$ac_config_commands Makefile"
1525
1526
1527          ac_config_commands="$ac_config_commands Makefile.common"
1528
1529
1530          ac_config_commands="$ac_config_commands Makefile.rules"
1531
1532
1533          ac_config_commands="$ac_config_commands lib/Makefile"
1534
1535
1536          ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
1537
1538
1539          ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
1540
1541
1542          ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
1543
1544
1545          ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
1546
1547
1548          ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
1549
1550
1551          ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
1552
1553
1554          ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
1555
1556
1557          ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
1558
1559
1560          ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
1561
1562
1563          ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
1564
1565
1566          ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
1567
1568
1569          ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
1570
1571
1572          ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
1573
1574
1575          ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
1576
1577
1578          ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
1579
1580
1581          ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
1582
1583
1584          ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
1585
1586
1587          ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
1588
1589
1590          ac_config_commands="$ac_config_commands lib/Support/Makefile"
1591
1592
1593          ac_config_commands="$ac_config_commands lib/Target/Makefile"
1594
1595
1596          ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1597
1598
1599          ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1600
1601
1602          ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1603
1604
1605          ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1606
1607
1608          ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1609
1610
1611          ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1612
1613
1614          ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1615
1616
1617          ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1618
1619
1620          ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1621
1622
1623          ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1624
1625
1626          ac_config_commands="$ac_config_commands runtime/Makefile"
1627
1628
1629          ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1630
1631
1632          ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1633
1634
1635          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
1636
1637
1638          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1639
1640
1641          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libexception/Makefile"
1642
1643
1644          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
1645
1646
1647          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
1648
1649
1650          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
1651
1652
1653          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
1654
1655
1656          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1657
1658
1659          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
1660
1661
1662          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1663
1664
1665          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1666
1667
1668          ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1669
1670
1671          ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1672
1673
1674          ac_config_commands="$ac_config_commands test/Makefile"
1675
1676
1677          ac_config_commands="$ac_config_commands test/Makefile.tests"
1678
1679
1680          ac_config_commands="$ac_config_commands test/Programs/Makefile"
1681
1682
1683          ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1684
1685
1686          ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1687
1688
1689          ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1690
1691
1692          ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1693
1694
1695          ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1696
1697
1698          ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1699
1700
1701          ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1702
1703
1704          ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1705
1706
1707          ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1708
1709
1710          ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1711
1712
1713          ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1714
1715
1716          ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1717
1718
1719          ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1720
1721
1722          ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1723
1724
1725          ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1726
1727
1728          ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1729
1730
1731          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1732
1733
1734          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1735
1736
1737          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1738
1739
1740          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1741
1742
1743          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1744
1745
1746          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1747
1748
1749          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1750
1751
1752          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1753
1754
1755          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1756
1757
1758          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1759
1760
1761          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1762
1763
1764          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1765
1766
1767          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1768
1769
1770          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1771
1772
1773          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1774
1775
1776          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1777
1778
1779          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1780
1781
1782          ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1783
1784
1785          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1786
1787
1788          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1789
1790
1791          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
1792
1793
1794          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
1795
1796
1797          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1798
1799
1800          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1801
1802
1803          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
1804
1805
1806          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
1807
1808
1809          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
1810
1811
1812          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
1813
1814
1815          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
1816
1817
1818          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
1819
1820
1821          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
1822
1823
1824          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
1825
1826
1827          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
1828
1829
1830          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
1831
1832
1833          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
1834
1835
1836          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
1837
1838
1839          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
1840
1841
1842          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
1843
1844
1845          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
1846
1847
1848          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
1849
1850
1851          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
1852
1853
1854          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
1855
1856
1857          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
1858
1859
1860          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
1861
1862
1863          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
1864
1865
1866          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1867
1868
1869          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1870
1871
1872          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
1873
1874
1875          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
1876
1877
1878          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
1879
1880
1881          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
1882
1883
1884          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
1885
1886
1887          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
1888
1889
1890          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
1891
1892
1893          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
1894
1895
1896          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
1897
1898
1899          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
1900
1901
1902          ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
1903
1904
1905          ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
1906
1907
1908          ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
1909
1910
1911          ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
1912
1913
1914          ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
1915
1916
1917          ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
1918
1919
1920          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1921
1922
1923          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1924
1925
1926          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1927
1928
1929          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1930
1931
1932          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1933
1934
1935          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1936
1937
1938          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1939
1940
1941          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1942
1943
1944          ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
1945
1946
1947          ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
1948
1949
1950          ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1951
1952
1953          ac_config_commands="$ac_config_commands tools/Makefile"
1954
1955
1956          ac_config_commands="$ac_config_commands tools/analyze/Makefile"
1957
1958
1959          ac_config_commands="$ac_config_commands tools/as/Makefile"
1960
1961
1962          ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
1963
1964
1965          ac_config_commands="$ac_config_commands tools/dis/Makefile"
1966
1967
1968          ac_config_commands="$ac_config_commands tools/extract/Makefile"
1969
1970
1971          ac_config_commands="$ac_config_commands tools/gccas/Makefile"
1972
1973
1974          ac_config_commands="$ac_config_commands tools/gccld/Makefile"
1975
1976
1977          ac_config_commands="$ac_config_commands tools/link/Makefile"
1978
1979
1980          ac_config_commands="$ac_config_commands tools/llc/Makefile"
1981
1982
1983          ac_config_commands="$ac_config_commands tools/lli/Makefile"
1984
1985
1986          ac_config_commands="$ac_config_commands tools/opt/Makefile"
1987
1988
1989          ac_config_commands="$ac_config_commands tools/llee/Makefile"
1990
1991
1992          ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
1993
1994
1995          ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
1996
1997
1998          ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
1999
2000
2001          ac_config_commands="$ac_config_commands utils/Makefile"
2002
2003
2004          ac_config_commands="$ac_config_commands utils/Burg/Makefile"
2005
2006
2007          ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
2008
2009
2010          ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2011
2012
2013          ac_config_commands="$ac_config_commands www/docs/Makefile"
2014
2015
2016          ac_config_commands="$ac_config_commands projects/Makefile"
2017
2018
2019          ac_config_commands="$ac_config_commands projects/sample/Makefile"
2020
2021
2022          ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
2023
2024
2025          ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
2026
2027
2028          ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
2029
2030
2031          ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
2032
2033
2034          ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
2035
2036
2037          ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
2038
2039
2040          ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2041
2042
2043          ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2044
2045
2046          ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2047
2048
2049          ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2050
2051
2052
2053
2054# Find a good install program.  We prefer a C program (faster),
2055# so one script is as good as another.  But avoid the broken or
2056# incompatible versions:
2057# SysV /etc/install, /usr/sbin/install
2058# SunOS /usr/etc/install
2059# IRIX /sbin/install
2060# AIX /bin/install
2061# AmigaOS /C/install, which installs bootblocks on floppy discs
2062# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2063# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2064# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2065# ./install, which can be erroneously created by make from ./install.sh.
2066echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2067echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2068if test -z "$INSTALL"; then
2069if test "${ac_cv_path_install+set}" = set; then
2070  echo $ECHO_N "(cached) $ECHO_C" >&6
2071else
2072  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073for as_dir in $PATH
2074do
2075  IFS=$as_save_IFS
2076  test -z "$as_dir" && as_dir=.
2077  # Account for people who put trailing slashes in PATH elements.
2078case $as_dir/ in
2079  ./ | .// | /cC/* | \
2080  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2081  /usr/ucb/* ) ;;
2082  *)
2083    # OSF1 and SCO ODT 3.0 have their own names for install.
2084    # Don't use installbsd from OSF since it installs stuff as root
2085    # by default.
2086    for ac_prog in ginstall scoinst install; do
2087      for ac_exec_ext in '' $ac_executable_extensions; do
2088        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2089          if test $ac_prog = install &&
2090            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2091            # AIX install.  It has an incompatible calling convention.
2092            :
2093          elif test $ac_prog = install &&
2094            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2095            # program-specific install script used by HP pwplus--don't use.
2096            :
2097          else
2098            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2099            break 3
2100          fi
2101        fi
2102      done
2103    done
2104    ;;
2105esac
2106done
2107
2108
2109fi
2110  if test "${ac_cv_path_install+set}" = set; then
2111    INSTALL=$ac_cv_path_install
2112  else
2113    # As a last resort, use the slow shell script.  We don't cache a
2114    # path for INSTALL within a source directory, because that will
2115    # break other packages using the cache if that directory is
2116    # removed, or if the path is relative.
2117    INSTALL=$ac_install_sh
2118  fi
2119fi
2120echo "$as_me:$LINENO: result: $INSTALL" >&5
2121echo "${ECHO_T}$INSTALL" >&6
2122
2123# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2124# It thinks the first close brace ends the variable substitution.
2125test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2126
2127test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2128
2129test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2130
2131
2132# Make sure we can run config.sub.
2133$ac_config_sub sun4 >/dev/null 2>&1 ||
2134  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2135echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2136   { (exit 1); exit 1; }; }
2137
2138echo "$as_me:$LINENO: checking build system type" >&5
2139echo $ECHO_N "checking build system type... $ECHO_C" >&6
2140if test "${ac_cv_build+set}" = set; then
2141  echo $ECHO_N "(cached) $ECHO_C" >&6
2142else
2143  ac_cv_build_alias=$build_alias
2144test -z "$ac_cv_build_alias" &&
2145  ac_cv_build_alias=`$ac_config_guess`
2146test -z "$ac_cv_build_alias" &&
2147  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2148echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2149   { (exit 1); exit 1; }; }
2150ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2151  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2152echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2153   { (exit 1); exit 1; }; }
2154
2155fi
2156echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2157echo "${ECHO_T}$ac_cv_build" >&6
2158build=$ac_cv_build
2159build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2160build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2161build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2162
2163
2164echo "$as_me:$LINENO: checking host system type" >&5
2165echo $ECHO_N "checking host system type... $ECHO_C" >&6
2166if test "${ac_cv_host+set}" = set; then
2167  echo $ECHO_N "(cached) $ECHO_C" >&6
2168else
2169  ac_cv_host_alias=$host_alias
2170test -z "$ac_cv_host_alias" &&
2171  ac_cv_host_alias=$ac_cv_build_alias
2172ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2173  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2174echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2175   { (exit 1); exit 1; }; }
2176
2177fi
2178echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2179echo "${ECHO_T}$ac_cv_host" >&6
2180host=$ac_cv_host
2181host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2182host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2183host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2184
2185
2186echo "$as_me:$LINENO: checking target system type" >&5
2187echo $ECHO_N "checking target system type... $ECHO_C" >&6
2188if test "${ac_cv_target+set}" = set; then
2189  echo $ECHO_N "(cached) $ECHO_C" >&6
2190else
2191  ac_cv_target_alias=$target_alias
2192test "x$ac_cv_target_alias" = "x" &&
2193  ac_cv_target_alias=$ac_cv_host_alias
2194ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2195  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2196echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2197   { (exit 1); exit 1; }; }
2198
2199fi
2200echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2201echo "${ECHO_T}$ac_cv_target" >&6
2202target=$ac_cv_target
2203target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2204target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2205target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2206
2207
2208# The aliases save the names the user supplied, while $host etc.
2209# will get canonicalized.
2210test -n "$target_alias" &&
2211  test "$program_prefix$program_suffix$program_transform_name" = \
2212    NONENONEs,x,x, &&
2213  program_prefix=${target_alias}-
2214
2215case $build in
2216	*i*86*)  OS=Linux
2217
2218	         LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2219
2220	         ;;
2221
2222	*sparc*) OS=SunOS
2223
2224	         LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2225
2226	         ;;
2227
2228	*)       OS=Unknown
2229
2230	         ;;
2231esac
2232
2233case $target in
2234	*sparc*solaris*)  target=sparcv9-sun-solaris2.8
2235
2236	                  ;;
2237esac
2238
2239case $target in
2240	*i*86*)           ARCH=x86
2241
2242	                  ;;
2243	*sparc*solaris*)  ARCH=Sparc
2244
2245	                  ;;
2246esac
2247
2248
2249ac_ext=cc
2250ac_cpp='$CXXCPP $CPPFLAGS'
2251ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2252ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2253ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2254if test -n "$ac_tool_prefix"; then
2255  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2256  do
2257    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2258set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2259echo "$as_me:$LINENO: checking for $ac_word" >&5
2260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2261if test "${ac_cv_prog_CXX+set}" = set; then
2262  echo $ECHO_N "(cached) $ECHO_C" >&6
2263else
2264  if test -n "$CXX"; then
2265  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2266else
2267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268for as_dir in $PATH
2269do
2270  IFS=$as_save_IFS
2271  test -z "$as_dir" && as_dir=.
2272  for ac_exec_ext in '' $ac_executable_extensions; do
2273  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2274    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2275    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2276    break 2
2277  fi
2278done
2279done
2280
2281fi
2282fi
2283CXX=$ac_cv_prog_CXX
2284if test -n "$CXX"; then
2285  echo "$as_me:$LINENO: result: $CXX" >&5
2286echo "${ECHO_T}$CXX" >&6
2287else
2288  echo "$as_me:$LINENO: result: no" >&5
2289echo "${ECHO_T}no" >&6
2290fi
2291
2292    test -n "$CXX" && break
2293  done
2294fi
2295if test -z "$CXX"; then
2296  ac_ct_CXX=$CXX
2297  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2298do
2299  # Extract the first word of "$ac_prog", so it can be a program name with args.
2300set dummy $ac_prog; ac_word=$2
2301echo "$as_me:$LINENO: checking for $ac_word" >&5
2302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2303if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2304  echo $ECHO_N "(cached) $ECHO_C" >&6
2305else
2306  if test -n "$ac_ct_CXX"; then
2307  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2308else
2309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310for as_dir in $PATH
2311do
2312  IFS=$as_save_IFS
2313  test -z "$as_dir" && as_dir=.
2314  for ac_exec_ext in '' $ac_executable_extensions; do
2315  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2316    ac_cv_prog_ac_ct_CXX="$ac_prog"
2317    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318    break 2
2319  fi
2320done
2321done
2322
2323fi
2324fi
2325ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2326if test -n "$ac_ct_CXX"; then
2327  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2328echo "${ECHO_T}$ac_ct_CXX" >&6
2329else
2330  echo "$as_me:$LINENO: result: no" >&5
2331echo "${ECHO_T}no" >&6
2332fi
2333
2334  test -n "$ac_ct_CXX" && break
2335done
2336test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2337
2338  CXX=$ac_ct_CXX
2339fi
2340
2341
2342# Provide some information about the compiler.
2343echo "$as_me:$LINENO:" \
2344     "checking for C++ compiler version" >&5
2345ac_compiler=`set X $ac_compile; echo $2`
2346{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2347  (eval $ac_compiler --version </dev/null >&5) 2>&5
2348  ac_status=$?
2349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350  (exit $ac_status); }
2351{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2352  (eval $ac_compiler -v </dev/null >&5) 2>&5
2353  ac_status=$?
2354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355  (exit $ac_status); }
2356{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2357  (eval $ac_compiler -V </dev/null >&5) 2>&5
2358  ac_status=$?
2359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360  (exit $ac_status); }
2361
2362cat >conftest.$ac_ext <<_ACEOF
2363#line $LINENO "configure"
2364/* confdefs.h.  */
2365_ACEOF
2366cat confdefs.h >>conftest.$ac_ext
2367cat >>conftest.$ac_ext <<_ACEOF
2368/* end confdefs.h.  */
2369
2370int
2371main ()
2372{
2373
2374  ;
2375  return 0;
2376}
2377_ACEOF
2378ac_clean_files_save=$ac_clean_files
2379ac_clean_files="$ac_clean_files a.out a.exe b.out"
2380# Try to create an executable without -o first, disregard a.out.
2381# It will help us diagnose broken compilers, and finding out an intuition
2382# of exeext.
2383echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2384echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2385ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2386if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2387  (eval $ac_link_default) 2>&5
2388  ac_status=$?
2389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390  (exit $ac_status); }; then
2391  # Find the output, starting from the most likely.  This scheme is
2392# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2393# resort.
2394
2395# Be careful to initialize this variable, since it used to be cached.
2396# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2397ac_cv_exeext=
2398# b.out is created by i960 compilers.
2399for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2400do
2401  test -f "$ac_file" || continue
2402  case $ac_file in
2403    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2404        ;;
2405    conftest.$ac_ext )
2406        # This is the source file.
2407        ;;
2408    [ab].out )
2409        # We found the default executable, but exeext='' is most
2410        # certainly right.
2411        break;;
2412    *.* )
2413        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2414        # FIXME: I believe we export ac_cv_exeext for Libtool,
2415        # but it would be cool to find out if it's true.  Does anybody
2416        # maintain Libtool? --akim.
2417        export ac_cv_exeext
2418        break;;
2419    * )
2420        break;;
2421  esac
2422done
2423else
2424  echo "$as_me: failed program was:" >&5
2425sed 's/^/| /' conftest.$ac_ext >&5
2426
2427{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2428See \`config.log' for more details." >&5
2429echo "$as_me: error: C++ compiler cannot create executables
2430See \`config.log' for more details." >&2;}
2431   { (exit 77); exit 77; }; }
2432fi
2433
2434ac_exeext=$ac_cv_exeext
2435echo "$as_me:$LINENO: result: $ac_file" >&5
2436echo "${ECHO_T}$ac_file" >&6
2437
2438# Check the compiler produces executables we can run.  If not, either
2439# the compiler is broken, or we cross compile.
2440echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2441echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2442# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2443# If not cross compiling, check that we can run a simple program.
2444if test "$cross_compiling" != yes; then
2445  if { ac_try='./$ac_file'
2446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447  (eval $ac_try) 2>&5
2448  ac_status=$?
2449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450  (exit $ac_status); }; }; then
2451    cross_compiling=no
2452  else
2453    if test "$cross_compiling" = maybe; then
2454	cross_compiling=yes
2455    else
2456	{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2457If you meant to cross compile, use \`--host'.
2458See \`config.log' for more details." >&5
2459echo "$as_me: error: cannot run C++ compiled programs.
2460If you meant to cross compile, use \`--host'.
2461See \`config.log' for more details." >&2;}
2462   { (exit 1); exit 1; }; }
2463    fi
2464  fi
2465fi
2466echo "$as_me:$LINENO: result: yes" >&5
2467echo "${ECHO_T}yes" >&6
2468
2469rm -f a.out a.exe conftest$ac_cv_exeext b.out
2470ac_clean_files=$ac_clean_files_save
2471# Check the compiler produces executables we can run.  If not, either
2472# the compiler is broken, or we cross compile.
2473echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2474echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2475echo "$as_me:$LINENO: result: $cross_compiling" >&5
2476echo "${ECHO_T}$cross_compiling" >&6
2477
2478echo "$as_me:$LINENO: checking for suffix of executables" >&5
2479echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2481  (eval $ac_link) 2>&5
2482  ac_status=$?
2483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484  (exit $ac_status); }; then
2485  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2486# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2487# work properly (i.e., refer to `conftest.exe'), while it won't with
2488# `rm'.
2489for ac_file in conftest.exe conftest conftest.*; do
2490  test -f "$ac_file" || continue
2491  case $ac_file in
2492    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2493    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2494          export ac_cv_exeext
2495          break;;
2496    * ) break;;
2497  esac
2498done
2499else
2500  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2501See \`config.log' for more details." >&5
2502echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2503See \`config.log' for more details." >&2;}
2504   { (exit 1); exit 1; }; }
2505fi
2506
2507rm -f conftest$ac_cv_exeext
2508echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2509echo "${ECHO_T}$ac_cv_exeext" >&6
2510
2511rm -f conftest.$ac_ext
2512EXEEXT=$ac_cv_exeext
2513ac_exeext=$EXEEXT
2514echo "$as_me:$LINENO: checking for suffix of object files" >&5
2515echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2516if test "${ac_cv_objext+set}" = set; then
2517  echo $ECHO_N "(cached) $ECHO_C" >&6
2518else
2519  cat >conftest.$ac_ext <<_ACEOF
2520#line $LINENO "configure"
2521/* confdefs.h.  */
2522_ACEOF
2523cat confdefs.h >>conftest.$ac_ext
2524cat >>conftest.$ac_ext <<_ACEOF
2525/* end confdefs.h.  */
2526
2527int
2528main ()
2529{
2530
2531  ;
2532  return 0;
2533}
2534_ACEOF
2535rm -f conftest.o conftest.obj
2536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2537  (eval $ac_compile) 2>&5
2538  ac_status=$?
2539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540  (exit $ac_status); }; then
2541  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2542  case $ac_file in
2543    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2544    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2545       break;;
2546  esac
2547done
2548else
2549  echo "$as_me: failed program was:" >&5
2550sed 's/^/| /' conftest.$ac_ext >&5
2551
2552{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2553See \`config.log' for more details." >&5
2554echo "$as_me: error: cannot compute suffix of object files: cannot compile
2555See \`config.log' for more details." >&2;}
2556   { (exit 1); exit 1; }; }
2557fi
2558
2559rm -f conftest.$ac_cv_objext conftest.$ac_ext
2560fi
2561echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2562echo "${ECHO_T}$ac_cv_objext" >&6
2563OBJEXT=$ac_cv_objext
2564ac_objext=$OBJEXT
2565echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2566echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2567if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2568  echo $ECHO_N "(cached) $ECHO_C" >&6
2569else
2570  cat >conftest.$ac_ext <<_ACEOF
2571#line $LINENO "configure"
2572/* confdefs.h.  */
2573_ACEOF
2574cat confdefs.h >>conftest.$ac_ext
2575cat >>conftest.$ac_ext <<_ACEOF
2576/* end confdefs.h.  */
2577
2578int
2579main ()
2580{
2581#ifndef __GNUC__
2582       choke me
2583#endif
2584
2585  ;
2586  return 0;
2587}
2588_ACEOF
2589rm -f conftest.$ac_objext
2590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591  (eval $ac_compile) 2>&5
2592  ac_status=$?
2593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594  (exit $ac_status); } &&
2595         { ac_try='test -s conftest.$ac_objext'
2596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597  (eval $ac_try) 2>&5
2598  ac_status=$?
2599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600  (exit $ac_status); }; }; then
2601  ac_compiler_gnu=yes
2602else
2603  echo "$as_me: failed program was:" >&5
2604sed 's/^/| /' conftest.$ac_ext >&5
2605
2606ac_compiler_gnu=no
2607fi
2608rm -f conftest.$ac_objext conftest.$ac_ext
2609ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2610
2611fi
2612echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2613echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2614GXX=`test $ac_compiler_gnu = yes && echo yes`
2615ac_test_CXXFLAGS=${CXXFLAGS+set}
2616ac_save_CXXFLAGS=$CXXFLAGS
2617CXXFLAGS="-g"
2618echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2619echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2620if test "${ac_cv_prog_cxx_g+set}" = set; then
2621  echo $ECHO_N "(cached) $ECHO_C" >&6
2622else
2623  cat >conftest.$ac_ext <<_ACEOF
2624#line $LINENO "configure"
2625/* confdefs.h.  */
2626_ACEOF
2627cat confdefs.h >>conftest.$ac_ext
2628cat >>conftest.$ac_ext <<_ACEOF
2629/* end confdefs.h.  */
2630
2631int
2632main ()
2633{
2634
2635  ;
2636  return 0;
2637}
2638_ACEOF
2639rm -f conftest.$ac_objext
2640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641  (eval $ac_compile) 2>&5
2642  ac_status=$?
2643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644  (exit $ac_status); } &&
2645         { ac_try='test -s conftest.$ac_objext'
2646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647  (eval $ac_try) 2>&5
2648  ac_status=$?
2649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650  (exit $ac_status); }; }; then
2651  ac_cv_prog_cxx_g=yes
2652else
2653  echo "$as_me: failed program was:" >&5
2654sed 's/^/| /' conftest.$ac_ext >&5
2655
2656ac_cv_prog_cxx_g=no
2657fi
2658rm -f conftest.$ac_objext conftest.$ac_ext
2659fi
2660echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2661echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2662if test "$ac_test_CXXFLAGS" = set; then
2663  CXXFLAGS=$ac_save_CXXFLAGS
2664elif test $ac_cv_prog_cxx_g = yes; then
2665  if test "$GXX" = yes; then
2666    CXXFLAGS="-g -O2"
2667  else
2668    CXXFLAGS="-g"
2669  fi
2670else
2671  if test "$GXX" = yes; then
2672    CXXFLAGS="-O2"
2673  else
2674    CXXFLAGS=
2675  fi
2676fi
2677for ac_declaration in \
2678   ''\
2679   '#include <stdlib.h>' \
2680   'extern "C" void std::exit (int) throw (); using std::exit;' \
2681   'extern "C" void std::exit (int); using std::exit;' \
2682   'extern "C" void exit (int) throw ();' \
2683   'extern "C" void exit (int);' \
2684   'void exit (int);'
2685do
2686  cat >conftest.$ac_ext <<_ACEOF
2687#line $LINENO "configure"
2688/* confdefs.h.  */
2689_ACEOF
2690cat confdefs.h >>conftest.$ac_ext
2691cat >>conftest.$ac_ext <<_ACEOF
2692/* end confdefs.h.  */
2693#include <stdlib.h>
2694$ac_declaration
2695int
2696main ()
2697{
2698exit (42);
2699  ;
2700  return 0;
2701}
2702_ACEOF
2703rm -f conftest.$ac_objext
2704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705  (eval $ac_compile) 2>&5
2706  ac_status=$?
2707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708  (exit $ac_status); } &&
2709         { ac_try='test -s conftest.$ac_objext'
2710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711  (eval $ac_try) 2>&5
2712  ac_status=$?
2713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714  (exit $ac_status); }; }; then
2715  :
2716else
2717  echo "$as_me: failed program was:" >&5
2718sed 's/^/| /' conftest.$ac_ext >&5
2719
2720continue
2721fi
2722rm -f conftest.$ac_objext conftest.$ac_ext
2723  cat >conftest.$ac_ext <<_ACEOF
2724#line $LINENO "configure"
2725/* confdefs.h.  */
2726_ACEOF
2727cat confdefs.h >>conftest.$ac_ext
2728cat >>conftest.$ac_ext <<_ACEOF
2729/* end confdefs.h.  */
2730$ac_declaration
2731int
2732main ()
2733{
2734exit (42);
2735  ;
2736  return 0;
2737}
2738_ACEOF
2739rm -f conftest.$ac_objext
2740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2741  (eval $ac_compile) 2>&5
2742  ac_status=$?
2743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744  (exit $ac_status); } &&
2745         { ac_try='test -s conftest.$ac_objext'
2746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747  (eval $ac_try) 2>&5
2748  ac_status=$?
2749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750  (exit $ac_status); }; }; then
2751  break
2752else
2753  echo "$as_me: failed program was:" >&5
2754sed 's/^/| /' conftest.$ac_ext >&5
2755
2756fi
2757rm -f conftest.$ac_objext conftest.$ac_ext
2758done
2759rm -f conftest*
2760if test -n "$ac_declaration"; then
2761  echo '#ifdef __cplusplus' >>confdefs.h
2762  echo $ac_declaration      >>confdefs.h
2763  echo '#endif'             >>confdefs.h
2764fi
2765
2766ac_ext=c
2767ac_cpp='$CPP $CPPFLAGS'
2768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770ac_compiler_gnu=$ac_cv_c_compiler_gnu
2771
2772ac_ext=c
2773ac_cpp='$CPP $CPPFLAGS'
2774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776ac_compiler_gnu=$ac_cv_c_compiler_gnu
2777if test -n "$ac_tool_prefix"; then
2778  for ac_prog in gcc
2779  do
2780    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2781set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2782echo "$as_me:$LINENO: checking for $ac_word" >&5
2783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2784if test "${ac_cv_prog_CC+set}" = set; then
2785  echo $ECHO_N "(cached) $ECHO_C" >&6
2786else
2787  if test -n "$CC"; then
2788  ac_cv_prog_CC="$CC" # Let the user override the test.
2789else
2790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH
2792do
2793  IFS=$as_save_IFS
2794  test -z "$as_dir" && as_dir=.
2795  for ac_exec_ext in '' $ac_executable_extensions; do
2796  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2798    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799    break 2
2800  fi
2801done
2802done
2803
2804fi
2805fi
2806CC=$ac_cv_prog_CC
2807if test -n "$CC"; then
2808  echo "$as_me:$LINENO: result: $CC" >&5
2809echo "${ECHO_T}$CC" >&6
2810else
2811  echo "$as_me:$LINENO: result: no" >&5
2812echo "${ECHO_T}no" >&6
2813fi
2814
2815    test -n "$CC" && break
2816  done
2817fi
2818if test -z "$CC"; then
2819  ac_ct_CC=$CC
2820  for ac_prog in gcc
2821do
2822  # Extract the first word of "$ac_prog", so it can be a program name with args.
2823set dummy $ac_prog; ac_word=$2
2824echo "$as_me:$LINENO: checking for $ac_word" >&5
2825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2826if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2827  echo $ECHO_N "(cached) $ECHO_C" >&6
2828else
2829  if test -n "$ac_ct_CC"; then
2830  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2831else
2832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833for as_dir in $PATH
2834do
2835  IFS=$as_save_IFS
2836  test -z "$as_dir" && as_dir=.
2837  for ac_exec_ext in '' $ac_executable_extensions; do
2838  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839    ac_cv_prog_ac_ct_CC="$ac_prog"
2840    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841    break 2
2842  fi
2843done
2844done
2845
2846fi
2847fi
2848ac_ct_CC=$ac_cv_prog_ac_ct_CC
2849if test -n "$ac_ct_CC"; then
2850  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2851echo "${ECHO_T}$ac_ct_CC" >&6
2852else
2853  echo "$as_me:$LINENO: result: no" >&5
2854echo "${ECHO_T}no" >&6
2855fi
2856
2857  test -n "$ac_ct_CC" && break
2858done
2859
2860  CC=$ac_ct_CC
2861fi
2862
2863
2864test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2865See \`config.log' for more details." >&5
2866echo "$as_me: error: no acceptable C compiler found in \$PATH
2867See \`config.log' for more details." >&2;}
2868   { (exit 1); exit 1; }; }
2869
2870# Provide some information about the compiler.
2871echo "$as_me:$LINENO:" \
2872     "checking for C compiler version" >&5
2873ac_compiler=`set X $ac_compile; echo $2`
2874{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2875  (eval $ac_compiler --version </dev/null >&5) 2>&5
2876  ac_status=$?
2877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878  (exit $ac_status); }
2879{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2880  (eval $ac_compiler -v </dev/null >&5) 2>&5
2881  ac_status=$?
2882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883  (exit $ac_status); }
2884{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2885  (eval $ac_compiler -V </dev/null >&5) 2>&5
2886  ac_status=$?
2887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888  (exit $ac_status); }
2889
2890echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2891echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2892if test "${ac_cv_c_compiler_gnu+set}" = set; then
2893  echo $ECHO_N "(cached) $ECHO_C" >&6
2894else
2895  cat >conftest.$ac_ext <<_ACEOF
2896#line $LINENO "configure"
2897/* confdefs.h.  */
2898_ACEOF
2899cat confdefs.h >>conftest.$ac_ext
2900cat >>conftest.$ac_ext <<_ACEOF
2901/* end confdefs.h.  */
2902
2903int
2904main ()
2905{
2906#ifndef __GNUC__
2907       choke me
2908#endif
2909
2910  ;
2911  return 0;
2912}
2913_ACEOF
2914rm -f conftest.$ac_objext
2915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2916  (eval $ac_compile) 2>&5
2917  ac_status=$?
2918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919  (exit $ac_status); } &&
2920         { ac_try='test -s conftest.$ac_objext'
2921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922  (eval $ac_try) 2>&5
2923  ac_status=$?
2924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925  (exit $ac_status); }; }; then
2926  ac_compiler_gnu=yes
2927else
2928  echo "$as_me: failed program was:" >&5
2929sed 's/^/| /' conftest.$ac_ext >&5
2930
2931ac_compiler_gnu=no
2932fi
2933rm -f conftest.$ac_objext conftest.$ac_ext
2934ac_cv_c_compiler_gnu=$ac_compiler_gnu
2935
2936fi
2937echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2938echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2939GCC=`test $ac_compiler_gnu = yes && echo yes`
2940ac_test_CFLAGS=${CFLAGS+set}
2941ac_save_CFLAGS=$CFLAGS
2942CFLAGS="-g"
2943echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2944echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2945if test "${ac_cv_prog_cc_g+set}" = set; then
2946  echo $ECHO_N "(cached) $ECHO_C" >&6
2947else
2948  cat >conftest.$ac_ext <<_ACEOF
2949#line $LINENO "configure"
2950/* confdefs.h.  */
2951_ACEOF
2952cat confdefs.h >>conftest.$ac_ext
2953cat >>conftest.$ac_ext <<_ACEOF
2954/* end confdefs.h.  */
2955
2956int
2957main ()
2958{
2959
2960  ;
2961  return 0;
2962}
2963_ACEOF
2964rm -f conftest.$ac_objext
2965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2966  (eval $ac_compile) 2>&5
2967  ac_status=$?
2968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969  (exit $ac_status); } &&
2970         { ac_try='test -s conftest.$ac_objext'
2971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2972  (eval $ac_try) 2>&5
2973  ac_status=$?
2974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975  (exit $ac_status); }; }; then
2976  ac_cv_prog_cc_g=yes
2977else
2978  echo "$as_me: failed program was:" >&5
2979sed 's/^/| /' conftest.$ac_ext >&5
2980
2981ac_cv_prog_cc_g=no
2982fi
2983rm -f conftest.$ac_objext conftest.$ac_ext
2984fi
2985echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2986echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2987if test "$ac_test_CFLAGS" = set; then
2988  CFLAGS=$ac_save_CFLAGS
2989elif test $ac_cv_prog_cc_g = yes; then
2990  if test "$GCC" = yes; then
2991    CFLAGS="-g -O2"
2992  else
2993    CFLAGS="-g"
2994  fi
2995else
2996  if test "$GCC" = yes; then
2997    CFLAGS="-O2"
2998  else
2999    CFLAGS=
3000  fi
3001fi
3002echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3003echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3004if test "${ac_cv_prog_cc_stdc+set}" = set; then
3005  echo $ECHO_N "(cached) $ECHO_C" >&6
3006else
3007  ac_cv_prog_cc_stdc=no
3008ac_save_CC=$CC
3009cat >conftest.$ac_ext <<_ACEOF
3010#line $LINENO "configure"
3011/* confdefs.h.  */
3012_ACEOF
3013cat confdefs.h >>conftest.$ac_ext
3014cat >>conftest.$ac_ext <<_ACEOF
3015/* end confdefs.h.  */
3016#include <stdarg.h>
3017#include <stdio.h>
3018#include <sys/types.h>
3019#include <sys/stat.h>
3020/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3021struct buf { int x; };
3022FILE * (*rcsopen) (struct buf *, struct stat *, int);
3023static char *e (p, i)
3024     char **p;
3025     int i;
3026{
3027  return p[i];
3028}
3029static char *f (char * (*g) (char **, int), char **p, ...)
3030{
3031  char *s;
3032  va_list v;
3033  va_start (v,p);
3034  s = g (p, va_arg (v,int));
3035  va_end (v);
3036  return s;
3037}
3038int test (int i, double x);
3039struct s1 {int (*f) (int a);};
3040struct s2 {int (*f) (double a);};
3041int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3042int argc;
3043char **argv;
3044int
3045main ()
3046{
3047return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3048  ;
3049  return 0;
3050}
3051_ACEOF
3052# Don't try gcc -ansi; that turns off useful extensions and
3053# breaks some systems' header files.
3054# AIX			-qlanglvl=ansi
3055# Ultrix and OSF/1	-std1
3056# HP-UX 10.20 and later	-Ae
3057# HP-UX older versions	-Aa -D_HPUX_SOURCE
3058# SVR4			-Xc -D__EXTENSIONS__
3059for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3060do
3061  CC="$ac_save_CC $ac_arg"
3062  rm -f conftest.$ac_objext
3063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3064  (eval $ac_compile) 2>&5
3065  ac_status=$?
3066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067  (exit $ac_status); } &&
3068         { ac_try='test -s conftest.$ac_objext'
3069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070  (eval $ac_try) 2>&5
3071  ac_status=$?
3072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073  (exit $ac_status); }; }; then
3074  ac_cv_prog_cc_stdc=$ac_arg
3075break
3076else
3077  echo "$as_me: failed program was:" >&5
3078sed 's/^/| /' conftest.$ac_ext >&5
3079
3080fi
3081rm -f conftest.$ac_objext
3082done
3083rm -f conftest.$ac_ext conftest.$ac_objext
3084CC=$ac_save_CC
3085
3086fi
3087
3088case "x$ac_cv_prog_cc_stdc" in
3089  x|xno)
3090    echo "$as_me:$LINENO: result: none needed" >&5
3091echo "${ECHO_T}none needed" >&6 ;;
3092  *)
3093    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3094echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3095    CC="$CC $ac_cv_prog_cc_stdc" ;;
3096esac
3097
3098# Some people use a C++ compiler to compile C.  Since we use `exit',
3099# in C++ we need to declare it.  In case someone uses the same compiler
3100# for both compiling C and C++ we need to have the C++ compiler decide
3101# the declaration of exit, since it's the most demanding environment.
3102cat >conftest.$ac_ext <<_ACEOF
3103#ifndef __cplusplus
3104  choke me
3105#endif
3106_ACEOF
3107rm -f conftest.$ac_objext
3108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3109  (eval $ac_compile) 2>&5
3110  ac_status=$?
3111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112  (exit $ac_status); } &&
3113         { ac_try='test -s conftest.$ac_objext'
3114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115  (eval $ac_try) 2>&5
3116  ac_status=$?
3117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118  (exit $ac_status); }; }; then
3119  for ac_declaration in \
3120   ''\
3121   '#include <stdlib.h>' \
3122   'extern "C" void std::exit (int) throw (); using std::exit;' \
3123   'extern "C" void std::exit (int); using std::exit;' \
3124   'extern "C" void exit (int) throw ();' \
3125   'extern "C" void exit (int);' \
3126   'void exit (int);'
3127do
3128  cat >conftest.$ac_ext <<_ACEOF
3129#line $LINENO "configure"
3130/* confdefs.h.  */
3131_ACEOF
3132cat confdefs.h >>conftest.$ac_ext
3133cat >>conftest.$ac_ext <<_ACEOF
3134/* end confdefs.h.  */
3135#include <stdlib.h>
3136$ac_declaration
3137int
3138main ()
3139{
3140exit (42);
3141  ;
3142  return 0;
3143}
3144_ACEOF
3145rm -f conftest.$ac_objext
3146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3147  (eval $ac_compile) 2>&5
3148  ac_status=$?
3149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150  (exit $ac_status); } &&
3151         { ac_try='test -s conftest.$ac_objext'
3152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153  (eval $ac_try) 2>&5
3154  ac_status=$?
3155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156  (exit $ac_status); }; }; then
3157  :
3158else
3159  echo "$as_me: failed program was:" >&5
3160sed 's/^/| /' conftest.$ac_ext >&5
3161
3162continue
3163fi
3164rm -f conftest.$ac_objext conftest.$ac_ext
3165  cat >conftest.$ac_ext <<_ACEOF
3166#line $LINENO "configure"
3167/* confdefs.h.  */
3168_ACEOF
3169cat confdefs.h >>conftest.$ac_ext
3170cat >>conftest.$ac_ext <<_ACEOF
3171/* end confdefs.h.  */
3172$ac_declaration
3173int
3174main ()
3175{
3176exit (42);
3177  ;
3178  return 0;
3179}
3180_ACEOF
3181rm -f conftest.$ac_objext
3182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3183  (eval $ac_compile) 2>&5
3184  ac_status=$?
3185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186  (exit $ac_status); } &&
3187         { ac_try='test -s conftest.$ac_objext'
3188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189  (eval $ac_try) 2>&5
3190  ac_status=$?
3191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192  (exit $ac_status); }; }; then
3193  break
3194else
3195  echo "$as_me: failed program was:" >&5
3196sed 's/^/| /' conftest.$ac_ext >&5
3197
3198fi
3199rm -f conftest.$ac_objext conftest.$ac_ext
3200done
3201rm -f conftest*
3202if test -n "$ac_declaration"; then
3203  echo '#ifdef __cplusplus' >>confdefs.h
3204  echo $ac_declaration      >>confdefs.h
3205  echo '#endif'             >>confdefs.h
3206fi
3207
3208else
3209  echo "$as_me: failed program was:" >&5
3210sed 's/^/| /' conftest.$ac_ext >&5
3211
3212fi
3213rm -f conftest.$ac_objext conftest.$ac_ext
3214ac_ext=c
3215ac_cpp='$CPP $CPPFLAGS'
3216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3218ac_compiler_gnu=$ac_cv_c_compiler_gnu
3219
3220ac_ext=c
3221ac_cpp='$CPP $CPPFLAGS'
3222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224ac_compiler_gnu=$ac_cv_c_compiler_gnu
3225echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3226echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3227# On Suns, sometimes $CPP names a directory.
3228if test -n "$CPP" && test -d "$CPP"; then
3229  CPP=
3230fi
3231if test -z "$CPP"; then
3232  if test "${ac_cv_prog_CPP+set}" = set; then
3233  echo $ECHO_N "(cached) $ECHO_C" >&6
3234else
3235      # Double quotes because CPP needs to be expanded
3236    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3237    do
3238      ac_preproc_ok=false
3239for ac_c_preproc_warn_flag in '' yes
3240do
3241  # Use a header file that comes with gcc, so configuring glibc
3242  # with a fresh cross-compiler works.
3243  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3244  # <limits.h> exists even on freestanding compilers.
3245  # On the NeXT, cc -E runs the code through the compiler's parser,
3246  # not just through cpp. "Syntax error" is here to catch this case.
3247  cat >conftest.$ac_ext <<_ACEOF
3248#line $LINENO "configure"
3249/* confdefs.h.  */
3250_ACEOF
3251cat confdefs.h >>conftest.$ac_ext
3252cat >>conftest.$ac_ext <<_ACEOF
3253/* end confdefs.h.  */
3254#ifdef __STDC__
3255# include <limits.h>
3256#else
3257# include <assert.h>
3258#endif
3259                     Syntax error
3260_ACEOF
3261if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3262  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3263  ac_status=$?
3264  grep -v '^ *+' conftest.er1 >conftest.err
3265  rm -f conftest.er1
3266  cat conftest.err >&5
3267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268  (exit $ac_status); } >/dev/null; then
3269  if test -s conftest.err; then
3270    ac_cpp_err=$ac_c_preproc_warn_flag
3271  else
3272    ac_cpp_err=
3273  fi
3274else
3275  ac_cpp_err=yes
3276fi
3277if test -z "$ac_cpp_err"; then
3278  :
3279else
3280  echo "$as_me: failed program was:" >&5
3281sed 's/^/| /' conftest.$ac_ext >&5
3282
3283  # Broken: fails on valid input.
3284continue
3285fi
3286rm -f conftest.err conftest.$ac_ext
3287
3288  # OK, works on sane cases.  Now check whether non-existent headers
3289  # can be detected and how.
3290  cat >conftest.$ac_ext <<_ACEOF
3291#line $LINENO "configure"
3292/* confdefs.h.  */
3293_ACEOF
3294cat confdefs.h >>conftest.$ac_ext
3295cat >>conftest.$ac_ext <<_ACEOF
3296/* end confdefs.h.  */
3297#include <ac_nonexistent.h>
3298_ACEOF
3299if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3300  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3301  ac_status=$?
3302  grep -v '^ *+' conftest.er1 >conftest.err
3303  rm -f conftest.er1
3304  cat conftest.err >&5
3305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306  (exit $ac_status); } >/dev/null; then
3307  if test -s conftest.err; then
3308    ac_cpp_err=$ac_c_preproc_warn_flag
3309  else
3310    ac_cpp_err=
3311  fi
3312else
3313  ac_cpp_err=yes
3314fi
3315if test -z "$ac_cpp_err"; then
3316  # Broken: success on invalid input.
3317continue
3318else
3319  echo "$as_me: failed program was:" >&5
3320sed 's/^/| /' conftest.$ac_ext >&5
3321
3322  # Passes both tests.
3323ac_preproc_ok=:
3324break
3325fi
3326rm -f conftest.err conftest.$ac_ext
3327
3328done
3329# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3330rm -f conftest.err conftest.$ac_ext
3331if $ac_preproc_ok; then
3332  break
3333fi
3334
3335    done
3336    ac_cv_prog_CPP=$CPP
3337
3338fi
3339  CPP=$ac_cv_prog_CPP
3340else
3341  ac_cv_prog_CPP=$CPP
3342fi
3343echo "$as_me:$LINENO: result: $CPP" >&5
3344echo "${ECHO_T}$CPP" >&6
3345ac_preproc_ok=false
3346for ac_c_preproc_warn_flag in '' yes
3347do
3348  # Use a header file that comes with gcc, so configuring glibc
3349  # with a fresh cross-compiler works.
3350  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3351  # <limits.h> exists even on freestanding compilers.
3352  # On the NeXT, cc -E runs the code through the compiler's parser,
3353  # not just through cpp. "Syntax error" is here to catch this case.
3354  cat >conftest.$ac_ext <<_ACEOF
3355#line $LINENO "configure"
3356/* confdefs.h.  */
3357_ACEOF
3358cat confdefs.h >>conftest.$ac_ext
3359cat >>conftest.$ac_ext <<_ACEOF
3360/* end confdefs.h.  */
3361#ifdef __STDC__
3362# include <limits.h>
3363#else
3364# include <assert.h>
3365#endif
3366                     Syntax error
3367_ACEOF
3368if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3369  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3370  ac_status=$?
3371  grep -v '^ *+' conftest.er1 >conftest.err
3372  rm -f conftest.er1
3373  cat conftest.err >&5
3374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375  (exit $ac_status); } >/dev/null; then
3376  if test -s conftest.err; then
3377    ac_cpp_err=$ac_c_preproc_warn_flag
3378  else
3379    ac_cpp_err=
3380  fi
3381else
3382  ac_cpp_err=yes
3383fi
3384if test -z "$ac_cpp_err"; then
3385  :
3386else
3387  echo "$as_me: failed program was:" >&5
3388sed 's/^/| /' conftest.$ac_ext >&5
3389
3390  # Broken: fails on valid input.
3391continue
3392fi
3393rm -f conftest.err conftest.$ac_ext
3394
3395  # OK, works on sane cases.  Now check whether non-existent headers
3396  # can be detected and how.
3397  cat >conftest.$ac_ext <<_ACEOF
3398#line $LINENO "configure"
3399/* confdefs.h.  */
3400_ACEOF
3401cat confdefs.h >>conftest.$ac_ext
3402cat >>conftest.$ac_ext <<_ACEOF
3403/* end confdefs.h.  */
3404#include <ac_nonexistent.h>
3405_ACEOF
3406if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3407  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3408  ac_status=$?
3409  grep -v '^ *+' conftest.er1 >conftest.err
3410  rm -f conftest.er1
3411  cat conftest.err >&5
3412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413  (exit $ac_status); } >/dev/null; then
3414  if test -s conftest.err; then
3415    ac_cpp_err=$ac_c_preproc_warn_flag
3416  else
3417    ac_cpp_err=
3418  fi
3419else
3420  ac_cpp_err=yes
3421fi
3422if test -z "$ac_cpp_err"; then
3423  # Broken: success on invalid input.
3424continue
3425else
3426  echo "$as_me: failed program was:" >&5
3427sed 's/^/| /' conftest.$ac_ext >&5
3428
3429  # Passes both tests.
3430ac_preproc_ok=:
3431break
3432fi
3433rm -f conftest.err conftest.$ac_ext
3434
3435done
3436# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3437rm -f conftest.err conftest.$ac_ext
3438if $ac_preproc_ok; then
3439  :
3440else
3441  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3442See \`config.log' for more details." >&5
3443echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3444See \`config.log' for more details." >&2;}
3445   { (exit 1); exit 1; }; }
3446fi
3447
3448ac_ext=c
3449ac_cpp='$CPP $CPPFLAGS'
3450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453
3454
3455if test "$GCC" != "yes"
3456then
3457	{ { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3458echo "$as_me: error: gcc required but not found" >&2;}
3459   { (exit 1); exit 1; }; }
3460fi
3461
3462if test "$GXX" != "yes"
3463then
3464	{ { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3465echo "$as_me: error: g++ required but not found" >&2;}
3466   { (exit 1); exit 1; }; }
3467fi
3468
3469gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3470if test "$gccmajor" -lt "3"
3471then
3472	{ { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3473echo "$as_me: error: gcc 3.x required" >&2;}
3474   { (exit 1); exit 1; }; }
3475fi
3476
3477 echo "$as_me:$LINENO: checking for GNU make" >&5
3478echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3479if test "${_cv_gnu_make_command+set}" = set; then
3480  echo $ECHO_N "(cached) $ECHO_C" >&6
3481else
3482  _cv_gnu_make_command='' ;
3483                for a in "$MAKE" make gmake gnumake ; do
3484                        if test -z "$a" ; then continue ; fi ;
3485                        if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3486                                _cv_gnu_make_command=$a ;
3487                                break;
3488                        fi
3489                done ;
3490
3491fi
3492echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3493echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3494        if test  "x$_cv_gnu_make_command" != "x"  ; then
3495                ifGNUmake='' ;
3496        else
3497                ifGNUmake='#' ;
3498                echo "$as_me:$LINENO: result: \"Not found\"" >&5
3499echo "${ECHO_T}\"Not found\"" >&6;
3500        fi
3501
3502
3503if test -z "$_cv_gnu_make_command"
3504then
3505	{ { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3506echo "$as_me: error: GNU Make required but not found" >&2;}
3507   { (exit 1); exit 1; }; }
3508fi
3509
3510
3511echo "$as_me:$LINENO: checking " >&5
3512echo $ECHO_N "checking ... $ECHO_C" >&6
3513if test "${ac_cv_has_flex+set}" = set; then
3514  echo $ECHO_N "(cached) $ECHO_C" >&6
3515else
3516  for ac_prog in flex lex
3517do
3518  # Extract the first word of "$ac_prog", so it can be a program name with args.
3519set dummy $ac_prog; ac_word=$2
3520echo "$as_me:$LINENO: checking for $ac_word" >&5
3521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3522if test "${ac_cv_prog_LEX+set}" = set; then
3523  echo $ECHO_N "(cached) $ECHO_C" >&6
3524else
3525  if test -n "$LEX"; then
3526  ac_cv_prog_LEX="$LEX" # Let the user override the test.
3527else
3528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529for as_dir in $PATH
3530do
3531  IFS=$as_save_IFS
3532  test -z "$as_dir" && as_dir=.
3533  for ac_exec_ext in '' $ac_executable_extensions; do
3534  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3535    ac_cv_prog_LEX="$ac_prog"
3536    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3537    break 2
3538  fi
3539done
3540done
3541
3542fi
3543fi
3544LEX=$ac_cv_prog_LEX
3545if test -n "$LEX"; then
3546  echo "$as_me:$LINENO: result: $LEX" >&5
3547echo "${ECHO_T}$LEX" >&6
3548else
3549  echo "$as_me:$LINENO: result: no" >&5
3550echo "${ECHO_T}no" >&6
3551fi
3552
3553  test -n "$LEX" && break
3554done
3555test -n "$LEX" || LEX=":"
3556
3557if test -z "$LEXLIB"
3558then
3559  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3560echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3561if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3562  echo $ECHO_N "(cached) $ECHO_C" >&6
3563else
3564  ac_check_lib_save_LIBS=$LIBS
3565LIBS="-lfl  $LIBS"
3566cat >conftest.$ac_ext <<_ACEOF
3567#line $LINENO "configure"
3568/* confdefs.h.  */
3569_ACEOF
3570cat confdefs.h >>conftest.$ac_ext
3571cat >>conftest.$ac_ext <<_ACEOF
3572/* end confdefs.h.  */
3573
3574/* Override any gcc2 internal prototype to avoid an error.  */
3575#ifdef __cplusplus
3576extern "C"
3577#endif
3578/* We use char because int might match the return type of a gcc2
3579   builtin and then its argument prototype would still apply.  */
3580char yywrap ();
3581int
3582main ()
3583{
3584yywrap ();
3585  ;
3586  return 0;
3587}
3588_ACEOF
3589rm -f conftest.$ac_objext conftest$ac_exeext
3590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3591  (eval $ac_link) 2>&5
3592  ac_status=$?
3593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594  (exit $ac_status); } &&
3595         { ac_try='test -s conftest$ac_exeext'
3596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597  (eval $ac_try) 2>&5
3598  ac_status=$?
3599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600  (exit $ac_status); }; }; then
3601  ac_cv_lib_fl_yywrap=yes
3602else
3603  echo "$as_me: failed program was:" >&5
3604sed 's/^/| /' conftest.$ac_ext >&5
3605
3606ac_cv_lib_fl_yywrap=no
3607fi
3608rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3609LIBS=$ac_check_lib_save_LIBS
3610fi
3611echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3612echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3613if test $ac_cv_lib_fl_yywrap = yes; then
3614  LEXLIB="-lfl"
3615else
3616  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3617echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3618if test "${ac_cv_lib_l_yywrap+set}" = set; then
3619  echo $ECHO_N "(cached) $ECHO_C" >&6
3620else
3621  ac_check_lib_save_LIBS=$LIBS
3622LIBS="-ll  $LIBS"
3623cat >conftest.$ac_ext <<_ACEOF
3624#line $LINENO "configure"
3625/* confdefs.h.  */
3626_ACEOF
3627cat confdefs.h >>conftest.$ac_ext
3628cat >>conftest.$ac_ext <<_ACEOF
3629/* end confdefs.h.  */
3630
3631/* Override any gcc2 internal prototype to avoid an error.  */
3632#ifdef __cplusplus
3633extern "C"
3634#endif
3635/* We use char because int might match the return type of a gcc2
3636   builtin and then its argument prototype would still apply.  */
3637char yywrap ();
3638int
3639main ()
3640{
3641yywrap ();
3642  ;
3643  return 0;
3644}
3645_ACEOF
3646rm -f conftest.$ac_objext conftest$ac_exeext
3647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3648  (eval $ac_link) 2>&5
3649  ac_status=$?
3650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651  (exit $ac_status); } &&
3652         { ac_try='test -s conftest$ac_exeext'
3653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654  (eval $ac_try) 2>&5
3655  ac_status=$?
3656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657  (exit $ac_status); }; }; then
3658  ac_cv_lib_l_yywrap=yes
3659else
3660  echo "$as_me: failed program was:" >&5
3661sed 's/^/| /' conftest.$ac_ext >&5
3662
3663ac_cv_lib_l_yywrap=no
3664fi
3665rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3666LIBS=$ac_check_lib_save_LIBS
3667fi
3668echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3669echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3670if test $ac_cv_lib_l_yywrap = yes; then
3671  LEXLIB="-ll"
3672fi
3673
3674fi
3675
3676fi
3677
3678if test "x$LEX" != "x:"; then
3679  echo "$as_me:$LINENO: checking lex output file root" >&5
3680echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3681if test "${ac_cv_prog_lex_root+set}" = set; then
3682  echo $ECHO_N "(cached) $ECHO_C" >&6
3683else
3684  # The minimal lex program is just a single line: %%.  But some broken lexes
3685# (Solaris, I think it was) want two %% lines, so accommodate them.
3686cat >conftest.l <<_ACEOF
3687%%
3688%%
3689_ACEOF
3690{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3691  (eval $LEX conftest.l) 2>&5
3692  ac_status=$?
3693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694  (exit $ac_status); }
3695if test -f lex.yy.c; then
3696  ac_cv_prog_lex_root=lex.yy
3697elif test -f lexyy.c; then
3698  ac_cv_prog_lex_root=lexyy
3699else
3700  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3701echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3702   { (exit 1); exit 1; }; }
3703fi
3704fi
3705echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3706echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3707rm -f conftest.l
3708LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3709
3710echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3711echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3712if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3713  echo $ECHO_N "(cached) $ECHO_C" >&6
3714else
3715  # POSIX says lex can declare yytext either as a pointer or an array; the
3716# default is implementation-dependent. Figure out which it is, since
3717# not all implementations provide the %pointer and %array declarations.
3718ac_cv_prog_lex_yytext_pointer=no
3719echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3720ac_save_LIBS=$LIBS
3721LIBS="$LIBS $LEXLIB"
3722cat >conftest.$ac_ext <<_ACEOF
3723`cat $LEX_OUTPUT_ROOT.c`
3724_ACEOF
3725rm -f conftest.$ac_objext conftest$ac_exeext
3726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3727  (eval $ac_link) 2>&5
3728  ac_status=$?
3729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730  (exit $ac_status); } &&
3731         { ac_try='test -s conftest$ac_exeext'
3732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733  (eval $ac_try) 2>&5
3734  ac_status=$?
3735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736  (exit $ac_status); }; }; then
3737  ac_cv_prog_lex_yytext_pointer=yes
3738else
3739  echo "$as_me: failed program was:" >&5
3740sed 's/^/| /' conftest.$ac_ext >&5
3741
3742fi
3743rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3744LIBS=$ac_save_LIBS
3745rm -f "${LEX_OUTPUT_ROOT}.c"
3746
3747fi
3748echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3749echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3750if test $ac_cv_prog_lex_yytext_pointer = yes; then
3751
3752cat >>confdefs.h <<\_ACEOF
3753#define YYTEXT_POINTER 1
3754_ACEOF
3755
3756fi
3757
3758fi
3759
3760fi
3761echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3762echo "${ECHO_T}$ac_cv_has_flex" >&6
3763if test "$LEX" != "flex"; then
3764  { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3765echo "$as_me: error: flex not found but required" >&2;}
3766   { (exit 1); exit 1; }; }
3767fi
3768
3769echo "$as_me:$LINENO: checking " >&5
3770echo $ECHO_N "checking ... $ECHO_C" >&6
3771if test "${ac_cv_has_bison+set}" = set; then
3772  echo $ECHO_N "(cached) $ECHO_C" >&6
3773else
3774  for ac_prog in 'bison -y' byacc
3775do
3776  # Extract the first word of "$ac_prog", so it can be a program name with args.
3777set dummy $ac_prog; ac_word=$2
3778echo "$as_me:$LINENO: checking for $ac_word" >&5
3779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3780if test "${ac_cv_prog_YACC+set}" = set; then
3781  echo $ECHO_N "(cached) $ECHO_C" >&6
3782else
3783  if test -n "$YACC"; then
3784  ac_cv_prog_YACC="$YACC" # Let the user override the test.
3785else
3786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787for as_dir in $PATH
3788do
3789  IFS=$as_save_IFS
3790  test -z "$as_dir" && as_dir=.
3791  for ac_exec_ext in '' $ac_executable_extensions; do
3792  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793    ac_cv_prog_YACC="$ac_prog"
3794    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3795    break 2
3796  fi
3797done
3798done
3799
3800fi
3801fi
3802YACC=$ac_cv_prog_YACC
3803if test -n "$YACC"; then
3804  echo "$as_me:$LINENO: result: $YACC" >&5
3805echo "${ECHO_T}$YACC" >&6
3806else
3807  echo "$as_me:$LINENO: result: no" >&5
3808echo "${ECHO_T}no" >&6
3809fi
3810
3811  test -n "$YACC" && break
3812done
3813test -n "$YACC" || YACC="yacc"
3814
3815
3816fi
3817echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3818echo "${ECHO_T}$ac_cv_has_bison" >&6
3819if test "$YACC" != "bison -y"; then
3820  { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3821echo "$as_me: error: bison not found but required" >&2;}
3822   { (exit 1); exit 1; }; }
3823else
3824  YACC=bison
3825
3826fi
3827
3828
3829# Check whether --enable-shared or --disable-shared was given.
3830if test "${enable_shared+set}" = set; then
3831  enableval="$enable_shared"
3832  p=${PACKAGE-default}
3833    case $enableval in
3834    yes) enable_shared=yes ;;
3835    no) enable_shared=no ;;
3836    *)
3837      enable_shared=no
3838      # Look at the argument we got.  We use all the common list separators.
3839      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3840      for pkg in $enableval; do
3841	IFS="$lt_save_ifs"
3842	if test "X$pkg" = "X$p"; then
3843	  enable_shared=yes
3844	fi
3845      done
3846      IFS="$lt_save_ifs"
3847      ;;
3848    esac
3849else
3850  enable_shared=yes
3851fi;
3852
3853# Check whether --enable-static or --disable-static was given.
3854if test "${enable_static+set}" = set; then
3855  enableval="$enable_static"
3856  p=${PACKAGE-default}
3857    case $enableval in
3858    yes) enable_static=yes ;;
3859    no) enable_static=no ;;
3860    *)
3861     enable_static=no
3862      # Look at the argument we got.  We use all the common list separators.
3863      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3864      for pkg in $enableval; do
3865	IFS="$lt_save_ifs"
3866	if test "X$pkg" = "X$p"; then
3867	  enable_static=yes
3868	fi
3869      done
3870      IFS="$lt_save_ifs"
3871      ;;
3872    esac
3873else
3874  enable_static=yes
3875fi;
3876
3877# Check whether --enable-fast-install or --disable-fast-install was given.
3878if test "${enable_fast_install+set}" = set; then
3879  enableval="$enable_fast_install"
3880  p=${PACKAGE-default}
3881    case $enableval in
3882    yes) enable_fast_install=yes ;;
3883    no) enable_fast_install=no ;;
3884    *)
3885      enable_fast_install=no
3886      # Look at the argument we got.  We use all the common list separators.
3887      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3888      for pkg in $enableval; do
3889	IFS="$lt_save_ifs"
3890	if test "X$pkg" = "X$p"; then
3891	  enable_fast_install=yes
3892	fi
3893      done
3894      IFS="$lt_save_ifs"
3895      ;;
3896    esac
3897else
3898  enable_fast_install=yes
3899fi;
3900
3901echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3902echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3903if test "${lt_cv_path_SED+set}" = set; then
3904  echo $ECHO_N "(cached) $ECHO_C" >&6
3905else
3906  # Loop through the user's path and test for sed and gsed.
3907# Then use that list of sed's as ones to test for truncation.
3908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909for as_dir in $PATH
3910do
3911  IFS=$as_save_IFS
3912  test -z "$as_dir" && as_dir=.
3913  for lt_ac_prog in sed gsed; do
3914    for ac_exec_ext in '' $ac_executable_extensions; do
3915      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3916        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3917      fi
3918    done
3919  done
3920done
3921lt_ac_max=0
3922lt_ac_count=0
3923# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3924# along with /bin/sed that truncates output.
3925for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3926  test ! -f $lt_ac_sed && break
3927  cat /dev/null > conftest.in
3928  lt_ac_count=0
3929  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3930  # Check for GNU sed and select it if it is found.
3931  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3932    lt_cv_path_SED=$lt_ac_sed
3933    break
3934  fi
3935  while true; do
3936    cat conftest.in conftest.in >conftest.tmp
3937    mv conftest.tmp conftest.in
3938    cp conftest.in conftest.nl
3939    echo >>conftest.nl
3940    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3941    cmp -s conftest.out conftest.nl || break
3942    # 10000 chars as input seems more than enough
3943    test $lt_ac_count -gt 10 && break
3944    lt_ac_count=`expr $lt_ac_count + 1`
3945    if test $lt_ac_count -gt $lt_ac_max; then
3946      lt_ac_max=$lt_ac_count
3947      lt_cv_path_SED=$lt_ac_sed
3948    fi
3949  done
3950done
3951SED=$lt_cv_path_SED
3952
3953fi
3954
3955echo "$as_me:$LINENO: result: $SED" >&5
3956echo "${ECHO_T}$SED" >&6
3957
3958echo "$as_me:$LINENO: checking for egrep" >&5
3959echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3960if test "${ac_cv_prog_egrep+set}" = set; then
3961  echo $ECHO_N "(cached) $ECHO_C" >&6
3962else
3963  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3964    then ac_cv_prog_egrep='grep -E'
3965    else ac_cv_prog_egrep='egrep'
3966    fi
3967fi
3968echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3969echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3970 EGREP=$ac_cv_prog_egrep
3971
3972
3973
3974# Check whether --with-gnu-ld or --without-gnu-ld was given.
3975if test "${with_gnu_ld+set}" = set; then
3976  withval="$with_gnu_ld"
3977  test "$withval" = no || with_gnu_ld=yes
3978else
3979  with_gnu_ld=no
3980fi;
3981ac_prog=ld
3982if test "$GCC" = yes; then
3983  # Check if gcc -print-prog-name=ld gives a path.
3984  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3985echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3986  case $host in
3987  *-*-mingw*)
3988    # gcc leaves a trailing carriage return which upsets mingw
3989    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3990  *)
3991    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3992  esac
3993  case $ac_prog in
3994    # Accept absolute paths.
3995    [\\/]* | ?:[\\/]*)
3996      re_direlt='/[^/][^/]*/\.\./'
3997      # Canonicalize the path of ld
3998      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3999      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4000	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4001      done
4002      test -z "$LD" && LD="$ac_prog"
4003      ;;
4004  "")
4005    # If it fails, then pretend we aren't using GCC.
4006    ac_prog=ld
4007    ;;
4008  *)
4009    # If it is relative, then search for the first ld in PATH.
4010    with_gnu_ld=unknown
4011    ;;
4012  esac
4013elif test "$with_gnu_ld" = yes; then
4014  echo "$as_me:$LINENO: checking for GNU ld" >&5
4015echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4016else
4017  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4018echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4019fi
4020if test "${lt_cv_path_LD+set}" = set; then
4021  echo $ECHO_N "(cached) $ECHO_C" >&6
4022else
4023  if test -z "$LD"; then
4024  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4025  for ac_dir in $PATH; do
4026    IFS="$lt_save_ifs"
4027    test -z "$ac_dir" && ac_dir=.
4028    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4029      lt_cv_path_LD="$ac_dir/$ac_prog"
4030      # Check to see if the program is GNU ld.  I'd rather use --version,
4031      # but apparently some GNU ld's only accept -v.
4032      # Break only if it was the GNU/non-GNU ld that we prefer.
4033      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4034      *GNU* | *'with BFD'*)
4035	test "$with_gnu_ld" != no && break
4036	;;
4037      *)
4038	test "$with_gnu_ld" != yes && break
4039	;;
4040      esac
4041    fi
4042  done
4043  IFS="$lt_save_ifs"
4044else
4045  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4046fi
4047fi
4048
4049LD="$lt_cv_path_LD"
4050if test -n "$LD"; then
4051  echo "$as_me:$LINENO: result: $LD" >&5
4052echo "${ECHO_T}$LD" >&6
4053else
4054  echo "$as_me:$LINENO: result: no" >&5
4055echo "${ECHO_T}no" >&6
4056fi
4057test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4058echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4059   { (exit 1); exit 1; }; }
4060echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4061echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4062if test "${lt_cv_prog_gnu_ld+set}" = set; then
4063  echo $ECHO_N "(cached) $ECHO_C" >&6
4064else
4065  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4066case `"$LD" -v 2>&1 </dev/null` in
4067*GNU* | *'with BFD'*)
4068  lt_cv_prog_gnu_ld=yes
4069  ;;
4070*)
4071  lt_cv_prog_gnu_ld=no
4072  ;;
4073esac
4074fi
4075echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4076echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4077with_gnu_ld=$lt_cv_prog_gnu_ld
4078
4079
4080echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4081echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4082if test "${lt_cv_ld_reload_flag+set}" = set; then
4083  echo $ECHO_N "(cached) $ECHO_C" >&6
4084else
4085  lt_cv_ld_reload_flag='-r'
4086fi
4087echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4088echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4089reload_flag=$lt_cv_ld_reload_flag
4090case $reload_flag in
4091"" | " "*) ;;
4092*) reload_flag=" $reload_flag" ;;
4093esac
4094reload_cmds='$LD$reload_flag -o $output$reload_objs'
4095
4096echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4097echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4098if test "${lt_cv_path_NM+set}" = set; then
4099  echo $ECHO_N "(cached) $ECHO_C" >&6
4100else
4101  if test -n "$NM"; then
4102  # Let the user override the test.
4103  lt_cv_path_NM="$NM"
4104else
4105  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4106  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4107    IFS="$lt_save_ifs"
4108    test -z "$ac_dir" && ac_dir=.
4109    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4110    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4111      # Check to see if the nm accepts a BSD-compat flag.
4112      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4113      #   nm: unknown option "B" ignored
4114      # Tru64's nm complains that /dev/null is an invalid object file
4115      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4116      */dev/null* | *'Invalid file or object type'*)
4117	lt_cv_path_NM="$tmp_nm -B"
4118	break
4119        ;;
4120      *)
4121	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4122	*/dev/null*)
4123	  lt_cv_path_NM="$tmp_nm -p"
4124	  break
4125	  ;;
4126	*)
4127	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4128	  continue # so that we can try to find one that supports BSD flags
4129	  ;;
4130	esac
4131      esac
4132    fi
4133  done
4134  IFS="$lt_save_ifs"
4135  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4136fi
4137fi
4138echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4139echo "${ECHO_T}$lt_cv_path_NM" >&6
4140NM="$lt_cv_path_NM"
4141
4142echo "$as_me:$LINENO: checking whether ln -s works" >&5
4143echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4144LN_S=$as_ln_s
4145if test "$LN_S" = "ln -s"; then
4146  echo "$as_me:$LINENO: result: yes" >&5
4147echo "${ECHO_T}yes" >&6
4148else
4149  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4150echo "${ECHO_T}no, using $LN_S" >&6
4151fi
4152
4153echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4154echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4155if test "${lt_cv_deplibs_check_method+set}" = set; then
4156  echo $ECHO_N "(cached) $ECHO_C" >&6
4157else
4158  lt_cv_file_magic_cmd='$MAGIC_CMD'
4159lt_cv_file_magic_test_file=
4160lt_cv_deplibs_check_method='unknown'
4161# Need to set the preceding variable on all platforms that support
4162# interlibrary dependencies.
4163# 'none' -- dependencies not supported.
4164# `unknown' -- same as none, but documents that we really don't know.
4165# 'pass_all' -- all dependencies passed with no checks.
4166# 'test_compile' -- check by making test program.
4167# 'file_magic [[regex]]' -- check by looking for files in library path
4168# which responds to the $file_magic_cmd with a given extended regex.
4169# If you have `file' or equivalent on your system and you're not sure
4170# whether `pass_all' will *always* work, you probably want this one.
4171
4172case $host_os in
4173aix4* | aix5*)
4174  lt_cv_deplibs_check_method=pass_all
4175  ;;
4176
4177beos*)
4178  lt_cv_deplibs_check_method=pass_all
4179  ;;
4180
4181bsdi4*)
4182  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4183  lt_cv_file_magic_cmd='/usr/bin/file -L'
4184  lt_cv_file_magic_test_file=/shlib/libc.so
4185  ;;
4186
4187cygwin* | mingw* | pw32*)
4188  # win32_libid is a shell function defined in ltmain.sh
4189  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4190  lt_cv_file_magic_cmd='win32_libid'
4191  ;;
4192
4193darwin* | rhapsody*)
4194  # this will be overwritten by pass_all, but leave it in just in case
4195  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4196  lt_cv_file_magic_cmd='/usr/bin/file -L'
4197  case "$host_os" in
4198  rhapsody* | darwin1.[012])
4199    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4200    ;;
4201  *) # Darwin 1.3 on
4202    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4203    ;;
4204  esac
4205  lt_cv_deplibs_check_method=pass_all
4206  ;;
4207
4208freebsd*)
4209  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4210    case $host_cpu in
4211    i*86 )
4212      # Not sure whether the presence of OpenBSD here was a mistake.
4213      # Let's accept both of them until this is cleared up.
4214      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4215      lt_cv_file_magic_cmd=/usr/bin/file
4216      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4217      ;;
4218    esac
4219  else
4220    lt_cv_deplibs_check_method=pass_all
4221  fi
4222  ;;
4223
4224gnu*)
4225  lt_cv_deplibs_check_method=pass_all
4226  ;;
4227
4228hpux10.20* | hpux11*)
4229  lt_cv_file_magic_cmd=/usr/bin/file
4230  case "$host_cpu" in
4231  ia64*)
4232    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4233    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4234    ;;
4235  hppa*64*)
4236    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]'
4237    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4238    ;;
4239  *)
4240    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4241    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4242    ;;
4243  esac
4244  ;;
4245
4246irix5* | irix6* | nonstopux*)
4247  case $host_os in
4248  irix5* | nonstopux*)
4249    # this will be overridden with pass_all, but let us keep it just in case
4250    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4251    ;;
4252  *)
4253    case $LD in
4254    *-32|*"-32 ") libmagic=32-bit;;
4255    *-n32|*"-n32 ") libmagic=N32;;
4256    *-64|*"-64 ") libmagic=64-bit;;
4257    *) libmagic=never-match;;
4258    esac
4259    # this will be overridden with pass_all, but let us keep it just in case
4260    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4261    ;;
4262  esac
4263  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4264  lt_cv_deplibs_check_method=pass_all
4265  ;;
4266
4267# This must be Linux ELF.
4268linux*)
4269  case $host_cpu in
4270  alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4271    lt_cv_deplibs_check_method=pass_all ;;
4272  *)
4273    # glibc up to 2.1.1 does not perform some relocations on ARM
4274    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4275  esac
4276  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4277  ;;
4278
4279netbsd*)
4280  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4281    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4282  else
4283    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4284  fi
4285  ;;
4286
4287newos6*)
4288  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4289  lt_cv_file_magic_cmd=/usr/bin/file
4290  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4291  ;;
4292
4293nto-qnx)
4294  lt_cv_deplibs_check_method=unknown
4295  ;;
4296
4297openbsd*)
4298  lt_cv_file_magic_cmd=/usr/bin/file
4299  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4300  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4301    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4302  else
4303    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4304  fi
4305  ;;
4306
4307osf3* | osf4* | osf5*)
4308  # this will be overridden with pass_all, but let us keep it just in case
4309  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4310  lt_cv_file_magic_test_file=/shlib/libc.so
4311  lt_cv_deplibs_check_method=pass_all
4312  ;;
4313
4314sco3.2v5*)
4315  lt_cv_deplibs_check_method=pass_all
4316  ;;
4317
4318solaris*)
4319  lt_cv_deplibs_check_method=pass_all
4320  lt_cv_file_magic_test_file=/lib/libc.so
4321  ;;
4322
4323sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4324  case $host_vendor in
4325  motorola)
4326    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]'
4327    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4328    ;;
4329  ncr)
4330    lt_cv_deplibs_check_method=pass_all
4331    ;;
4332  sequent)
4333    lt_cv_file_magic_cmd='/bin/file'
4334    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4335    ;;
4336  sni)
4337    lt_cv_file_magic_cmd='/bin/file'
4338    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4339    lt_cv_file_magic_test_file=/lib/libc.so
4340    ;;
4341  siemens)
4342    lt_cv_deplibs_check_method=pass_all
4343    ;;
4344  esac
4345  ;;
4346
4347sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4348  lt_cv_deplibs_check_method=pass_all
4349  ;;
4350esac
4351
4352fi
4353echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4354echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4355file_magic_cmd=$lt_cv_file_magic_cmd
4356deplibs_check_method=$lt_cv_deplibs_check_method
4357test -z "$deplibs_check_method" && deplibs_check_method=unknown
4358
4359
4360
4361
4362# If no C compiler was specified, use CC.
4363LTCC=${LTCC-"$CC"}
4364
4365# Allow CC to be a program name with arguments.
4366compiler=$CC
4367
4368# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4369if test "${enable_libtool_lock+set}" = set; then
4370  enableval="$enable_libtool_lock"
4371
4372fi;
4373test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4374
4375# Some flags need to be propagated to the compiler or linker for good
4376# libtool support.
4377case $host in
4378ia64-*-hpux*)
4379  # Find out which ABI we are using.
4380  echo 'int i;' > conftest.$ac_ext
4381  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4382  (eval $ac_compile) 2>&5
4383  ac_status=$?
4384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385  (exit $ac_status); }; then
4386    case `/usr/bin/file conftest.$ac_objext` in
4387    *ELF-32*)
4388      HPUX_IA64_MODE="32"
4389      ;;
4390    *ELF-64*)
4391      HPUX_IA64_MODE="64"
4392      ;;
4393    esac
4394  fi
4395  rm -rf conftest*
4396  ;;
4397*-*-irix6*)
4398  # Find out which ABI we are using.
4399  echo '#line 4399 "configure"' > conftest.$ac_ext
4400  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4401  (eval $ac_compile) 2>&5
4402  ac_status=$?
4403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404  (exit $ac_status); }; then
4405   if test "$lt_cv_prog_gnu_ld" = yes; then
4406    case `/usr/bin/file conftest.$ac_objext` in
4407    *32-bit*)
4408      LD="${LD-ld} -melf32bsmip"
4409      ;;
4410    *N32*)
4411      LD="${LD-ld} -melf32bmipn32"
4412      ;;
4413    *64-bit*)
4414      LD="${LD-ld} -melf64bmip"
4415      ;;
4416    esac
4417   else
4418    case `/usr/bin/file conftest.$ac_objext` in
4419    *32-bit*)
4420      LD="${LD-ld} -32"
4421      ;;
4422    *N32*)
4423      LD="${LD-ld} -n32"
4424      ;;
4425    *64-bit*)
4426      LD="${LD-ld} -64"
4427      ;;
4428    esac
4429   fi
4430  fi
4431  rm -rf conftest*
4432  ;;
4433
4434x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4435  # Find out which ABI we are using.
4436  echo 'int i;' > conftest.$ac_ext
4437  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4438  (eval $ac_compile) 2>&5
4439  ac_status=$?
4440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441  (exit $ac_status); }; then
4442    case "`/usr/bin/file conftest.o`" in
4443    *32-bit*)
4444      case $host in
4445        x86_64-*linux*)
4446          LD="${LD-ld} -m elf_i386"
4447          ;;
4448        ppc64-*linux*)
4449          LD="${LD-ld} -m elf32ppclinux"
4450          ;;
4451        s390x-*linux*)
4452          LD="${LD-ld} -m elf_s390"
4453          ;;
4454        sparc64-*linux*)
4455          LD="${LD-ld} -m elf32_sparc"
4456          ;;
4457      esac
4458      ;;
4459    *64-bit*)
4460      case $host in
4461        x86_64-*linux*)
4462          LD="${LD-ld} -m elf_x86_64"
4463          ;;
4464        ppc*-*linux*|powerpc*-*linux*)
4465          LD="${LD-ld} -m elf64ppc"
4466          ;;
4467        s390*-*linux*)
4468          LD="${LD-ld} -m elf64_s390"
4469          ;;
4470        sparc*-*linux*)
4471          LD="${LD-ld} -m elf64_sparc"
4472          ;;
4473      esac
4474      ;;
4475    esac
4476  fi
4477  rm -rf conftest*
4478  ;;
4479
4480*-*-sco3.2v5*)
4481  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4482  SAVE_CFLAGS="$CFLAGS"
4483  CFLAGS="$CFLAGS -belf"
4484  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4485echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4486if test "${lt_cv_cc_needs_belf+set}" = set; then
4487  echo $ECHO_N "(cached) $ECHO_C" >&6
4488else
4489  ac_ext=c
4490ac_cpp='$CPP $CPPFLAGS'
4491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493ac_compiler_gnu=$ac_cv_c_compiler_gnu
4494
4495     cat >conftest.$ac_ext <<_ACEOF
4496#line $LINENO "configure"
4497/* confdefs.h.  */
4498_ACEOF
4499cat confdefs.h >>conftest.$ac_ext
4500cat >>conftest.$ac_ext <<_ACEOF
4501/* end confdefs.h.  */
4502
4503int
4504main ()
4505{
4506
4507  ;
4508  return 0;
4509}
4510_ACEOF
4511rm -f conftest.$ac_objext conftest$ac_exeext
4512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4513  (eval $ac_link) 2>&5
4514  ac_status=$?
4515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516  (exit $ac_status); } &&
4517         { ac_try='test -s conftest$ac_exeext'
4518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519  (eval $ac_try) 2>&5
4520  ac_status=$?
4521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522  (exit $ac_status); }; }; then
4523  lt_cv_cc_needs_belf=yes
4524else
4525  echo "$as_me: failed program was:" >&5
4526sed 's/^/| /' conftest.$ac_ext >&5
4527
4528lt_cv_cc_needs_belf=no
4529fi
4530rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4531     ac_ext=c
4532ac_cpp='$CPP $CPPFLAGS'
4533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536
4537fi
4538echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4539echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4540  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4541    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4542    CFLAGS="$SAVE_CFLAGS"
4543  fi
4544  ;;
4545
4546esac
4547
4548need_locks="$enable_libtool_lock"
4549
4550
4551
4552echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4553echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4554if test "${ac_cv_header_stdc+set}" = set; then
4555  echo $ECHO_N "(cached) $ECHO_C" >&6
4556else
4557  cat >conftest.$ac_ext <<_ACEOF
4558#line $LINENO "configure"
4559/* confdefs.h.  */
4560_ACEOF
4561cat confdefs.h >>conftest.$ac_ext
4562cat >>conftest.$ac_ext <<_ACEOF
4563/* end confdefs.h.  */
4564#include <stdlib.h>
4565#include <stdarg.h>
4566#include <string.h>
4567#include <float.h>
4568
4569int
4570main ()
4571{
4572
4573  ;
4574  return 0;
4575}
4576_ACEOF
4577rm -f conftest.$ac_objext
4578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4579  (eval $ac_compile) 2>&5
4580  ac_status=$?
4581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582  (exit $ac_status); } &&
4583         { ac_try='test -s conftest.$ac_objext'
4584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585  (eval $ac_try) 2>&5
4586  ac_status=$?
4587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588  (exit $ac_status); }; }; then
4589  ac_cv_header_stdc=yes
4590else
4591  echo "$as_me: failed program was:" >&5
4592sed 's/^/| /' conftest.$ac_ext >&5
4593
4594ac_cv_header_stdc=no
4595fi
4596rm -f conftest.$ac_objext conftest.$ac_ext
4597
4598if test $ac_cv_header_stdc = yes; then
4599  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4600  cat >conftest.$ac_ext <<_ACEOF
4601#line $LINENO "configure"
4602/* confdefs.h.  */
4603_ACEOF
4604cat confdefs.h >>conftest.$ac_ext
4605cat >>conftest.$ac_ext <<_ACEOF
4606/* end confdefs.h.  */
4607#include <string.h>
4608
4609_ACEOF
4610if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4611  $EGREP "memchr" >/dev/null 2>&1; then
4612  :
4613else
4614  ac_cv_header_stdc=no
4615fi
4616rm -f conftest*
4617
4618fi
4619
4620if test $ac_cv_header_stdc = yes; then
4621  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4622  cat >conftest.$ac_ext <<_ACEOF
4623#line $LINENO "configure"
4624/* confdefs.h.  */
4625_ACEOF
4626cat confdefs.h >>conftest.$ac_ext
4627cat >>conftest.$ac_ext <<_ACEOF
4628/* end confdefs.h.  */
4629#include <stdlib.h>
4630
4631_ACEOF
4632if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4633  $EGREP "free" >/dev/null 2>&1; then
4634  :
4635else
4636  ac_cv_header_stdc=no
4637fi
4638rm -f conftest*
4639
4640fi
4641
4642if test $ac_cv_header_stdc = yes; then
4643  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4644  if test "$cross_compiling" = yes; then
4645  :
4646else
4647  cat >conftest.$ac_ext <<_ACEOF
4648#line $LINENO "configure"
4649/* confdefs.h.  */
4650_ACEOF
4651cat confdefs.h >>conftest.$ac_ext
4652cat >>conftest.$ac_ext <<_ACEOF
4653/* end confdefs.h.  */
4654#include <ctype.h>
4655#if ((' ' & 0x0FF) == 0x020)
4656# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4657# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4658#else
4659# define ISLOWER(c) \
4660                   (('a' <= (c) && (c) <= 'i') \
4661                     || ('j' <= (c) && (c) <= 'r') \
4662                     || ('s' <= (c) && (c) <= 'z'))
4663# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4664#endif
4665
4666#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4667int
4668main ()
4669{
4670  int i;
4671  for (i = 0; i < 256; i++)
4672    if (XOR (islower (i), ISLOWER (i))
4673        || toupper (i) != TOUPPER (i))
4674      exit(2);
4675  exit (0);
4676}
4677_ACEOF
4678rm -f conftest$ac_exeext
4679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4680  (eval $ac_link) 2>&5
4681  ac_status=$?
4682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685  (eval $ac_try) 2>&5
4686  ac_status=$?
4687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688  (exit $ac_status); }; }; then
4689  :
4690else
4691  echo "$as_me: program exited with status $ac_status" >&5
4692echo "$as_me: failed program was:" >&5
4693sed 's/^/| /' conftest.$ac_ext >&5
4694
4695( exit $ac_status )
4696ac_cv_header_stdc=no
4697fi
4698rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4699fi
4700fi
4701fi
4702echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4703echo "${ECHO_T}$ac_cv_header_stdc" >&6
4704if test $ac_cv_header_stdc = yes; then
4705
4706cat >>confdefs.h <<\_ACEOF
4707#define STDC_HEADERS 1
4708_ACEOF
4709
4710fi
4711
4712# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4723                  inttypes.h stdint.h unistd.h
4724do
4725as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4726echo "$as_me:$LINENO: checking for $ac_header" >&5
4727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4728if eval "test \"\${$as_ac_Header+set}\" = set"; then
4729  echo $ECHO_N "(cached) $ECHO_C" >&6
4730else
4731  cat >conftest.$ac_ext <<_ACEOF
4732#line $LINENO "configure"
4733/* confdefs.h.  */
4734_ACEOF
4735cat confdefs.h >>conftest.$ac_ext
4736cat >>conftest.$ac_ext <<_ACEOF
4737/* end confdefs.h.  */
4738$ac_includes_default
4739
4740#include <$ac_header>
4741_ACEOF
4742rm -f conftest.$ac_objext
4743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4744  (eval $ac_compile) 2>&5
4745  ac_status=$?
4746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747  (exit $ac_status); } &&
4748         { ac_try='test -s conftest.$ac_objext'
4749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750  (eval $ac_try) 2>&5
4751  ac_status=$?
4752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753  (exit $ac_status); }; }; then
4754  eval "$as_ac_Header=yes"
4755else
4756  echo "$as_me: failed program was:" >&5
4757sed 's/^/| /' conftest.$ac_ext >&5
4758
4759eval "$as_ac_Header=no"
4760fi
4761rm -f conftest.$ac_objext conftest.$ac_ext
4762fi
4763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4764echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4765if test `eval echo '${'$as_ac_Header'}'` = yes; then
4766  cat >>confdefs.h <<_ACEOF
4767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4768_ACEOF
4769
4770fi
4771
4772done
4773
4774
4775
4776for ac_header in dlfcn.h
4777do
4778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4779if eval "test \"\${$as_ac_Header+set}\" = set"; then
4780  echo "$as_me:$LINENO: checking for $ac_header" >&5
4781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4782if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783  echo $ECHO_N "(cached) $ECHO_C" >&6
4784fi
4785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4786echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4787else
4788  # Is the header compilable?
4789echo "$as_me:$LINENO: checking $ac_header usability" >&5
4790echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4791cat >conftest.$ac_ext <<_ACEOF
4792#line $LINENO "configure"
4793/* confdefs.h.  */
4794_ACEOF
4795cat confdefs.h >>conftest.$ac_ext
4796cat >>conftest.$ac_ext <<_ACEOF
4797/* end confdefs.h.  */
4798$ac_includes_default
4799#include <$ac_header>
4800_ACEOF
4801rm -f conftest.$ac_objext
4802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4803  (eval $ac_compile) 2>&5
4804  ac_status=$?
4805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806  (exit $ac_status); } &&
4807         { ac_try='test -s conftest.$ac_objext'
4808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809  (eval $ac_try) 2>&5
4810  ac_status=$?
4811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812  (exit $ac_status); }; }; then
4813  ac_header_compiler=yes
4814else
4815  echo "$as_me: failed program was:" >&5
4816sed 's/^/| /' conftest.$ac_ext >&5
4817
4818ac_header_compiler=no
4819fi
4820rm -f conftest.$ac_objext conftest.$ac_ext
4821echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4822echo "${ECHO_T}$ac_header_compiler" >&6
4823
4824# Is the header present?
4825echo "$as_me:$LINENO: checking $ac_header presence" >&5
4826echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4827cat >conftest.$ac_ext <<_ACEOF
4828#line $LINENO "configure"
4829/* confdefs.h.  */
4830_ACEOF
4831cat confdefs.h >>conftest.$ac_ext
4832cat >>conftest.$ac_ext <<_ACEOF
4833/* end confdefs.h.  */
4834#include <$ac_header>
4835_ACEOF
4836if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4837  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4838  ac_status=$?
4839  grep -v '^ *+' conftest.er1 >conftest.err
4840  rm -f conftest.er1
4841  cat conftest.err >&5
4842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843  (exit $ac_status); } >/dev/null; then
4844  if test -s conftest.err; then
4845    ac_cpp_err=$ac_c_preproc_warn_flag
4846  else
4847    ac_cpp_err=
4848  fi
4849else
4850  ac_cpp_err=yes
4851fi
4852if test -z "$ac_cpp_err"; then
4853  ac_header_preproc=yes
4854else
4855  echo "$as_me: failed program was:" >&5
4856sed 's/^/| /' conftest.$ac_ext >&5
4857
4858  ac_header_preproc=no
4859fi
4860rm -f conftest.err conftest.$ac_ext
4861echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4862echo "${ECHO_T}$ac_header_preproc" >&6
4863
4864# So?  What about this header?
4865case $ac_header_compiler:$ac_header_preproc in
4866  yes:no )
4867    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4868echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4869    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4870echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4871    (
4872      cat <<\_ASBOX
4873## ------------------------------------ ##
4874## Report this to bug-autoconf@gnu.org. ##
4875## ------------------------------------ ##
4876_ASBOX
4877    ) |
4878      sed "s/^/$as_me: WARNING:     /" >&2
4879    ;;
4880  no:yes )
4881    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4882echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4883    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4884echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4885    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4886echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4887    (
4888      cat <<\_ASBOX
4889## ------------------------------------ ##
4890## Report this to bug-autoconf@gnu.org. ##
4891## ------------------------------------ ##
4892_ASBOX
4893    ) |
4894      sed "s/^/$as_me: WARNING:     /" >&2
4895    ;;
4896esac
4897echo "$as_me:$LINENO: checking for $ac_header" >&5
4898echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4899if eval "test \"\${$as_ac_Header+set}\" = set"; then
4900  echo $ECHO_N "(cached) $ECHO_C" >&6
4901else
4902  eval "$as_ac_Header=$ac_header_preproc"
4903fi
4904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4905echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4906
4907fi
4908if test `eval echo '${'$as_ac_Header'}'` = yes; then
4909  cat >>confdefs.h <<_ACEOF
4910#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4911_ACEOF
4912
4913fi
4914
4915done
4916
4917ac_ext=cc
4918ac_cpp='$CXXCPP $CPPFLAGS'
4919ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4920ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4921ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4922echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4923echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4924if test -z "$CXXCPP"; then
4925  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4926  echo $ECHO_N "(cached) $ECHO_C" >&6
4927else
4928      # Double quotes because CXXCPP needs to be expanded
4929    for CXXCPP in "$CXX -E" "/lib/cpp"
4930    do
4931      ac_preproc_ok=false
4932for ac_cxx_preproc_warn_flag in '' yes
4933do
4934  # Use a header file that comes with gcc, so configuring glibc
4935  # with a fresh cross-compiler works.
4936  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4937  # <limits.h> exists even on freestanding compilers.
4938  # On the NeXT, cc -E runs the code through the compiler's parser,
4939  # not just through cpp. "Syntax error" is here to catch this case.
4940  cat >conftest.$ac_ext <<_ACEOF
4941#line $LINENO "configure"
4942/* confdefs.h.  */
4943_ACEOF
4944cat confdefs.h >>conftest.$ac_ext
4945cat >>conftest.$ac_ext <<_ACEOF
4946/* end confdefs.h.  */
4947#ifdef __STDC__
4948# include <limits.h>
4949#else
4950# include <assert.h>
4951#endif
4952                     Syntax error
4953_ACEOF
4954if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4955  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4956  ac_status=$?
4957  grep -v '^ *+' conftest.er1 >conftest.err
4958  rm -f conftest.er1
4959  cat conftest.err >&5
4960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961  (exit $ac_status); } >/dev/null; then
4962  if test -s conftest.err; then
4963    ac_cpp_err=$ac_cxx_preproc_warn_flag
4964  else
4965    ac_cpp_err=
4966  fi
4967else
4968  ac_cpp_err=yes
4969fi
4970if test -z "$ac_cpp_err"; then
4971  :
4972else
4973  echo "$as_me: failed program was:" >&5
4974sed 's/^/| /' conftest.$ac_ext >&5
4975
4976  # Broken: fails on valid input.
4977continue
4978fi
4979rm -f conftest.err conftest.$ac_ext
4980
4981  # OK, works on sane cases.  Now check whether non-existent headers
4982  # can be detected and how.
4983  cat >conftest.$ac_ext <<_ACEOF
4984#line $LINENO "configure"
4985/* confdefs.h.  */
4986_ACEOF
4987cat confdefs.h >>conftest.$ac_ext
4988cat >>conftest.$ac_ext <<_ACEOF
4989/* end confdefs.h.  */
4990#include <ac_nonexistent.h>
4991_ACEOF
4992if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4993  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4994  ac_status=$?
4995  grep -v '^ *+' conftest.er1 >conftest.err
4996  rm -f conftest.er1
4997  cat conftest.err >&5
4998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999  (exit $ac_status); } >/dev/null; then
5000  if test -s conftest.err; then
5001    ac_cpp_err=$ac_cxx_preproc_warn_flag
5002  else
5003    ac_cpp_err=
5004  fi
5005else
5006  ac_cpp_err=yes
5007fi
5008if test -z "$ac_cpp_err"; then
5009  # Broken: success on invalid input.
5010continue
5011else
5012  echo "$as_me: failed program was:" >&5
5013sed 's/^/| /' conftest.$ac_ext >&5
5014
5015  # Passes both tests.
5016ac_preproc_ok=:
5017break
5018fi
5019rm -f conftest.err conftest.$ac_ext
5020
5021done
5022# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5023rm -f conftest.err conftest.$ac_ext
5024if $ac_preproc_ok; then
5025  break
5026fi
5027
5028    done
5029    ac_cv_prog_CXXCPP=$CXXCPP
5030
5031fi
5032  CXXCPP=$ac_cv_prog_CXXCPP
5033else
5034  ac_cv_prog_CXXCPP=$CXXCPP
5035fi
5036echo "$as_me:$LINENO: result: $CXXCPP" >&5
5037echo "${ECHO_T}$CXXCPP" >&6
5038ac_preproc_ok=false
5039for ac_cxx_preproc_warn_flag in '' yes
5040do
5041  # Use a header file that comes with gcc, so configuring glibc
5042  # with a fresh cross-compiler works.
5043  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5044  # <limits.h> exists even on freestanding compilers.
5045  # On the NeXT, cc -E runs the code through the compiler's parser,
5046  # not just through cpp. "Syntax error" is here to catch this case.
5047  cat >conftest.$ac_ext <<_ACEOF
5048#line $LINENO "configure"
5049/* confdefs.h.  */
5050_ACEOF
5051cat confdefs.h >>conftest.$ac_ext
5052cat >>conftest.$ac_ext <<_ACEOF
5053/* end confdefs.h.  */
5054#ifdef __STDC__
5055# include <limits.h>
5056#else
5057# include <assert.h>
5058#endif
5059                     Syntax error
5060_ACEOF
5061if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5062  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5063  ac_status=$?
5064  grep -v '^ *+' conftest.er1 >conftest.err
5065  rm -f conftest.er1
5066  cat conftest.err >&5
5067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068  (exit $ac_status); } >/dev/null; then
5069  if test -s conftest.err; then
5070    ac_cpp_err=$ac_cxx_preproc_warn_flag
5071  else
5072    ac_cpp_err=
5073  fi
5074else
5075  ac_cpp_err=yes
5076fi
5077if test -z "$ac_cpp_err"; then
5078  :
5079else
5080  echo "$as_me: failed program was:" >&5
5081sed 's/^/| /' conftest.$ac_ext >&5
5082
5083  # Broken: fails on valid input.
5084continue
5085fi
5086rm -f conftest.err conftest.$ac_ext
5087
5088  # OK, works on sane cases.  Now check whether non-existent headers
5089  # can be detected and how.
5090  cat >conftest.$ac_ext <<_ACEOF
5091#line $LINENO "configure"
5092/* confdefs.h.  */
5093_ACEOF
5094cat confdefs.h >>conftest.$ac_ext
5095cat >>conftest.$ac_ext <<_ACEOF
5096/* end confdefs.h.  */
5097#include <ac_nonexistent.h>
5098_ACEOF
5099if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5100  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5101  ac_status=$?
5102  grep -v '^ *+' conftest.er1 >conftest.err
5103  rm -f conftest.er1
5104  cat conftest.err >&5
5105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106  (exit $ac_status); } >/dev/null; then
5107  if test -s conftest.err; then
5108    ac_cpp_err=$ac_cxx_preproc_warn_flag
5109  else
5110    ac_cpp_err=
5111  fi
5112else
5113  ac_cpp_err=yes
5114fi
5115if test -z "$ac_cpp_err"; then
5116  # Broken: success on invalid input.
5117continue
5118else
5119  echo "$as_me: failed program was:" >&5
5120sed 's/^/| /' conftest.$ac_ext >&5
5121
5122  # Passes both tests.
5123ac_preproc_ok=:
5124break
5125fi
5126rm -f conftest.err conftest.$ac_ext
5127
5128done
5129# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5130rm -f conftest.err conftest.$ac_ext
5131if $ac_preproc_ok; then
5132  :
5133else
5134  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5135See \`config.log' for more details." >&5
5136echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5137See \`config.log' for more details." >&2;}
5138   { (exit 1); exit 1; }; }
5139fi
5140
5141ac_ext=cc
5142ac_cpp='$CXXCPP $CPPFLAGS'
5143ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5144ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5146
5147
5148ac_ext=f
5149ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5150ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5151ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5152if test -n "$ac_tool_prefix"; then
5153  for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5154  do
5155    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5156set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5157echo "$as_me:$LINENO: checking for $ac_word" >&5
5158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5159if test "${ac_cv_prog_F77+set}" = set; then
5160  echo $ECHO_N "(cached) $ECHO_C" >&6
5161else
5162  if test -n "$F77"; then
5163  ac_cv_prog_F77="$F77" # Let the user override the test.
5164else
5165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166for as_dir in $PATH
5167do
5168  IFS=$as_save_IFS
5169  test -z "$as_dir" && as_dir=.
5170  for ac_exec_ext in '' $ac_executable_extensions; do
5171  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5173    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5174    break 2
5175  fi
5176done
5177done
5178
5179fi
5180fi
5181F77=$ac_cv_prog_F77
5182if test -n "$F77"; then
5183  echo "$as_me:$LINENO: result: $F77" >&5
5184echo "${ECHO_T}$F77" >&6
5185else
5186  echo "$as_me:$LINENO: result: no" >&5
5187echo "${ECHO_T}no" >&6
5188fi
5189
5190    test -n "$F77" && break
5191  done
5192fi
5193if test -z "$F77"; then
5194  ac_ct_F77=$F77
5195  for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5196do
5197  # Extract the first word of "$ac_prog", so it can be a program name with args.
5198set dummy $ac_prog; ac_word=$2
5199echo "$as_me:$LINENO: checking for $ac_word" >&5
5200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5201if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5202  echo $ECHO_N "(cached) $ECHO_C" >&6
5203else
5204  if test -n "$ac_ct_F77"; then
5205  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5206else
5207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208for as_dir in $PATH
5209do
5210  IFS=$as_save_IFS
5211  test -z "$as_dir" && as_dir=.
5212  for ac_exec_ext in '' $ac_executable_extensions; do
5213  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5214    ac_cv_prog_ac_ct_F77="$ac_prog"
5215    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5216    break 2
5217  fi
5218done
5219done
5220
5221fi
5222fi
5223ac_ct_F77=$ac_cv_prog_ac_ct_F77
5224if test -n "$ac_ct_F77"; then
5225  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5226echo "${ECHO_T}$ac_ct_F77" >&6
5227else
5228  echo "$as_me:$LINENO: result: no" >&5
5229echo "${ECHO_T}no" >&6
5230fi
5231
5232  test -n "$ac_ct_F77" && break
5233done
5234
5235  F77=$ac_ct_F77
5236fi
5237
5238
5239# Provide some information about the compiler.
5240echo "$as_me:5240:" \
5241     "checking for Fortran 77 compiler version" >&5
5242ac_compiler=`set X $ac_compile; echo $2`
5243{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5244  (eval $ac_compiler --version </dev/null >&5) 2>&5
5245  ac_status=$?
5246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247  (exit $ac_status); }
5248{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5249  (eval $ac_compiler -v </dev/null >&5) 2>&5
5250  ac_status=$?
5251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252  (exit $ac_status); }
5253{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5254  (eval $ac_compiler -V </dev/null >&5) 2>&5
5255  ac_status=$?
5256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257  (exit $ac_status); }
5258
5259# If we don't use `.F' as extension, the preprocessor is not run on the
5260# input file.
5261ac_save_ext=$ac_ext
5262ac_ext=F
5263echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5264echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5265if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5266  echo $ECHO_N "(cached) $ECHO_C" >&6
5267else
5268  cat >conftest.$ac_ext <<_ACEOF
5269      program main
5270#ifndef __GNUC__
5271       choke me
5272#endif
5273
5274      end
5275_ACEOF
5276rm -f conftest.$ac_objext
5277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5278  (eval $ac_compile) 2>&5
5279  ac_status=$?
5280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281  (exit $ac_status); } &&
5282         { ac_try='test -s conftest.$ac_objext'
5283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284  (eval $ac_try) 2>&5
5285  ac_status=$?
5286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287  (exit $ac_status); }; }; then
5288  ac_compiler_gnu=yes
5289else
5290  echo "$as_me: failed program was:" >&5
5291sed 's/^/| /' conftest.$ac_ext >&5
5292
5293ac_compiler_gnu=no
5294fi
5295rm -f conftest.$ac_objext conftest.$ac_ext
5296ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5297
5298fi
5299echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5300echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5301ac_ext=$ac_save_ext
5302G77=`test $ac_compiler_gnu = yes && echo yes`
5303ac_test_FFLAGS=${FFLAGS+set}
5304ac_save_FFLAGS=$FFLAGS
5305FFLAGS=
5306echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5307echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5308if test "${ac_cv_prog_f77_g+set}" = set; then
5309  echo $ECHO_N "(cached) $ECHO_C" >&6
5310else
5311  FFLAGS=-g
5312cat >conftest.$ac_ext <<_ACEOF
5313      program main
5314
5315      end
5316_ACEOF
5317rm -f conftest.$ac_objext
5318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319  (eval $ac_compile) 2>&5
5320  ac_status=$?
5321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322  (exit $ac_status); } &&
5323         { ac_try='test -s conftest.$ac_objext'
5324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325  (eval $ac_try) 2>&5
5326  ac_status=$?
5327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328  (exit $ac_status); }; }; then
5329  ac_cv_prog_f77_g=yes
5330else
5331  echo "$as_me: failed program was:" >&5
5332sed 's/^/| /' conftest.$ac_ext >&5
5333
5334ac_cv_prog_f77_g=no
5335fi
5336rm -f conftest.$ac_objext conftest.$ac_ext
5337
5338fi
5339echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5340echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5341if test "$ac_test_FFLAGS" = set; then
5342  FFLAGS=$ac_save_FFLAGS
5343elif test $ac_cv_prog_f77_g = yes; then
5344  if test "$G77" = yes; then
5345    FFLAGS="-g -O2"
5346  else
5347    FFLAGS="-g"
5348  fi
5349else
5350  if test "$G77" = yes; then
5351    FFLAGS="-O2"
5352  else
5353    FFLAGS=
5354  fi
5355fi
5356ac_ext=c
5357ac_cpp='$CPP $CPPFLAGS'
5358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5360ac_compiler_gnu=$ac_cv_c_compiler_gnu
5361
5362
5363
5364# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5365
5366# find the maximum length of command line arguments
5367echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5368echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5369if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5370  echo $ECHO_N "(cached) $ECHO_C" >&6
5371else
5372    i=0
5373  testring="ABCD"
5374
5375  case $build_os in
5376  msdosdjgpp*)
5377    # On DJGPP, this test can blow up pretty badly due to problems in libc
5378    # (any single argument exceeding 2000 bytes causes a buffer overrun
5379    # during glob expansion).  Even if it were fixed, the result of this
5380    # check would be larger than it should be.
5381    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5382    ;;
5383
5384  gnu*)
5385    # Under GNU Hurd, this test is not required because there is
5386    # no limit to the length of command line arguments.
5387    # Libtool will interpret -1 as no limit whatsoever
5388    lt_cv_sys_max_cmd_len=-1;
5389    ;;
5390
5391  cygwin* | mingw*)
5392    # On Win9x/ME, this test blows up -- it succeeds, but takes
5393    # about 5 minutes as the teststring grows exponentially.
5394    # Worse, since 9x/ME are not pre-emptively multitasking,
5395    # you end up with a "frozen" computer, even though with patience
5396    # the test eventually succeeds (with a max line length of 256k).
5397    # Instead, let's just punt: use the minimum linelength reported by
5398    # all of the supported platforms: 8192 (on NT/2K/XP).
5399    lt_cv_sys_max_cmd_len=8192;
5400    ;;
5401
5402 *)
5403    # If test is not a shell built-in, we'll probably end up computing a
5404    # maximum length that is only half of the actual maximum length, but
5405    # we can't tell.
5406    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5407	       = "XX$testring") >/dev/null 2>&1 &&
5408	    new_result=`expr "X$testring" : ".*" 2>&1` &&
5409	    lt_cv_sys_max_cmd_len=$new_result &&
5410	    test $i != 17 # 1/2 MB should be enough
5411    do
5412      i=`expr $i + 1`
5413      testring=$testring$testring
5414    done
5415    testring=
5416    # Add a significant safety factor because C++ compilers can tack on massive
5417    # amounts of additional arguments before passing them to the linker.
5418    # It appears as though 1/2 is a usable value.
5419    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5420    ;;
5421  esac
5422
5423fi
5424
5425if test -n $lt_cv_sys_max_cmd_len ; then
5426  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5427echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5428else
5429  echo "$as_me:$LINENO: result: none" >&5
5430echo "${ECHO_T}none" >&6
5431fi
5432
5433
5434
5435
5436# Check for command to grab the raw symbol name followed by C symbol from nm.
5437echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5438echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5439if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5440  echo $ECHO_N "(cached) $ECHO_C" >&6
5441else
5442
5443# These are sane defaults that work on at least a few old systems.
5444# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5445
5446# Character class describing NM global symbol codes.
5447symcode='[BCDEGRST]'
5448
5449# Regexp to match symbols that can be accessed directly from C.
5450sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5451
5452# Transform the above into a raw symbol and a C symbol.
5453symxfrm='\1 \2\3 \3'
5454
5455# Transform an extracted symbol line into a proper C declaration
5456lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5457
5458# Transform an extracted symbol line into symbol name and symbol address
5459lt_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'"
5460
5461# Define system-specific variables.
5462case $host_os in
5463aix*)
5464  symcode='[BCDT]'
5465  ;;
5466cygwin* | mingw* | pw32*)
5467  symcode='[ABCDGISTW]'
5468  ;;
5469hpux*) # Its linker distinguishes data from code symbols
5470  if test "$host_cpu" = ia64; then
5471    symcode='[ABCDEGRST]'
5472  fi
5473  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5474  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'"
5475  ;;
5476irix* | nonstopux*)
5477  symcode='[BCDEGRST]'
5478  ;;
5479osf*)
5480  symcode='[BCDEGQRST]'
5481  ;;
5482solaris* | sysv5*)
5483  symcode='[BDT]'
5484  ;;
5485sysv4)
5486  symcode='[DFNSTU]'
5487  ;;
5488esac
5489
5490# Handle CRLF in mingw tool chain
5491opt_cr=
5492case $build_os in
5493mingw*)
5494  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5495  ;;
5496esac
5497
5498# If we're using GNU nm, then use its standard symbol codes.
5499case `$NM -V 2>&1` in
5500*GNU* | *'with BFD'*)
5501  symcode='[ABCDGISTW]' ;;
5502esac
5503
5504# Try without a prefix undercore, then with it.
5505for ac_symprfx in "" "_"; do
5506
5507  # Write the raw and C identifiers.
5508  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5509
5510  # Check to see that the pipe works correctly.
5511  pipe_works=no
5512
5513  rm -f conftest*
5514  cat > conftest.$ac_ext <<EOF
5515#ifdef __cplusplus
5516extern "C" {
5517#endif
5518char nm_test_var;
5519void nm_test_func(){}
5520#ifdef __cplusplus
5521}
5522#endif
5523int main(){nm_test_var='a';nm_test_func();return(0);}
5524EOF
5525
5526  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5527  (eval $ac_compile) 2>&5
5528  ac_status=$?
5529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530  (exit $ac_status); }; then
5531    # Now try to grab the symbols.
5532    nlist=conftest.nm
5533    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5534  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5535  ac_status=$?
5536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537  (exit $ac_status); } && test -s "$nlist"; then
5538      # Try sorting and uniquifying the output.
5539      if sort "$nlist" | uniq > "$nlist"T; then
5540	mv -f "$nlist"T "$nlist"
5541      else
5542	rm -f "$nlist"T
5543      fi
5544
5545      # Make sure that we snagged all the symbols we need.
5546      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5547	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5548	  cat <<EOF > conftest.$ac_ext
5549#ifdef __cplusplus
5550extern "C" {
5551#endif
5552
5553EOF
5554	  # Now generate the symbol file.
5555	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5556
5557	  cat <<EOF >> conftest.$ac_ext
5558#if defined (__STDC__) && __STDC__
5559# define lt_ptr_t void *
5560#else
5561# define lt_ptr_t char *
5562# define const
5563#endif
5564
5565/* The mapping between symbol names and symbols. */
5566const struct {
5567  const char *name;
5568  lt_ptr_t address;
5569}
5570lt_preloaded_symbols[] =
5571{
5572EOF
5573	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5574	  cat <<\EOF >> conftest.$ac_ext
5575  {0, (lt_ptr_t) 0}
5576};
5577
5578#ifdef __cplusplus
5579}
5580#endif
5581EOF
5582	  # Now try linking the two files.
5583	  mv conftest.$ac_objext conftstm.$ac_objext
5584	  lt_save_LIBS="$LIBS"
5585	  lt_save_CFLAGS="$CFLAGS"
5586	  LIBS="conftstm.$ac_objext"
5587	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5588	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5589  (eval $ac_link) 2>&5
5590  ac_status=$?
5591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5593	    pipe_works=yes
5594	  fi
5595	  LIBS="$lt_save_LIBS"
5596	  CFLAGS="$lt_save_CFLAGS"
5597	else
5598	  echo "cannot find nm_test_func in $nlist" >&5
5599	fi
5600      else
5601	echo "cannot find nm_test_var in $nlist" >&5
5602      fi
5603    else
5604      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5605    fi
5606  else
5607    echo "$progname: failed program was:" >&5
5608    cat conftest.$ac_ext >&5
5609  fi
5610  rm -f conftest* conftst*
5611
5612  # Do not use the global_symbol_pipe unless it works.
5613  if test "$pipe_works" = yes; then
5614    break
5615  else
5616    lt_cv_sys_global_symbol_pipe=
5617  fi
5618done
5619
5620fi
5621
5622if test -z "$lt_cv_sys_global_symbol_pipe"; then
5623  lt_cv_sys_global_symbol_to_cdecl=
5624fi
5625if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5626  echo "$as_me:$LINENO: result: failed" >&5
5627echo "${ECHO_T}failed" >&6
5628else
5629  echo "$as_me:$LINENO: result: ok" >&5
5630echo "${ECHO_T}ok" >&6
5631fi
5632
5633echo "$as_me:$LINENO: checking for objdir" >&5
5634echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5635if test "${lt_cv_objdir+set}" = set; then
5636  echo $ECHO_N "(cached) $ECHO_C" >&6
5637else
5638  rm -f .libs 2>/dev/null
5639mkdir .libs 2>/dev/null
5640if test -d .libs; then
5641  lt_cv_objdir=.libs
5642else
5643  # MS-DOS does not allow filenames that begin with a dot.
5644  lt_cv_objdir=_libs
5645fi
5646rmdir .libs 2>/dev/null
5647fi
5648echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5649echo "${ECHO_T}$lt_cv_objdir" >&6
5650objdir=$lt_cv_objdir
5651
5652
5653
5654
5655
5656case $host_os in
5657aix3*)
5658  # AIX sometimes has problems with the GCC collect2 program.  For some
5659  # reason, if we set the COLLECT_NAMES environment variable, the problems
5660  # vanish in a puff of smoke.
5661  if test "X${COLLECT_NAMES+set}" != Xset; then
5662    COLLECT_NAMES=
5663    export COLLECT_NAMES
5664  fi
5665  ;;
5666esac
5667
5668# Sed substitution that helps us do robust quoting.  It backslashifies
5669# metacharacters that are still active within double-quoted strings.
5670Xsed='sed -e s/^X//'
5671sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5672
5673# Same as above, but do not quote variable references.
5674double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5675
5676# Sed substitution to delay expansion of an escaped shell variable in a
5677# double_quote_subst'ed string.
5678delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5679
5680# Sed substitution to avoid accidental globbing in evaled expressions
5681no_glob_subst='s/\*/\\\*/g'
5682
5683# Constants:
5684rm="rm -f"
5685
5686# Global variables:
5687default_ofile=mklib
5688can_build_shared=yes
5689
5690# All known linkers require a `.a' archive for static linking (except M$VC,
5691# which needs '.lib').
5692libext=a
5693ltmain="$ac_aux_dir/ltmain.sh"
5694ofile="$default_ofile"
5695with_gnu_ld="$lt_cv_prog_gnu_ld"
5696
5697if test -n "$ac_tool_prefix"; then
5698  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5699set dummy ${ac_tool_prefix}ar; ac_word=$2
5700echo "$as_me:$LINENO: checking for $ac_word" >&5
5701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5702if test "${ac_cv_prog_AR+set}" = set; then
5703  echo $ECHO_N "(cached) $ECHO_C" >&6
5704else
5705  if test -n "$AR"; then
5706  ac_cv_prog_AR="$AR" # Let the user override the test.
5707else
5708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709for as_dir in $PATH
5710do
5711  IFS=$as_save_IFS
5712  test -z "$as_dir" && as_dir=.
5713  for ac_exec_ext in '' $ac_executable_extensions; do
5714  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5715    ac_cv_prog_AR="${ac_tool_prefix}ar"
5716    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5717    break 2
5718  fi
5719done
5720done
5721
5722fi
5723fi
5724AR=$ac_cv_prog_AR
5725if test -n "$AR"; then
5726  echo "$as_me:$LINENO: result: $AR" >&5
5727echo "${ECHO_T}$AR" >&6
5728else
5729  echo "$as_me:$LINENO: result: no" >&5
5730echo "${ECHO_T}no" >&6
5731fi
5732
5733fi
5734if test -z "$ac_cv_prog_AR"; then
5735  ac_ct_AR=$AR
5736  # Extract the first word of "ar", so it can be a program name with args.
5737set dummy ar; ac_word=$2
5738echo "$as_me:$LINENO: checking for $ac_word" >&5
5739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5740if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5741  echo $ECHO_N "(cached) $ECHO_C" >&6
5742else
5743  if test -n "$ac_ct_AR"; then
5744  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5745else
5746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747for as_dir in $PATH
5748do
5749  IFS=$as_save_IFS
5750  test -z "$as_dir" && as_dir=.
5751  for ac_exec_ext in '' $ac_executable_extensions; do
5752  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5753    ac_cv_prog_ac_ct_AR="ar"
5754    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5755    break 2
5756  fi
5757done
5758done
5759
5760  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5761fi
5762fi
5763ac_ct_AR=$ac_cv_prog_ac_ct_AR
5764if test -n "$ac_ct_AR"; then
5765  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5766echo "${ECHO_T}$ac_ct_AR" >&6
5767else
5768  echo "$as_me:$LINENO: result: no" >&5
5769echo "${ECHO_T}no" >&6
5770fi
5771
5772  AR=$ac_ct_AR
5773else
5774  AR="$ac_cv_prog_AR"
5775fi
5776
5777if test -n "$ac_tool_prefix"; then
5778  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5779set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5780echo "$as_me:$LINENO: checking for $ac_word" >&5
5781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5782if test "${ac_cv_prog_RANLIB+set}" = set; then
5783  echo $ECHO_N "(cached) $ECHO_C" >&6
5784else
5785  if test -n "$RANLIB"; then
5786  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5787else
5788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789for as_dir in $PATH
5790do
5791  IFS=$as_save_IFS
5792  test -z "$as_dir" && as_dir=.
5793  for ac_exec_ext in '' $ac_executable_extensions; do
5794  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5796    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5797    break 2
5798  fi
5799done
5800done
5801
5802fi
5803fi
5804RANLIB=$ac_cv_prog_RANLIB
5805if test -n "$RANLIB"; then
5806  echo "$as_me:$LINENO: result: $RANLIB" >&5
5807echo "${ECHO_T}$RANLIB" >&6
5808else
5809  echo "$as_me:$LINENO: result: no" >&5
5810echo "${ECHO_T}no" >&6
5811fi
5812
5813fi
5814if test -z "$ac_cv_prog_RANLIB"; then
5815  ac_ct_RANLIB=$RANLIB
5816  # Extract the first word of "ranlib", so it can be a program name with args.
5817set dummy ranlib; ac_word=$2
5818echo "$as_me:$LINENO: checking for $ac_word" >&5
5819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5820if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5821  echo $ECHO_N "(cached) $ECHO_C" >&6
5822else
5823  if test -n "$ac_ct_RANLIB"; then
5824  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5825else
5826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827for as_dir in $PATH
5828do
5829  IFS=$as_save_IFS
5830  test -z "$as_dir" && as_dir=.
5831  for ac_exec_ext in '' $ac_executable_extensions; do
5832  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5833    ac_cv_prog_ac_ct_RANLIB="ranlib"
5834    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5835    break 2
5836  fi
5837done
5838done
5839
5840  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5841fi
5842fi
5843ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5844if test -n "$ac_ct_RANLIB"; then
5845  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5846echo "${ECHO_T}$ac_ct_RANLIB" >&6
5847else
5848  echo "$as_me:$LINENO: result: no" >&5
5849echo "${ECHO_T}no" >&6
5850fi
5851
5852  RANLIB=$ac_ct_RANLIB
5853else
5854  RANLIB="$ac_cv_prog_RANLIB"
5855fi
5856
5857if test -n "$ac_tool_prefix"; then
5858  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5859set dummy ${ac_tool_prefix}strip; ac_word=$2
5860echo "$as_me:$LINENO: checking for $ac_word" >&5
5861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5862if test "${ac_cv_prog_STRIP+set}" = set; then
5863  echo $ECHO_N "(cached) $ECHO_C" >&6
5864else
5865  if test -n "$STRIP"; then
5866  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5867else
5868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869for as_dir in $PATH
5870do
5871  IFS=$as_save_IFS
5872  test -z "$as_dir" && as_dir=.
5873  for ac_exec_ext in '' $ac_executable_extensions; do
5874  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5875    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5876    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5877    break 2
5878  fi
5879done
5880done
5881
5882fi
5883fi
5884STRIP=$ac_cv_prog_STRIP
5885if test -n "$STRIP"; then
5886  echo "$as_me:$LINENO: result: $STRIP" >&5
5887echo "${ECHO_T}$STRIP" >&6
5888else
5889  echo "$as_me:$LINENO: result: no" >&5
5890echo "${ECHO_T}no" >&6
5891fi
5892
5893fi
5894if test -z "$ac_cv_prog_STRIP"; then
5895  ac_ct_STRIP=$STRIP
5896  # Extract the first word of "strip", so it can be a program name with args.
5897set dummy strip; ac_word=$2
5898echo "$as_me:$LINENO: checking for $ac_word" >&5
5899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5900if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5901  echo $ECHO_N "(cached) $ECHO_C" >&6
5902else
5903  if test -n "$ac_ct_STRIP"; then
5904  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5905else
5906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907for as_dir in $PATH
5908do
5909  IFS=$as_save_IFS
5910  test -z "$as_dir" && as_dir=.
5911  for ac_exec_ext in '' $ac_executable_extensions; do
5912  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5913    ac_cv_prog_ac_ct_STRIP="strip"
5914    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5915    break 2
5916  fi
5917done
5918done
5919
5920  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5921fi
5922fi
5923ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5924if test -n "$ac_ct_STRIP"; then
5925  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5926echo "${ECHO_T}$ac_ct_STRIP" >&6
5927else
5928  echo "$as_me:$LINENO: result: no" >&5
5929echo "${ECHO_T}no" >&6
5930fi
5931
5932  STRIP=$ac_ct_STRIP
5933else
5934  STRIP="$ac_cv_prog_STRIP"
5935fi
5936
5937
5938old_CC="$CC"
5939old_CFLAGS="$CFLAGS"
5940
5941# Set sane defaults for various variables
5942test -z "$AR" && AR=ar
5943test -z "$AR_FLAGS" && AR_FLAGS=cru
5944test -z "$AS" && AS=as
5945test -z "$CC" && CC=cc
5946test -z "$LTCC" && LTCC=$CC
5947test -z "$DLLTOOL" && DLLTOOL=dlltool
5948test -z "$LD" && LD=ld
5949test -z "$LN_S" && LN_S="ln -s"
5950test -z "$MAGIC_CMD" && MAGIC_CMD=file
5951test -z "$NM" && NM=nm
5952test -z "$SED" && SED=sed
5953test -z "$OBJDUMP" && OBJDUMP=objdump
5954test -z "$RANLIB" && RANLIB=:
5955test -z "$STRIP" && STRIP=:
5956test -z "$ac_objext" && ac_objext=o
5957
5958# Determine commands to create old-style static archives.
5959old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5960old_postinstall_cmds='chmod 644 $oldlib'
5961old_postuninstall_cmds=
5962
5963if test -n "$RANLIB"; then
5964  case $host_os in
5965  openbsd*)
5966    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5967    ;;
5968  *)
5969    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5970    ;;
5971  esac
5972  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5973fi
5974
5975# Only perform the check for file, if the check method requires it
5976case $deplibs_check_method in
5977file_magic*)
5978  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5979    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5980echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5981if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5982  echo $ECHO_N "(cached) $ECHO_C" >&6
5983else
5984  case $MAGIC_CMD in
5985[\\/*] |  ?:[\\/]*)
5986  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5987  ;;
5988*)
5989  lt_save_MAGIC_CMD="$MAGIC_CMD"
5990  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5991  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5992  for ac_dir in $ac_dummy; do
5993    IFS="$lt_save_ifs"
5994    test -z "$ac_dir" && ac_dir=.
5995    if test -f $ac_dir/${ac_tool_prefix}file; then
5996      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5997      if test -n "$file_magic_test_file"; then
5998	case $deplibs_check_method in
5999	"file_magic "*)
6000	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6001	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6002	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6003	    $EGREP "$file_magic_regex" > /dev/null; then
6004	    :
6005	  else
6006	    cat <<EOF 1>&2
6007
6008*** Warning: the command libtool uses to detect shared libraries,
6009*** $file_magic_cmd, produces output that libtool cannot recognize.
6010*** The result is that libtool may fail to recognize shared libraries
6011*** as such.  This will affect the creation of libtool libraries that
6012*** depend on shared libraries, but programs linked with such libtool
6013*** libraries will work regardless of this problem.  Nevertheless, you
6014*** may want to report the problem to your system manager and/or to
6015*** bug-libtool@gnu.org
6016
6017EOF
6018	  fi ;;
6019	esac
6020      fi
6021      break
6022    fi
6023  done
6024  IFS="$lt_save_ifs"
6025  MAGIC_CMD="$lt_save_MAGIC_CMD"
6026  ;;
6027esac
6028fi
6029
6030MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6031if test -n "$MAGIC_CMD"; then
6032  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6033echo "${ECHO_T}$MAGIC_CMD" >&6
6034else
6035  echo "$as_me:$LINENO: result: no" >&5
6036echo "${ECHO_T}no" >&6
6037fi
6038
6039if test -z "$lt_cv_path_MAGIC_CMD"; then
6040  if test -n "$ac_tool_prefix"; then
6041    echo "$as_me:$LINENO: checking for file" >&5
6042echo $ECHO_N "checking for file... $ECHO_C" >&6
6043if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6044  echo $ECHO_N "(cached) $ECHO_C" >&6
6045else
6046  case $MAGIC_CMD in
6047[\\/*] |  ?:[\\/]*)
6048  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6049  ;;
6050*)
6051  lt_save_MAGIC_CMD="$MAGIC_CMD"
6052  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6053  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6054  for ac_dir in $ac_dummy; do
6055    IFS="$lt_save_ifs"
6056    test -z "$ac_dir" && ac_dir=.
6057    if test -f $ac_dir/file; then
6058      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6059      if test -n "$file_magic_test_file"; then
6060	case $deplibs_check_method in
6061	"file_magic "*)
6062	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6063	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6064	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6065	    $EGREP "$file_magic_regex" > /dev/null; then
6066	    :
6067	  else
6068	    cat <<EOF 1>&2
6069
6070*** Warning: the command libtool uses to detect shared libraries,
6071*** $file_magic_cmd, produces output that libtool cannot recognize.
6072*** The result is that libtool may fail to recognize shared libraries
6073*** as such.  This will affect the creation of libtool libraries that
6074*** depend on shared libraries, but programs linked with such libtool
6075*** libraries will work regardless of this problem.  Nevertheless, you
6076*** may want to report the problem to your system manager and/or to
6077*** bug-libtool@gnu.org
6078
6079EOF
6080	  fi ;;
6081	esac
6082      fi
6083      break
6084    fi
6085  done
6086  IFS="$lt_save_ifs"
6087  MAGIC_CMD="$lt_save_MAGIC_CMD"
6088  ;;
6089esac
6090fi
6091
6092MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6093if test -n "$MAGIC_CMD"; then
6094  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6095echo "${ECHO_T}$MAGIC_CMD" >&6
6096else
6097  echo "$as_me:$LINENO: result: no" >&5
6098echo "${ECHO_T}no" >&6
6099fi
6100
6101  else
6102    MAGIC_CMD=:
6103  fi
6104fi
6105
6106  fi
6107  ;;
6108esac
6109
6110enable_dlopen=no
6111enable_win32_dll=no
6112
6113# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6114if test "${enable_libtool_lock+set}" = set; then
6115  enableval="$enable_libtool_lock"
6116
6117fi;
6118test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6119
6120
6121# Check whether --with-pic or --without-pic was given.
6122if test "${with_pic+set}" = set; then
6123  withval="$with_pic"
6124  pic_mode="$withval"
6125else
6126  pic_mode=default
6127fi;
6128test -z "$pic_mode" && pic_mode=default
6129
6130# Use C for the default configuration in the libtool script
6131tagname=
6132lt_save_CC="$CC"
6133ac_ext=c
6134ac_cpp='$CPP $CPPFLAGS'
6135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6137ac_compiler_gnu=$ac_cv_c_compiler_gnu
6138
6139
6140# Source file extension for C test sources.
6141ac_ext=c
6142
6143# Object file extension for compiled C test sources.
6144objext=o
6145objext=$objext
6146
6147# Code to be used in simple compile tests
6148lt_simple_compile_test_code="int some_variable = 0;\n"
6149
6150# Code to be used in simple link tests
6151lt_simple_link_test_code='int main(){return(0);}\n'
6152
6153
6154# If no C compiler was specified, use CC.
6155LTCC=${LTCC-"$CC"}
6156
6157# Allow CC to be a program name with arguments.
6158compiler=$CC
6159
6160
6161#
6162# Check for any special shared library compilation flags.
6163#
6164lt_prog_cc_shlib=
6165if test "$GCC" = no; then
6166  case $host_os in
6167  sco3.2v5*)
6168    lt_prog_cc_shlib='-belf'
6169    ;;
6170  esac
6171fi
6172if test -n "$lt_prog_cc_shlib"; then
6173  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6174echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6175  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6176  else
6177    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6178echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6179    lt_cv_prog_cc_can_build_shared=no
6180  fi
6181fi
6182
6183
6184#
6185# Check to make sure the static flag actually works.
6186#
6187echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6188echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6189if test "${lt_prog_compiler_static_works+set}" = set; then
6190  echo $ECHO_N "(cached) $ECHO_C" >&6
6191else
6192  lt_prog_compiler_static_works=no
6193   save_LDFLAGS="$LDFLAGS"
6194   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6195   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6196   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6197     # The compiler can only warn and ignore the option if not recognized
6198     # So say no if there are warnings
6199     if test -s conftest.err; then
6200       # Append any errors to the config.log.
6201       cat conftest.err 1>&5
6202     else
6203       lt_prog_compiler_static_works=yes
6204     fi
6205   fi
6206   $rm conftest*
6207   LDFLAGS="$save_LDFLAGS"
6208
6209fi
6210echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6211echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6212
6213if test x"$lt_prog_compiler_static_works" = xyes; then
6214    :
6215else
6216    lt_prog_compiler_static=
6217fi
6218
6219
6220
6221## CAVEAT EMPTOR:
6222## There is no encapsulation within the following macros, do not change
6223## the running order or otherwise move them around unless you know exactly
6224## what you are doing...
6225
6226lt_prog_compiler_no_builtin_flag=
6227
6228if test "$GCC" = yes; then
6229  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6230
6231  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6232echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6233if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6234  echo $ECHO_N "(cached) $ECHO_C" >&6
6235else
6236  lt_cv_prog_compiler_rtti_exceptions=no
6237  ac_outfile=conftest.$ac_objext
6238   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6239   lt_compiler_flag="-fno-rtti -fno-exceptions"
6240   # Insert the option either (1) after the last *FLAGS variable, or
6241   # (2) before a word containing "conftest.", or (3) at the end.
6242   # Note that $ac_compile itself does not contain backslashes and begins
6243   # with a dollar sign (not a hyphen), so the echo should work correctly.
6244   # The option is referenced via a variable to avoid confusing sed.
6245   lt_compile=`echo "$ac_compile" | $SED \
6246   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6247   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6248   -e 's:$: $lt_compiler_flag:'`
6249   (eval echo "\"\$as_me:6249: $lt_compile\"" >&5)
6250   (eval "$lt_compile" 2>conftest.err)
6251   ac_status=$?
6252   cat conftest.err >&5
6253   echo "$as_me:6253: \$? = $ac_status" >&5
6254   if (exit $ac_status) && test -s "$ac_outfile"; then
6255     # The compiler can only warn and ignore the option if not recognized
6256     # So say no if there are warnings
6257     if test ! -s conftest.err; then
6258       lt_cv_prog_compiler_rtti_exceptions=yes
6259     fi
6260   fi
6261   $rm conftest*
6262
6263fi
6264echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6265echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6266
6267if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6268    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6269else
6270    :
6271fi
6272
6273fi
6274
6275lt_prog_compiler_wl=
6276lt_prog_compiler_pic=
6277lt_prog_compiler_static=
6278
6279echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6280echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6281
6282  if test "$GCC" = yes; then
6283    lt_prog_compiler_wl='-Wl,'
6284    lt_prog_compiler_static='-static'
6285
6286    case $host_os in
6287      aix*)
6288      # All AIX code is PIC.
6289      if test "$host_cpu" = ia64; then
6290	# AIX 5 now supports IA64 processor
6291	lt_prog_compiler_static='-Bstatic'
6292      fi
6293      ;;
6294
6295    amigaos*)
6296      # FIXME: we need at least 68020 code to build shared libraries, but
6297      # adding the `-m68020' flag to GCC prevents building anything better,
6298      # like `-m68040'.
6299      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6300      ;;
6301
6302    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6303      # PIC is the default for these OSes.
6304      ;;
6305
6306    mingw* | pw32* | os2*)
6307      # This hack is so that the source file can tell whether it is being
6308      # built for inclusion in a dll (and should export symbols for example).
6309      lt_prog_compiler_pic='-DDLL_EXPORT'
6310      ;;
6311
6312    darwin* | rhapsody*)
6313      # PIC is the default on this platform
6314      # Common symbols not allowed in MH_DYLIB files
6315      lt_prog_compiler_pic='-fno-common'
6316      ;;
6317
6318    msdosdjgpp*)
6319      # Just because we use GCC doesn't mean we suddenly get shared libraries
6320      # on systems that don't support them.
6321      lt_prog_compiler_can_build_shared=no
6322      enable_shared=no
6323      ;;
6324
6325    sysv4*MP*)
6326      if test -d /usr/nec; then
6327	lt_prog_compiler_pic=-Kconform_pic
6328      fi
6329      ;;
6330
6331    hpux*)
6332      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6333      # not for PA HP-UX.
6334      case "$host_cpu" in
6335      hppa*64*|ia64*)
6336	# +Z the default
6337	;;
6338      *)
6339	lt_prog_compiler_pic='-fPIC'
6340	;;
6341      esac
6342      ;;
6343
6344    *)
6345      lt_prog_compiler_pic='-fPIC'
6346      ;;
6347    esac
6348  else
6349    # PORTME Check for flag to pass linker flags through the system compiler.
6350    case $host_os in
6351    aix*)
6352      lt_prog_compiler_wl='-Wl,'
6353      if test "$host_cpu" = ia64; then
6354	# AIX 5 now supports IA64 processor
6355	lt_prog_compiler_static='-Bstatic'
6356      else
6357	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6358      fi
6359      ;;
6360
6361    mingw* | pw32* | os2*)
6362      # This hack is so that the source file can tell whether it is being
6363      # built for inclusion in a dll (and should export symbols for example).
6364      lt_prog_compiler_pic='-DDLL_EXPORT'
6365      ;;
6366
6367    hpux9* | hpux10* | hpux11*)
6368      lt_prog_compiler_wl='-Wl,'
6369      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6370      # not for PA HP-UX.
6371      case "$host_cpu" in
6372      hppa*64*|ia64*)
6373	# +Z the default
6374	;;
6375      *)
6376	lt_prog_compiler_pic='+Z'
6377	;;
6378      esac
6379      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6380      lt_prog_compiler_static='${wl}-a ${wl}archive'
6381      ;;
6382
6383    irix5* | irix6* | nonstopux*)
6384      lt_prog_compiler_wl='-Wl,'
6385      # PIC (with -KPIC) is the default.
6386      lt_prog_compiler_static='-non_shared'
6387      ;;
6388
6389    newsos6)
6390      lt_prog_compiler_pic='-KPIC'
6391      lt_prog_compiler_static='-Bstatic'
6392      ;;
6393
6394    linux*)
6395      case $CC in
6396      icc|ecc)
6397	lt_prog_compiler_wl='-Wl,'
6398	lt_prog_compiler_pic='-KPIC'
6399	lt_prog_compiler_static='-static'
6400        ;;
6401      ccc)
6402        lt_prog_compiler_wl='-Wl,'
6403        # All Alpha code is PIC.
6404        lt_prog_compiler_static='-non_shared'
6405        ;;
6406      esac
6407      ;;
6408
6409    osf3* | osf4* | osf5*)
6410      lt_prog_compiler_wl='-Wl,'
6411      # All OSF/1 code is PIC.
6412      lt_prog_compiler_static='-non_shared'
6413      ;;
6414
6415    sco3.2v5*)
6416      lt_prog_compiler_pic='-Kpic'
6417      lt_prog_compiler_static='-dn'
6418      ;;
6419
6420    solaris*)
6421      lt_prog_compiler_wl='-Wl,'
6422      lt_prog_compiler_pic='-KPIC'
6423      lt_prog_compiler_static='-Bstatic'
6424      ;;
6425
6426    sunos4*)
6427      lt_prog_compiler_wl='-Qoption ld '
6428      lt_prog_compiler_pic='-PIC'
6429      lt_prog_compiler_static='-Bstatic'
6430      ;;
6431
6432    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6433      lt_prog_compiler_wl='-Wl,'
6434      lt_prog_compiler_pic='-KPIC'
6435      lt_prog_compiler_static='-Bstatic'
6436      ;;
6437
6438    sysv4*MP*)
6439      if test -d /usr/nec ;then
6440	lt_prog_compiler_pic='-Kconform_pic'
6441	lt_prog_compiler_static='-Bstatic'
6442      fi
6443      ;;
6444
6445    uts4*)
6446      lt_prog_compiler_pic='-pic'
6447      lt_prog_compiler_static='-Bstatic'
6448      ;;
6449
6450    *)
6451      lt_prog_compiler_can_build_shared=no
6452      ;;
6453    esac
6454  fi
6455
6456echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6457echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6458
6459#
6460# Check to make sure the PIC flag actually works.
6461#
6462if test -n "$lt_prog_compiler_pic"; then
6463  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6464echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6465if test "${lt_prog_compiler_pic_works+set}" = set; then
6466  echo $ECHO_N "(cached) $ECHO_C" >&6
6467else
6468  lt_prog_compiler_pic_works=no
6469  ac_outfile=conftest.$ac_objext
6470   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6471   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6472   # Insert the option either (1) after the last *FLAGS variable, or
6473   # (2) before a word containing "conftest.", or (3) at the end.
6474   # Note that $ac_compile itself does not contain backslashes and begins
6475   # with a dollar sign (not a hyphen), so the echo should work correctly.
6476   # The option is referenced via a variable to avoid confusing sed.
6477   lt_compile=`echo "$ac_compile" | $SED \
6478   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6479   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6480   -e 's:$: $lt_compiler_flag:'`
6481   (eval echo "\"\$as_me:6481: $lt_compile\"" >&5)
6482   (eval "$lt_compile" 2>conftest.err)
6483   ac_status=$?
6484   cat conftest.err >&5
6485   echo "$as_me:6485: \$? = $ac_status" >&5
6486   if (exit $ac_status) && test -s "$ac_outfile"; then
6487     # The compiler can only warn and ignore the option if not recognized
6488     # So say no if there are warnings
6489     if test ! -s conftest.err; then
6490       lt_prog_compiler_pic_works=yes
6491     fi
6492   fi
6493   $rm conftest*
6494
6495fi
6496echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6497echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6498
6499if test x"$lt_prog_compiler_pic_works" = xyes; then
6500    case $lt_prog_compiler_pic in
6501     "" | " "*) ;;
6502     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6503     esac
6504else
6505    lt_prog_compiler_pic=
6506     lt_prog_compiler_can_build_shared=no
6507fi
6508
6509fi
6510case "$host_os" in
6511  # For platforms which do not support PIC, -DPIC is meaningless:
6512  *djgpp*)
6513    lt_prog_compiler_pic=
6514    ;;
6515  *)
6516    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6517    ;;
6518esac
6519
6520echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6521echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6522if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6523  echo $ECHO_N "(cached) $ECHO_C" >&6
6524else
6525  lt_cv_prog_compiler_c_o=no
6526   $rm -r conftest 2>/dev/null
6527   mkdir conftest
6528   cd conftest
6529   mkdir out
6530   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6531
6532   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6533   # that will create temporary files in the current directory regardless of
6534   # the output directory.  Thus, making CWD read-only will cause this test
6535   # to fail, enabling locking or at least warning the user not to do parallel
6536   # builds.
6537   chmod -w .
6538
6539   lt_compiler_flag="-o out/conftest2.$ac_objext"
6540   # Insert the option either (1) after the last *FLAGS variable, or
6541   # (2) before a word containing "conftest.", or (3) at the end.
6542   # Note that $ac_compile itself does not contain backslashes and begins
6543   # with a dollar sign (not a hyphen), so the echo should work correctly.
6544   lt_compile=`echo "$ac_compile" | $SED \
6545   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6546   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6547   -e 's:$: $lt_compiler_flag:'`
6548   (eval echo "\"\$as_me:6548: $lt_compile\"" >&5)
6549   (eval "$lt_compile" 2>out/conftest.err)
6550   ac_status=$?
6551   cat out/conftest.err >&5
6552   echo "$as_me:6552: \$? = $ac_status" >&5
6553   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6554   then
6555     # The compiler can only warn and ignore the option if not recognized
6556     # So say no if there are warnings
6557     if test ! -s out/conftest.err; then
6558       lt_cv_prog_compiler_c_o=yes
6559     fi
6560   fi
6561   chmod u+w .
6562   $rm conftest* out/*
6563   rmdir out
6564   cd ..
6565   rmdir conftest
6566   $rm conftest*
6567
6568fi
6569echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6570echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6571
6572
6573hard_links="nottested"
6574if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6575  # do not overwrite the value of need_locks provided by the user
6576  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6577echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6578  hard_links=yes
6579  $rm conftest*
6580  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6581  touch conftest.a
6582  ln conftest.a conftest.b 2>&5 || hard_links=no
6583  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6584  echo "$as_me:$LINENO: result: $hard_links" >&5
6585echo "${ECHO_T}$hard_links" >&6
6586  if test "$hard_links" = no; then
6587    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6588echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6589    need_locks=warn
6590  fi
6591else
6592  need_locks=no
6593fi
6594
6595echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6596echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6597
6598  runpath_var=
6599  allow_undefined_flag=
6600  enable_shared_with_static_runtimes=no
6601  archive_cmds=
6602  archive_expsym_cmds=
6603  old_archive_From_new_cmds=
6604  old_archive_from_expsyms_cmds=
6605  export_dynamic_flag_spec=
6606  whole_archive_flag_spec=
6607  thread_safe_flag_spec=
6608  hardcode_libdir_flag_spec=
6609  hardcode_libdir_flag_spec_ld=
6610  hardcode_libdir_separator=
6611  hardcode_direct=no
6612  hardcode_minus_L=no
6613  hardcode_shlibpath_var=unsupported
6614  link_all_deplibs=unknown
6615  hardcode_automatic=no
6616  module_cmds=
6617  module_expsym_cmds=
6618  always_export_symbols=no
6619  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6620  # include_expsyms should be a list of space-separated symbols to be *always*
6621  # included in the symbol list
6622  include_expsyms=
6623  # exclude_expsyms can be an extended regexp of symbols to exclude
6624  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6625  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6626  # as well as any symbol that contains `d'.
6627  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6628  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6629  # platforms (ab)use it in PIC code, but their linkers get confused if
6630  # the symbol is explicitly referenced.  Since portable code cannot
6631  # rely on this symbol name, it's probably fine to never include it in
6632  # preloaded symbol tables.
6633  extract_expsyms_cmds=
6634
6635  case $host_os in
6636  cygwin* | mingw* | pw32*)
6637    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6638    # When not using gcc, we currently assume that we are using
6639    # Microsoft Visual C++.
6640    if test "$GCC" != yes; then
6641      with_gnu_ld=no
6642    fi
6643    ;;
6644  openbsd*)
6645    with_gnu_ld=no
6646    ;;
6647  esac
6648
6649  ld_shlibs=yes
6650  if test "$with_gnu_ld" = yes; then
6651    # If archive_cmds runs LD, not CC, wlarc should be empty
6652    wlarc='${wl}'
6653
6654    # See if GNU ld supports shared libraries.
6655    case $host_os in
6656    aix3* | aix4* | aix5*)
6657      # On AIX/PPC, the GNU linker is very broken
6658      if test "$host_cpu" != ia64; then
6659	ld_shlibs=no
6660	cat <<EOF 1>&2
6661
6662*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6663*** to be unable to reliably create shared libraries on AIX.
6664*** Therefore, libtool is disabling shared libraries support.  If you
6665*** really care for shared libraries, you may want to modify your PATH
6666*** so that a non-GNU linker is found, and then restart.
6667
6668EOF
6669      fi
6670      ;;
6671
6672    amigaos*)
6673      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)'
6674      hardcode_libdir_flag_spec='-L$libdir'
6675      hardcode_minus_L=yes
6676
6677      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6678      # that the semantics of dynamic libraries on AmigaOS, at least up
6679      # to version 4, is to share data among multiple programs linked
6680      # with the same dynamic library.  Since this doesn't match the
6681      # behavior of shared libraries on other platforms, we can't use
6682      # them.
6683      ld_shlibs=no
6684      ;;
6685
6686    beos*)
6687      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6688	allow_undefined_flag=unsupported
6689	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6690	# support --undefined.  This deserves some investigation.  FIXME
6691	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6692      else
6693	ld_shlibs=no
6694      fi
6695      ;;
6696
6697    cygwin* | mingw* | pw32*)
6698      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6699      # as there is no search path for DLLs.
6700      hardcode_libdir_flag_spec='-L$libdir'
6701      allow_undefined_flag=unsupported
6702      always_export_symbols=no
6703      enable_shared_with_static_runtimes=yes
6704      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6705
6706      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6707        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6708	# If the export-symbols file already is a .def file (1st line
6709	# is EXPORTS), use it as is; otherwise, prepend...
6710	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6711	  cp $export_symbols $output_objdir/$soname.def;
6712	else
6713	  echo EXPORTS > $output_objdir/$soname.def;
6714	  cat $export_symbols >> $output_objdir/$soname.def;
6715	fi~
6716	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6717      else
6718	ld_shlibs=no
6719      fi
6720      ;;
6721
6722    netbsd*)
6723      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6724	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6725	wlarc=
6726      else
6727	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6728	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6729      fi
6730      ;;
6731
6732    solaris* | sysv5*)
6733      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6734	ld_shlibs=no
6735	cat <<EOF 1>&2
6736
6737*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6738*** create shared libraries on Solaris systems.  Therefore, libtool
6739*** is disabling shared libraries support.  We urge you to upgrade GNU
6740*** binutils to release 2.9.1 or newer.  Another option is to modify
6741*** your PATH or compiler configuration so that the native linker is
6742*** used, and then restart.
6743
6744EOF
6745      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6746	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6747	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6748      else
6749	ld_shlibs=no
6750      fi
6751      ;;
6752
6753    sunos4*)
6754      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6755      wlarc=
6756      hardcode_direct=yes
6757      hardcode_shlibpath_var=no
6758      ;;
6759
6760    *)
6761      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6762	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6763	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6764      else
6765	ld_shlibs=no
6766      fi
6767      ;;
6768    esac
6769
6770    if test "$ld_shlibs" = yes; then
6771      runpath_var=LD_RUN_PATH
6772      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6773      export_dynamic_flag_spec='${wl}--export-dynamic'
6774      # ancient GNU ld didn't support --whole-archive et. al.
6775      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6776 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6777      else
6778  	whole_archive_flag_spec=
6779      fi
6780    fi
6781  else
6782    # PORTME fill in a description of your system's linker (not GNU ld)
6783    case $host_os in
6784    aix3*)
6785      allow_undefined_flag=unsupported
6786      always_export_symbols=yes
6787      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'
6788      # Note: this linker hardcodes the directories in LIBPATH if there
6789      # are no directories specified by -L.
6790      hardcode_minus_L=yes
6791      if test "$GCC" = yes && test -z "$link_static_flag"; then
6792	# Neither direct hardcoding nor static linking is supported with a
6793	# broken collect2.
6794	hardcode_direct=unsupported
6795      fi
6796      ;;
6797
6798    aix4* | aix5*)
6799      if test "$host_cpu" = ia64; then
6800	# On IA64, the linker does run time linking by default, so we don't
6801	# have to do anything special.
6802	aix_use_runtimelinking=no
6803	exp_sym_flag='-Bexport'
6804	no_entry_flag=""
6805      else
6806	# If we're using GNU nm, then we don't want the "-C" option.
6807	# -C means demangle to AIX nm, but means don't demangle with GNU nm
6808	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6809	  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'
6810	else
6811	  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'
6812	fi
6813	aix_use_runtimelinking=no
6814
6815	# Test if we are trying to use run time linking or normal
6816	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6817	# need to do runtime linking.
6818	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6819	  for ld_flag in $LDFLAGS; do
6820  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6821  	    aix_use_runtimelinking=yes
6822  	    break
6823  	  fi
6824	  done
6825	esac
6826
6827	exp_sym_flag='-bexport'
6828	no_entry_flag='-bnoentry'
6829      fi
6830
6831      # When large executables or shared objects are built, AIX ld can
6832      # have problems creating the table of contents.  If linking a library
6833      # or program results in "error TOC overflow" add -mminimal-toc to
6834      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6835      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6836
6837      archive_cmds=''
6838      hardcode_direct=yes
6839      hardcode_libdir_separator=':'
6840      link_all_deplibs=yes
6841
6842      if test "$GCC" = yes; then
6843	case $host_os in aix4.012|aix4.012.*)
6844	# We only want to do this on AIX 4.2 and lower, the check
6845	# below for broken collect2 doesn't work under 4.3+
6846	  collect2name=`${CC} -print-prog-name=collect2`
6847	  if test -f "$collect2name" && \
6848  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
6849	  then
6850  	  # We have reworked collect2
6851  	  hardcode_direct=yes
6852	  else
6853  	  # We have old collect2
6854  	  hardcode_direct=unsupported
6855  	  # It fails to find uninstalled libraries when the uninstalled
6856  	  # path is not listed in the libpath.  Setting hardcode_minus_L
6857  	  # to unsupported forces relinking
6858  	  hardcode_minus_L=yes
6859  	  hardcode_libdir_flag_spec='-L$libdir'
6860  	  hardcode_libdir_separator=
6861	  fi
6862	esac
6863	shared_flag='-shared'
6864      else
6865	# not using gcc
6866	if test "$host_cpu" = ia64; then
6867  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6868  	# chokes on -Wl,-G. The following line is correct:
6869	  shared_flag='-G'
6870	else
6871  	if test "$aix_use_runtimelinking" = yes; then
6872	    shared_flag='${wl}-G'
6873	  else
6874	    shared_flag='${wl}-bM:SRE'
6875  	fi
6876	fi
6877      fi
6878
6879      # It seems that -bexpall does not export symbols beginning with
6880      # underscore (_), so it is better to generate a list of symbols to export.
6881      always_export_symbols=yes
6882      if test "$aix_use_runtimelinking" = yes; then
6883	# Warning - without using the other runtime loading flags (-brtl),
6884	# -berok will link without error, but may produce a broken library.
6885	allow_undefined_flag='-berok'
6886       # Determine the default libpath from the value encoded in an empty executable.
6887       cat >conftest.$ac_ext <<_ACEOF
6888#line $LINENO "configure"
6889/* confdefs.h.  */
6890_ACEOF
6891cat confdefs.h >>conftest.$ac_ext
6892cat >>conftest.$ac_ext <<_ACEOF
6893/* end confdefs.h.  */
6894
6895int
6896main ()
6897{
6898
6899  ;
6900  return 0;
6901}
6902_ACEOF
6903rm -f conftest.$ac_objext conftest$ac_exeext
6904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6905  (eval $ac_link) 2>&5
6906  ac_status=$?
6907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908  (exit $ac_status); } &&
6909         { ac_try='test -s conftest$ac_exeext'
6910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911  (eval $ac_try) 2>&5
6912  ac_status=$?
6913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914  (exit $ac_status); }; }; then
6915
6916aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6917}'`
6918# Check for a 64-bit object if we didn't find anything.
6919if 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; }
6920}'`; fi
6921else
6922  echo "$as_me: failed program was:" >&5
6923sed 's/^/| /' conftest.$ac_ext >&5
6924
6925fi
6926rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6927if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6928
6929       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6930	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"
6931       else
6932	if test "$host_cpu" = ia64; then
6933	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6934	  allow_undefined_flag="-z nodefs"
6935	  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"
6936	else
6937	 # Determine the default libpath from the value encoded in an empty executable.
6938	 cat >conftest.$ac_ext <<_ACEOF
6939#line $LINENO "configure"
6940/* confdefs.h.  */
6941_ACEOF
6942cat confdefs.h >>conftest.$ac_ext
6943cat >>conftest.$ac_ext <<_ACEOF
6944/* end confdefs.h.  */
6945
6946int
6947main ()
6948{
6949
6950  ;
6951  return 0;
6952}
6953_ACEOF
6954rm -f conftest.$ac_objext conftest$ac_exeext
6955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6956  (eval $ac_link) 2>&5
6957  ac_status=$?
6958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959  (exit $ac_status); } &&
6960         { ac_try='test -s conftest$ac_exeext'
6961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962  (eval $ac_try) 2>&5
6963  ac_status=$?
6964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965  (exit $ac_status); }; }; then
6966
6967aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6968}'`
6969# Check for a 64-bit object if we didn't find anything.
6970if 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; }
6971}'`; fi
6972else
6973  echo "$as_me: failed program was:" >&5
6974sed 's/^/| /' conftest.$ac_ext >&5
6975
6976fi
6977rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6978if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6979
6980	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6981	  # Warning - without using the other run time loading flags,
6982	  # -berok will link without error, but may produce a broken library.
6983	  no_undefined_flag=' ${wl}-bernotok'
6984	  allow_undefined_flag=' ${wl}-berok'
6985	  # -bexpall does not export symbols beginning with underscore (_)
6986	  always_export_symbols=yes
6987	  # Exported symbols can be pulled into shared objects from archives
6988	  whole_archive_flag_spec=' '
6989	  archive_cmds_need_lc=yes
6990	  # This is similar to how AIX traditionally builds it's shared libraries.
6991	  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'
6992	fi
6993      fi
6994      ;;
6995
6996    amigaos*)
6997      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)'
6998      hardcode_libdir_flag_spec='-L$libdir'
6999      hardcode_minus_L=yes
7000      # see comment about different semantics on the GNU ld section
7001      ld_shlibs=no
7002      ;;
7003
7004    bsdi4*)
7005      export_dynamic_flag_spec=-rdynamic
7006      ;;
7007
7008    cygwin* | mingw* | pw32*)
7009      # When not using gcc, we currently assume that we are using
7010      # Microsoft Visual C++.
7011      # hardcode_libdir_flag_spec is actually meaningless, as there is
7012      # no search path for DLLs.
7013      hardcode_libdir_flag_spec=' '
7014      allow_undefined_flag=unsupported
7015      # Tell ltmain to make .lib files, not .a files.
7016      libext=lib
7017      # Tell ltmain to make .dll files, not .so files.
7018      shrext=".dll"
7019      # FIXME: Setting linknames here is a bad hack.
7020      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7021      # The linker will automatically build a .lib file if we build a DLL.
7022      old_archive_From_new_cmds='true'
7023      # FIXME: Should let the user specify the lib program.
7024      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7025      fix_srcfile_path='`cygpath -w "$srcfile"`'
7026      enable_shared_with_static_runtimes=yes
7027      ;;
7028
7029    darwin* | rhapsody*)
7030    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7031      archive_cmds_need_lc=no
7032      case "$host_os" in
7033      rhapsody* | darwin1.[012])
7034	allow_undefined_flag='-undefined suppress'
7035	;;
7036      *) # Darwin 1.3 on
7037	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7038	;;
7039      esac
7040      # FIXME: Relying on posixy $() will cause problems for
7041      #        cross-compilation, but unfortunately the echo tests do not
7042      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7043      #	       `"' quotes if we put them in here... so don't!
7044    	lt_int_apple_cc_single_mod=no
7045    	output_verbose_link_cmd='echo'
7046    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7047    	  lt_int_apple_cc_single_mod=yes
7048    	fi
7049    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7050    	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7051    	else
7052        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'
7053      fi
7054      module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7055      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7056        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7057          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}'
7058        else
7059          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}'
7060        fi
7061          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}'
7062      hardcode_direct=no
7063      hardcode_automatic=yes
7064      hardcode_shlibpath_var=unsupported
7065      whole_archive_flag_spec='-all_load $convenience'
7066      link_all_deplibs=yes
7067    fi
7068      ;;
7069
7070    dgux*)
7071      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7072      hardcode_libdir_flag_spec='-L$libdir'
7073      hardcode_shlibpath_var=no
7074      ;;
7075
7076    freebsd1*)
7077      ld_shlibs=no
7078      ;;
7079
7080    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7081    # support.  Future versions do this automatically, but an explicit c++rt0.o
7082    # does not break anything, and helps significantly (at the cost of a little
7083    # extra space).
7084    freebsd2.2*)
7085      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7086      hardcode_libdir_flag_spec='-R$libdir'
7087      hardcode_direct=yes
7088      hardcode_shlibpath_var=no
7089      ;;
7090
7091    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7092    freebsd2*)
7093      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7094      hardcode_direct=yes
7095      hardcode_minus_L=yes
7096      hardcode_shlibpath_var=no
7097      ;;
7098
7099    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7100    freebsd*)
7101      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7102      hardcode_libdir_flag_spec='-R$libdir'
7103      hardcode_direct=yes
7104      hardcode_shlibpath_var=no
7105      ;;
7106
7107    hpux9*)
7108      if test "$GCC" = yes; then
7109	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'
7110      else
7111	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'
7112      fi
7113      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7114      hardcode_libdir_separator=:
7115      hardcode_direct=yes
7116
7117      # hardcode_minus_L: Not really in the search PATH,
7118      # but as the default location of the library.
7119      hardcode_minus_L=yes
7120      export_dynamic_flag_spec='${wl}-E'
7121      ;;
7122
7123    hpux10* | hpux11*)
7124      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7125	case "$host_cpu" in
7126	hppa*64*|ia64*)
7127	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7128	  ;;
7129	*)
7130	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7131	  ;;
7132	esac
7133      else
7134	case "$host_cpu" in
7135	hppa*64*|ia64*)
7136	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7137	  ;;
7138	*)
7139	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7140	  ;;
7141	esac
7142      fi
7143      if test "$with_gnu_ld" = no; then
7144	case "$host_cpu" in
7145	hppa*64*)
7146	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7147	  hardcode_libdir_flag_spec_ld='+b $libdir'
7148	  hardcode_libdir_separator=:
7149	  hardcode_direct=no
7150	  hardcode_shlibpath_var=no
7151	  ;;
7152	ia64*)
7153	  hardcode_libdir_flag_spec='-L$libdir'
7154	  hardcode_direct=no
7155	  hardcode_shlibpath_var=no
7156
7157	  # hardcode_minus_L: Not really in the search PATH,
7158	  # but as the default location of the library.
7159	  hardcode_minus_L=yes
7160	  ;;
7161	*)
7162	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7163	  hardcode_libdir_separator=:
7164	  hardcode_direct=yes
7165	  export_dynamic_flag_spec='${wl}-E'
7166
7167	  # hardcode_minus_L: Not really in the search PATH,
7168	  # but as the default location of the library.
7169	  hardcode_minus_L=yes
7170	  ;;
7171	esac
7172      fi
7173      ;;
7174
7175    irix5* | irix6* | nonstopux*)
7176      if test "$GCC" = yes; then
7177	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'
7178      else
7179	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'
7180	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7181      fi
7182      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7183      hardcode_libdir_separator=:
7184      link_all_deplibs=yes
7185      ;;
7186
7187    netbsd*)
7188      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7189	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7190      else
7191	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7192      fi
7193      hardcode_libdir_flag_spec='-R$libdir'
7194      hardcode_direct=yes
7195      hardcode_shlibpath_var=no
7196      ;;
7197
7198    newsos6)
7199      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7200      hardcode_direct=yes
7201      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7202      hardcode_libdir_separator=:
7203      hardcode_shlibpath_var=no
7204      ;;
7205
7206    openbsd*)
7207      hardcode_direct=yes
7208      hardcode_shlibpath_var=no
7209      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7210	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7211	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7212	export_dynamic_flag_spec='${wl}-E'
7213      else
7214       case $host_os in
7215	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7216	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7217	   hardcode_libdir_flag_spec='-R$libdir'
7218	   ;;
7219	 *)
7220	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7221	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7222	   ;;
7223       esac
7224      fi
7225      ;;
7226
7227    os2*)
7228      hardcode_libdir_flag_spec='-L$libdir'
7229      hardcode_minus_L=yes
7230      allow_undefined_flag=unsupported
7231      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'
7232      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7233      ;;
7234
7235    osf3*)
7236      if test "$GCC" = yes; then
7237	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7238	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'
7239      else
7240	allow_undefined_flag=' -expect_unresolved \*'
7241	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'
7242      fi
7243      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7244      hardcode_libdir_separator=:
7245      ;;
7246
7247    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7248      if test "$GCC" = yes; then
7249	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7250	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'
7251	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7252      else
7253	allow_undefined_flag=' -expect_unresolved \*'
7254	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'
7255	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7256	$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'
7257
7258	# Both c and cxx compiler support -rpath directly
7259	hardcode_libdir_flag_spec='-rpath $libdir'
7260      fi
7261      hardcode_libdir_separator=:
7262      ;;
7263
7264    sco3.2v5*)
7265      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7266      hardcode_shlibpath_var=no
7267      export_dynamic_flag_spec='${wl}-Bexport'
7268      runpath_var=LD_RUN_PATH
7269      hardcode_runpath_var=yes
7270      ;;
7271
7272    solaris*)
7273      no_undefined_flag=' -z text'
7274      if test "$GCC" = yes; then
7275	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7276	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7277	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7278      else
7279	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7280	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7281  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7282      fi
7283      hardcode_libdir_flag_spec='-R$libdir'
7284      hardcode_shlibpath_var=no
7285      case $host_os in
7286      solaris2.[0-5] | solaris2.[0-5].*) ;;
7287      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7288	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7289      esac
7290      link_all_deplibs=yes
7291      ;;
7292
7293    sunos4*)
7294      if test "x$host_vendor" = xsequent; then
7295	# Use $CC to link under sequent, because it throws in some extra .o
7296	# files that make .init and .fini sections work.
7297	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7298      else
7299	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7300      fi
7301      hardcode_libdir_flag_spec='-L$libdir'
7302      hardcode_direct=yes
7303      hardcode_minus_L=yes
7304      hardcode_shlibpath_var=no
7305      ;;
7306
7307    sysv4)
7308      case $host_vendor in
7309	sni)
7310	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7311	  hardcode_direct=yes # is this really true???
7312	;;
7313	siemens)
7314	  ## LD is ld it makes a PLAMLIB
7315	  ## CC just makes a GrossModule.
7316	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7317	  reload_cmds='$CC -r -o $output$reload_objs'
7318	  hardcode_direct=no
7319        ;;
7320	motorola)
7321	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7322	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7323	;;
7324      esac
7325      runpath_var='LD_RUN_PATH'
7326      hardcode_shlibpath_var=no
7327      ;;
7328
7329    sysv4.3*)
7330      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7331      hardcode_shlibpath_var=no
7332      export_dynamic_flag_spec='-Bexport'
7333      ;;
7334
7335    sysv4*MP*)
7336      if test -d /usr/nec; then
7337	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7338	hardcode_shlibpath_var=no
7339	runpath_var=LD_RUN_PATH
7340	hardcode_runpath_var=yes
7341	ld_shlibs=yes
7342      fi
7343      ;;
7344
7345    sysv4.2uw2*)
7346      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7347      hardcode_direct=yes
7348      hardcode_minus_L=no
7349      hardcode_shlibpath_var=no
7350      hardcode_runpath_var=yes
7351      runpath_var=LD_RUN_PATH
7352      ;;
7353
7354   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7355      no_undefined_flag='${wl}-z ${wl}text'
7356      if test "$GCC" = yes; then
7357	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7358      else
7359	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7360      fi
7361      runpath_var='LD_RUN_PATH'
7362      hardcode_shlibpath_var=no
7363      ;;
7364
7365    sysv5*)
7366      no_undefined_flag=' -z text'
7367      # $CC -shared without GNU ld will not create a library from C++
7368      # object files and a static libstdc++, better avoid it by now
7369      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7370      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7371  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7372      hardcode_libdir_flag_spec=
7373      hardcode_shlibpath_var=no
7374      runpath_var='LD_RUN_PATH'
7375      ;;
7376
7377    uts4*)
7378      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7379      hardcode_libdir_flag_spec='-L$libdir'
7380      hardcode_shlibpath_var=no
7381      ;;
7382
7383    *)
7384      ld_shlibs=no
7385      ;;
7386    esac
7387  fi
7388
7389echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7390echo "${ECHO_T}$ld_shlibs" >&6
7391test "$ld_shlibs" = no && can_build_shared=no
7392
7393variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7394if test "$GCC" = yes; then
7395  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7396fi
7397
7398#
7399# Do we need to explicitly link libc?
7400#
7401case "x$archive_cmds_need_lc" in
7402x|xyes)
7403  # Assume -lc should be added
7404  archive_cmds_need_lc=yes
7405
7406  if test "$enable_shared" = yes && test "$GCC" = yes; then
7407    case $archive_cmds in
7408    *'~'*)
7409      # FIXME: we may have to deal with multi-command sequences.
7410      ;;
7411    '$CC '*)
7412      # Test whether the compiler implicitly links with -lc since on some
7413      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7414      # to ld, don't add -lc before -lgcc.
7415      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7416echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7417      $rm conftest*
7418      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7419
7420      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7421  (eval $ac_compile) 2>&5
7422  ac_status=$?
7423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424  (exit $ac_status); } 2>conftest.err; then
7425        soname=conftest
7426        lib=conftest
7427        libobjs=conftest.$ac_objext
7428        deplibs=
7429        wl=$lt_prog_compiler_wl
7430        compiler_flags=-v
7431        linker_flags=-v
7432        verstring=
7433        output_objdir=.
7434        libname=conftest
7435        lt_save_allow_undefined_flag=$allow_undefined_flag
7436        allow_undefined_flag=
7437        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7438  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7439  ac_status=$?
7440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441  (exit $ac_status); }
7442        then
7443	  archive_cmds_need_lc=no
7444        else
7445	  archive_cmds_need_lc=yes
7446        fi
7447        allow_undefined_flag=$lt_save_allow_undefined_flag
7448      else
7449        cat conftest.err 1>&5
7450      fi
7451      $rm conftest*
7452      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7453echo "${ECHO_T}$archive_cmds_need_lc" >&6
7454      ;;
7455    esac
7456  fi
7457  ;;
7458esac
7459
7460echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7461echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7462hardcode_action=
7463if test -n "$hardcode_libdir_flag_spec" || \
7464   test -n "$runpath_var " || \
7465   test "X$hardcode_automatic"="Xyes" ; then
7466
7467  # We can hardcode non-existant directories.
7468  if test "$hardcode_direct" != no &&
7469     # If the only mechanism to avoid hardcoding is shlibpath_var, we
7470     # have to relink, otherwise we might link with an installed library
7471     # when we should be linking with a yet-to-be-installed one
7472     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7473     test "$hardcode_minus_L" != no; then
7474    # Linking always hardcodes the temporary library directory.
7475    hardcode_action=relink
7476  else
7477    # We can link without hardcoding, and we can hardcode nonexisting dirs.
7478    hardcode_action=immediate
7479  fi
7480else
7481  # We cannot hardcode anything, or else we can only hardcode existing
7482  # directories.
7483  hardcode_action=unsupported
7484fi
7485echo "$as_me:$LINENO: result: $hardcode_action" >&5
7486echo "${ECHO_T}$hardcode_action" >&6
7487
7488if test "$hardcode_action" = relink; then
7489  # Fast installation is not supported
7490  enable_fast_install=no
7491elif test "$shlibpath_overrides_runpath" = yes ||
7492     test "$enable_shared" = no; then
7493  # Fast installation is not necessary
7494  enable_fast_install=needless
7495fi
7496
7497striplib=
7498old_striplib=
7499echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7500echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7501if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7502  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7503  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7504  echo "$as_me:$LINENO: result: yes" >&5
7505echo "${ECHO_T}yes" >&6
7506else
7507# FIXME - insert some real tests, host_os isn't really good enough
7508  case $host_os in
7509   darwin*)
7510       if test -n "$STRIP" ; then
7511         striplib="$STRIP -x"
7512         echo "$as_me:$LINENO: result: yes" >&5
7513echo "${ECHO_T}yes" >&6
7514       else
7515  echo "$as_me:$LINENO: result: no" >&5
7516echo "${ECHO_T}no" >&6
7517fi
7518       ;;
7519   *)
7520  echo "$as_me:$LINENO: result: no" >&5
7521echo "${ECHO_T}no" >&6
7522    ;;
7523  esac
7524fi
7525
7526echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7527echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7528library_names_spec=
7529libname_spec='lib$name'
7530soname_spec=
7531shrext=".so"
7532postinstall_cmds=
7533postuninstall_cmds=
7534finish_cmds=
7535finish_eval=
7536shlibpath_var=
7537shlibpath_overrides_runpath=unknown
7538version_type=none
7539dynamic_linker="$host_os ld.so"
7540sys_lib_dlsearch_path_spec="/lib /usr/lib"
7541if test "$GCC" = yes; then
7542  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7543  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7544    # if the path contains ";" then we assume it to be the separator
7545    # otherwise default to the standard path separator (i.e. ":") - it is
7546    # assumed that no part of a normal pathname contains ";" but that should
7547    # okay in the real world where ";" in dirpaths is itself problematic.
7548    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7549  else
7550    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7551  fi
7552else
7553  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7554fi
7555need_lib_prefix=unknown
7556hardcode_into_libs=no
7557
7558# when you set need_version to no, make sure it does not cause -set_version
7559# flags to be left without arguments
7560need_version=unknown
7561
7562case $host_os in
7563aix3*)
7564  version_type=linux
7565  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7566  shlibpath_var=LIBPATH
7567
7568  # AIX 3 has no versioning support, so we append a major version to the name.
7569  soname_spec='${libname}${release}${shared_ext}$major'
7570  ;;
7571
7572aix4* | aix5*)
7573  version_type=linux
7574  need_lib_prefix=no
7575  need_version=no
7576  hardcode_into_libs=yes
7577  if test "$host_cpu" = ia64; then
7578    # AIX 5 supports IA64
7579    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7580    shlibpath_var=LD_LIBRARY_PATH
7581  else
7582    # With GCC up to 2.95.x, collect2 would create an import file
7583    # for dependence libraries.  The import file would start with
7584    # the line `#! .'.  This would cause the generated library to
7585    # depend on `.', always an invalid library.  This was fixed in
7586    # development snapshots of GCC prior to 3.0.
7587    case $host_os in
7588      aix4 | aix4.[01] | aix4.[01].*)
7589      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7590	   echo ' yes '
7591	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7592	:
7593      else
7594	can_build_shared=no
7595      fi
7596      ;;
7597    esac
7598    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7599    # soname into executable. Probably we can add versioning support to
7600    # collect2, so additional links can be useful in future.
7601    if test "$aix_use_runtimelinking" = yes; then
7602      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7603      # instead of lib<name>.a to let people know that these are not
7604      # typical AIX shared libraries.
7605      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7606    else
7607      # We preserve .a as extension for shared libraries through AIX4.2
7608      # and later when we are not doing run time linking.
7609      library_names_spec='${libname}${release}.a $libname.a'
7610      soname_spec='${libname}${release}${shared_ext}$major'
7611    fi
7612    shlibpath_var=LIBPATH
7613  fi
7614  ;;
7615
7616amigaos*)
7617  library_names_spec='$libname.ixlibrary $libname.a'
7618  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7619  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'
7620  ;;
7621
7622beos*)
7623  library_names_spec='${libname}${shared_ext}'
7624  dynamic_linker="$host_os ld.so"
7625  shlibpath_var=LIBRARY_PATH
7626  ;;
7627
7628bsdi4*)
7629  version_type=linux
7630  need_version=no
7631  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7632  soname_spec='${libname}${release}${shared_ext}$major'
7633  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7634  shlibpath_var=LD_LIBRARY_PATH
7635  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7636  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7637  # the default ld.so.conf also contains /usr/contrib/lib and
7638  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7639  # libtool to hard-code these into programs
7640  ;;
7641
7642cygwin* | mingw* | pw32*)
7643  version_type=windows
7644  shrext=".dll"
7645  need_version=no
7646  need_lib_prefix=no
7647
7648  case $GCC,$host_os in
7649  yes,cygwin* | yes,mingw* | yes,pw32*)
7650    library_names_spec='$libname.dll.a'
7651    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7652    postinstall_cmds='base_file=`basename \${file}`~
7653      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7654      dldir=$destdir/`dirname \$dlpath`~
7655      test -d \$dldir || mkdir -p \$dldir~
7656      $install_prog $dir/$dlname \$dldir/$dlname'
7657    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7658      dlpath=$dir/\$dldll~
7659       $rm \$dlpath'
7660    shlibpath_overrides_runpath=yes
7661
7662    case $host_os in
7663    cygwin*)
7664      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7665      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7666      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7667      ;;
7668    mingw*)
7669      # MinGW DLLs use traditional 'lib' prefix
7670      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7671      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7672      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7673        # It is most probably a Windows format PATH printed by
7674        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7675        # path with ; separators, and with drive letters. We can handle the
7676        # drive letters (cygwin fileutils understands them), so leave them,
7677        # especially as we might pass files found there to a mingw objdump,
7678        # which wouldn't understand a cygwinified path. Ahh.
7679        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7680      else
7681        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7682      fi
7683      ;;
7684    pw32*)
7685      # pw32 DLLs use 'pw' prefix rather than 'lib'
7686      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7687      ;;
7688    esac
7689    ;;
7690
7691  *)
7692    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7693    ;;
7694  esac
7695  dynamic_linker='Win32 ld.exe'
7696  # FIXME: first we should search . and the directory the executable is in
7697  shlibpath_var=PATH
7698  ;;
7699
7700darwin* | rhapsody*)
7701  dynamic_linker="$host_os dyld"
7702  version_type=darwin
7703  need_lib_prefix=no
7704  need_version=no
7705  # FIXME: Relying on posixy $() will cause problems for
7706  #        cross-compilation, but unfortunately the echo tests do not
7707  #        yet detect zsh echo's removal of \ escapes.
7708  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7709  soname_spec='${libname}${release}${major}$shared_ext'
7710  shlibpath_overrides_runpath=yes
7711  shlibpath_var=DYLD_LIBRARY_PATH
7712  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7713  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7714  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7715  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"`
7716  fi
7717  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7718  ;;
7719
7720dgux*)
7721  version_type=linux
7722  need_lib_prefix=no
7723  need_version=no
7724  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7725  soname_spec='${libname}${release}${shared_ext}$major'
7726  shlibpath_var=LD_LIBRARY_PATH
7727  ;;
7728
7729freebsd1*)
7730  dynamic_linker=no
7731  ;;
7732
7733freebsd*)
7734  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7735  version_type=freebsd-$objformat
7736  case $version_type in
7737    freebsd-elf*)
7738      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7739      need_version=no
7740      need_lib_prefix=no
7741      ;;
7742    freebsd-*)
7743      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7744      need_version=yes
7745      ;;
7746  esac
7747  shlibpath_var=LD_LIBRARY_PATH
7748  case $host_os in
7749  freebsd2*)
7750    shlibpath_overrides_runpath=yes
7751    ;;
7752  freebsd3.01* | freebsdelf3.01*)
7753    shlibpath_overrides_runpath=yes
7754    hardcode_into_libs=yes
7755    ;;
7756  *) # from 3.2 on
7757    shlibpath_overrides_runpath=no
7758    hardcode_into_libs=yes
7759    ;;
7760  esac
7761  ;;
7762
7763gnu*)
7764  version_type=linux
7765  need_lib_prefix=no
7766  need_version=no
7767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7768  soname_spec='${libname}${release}${shared_ext}$major'
7769  shlibpath_var=LD_LIBRARY_PATH
7770  hardcode_into_libs=yes
7771  ;;
7772
7773hpux9* | hpux10* | hpux11*)
7774  # Give a soname corresponding to the major version so that dld.sl refuses to
7775  # link against other versions.
7776  version_type=sunos
7777  need_lib_prefix=no
7778  need_version=no
7779  case "$host_cpu" in
7780  ia64*)
7781    shrext='.so'
7782    hardcode_into_libs=yes
7783    dynamic_linker="$host_os dld.so"
7784    shlibpath_var=LD_LIBRARY_PATH
7785    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7786    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7787    soname_spec='${libname}${release}${shared_ext}$major'
7788    if test "X$HPUX_IA64_MODE" = X32; then
7789      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7790    else
7791      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7792    fi
7793    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7794    ;;
7795   hppa*64*)
7796     shrext='.sl'
7797     hardcode_into_libs=yes
7798     dynamic_linker="$host_os dld.sl"
7799     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7800     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7801     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7802     soname_spec='${libname}${release}${shared_ext}$major'
7803     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7804     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7805     ;;
7806   *)
7807    shrext='.sl'
7808    dynamic_linker="$host_os dld.sl"
7809    shlibpath_var=SHLIB_PATH
7810    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7811    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7812    soname_spec='${libname}${release}${shared_ext}$major'
7813    ;;
7814  esac
7815  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7816  postinstall_cmds='chmod 555 $lib'
7817  ;;
7818
7819irix5* | irix6* | nonstopux*)
7820  case $host_os in
7821    nonstopux*) version_type=nonstopux ;;
7822    *)
7823	if test "$lt_cv_prog_gnu_ld" = yes; then
7824		version_type=linux
7825	else
7826		version_type=irix
7827	fi ;;
7828  esac
7829  need_lib_prefix=no
7830  need_version=no
7831  soname_spec='${libname}${release}${shared_ext}$major'
7832  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7833  case $host_os in
7834  irix5* | nonstopux*)
7835    libsuff= shlibsuff=
7836    ;;
7837  *)
7838    case $LD in # libtool.m4 will add one of these switches to LD
7839    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7840      libsuff= shlibsuff= libmagic=32-bit;;
7841    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7842      libsuff=32 shlibsuff=N32 libmagic=N32;;
7843    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7844      libsuff=64 shlibsuff=64 libmagic=64-bit;;
7845    *) libsuff= shlibsuff= libmagic=never-match;;
7846    esac
7847    ;;
7848  esac
7849  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7850  shlibpath_overrides_runpath=no
7851  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7852  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7853  hardcode_into_libs=yes
7854  ;;
7855
7856# No shared lib support for Linux oldld, aout, or coff.
7857linux*oldld* | linux*aout* | linux*coff*)
7858  dynamic_linker=no
7859  ;;
7860
7861# This must be Linux ELF.
7862linux*)
7863  version_type=linux
7864  need_lib_prefix=no
7865  need_version=no
7866  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7867  soname_spec='${libname}${release}${shared_ext}$major'
7868  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7869  shlibpath_var=LD_LIBRARY_PATH
7870  shlibpath_overrides_runpath=no
7871  # This implies no fast_install, which is unacceptable.
7872  # Some rework will be needed to allow for fast_install
7873  # before this can be enabled.
7874  hardcode_into_libs=yes
7875
7876  # We used to test for /lib/ld.so.1 and disable shared libraries on
7877  # powerpc, because MkLinux only supported shared libraries with the
7878  # GNU dynamic linker.  Since this was broken with cross compilers,
7879  # most powerpc-linux boxes support dynamic linking these days and
7880  # people can always --disable-shared, the test was removed, and we
7881  # assume the GNU/Linux dynamic linker is in use.
7882  dynamic_linker='GNU/Linux ld.so'
7883  ;;
7884
7885netbsd*)
7886  version_type=sunos
7887  need_lib_prefix=no
7888  need_version=no
7889  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7890    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7891    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7892    dynamic_linker='NetBSD (a.out) ld.so'
7893  else
7894    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7895    soname_spec='${libname}${release}${shared_ext}$major'
7896    dynamic_linker='NetBSD ld.elf_so'
7897  fi
7898  shlibpath_var=LD_LIBRARY_PATH
7899  shlibpath_overrides_runpath=yes
7900  hardcode_into_libs=yes
7901  ;;
7902
7903newsos6)
7904  version_type=linux
7905  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7906  shlibpath_var=LD_LIBRARY_PATH
7907  shlibpath_overrides_runpath=yes
7908  ;;
7909
7910nto-qnx)
7911  version_type=linux
7912  need_lib_prefix=no
7913  need_version=no
7914  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7915  soname_spec='${libname}${release}${shared_ext}$major'
7916  shlibpath_var=LD_LIBRARY_PATH
7917  shlibpath_overrides_runpath=yes
7918  ;;
7919
7920openbsd*)
7921  version_type=sunos
7922  need_lib_prefix=no
7923  need_version=no
7924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7925  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7926  shlibpath_var=LD_LIBRARY_PATH
7927  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7928    case $host_os in
7929      openbsd2.[89] | openbsd2.[89].*)
7930	shlibpath_overrides_runpath=no
7931	;;
7932      *)
7933	shlibpath_overrides_runpath=yes
7934	;;
7935      esac
7936  else
7937    shlibpath_overrides_runpath=yes
7938  fi
7939  ;;
7940
7941os2*)
7942  libname_spec='$name'
7943  shrext=".dll"
7944  need_lib_prefix=no
7945  library_names_spec='$libname${shared_ext} $libname.a'
7946  dynamic_linker='OS/2 ld.exe'
7947  shlibpath_var=LIBPATH
7948  ;;
7949
7950osf3* | osf4* | osf5*)
7951  version_type=osf
7952  need_lib_prefix=no
7953  need_version=no
7954  soname_spec='${libname}${release}${shared_ext}$major'
7955  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7956  shlibpath_var=LD_LIBRARY_PATH
7957  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7958  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7959  ;;
7960
7961sco3.2v5*)
7962  version_type=osf
7963  soname_spec='${libname}${release}${shared_ext}$major'
7964  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7965  shlibpath_var=LD_LIBRARY_PATH
7966  ;;
7967
7968solaris*)
7969  version_type=linux
7970  need_lib_prefix=no
7971  need_version=no
7972  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7973  soname_spec='${libname}${release}${shared_ext}$major'
7974  shlibpath_var=LD_LIBRARY_PATH
7975  shlibpath_overrides_runpath=yes
7976  hardcode_into_libs=yes
7977  # ldd complains unless libraries are executable
7978  postinstall_cmds='chmod +x $lib'
7979  ;;
7980
7981sunos4*)
7982  version_type=sunos
7983  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7984  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7985  shlibpath_var=LD_LIBRARY_PATH
7986  shlibpath_overrides_runpath=yes
7987  if test "$with_gnu_ld" = yes; then
7988    need_lib_prefix=no
7989  fi
7990  need_version=yes
7991  ;;
7992
7993sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7994  version_type=linux
7995  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7996  soname_spec='${libname}${release}${shared_ext}$major'
7997  shlibpath_var=LD_LIBRARY_PATH
7998  case $host_vendor in
7999    sni)
8000      shlibpath_overrides_runpath=no
8001      need_lib_prefix=no
8002      export_dynamic_flag_spec='${wl}-Blargedynsym'
8003      runpath_var=LD_RUN_PATH
8004      ;;
8005    siemens)
8006      need_lib_prefix=no
8007      ;;
8008    motorola)
8009      need_lib_prefix=no
8010      need_version=no
8011      shlibpath_overrides_runpath=no
8012      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8013      ;;
8014  esac
8015  ;;
8016
8017sysv4*MP*)
8018  if test -d /usr/nec ;then
8019    version_type=linux
8020    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8021    soname_spec='$libname${shared_ext}.$major'
8022    shlibpath_var=LD_LIBRARY_PATH
8023  fi
8024  ;;
8025
8026uts4*)
8027  version_type=linux
8028  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8029  soname_spec='${libname}${release}${shared_ext}$major'
8030  shlibpath_var=LD_LIBRARY_PATH
8031  ;;
8032
8033*)
8034  dynamic_linker=no
8035  ;;
8036esac
8037echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8038echo "${ECHO_T}$dynamic_linker" >&6
8039test "$dynamic_linker" = no && can_build_shared=no
8040
8041if test "x$enable_dlopen" != xyes; then
8042  enable_dlopen=unknown
8043  enable_dlopen_self=unknown
8044  enable_dlopen_self_static=unknown
8045else
8046  lt_cv_dlopen=no
8047  lt_cv_dlopen_libs=
8048
8049  case $host_os in
8050  beos*)
8051    lt_cv_dlopen="load_add_on"
8052    lt_cv_dlopen_libs=
8053    lt_cv_dlopen_self=yes
8054    ;;
8055
8056  mingw* | pw32*)
8057    lt_cv_dlopen="LoadLibrary"
8058    lt_cv_dlopen_libs=
8059   ;;
8060
8061  cygwin*)
8062    lt_cv_dlopen="dlopen"
8063    lt_cv_dlopen_libs=
8064   ;;
8065
8066  darwin*)
8067  # if libdl is installed we need to link against it
8068    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8069echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8070if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8071  echo $ECHO_N "(cached) $ECHO_C" >&6
8072else
8073  ac_check_lib_save_LIBS=$LIBS
8074LIBS="-ldl  $LIBS"
8075cat >conftest.$ac_ext <<_ACEOF
8076#line $LINENO "configure"
8077/* confdefs.h.  */
8078_ACEOF
8079cat confdefs.h >>conftest.$ac_ext
8080cat >>conftest.$ac_ext <<_ACEOF
8081/* end confdefs.h.  */
8082
8083/* Override any gcc2 internal prototype to avoid an error.  */
8084#ifdef __cplusplus
8085extern "C"
8086#endif
8087/* We use char because int might match the return type of a gcc2
8088   builtin and then its argument prototype would still apply.  */
8089char dlopen ();
8090int
8091main ()
8092{
8093dlopen ();
8094  ;
8095  return 0;
8096}
8097_ACEOF
8098rm -f conftest.$ac_objext conftest$ac_exeext
8099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8100  (eval $ac_link) 2>&5
8101  ac_status=$?
8102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103  (exit $ac_status); } &&
8104         { ac_try='test -s conftest$ac_exeext'
8105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106  (eval $ac_try) 2>&5
8107  ac_status=$?
8108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109  (exit $ac_status); }; }; then
8110  ac_cv_lib_dl_dlopen=yes
8111else
8112  echo "$as_me: failed program was:" >&5
8113sed 's/^/| /' conftest.$ac_ext >&5
8114
8115ac_cv_lib_dl_dlopen=no
8116fi
8117rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8118LIBS=$ac_check_lib_save_LIBS
8119fi
8120echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8121echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8122if test $ac_cv_lib_dl_dlopen = yes; then
8123  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8124else
8125
8126    lt_cv_dlopen="dyld"
8127    lt_cv_dlopen_libs=
8128    lt_cv_dlopen_self=yes
8129
8130fi
8131
8132   ;;
8133
8134  *)
8135    echo "$as_me:$LINENO: checking for shl_load" >&5
8136echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8137if test "${ac_cv_func_shl_load+set}" = set; then
8138  echo $ECHO_N "(cached) $ECHO_C" >&6
8139else
8140  cat >conftest.$ac_ext <<_ACEOF
8141#line $LINENO "configure"
8142/* confdefs.h.  */
8143_ACEOF
8144cat confdefs.h >>conftest.$ac_ext
8145cat >>conftest.$ac_ext <<_ACEOF
8146/* end confdefs.h.  */
8147/* System header to define __stub macros and hopefully few prototypes,
8148    which can conflict with char shl_load (); below.
8149    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8150    <limits.h> exists even on freestanding compilers.  */
8151#ifdef __STDC__
8152# include <limits.h>
8153#else
8154# include <assert.h>
8155#endif
8156/* Override any gcc2 internal prototype to avoid an error.  */
8157#ifdef __cplusplus
8158extern "C"
8159{
8160#endif
8161/* We use char because int might match the return type of a gcc2
8162   builtin and then its argument prototype would still apply.  */
8163char shl_load ();
8164/* The GNU C library defines this for functions which it implements
8165    to always fail with ENOSYS.  Some functions are actually named
8166    something starting with __ and the normal name is an alias.  */
8167#if defined (__stub_shl_load) || defined (__stub___shl_load)
8168choke me
8169#else
8170char (*f) () = shl_load;
8171#endif
8172#ifdef __cplusplus
8173}
8174#endif
8175
8176int
8177main ()
8178{
8179return f != shl_load;
8180  ;
8181  return 0;
8182}
8183_ACEOF
8184rm -f conftest.$ac_objext conftest$ac_exeext
8185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8186  (eval $ac_link) 2>&5
8187  ac_status=$?
8188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189  (exit $ac_status); } &&
8190         { ac_try='test -s conftest$ac_exeext'
8191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192  (eval $ac_try) 2>&5
8193  ac_status=$?
8194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195  (exit $ac_status); }; }; then
8196  ac_cv_func_shl_load=yes
8197else
8198  echo "$as_me: failed program was:" >&5
8199sed 's/^/| /' conftest.$ac_ext >&5
8200
8201ac_cv_func_shl_load=no
8202fi
8203rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8204fi
8205echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8206echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8207if test $ac_cv_func_shl_load = yes; then
8208  lt_cv_dlopen="shl_load"
8209else
8210  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8211echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8212if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8213  echo $ECHO_N "(cached) $ECHO_C" >&6
8214else
8215  ac_check_lib_save_LIBS=$LIBS
8216LIBS="-ldld  $LIBS"
8217cat >conftest.$ac_ext <<_ACEOF
8218#line $LINENO "configure"
8219/* confdefs.h.  */
8220_ACEOF
8221cat confdefs.h >>conftest.$ac_ext
8222cat >>conftest.$ac_ext <<_ACEOF
8223/* end confdefs.h.  */
8224
8225/* Override any gcc2 internal prototype to avoid an error.  */
8226#ifdef __cplusplus
8227extern "C"
8228#endif
8229/* We use char because int might match the return type of a gcc2
8230   builtin and then its argument prototype would still apply.  */
8231char shl_load ();
8232int
8233main ()
8234{
8235shl_load ();
8236  ;
8237  return 0;
8238}
8239_ACEOF
8240rm -f conftest.$ac_objext conftest$ac_exeext
8241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8242  (eval $ac_link) 2>&5
8243  ac_status=$?
8244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245  (exit $ac_status); } &&
8246         { ac_try='test -s conftest$ac_exeext'
8247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248  (eval $ac_try) 2>&5
8249  ac_status=$?
8250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251  (exit $ac_status); }; }; then
8252  ac_cv_lib_dld_shl_load=yes
8253else
8254  echo "$as_me: failed program was:" >&5
8255sed 's/^/| /' conftest.$ac_ext >&5
8256
8257ac_cv_lib_dld_shl_load=no
8258fi
8259rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8260LIBS=$ac_check_lib_save_LIBS
8261fi
8262echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8263echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8264if test $ac_cv_lib_dld_shl_load = yes; then
8265  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8266else
8267  echo "$as_me:$LINENO: checking for dlopen" >&5
8268echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8269if test "${ac_cv_func_dlopen+set}" = set; then
8270  echo $ECHO_N "(cached) $ECHO_C" >&6
8271else
8272  cat >conftest.$ac_ext <<_ACEOF
8273#line $LINENO "configure"
8274/* confdefs.h.  */
8275_ACEOF
8276cat confdefs.h >>conftest.$ac_ext
8277cat >>conftest.$ac_ext <<_ACEOF
8278/* end confdefs.h.  */
8279/* System header to define __stub macros and hopefully few prototypes,
8280    which can conflict with char dlopen (); below.
8281    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8282    <limits.h> exists even on freestanding compilers.  */
8283#ifdef __STDC__
8284# include <limits.h>
8285#else
8286# include <assert.h>
8287#endif
8288/* Override any gcc2 internal prototype to avoid an error.  */
8289#ifdef __cplusplus
8290extern "C"
8291{
8292#endif
8293/* We use char because int might match the return type of a gcc2
8294   builtin and then its argument prototype would still apply.  */
8295char dlopen ();
8296/* The GNU C library defines this for functions which it implements
8297    to always fail with ENOSYS.  Some functions are actually named
8298    something starting with __ and the normal name is an alias.  */
8299#if defined (__stub_dlopen) || defined (__stub___dlopen)
8300choke me
8301#else
8302char (*f) () = dlopen;
8303#endif
8304#ifdef __cplusplus
8305}
8306#endif
8307
8308int
8309main ()
8310{
8311return f != dlopen;
8312  ;
8313  return 0;
8314}
8315_ACEOF
8316rm -f conftest.$ac_objext conftest$ac_exeext
8317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8318  (eval $ac_link) 2>&5
8319  ac_status=$?
8320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321  (exit $ac_status); } &&
8322         { ac_try='test -s conftest$ac_exeext'
8323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324  (eval $ac_try) 2>&5
8325  ac_status=$?
8326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327  (exit $ac_status); }; }; then
8328  ac_cv_func_dlopen=yes
8329else
8330  echo "$as_me: failed program was:" >&5
8331sed 's/^/| /' conftest.$ac_ext >&5
8332
8333ac_cv_func_dlopen=no
8334fi
8335rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8336fi
8337echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8338echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8339if test $ac_cv_func_dlopen = yes; then
8340  lt_cv_dlopen="dlopen"
8341else
8342  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8343echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8344if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8345  echo $ECHO_N "(cached) $ECHO_C" >&6
8346else
8347  ac_check_lib_save_LIBS=$LIBS
8348LIBS="-ldl  $LIBS"
8349cat >conftest.$ac_ext <<_ACEOF
8350#line $LINENO "configure"
8351/* confdefs.h.  */
8352_ACEOF
8353cat confdefs.h >>conftest.$ac_ext
8354cat >>conftest.$ac_ext <<_ACEOF
8355/* end confdefs.h.  */
8356
8357/* Override any gcc2 internal prototype to avoid an error.  */
8358#ifdef __cplusplus
8359extern "C"
8360#endif
8361/* We use char because int might match the return type of a gcc2
8362   builtin and then its argument prototype would still apply.  */
8363char dlopen ();
8364int
8365main ()
8366{
8367dlopen ();
8368  ;
8369  return 0;
8370}
8371_ACEOF
8372rm -f conftest.$ac_objext conftest$ac_exeext
8373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8374  (eval $ac_link) 2>&5
8375  ac_status=$?
8376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377  (exit $ac_status); } &&
8378         { ac_try='test -s conftest$ac_exeext'
8379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380  (eval $ac_try) 2>&5
8381  ac_status=$?
8382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383  (exit $ac_status); }; }; then
8384  ac_cv_lib_dl_dlopen=yes
8385else
8386  echo "$as_me: failed program was:" >&5
8387sed 's/^/| /' conftest.$ac_ext >&5
8388
8389ac_cv_lib_dl_dlopen=no
8390fi
8391rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8392LIBS=$ac_check_lib_save_LIBS
8393fi
8394echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8395echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8396if test $ac_cv_lib_dl_dlopen = yes; then
8397  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8398else
8399  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8400echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8401if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8402  echo $ECHO_N "(cached) $ECHO_C" >&6
8403else
8404  ac_check_lib_save_LIBS=$LIBS
8405LIBS="-lsvld  $LIBS"
8406cat >conftest.$ac_ext <<_ACEOF
8407#line $LINENO "configure"
8408/* confdefs.h.  */
8409_ACEOF
8410cat confdefs.h >>conftest.$ac_ext
8411cat >>conftest.$ac_ext <<_ACEOF
8412/* end confdefs.h.  */
8413
8414/* Override any gcc2 internal prototype to avoid an error.  */
8415#ifdef __cplusplus
8416extern "C"
8417#endif
8418/* We use char because int might match the return type of a gcc2
8419   builtin and then its argument prototype would still apply.  */
8420char dlopen ();
8421int
8422main ()
8423{
8424dlopen ();
8425  ;
8426  return 0;
8427}
8428_ACEOF
8429rm -f conftest.$ac_objext conftest$ac_exeext
8430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8431  (eval $ac_link) 2>&5
8432  ac_status=$?
8433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434  (exit $ac_status); } &&
8435         { ac_try='test -s conftest$ac_exeext'
8436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8437  (eval $ac_try) 2>&5
8438  ac_status=$?
8439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440  (exit $ac_status); }; }; then
8441  ac_cv_lib_svld_dlopen=yes
8442else
8443  echo "$as_me: failed program was:" >&5
8444sed 's/^/| /' conftest.$ac_ext >&5
8445
8446ac_cv_lib_svld_dlopen=no
8447fi
8448rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8449LIBS=$ac_check_lib_save_LIBS
8450fi
8451echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8452echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8453if test $ac_cv_lib_svld_dlopen = yes; then
8454  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8455else
8456  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8457echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8458if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8459  echo $ECHO_N "(cached) $ECHO_C" >&6
8460else
8461  ac_check_lib_save_LIBS=$LIBS
8462LIBS="-ldld  $LIBS"
8463cat >conftest.$ac_ext <<_ACEOF
8464#line $LINENO "configure"
8465/* confdefs.h.  */
8466_ACEOF
8467cat confdefs.h >>conftest.$ac_ext
8468cat >>conftest.$ac_ext <<_ACEOF
8469/* end confdefs.h.  */
8470
8471/* Override any gcc2 internal prototype to avoid an error.  */
8472#ifdef __cplusplus
8473extern "C"
8474#endif
8475/* We use char because int might match the return type of a gcc2
8476   builtin and then its argument prototype would still apply.  */
8477char dld_link ();
8478int
8479main ()
8480{
8481dld_link ();
8482  ;
8483  return 0;
8484}
8485_ACEOF
8486rm -f conftest.$ac_objext conftest$ac_exeext
8487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8488  (eval $ac_link) 2>&5
8489  ac_status=$?
8490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491  (exit $ac_status); } &&
8492         { ac_try='test -s conftest$ac_exeext'
8493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494  (eval $ac_try) 2>&5
8495  ac_status=$?
8496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497  (exit $ac_status); }; }; then
8498  ac_cv_lib_dld_dld_link=yes
8499else
8500  echo "$as_me: failed program was:" >&5
8501sed 's/^/| /' conftest.$ac_ext >&5
8502
8503ac_cv_lib_dld_dld_link=no
8504fi
8505rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8506LIBS=$ac_check_lib_save_LIBS
8507fi
8508echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8509echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8510if test $ac_cv_lib_dld_dld_link = yes; then
8511  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8512fi
8513
8514
8515fi
8516
8517
8518fi
8519
8520
8521fi
8522
8523
8524fi
8525
8526
8527fi
8528
8529    ;;
8530  esac
8531
8532  if test "x$lt_cv_dlopen" != xno; then
8533    enable_dlopen=yes
8534  else
8535    enable_dlopen=no
8536  fi
8537
8538  case $lt_cv_dlopen in
8539  dlopen)
8540    save_CPPFLAGS="$CPPFLAGS"
8541    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8542
8543    save_LDFLAGS="$LDFLAGS"
8544    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8545
8546    save_LIBS="$LIBS"
8547    LIBS="$lt_cv_dlopen_libs $LIBS"
8548
8549    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8550echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8551if test "${lt_cv_dlopen_self+set}" = set; then
8552  echo $ECHO_N "(cached) $ECHO_C" >&6
8553else
8554  	  if test "$cross_compiling" = yes; then :
8555  lt_cv_dlopen_self=cross
8556else
8557  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8558  lt_status=$lt_dlunknown
8559  cat > conftest.$ac_ext <<EOF
8560#line 8560 "configure"
8561#include "confdefs.h"
8562
8563#if HAVE_DLFCN_H
8564#include <dlfcn.h>
8565#endif
8566
8567#include <stdio.h>
8568
8569#ifdef RTLD_GLOBAL
8570#  define LT_DLGLOBAL		RTLD_GLOBAL
8571#else
8572#  ifdef DL_GLOBAL
8573#    define LT_DLGLOBAL		DL_GLOBAL
8574#  else
8575#    define LT_DLGLOBAL		0
8576#  endif
8577#endif
8578
8579/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8580   find out it does not work in some platform. */
8581#ifndef LT_DLLAZY_OR_NOW
8582#  ifdef RTLD_LAZY
8583#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8584#  else
8585#    ifdef DL_LAZY
8586#      define LT_DLLAZY_OR_NOW		DL_LAZY
8587#    else
8588#      ifdef RTLD_NOW
8589#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8590#      else
8591#        ifdef DL_NOW
8592#          define LT_DLLAZY_OR_NOW	DL_NOW
8593#        else
8594#          define LT_DLLAZY_OR_NOW	0
8595#        endif
8596#      endif
8597#    endif
8598#  endif
8599#endif
8600
8601#ifdef __cplusplus
8602extern "C" void exit (int);
8603#endif
8604
8605void fnord() { int i=42;}
8606int main ()
8607{
8608  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8609  int status = $lt_dlunknown;
8610
8611  if (self)
8612    {
8613      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8614      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8615      /* dlclose (self); */
8616    }
8617
8618    exit (status);
8619}
8620EOF
8621  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8622  (eval $ac_link) 2>&5
8623  ac_status=$?
8624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8626    (./conftest; exit; ) 2>/dev/null
8627    lt_status=$?
8628    case x$lt_status in
8629      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8630      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8631      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8632    esac
8633  else :
8634    # compilation failed
8635    lt_cv_dlopen_self=no
8636  fi
8637fi
8638rm -fr conftest*
8639
8640
8641fi
8642echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8643echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8644
8645    if test "x$lt_cv_dlopen_self" = xyes; then
8646      LDFLAGS="$LDFLAGS $link_static_flag"
8647      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8648echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8649if test "${lt_cv_dlopen_self_static+set}" = set; then
8650  echo $ECHO_N "(cached) $ECHO_C" >&6
8651else
8652  	  if test "$cross_compiling" = yes; then :
8653  lt_cv_dlopen_self_static=cross
8654else
8655  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8656  lt_status=$lt_dlunknown
8657  cat > conftest.$ac_ext <<EOF
8658#line 8658 "configure"
8659#include "confdefs.h"
8660
8661#if HAVE_DLFCN_H
8662#include <dlfcn.h>
8663#endif
8664
8665#include <stdio.h>
8666
8667#ifdef RTLD_GLOBAL
8668#  define LT_DLGLOBAL		RTLD_GLOBAL
8669#else
8670#  ifdef DL_GLOBAL
8671#    define LT_DLGLOBAL		DL_GLOBAL
8672#  else
8673#    define LT_DLGLOBAL		0
8674#  endif
8675#endif
8676
8677/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8678   find out it does not work in some platform. */
8679#ifndef LT_DLLAZY_OR_NOW
8680#  ifdef RTLD_LAZY
8681#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8682#  else
8683#    ifdef DL_LAZY
8684#      define LT_DLLAZY_OR_NOW		DL_LAZY
8685#    else
8686#      ifdef RTLD_NOW
8687#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8688#      else
8689#        ifdef DL_NOW
8690#          define LT_DLLAZY_OR_NOW	DL_NOW
8691#        else
8692#          define LT_DLLAZY_OR_NOW	0
8693#        endif
8694#      endif
8695#    endif
8696#  endif
8697#endif
8698
8699#ifdef __cplusplus
8700extern "C" void exit (int);
8701#endif
8702
8703void fnord() { int i=42;}
8704int main ()
8705{
8706  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8707  int status = $lt_dlunknown;
8708
8709  if (self)
8710    {
8711      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8712      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8713      /* dlclose (self); */
8714    }
8715
8716    exit (status);
8717}
8718EOF
8719  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8720  (eval $ac_link) 2>&5
8721  ac_status=$?
8722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8724    (./conftest; exit; ) 2>/dev/null
8725    lt_status=$?
8726    case x$lt_status in
8727      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8728      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8729      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8730    esac
8731  else :
8732    # compilation failed
8733    lt_cv_dlopen_self_static=no
8734  fi
8735fi
8736rm -fr conftest*
8737
8738
8739fi
8740echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8741echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8742    fi
8743
8744    CPPFLAGS="$save_CPPFLAGS"
8745    LDFLAGS="$save_LDFLAGS"
8746    LIBS="$save_LIBS"
8747    ;;
8748  esac
8749
8750  case $lt_cv_dlopen_self in
8751  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8752  *) enable_dlopen_self=unknown ;;
8753  esac
8754
8755  case $lt_cv_dlopen_self_static in
8756  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8757  *) enable_dlopen_self_static=unknown ;;
8758  esac
8759fi
8760
8761
8762# Report which librarie types wil actually be built
8763echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8764echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8765echo "$as_me:$LINENO: result: $can_build_shared" >&5
8766echo "${ECHO_T}$can_build_shared" >&6
8767
8768echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8769echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8770test "$can_build_shared" = "no" && enable_shared=no
8771
8772# On AIX, shared libraries and static libraries use the same namespace, and
8773# are all built from PIC.
8774case "$host_os" in
8775aix3*)
8776  test "$enable_shared" = yes && enable_static=no
8777  if test -n "$RANLIB"; then
8778    archive_cmds="$archive_cmds~\$RANLIB \$lib"
8779    postinstall_cmds='$RANLIB $lib'
8780  fi
8781  ;;
8782
8783aix4*)
8784  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8785    test "$enable_shared" = yes && enable_static=no
8786  fi
8787  ;;
8788  darwin* | rhapsody*)
8789  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8790    archive_cmds_need_lc=no
8791    case "$host_os" in
8792    rhapsody* | darwin1.[012])
8793      allow_undefined_flag='-undefined suppress'
8794      ;;
8795    *) # Darwin 1.3 on
8796      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8797      ;;
8798    esac
8799    # FIXME: Relying on posixy $() will cause problems for
8800    #        cross-compilation, but unfortunately the echo tests do not
8801    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8802    #	       `"' quotes if we put them in here... so don't!
8803		output_verbose_link_cmd='echo'
8804    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8805    module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8806    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8807		  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}'
8808		  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}'
8809    hardcode_direct=no
8810    hardcode_automatic=yes
8811    hardcode_shlibpath_var=unsupported
8812    whole_archive_flag_spec='-all_load $convenience'
8813    link_all_deplibs=yes
8814    fi
8815    ;;
8816esac
8817echo "$as_me:$LINENO: result: $enable_shared" >&5
8818echo "${ECHO_T}$enable_shared" >&6
8819
8820echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8821echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8822# Make sure either enable_shared or enable_static is yes.
8823test "$enable_shared" = yes || enable_static=yes
8824echo "$as_me:$LINENO: result: $enable_static" >&5
8825echo "${ECHO_T}$enable_static" >&6
8826
8827# The else clause should only fire when bootstrapping the
8828# libtool distribution, otherwise you forgot to ship ltmain.sh
8829# with your package, and you will get complaints that there are
8830# no rules to generate ltmain.sh.
8831if test -f "$ltmain"; then
8832  # See if we are running on zsh, and set the options which allow our commands through
8833  # without removal of \ escapes.
8834  if test -n "${ZSH_VERSION+set}" ; then
8835    setopt NO_GLOB_SUBST
8836  fi
8837  # Now quote all the things that may contain metacharacters while being
8838  # careful not to overquote the AC_SUBSTed values.  We take copies of the
8839  # variables and quote the copies for generation of the libtool script.
8840  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8841    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8842    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8843    deplibs_check_method reload_flag reload_cmds need_locks \
8844    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8845    lt_cv_sys_global_symbol_to_c_name_address \
8846    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8847    old_postinstall_cmds old_postuninstall_cmds \
8848    compiler \
8849    CC \
8850    LD \
8851    lt_prog_compiler_wl \
8852    lt_prog_compiler_pic \
8853    lt_prog_compiler_static \
8854    lt_prog_compiler_no_builtin_flag \
8855    export_dynamic_flag_spec \
8856    thread_safe_flag_spec \
8857    whole_archive_flag_spec \
8858    enable_shared_with_static_runtimes \
8859    old_archive_cmds \
8860    old_archive_from_new_cmds \
8861    predep_objects \
8862    postdep_objects \
8863    predeps \
8864    postdeps \
8865    compiler_lib_search_path \
8866    archive_cmds \
8867    archive_expsym_cmds \
8868    postinstall_cmds \
8869    postuninstall_cmds \
8870    old_archive_from_expsyms_cmds \
8871    allow_undefined_flag \
8872    no_undefined_flag \
8873    export_symbols_cmds \
8874    hardcode_libdir_flag_spec \
8875    hardcode_libdir_flag_spec_ld \
8876    hardcode_libdir_separator \
8877    hardcode_automatic \
8878    module_cmds \
8879    module_expsym_cmds \
8880    lt_cv_prog_compiler_c_o \
8881    exclude_expsyms \
8882    include_expsyms; do
8883
8884    case $var in
8885    old_archive_cmds | \
8886    old_archive_from_new_cmds | \
8887    archive_cmds | \
8888    archive_expsym_cmds | \
8889    module_cmds | \
8890    module_expsym_cmds | \
8891    old_archive_from_expsyms_cmds | \
8892    export_symbols_cmds | \
8893    extract_expsyms_cmds | reload_cmds | finish_cmds | \
8894    postinstall_cmds | postuninstall_cmds | \
8895    old_postinstall_cmds | old_postuninstall_cmds | \
8896    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8897      # Double-quote double-evaled strings.
8898      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8899      ;;
8900    *)
8901      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8902      ;;
8903    esac
8904  done
8905
8906  case $lt_echo in
8907  *'\$0 --fallback-echo"')
8908    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8909    ;;
8910  esac
8911
8912cfgfile="${ofile}T"
8913  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8914  $rm -f "$cfgfile"
8915  { echo "$as_me:$LINENO: creating $ofile" >&5
8916echo "$as_me: creating $ofile" >&6;}
8917
8918  cat <<__EOF__ >> "$cfgfile"
8919#! $SHELL
8920
8921# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8922# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8923# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8924#
8925# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8926# Free Software Foundation, Inc.
8927#
8928# This file is part of GNU Libtool:
8929# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8930#
8931# This program is free software; you can redistribute it and/or modify
8932# it under the terms of the GNU General Public License as published by
8933# the Free Software Foundation; either version 2 of the License, or
8934# (at your option) any later version.
8935#
8936# This program is distributed in the hope that it will be useful, but
8937# WITHOUT ANY WARRANTY; without even the implied warranty of
8938# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8939# General Public License for more details.
8940#
8941# You should have received a copy of the GNU General Public License
8942# along with this program; if not, write to the Free Software
8943# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8944#
8945# As a special exception to the GNU General Public License, if you
8946# distribute this file as part of a program that contains a
8947# configuration script generated by Autoconf, you may include it under
8948# the same distribution terms that you use for the rest of that program.
8949
8950# A sed program that does not truncate output.
8951SED=$lt_SED
8952
8953# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8954Xsed="$SED -e s/^X//"
8955
8956# The HP-UX ksh and POSIX shell print the target directory to stdout
8957# if CDPATH is set.
8958if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8959
8960# The names of the tagged configurations supported by this script.
8961available_tags=
8962
8963# ### BEGIN LIBTOOL CONFIG
8964
8965# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8966
8967# Shell to use when invoking shell scripts.
8968SHELL=$lt_SHELL
8969
8970# Whether or not to build shared libraries.
8971build_libtool_libs=$enable_shared
8972
8973# Whether or not to build static libraries.
8974build_old_libs=$enable_static
8975
8976# Whether or not to add -lc for building shared libraries.
8977build_libtool_need_lc=$archive_cmds_need_lc
8978
8979# Whether or not to disallow shared libs when runtime libs are static
8980allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8981
8982# Whether or not to optimize for fast installation.
8983fast_install=$enable_fast_install
8984
8985# The host system.
8986host_alias=$host_alias
8987host=$host
8988
8989# An echo program that does not interpret backslashes.
8990echo=$lt_echo
8991
8992# The archiver.
8993AR=$lt_AR
8994AR_FLAGS=$lt_AR_FLAGS
8995
8996# A C compiler.
8997LTCC=$lt_LTCC
8998
8999# A language-specific compiler.
9000CC=$lt_compiler
9001
9002# Is the compiler the GNU C compiler?
9003with_gcc=$GCC
9004
9005# An ERE matcher.
9006EGREP=$lt_EGREP
9007
9008# The linker used to build libraries.
9009LD=$lt_LD
9010
9011# Whether we need hard or soft links.
9012LN_S=$lt_LN_S
9013
9014# A BSD-compatible nm program.
9015NM=$lt_NM
9016
9017# A symbol stripping program
9018STRIP=$STRIP
9019
9020# Used to examine libraries when file_magic_cmd begins "file"
9021MAGIC_CMD=$MAGIC_CMD
9022
9023# Used on cygwin: DLL creation program.
9024DLLTOOL="$DLLTOOL"
9025
9026# Used on cygwin: object dumper.
9027OBJDUMP="$OBJDUMP"
9028
9029# Used on cygwin: assembler.
9030AS="$AS"
9031
9032# The name of the directory that contains temporary libtool files.
9033objdir=$objdir
9034
9035# How to create reloadable object files.
9036reload_flag=$lt_reload_flag
9037reload_cmds=$lt_reload_cmds
9038
9039# How to pass a linker flag through the compiler.
9040wl=$lt_lt_prog_compiler_wl
9041
9042# Object file suffix (normally "o").
9043objext="$ac_objext"
9044
9045# Old archive suffix (normally "a").
9046libext="$libext"
9047
9048# Shared library suffix (normally ".so").
9049shrext='$shrext'
9050
9051# Executable file suffix (normally "").
9052exeext="$exeext"
9053
9054# Additional compiler flags for building library objects.
9055pic_flag=$lt_lt_prog_compiler_pic
9056pic_mode=$pic_mode
9057
9058# What is the maximum length of a command?
9059max_cmd_len=$lt_cv_sys_max_cmd_len
9060
9061# Does compiler simultaneously support -c and -o options?
9062compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9063
9064# Must we lock files when doing compilation ?
9065need_locks=$lt_need_locks
9066
9067# Do we need the lib prefix for modules?
9068need_lib_prefix=$need_lib_prefix
9069
9070# Do we need a version for libraries?
9071need_version=$need_version
9072
9073# Whether dlopen is supported.
9074dlopen_support=$enable_dlopen
9075
9076# Whether dlopen of programs is supported.
9077dlopen_self=$enable_dlopen_self
9078
9079# Whether dlopen of statically linked programs is supported.
9080dlopen_self_static=$enable_dlopen_self_static
9081
9082# Compiler flag to prevent dynamic linking.
9083link_static_flag=$lt_lt_prog_compiler_static
9084
9085# Compiler flag to turn off builtin functions.
9086no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9087
9088# Compiler flag to allow reflexive dlopens.
9089export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9090
9091# Compiler flag to generate shared objects directly from archives.
9092whole_archive_flag_spec=$lt_whole_archive_flag_spec
9093
9094# Compiler flag to generate thread-safe objects.
9095thread_safe_flag_spec=$lt_thread_safe_flag_spec
9096
9097# Library versioning type.
9098version_type=$version_type
9099
9100# Format of library name prefix.
9101libname_spec=$lt_libname_spec
9102
9103# List of archive names.  First name is the real one, the rest are links.
9104# The last name is the one that the linker finds with -lNAME.
9105library_names_spec=$lt_library_names_spec
9106
9107# The coded name of the library, if different from the real name.
9108soname_spec=$lt_soname_spec
9109
9110# Commands used to build and install an old-style archive.
9111RANLIB=$lt_RANLIB
9112old_archive_cmds=$lt_old_archive_cmds
9113old_postinstall_cmds=$lt_old_postinstall_cmds
9114old_postuninstall_cmds=$lt_old_postuninstall_cmds
9115
9116# Create an old-style archive from a shared archive.
9117old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9118
9119# Create a temporary old-style archive to link instead of a shared archive.
9120old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9121
9122# Commands used to build and install a shared archive.
9123archive_cmds=$lt_archive_cmds
9124archive_expsym_cmds=$lt_archive_expsym_cmds
9125postinstall_cmds=$lt_postinstall_cmds
9126postuninstall_cmds=$lt_postuninstall_cmds
9127
9128# Commands used to build a loadable module (assumed same as above if empty)
9129module_cmds=$lt_module_cmds
9130module_expsym_cmds=$lt_module_expsym_cmds
9131
9132# Commands to strip libraries.
9133old_striplib=$lt_old_striplib
9134striplib=$lt_striplib
9135
9136# Dependencies to place before the objects being linked to create a
9137# shared library.
9138predep_objects=$lt_predep_objects
9139
9140# Dependencies to place after the objects being linked to create a
9141# shared library.
9142postdep_objects=$lt_postdep_objects
9143
9144# Dependencies to place before the objects being linked to create a
9145# shared library.
9146predeps=$lt_predeps
9147
9148# Dependencies to place after the objects being linked to create a
9149# shared library.
9150postdeps=$lt_postdeps
9151
9152# The library search path used internally by the compiler when linking
9153# a shared library.
9154compiler_lib_search_path=$lt_compiler_lib_search_path
9155
9156# Method to check whether dependent libraries are shared objects.
9157deplibs_check_method=$lt_deplibs_check_method
9158
9159# Command to use when deplibs_check_method == file_magic.
9160file_magic_cmd=$lt_file_magic_cmd
9161
9162# Flag that allows shared libraries with undefined symbols to be built.
9163allow_undefined_flag=$lt_allow_undefined_flag
9164
9165# Flag that forces no undefined symbols.
9166no_undefined_flag=$lt_no_undefined_flag
9167
9168# Commands used to finish a libtool library installation in a directory.
9169finish_cmds=$lt_finish_cmds
9170
9171# Same as above, but a single script fragment to be evaled but not shown.
9172finish_eval=$lt_finish_eval
9173
9174# Take the output of nm and produce a listing of raw symbols and C names.
9175global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9176
9177# Transform the output of nm in a proper C declaration
9178global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9179
9180# Transform the output of nm in a C name address pair
9181global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9182
9183# This is the shared library runtime path variable.
9184runpath_var=$runpath_var
9185
9186# This is the shared library path variable.
9187shlibpath_var=$shlibpath_var
9188
9189# Is shlibpath searched before the hard-coded library search path?
9190shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9191
9192# How to hardcode a shared library path into an executable.
9193hardcode_action=$hardcode_action
9194
9195# Whether we should hardcode library paths into libraries.
9196hardcode_into_libs=$hardcode_into_libs
9197
9198# Flag to hardcode \$libdir into a binary during linking.
9199# This must work even if \$libdir does not exist.
9200hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9201
9202# If ld is used when linking, flag to hardcode \$libdir into
9203# a binary during linking. This must work even if \$libdir does
9204# not exist.
9205hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9206
9207# Whether we need a single -rpath flag with a separated argument.
9208hardcode_libdir_separator=$lt_hardcode_libdir_separator
9209
9210# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9211# resulting binary.
9212hardcode_direct=$hardcode_direct
9213
9214# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9215# resulting binary.
9216hardcode_minus_L=$hardcode_minus_L
9217
9218# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9219# the resulting binary.
9220hardcode_shlibpath_var=$hardcode_shlibpath_var
9221
9222# Set to yes if building a shared library automatically hardcodes DIR into the library
9223# and all subsequent libraries and executables linked against it.
9224hardcode_automatic=$hardcode_automatic
9225
9226# Variables whose values should be saved in libtool wrapper scripts and
9227# restored at relink time.
9228variables_saved_for_relink="$variables_saved_for_relink"
9229
9230# Whether libtool must link a program against all its dependency libraries.
9231link_all_deplibs=$link_all_deplibs
9232
9233# Compile-time system search path for libraries
9234sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9235
9236# Run-time system search path for libraries
9237sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9238
9239# Fix the shell variable \$srcfile for the compiler.
9240fix_srcfile_path="$fix_srcfile_path"
9241
9242# Set to yes if exported symbols are required.
9243always_export_symbols=$always_export_symbols
9244
9245# The commands to list exported symbols.
9246export_symbols_cmds=$lt_export_symbols_cmds
9247
9248# The commands to extract the exported symbol list from a shared archive.
9249extract_expsyms_cmds=$lt_extract_expsyms_cmds
9250
9251# Symbols that should not be listed in the preloaded symbols.
9252exclude_expsyms=$lt_exclude_expsyms
9253
9254# Symbols that must always be exported.
9255include_expsyms=$lt_include_expsyms
9256
9257# ### END LIBTOOL CONFIG
9258
9259__EOF__
9260
9261
9262  case $host_os in
9263  aix3*)
9264    cat <<\EOF >> "$cfgfile"
9265
9266# AIX sometimes has problems with the GCC collect2 program.  For some
9267# reason, if we set the COLLECT_NAMES environment variable, the problems
9268# vanish in a puff of smoke.
9269if test "X${COLLECT_NAMES+set}" != Xset; then
9270  COLLECT_NAMES=
9271  export COLLECT_NAMES
9272fi
9273EOF
9274    ;;
9275  esac
9276
9277  # We use sed instead of cat because bash on DJGPP gets confused if
9278  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9279  # text mode, it properly converts lines to CR/LF.  This bash problem
9280  # is reportedly fixed, but why not run on old versions too?
9281  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9282
9283  mv -f "$cfgfile" "$ofile" || \
9284    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9285  chmod +x "$ofile"
9286
9287else
9288  # If there is no Makefile yet, we rely on a make rule to execute
9289  # `config.status --recheck' to rerun these tests and create the
9290  # libtool script then.
9291  test -f Makefile && make "$ltmain"
9292fi
9293
9294
9295ac_ext=c
9296ac_cpp='$CPP $CPPFLAGS'
9297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9299ac_compiler_gnu=$ac_cv_c_compiler_gnu
9300
9301CC="$lt_save_CC"
9302
9303
9304# Check whether --with-tags or --without-tags was given.
9305if test "${with_tags+set}" = set; then
9306  withval="$with_tags"
9307  tagnames="$withval"
9308fi;
9309
9310if test -f "$ltmain" && test -n "$tagnames"; then
9311  if test ! -f "${ofile}"; then
9312    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9313echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9314  fi
9315
9316  if test -z "$LTCC"; then
9317    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9318    if test -z "$LTCC"; then
9319      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9320echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9321    else
9322      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9323echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9324    fi
9325  fi
9326
9327  # Extract list of available tagged configurations in $ofile.
9328  # Note that this assumes the entire list is on one line.
9329  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9330
9331  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9332  for tagname in $tagnames; do
9333    IFS="$lt_save_ifs"
9334    # Check whether tagname contains only valid characters
9335    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9336    "") ;;
9337    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9338echo "$as_me: error: invalid tag name: $tagname" >&2;}
9339   { (exit 1); exit 1; }; }
9340	;;
9341    esac
9342
9343    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9344    then
9345      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9346echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9347   { (exit 1); exit 1; }; }
9348    fi
9349
9350    # Update the list of available tags.
9351    if test -n "$tagname"; then
9352      echo appending configuration tag \"$tagname\" to $ofile
9353
9354      case $tagname in
9355      CXX)
9356	if test -n "$CXX" && test "X$CXX" != "Xno"; then
9357	  ac_ext=cc
9358ac_cpp='$CXXCPP $CPPFLAGS'
9359ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9360ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9361ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9362
9363
9364
9365
9366archive_cmds_need_lc_CXX=no
9367allow_undefined_flag_CXX=
9368always_export_symbols_CXX=no
9369archive_expsym_cmds_CXX=
9370export_dynamic_flag_spec_CXX=
9371hardcode_direct_CXX=no
9372hardcode_libdir_flag_spec_CXX=
9373hardcode_libdir_flag_spec_ld_CXX=
9374hardcode_libdir_separator_CXX=
9375hardcode_minus_L_CXX=no
9376hardcode_automatic_CXX=no
9377module_cmds_CXX=
9378module_expsym_cmds_CXX=
9379link_all_deplibs_CXX=unknown
9380old_archive_cmds_CXX=$old_archive_cmds
9381no_undefined_flag_CXX=
9382whole_archive_flag_spec_CXX=
9383enable_shared_with_static_runtimes_CXX=no
9384
9385# Dependencies to place before and after the object being linked:
9386predep_objects_CXX=
9387postdep_objects_CXX=
9388predeps_CXX=
9389postdeps_CXX=
9390compiler_lib_search_path_CXX=
9391
9392# Source file extension for C++ test sources.
9393ac_ext=cc
9394
9395# Object file extension for compiled C++ test sources.
9396objext=o
9397objext_CXX=$objext
9398
9399# Code to be used in simple compile tests
9400lt_simple_compile_test_code="int some_variable = 0;\n"
9401
9402# Code to be used in simple link tests
9403lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9404
9405# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9406
9407# If no C compiler was specified, use CC.
9408LTCC=${LTCC-"$CC"}
9409
9410# Allow CC to be a program name with arguments.
9411compiler=$CC
9412
9413
9414# Allow CC to be a program name with arguments.
9415lt_save_CC=$CC
9416lt_save_LD=$LD
9417lt_save_GCC=$GCC
9418GCC=$GXX
9419lt_save_with_gnu_ld=$with_gnu_ld
9420lt_save_path_LD=$lt_cv_path_LD
9421if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9422  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9423else
9424  unset lt_cv_prog_gnu_ld
9425fi
9426if test -n "${lt_cv_path_LDCXX+set}"; then
9427  lt_cv_path_LD=$lt_cv_path_LDCXX
9428else
9429  unset lt_cv_path_LD
9430fi
9431test -z "${LDCXX+set}" || LD=$LDCXX
9432CC=${CXX-"c++"}
9433compiler=$CC
9434compiler_CXX=$CC
9435cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9436
9437# We don't want -fno-exception wen compiling C++ code, so set the
9438# no_builtin_flag separately
9439if test "$GXX" = yes; then
9440  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9441else
9442  lt_prog_compiler_no_builtin_flag_CXX=
9443fi
9444
9445if test "$GXX" = yes; then
9446  # Set up default GNU C++ configuration
9447
9448
9449# Check whether --with-gnu-ld or --without-gnu-ld was given.
9450if test "${with_gnu_ld+set}" = set; then
9451  withval="$with_gnu_ld"
9452  test "$withval" = no || with_gnu_ld=yes
9453else
9454  with_gnu_ld=no
9455fi;
9456ac_prog=ld
9457if test "$GCC" = yes; then
9458  # Check if gcc -print-prog-name=ld gives a path.
9459  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9460echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9461  case $host in
9462  *-*-mingw*)
9463    # gcc leaves a trailing carriage return which upsets mingw
9464    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9465  *)
9466    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9467  esac
9468  case $ac_prog in
9469    # Accept absolute paths.
9470    [\\/]* | ?:[\\/]*)
9471      re_direlt='/[^/][^/]*/\.\./'
9472      # Canonicalize the path of ld
9473      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9474      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9475	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9476      done
9477      test -z "$LD" && LD="$ac_prog"
9478      ;;
9479  "")
9480    # If it fails, then pretend we aren't using GCC.
9481    ac_prog=ld
9482    ;;
9483  *)
9484    # If it is relative, then search for the first ld in PATH.
9485    with_gnu_ld=unknown
9486    ;;
9487  esac
9488elif test "$with_gnu_ld" = yes; then
9489  echo "$as_me:$LINENO: checking for GNU ld" >&5
9490echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9491else
9492  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9493echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9494fi
9495if test "${lt_cv_path_LD+set}" = set; then
9496  echo $ECHO_N "(cached) $ECHO_C" >&6
9497else
9498  if test -z "$LD"; then
9499  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9500  for ac_dir in $PATH; do
9501    IFS="$lt_save_ifs"
9502    test -z "$ac_dir" && ac_dir=.
9503    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9504      lt_cv_path_LD="$ac_dir/$ac_prog"
9505      # Check to see if the program is GNU ld.  I'd rather use --version,
9506      # but apparently some GNU ld's only accept -v.
9507      # Break only if it was the GNU/non-GNU ld that we prefer.
9508      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9509      *GNU* | *'with BFD'*)
9510	test "$with_gnu_ld" != no && break
9511	;;
9512      *)
9513	test "$with_gnu_ld" != yes && break
9514	;;
9515      esac
9516    fi
9517  done
9518  IFS="$lt_save_ifs"
9519else
9520  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9521fi
9522fi
9523
9524LD="$lt_cv_path_LD"
9525if test -n "$LD"; then
9526  echo "$as_me:$LINENO: result: $LD" >&5
9527echo "${ECHO_T}$LD" >&6
9528else
9529  echo "$as_me:$LINENO: result: no" >&5
9530echo "${ECHO_T}no" >&6
9531fi
9532test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9533echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9534   { (exit 1); exit 1; }; }
9535echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9536echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9537if test "${lt_cv_prog_gnu_ld+set}" = set; then
9538  echo $ECHO_N "(cached) $ECHO_C" >&6
9539else
9540  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9541case `"$LD" -v 2>&1 </dev/null` in
9542*GNU* | *'with BFD'*)
9543  lt_cv_prog_gnu_ld=yes
9544  ;;
9545*)
9546  lt_cv_prog_gnu_ld=no
9547  ;;
9548esac
9549fi
9550echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9551echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9552with_gnu_ld=$lt_cv_prog_gnu_ld
9553
9554
9555
9556  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9557  # archiving commands below assume that GNU ld is being used.
9558  if test "$with_gnu_ld" = yes; then
9559    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9560    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'
9561
9562    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9563    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9564
9565    # If archive_cmds runs LD, not CC, wlarc should be empty
9566    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9567    #     investigate it a little bit more. (MM)
9568    wlarc='${wl}'
9569
9570    # ancient GNU ld didn't support --whole-archive et. al.
9571    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9572	grep 'no-whole-archive' > /dev/null; then
9573      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9574    else
9575      whole_archive_flag_spec_CXX=
9576    fi
9577  else
9578    with_gnu_ld=no
9579    wlarc=
9580
9581    # A generic and very simple default shared library creation
9582    # command for GNU C++ for the case where it uses the native
9583    # linker, instead of GNU ld.  If possible, this setting should
9584    # overridden to take advantage of the native linker features on
9585    # the platform it is being used on.
9586    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9587  fi
9588
9589  # Commands to make compiler produce verbose output that lists
9590  # what "hidden" libraries, object files and flags are used when
9591  # linking a shared library.
9592  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9593
9594else
9595  GXX=no
9596  with_gnu_ld=no
9597  wlarc=
9598fi
9599
9600# PORTME: fill in a description of your system's C++ link characteristics
9601echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9602echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9603ld_shlibs_CXX=yes
9604case $host_os in
9605  aix3*)
9606    # FIXME: insert proper C++ library support
9607    ld_shlibs_CXX=no
9608    ;;
9609  aix4* | aix5*)
9610    if test "$host_cpu" = ia64; then
9611      # On IA64, the linker does run time linking by default, so we don't
9612      # have to do anything special.
9613      aix_use_runtimelinking=no
9614      exp_sym_flag='-Bexport'
9615      no_entry_flag=""
9616    else
9617      aix_use_runtimelinking=no
9618
9619      # Test if we are trying to use run time linking or normal
9620      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9621      # need to do runtime linking.
9622      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9623	for ld_flag in $LDFLAGS; do
9624	  case $ld_flag in
9625	  *-brtl*)
9626	    aix_use_runtimelinking=yes
9627	    break
9628	    ;;
9629	  esac
9630	done
9631      esac
9632
9633      exp_sym_flag='-bexport'
9634      no_entry_flag='-bnoentry'
9635    fi
9636
9637    # When large executables or shared objects are built, AIX ld can
9638    # have problems creating the table of contents.  If linking a library
9639    # or program results in "error TOC overflow" add -mminimal-toc to
9640    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9641    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9642
9643    archive_cmds_CXX=''
9644    hardcode_direct_CXX=yes
9645    hardcode_libdir_separator_CXX=':'
9646    link_all_deplibs_CXX=yes
9647
9648    if test "$GXX" = yes; then
9649      case $host_os in aix4.012|aix4.012.*)
9650      # We only want to do this on AIX 4.2 and lower, the check
9651      # below for broken collect2 doesn't work under 4.3+
9652	collect2name=`${CC} -print-prog-name=collect2`
9653	if test -f "$collect2name" && \
9654	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9655	then
9656	  # We have reworked collect2
9657	  hardcode_direct_CXX=yes
9658	else
9659	  # We have old collect2
9660	  hardcode_direct_CXX=unsupported
9661	  # It fails to find uninstalled libraries when the uninstalled
9662	  # path is not listed in the libpath.  Setting hardcode_minus_L
9663	  # to unsupported forces relinking
9664	  hardcode_minus_L_CXX=yes
9665	  hardcode_libdir_flag_spec_CXX='-L$libdir'
9666	  hardcode_libdir_separator_CXX=
9667	fi
9668      esac
9669      shared_flag='-shared'
9670    else
9671      # not using gcc
9672      if test "$host_cpu" = ia64; then
9673	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9674	# chokes on -Wl,-G. The following line is correct:
9675	shared_flag='-G'
9676      else
9677	if test "$aix_use_runtimelinking" = yes; then
9678	  shared_flag='${wl}-G'
9679	else
9680	  shared_flag='${wl}-bM:SRE'
9681	fi
9682      fi
9683    fi
9684
9685    # It seems that -bexpall does not export symbols beginning with
9686    # underscore (_), so it is better to generate a list of symbols to export.
9687    always_export_symbols_CXX=yes
9688    if test "$aix_use_runtimelinking" = yes; then
9689      # Warning - without using the other runtime loading flags (-brtl),
9690      # -berok will link without error, but may produce a broken library.
9691      allow_undefined_flag_CXX='-berok'
9692      # Determine the default libpath from the value encoded in an empty executable.
9693      cat >conftest.$ac_ext <<_ACEOF
9694#line $LINENO "configure"
9695/* confdefs.h.  */
9696_ACEOF
9697cat confdefs.h >>conftest.$ac_ext
9698cat >>conftest.$ac_ext <<_ACEOF
9699/* end confdefs.h.  */
9700
9701int
9702main ()
9703{
9704
9705  ;
9706  return 0;
9707}
9708_ACEOF
9709rm -f conftest.$ac_objext conftest$ac_exeext
9710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9711  (eval $ac_link) 2>&5
9712  ac_status=$?
9713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714  (exit $ac_status); } &&
9715         { ac_try='test -s conftest$ac_exeext'
9716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717  (eval $ac_try) 2>&5
9718  ac_status=$?
9719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720  (exit $ac_status); }; }; then
9721
9722aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9723}'`
9724# Check for a 64-bit object if we didn't find anything.
9725if 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; }
9726}'`; fi
9727else
9728  echo "$as_me: failed program was:" >&5
9729sed 's/^/| /' conftest.$ac_ext >&5
9730
9731fi
9732rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9733if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9734
9735      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9736
9737      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"
9738     else
9739      if test "$host_cpu" = ia64; then
9740	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9741	allow_undefined_flag_CXX="-z nodefs"
9742	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"
9743      else
9744	# Determine the default libpath from the value encoded in an empty executable.
9745	cat >conftest.$ac_ext <<_ACEOF
9746#line $LINENO "configure"
9747/* confdefs.h.  */
9748_ACEOF
9749cat confdefs.h >>conftest.$ac_ext
9750cat >>conftest.$ac_ext <<_ACEOF
9751/* end confdefs.h.  */
9752
9753int
9754main ()
9755{
9756
9757  ;
9758  return 0;
9759}
9760_ACEOF
9761rm -f conftest.$ac_objext conftest$ac_exeext
9762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9763  (eval $ac_link) 2>&5
9764  ac_status=$?
9765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766  (exit $ac_status); } &&
9767         { ac_try='test -s conftest$ac_exeext'
9768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769  (eval $ac_try) 2>&5
9770  ac_status=$?
9771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772  (exit $ac_status); }; }; then
9773
9774aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9775}'`
9776# Check for a 64-bit object if we didn't find anything.
9777if 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; }
9778}'`; fi
9779else
9780  echo "$as_me: failed program was:" >&5
9781sed 's/^/| /' conftest.$ac_ext >&5
9782
9783fi
9784rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9785if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9786
9787	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9788	# Warning - without using the other run time loading flags,
9789	# -berok will link without error, but may produce a broken library.
9790	no_undefined_flag_CXX=' ${wl}-bernotok'
9791	allow_undefined_flag_CXX=' ${wl}-berok'
9792	# -bexpall does not export symbols beginning with underscore (_)
9793	always_export_symbols_CXX=yes
9794	# Exported symbols can be pulled into shared objects from archives
9795	whole_archive_flag_spec_CXX=' '
9796	archive_cmds_need_lc_CXX=yes
9797	# This is similar to how AIX traditionally builds it's shared libraries.
9798	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'
9799      fi
9800    fi
9801    ;;
9802  chorus*)
9803    case $cc_basename in
9804      *)
9805	# FIXME: insert proper C++ library support
9806	ld_shlibs_CXX=no
9807	;;
9808    esac
9809    ;;
9810
9811  cygwin* | mingw* | pw32*)
9812    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9813    # as there is no search path for DLLs.
9814    hardcode_libdir_flag_spec_CXX='-L$libdir'
9815    allow_undefined_flag_CXX=unsupported
9816    always_export_symbols_CXX=no
9817    enable_shared_with_static_runtimes_CXX=yes
9818
9819    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9820      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'
9821      # If the export-symbols file already is a .def file (1st line
9822      # is EXPORTS), use it as is; otherwise, prepend...
9823      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9824	cp $export_symbols $output_objdir/$soname.def;
9825      else
9826	echo EXPORTS > $output_objdir/$soname.def;
9827	cat $export_symbols >> $output_objdir/$soname.def;
9828      fi~
9829      $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'
9830    else
9831      ld_shlibs_CXX=no
9832    fi
9833  ;;
9834
9835  darwin* | rhapsody*)
9836   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9837    archive_cmds_need_lc_CXX=no
9838    case "$host_os" in
9839    rhapsody* | darwin1.[012])
9840      allow_undefined_flag_CXX='-undefined suppress'
9841      ;;
9842    *) # Darwin 1.3 on
9843      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9844      ;;
9845    esac
9846    	lt_int_apple_cc_single_mod=no
9847    	output_verbose_link_cmd='echo'
9848    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9849    	  lt_int_apple_cc_single_mod=yes
9850    	fi
9851    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9852    	  archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9853    	else
9854        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'
9855      fi
9856      module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9857
9858    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9859      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9860        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}'
9861      else
9862        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}'
9863      fi
9864        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}'
9865    hardcode_direct_CXX=no
9866    hardcode_automatic_CXX=yes
9867    hardcode_shlibpath_var_CXX=unsupported
9868    whole_archive_flag_spec_CXX='-all_load $convenience'
9869    link_all_deplibs_CXX=yes
9870   fi
9871    ;;
9872
9873  dgux*)
9874    case $cc_basename in
9875      ec++)
9876	# FIXME: insert proper C++ library support
9877	ld_shlibs_CXX=no
9878	;;
9879      ghcx)
9880	# Green Hills C++ Compiler
9881	# FIXME: insert proper C++ library support
9882	ld_shlibs_CXX=no
9883	;;
9884      *)
9885	# FIXME: insert proper C++ library support
9886	ld_shlibs_CXX=no
9887	;;
9888    esac
9889    ;;
9890  freebsd12*)
9891    # C++ shared libraries reported to be fairly broken before switch to ELF
9892    ld_shlibs_CXX=no
9893    ;;
9894  freebsd-elf*)
9895    archive_cmds_need_lc_CXX=no
9896    ;;
9897  freebsd*)
9898    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9899    # conventions
9900    ld_shlibs_CXX=yes
9901    ;;
9902  gnu*)
9903    ;;
9904  hpux9*)
9905    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9906    hardcode_libdir_separator_CXX=:
9907    export_dynamic_flag_spec_CXX='${wl}-E'
9908    hardcode_direct_CXX=yes
9909    hardcode_minus_L_CXX=yes # Not in the search PATH,
9910				# but as the default
9911				# location of the library.
9912
9913    case $cc_basename in
9914    CC)
9915      # FIXME: insert proper C++ library support
9916      ld_shlibs_CXX=no
9917      ;;
9918    aCC)
9919      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'
9920      # Commands to make compiler produce verbose output that lists
9921      # what "hidden" libraries, object files and flags are used when
9922      # linking a shared library.
9923      #
9924      # There doesn't appear to be a way to prevent this compiler from
9925      # explicitly linking system object files so we need to strip them
9926      # from the output so that they don't get included in the library
9927      # dependencies.
9928      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'
9929      ;;
9930    *)
9931      if test "$GXX" = yes; then
9932        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'
9933      else
9934        # FIXME: insert proper C++ library support
9935        ld_shlibs_CXX=no
9936      fi
9937      ;;
9938    esac
9939    ;;
9940  hpux10*|hpux11*)
9941    if test $with_gnu_ld = no; then
9942      case "$host_cpu" in
9943      hppa*64*)
9944	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9945	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9946	hardcode_libdir_separator_CXX=:
9947        ;;
9948      ia64*)
9949	hardcode_libdir_flag_spec_CXX='-L$libdir'
9950        ;;
9951      *)
9952	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9953	hardcode_libdir_separator_CXX=:
9954	export_dynamic_flag_spec_CXX='${wl}-E'
9955        ;;
9956      esac
9957    fi
9958    case "$host_cpu" in
9959    hppa*64*)
9960      hardcode_direct_CXX=no
9961      hardcode_shlibpath_var_CXX=no
9962      ;;
9963    ia64*)
9964      hardcode_direct_CXX=no
9965      hardcode_shlibpath_var_CXX=no
9966      hardcode_minus_L_CXX=yes # Not in the search PATH,
9967					      # but as the default
9968					      # location of the library.
9969      ;;
9970    *)
9971      hardcode_direct_CXX=yes
9972      hardcode_minus_L_CXX=yes # Not in the search PATH,
9973					      # but as the default
9974					      # location of the library.
9975      ;;
9976    esac
9977
9978    case $cc_basename in
9979      CC)
9980	# FIXME: insert proper C++ library support
9981	ld_shlibs_CXX=no
9982	;;
9983      aCC)
9984	case "$host_cpu" in
9985	hppa*64*|ia64*)
9986	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9987	  ;;
9988	*)
9989	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9990	  ;;
9991	esac
9992	# Commands to make compiler produce verbose output that lists
9993	# what "hidden" libraries, object files and flags are used when
9994	# linking a shared library.
9995	#
9996	# There doesn't appear to be a way to prevent this compiler from
9997	# explicitly linking system object files so we need to strip them
9998	# from the output so that they don't get included in the library
9999	# dependencies.
10000	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'
10001	;;
10002      *)
10003	if test "$GXX" = yes; then
10004	  if test $with_gnu_ld = no; then
10005	    case "$host_cpu" in
10006	    ia64*|hppa*64*)
10007	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10008	      ;;
10009	    *)
10010	      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'
10011	      ;;
10012	    esac
10013	  fi
10014	else
10015	  # FIXME: insert proper C++ library support
10016	  ld_shlibs_CXX=no
10017	fi
10018	;;
10019    esac
10020    ;;
10021  irix5* | irix6*)
10022    case $cc_basename in
10023      CC)
10024	# SGI C++
10025	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'
10026
10027	# Archives containing C++ object files must be created using
10028	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10029	# necessary to make sure instantiated templates are included
10030	# in the archive.
10031	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10032	;;
10033      *)
10034	if test "$GXX" = yes; then
10035	  if test "$with_gnu_ld" = no; then
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` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10037	  else
10038	    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'
10039	  fi
10040	fi
10041	link_all_deplibs_CXX=yes
10042	;;
10043    esac
10044    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10045    hardcode_libdir_separator_CXX=:
10046    ;;
10047  linux*)
10048    case $cc_basename in
10049      KCC)
10050	# Kuck and Associates, Inc. (KAI) C++ Compiler
10051
10052	# KCC will only create a shared library if the output file
10053	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10054	# to its proper name (with version) after linking.
10055	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'
10056	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'
10057	# Commands to make compiler produce verbose output that lists
10058	# what "hidden" libraries, object files and flags are used when
10059	# linking a shared library.
10060	#
10061	# There doesn't appear to be a way to prevent this compiler from
10062	# explicitly linking system object files so we need to strip them
10063	# from the output so that they don't get included in the library
10064	# dependencies.
10065	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'
10066
10067	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10068	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10069
10070	# Archives containing C++ object files must be created using
10071	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10072	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10073	;;
10074      icpc)
10075	# Intel C++
10076	with_gnu_ld=yes
10077	archive_cmds_need_lc_CXX=no
10078	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10079	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'
10080	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10081	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10082	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10083	;;
10084      cxx)
10085	# Compaq C++
10086	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10087	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'
10088
10089	runpath_var=LD_RUN_PATH
10090	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10091	hardcode_libdir_separator_CXX=:
10092
10093	# Commands to make compiler produce verbose output that lists
10094	# what "hidden" libraries, object files and flags are used when
10095	# linking a shared library.
10096	#
10097	# There doesn't appear to be a way to prevent this compiler from
10098	# explicitly linking system object files so we need to strip them
10099	# from the output so that they don't get included in the library
10100	# dependencies.
10101	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'
10102	;;
10103    esac
10104    ;;
10105  lynxos*)
10106    # FIXME: insert proper C++ library support
10107    ld_shlibs_CXX=no
10108    ;;
10109  m88k*)
10110    # FIXME: insert proper C++ library support
10111    ld_shlibs_CXX=no
10112    ;;
10113  mvs*)
10114    case $cc_basename in
10115      cxx)
10116	# FIXME: insert proper C++ library support
10117	ld_shlibs_CXX=no
10118	;;
10119      *)
10120	# FIXME: insert proper C++ library support
10121	ld_shlibs_CXX=no
10122	;;
10123    esac
10124    ;;
10125  netbsd*)
10126    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10127      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10128      wlarc=
10129      hardcode_libdir_flag_spec_CXX='-R$libdir'
10130      hardcode_direct_CXX=yes
10131      hardcode_shlibpath_var_CXX=no
10132    fi
10133    # Workaround some broken pre-1.5 toolchains
10134    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10135    ;;
10136  osf3*)
10137    case $cc_basename in
10138      KCC)
10139	# Kuck and Associates, Inc. (KAI) C++ Compiler
10140
10141	# KCC will only create a shared library if the output file
10142	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10143	# to its proper name (with version) after linking.
10144	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'
10145
10146	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10147	hardcode_libdir_separator_CXX=:
10148
10149	# Archives containing C++ object files must be created using
10150	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10151	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10152
10153	;;
10154      RCC)
10155	# Rational C++ 2.4.1
10156	# FIXME: insert proper C++ library support
10157	ld_shlibs_CXX=no
10158	;;
10159      cxx)
10160	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10161	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'
10162
10163	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10164	hardcode_libdir_separator_CXX=:
10165
10166	# Commands to make compiler produce verbose output that lists
10167	# what "hidden" libraries, object files and flags are used when
10168	# linking a shared library.
10169	#
10170	# There doesn't appear to be a way to prevent this compiler from
10171	# explicitly linking system object files so we need to strip them
10172	# from the output so that they don't get included in the library
10173	# dependencies.
10174	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'
10175	;;
10176      *)
10177	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10178	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10179	  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'
10180
10181	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10182	  hardcode_libdir_separator_CXX=:
10183
10184	  # Commands to make compiler produce verbose output that lists
10185	  # what "hidden" libraries, object files and flags are used when
10186	  # linking a shared library.
10187	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10188
10189	else
10190	  # FIXME: insert proper C++ library support
10191	  ld_shlibs_CXX=no
10192	fi
10193	;;
10194    esac
10195    ;;
10196  osf4* | osf5*)
10197    case $cc_basename in
10198      KCC)
10199	# Kuck and Associates, Inc. (KAI) C++ Compiler
10200
10201	# KCC will only create a shared library if the output file
10202	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10203	# to its proper name (with version) after linking.
10204	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'
10205
10206	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10207	hardcode_libdir_separator_CXX=:
10208
10209	# Archives containing C++ object files must be created using
10210	# the KAI C++ compiler.
10211	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10212	;;
10213      RCC)
10214	# Rational C++ 2.4.1
10215	# FIXME: insert proper C++ library support
10216	ld_shlibs_CXX=no
10217	;;
10218      cxx)
10219	allow_undefined_flag_CXX=' -expect_unresolved \*'
10220	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'
10221	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10222	  echo "-hidden">> $lib.exp~
10223	  $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~
10224	  $rm $lib.exp'
10225
10226	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10227	hardcode_libdir_separator_CXX=:
10228
10229	# Commands to make compiler produce verbose output that lists
10230	# what "hidden" libraries, object files and flags are used when
10231	# linking a shared library.
10232	#
10233	# There doesn't appear to be a way to prevent this compiler from
10234	# explicitly linking system object files so we need to strip them
10235	# from the output so that they don't get included in the library
10236	# dependencies.
10237	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'
10238	;;
10239      *)
10240	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10241	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10242	 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'
10243
10244	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10245	  hardcode_libdir_separator_CXX=:
10246
10247	  # Commands to make compiler produce verbose output that lists
10248	  # what "hidden" libraries, object files and flags are used when
10249	  # linking a shared library.
10250	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10251
10252	else
10253	  # FIXME: insert proper C++ library support
10254	  ld_shlibs_CXX=no
10255	fi
10256	;;
10257    esac
10258    ;;
10259  psos*)
10260    # FIXME: insert proper C++ library support
10261    ld_shlibs_CXX=no
10262    ;;
10263  sco*)
10264    archive_cmds_need_lc_CXX=no
10265    case $cc_basename in
10266      CC)
10267	# FIXME: insert proper C++ library support
10268	ld_shlibs_CXX=no
10269	;;
10270      *)
10271	# FIXME: insert proper C++ library support
10272	ld_shlibs_CXX=no
10273	;;
10274    esac
10275    ;;
10276  sunos4*)
10277    case $cc_basename in
10278      CC)
10279	# Sun C++ 4.x
10280	# FIXME: insert proper C++ library support
10281	ld_shlibs_CXX=no
10282	;;
10283      lcc)
10284	# Lucid
10285	# FIXME: insert proper C++ library support
10286	ld_shlibs_CXX=no
10287	;;
10288      *)
10289	# FIXME: insert proper C++ library support
10290	ld_shlibs_CXX=no
10291	;;
10292    esac
10293    ;;
10294  solaris*)
10295    case $cc_basename in
10296      CC)
10297	# Sun C++ 4.2, 5.x and Centerline C++
10298	no_undefined_flag_CXX=' -zdefs'
10299	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10300	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10301	$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'
10302
10303	hardcode_libdir_flag_spec_CXX='-R$libdir'
10304	hardcode_shlibpath_var_CXX=no
10305	case $host_os in
10306	  solaris2.0-5 | solaris2.0-5.*) ;;
10307	  *)
10308	    # The C++ compiler is used as linker so we must use $wl
10309	    # flag to pass the commands to the underlying system
10310	    # linker.
10311	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10312	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10313	    ;;
10314	esac
10315	link_all_deplibs_CXX=yes
10316
10317	# Commands to make compiler produce verbose output that lists
10318	# what "hidden" libraries, object files and flags are used when
10319	# linking a shared library.
10320	#
10321	# There doesn't appear to be a way to prevent this compiler from
10322	# explicitly linking system object files so we need to strip them
10323	# from the output so that they don't get included in the library
10324	# dependencies.
10325	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'
10326
10327	# Archives containing C++ object files must be created using
10328	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10329	# necessary to make sure instantiated templates are included
10330	# in the archive.
10331	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10332	;;
10333      gcx)
10334	# Green Hills C++ Compiler
10335	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10336
10337	# The C++ compiler must be used to create the archive.
10338	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10339	;;
10340      *)
10341	# GNU C++ compiler with Solaris linker
10342	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10343	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10344	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10345	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10346	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10347		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10348
10349	    # Commands to make compiler produce verbose output that lists
10350	    # what "hidden" libraries, object files and flags are used when
10351	    # linking a shared library.
10352	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10353	  else
10354	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10355	    # platform.
10356	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10357	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10358		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10359
10360	    # Commands to make compiler produce verbose output that lists
10361	    # what "hidden" libraries, object files and flags are used when
10362	    # linking a shared library.
10363	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10364	  fi
10365
10366	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10367	fi
10368	;;
10369    esac
10370    ;;
10371  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10372    archive_cmds_need_lc_CXX=no
10373    ;;
10374  tandem*)
10375    case $cc_basename in
10376      NCC)
10377	# NonStop-UX NCC 3.20
10378	# FIXME: insert proper C++ library support
10379	ld_shlibs_CXX=no
10380	;;
10381      *)
10382	# FIXME: insert proper C++ library support
10383	ld_shlibs_CXX=no
10384	;;
10385    esac
10386    ;;
10387  vxworks*)
10388    # FIXME: insert proper C++ library support
10389    ld_shlibs_CXX=no
10390    ;;
10391  *)
10392    # FIXME: insert proper C++ library support
10393    ld_shlibs_CXX=no
10394    ;;
10395esac
10396echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10397echo "${ECHO_T}$ld_shlibs_CXX" >&6
10398test "$ld_shlibs_CXX" = no && can_build_shared=no
10399
10400GCC_CXX="$GXX"
10401LD_CXX="$LD"
10402
10403## CAVEAT EMPTOR:
10404## There is no encapsulation within the following macros, do not change
10405## the running order or otherwise move them around unless you know exactly
10406## what you are doing...
10407
10408cat > conftest.$ac_ext <<EOF
10409class Foo
10410{
10411public:
10412  Foo (void) { a = 0; }
10413private:
10414  int a;
10415};
10416EOF
10417
10418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10419  (eval $ac_compile) 2>&5
10420  ac_status=$?
10421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422  (exit $ac_status); }; then
10423  # Parse the compiler output and extract the necessary
10424  # objects, libraries and library flags.
10425
10426  # Sentinel used to keep track of whether or not we are before
10427  # the conftest object file.
10428  pre_test_object_deps_done=no
10429
10430  # The `*' in the case matches for architectures that use `case' in
10431  # $output_verbose_cmd can trigger glob expansion during the loop
10432  # eval without this substitution.
10433  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10434
10435  for p in `eval $output_verbose_link_cmd`; do
10436    case $p in
10437
10438    -L* | -R* | -l*)
10439       # Some compilers place space between "-{L,R}" and the path.
10440       # Remove the space.
10441       if test $p = "-L" \
10442	  || test $p = "-R"; then
10443	 prev=$p
10444	 continue
10445       else
10446	 prev=
10447       fi
10448
10449       if test "$pre_test_object_deps_done" = no; then
10450	 case $p in
10451	 -L* | -R*)
10452	   # Internal compiler library paths should come after those
10453	   # provided the user.  The postdeps already come after the
10454	   # user supplied libs so there is no need to process them.
10455	   if test -z "$compiler_lib_search_path_CXX"; then
10456	     compiler_lib_search_path_CXX="${prev}${p}"
10457	   else
10458	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10459	   fi
10460	   ;;
10461	 # The "-l" case would never come before the object being
10462	 # linked, so don't bother handling this case.
10463	 esac
10464       else
10465	 if test -z "$postdeps_CXX"; then
10466	   postdeps_CXX="${prev}${p}"
10467	 else
10468	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10469	 fi
10470       fi
10471       ;;
10472
10473    *.$objext)
10474       # This assumes that the test object file only shows up
10475       # once in the compiler output.
10476       if test "$p" = "conftest.$objext"; then
10477	 pre_test_object_deps_done=yes
10478	 continue
10479       fi
10480
10481       if test "$pre_test_object_deps_done" = no; then
10482	 if test -z "$predep_objects_CXX"; then
10483	   predep_objects_CXX="$p"
10484	 else
10485	   predep_objects_CXX="$predep_objects_CXX $p"
10486	 fi
10487       else
10488	 if test -z "$postdep_objects_CXX"; then
10489	   postdep_objects_CXX="$p"
10490	 else
10491	   postdep_objects_CXX="$postdep_objects_CXX $p"
10492	 fi
10493       fi
10494       ;;
10495
10496    *) ;; # Ignore the rest.
10497
10498    esac
10499  done
10500
10501  # Clean up.
10502  rm -f a.out a.exe
10503else
10504  echo "libtool.m4: error: problem compiling CXX test program"
10505fi
10506
10507$rm -f confest.$objext
10508
10509case " $postdeps_CXX " in
10510*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10511esac
10512
10513lt_prog_compiler_wl_CXX=
10514lt_prog_compiler_pic_CXX=
10515lt_prog_compiler_static_CXX=
10516
10517echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10518echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10519
10520  # C++ specific cases for pic, static, wl, etc.
10521  if test "$GXX" = yes; then
10522    lt_prog_compiler_wl_CXX='-Wl,'
10523    lt_prog_compiler_static_CXX='-static'
10524
10525    case $host_os in
10526    aix*)
10527      # All AIX code is PIC.
10528      if test "$host_cpu" = ia64; then
10529	# AIX 5 now supports IA64 processor
10530	lt_prog_compiler_static_CXX='-Bstatic'
10531      fi
10532      ;;
10533    amigaos*)
10534      # FIXME: we need at least 68020 code to build shared libraries, but
10535      # adding the `-m68020' flag to GCC prevents building anything better,
10536      # like `-m68040'.
10537      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10538      ;;
10539    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10540      # PIC is the default for these OSes.
10541      ;;
10542    mingw* | os2* | pw32*)
10543      # This hack is so that the source file can tell whether it is being
10544      # built for inclusion in a dll (and should export symbols for example).
10545      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10546      ;;
10547    darwin* | rhapsody*)
10548      # PIC is the default on this platform
10549      # Common symbols not allowed in MH_DYLIB files
10550      lt_prog_compiler_pic_CXX='-fno-common'
10551      ;;
10552    *djgpp*)
10553      # DJGPP does not support shared libraries at all
10554      lt_prog_compiler_pic_CXX=
10555      ;;
10556    sysv4*MP*)
10557      if test -d /usr/nec; then
10558	lt_prog_compiler_pic_CXX=-Kconform_pic
10559      fi
10560      ;;
10561    hpux*)
10562      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10563      # not for PA HP-UX.
10564      case "$host_cpu" in
10565      hppa*64*|ia64*)
10566	;;
10567      *)
10568	lt_prog_compiler_pic_CXX='-fPIC'
10569	;;
10570      esac
10571      ;;
10572    *)
10573      lt_prog_compiler_pic_CXX='-fPIC'
10574      ;;
10575    esac
10576  else
10577    case $host_os in
10578      aix4* | aix5*)
10579	# All AIX code is PIC.
10580	if test "$host_cpu" = ia64; then
10581	  # AIX 5 now supports IA64 processor
10582	  lt_prog_compiler_static_CXX='-Bstatic'
10583	else
10584	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10585	fi
10586	;;
10587      chorus*)
10588	case $cc_basename in
10589	cxch68)
10590	  # Green Hills C++ Compiler
10591	  # _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"
10592	  ;;
10593	esac
10594	;;
10595      dgux*)
10596	case $cc_basename in
10597	  ec++)
10598	    lt_prog_compiler_pic_CXX='-KPIC'
10599	    ;;
10600	  ghcx)
10601	    # Green Hills C++ Compiler
10602	    lt_prog_compiler_pic_CXX='-pic'
10603	    ;;
10604	  *)
10605	    ;;
10606	esac
10607	;;
10608      freebsd*)
10609	# FreeBSD uses GNU C++
10610	;;
10611      hpux9* | hpux10* | hpux11*)
10612	case $cc_basename in
10613	  CC)
10614	    lt_prog_compiler_wl_CXX='-Wl,'
10615	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10616	    if test "$host_cpu" != ia64; then
10617	      lt_prog_compiler_pic_CXX='+Z'
10618	    fi
10619	    ;;
10620	  aCC)
10621	    lt_prog_compiler_wl_CXX='-Wl,'
10622	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10623	    case "$host_cpu" in
10624	    hppa*64*|ia64*)
10625	      # +Z the default
10626	      ;;
10627	    *)
10628	      lt_prog_compiler_pic_CXX='+Z'
10629	      ;;
10630	    esac
10631	    ;;
10632	  *)
10633	    ;;
10634	esac
10635	;;
10636      irix5* | irix6* | nonstopux*)
10637	case $cc_basename in
10638	  CC)
10639	    lt_prog_compiler_wl_CXX='-Wl,'
10640	    lt_prog_compiler_static_CXX='-non_shared'
10641	    # CC pic flag -KPIC is the default.
10642	    ;;
10643	  *)
10644	    ;;
10645	esac
10646	;;
10647      linux*)
10648	case $cc_basename in
10649	  KCC)
10650	    # KAI C++ Compiler
10651	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10652	    lt_prog_compiler_pic_CXX='-fPIC'
10653	    ;;
10654	  icpc)
10655	    # Intel C++
10656	    lt_prog_compiler_wl_CXX='-Wl,'
10657	    lt_prog_compiler_pic_CXX='-KPIC'
10658	    lt_prog_compiler_static_CXX='-static'
10659	    ;;
10660	  cxx)
10661	    # Compaq C++
10662	    # Make sure the PIC flag is empty.  It appears that all Alpha
10663	    # Linux and Compaq Tru64 Unix objects are PIC.
10664	    lt_prog_compiler_pic_CXX=
10665	    lt_prog_compiler_static_CXX='-non_shared'
10666	    ;;
10667	  *)
10668	    ;;
10669	esac
10670	;;
10671      lynxos*)
10672	;;
10673      m88k*)
10674	;;
10675      mvs*)
10676	case $cc_basename in
10677	  cxx)
10678	    lt_prog_compiler_pic_CXX='-W c,exportall'
10679	    ;;
10680	  *)
10681	    ;;
10682	esac
10683	;;
10684      netbsd*)
10685	;;
10686      osf3* | osf4* | osf5*)
10687	case $cc_basename in
10688	  KCC)
10689	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10690	    ;;
10691	  RCC)
10692	    # Rational C++ 2.4.1
10693	    lt_prog_compiler_pic_CXX='-pic'
10694	    ;;
10695	  cxx)
10696	    # Digital/Compaq C++
10697	    lt_prog_compiler_wl_CXX='-Wl,'
10698	    # Make sure the PIC flag is empty.  It appears that all Alpha
10699	    # Linux and Compaq Tru64 Unix objects are PIC.
10700	    lt_prog_compiler_pic_CXX=
10701	    lt_prog_compiler_static_CXX='-non_shared'
10702	    ;;
10703	  *)
10704	    ;;
10705	esac
10706	;;
10707      psos*)
10708	;;
10709      sco*)
10710	case $cc_basename in
10711	  CC)
10712	    lt_prog_compiler_pic_CXX='-fPIC'
10713	    ;;
10714	  *)
10715	    ;;
10716	esac
10717	;;
10718      solaris*)
10719	case $cc_basename in
10720	  CC)
10721	    # Sun C++ 4.2, 5.x and Centerline C++
10722	    lt_prog_compiler_pic_CXX='-KPIC'
10723	    lt_prog_compiler_static_CXX='-Bstatic'
10724	    lt_prog_compiler_wl_CXX='-Qoption ld '
10725	    ;;
10726	  gcx)
10727	    # Green Hills C++ Compiler
10728	    lt_prog_compiler_pic_CXX='-PIC'
10729	    ;;
10730	  *)
10731	    ;;
10732	esac
10733	;;
10734      sunos4*)
10735	case $cc_basename in
10736	  CC)
10737	    # Sun C++ 4.x
10738	    lt_prog_compiler_pic_CXX='-pic'
10739	    lt_prog_compiler_static_CXX='-Bstatic'
10740	    ;;
10741	  lcc)
10742	    # Lucid
10743	    lt_prog_compiler_pic_CXX='-pic'
10744	    ;;
10745	  *)
10746	    ;;
10747	esac
10748	;;
10749      tandem*)
10750	case $cc_basename in
10751	  NCC)
10752	    # NonStop-UX NCC 3.20
10753	    lt_prog_compiler_pic_CXX='-KPIC'
10754	    ;;
10755	  *)
10756	    ;;
10757	esac
10758	;;
10759      unixware*)
10760	;;
10761      vxworks*)
10762	;;
10763      *)
10764	lt_prog_compiler_can_build_shared_CXX=no
10765	;;
10766    esac
10767  fi
10768
10769echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10770echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10771
10772#
10773# Check to make sure the PIC flag actually works.
10774#
10775if test -n "$lt_prog_compiler_pic_CXX"; then
10776  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10777echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10778if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10779  echo $ECHO_N "(cached) $ECHO_C" >&6
10780else
10781  lt_prog_compiler_pic_works_CXX=no
10782  ac_outfile=conftest.$ac_objext
10783   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10784   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10785   # Insert the option either (1) after the last *FLAGS variable, or
10786   # (2) before a word containing "conftest.", or (3) at the end.
10787   # Note that $ac_compile itself does not contain backslashes and begins
10788   # with a dollar sign (not a hyphen), so the echo should work correctly.
10789   # The option is referenced via a variable to avoid confusing sed.
10790   lt_compile=`echo "$ac_compile" | $SED \
10791   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10792   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10793   -e 's:$: $lt_compiler_flag:'`
10794   (eval echo "\"\$as_me:10794: $lt_compile\"" >&5)
10795   (eval "$lt_compile" 2>conftest.err)
10796   ac_status=$?
10797   cat conftest.err >&5
10798   echo "$as_me:10798: \$? = $ac_status" >&5
10799   if (exit $ac_status) && test -s "$ac_outfile"; then
10800     # The compiler can only warn and ignore the option if not recognized
10801     # So say no if there are warnings
10802     if test ! -s conftest.err; then
10803       lt_prog_compiler_pic_works_CXX=yes
10804     fi
10805   fi
10806   $rm conftest*
10807
10808fi
10809echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10810echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10811
10812if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10813    case $lt_prog_compiler_pic_CXX in
10814     "" | " "*) ;;
10815     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10816     esac
10817else
10818    lt_prog_compiler_pic_CXX=
10819     lt_prog_compiler_can_build_shared_CXX=no
10820fi
10821
10822fi
10823case "$host_os" in
10824  # For platforms which do not support PIC, -DPIC is meaningless:
10825  *djgpp*)
10826    lt_prog_compiler_pic_CXX=
10827    ;;
10828  *)
10829    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10830    ;;
10831esac
10832
10833echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10834echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10835if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10836  echo $ECHO_N "(cached) $ECHO_C" >&6
10837else
10838  lt_cv_prog_compiler_c_o_CXX=no
10839   $rm -r conftest 2>/dev/null
10840   mkdir conftest
10841   cd conftest
10842   mkdir out
10843   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10844
10845   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10846   # that will create temporary files in the current directory regardless of
10847   # the output directory.  Thus, making CWD read-only will cause this test
10848   # to fail, enabling locking or at least warning the user not to do parallel
10849   # builds.
10850   chmod -w .
10851
10852   lt_compiler_flag="-o out/conftest2.$ac_objext"
10853   # Insert the option either (1) after the last *FLAGS variable, or
10854   # (2) before a word containing "conftest.", or (3) at the end.
10855   # Note that $ac_compile itself does not contain backslashes and begins
10856   # with a dollar sign (not a hyphen), so the echo should work correctly.
10857   lt_compile=`echo "$ac_compile" | $SED \
10858   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10859   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10860   -e 's:$: $lt_compiler_flag:'`
10861   (eval echo "\"\$as_me:10861: $lt_compile\"" >&5)
10862   (eval "$lt_compile" 2>out/conftest.err)
10863   ac_status=$?
10864   cat out/conftest.err >&5
10865   echo "$as_me:10865: \$? = $ac_status" >&5
10866   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10867   then
10868     # The compiler can only warn and ignore the option if not recognized
10869     # So say no if there are warnings
10870     if test ! -s out/conftest.err; then
10871       lt_cv_prog_compiler_c_o_CXX=yes
10872     fi
10873   fi
10874   chmod u+w .
10875   $rm conftest* out/*
10876   rmdir out
10877   cd ..
10878   rmdir conftest
10879   $rm conftest*
10880
10881fi
10882echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10883echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10884
10885
10886hard_links="nottested"
10887if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10888  # do not overwrite the value of need_locks provided by the user
10889  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10890echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10891  hard_links=yes
10892  $rm conftest*
10893  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10894  touch conftest.a
10895  ln conftest.a conftest.b 2>&5 || hard_links=no
10896  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10897  echo "$as_me:$LINENO: result: $hard_links" >&5
10898echo "${ECHO_T}$hard_links" >&6
10899  if test "$hard_links" = no; then
10900    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10901echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10902    need_locks=warn
10903  fi
10904else
10905  need_locks=no
10906fi
10907
10908echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10909echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10910
10911  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10912  case $host_os in
10913  aix4* | aix5*)
10914    # If we're using GNU nm, then we don't want the "-C" option.
10915    # -C means demangle to AIX nm, but means don't demangle with GNU nm
10916    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10917      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'
10918    else
10919      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'
10920    fi
10921    ;;
10922  pw32*)
10923    export_symbols_cmds_CXX="$ltdll_cmds"
10924  ;;
10925  cygwin* | mingw*)
10926    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10927  ;;
10928  *)
10929    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10930  ;;
10931  esac
10932
10933echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10934echo "${ECHO_T}$ld_shlibs_CXX" >&6
10935test "$ld_shlibs_CXX" = no && can_build_shared=no
10936
10937variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10938if test "$GCC" = yes; then
10939  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10940fi
10941
10942#
10943# Do we need to explicitly link libc?
10944#
10945case "x$archive_cmds_need_lc_CXX" in
10946x|xyes)
10947  # Assume -lc should be added
10948  archive_cmds_need_lc_CXX=yes
10949
10950  if test "$enable_shared" = yes && test "$GCC" = yes; then
10951    case $archive_cmds_CXX in
10952    *'~'*)
10953      # FIXME: we may have to deal with multi-command sequences.
10954      ;;
10955    '$CC '*)
10956      # Test whether the compiler implicitly links with -lc since on some
10957      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10958      # to ld, don't add -lc before -lgcc.
10959      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10960echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10961      $rm conftest*
10962      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10963
10964      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10965  (eval $ac_compile) 2>&5
10966  ac_status=$?
10967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968  (exit $ac_status); } 2>conftest.err; then
10969        soname=conftest
10970        lib=conftest
10971        libobjs=conftest.$ac_objext
10972        deplibs=
10973        wl=$lt_prog_compiler_wl_CXX
10974        compiler_flags=-v
10975        linker_flags=-v
10976        verstring=
10977        output_objdir=.
10978        libname=conftest
10979        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10980        allow_undefined_flag_CXX=
10981        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10982  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10983  ac_status=$?
10984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985  (exit $ac_status); }
10986        then
10987	  archive_cmds_need_lc_CXX=no
10988        else
10989	  archive_cmds_need_lc_CXX=yes
10990        fi
10991        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10992      else
10993        cat conftest.err 1>&5
10994      fi
10995      $rm conftest*
10996      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10997echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10998      ;;
10999    esac
11000  fi
11001  ;;
11002esac
11003
11004echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11005echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11006hardcode_action_CXX=
11007if test -n "$hardcode_libdir_flag_spec_CXX" || \
11008   test -n "$runpath_var CXX" || \
11009   test "X$hardcode_automatic_CXX"="Xyes" ; then
11010
11011  # We can hardcode non-existant directories.
11012  if test "$hardcode_direct_CXX" != no &&
11013     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11014     # have to relink, otherwise we might link with an installed library
11015     # when we should be linking with a yet-to-be-installed one
11016     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11017     test "$hardcode_minus_L_CXX" != no; then
11018    # Linking always hardcodes the temporary library directory.
11019    hardcode_action_CXX=relink
11020  else
11021    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11022    hardcode_action_CXX=immediate
11023  fi
11024else
11025  # We cannot hardcode anything, or else we can only hardcode existing
11026  # directories.
11027  hardcode_action_CXX=unsupported
11028fi
11029echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11030echo "${ECHO_T}$hardcode_action_CXX" >&6
11031
11032if test "$hardcode_action_CXX" = relink; then
11033  # Fast installation is not supported
11034  enable_fast_install=no
11035elif test "$shlibpath_overrides_runpath" = yes ||
11036     test "$enable_shared" = no; then
11037  # Fast installation is not necessary
11038  enable_fast_install=needless
11039fi
11040
11041striplib=
11042old_striplib=
11043echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11044echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11045if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11046  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11047  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11048  echo "$as_me:$LINENO: result: yes" >&5
11049echo "${ECHO_T}yes" >&6
11050else
11051# FIXME - insert some real tests, host_os isn't really good enough
11052  case $host_os in
11053   darwin*)
11054       if test -n "$STRIP" ; then
11055         striplib="$STRIP -x"
11056         echo "$as_me:$LINENO: result: yes" >&5
11057echo "${ECHO_T}yes" >&6
11058       else
11059  echo "$as_me:$LINENO: result: no" >&5
11060echo "${ECHO_T}no" >&6
11061fi
11062       ;;
11063   *)
11064  echo "$as_me:$LINENO: result: no" >&5
11065echo "${ECHO_T}no" >&6
11066    ;;
11067  esac
11068fi
11069
11070echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11071echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11072library_names_spec=
11073libname_spec='lib$name'
11074soname_spec=
11075shrext=".so"
11076postinstall_cmds=
11077postuninstall_cmds=
11078finish_cmds=
11079finish_eval=
11080shlibpath_var=
11081shlibpath_overrides_runpath=unknown
11082version_type=none
11083dynamic_linker="$host_os ld.so"
11084sys_lib_dlsearch_path_spec="/lib /usr/lib"
11085if test "$GCC" = yes; then
11086  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11087  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11088    # if the path contains ";" then we assume it to be the separator
11089    # otherwise default to the standard path separator (i.e. ":") - it is
11090    # assumed that no part of a normal pathname contains ";" but that should
11091    # okay in the real world where ";" in dirpaths is itself problematic.
11092    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11093  else
11094    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11095  fi
11096else
11097  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11098fi
11099need_lib_prefix=unknown
11100hardcode_into_libs=no
11101
11102# when you set need_version to no, make sure it does not cause -set_version
11103# flags to be left without arguments
11104need_version=unknown
11105
11106case $host_os in
11107aix3*)
11108  version_type=linux
11109  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11110  shlibpath_var=LIBPATH
11111
11112  # AIX 3 has no versioning support, so we append a major version to the name.
11113  soname_spec='${libname}${release}${shared_ext}$major'
11114  ;;
11115
11116aix4* | aix5*)
11117  version_type=linux
11118  need_lib_prefix=no
11119  need_version=no
11120  hardcode_into_libs=yes
11121  if test "$host_cpu" = ia64; then
11122    # AIX 5 supports IA64
11123    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11124    shlibpath_var=LD_LIBRARY_PATH
11125  else
11126    # With GCC up to 2.95.x, collect2 would create an import file
11127    # for dependence libraries.  The import file would start with
11128    # the line `#! .'.  This would cause the generated library to
11129    # depend on `.', always an invalid library.  This was fixed in
11130    # development snapshots of GCC prior to 3.0.
11131    case $host_os in
11132      aix4 | aix4.[01] | aix4.[01].*)
11133      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11134	   echo ' yes '
11135	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11136	:
11137      else
11138	can_build_shared=no
11139      fi
11140      ;;
11141    esac
11142    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11143    # soname into executable. Probably we can add versioning support to
11144    # collect2, so additional links can be useful in future.
11145    if test "$aix_use_runtimelinking" = yes; then
11146      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11147      # instead of lib<name>.a to let people know that these are not
11148      # typical AIX shared libraries.
11149      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11150    else
11151      # We preserve .a as extension for shared libraries through AIX4.2
11152      # and later when we are not doing run time linking.
11153      library_names_spec='${libname}${release}.a $libname.a'
11154      soname_spec='${libname}${release}${shared_ext}$major'
11155    fi
11156    shlibpath_var=LIBPATH
11157  fi
11158  ;;
11159
11160amigaos*)
11161  library_names_spec='$libname.ixlibrary $libname.a'
11162  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11163  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'
11164  ;;
11165
11166beos*)
11167  library_names_spec='${libname}${shared_ext}'
11168  dynamic_linker="$host_os ld.so"
11169  shlibpath_var=LIBRARY_PATH
11170  ;;
11171
11172bsdi4*)
11173  version_type=linux
11174  need_version=no
11175  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176  soname_spec='${libname}${release}${shared_ext}$major'
11177  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11178  shlibpath_var=LD_LIBRARY_PATH
11179  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11180  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11181  # the default ld.so.conf also contains /usr/contrib/lib and
11182  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11183  # libtool to hard-code these into programs
11184  ;;
11185
11186cygwin* | mingw* | pw32*)
11187  version_type=windows
11188  shrext=".dll"
11189  need_version=no
11190  need_lib_prefix=no
11191
11192  case $GCC,$host_os in
11193  yes,cygwin* | yes,mingw* | yes,pw32*)
11194    library_names_spec='$libname.dll.a'
11195    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11196    postinstall_cmds='base_file=`basename \${file}`~
11197      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11198      dldir=$destdir/`dirname \$dlpath`~
11199      test -d \$dldir || mkdir -p \$dldir~
11200      $install_prog $dir/$dlname \$dldir/$dlname'
11201    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11202      dlpath=$dir/\$dldll~
11203       $rm \$dlpath'
11204    shlibpath_overrides_runpath=yes
11205
11206    case $host_os in
11207    cygwin*)
11208      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11209      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11210      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11211      ;;
11212    mingw*)
11213      # MinGW DLLs use traditional 'lib' prefix
11214      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11215      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11216      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11217        # It is most probably a Windows format PATH printed by
11218        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11219        # path with ; separators, and with drive letters. We can handle the
11220        # drive letters (cygwin fileutils understands them), so leave them,
11221        # especially as we might pass files found there to a mingw objdump,
11222        # which wouldn't understand a cygwinified path. Ahh.
11223        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11224      else
11225        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11226      fi
11227      ;;
11228    pw32*)
11229      # pw32 DLLs use 'pw' prefix rather than 'lib'
11230      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11231      ;;
11232    esac
11233    ;;
11234
11235  *)
11236    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11237    ;;
11238  esac
11239  dynamic_linker='Win32 ld.exe'
11240  # FIXME: first we should search . and the directory the executable is in
11241  shlibpath_var=PATH
11242  ;;
11243
11244darwin* | rhapsody*)
11245  dynamic_linker="$host_os dyld"
11246  version_type=darwin
11247  need_lib_prefix=no
11248  need_version=no
11249  # FIXME: Relying on posixy $() will cause problems for
11250  #        cross-compilation, but unfortunately the echo tests do not
11251  #        yet detect zsh echo's removal of \ escapes.
11252  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11253  soname_spec='${libname}${release}${major}$shared_ext'
11254  shlibpath_overrides_runpath=yes
11255  shlibpath_var=DYLD_LIBRARY_PATH
11256  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11257  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11258  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11259  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"`
11260  fi
11261  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11262  ;;
11263
11264dgux*)
11265  version_type=linux
11266  need_lib_prefix=no
11267  need_version=no
11268  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11269  soname_spec='${libname}${release}${shared_ext}$major'
11270  shlibpath_var=LD_LIBRARY_PATH
11271  ;;
11272
11273freebsd1*)
11274  dynamic_linker=no
11275  ;;
11276
11277freebsd*)
11278  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11279  version_type=freebsd-$objformat
11280  case $version_type in
11281    freebsd-elf*)
11282      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11283      need_version=no
11284      need_lib_prefix=no
11285      ;;
11286    freebsd-*)
11287      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11288      need_version=yes
11289      ;;
11290  esac
11291  shlibpath_var=LD_LIBRARY_PATH
11292  case $host_os in
11293  freebsd2*)
11294    shlibpath_overrides_runpath=yes
11295    ;;
11296  freebsd3.01* | freebsdelf3.01*)
11297    shlibpath_overrides_runpath=yes
11298    hardcode_into_libs=yes
11299    ;;
11300  *) # from 3.2 on
11301    shlibpath_overrides_runpath=no
11302    hardcode_into_libs=yes
11303    ;;
11304  esac
11305  ;;
11306
11307gnu*)
11308  version_type=linux
11309  need_lib_prefix=no
11310  need_version=no
11311  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11312  soname_spec='${libname}${release}${shared_ext}$major'
11313  shlibpath_var=LD_LIBRARY_PATH
11314  hardcode_into_libs=yes
11315  ;;
11316
11317hpux9* | hpux10* | hpux11*)
11318  # Give a soname corresponding to the major version so that dld.sl refuses to
11319  # link against other versions.
11320  version_type=sunos
11321  need_lib_prefix=no
11322  need_version=no
11323  case "$host_cpu" in
11324  ia64*)
11325    shrext='.so'
11326    hardcode_into_libs=yes
11327    dynamic_linker="$host_os dld.so"
11328    shlibpath_var=LD_LIBRARY_PATH
11329    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11330    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11331    soname_spec='${libname}${release}${shared_ext}$major'
11332    if test "X$HPUX_IA64_MODE" = X32; then
11333      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11334    else
11335      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11336    fi
11337    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11338    ;;
11339   hppa*64*)
11340     shrext='.sl'
11341     hardcode_into_libs=yes
11342     dynamic_linker="$host_os dld.sl"
11343     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11344     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11345     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346     soname_spec='${libname}${release}${shared_ext}$major'
11347     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11348     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11349     ;;
11350   *)
11351    shrext='.sl'
11352    dynamic_linker="$host_os dld.sl"
11353    shlibpath_var=SHLIB_PATH
11354    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11355    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11356    soname_spec='${libname}${release}${shared_ext}$major'
11357    ;;
11358  esac
11359  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11360  postinstall_cmds='chmod 555 $lib'
11361  ;;
11362
11363irix5* | irix6* | nonstopux*)
11364  case $host_os in
11365    nonstopux*) version_type=nonstopux ;;
11366    *)
11367	if test "$lt_cv_prog_gnu_ld" = yes; then
11368		version_type=linux
11369	else
11370		version_type=irix
11371	fi ;;
11372  esac
11373  need_lib_prefix=no
11374  need_version=no
11375  soname_spec='${libname}${release}${shared_ext}$major'
11376  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11377  case $host_os in
11378  irix5* | nonstopux*)
11379    libsuff= shlibsuff=
11380    ;;
11381  *)
11382    case $LD in # libtool.m4 will add one of these switches to LD
11383    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11384      libsuff= shlibsuff= libmagic=32-bit;;
11385    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11386      libsuff=32 shlibsuff=N32 libmagic=N32;;
11387    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11388      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11389    *) libsuff= shlibsuff= libmagic=never-match;;
11390    esac
11391    ;;
11392  esac
11393  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11394  shlibpath_overrides_runpath=no
11395  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11396  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11397  hardcode_into_libs=yes
11398  ;;
11399
11400# No shared lib support for Linux oldld, aout, or coff.
11401linux*oldld* | linux*aout* | linux*coff*)
11402  dynamic_linker=no
11403  ;;
11404
11405# This must be Linux ELF.
11406linux*)
11407  version_type=linux
11408  need_lib_prefix=no
11409  need_version=no
11410  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11411  soname_spec='${libname}${release}${shared_ext}$major'
11412  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11413  shlibpath_var=LD_LIBRARY_PATH
11414  shlibpath_overrides_runpath=no
11415  # This implies no fast_install, which is unacceptable.
11416  # Some rework will be needed to allow for fast_install
11417  # before this can be enabled.
11418  hardcode_into_libs=yes
11419
11420  # We used to test for /lib/ld.so.1 and disable shared libraries on
11421  # powerpc, because MkLinux only supported shared libraries with the
11422  # GNU dynamic linker.  Since this was broken with cross compilers,
11423  # most powerpc-linux boxes support dynamic linking these days and
11424  # people can always --disable-shared, the test was removed, and we
11425  # assume the GNU/Linux dynamic linker is in use.
11426  dynamic_linker='GNU/Linux ld.so'
11427  ;;
11428
11429netbsd*)
11430  version_type=sunos
11431  need_lib_prefix=no
11432  need_version=no
11433  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11434    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11435    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11436    dynamic_linker='NetBSD (a.out) ld.so'
11437  else
11438    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11439    soname_spec='${libname}${release}${shared_ext}$major'
11440    dynamic_linker='NetBSD ld.elf_so'
11441  fi
11442  shlibpath_var=LD_LIBRARY_PATH
11443  shlibpath_overrides_runpath=yes
11444  hardcode_into_libs=yes
11445  ;;
11446
11447newsos6)
11448  version_type=linux
11449  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11450  shlibpath_var=LD_LIBRARY_PATH
11451  shlibpath_overrides_runpath=yes
11452  ;;
11453
11454nto-qnx)
11455  version_type=linux
11456  need_lib_prefix=no
11457  need_version=no
11458  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11459  soname_spec='${libname}${release}${shared_ext}$major'
11460  shlibpath_var=LD_LIBRARY_PATH
11461  shlibpath_overrides_runpath=yes
11462  ;;
11463
11464openbsd*)
11465  version_type=sunos
11466  need_lib_prefix=no
11467  need_version=no
11468  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11469  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11470  shlibpath_var=LD_LIBRARY_PATH
11471  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11472    case $host_os in
11473      openbsd2.[89] | openbsd2.[89].*)
11474	shlibpath_overrides_runpath=no
11475	;;
11476      *)
11477	shlibpath_overrides_runpath=yes
11478	;;
11479      esac
11480  else
11481    shlibpath_overrides_runpath=yes
11482  fi
11483  ;;
11484
11485os2*)
11486  libname_spec='$name'
11487  shrext=".dll"
11488  need_lib_prefix=no
11489  library_names_spec='$libname${shared_ext} $libname.a'
11490  dynamic_linker='OS/2 ld.exe'
11491  shlibpath_var=LIBPATH
11492  ;;
11493
11494osf3* | osf4* | osf5*)
11495  version_type=osf
11496  need_lib_prefix=no
11497  need_version=no
11498  soname_spec='${libname}${release}${shared_ext}$major'
11499  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11500  shlibpath_var=LD_LIBRARY_PATH
11501  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11502  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11503  ;;
11504
11505sco3.2v5*)
11506  version_type=osf
11507  soname_spec='${libname}${release}${shared_ext}$major'
11508  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11509  shlibpath_var=LD_LIBRARY_PATH
11510  ;;
11511
11512solaris*)
11513  version_type=linux
11514  need_lib_prefix=no
11515  need_version=no
11516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11517  soname_spec='${libname}${release}${shared_ext}$major'
11518  shlibpath_var=LD_LIBRARY_PATH
11519  shlibpath_overrides_runpath=yes
11520  hardcode_into_libs=yes
11521  # ldd complains unless libraries are executable
11522  postinstall_cmds='chmod +x $lib'
11523  ;;
11524
11525sunos4*)
11526  version_type=sunos
11527  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11528  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11529  shlibpath_var=LD_LIBRARY_PATH
11530  shlibpath_overrides_runpath=yes
11531  if test "$with_gnu_ld" = yes; then
11532    need_lib_prefix=no
11533  fi
11534  need_version=yes
11535  ;;
11536
11537sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11538  version_type=linux
11539  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11540  soname_spec='${libname}${release}${shared_ext}$major'
11541  shlibpath_var=LD_LIBRARY_PATH
11542  case $host_vendor in
11543    sni)
11544      shlibpath_overrides_runpath=no
11545      need_lib_prefix=no
11546      export_dynamic_flag_spec='${wl}-Blargedynsym'
11547      runpath_var=LD_RUN_PATH
11548      ;;
11549    siemens)
11550      need_lib_prefix=no
11551      ;;
11552    motorola)
11553      need_lib_prefix=no
11554      need_version=no
11555      shlibpath_overrides_runpath=no
11556      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11557      ;;
11558  esac
11559  ;;
11560
11561sysv4*MP*)
11562  if test -d /usr/nec ;then
11563    version_type=linux
11564    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11565    soname_spec='$libname${shared_ext}.$major'
11566    shlibpath_var=LD_LIBRARY_PATH
11567  fi
11568  ;;
11569
11570uts4*)
11571  version_type=linux
11572  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11573  soname_spec='${libname}${release}${shared_ext}$major'
11574  shlibpath_var=LD_LIBRARY_PATH
11575  ;;
11576
11577*)
11578  dynamic_linker=no
11579  ;;
11580esac
11581echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11582echo "${ECHO_T}$dynamic_linker" >&6
11583test "$dynamic_linker" = no && can_build_shared=no
11584
11585if test "x$enable_dlopen" != xyes; then
11586  enable_dlopen=unknown
11587  enable_dlopen_self=unknown
11588  enable_dlopen_self_static=unknown
11589else
11590  lt_cv_dlopen=no
11591  lt_cv_dlopen_libs=
11592
11593  case $host_os in
11594  beos*)
11595    lt_cv_dlopen="load_add_on"
11596    lt_cv_dlopen_libs=
11597    lt_cv_dlopen_self=yes
11598    ;;
11599
11600  mingw* | pw32*)
11601    lt_cv_dlopen="LoadLibrary"
11602    lt_cv_dlopen_libs=
11603   ;;
11604
11605  cygwin*)
11606    lt_cv_dlopen="dlopen"
11607    lt_cv_dlopen_libs=
11608   ;;
11609
11610  darwin*)
11611  # if libdl is installed we need to link against it
11612    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11613echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11614if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11615  echo $ECHO_N "(cached) $ECHO_C" >&6
11616else
11617  ac_check_lib_save_LIBS=$LIBS
11618LIBS="-ldl  $LIBS"
11619cat >conftest.$ac_ext <<_ACEOF
11620#line $LINENO "configure"
11621/* confdefs.h.  */
11622_ACEOF
11623cat confdefs.h >>conftest.$ac_ext
11624cat >>conftest.$ac_ext <<_ACEOF
11625/* end confdefs.h.  */
11626
11627/* Override any gcc2 internal prototype to avoid an error.  */
11628#ifdef __cplusplus
11629extern "C"
11630#endif
11631/* We use char because int might match the return type of a gcc2
11632   builtin and then its argument prototype would still apply.  */
11633char dlopen ();
11634int
11635main ()
11636{
11637dlopen ();
11638  ;
11639  return 0;
11640}
11641_ACEOF
11642rm -f conftest.$ac_objext conftest$ac_exeext
11643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11644  (eval $ac_link) 2>&5
11645  ac_status=$?
11646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647  (exit $ac_status); } &&
11648         { ac_try='test -s conftest$ac_exeext'
11649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11650  (eval $ac_try) 2>&5
11651  ac_status=$?
11652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653  (exit $ac_status); }; }; then
11654  ac_cv_lib_dl_dlopen=yes
11655else
11656  echo "$as_me: failed program was:" >&5
11657sed 's/^/| /' conftest.$ac_ext >&5
11658
11659ac_cv_lib_dl_dlopen=no
11660fi
11661rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11662LIBS=$ac_check_lib_save_LIBS
11663fi
11664echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11665echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11666if test $ac_cv_lib_dl_dlopen = yes; then
11667  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11668else
11669
11670    lt_cv_dlopen="dyld"
11671    lt_cv_dlopen_libs=
11672    lt_cv_dlopen_self=yes
11673
11674fi
11675
11676   ;;
11677
11678  *)
11679    echo "$as_me:$LINENO: checking for shl_load" >&5
11680echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11681if test "${ac_cv_func_shl_load+set}" = set; then
11682  echo $ECHO_N "(cached) $ECHO_C" >&6
11683else
11684  cat >conftest.$ac_ext <<_ACEOF
11685#line $LINENO "configure"
11686/* confdefs.h.  */
11687_ACEOF
11688cat confdefs.h >>conftest.$ac_ext
11689cat >>conftest.$ac_ext <<_ACEOF
11690/* end confdefs.h.  */
11691/* System header to define __stub macros and hopefully few prototypes,
11692    which can conflict with char shl_load (); below.
11693    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11694    <limits.h> exists even on freestanding compilers.  */
11695#ifdef __STDC__
11696# include <limits.h>
11697#else
11698# include <assert.h>
11699#endif
11700/* Override any gcc2 internal prototype to avoid an error.  */
11701#ifdef __cplusplus
11702extern "C"
11703{
11704#endif
11705/* We use char because int might match the return type of a gcc2
11706   builtin and then its argument prototype would still apply.  */
11707char shl_load ();
11708/* The GNU C library defines this for functions which it implements
11709    to always fail with ENOSYS.  Some functions are actually named
11710    something starting with __ and the normal name is an alias.  */
11711#if defined (__stub_shl_load) || defined (__stub___shl_load)
11712choke me
11713#else
11714char (*f) () = shl_load;
11715#endif
11716#ifdef __cplusplus
11717}
11718#endif
11719
11720int
11721main ()
11722{
11723return f != shl_load;
11724  ;
11725  return 0;
11726}
11727_ACEOF
11728rm -f conftest.$ac_objext conftest$ac_exeext
11729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11730  (eval $ac_link) 2>&5
11731  ac_status=$?
11732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733  (exit $ac_status); } &&
11734         { ac_try='test -s conftest$ac_exeext'
11735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736  (eval $ac_try) 2>&5
11737  ac_status=$?
11738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739  (exit $ac_status); }; }; then
11740  ac_cv_func_shl_load=yes
11741else
11742  echo "$as_me: failed program was:" >&5
11743sed 's/^/| /' conftest.$ac_ext >&5
11744
11745ac_cv_func_shl_load=no
11746fi
11747rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11748fi
11749echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11750echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11751if test $ac_cv_func_shl_load = yes; then
11752  lt_cv_dlopen="shl_load"
11753else
11754  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11755echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11756if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11757  echo $ECHO_N "(cached) $ECHO_C" >&6
11758else
11759  ac_check_lib_save_LIBS=$LIBS
11760LIBS="-ldld  $LIBS"
11761cat >conftest.$ac_ext <<_ACEOF
11762#line $LINENO "configure"
11763/* confdefs.h.  */
11764_ACEOF
11765cat confdefs.h >>conftest.$ac_ext
11766cat >>conftest.$ac_ext <<_ACEOF
11767/* end confdefs.h.  */
11768
11769/* Override any gcc2 internal prototype to avoid an error.  */
11770#ifdef __cplusplus
11771extern "C"
11772#endif
11773/* We use char because int might match the return type of a gcc2
11774   builtin and then its argument prototype would still apply.  */
11775char shl_load ();
11776int
11777main ()
11778{
11779shl_load ();
11780  ;
11781  return 0;
11782}
11783_ACEOF
11784rm -f conftest.$ac_objext conftest$ac_exeext
11785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11786  (eval $ac_link) 2>&5
11787  ac_status=$?
11788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789  (exit $ac_status); } &&
11790         { ac_try='test -s conftest$ac_exeext'
11791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792  (eval $ac_try) 2>&5
11793  ac_status=$?
11794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795  (exit $ac_status); }; }; then
11796  ac_cv_lib_dld_shl_load=yes
11797else
11798  echo "$as_me: failed program was:" >&5
11799sed 's/^/| /' conftest.$ac_ext >&5
11800
11801ac_cv_lib_dld_shl_load=no
11802fi
11803rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11804LIBS=$ac_check_lib_save_LIBS
11805fi
11806echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11807echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11808if test $ac_cv_lib_dld_shl_load = yes; then
11809  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11810else
11811  echo "$as_me:$LINENO: checking for dlopen" >&5
11812echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11813if test "${ac_cv_func_dlopen+set}" = set; then
11814  echo $ECHO_N "(cached) $ECHO_C" >&6
11815else
11816  cat >conftest.$ac_ext <<_ACEOF
11817#line $LINENO "configure"
11818/* confdefs.h.  */
11819_ACEOF
11820cat confdefs.h >>conftest.$ac_ext
11821cat >>conftest.$ac_ext <<_ACEOF
11822/* end confdefs.h.  */
11823/* System header to define __stub macros and hopefully few prototypes,
11824    which can conflict with char dlopen (); below.
11825    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11826    <limits.h> exists even on freestanding compilers.  */
11827#ifdef __STDC__
11828# include <limits.h>
11829#else
11830# include <assert.h>
11831#endif
11832/* Override any gcc2 internal prototype to avoid an error.  */
11833#ifdef __cplusplus
11834extern "C"
11835{
11836#endif
11837/* We use char because int might match the return type of a gcc2
11838   builtin and then its argument prototype would still apply.  */
11839char dlopen ();
11840/* The GNU C library defines this for functions which it implements
11841    to always fail with ENOSYS.  Some functions are actually named
11842    something starting with __ and the normal name is an alias.  */
11843#if defined (__stub_dlopen) || defined (__stub___dlopen)
11844choke me
11845#else
11846char (*f) () = dlopen;
11847#endif
11848#ifdef __cplusplus
11849}
11850#endif
11851
11852int
11853main ()
11854{
11855return f != dlopen;
11856  ;
11857  return 0;
11858}
11859_ACEOF
11860rm -f conftest.$ac_objext conftest$ac_exeext
11861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11862  (eval $ac_link) 2>&5
11863  ac_status=$?
11864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865  (exit $ac_status); } &&
11866         { ac_try='test -s conftest$ac_exeext'
11867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11868  (eval $ac_try) 2>&5
11869  ac_status=$?
11870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871  (exit $ac_status); }; }; then
11872  ac_cv_func_dlopen=yes
11873else
11874  echo "$as_me: failed program was:" >&5
11875sed 's/^/| /' conftest.$ac_ext >&5
11876
11877ac_cv_func_dlopen=no
11878fi
11879rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11880fi
11881echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11882echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11883if test $ac_cv_func_dlopen = yes; then
11884  lt_cv_dlopen="dlopen"
11885else
11886  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11887echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11888if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11889  echo $ECHO_N "(cached) $ECHO_C" >&6
11890else
11891  ac_check_lib_save_LIBS=$LIBS
11892LIBS="-ldl  $LIBS"
11893cat >conftest.$ac_ext <<_ACEOF
11894#line $LINENO "configure"
11895/* confdefs.h.  */
11896_ACEOF
11897cat confdefs.h >>conftest.$ac_ext
11898cat >>conftest.$ac_ext <<_ACEOF
11899/* end confdefs.h.  */
11900
11901/* Override any gcc2 internal prototype to avoid an error.  */
11902#ifdef __cplusplus
11903extern "C"
11904#endif
11905/* We use char because int might match the return type of a gcc2
11906   builtin and then its argument prototype would still apply.  */
11907char dlopen ();
11908int
11909main ()
11910{
11911dlopen ();
11912  ;
11913  return 0;
11914}
11915_ACEOF
11916rm -f conftest.$ac_objext conftest$ac_exeext
11917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11918  (eval $ac_link) 2>&5
11919  ac_status=$?
11920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921  (exit $ac_status); } &&
11922         { ac_try='test -s conftest$ac_exeext'
11923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11924  (eval $ac_try) 2>&5
11925  ac_status=$?
11926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927  (exit $ac_status); }; }; then
11928  ac_cv_lib_dl_dlopen=yes
11929else
11930  echo "$as_me: failed program was:" >&5
11931sed 's/^/| /' conftest.$ac_ext >&5
11932
11933ac_cv_lib_dl_dlopen=no
11934fi
11935rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11936LIBS=$ac_check_lib_save_LIBS
11937fi
11938echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11939echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11940if test $ac_cv_lib_dl_dlopen = yes; then
11941  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11942else
11943  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11944echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11945if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11946  echo $ECHO_N "(cached) $ECHO_C" >&6
11947else
11948  ac_check_lib_save_LIBS=$LIBS
11949LIBS="-lsvld  $LIBS"
11950cat >conftest.$ac_ext <<_ACEOF
11951#line $LINENO "configure"
11952/* confdefs.h.  */
11953_ACEOF
11954cat confdefs.h >>conftest.$ac_ext
11955cat >>conftest.$ac_ext <<_ACEOF
11956/* end confdefs.h.  */
11957
11958/* Override any gcc2 internal prototype to avoid an error.  */
11959#ifdef __cplusplus
11960extern "C"
11961#endif
11962/* We use char because int might match the return type of a gcc2
11963   builtin and then its argument prototype would still apply.  */
11964char dlopen ();
11965int
11966main ()
11967{
11968dlopen ();
11969  ;
11970  return 0;
11971}
11972_ACEOF
11973rm -f conftest.$ac_objext conftest$ac_exeext
11974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11975  (eval $ac_link) 2>&5
11976  ac_status=$?
11977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978  (exit $ac_status); } &&
11979         { ac_try='test -s conftest$ac_exeext'
11980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981  (eval $ac_try) 2>&5
11982  ac_status=$?
11983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984  (exit $ac_status); }; }; then
11985  ac_cv_lib_svld_dlopen=yes
11986else
11987  echo "$as_me: failed program was:" >&5
11988sed 's/^/| /' conftest.$ac_ext >&5
11989
11990ac_cv_lib_svld_dlopen=no
11991fi
11992rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11993LIBS=$ac_check_lib_save_LIBS
11994fi
11995echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11996echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11997if test $ac_cv_lib_svld_dlopen = yes; then
11998  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11999else
12000  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12001echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12002if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12003  echo $ECHO_N "(cached) $ECHO_C" >&6
12004else
12005  ac_check_lib_save_LIBS=$LIBS
12006LIBS="-ldld  $LIBS"
12007cat >conftest.$ac_ext <<_ACEOF
12008#line $LINENO "configure"
12009/* confdefs.h.  */
12010_ACEOF
12011cat confdefs.h >>conftest.$ac_ext
12012cat >>conftest.$ac_ext <<_ACEOF
12013/* end confdefs.h.  */
12014
12015/* Override any gcc2 internal prototype to avoid an error.  */
12016#ifdef __cplusplus
12017extern "C"
12018#endif
12019/* We use char because int might match the return type of a gcc2
12020   builtin and then its argument prototype would still apply.  */
12021char dld_link ();
12022int
12023main ()
12024{
12025dld_link ();
12026  ;
12027  return 0;
12028}
12029_ACEOF
12030rm -f conftest.$ac_objext conftest$ac_exeext
12031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12032  (eval $ac_link) 2>&5
12033  ac_status=$?
12034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035  (exit $ac_status); } &&
12036         { ac_try='test -s conftest$ac_exeext'
12037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038  (eval $ac_try) 2>&5
12039  ac_status=$?
12040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041  (exit $ac_status); }; }; then
12042  ac_cv_lib_dld_dld_link=yes
12043else
12044  echo "$as_me: failed program was:" >&5
12045sed 's/^/| /' conftest.$ac_ext >&5
12046
12047ac_cv_lib_dld_dld_link=no
12048fi
12049rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12050LIBS=$ac_check_lib_save_LIBS
12051fi
12052echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12053echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12054if test $ac_cv_lib_dld_dld_link = yes; then
12055  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12056fi
12057
12058
12059fi
12060
12061
12062fi
12063
12064
12065fi
12066
12067
12068fi
12069
12070
12071fi
12072
12073    ;;
12074  esac
12075
12076  if test "x$lt_cv_dlopen" != xno; then
12077    enable_dlopen=yes
12078  else
12079    enable_dlopen=no
12080  fi
12081
12082  case $lt_cv_dlopen in
12083  dlopen)
12084    save_CPPFLAGS="$CPPFLAGS"
12085    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12086
12087    save_LDFLAGS="$LDFLAGS"
12088    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12089
12090    save_LIBS="$LIBS"
12091    LIBS="$lt_cv_dlopen_libs $LIBS"
12092
12093    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12094echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12095if test "${lt_cv_dlopen_self+set}" = set; then
12096  echo $ECHO_N "(cached) $ECHO_C" >&6
12097else
12098  	  if test "$cross_compiling" = yes; then :
12099  lt_cv_dlopen_self=cross
12100else
12101  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12102  lt_status=$lt_dlunknown
12103  cat > conftest.$ac_ext <<EOF
12104#line 12104 "configure"
12105#include "confdefs.h"
12106
12107#if HAVE_DLFCN_H
12108#include <dlfcn.h>
12109#endif
12110
12111#include <stdio.h>
12112
12113#ifdef RTLD_GLOBAL
12114#  define LT_DLGLOBAL		RTLD_GLOBAL
12115#else
12116#  ifdef DL_GLOBAL
12117#    define LT_DLGLOBAL		DL_GLOBAL
12118#  else
12119#    define LT_DLGLOBAL		0
12120#  endif
12121#endif
12122
12123/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12124   find out it does not work in some platform. */
12125#ifndef LT_DLLAZY_OR_NOW
12126#  ifdef RTLD_LAZY
12127#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12128#  else
12129#    ifdef DL_LAZY
12130#      define LT_DLLAZY_OR_NOW		DL_LAZY
12131#    else
12132#      ifdef RTLD_NOW
12133#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12134#      else
12135#        ifdef DL_NOW
12136#          define LT_DLLAZY_OR_NOW	DL_NOW
12137#        else
12138#          define LT_DLLAZY_OR_NOW	0
12139#        endif
12140#      endif
12141#    endif
12142#  endif
12143#endif
12144
12145#ifdef __cplusplus
12146extern "C" void exit (int);
12147#endif
12148
12149void fnord() { int i=42;}
12150int main ()
12151{
12152  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12153  int status = $lt_dlunknown;
12154
12155  if (self)
12156    {
12157      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12158      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12159      /* dlclose (self); */
12160    }
12161
12162    exit (status);
12163}
12164EOF
12165  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12166  (eval $ac_link) 2>&5
12167  ac_status=$?
12168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12170    (./conftest; exit; ) 2>/dev/null
12171    lt_status=$?
12172    case x$lt_status in
12173      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12174      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12175      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12176    esac
12177  else :
12178    # compilation failed
12179    lt_cv_dlopen_self=no
12180  fi
12181fi
12182rm -fr conftest*
12183
12184
12185fi
12186echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12187echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12188
12189    if test "x$lt_cv_dlopen_self" = xyes; then
12190      LDFLAGS="$LDFLAGS $link_static_flag"
12191      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12192echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12193if test "${lt_cv_dlopen_self_static+set}" = set; then
12194  echo $ECHO_N "(cached) $ECHO_C" >&6
12195else
12196  	  if test "$cross_compiling" = yes; then :
12197  lt_cv_dlopen_self_static=cross
12198else
12199  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12200  lt_status=$lt_dlunknown
12201  cat > conftest.$ac_ext <<EOF
12202#line 12202 "configure"
12203#include "confdefs.h"
12204
12205#if HAVE_DLFCN_H
12206#include <dlfcn.h>
12207#endif
12208
12209#include <stdio.h>
12210
12211#ifdef RTLD_GLOBAL
12212#  define LT_DLGLOBAL		RTLD_GLOBAL
12213#else
12214#  ifdef DL_GLOBAL
12215#    define LT_DLGLOBAL		DL_GLOBAL
12216#  else
12217#    define LT_DLGLOBAL		0
12218#  endif
12219#endif
12220
12221/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12222   find out it does not work in some platform. */
12223#ifndef LT_DLLAZY_OR_NOW
12224#  ifdef RTLD_LAZY
12225#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12226#  else
12227#    ifdef DL_LAZY
12228#      define LT_DLLAZY_OR_NOW		DL_LAZY
12229#    else
12230#      ifdef RTLD_NOW
12231#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12232#      else
12233#        ifdef DL_NOW
12234#          define LT_DLLAZY_OR_NOW	DL_NOW
12235#        else
12236#          define LT_DLLAZY_OR_NOW	0
12237#        endif
12238#      endif
12239#    endif
12240#  endif
12241#endif
12242
12243#ifdef __cplusplus
12244extern "C" void exit (int);
12245#endif
12246
12247void fnord() { int i=42;}
12248int main ()
12249{
12250  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12251  int status = $lt_dlunknown;
12252
12253  if (self)
12254    {
12255      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12256      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12257      /* dlclose (self); */
12258    }
12259
12260    exit (status);
12261}
12262EOF
12263  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12264  (eval $ac_link) 2>&5
12265  ac_status=$?
12266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12268    (./conftest; exit; ) 2>/dev/null
12269    lt_status=$?
12270    case x$lt_status in
12271      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12272      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12273      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12274    esac
12275  else :
12276    # compilation failed
12277    lt_cv_dlopen_self_static=no
12278  fi
12279fi
12280rm -fr conftest*
12281
12282
12283fi
12284echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12285echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12286    fi
12287
12288    CPPFLAGS="$save_CPPFLAGS"
12289    LDFLAGS="$save_LDFLAGS"
12290    LIBS="$save_LIBS"
12291    ;;
12292  esac
12293
12294  case $lt_cv_dlopen_self in
12295  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12296  *) enable_dlopen_self=unknown ;;
12297  esac
12298
12299  case $lt_cv_dlopen_self_static in
12300  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12301  *) enable_dlopen_self_static=unknown ;;
12302  esac
12303fi
12304
12305
12306# The else clause should only fire when bootstrapping the
12307# libtool distribution, otherwise you forgot to ship ltmain.sh
12308# with your package, and you will get complaints that there are
12309# no rules to generate ltmain.sh.
12310if test -f "$ltmain"; then
12311  # See if we are running on zsh, and set the options which allow our commands through
12312  # without removal of \ escapes.
12313  if test -n "${ZSH_VERSION+set}" ; then
12314    setopt NO_GLOB_SUBST
12315  fi
12316  # Now quote all the things that may contain metacharacters while being
12317  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12318  # variables and quote the copies for generation of the libtool script.
12319  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12320    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12321    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12322    deplibs_check_method reload_flag reload_cmds need_locks \
12323    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12324    lt_cv_sys_global_symbol_to_c_name_address \
12325    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12326    old_postinstall_cmds old_postuninstall_cmds \
12327    compiler_CXX \
12328    CC_CXX \
12329    LD_CXX \
12330    lt_prog_compiler_wl_CXX \
12331    lt_prog_compiler_pic_CXX \
12332    lt_prog_compiler_static_CXX \
12333    lt_prog_compiler_no_builtin_flag_CXX \
12334    export_dynamic_flag_spec_CXX \
12335    thread_safe_flag_spec_CXX \
12336    whole_archive_flag_spec_CXX \
12337    enable_shared_with_static_runtimes_CXX \
12338    old_archive_cmds_CXX \
12339    old_archive_from_new_cmds_CXX \
12340    predep_objects_CXX \
12341    postdep_objects_CXX \
12342    predeps_CXX \
12343    postdeps_CXX \
12344    compiler_lib_search_path_CXX \
12345    archive_cmds_CXX \
12346    archive_expsym_cmds_CXX \
12347    postinstall_cmds_CXX \
12348    postuninstall_cmds_CXX \
12349    old_archive_from_expsyms_cmds_CXX \
12350    allow_undefined_flag_CXX \
12351    no_undefined_flag_CXX \
12352    export_symbols_cmds_CXX \
12353    hardcode_libdir_flag_spec_CXX \
12354    hardcode_libdir_flag_spec_ld_CXX \
12355    hardcode_libdir_separator_CXX \
12356    hardcode_automatic_CXX \
12357    module_cmds_CXX \
12358    module_expsym_cmds_CXX \
12359    lt_cv_prog_compiler_c_o_CXX \
12360    exclude_expsyms_CXX \
12361    include_expsyms_CXX; do
12362
12363    case $var in
12364    old_archive_cmds_CXX | \
12365    old_archive_from_new_cmds_CXX | \
12366    archive_cmds_CXX | \
12367    archive_expsym_cmds_CXX | \
12368    module_cmds_CXX | \
12369    module_expsym_cmds_CXX | \
12370    old_archive_from_expsyms_cmds_CXX | \
12371    export_symbols_cmds_CXX | \
12372    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12373    postinstall_cmds | postuninstall_cmds | \
12374    old_postinstall_cmds | old_postuninstall_cmds | \
12375    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12376      # Double-quote double-evaled strings.
12377      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12378      ;;
12379    *)
12380      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12381      ;;
12382    esac
12383  done
12384
12385  case $lt_echo in
12386  *'\$0 --fallback-echo"')
12387    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12388    ;;
12389  esac
12390
12391cfgfile="$ofile"
12392
12393  cat <<__EOF__ >> "$cfgfile"
12394# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12395
12396# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12397
12398# Shell to use when invoking shell scripts.
12399SHELL=$lt_SHELL
12400
12401# Whether or not to build shared libraries.
12402build_libtool_libs=$enable_shared
12403
12404# Whether or not to build static libraries.
12405build_old_libs=$enable_static
12406
12407# Whether or not to add -lc for building shared libraries.
12408build_libtool_need_lc=$archive_cmds_need_lc_CXX
12409
12410# Whether or not to disallow shared libs when runtime libs are static
12411allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12412
12413# Whether or not to optimize for fast installation.
12414fast_install=$enable_fast_install
12415
12416# The host system.
12417host_alias=$host_alias
12418host=$host
12419
12420# An echo program that does not interpret backslashes.
12421echo=$lt_echo
12422
12423# The archiver.
12424AR=$lt_AR
12425AR_FLAGS=$lt_AR_FLAGS
12426
12427# A C compiler.
12428LTCC=$lt_LTCC
12429
12430# A language-specific compiler.
12431CC=$lt_compiler_CXX
12432
12433# Is the compiler the GNU C compiler?
12434with_gcc=$GCC_CXX
12435
12436# An ERE matcher.
12437EGREP=$lt_EGREP
12438
12439# The linker used to build libraries.
12440LD=$lt_LD_CXX
12441
12442# Whether we need hard or soft links.
12443LN_S=$lt_LN_S
12444
12445# A BSD-compatible nm program.
12446NM=$lt_NM
12447
12448# A symbol stripping program
12449STRIP=$STRIP
12450
12451# Used to examine libraries when file_magic_cmd begins "file"
12452MAGIC_CMD=$MAGIC_CMD
12453
12454# Used on cygwin: DLL creation program.
12455DLLTOOL="$DLLTOOL"
12456
12457# Used on cygwin: object dumper.
12458OBJDUMP="$OBJDUMP"
12459
12460# Used on cygwin: assembler.
12461AS="$AS"
12462
12463# The name of the directory that contains temporary libtool files.
12464objdir=$objdir
12465
12466# How to create reloadable object files.
12467reload_flag=$lt_reload_flag
12468reload_cmds=$lt_reload_cmds
12469
12470# How to pass a linker flag through the compiler.
12471wl=$lt_lt_prog_compiler_wl_CXX
12472
12473# Object file suffix (normally "o").
12474objext="$ac_objext"
12475
12476# Old archive suffix (normally "a").
12477libext="$libext"
12478
12479# Shared library suffix (normally ".so").
12480shrext='$shrext'
12481
12482# Executable file suffix (normally "").
12483exeext="$exeext"
12484
12485# Additional compiler flags for building library objects.
12486pic_flag=$lt_lt_prog_compiler_pic_CXX
12487pic_mode=$pic_mode
12488
12489# What is the maximum length of a command?
12490max_cmd_len=$lt_cv_sys_max_cmd_len
12491
12492# Does compiler simultaneously support -c and -o options?
12493compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12494
12495# Must we lock files when doing compilation ?
12496need_locks=$lt_need_locks
12497
12498# Do we need the lib prefix for modules?
12499need_lib_prefix=$need_lib_prefix
12500
12501# Do we need a version for libraries?
12502need_version=$need_version
12503
12504# Whether dlopen is supported.
12505dlopen_support=$enable_dlopen
12506
12507# Whether dlopen of programs is supported.
12508dlopen_self=$enable_dlopen_self
12509
12510# Whether dlopen of statically linked programs is supported.
12511dlopen_self_static=$enable_dlopen_self_static
12512
12513# Compiler flag to prevent dynamic linking.
12514link_static_flag=$lt_lt_prog_compiler_static_CXX
12515
12516# Compiler flag to turn off builtin functions.
12517no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12518
12519# Compiler flag to allow reflexive dlopens.
12520export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12521
12522# Compiler flag to generate shared objects directly from archives.
12523whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12524
12525# Compiler flag to generate thread-safe objects.
12526thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12527
12528# Library versioning type.
12529version_type=$version_type
12530
12531# Format of library name prefix.
12532libname_spec=$lt_libname_spec
12533
12534# List of archive names.  First name is the real one, the rest are links.
12535# The last name is the one that the linker finds with -lNAME.
12536library_names_spec=$lt_library_names_spec
12537
12538# The coded name of the library, if different from the real name.
12539soname_spec=$lt_soname_spec
12540
12541# Commands used to build and install an old-style archive.
12542RANLIB=$lt_RANLIB
12543old_archive_cmds=$lt_old_archive_cmds_CXX
12544old_postinstall_cmds=$lt_old_postinstall_cmds
12545old_postuninstall_cmds=$lt_old_postuninstall_cmds
12546
12547# Create an old-style archive from a shared archive.
12548old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12549
12550# Create a temporary old-style archive to link instead of a shared archive.
12551old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12552
12553# Commands used to build and install a shared archive.
12554archive_cmds=$lt_archive_cmds_CXX
12555archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12556postinstall_cmds=$lt_postinstall_cmds
12557postuninstall_cmds=$lt_postuninstall_cmds
12558
12559# Commands used to build a loadable module (assumed same as above if empty)
12560module_cmds=$lt_module_cmds_CXX
12561module_expsym_cmds=$lt_module_expsym_cmds_CXX
12562
12563# Commands to strip libraries.
12564old_striplib=$lt_old_striplib
12565striplib=$lt_striplib
12566
12567# Dependencies to place before the objects being linked to create a
12568# shared library.
12569predep_objects=$lt_predep_objects_CXX
12570
12571# Dependencies to place after the objects being linked to create a
12572# shared library.
12573postdep_objects=$lt_postdep_objects_CXX
12574
12575# Dependencies to place before the objects being linked to create a
12576# shared library.
12577predeps=$lt_predeps_CXX
12578
12579# Dependencies to place after the objects being linked to create a
12580# shared library.
12581postdeps=$lt_postdeps_CXX
12582
12583# The library search path used internally by the compiler when linking
12584# a shared library.
12585compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12586
12587# Method to check whether dependent libraries are shared objects.
12588deplibs_check_method=$lt_deplibs_check_method
12589
12590# Command to use when deplibs_check_method == file_magic.
12591file_magic_cmd=$lt_file_magic_cmd
12592
12593# Flag that allows shared libraries with undefined symbols to be built.
12594allow_undefined_flag=$lt_allow_undefined_flag_CXX
12595
12596# Flag that forces no undefined symbols.
12597no_undefined_flag=$lt_no_undefined_flag_CXX
12598
12599# Commands used to finish a libtool library installation in a directory.
12600finish_cmds=$lt_finish_cmds
12601
12602# Same as above, but a single script fragment to be evaled but not shown.
12603finish_eval=$lt_finish_eval
12604
12605# Take the output of nm and produce a listing of raw symbols and C names.
12606global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12607
12608# Transform the output of nm in a proper C declaration
12609global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12610
12611# Transform the output of nm in a C name address pair
12612global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12613
12614# This is the shared library runtime path variable.
12615runpath_var=$runpath_var
12616
12617# This is the shared library path variable.
12618shlibpath_var=$shlibpath_var
12619
12620# Is shlibpath searched before the hard-coded library search path?
12621shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12622
12623# How to hardcode a shared library path into an executable.
12624hardcode_action=$hardcode_action_CXX
12625
12626# Whether we should hardcode library paths into libraries.
12627hardcode_into_libs=$hardcode_into_libs
12628
12629# Flag to hardcode \$libdir into a binary during linking.
12630# This must work even if \$libdir does not exist.
12631hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12632
12633# If ld is used when linking, flag to hardcode \$libdir into
12634# a binary during linking. This must work even if \$libdir does
12635# not exist.
12636hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12637
12638# Whether we need a single -rpath flag with a separated argument.
12639hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12640
12641# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12642# resulting binary.
12643hardcode_direct=$hardcode_direct_CXX
12644
12645# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12646# resulting binary.
12647hardcode_minus_L=$hardcode_minus_L_CXX
12648
12649# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12650# the resulting binary.
12651hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12652
12653# Set to yes if building a shared library automatically hardcodes DIR into the library
12654# and all subsequent libraries and executables linked against it.
12655hardcode_automatic=$hardcode_automatic_CXX
12656
12657# Variables whose values should be saved in libtool wrapper scripts and
12658# restored at relink time.
12659variables_saved_for_relink="$variables_saved_for_relink"
12660
12661# Whether libtool must link a program against all its dependency libraries.
12662link_all_deplibs=$link_all_deplibs_CXX
12663
12664# Compile-time system search path for libraries
12665sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12666
12667# Run-time system search path for libraries
12668sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12669
12670# Fix the shell variable \$srcfile for the compiler.
12671fix_srcfile_path="$fix_srcfile_path_CXX"
12672
12673# Set to yes if exported symbols are required.
12674always_export_symbols=$always_export_symbols_CXX
12675
12676# The commands to list exported symbols.
12677export_symbols_cmds=$lt_export_symbols_cmds_CXX
12678
12679# The commands to extract the exported symbol list from a shared archive.
12680extract_expsyms_cmds=$lt_extract_expsyms_cmds
12681
12682# Symbols that should not be listed in the preloaded symbols.
12683exclude_expsyms=$lt_exclude_expsyms_CXX
12684
12685# Symbols that must always be exported.
12686include_expsyms=$lt_include_expsyms_CXX
12687
12688# ### END LIBTOOL TAG CONFIG: $tagname
12689
12690__EOF__
12691
12692
12693else
12694  # If there is no Makefile yet, we rely on a make rule to execute
12695  # `config.status --recheck' to rerun these tests and create the
12696  # libtool script then.
12697  test -f Makefile && make "$ltmain"
12698fi
12699
12700
12701ac_ext=c
12702ac_cpp='$CPP $CPPFLAGS'
12703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12705ac_compiler_gnu=$ac_cv_c_compiler_gnu
12706
12707CC=$lt_save_CC
12708LDCXX=$LD
12709LD=$lt_save_LD
12710GCC=$lt_save_GCC
12711with_gnu_ldcxx=$with_gnu_ld
12712with_gnu_ld=$lt_save_with_gnu_ld
12713lt_cv_path_LDCXX=$lt_cv_path_LD
12714lt_cv_path_LD=$lt_save_path_LD
12715lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12716lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12717
12718	else
12719	  tagname=""
12720	fi
12721	;;
12722
12723      F77)
12724	if test -n "$F77" && test "X$F77" != "Xno"; then
12725
12726ac_ext=f
12727ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12728ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12729ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12730
12731
12732archive_cmds_need_lc_F77=no
12733allow_undefined_flag_F77=
12734always_export_symbols_F77=no
12735archive_expsym_cmds_F77=
12736export_dynamic_flag_spec_F77=
12737hardcode_direct_F77=no
12738hardcode_libdir_flag_spec_F77=
12739hardcode_libdir_flag_spec_ld_F77=
12740hardcode_libdir_separator_F77=
12741hardcode_minus_L_F77=no
12742hardcode_automatic_F77=no
12743module_cmds_F77=
12744module_expsym_cmds_F77=
12745link_all_deplibs_F77=unknown
12746old_archive_cmds_F77=$old_archive_cmds
12747no_undefined_flag_F77=
12748whole_archive_flag_spec_F77=
12749enable_shared_with_static_runtimes_F77=no
12750
12751# Source file extension for f77 test sources.
12752ac_ext=f
12753
12754# Object file extension for compiled f77 test sources.
12755objext=o
12756objext_F77=$objext
12757
12758# Code to be used in simple compile tests
12759lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12760
12761# Code to be used in simple link tests
12762lt_simple_link_test_code="      program t\n      end\n"
12763
12764# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12765
12766# If no C compiler was specified, use CC.
12767LTCC=${LTCC-"$CC"}
12768
12769# Allow CC to be a program name with arguments.
12770compiler=$CC
12771
12772
12773# Allow CC to be a program name with arguments.
12774lt_save_CC="$CC"
12775CC=${F77-"f77"}
12776compiler=$CC
12777compiler_F77=$CC
12778cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12779
12780echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12781echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12782echo "$as_me:$LINENO: result: $can_build_shared" >&5
12783echo "${ECHO_T}$can_build_shared" >&6
12784
12785echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12786echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12787test "$can_build_shared" = "no" && enable_shared=no
12788
12789# On AIX, shared libraries and static libraries use the same namespace, and
12790# are all built from PIC.
12791case "$host_os" in
12792aix3*)
12793  test "$enable_shared" = yes && enable_static=no
12794  if test -n "$RANLIB"; then
12795    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12796    postinstall_cmds='$RANLIB $lib'
12797  fi
12798  ;;
12799aix4*)
12800  test "$enable_shared" = yes && enable_static=no
12801  ;;
12802esac
12803echo "$as_me:$LINENO: result: $enable_shared" >&5
12804echo "${ECHO_T}$enable_shared" >&6
12805
12806echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12807echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12808# Make sure either enable_shared or enable_static is yes.
12809test "$enable_shared" = yes || enable_static=yes
12810echo "$as_me:$LINENO: result: $enable_static" >&5
12811echo "${ECHO_T}$enable_static" >&6
12812
12813test "$ld_shlibs_F77" = no && can_build_shared=no
12814
12815GCC_F77="$G77"
12816LD_F77="$LD"
12817
12818lt_prog_compiler_wl_F77=
12819lt_prog_compiler_pic_F77=
12820lt_prog_compiler_static_F77=
12821
12822echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12823echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12824
12825  if test "$GCC" = yes; then
12826    lt_prog_compiler_wl_F77='-Wl,'
12827    lt_prog_compiler_static_F77='-static'
12828
12829    case $host_os in
12830      aix*)
12831      # All AIX code is PIC.
12832      if test "$host_cpu" = ia64; then
12833	# AIX 5 now supports IA64 processor
12834	lt_prog_compiler_static_F77='-Bstatic'
12835      fi
12836      ;;
12837
12838    amigaos*)
12839      # FIXME: we need at least 68020 code to build shared libraries, but
12840      # adding the `-m68020' flag to GCC prevents building anything better,
12841      # like `-m68040'.
12842      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12843      ;;
12844
12845    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12846      # PIC is the default for these OSes.
12847      ;;
12848
12849    mingw* | pw32* | os2*)
12850      # This hack is so that the source file can tell whether it is being
12851      # built for inclusion in a dll (and should export symbols for example).
12852      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12853      ;;
12854
12855    darwin* | rhapsody*)
12856      # PIC is the default on this platform
12857      # Common symbols not allowed in MH_DYLIB files
12858      lt_prog_compiler_pic_F77='-fno-common'
12859      ;;
12860
12861    msdosdjgpp*)
12862      # Just because we use GCC doesn't mean we suddenly get shared libraries
12863      # on systems that don't support them.
12864      lt_prog_compiler_can_build_shared_F77=no
12865      enable_shared=no
12866      ;;
12867
12868    sysv4*MP*)
12869      if test -d /usr/nec; then
12870	lt_prog_compiler_pic_F77=-Kconform_pic
12871      fi
12872      ;;
12873
12874    hpux*)
12875      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12876      # not for PA HP-UX.
12877      case "$host_cpu" in
12878      hppa*64*|ia64*)
12879	# +Z the default
12880	;;
12881      *)
12882	lt_prog_compiler_pic_F77='-fPIC'
12883	;;
12884      esac
12885      ;;
12886
12887    *)
12888      lt_prog_compiler_pic_F77='-fPIC'
12889      ;;
12890    esac
12891  else
12892    # PORTME Check for flag to pass linker flags through the system compiler.
12893    case $host_os in
12894    aix*)
12895      lt_prog_compiler_wl_F77='-Wl,'
12896      if test "$host_cpu" = ia64; then
12897	# AIX 5 now supports IA64 processor
12898	lt_prog_compiler_static_F77='-Bstatic'
12899      else
12900	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12901      fi
12902      ;;
12903
12904    mingw* | pw32* | os2*)
12905      # This hack is so that the source file can tell whether it is being
12906      # built for inclusion in a dll (and should export symbols for example).
12907      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12908      ;;
12909
12910    hpux9* | hpux10* | hpux11*)
12911      lt_prog_compiler_wl_F77='-Wl,'
12912      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12913      # not for PA HP-UX.
12914      case "$host_cpu" in
12915      hppa*64*|ia64*)
12916	# +Z the default
12917	;;
12918      *)
12919	lt_prog_compiler_pic_F77='+Z'
12920	;;
12921      esac
12922      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12923      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12924      ;;
12925
12926    irix5* | irix6* | nonstopux*)
12927      lt_prog_compiler_wl_F77='-Wl,'
12928      # PIC (with -KPIC) is the default.
12929      lt_prog_compiler_static_F77='-non_shared'
12930      ;;
12931
12932    newsos6)
12933      lt_prog_compiler_pic_F77='-KPIC'
12934      lt_prog_compiler_static_F77='-Bstatic'
12935      ;;
12936
12937    linux*)
12938      case $CC in
12939      icc|ecc)
12940	lt_prog_compiler_wl_F77='-Wl,'
12941	lt_prog_compiler_pic_F77='-KPIC'
12942	lt_prog_compiler_static_F77='-static'
12943        ;;
12944      ccc)
12945        lt_prog_compiler_wl_F77='-Wl,'
12946        # All Alpha code is PIC.
12947        lt_prog_compiler_static_F77='-non_shared'
12948        ;;
12949      esac
12950      ;;
12951
12952    osf3* | osf4* | osf5*)
12953      lt_prog_compiler_wl_F77='-Wl,'
12954      # All OSF/1 code is PIC.
12955      lt_prog_compiler_static_F77='-non_shared'
12956      ;;
12957
12958    sco3.2v5*)
12959      lt_prog_compiler_pic_F77='-Kpic'
12960      lt_prog_compiler_static_F77='-dn'
12961      ;;
12962
12963    solaris*)
12964      lt_prog_compiler_wl_F77='-Wl,'
12965      lt_prog_compiler_pic_F77='-KPIC'
12966      lt_prog_compiler_static_F77='-Bstatic'
12967      ;;
12968
12969    sunos4*)
12970      lt_prog_compiler_wl_F77='-Qoption ld '
12971      lt_prog_compiler_pic_F77='-PIC'
12972      lt_prog_compiler_static_F77='-Bstatic'
12973      ;;
12974
12975    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12976      lt_prog_compiler_wl_F77='-Wl,'
12977      lt_prog_compiler_pic_F77='-KPIC'
12978      lt_prog_compiler_static_F77='-Bstatic'
12979      ;;
12980
12981    sysv4*MP*)
12982      if test -d /usr/nec ;then
12983	lt_prog_compiler_pic_F77='-Kconform_pic'
12984	lt_prog_compiler_static_F77='-Bstatic'
12985      fi
12986      ;;
12987
12988    uts4*)
12989      lt_prog_compiler_pic_F77='-pic'
12990      lt_prog_compiler_static_F77='-Bstatic'
12991      ;;
12992
12993    *)
12994      lt_prog_compiler_can_build_shared_F77=no
12995      ;;
12996    esac
12997  fi
12998
12999echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13000echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13001
13002#
13003# Check to make sure the PIC flag actually works.
13004#
13005if test -n "$lt_prog_compiler_pic_F77"; then
13006  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13007echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13008if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13009  echo $ECHO_N "(cached) $ECHO_C" >&6
13010else
13011  lt_prog_compiler_pic_works_F77=no
13012  ac_outfile=conftest.$ac_objext
13013   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13014   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13015   # Insert the option either (1) after the last *FLAGS variable, or
13016   # (2) before a word containing "conftest.", or (3) at the end.
13017   # Note that $ac_compile itself does not contain backslashes and begins
13018   # with a dollar sign (not a hyphen), so the echo should work correctly.
13019   # The option is referenced via a variable to avoid confusing sed.
13020   lt_compile=`echo "$ac_compile" | $SED \
13021   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13022   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13023   -e 's:$: $lt_compiler_flag:'`
13024   (eval echo "\"\$as_me:13024: $lt_compile\"" >&5)
13025   (eval "$lt_compile" 2>conftest.err)
13026   ac_status=$?
13027   cat conftest.err >&5
13028   echo "$as_me:13028: \$? = $ac_status" >&5
13029   if (exit $ac_status) && test -s "$ac_outfile"; then
13030     # The compiler can only warn and ignore the option if not recognized
13031     # So say no if there are warnings
13032     if test ! -s conftest.err; then
13033       lt_prog_compiler_pic_works_F77=yes
13034     fi
13035   fi
13036   $rm conftest*
13037
13038fi
13039echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13040echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13041
13042if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13043    case $lt_prog_compiler_pic_F77 in
13044     "" | " "*) ;;
13045     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13046     esac
13047else
13048    lt_prog_compiler_pic_F77=
13049     lt_prog_compiler_can_build_shared_F77=no
13050fi
13051
13052fi
13053case "$host_os" in
13054  # For platforms which do not support PIC, -DPIC is meaningless:
13055  *djgpp*)
13056    lt_prog_compiler_pic_F77=
13057    ;;
13058  *)
13059    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13060    ;;
13061esac
13062
13063echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13064echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13065if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13066  echo $ECHO_N "(cached) $ECHO_C" >&6
13067else
13068  lt_cv_prog_compiler_c_o_F77=no
13069   $rm -r conftest 2>/dev/null
13070   mkdir conftest
13071   cd conftest
13072   mkdir out
13073   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13074
13075   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13076   # that will create temporary files in the current directory regardless of
13077   # the output directory.  Thus, making CWD read-only will cause this test
13078   # to fail, enabling locking or at least warning the user not to do parallel
13079   # builds.
13080   chmod -w .
13081
13082   lt_compiler_flag="-o out/conftest2.$ac_objext"
13083   # Insert the option either (1) after the last *FLAGS variable, or
13084   # (2) before a word containing "conftest.", or (3) at the end.
13085   # Note that $ac_compile itself does not contain backslashes and begins
13086   # with a dollar sign (not a hyphen), so the echo should work correctly.
13087   lt_compile=`echo "$ac_compile" | $SED \
13088   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13089   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13090   -e 's:$: $lt_compiler_flag:'`
13091   (eval echo "\"\$as_me:13091: $lt_compile\"" >&5)
13092   (eval "$lt_compile" 2>out/conftest.err)
13093   ac_status=$?
13094   cat out/conftest.err >&5
13095   echo "$as_me:13095: \$? = $ac_status" >&5
13096   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13097   then
13098     # The compiler can only warn and ignore the option if not recognized
13099     # So say no if there are warnings
13100     if test ! -s out/conftest.err; then
13101       lt_cv_prog_compiler_c_o_F77=yes
13102     fi
13103   fi
13104   chmod u+w .
13105   $rm conftest* out/*
13106   rmdir out
13107   cd ..
13108   rmdir conftest
13109   $rm conftest*
13110
13111fi
13112echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13113echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13114
13115
13116hard_links="nottested"
13117if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13118  # do not overwrite the value of need_locks provided by the user
13119  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13120echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13121  hard_links=yes
13122  $rm conftest*
13123  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13124  touch conftest.a
13125  ln conftest.a conftest.b 2>&5 || hard_links=no
13126  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13127  echo "$as_me:$LINENO: result: $hard_links" >&5
13128echo "${ECHO_T}$hard_links" >&6
13129  if test "$hard_links" = no; then
13130    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13131echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13132    need_locks=warn
13133  fi
13134else
13135  need_locks=no
13136fi
13137
13138echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13139echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13140
13141  runpath_var=
13142  allow_undefined_flag_F77=
13143  enable_shared_with_static_runtimes_F77=no
13144  archive_cmds_F77=
13145  archive_expsym_cmds_F77=
13146  old_archive_From_new_cmds_F77=
13147  old_archive_from_expsyms_cmds_F77=
13148  export_dynamic_flag_spec_F77=
13149  whole_archive_flag_spec_F77=
13150  thread_safe_flag_spec_F77=
13151  hardcode_libdir_flag_spec_F77=
13152  hardcode_libdir_flag_spec_ld_F77=
13153  hardcode_libdir_separator_F77=
13154  hardcode_direct_F77=no
13155  hardcode_minus_L_F77=no
13156  hardcode_shlibpath_var_F77=unsupported
13157  link_all_deplibs_F77=unknown
13158  hardcode_automatic_F77=no
13159  module_cmds_F77=
13160  module_expsym_cmds_F77=
13161  always_export_symbols_F77=no
13162  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13163  # include_expsyms should be a list of space-separated symbols to be *always*
13164  # included in the symbol list
13165  include_expsyms_F77=
13166  # exclude_expsyms can be an extended regexp of symbols to exclude
13167  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13168  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13169  # as well as any symbol that contains `d'.
13170  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13171  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13172  # platforms (ab)use it in PIC code, but their linkers get confused if
13173  # the symbol is explicitly referenced.  Since portable code cannot
13174  # rely on this symbol name, it's probably fine to never include it in
13175  # preloaded symbol tables.
13176  extract_expsyms_cmds=
13177
13178  case $host_os in
13179  cygwin* | mingw* | pw32*)
13180    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13181    # When not using gcc, we currently assume that we are using
13182    # Microsoft Visual C++.
13183    if test "$GCC" != yes; then
13184      with_gnu_ld=no
13185    fi
13186    ;;
13187  openbsd*)
13188    with_gnu_ld=no
13189    ;;
13190  esac
13191
13192  ld_shlibs_F77=yes
13193  if test "$with_gnu_ld" = yes; then
13194    # If archive_cmds runs LD, not CC, wlarc should be empty
13195    wlarc='${wl}'
13196
13197    # See if GNU ld supports shared libraries.
13198    case $host_os in
13199    aix3* | aix4* | aix5*)
13200      # On AIX/PPC, the GNU linker is very broken
13201      if test "$host_cpu" != ia64; then
13202	ld_shlibs_F77=no
13203	cat <<EOF 1>&2
13204
13205*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13206*** to be unable to reliably create shared libraries on AIX.
13207*** Therefore, libtool is disabling shared libraries support.  If you
13208*** really care for shared libraries, you may want to modify your PATH
13209*** so that a non-GNU linker is found, and then restart.
13210
13211EOF
13212      fi
13213      ;;
13214
13215    amigaos*)
13216      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)'
13217      hardcode_libdir_flag_spec_F77='-L$libdir'
13218      hardcode_minus_L_F77=yes
13219
13220      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13221      # that the semantics of dynamic libraries on AmigaOS, at least up
13222      # to version 4, is to share data among multiple programs linked
13223      # with the same dynamic library.  Since this doesn't match the
13224      # behavior of shared libraries on other platforms, we can't use
13225      # them.
13226      ld_shlibs_F77=no
13227      ;;
13228
13229    beos*)
13230      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13231	allow_undefined_flag_F77=unsupported
13232	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13233	# support --undefined.  This deserves some investigation.  FIXME
13234	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13235      else
13236	ld_shlibs_F77=no
13237      fi
13238      ;;
13239
13240    cygwin* | mingw* | pw32*)
13241      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13242      # as there is no search path for DLLs.
13243      hardcode_libdir_flag_spec_F77='-L$libdir'
13244      allow_undefined_flag_F77=unsupported
13245      always_export_symbols_F77=no
13246      enable_shared_with_static_runtimes_F77=yes
13247      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13248
13249      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13250        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13251	# If the export-symbols file already is a .def file (1st line
13252	# is EXPORTS), use it as is; otherwise, prepend...
13253	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13254	  cp $export_symbols $output_objdir/$soname.def;
13255	else
13256	  echo EXPORTS > $output_objdir/$soname.def;
13257	  cat $export_symbols >> $output_objdir/$soname.def;
13258	fi~
13259	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13260      else
13261	ld_shlibs=no
13262      fi
13263      ;;
13264
13265    netbsd*)
13266      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13267	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13268	wlarc=
13269      else
13270	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13271	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13272      fi
13273      ;;
13274
13275    solaris* | sysv5*)
13276      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13277	ld_shlibs_F77=no
13278	cat <<EOF 1>&2
13279
13280*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13281*** create shared libraries on Solaris systems.  Therefore, libtool
13282*** is disabling shared libraries support.  We urge you to upgrade GNU
13283*** binutils to release 2.9.1 or newer.  Another option is to modify
13284*** your PATH or compiler configuration so that the native linker is
13285*** used, and then restart.
13286
13287EOF
13288      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13289	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13290	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13291      else
13292	ld_shlibs_F77=no
13293      fi
13294      ;;
13295
13296    sunos4*)
13297      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13298      wlarc=
13299      hardcode_direct_F77=yes
13300      hardcode_shlibpath_var_F77=no
13301      ;;
13302
13303    *)
13304      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13305	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13306	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13307      else
13308	ld_shlibs_F77=no
13309      fi
13310      ;;
13311    esac
13312
13313    if test "$ld_shlibs_F77" = yes; then
13314      runpath_var=LD_RUN_PATH
13315      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13316      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13317      # ancient GNU ld didn't support --whole-archive et. al.
13318      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13319 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13320      else
13321  	whole_archive_flag_spec_F77=
13322      fi
13323    fi
13324  else
13325    # PORTME fill in a description of your system's linker (not GNU ld)
13326    case $host_os in
13327    aix3*)
13328      allow_undefined_flag_F77=unsupported
13329      always_export_symbols_F77=yes
13330      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'
13331      # Note: this linker hardcodes the directories in LIBPATH if there
13332      # are no directories specified by -L.
13333      hardcode_minus_L_F77=yes
13334      if test "$GCC" = yes && test -z "$link_static_flag"; then
13335	# Neither direct hardcoding nor static linking is supported with a
13336	# broken collect2.
13337	hardcode_direct_F77=unsupported
13338      fi
13339      ;;
13340
13341    aix4* | aix5*)
13342      if test "$host_cpu" = ia64; then
13343	# On IA64, the linker does run time linking by default, so we don't
13344	# have to do anything special.
13345	aix_use_runtimelinking=no
13346	exp_sym_flag='-Bexport'
13347	no_entry_flag=""
13348      else
13349	# If we're using GNU nm, then we don't want the "-C" option.
13350	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13351	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13352	  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'
13353	else
13354	  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'
13355	fi
13356	aix_use_runtimelinking=no
13357
13358	# Test if we are trying to use run time linking or normal
13359	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13360	# need to do runtime linking.
13361	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13362	  for ld_flag in $LDFLAGS; do
13363  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13364  	    aix_use_runtimelinking=yes
13365  	    break
13366  	  fi
13367	  done
13368	esac
13369
13370	exp_sym_flag='-bexport'
13371	no_entry_flag='-bnoentry'
13372      fi
13373
13374      # When large executables or shared objects are built, AIX ld can
13375      # have problems creating the table of contents.  If linking a library
13376      # or program results in "error TOC overflow" add -mminimal-toc to
13377      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13378      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13379
13380      archive_cmds_F77=''
13381      hardcode_direct_F77=yes
13382      hardcode_libdir_separator_F77=':'
13383      link_all_deplibs_F77=yes
13384
13385      if test "$GCC" = yes; then
13386	case $host_os in aix4.012|aix4.012.*)
13387	# We only want to do this on AIX 4.2 and lower, the check
13388	# below for broken collect2 doesn't work under 4.3+
13389	  collect2name=`${CC} -print-prog-name=collect2`
13390	  if test -f "$collect2name" && \
13391  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13392	  then
13393  	  # We have reworked collect2
13394  	  hardcode_direct_F77=yes
13395	  else
13396  	  # We have old collect2
13397  	  hardcode_direct_F77=unsupported
13398  	  # It fails to find uninstalled libraries when the uninstalled
13399  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13400  	  # to unsupported forces relinking
13401  	  hardcode_minus_L_F77=yes
13402  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13403  	  hardcode_libdir_separator_F77=
13404	  fi
13405	esac
13406	shared_flag='-shared'
13407      else
13408	# not using gcc
13409	if test "$host_cpu" = ia64; then
13410  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13411  	# chokes on -Wl,-G. The following line is correct:
13412	  shared_flag='-G'
13413	else
13414  	if test "$aix_use_runtimelinking" = yes; then
13415	    shared_flag='${wl}-G'
13416	  else
13417	    shared_flag='${wl}-bM:SRE'
13418  	fi
13419	fi
13420      fi
13421
13422      # It seems that -bexpall does not export symbols beginning with
13423      # underscore (_), so it is better to generate a list of symbols to export.
13424      always_export_symbols_F77=yes
13425      if test "$aix_use_runtimelinking" = yes; then
13426	# Warning - without using the other runtime loading flags (-brtl),
13427	# -berok will link without error, but may produce a broken library.
13428	allow_undefined_flag_F77='-berok'
13429       # Determine the default libpath from the value encoded in an empty executable.
13430       cat >conftest.$ac_ext <<_ACEOF
13431      program main
13432
13433      end
13434_ACEOF
13435rm -f conftest.$ac_objext conftest$ac_exeext
13436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13437  (eval $ac_link) 2>&5
13438  ac_status=$?
13439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440  (exit $ac_status); } &&
13441         { ac_try='test -s conftest$ac_exeext'
13442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443  (eval $ac_try) 2>&5
13444  ac_status=$?
13445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446  (exit $ac_status); }; }; then
13447
13448aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13449}'`
13450# Check for a 64-bit object if we didn't find anything.
13451if 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; }
13452}'`; fi
13453else
13454  echo "$as_me: failed program was:" >&5
13455sed 's/^/| /' conftest.$ac_ext >&5
13456
13457fi
13458rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13459if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13460
13461       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13462	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"
13463       else
13464	if test "$host_cpu" = ia64; then
13465	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13466	  allow_undefined_flag_F77="-z nodefs"
13467	  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"
13468	else
13469	 # Determine the default libpath from the value encoded in an empty executable.
13470	 cat >conftest.$ac_ext <<_ACEOF
13471      program main
13472
13473      end
13474_ACEOF
13475rm -f conftest.$ac_objext conftest$ac_exeext
13476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13477  (eval $ac_link) 2>&5
13478  ac_status=$?
13479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480  (exit $ac_status); } &&
13481         { ac_try='test -s conftest$ac_exeext'
13482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13483  (eval $ac_try) 2>&5
13484  ac_status=$?
13485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486  (exit $ac_status); }; }; then
13487
13488aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13489}'`
13490# Check for a 64-bit object if we didn't find anything.
13491if 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; }
13492}'`; fi
13493else
13494  echo "$as_me: failed program was:" >&5
13495sed 's/^/| /' conftest.$ac_ext >&5
13496
13497fi
13498rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13499if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13500
13501	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13502	  # Warning - without using the other run time loading flags,
13503	  # -berok will link without error, but may produce a broken library.
13504	  no_undefined_flag_F77=' ${wl}-bernotok'
13505	  allow_undefined_flag_F77=' ${wl}-berok'
13506	  # -bexpall does not export symbols beginning with underscore (_)
13507	  always_export_symbols_F77=yes
13508	  # Exported symbols can be pulled into shared objects from archives
13509	  whole_archive_flag_spec_F77=' '
13510	  archive_cmds_need_lc_F77=yes
13511	  # This is similar to how AIX traditionally builds it's shared libraries.
13512	  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'
13513	fi
13514      fi
13515      ;;
13516
13517    amigaos*)
13518      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)'
13519      hardcode_libdir_flag_spec_F77='-L$libdir'
13520      hardcode_minus_L_F77=yes
13521      # see comment about different semantics on the GNU ld section
13522      ld_shlibs_F77=no
13523      ;;
13524
13525    bsdi4*)
13526      export_dynamic_flag_spec_F77=-rdynamic
13527      ;;
13528
13529    cygwin* | mingw* | pw32*)
13530      # When not using gcc, we currently assume that we are using
13531      # Microsoft Visual C++.
13532      # hardcode_libdir_flag_spec is actually meaningless, as there is
13533      # no search path for DLLs.
13534      hardcode_libdir_flag_spec_F77=' '
13535      allow_undefined_flag_F77=unsupported
13536      # Tell ltmain to make .lib files, not .a files.
13537      libext=lib
13538      # Tell ltmain to make .dll files, not .so files.
13539      shrext=".dll"
13540      # FIXME: Setting linknames here is a bad hack.
13541      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13542      # The linker will automatically build a .lib file if we build a DLL.
13543      old_archive_From_new_cmds_F77='true'
13544      # FIXME: Should let the user specify the lib program.
13545      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13546      fix_srcfile_path='`cygpath -w "$srcfile"`'
13547      enable_shared_with_static_runtimes_F77=yes
13548      ;;
13549
13550    darwin* | rhapsody*)
13551    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13552      archive_cmds_need_lc_F77=no
13553      case "$host_os" in
13554      rhapsody* | darwin1.[012])
13555	allow_undefined_flag_F77='-undefined suppress'
13556	;;
13557      *) # Darwin 1.3 on
13558	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13559	;;
13560      esac
13561      # FIXME: Relying on posixy $() will cause problems for
13562      #        cross-compilation, but unfortunately the echo tests do not
13563      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13564      #	       `"' quotes if we put them in here... so don't!
13565    	lt_int_apple_cc_single_mod=no
13566    	output_verbose_link_cmd='echo'
13567    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13568    	  lt_int_apple_cc_single_mod=yes
13569    	fi
13570    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13571    	  archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13572    	else
13573        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'
13574      fi
13575      module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13576      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13577        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13578          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}'
13579        else
13580          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}'
13581        fi
13582          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}'
13583      hardcode_direct_F77=no
13584      hardcode_automatic_F77=yes
13585      hardcode_shlibpath_var_F77=unsupported
13586      whole_archive_flag_spec_F77='-all_load $convenience'
13587      link_all_deplibs_F77=yes
13588    fi
13589      ;;
13590
13591    dgux*)
13592      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13593      hardcode_libdir_flag_spec_F77='-L$libdir'
13594      hardcode_shlibpath_var_F77=no
13595      ;;
13596
13597    freebsd1*)
13598      ld_shlibs_F77=no
13599      ;;
13600
13601    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13602    # support.  Future versions do this automatically, but an explicit c++rt0.o
13603    # does not break anything, and helps significantly (at the cost of a little
13604    # extra space).
13605    freebsd2.2*)
13606      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13607      hardcode_libdir_flag_spec_F77='-R$libdir'
13608      hardcode_direct_F77=yes
13609      hardcode_shlibpath_var_F77=no
13610      ;;
13611
13612    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13613    freebsd2*)
13614      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13615      hardcode_direct_F77=yes
13616      hardcode_minus_L_F77=yes
13617      hardcode_shlibpath_var_F77=no
13618      ;;
13619
13620    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13621    freebsd*)
13622      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13623      hardcode_libdir_flag_spec_F77='-R$libdir'
13624      hardcode_direct_F77=yes
13625      hardcode_shlibpath_var_F77=no
13626      ;;
13627
13628    hpux9*)
13629      if test "$GCC" = yes; then
13630	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'
13631      else
13632	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'
13633      fi
13634      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13635      hardcode_libdir_separator_F77=:
13636      hardcode_direct_F77=yes
13637
13638      # hardcode_minus_L: Not really in the search PATH,
13639      # but as the default location of the library.
13640      hardcode_minus_L_F77=yes
13641      export_dynamic_flag_spec_F77='${wl}-E'
13642      ;;
13643
13644    hpux10* | hpux11*)
13645      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13646	case "$host_cpu" in
13647	hppa*64*|ia64*)
13648	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13649	  ;;
13650	*)
13651	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13652	  ;;
13653	esac
13654      else
13655	case "$host_cpu" in
13656	hppa*64*|ia64*)
13657	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13658	  ;;
13659	*)
13660	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13661	  ;;
13662	esac
13663      fi
13664      if test "$with_gnu_ld" = no; then
13665	case "$host_cpu" in
13666	hppa*64*)
13667	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13668	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13669	  hardcode_libdir_separator_F77=:
13670	  hardcode_direct_F77=no
13671	  hardcode_shlibpath_var_F77=no
13672	  ;;
13673	ia64*)
13674	  hardcode_libdir_flag_spec_F77='-L$libdir'
13675	  hardcode_direct_F77=no
13676	  hardcode_shlibpath_var_F77=no
13677
13678	  # hardcode_minus_L: Not really in the search PATH,
13679	  # but as the default location of the library.
13680	  hardcode_minus_L_F77=yes
13681	  ;;
13682	*)
13683	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13684	  hardcode_libdir_separator_F77=:
13685	  hardcode_direct_F77=yes
13686	  export_dynamic_flag_spec_F77='${wl}-E'
13687
13688	  # hardcode_minus_L: Not really in the search PATH,
13689	  # but as the default location of the library.
13690	  hardcode_minus_L_F77=yes
13691	  ;;
13692	esac
13693      fi
13694      ;;
13695
13696    irix5* | irix6* | nonstopux*)
13697      if test "$GCC" = yes; then
13698	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'
13699      else
13700	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'
13701	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13702      fi
13703      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13704      hardcode_libdir_separator_F77=:
13705      link_all_deplibs_F77=yes
13706      ;;
13707
13708    netbsd*)
13709      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13710	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13711      else
13712	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13713      fi
13714      hardcode_libdir_flag_spec_F77='-R$libdir'
13715      hardcode_direct_F77=yes
13716      hardcode_shlibpath_var_F77=no
13717      ;;
13718
13719    newsos6)
13720      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13721      hardcode_direct_F77=yes
13722      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13723      hardcode_libdir_separator_F77=:
13724      hardcode_shlibpath_var_F77=no
13725      ;;
13726
13727    openbsd*)
13728      hardcode_direct_F77=yes
13729      hardcode_shlibpath_var_F77=no
13730      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13731	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13732	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13733	export_dynamic_flag_spec_F77='${wl}-E'
13734      else
13735       case $host_os in
13736	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13737	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13738	   hardcode_libdir_flag_spec_F77='-R$libdir'
13739	   ;;
13740	 *)
13741	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13742	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13743	   ;;
13744       esac
13745      fi
13746      ;;
13747
13748    os2*)
13749      hardcode_libdir_flag_spec_F77='-L$libdir'
13750      hardcode_minus_L_F77=yes
13751      allow_undefined_flag_F77=unsupported
13752      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'
13753      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13754      ;;
13755
13756    osf3*)
13757      if test "$GCC" = yes; then
13758	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13759	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'
13760      else
13761	allow_undefined_flag_F77=' -expect_unresolved \*'
13762	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'
13763      fi
13764      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13765      hardcode_libdir_separator_F77=:
13766      ;;
13767
13768    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13769      if test "$GCC" = yes; then
13770	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13771	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'
13772	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13773      else
13774	allow_undefined_flag_F77=' -expect_unresolved \*'
13775	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'
13776	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~
13777	$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'
13778
13779	# Both c and cxx compiler support -rpath directly
13780	hardcode_libdir_flag_spec_F77='-rpath $libdir'
13781      fi
13782      hardcode_libdir_separator_F77=:
13783      ;;
13784
13785    sco3.2v5*)
13786      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13787      hardcode_shlibpath_var_F77=no
13788      export_dynamic_flag_spec_F77='${wl}-Bexport'
13789      runpath_var=LD_RUN_PATH
13790      hardcode_runpath_var=yes
13791      ;;
13792
13793    solaris*)
13794      no_undefined_flag_F77=' -z text'
13795      if test "$GCC" = yes; then
13796	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13797	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13798	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13799      else
13800	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13801	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13802  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13803      fi
13804      hardcode_libdir_flag_spec_F77='-R$libdir'
13805      hardcode_shlibpath_var_F77=no
13806      case $host_os in
13807      solaris2.[0-5] | solaris2.[0-5].*) ;;
13808      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13809	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13810      esac
13811      link_all_deplibs_F77=yes
13812      ;;
13813
13814    sunos4*)
13815      if test "x$host_vendor" = xsequent; then
13816	# Use $CC to link under sequent, because it throws in some extra .o
13817	# files that make .init and .fini sections work.
13818	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13819      else
13820	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13821      fi
13822      hardcode_libdir_flag_spec_F77='-L$libdir'
13823      hardcode_direct_F77=yes
13824      hardcode_minus_L_F77=yes
13825      hardcode_shlibpath_var_F77=no
13826      ;;
13827
13828    sysv4)
13829      case $host_vendor in
13830	sni)
13831	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13832	  hardcode_direct_F77=yes # is this really true???
13833	;;
13834	siemens)
13835	  ## LD is ld it makes a PLAMLIB
13836	  ## CC just makes a GrossModule.
13837	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13838	  reload_cmds_F77='$CC -r -o $output$reload_objs'
13839	  hardcode_direct_F77=no
13840        ;;
13841	motorola)
13842	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13843	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13844	;;
13845      esac
13846      runpath_var='LD_RUN_PATH'
13847      hardcode_shlibpath_var_F77=no
13848      ;;
13849
13850    sysv4.3*)
13851      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13852      hardcode_shlibpath_var_F77=no
13853      export_dynamic_flag_spec_F77='-Bexport'
13854      ;;
13855
13856    sysv4*MP*)
13857      if test -d /usr/nec; then
13858	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13859	hardcode_shlibpath_var_F77=no
13860	runpath_var=LD_RUN_PATH
13861	hardcode_runpath_var=yes
13862	ld_shlibs_F77=yes
13863      fi
13864      ;;
13865
13866    sysv4.2uw2*)
13867      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13868      hardcode_direct_F77=yes
13869      hardcode_minus_L_F77=no
13870      hardcode_shlibpath_var_F77=no
13871      hardcode_runpath_var=yes
13872      runpath_var=LD_RUN_PATH
13873      ;;
13874
13875   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13876      no_undefined_flag_F77='${wl}-z ${wl}text'
13877      if test "$GCC" = yes; then
13878	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13879      else
13880	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13881      fi
13882      runpath_var='LD_RUN_PATH'
13883      hardcode_shlibpath_var_F77=no
13884      ;;
13885
13886    sysv5*)
13887      no_undefined_flag_F77=' -z text'
13888      # $CC -shared without GNU ld will not create a library from C++
13889      # object files and a static libstdc++, better avoid it by now
13890      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13891      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13892  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13893      hardcode_libdir_flag_spec_F77=
13894      hardcode_shlibpath_var_F77=no
13895      runpath_var='LD_RUN_PATH'
13896      ;;
13897
13898    uts4*)
13899      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13900      hardcode_libdir_flag_spec_F77='-L$libdir'
13901      hardcode_shlibpath_var_F77=no
13902      ;;
13903
13904    *)
13905      ld_shlibs_F77=no
13906      ;;
13907    esac
13908  fi
13909
13910echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13911echo "${ECHO_T}$ld_shlibs_F77" >&6
13912test "$ld_shlibs_F77" = no && can_build_shared=no
13913
13914variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13915if test "$GCC" = yes; then
13916  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13917fi
13918
13919#
13920# Do we need to explicitly link libc?
13921#
13922case "x$archive_cmds_need_lc_F77" in
13923x|xyes)
13924  # Assume -lc should be added
13925  archive_cmds_need_lc_F77=yes
13926
13927  if test "$enable_shared" = yes && test "$GCC" = yes; then
13928    case $archive_cmds_F77 in
13929    *'~'*)
13930      # FIXME: we may have to deal with multi-command sequences.
13931      ;;
13932    '$CC '*)
13933      # Test whether the compiler implicitly links with -lc since on some
13934      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13935      # to ld, don't add -lc before -lgcc.
13936      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13937echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13938      $rm conftest*
13939      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13940
13941      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13942  (eval $ac_compile) 2>&5
13943  ac_status=$?
13944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945  (exit $ac_status); } 2>conftest.err; then
13946        soname=conftest
13947        lib=conftest
13948        libobjs=conftest.$ac_objext
13949        deplibs=
13950        wl=$lt_prog_compiler_wl_F77
13951        compiler_flags=-v
13952        linker_flags=-v
13953        verstring=
13954        output_objdir=.
13955        libname=conftest
13956        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13957        allow_undefined_flag_F77=
13958        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13959  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13960  ac_status=$?
13961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962  (exit $ac_status); }
13963        then
13964	  archive_cmds_need_lc_F77=no
13965        else
13966	  archive_cmds_need_lc_F77=yes
13967        fi
13968        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13969      else
13970        cat conftest.err 1>&5
13971      fi
13972      $rm conftest*
13973      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13974echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13975      ;;
13976    esac
13977  fi
13978  ;;
13979esac
13980
13981echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13982echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13983hardcode_action_F77=
13984if test -n "$hardcode_libdir_flag_spec_F77" || \
13985   test -n "$runpath_var F77" || \
13986   test "X$hardcode_automatic_F77"="Xyes" ; then
13987
13988  # We can hardcode non-existant directories.
13989  if test "$hardcode_direct_F77" != no &&
13990     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13991     # have to relink, otherwise we might link with an installed library
13992     # when we should be linking with a yet-to-be-installed one
13993     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13994     test "$hardcode_minus_L_F77" != no; then
13995    # Linking always hardcodes the temporary library directory.
13996    hardcode_action_F77=relink
13997  else
13998    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13999    hardcode_action_F77=immediate
14000  fi
14001else
14002  # We cannot hardcode anything, or else we can only hardcode existing
14003  # directories.
14004  hardcode_action_F77=unsupported
14005fi
14006echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14007echo "${ECHO_T}$hardcode_action_F77" >&6
14008
14009if test "$hardcode_action_F77" = relink; then
14010  # Fast installation is not supported
14011  enable_fast_install=no
14012elif test "$shlibpath_overrides_runpath" = yes ||
14013     test "$enable_shared" = no; then
14014  # Fast installation is not necessary
14015  enable_fast_install=needless
14016fi
14017
14018striplib=
14019old_striplib=
14020echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14021echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14022if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14023  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14024  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14025  echo "$as_me:$LINENO: result: yes" >&5
14026echo "${ECHO_T}yes" >&6
14027else
14028# FIXME - insert some real tests, host_os isn't really good enough
14029  case $host_os in
14030   darwin*)
14031       if test -n "$STRIP" ; then
14032         striplib="$STRIP -x"
14033         echo "$as_me:$LINENO: result: yes" >&5
14034echo "${ECHO_T}yes" >&6
14035       else
14036  echo "$as_me:$LINENO: result: no" >&5
14037echo "${ECHO_T}no" >&6
14038fi
14039       ;;
14040   *)
14041  echo "$as_me:$LINENO: result: no" >&5
14042echo "${ECHO_T}no" >&6
14043    ;;
14044  esac
14045fi
14046
14047echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14048echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14049library_names_spec=
14050libname_spec='lib$name'
14051soname_spec=
14052shrext=".so"
14053postinstall_cmds=
14054postuninstall_cmds=
14055finish_cmds=
14056finish_eval=
14057shlibpath_var=
14058shlibpath_overrides_runpath=unknown
14059version_type=none
14060dynamic_linker="$host_os ld.so"
14061sys_lib_dlsearch_path_spec="/lib /usr/lib"
14062if test "$GCC" = yes; then
14063  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14064  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14065    # if the path contains ";" then we assume it to be the separator
14066    # otherwise default to the standard path separator (i.e. ":") - it is
14067    # assumed that no part of a normal pathname contains ";" but that should
14068    # okay in the real world where ";" in dirpaths is itself problematic.
14069    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14070  else
14071    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14072  fi
14073else
14074  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14075fi
14076need_lib_prefix=unknown
14077hardcode_into_libs=no
14078
14079# when you set need_version to no, make sure it does not cause -set_version
14080# flags to be left without arguments
14081need_version=unknown
14082
14083case $host_os in
14084aix3*)
14085  version_type=linux
14086  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14087  shlibpath_var=LIBPATH
14088
14089  # AIX 3 has no versioning support, so we append a major version to the name.
14090  soname_spec='${libname}${release}${shared_ext}$major'
14091  ;;
14092
14093aix4* | aix5*)
14094  version_type=linux
14095  need_lib_prefix=no
14096  need_version=no
14097  hardcode_into_libs=yes
14098  if test "$host_cpu" = ia64; then
14099    # AIX 5 supports IA64
14100    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14101    shlibpath_var=LD_LIBRARY_PATH
14102  else
14103    # With GCC up to 2.95.x, collect2 would create an import file
14104    # for dependence libraries.  The import file would start with
14105    # the line `#! .'.  This would cause the generated library to
14106    # depend on `.', always an invalid library.  This was fixed in
14107    # development snapshots of GCC prior to 3.0.
14108    case $host_os in
14109      aix4 | aix4.[01] | aix4.[01].*)
14110      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14111	   echo ' yes '
14112	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14113	:
14114      else
14115	can_build_shared=no
14116      fi
14117      ;;
14118    esac
14119    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14120    # soname into executable. Probably we can add versioning support to
14121    # collect2, so additional links can be useful in future.
14122    if test "$aix_use_runtimelinking" = yes; then
14123      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14124      # instead of lib<name>.a to let people know that these are not
14125      # typical AIX shared libraries.
14126      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14127    else
14128      # We preserve .a as extension for shared libraries through AIX4.2
14129      # and later when we are not doing run time linking.
14130      library_names_spec='${libname}${release}.a $libname.a'
14131      soname_spec='${libname}${release}${shared_ext}$major'
14132    fi
14133    shlibpath_var=LIBPATH
14134  fi
14135  ;;
14136
14137amigaos*)
14138  library_names_spec='$libname.ixlibrary $libname.a'
14139  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14140  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'
14141  ;;
14142
14143beos*)
14144  library_names_spec='${libname}${shared_ext}'
14145  dynamic_linker="$host_os ld.so"
14146  shlibpath_var=LIBRARY_PATH
14147  ;;
14148
14149bsdi4*)
14150  version_type=linux
14151  need_version=no
14152  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14153  soname_spec='${libname}${release}${shared_ext}$major'
14154  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14155  shlibpath_var=LD_LIBRARY_PATH
14156  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14157  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14158  # the default ld.so.conf also contains /usr/contrib/lib and
14159  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14160  # libtool to hard-code these into programs
14161  ;;
14162
14163cygwin* | mingw* | pw32*)
14164  version_type=windows
14165  shrext=".dll"
14166  need_version=no
14167  need_lib_prefix=no
14168
14169  case $GCC,$host_os in
14170  yes,cygwin* | yes,mingw* | yes,pw32*)
14171    library_names_spec='$libname.dll.a'
14172    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14173    postinstall_cmds='base_file=`basename \${file}`~
14174      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14175      dldir=$destdir/`dirname \$dlpath`~
14176      test -d \$dldir || mkdir -p \$dldir~
14177      $install_prog $dir/$dlname \$dldir/$dlname'
14178    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14179      dlpath=$dir/\$dldll~
14180       $rm \$dlpath'
14181    shlibpath_overrides_runpath=yes
14182
14183    case $host_os in
14184    cygwin*)
14185      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14186      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14187      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14188      ;;
14189    mingw*)
14190      # MinGW DLLs use traditional 'lib' prefix
14191      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14192      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14193      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14194        # It is most probably a Windows format PATH printed by
14195        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14196        # path with ; separators, and with drive letters. We can handle the
14197        # drive letters (cygwin fileutils understands them), so leave them,
14198        # especially as we might pass files found there to a mingw objdump,
14199        # which wouldn't understand a cygwinified path. Ahh.
14200        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14201      else
14202        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14203      fi
14204      ;;
14205    pw32*)
14206      # pw32 DLLs use 'pw' prefix rather than 'lib'
14207      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14208      ;;
14209    esac
14210    ;;
14211
14212  *)
14213    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14214    ;;
14215  esac
14216  dynamic_linker='Win32 ld.exe'
14217  # FIXME: first we should search . and the directory the executable is in
14218  shlibpath_var=PATH
14219  ;;
14220
14221darwin* | rhapsody*)
14222  dynamic_linker="$host_os dyld"
14223  version_type=darwin
14224  need_lib_prefix=no
14225  need_version=no
14226  # FIXME: Relying on posixy $() will cause problems for
14227  #        cross-compilation, but unfortunately the echo tests do not
14228  #        yet detect zsh echo's removal of \ escapes.
14229  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14230  soname_spec='${libname}${release}${major}$shared_ext'
14231  shlibpath_overrides_runpath=yes
14232  shlibpath_var=DYLD_LIBRARY_PATH
14233  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14234  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14235  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14236  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"`
14237  fi
14238  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14239  ;;
14240
14241dgux*)
14242  version_type=linux
14243  need_lib_prefix=no
14244  need_version=no
14245  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14246  soname_spec='${libname}${release}${shared_ext}$major'
14247  shlibpath_var=LD_LIBRARY_PATH
14248  ;;
14249
14250freebsd1*)
14251  dynamic_linker=no
14252  ;;
14253
14254freebsd*)
14255  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14256  version_type=freebsd-$objformat
14257  case $version_type in
14258    freebsd-elf*)
14259      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14260      need_version=no
14261      need_lib_prefix=no
14262      ;;
14263    freebsd-*)
14264      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14265      need_version=yes
14266      ;;
14267  esac
14268  shlibpath_var=LD_LIBRARY_PATH
14269  case $host_os in
14270  freebsd2*)
14271    shlibpath_overrides_runpath=yes
14272    ;;
14273  freebsd3.01* | freebsdelf3.01*)
14274    shlibpath_overrides_runpath=yes
14275    hardcode_into_libs=yes
14276    ;;
14277  *) # from 3.2 on
14278    shlibpath_overrides_runpath=no
14279    hardcode_into_libs=yes
14280    ;;
14281  esac
14282  ;;
14283
14284gnu*)
14285  version_type=linux
14286  need_lib_prefix=no
14287  need_version=no
14288  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14289  soname_spec='${libname}${release}${shared_ext}$major'
14290  shlibpath_var=LD_LIBRARY_PATH
14291  hardcode_into_libs=yes
14292  ;;
14293
14294hpux9* | hpux10* | hpux11*)
14295  # Give a soname corresponding to the major version so that dld.sl refuses to
14296  # link against other versions.
14297  version_type=sunos
14298  need_lib_prefix=no
14299  need_version=no
14300  case "$host_cpu" in
14301  ia64*)
14302    shrext='.so'
14303    hardcode_into_libs=yes
14304    dynamic_linker="$host_os dld.so"
14305    shlibpath_var=LD_LIBRARY_PATH
14306    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14307    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14308    soname_spec='${libname}${release}${shared_ext}$major'
14309    if test "X$HPUX_IA64_MODE" = X32; then
14310      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14311    else
14312      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14313    fi
14314    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14315    ;;
14316   hppa*64*)
14317     shrext='.sl'
14318     hardcode_into_libs=yes
14319     dynamic_linker="$host_os dld.sl"
14320     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14321     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14322     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14323     soname_spec='${libname}${release}${shared_ext}$major'
14324     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14325     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14326     ;;
14327   *)
14328    shrext='.sl'
14329    dynamic_linker="$host_os dld.sl"
14330    shlibpath_var=SHLIB_PATH
14331    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14332    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14333    soname_spec='${libname}${release}${shared_ext}$major'
14334    ;;
14335  esac
14336  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14337  postinstall_cmds='chmod 555 $lib'
14338  ;;
14339
14340irix5* | irix6* | nonstopux*)
14341  case $host_os in
14342    nonstopux*) version_type=nonstopux ;;
14343    *)
14344	if test "$lt_cv_prog_gnu_ld" = yes; then
14345		version_type=linux
14346	else
14347		version_type=irix
14348	fi ;;
14349  esac
14350  need_lib_prefix=no
14351  need_version=no
14352  soname_spec='${libname}${release}${shared_ext}$major'
14353  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14354  case $host_os in
14355  irix5* | nonstopux*)
14356    libsuff= shlibsuff=
14357    ;;
14358  *)
14359    case $LD in # libtool.m4 will add one of these switches to LD
14360    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14361      libsuff= shlibsuff= libmagic=32-bit;;
14362    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14363      libsuff=32 shlibsuff=N32 libmagic=N32;;
14364    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14365      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14366    *) libsuff= shlibsuff= libmagic=never-match;;
14367    esac
14368    ;;
14369  esac
14370  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14371  shlibpath_overrides_runpath=no
14372  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14373  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14374  hardcode_into_libs=yes
14375  ;;
14376
14377# No shared lib support for Linux oldld, aout, or coff.
14378linux*oldld* | linux*aout* | linux*coff*)
14379  dynamic_linker=no
14380  ;;
14381
14382# This must be Linux ELF.
14383linux*)
14384  version_type=linux
14385  need_lib_prefix=no
14386  need_version=no
14387  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14388  soname_spec='${libname}${release}${shared_ext}$major'
14389  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14390  shlibpath_var=LD_LIBRARY_PATH
14391  shlibpath_overrides_runpath=no
14392  # This implies no fast_install, which is unacceptable.
14393  # Some rework will be needed to allow for fast_install
14394  # before this can be enabled.
14395  hardcode_into_libs=yes
14396
14397  # We used to test for /lib/ld.so.1 and disable shared libraries on
14398  # powerpc, because MkLinux only supported shared libraries with the
14399  # GNU dynamic linker.  Since this was broken with cross compilers,
14400  # most powerpc-linux boxes support dynamic linking these days and
14401  # people can always --disable-shared, the test was removed, and we
14402  # assume the GNU/Linux dynamic linker is in use.
14403  dynamic_linker='GNU/Linux ld.so'
14404  ;;
14405
14406netbsd*)
14407  version_type=sunos
14408  need_lib_prefix=no
14409  need_version=no
14410  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14411    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14412    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14413    dynamic_linker='NetBSD (a.out) ld.so'
14414  else
14415    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14416    soname_spec='${libname}${release}${shared_ext}$major'
14417    dynamic_linker='NetBSD ld.elf_so'
14418  fi
14419  shlibpath_var=LD_LIBRARY_PATH
14420  shlibpath_overrides_runpath=yes
14421  hardcode_into_libs=yes
14422  ;;
14423
14424newsos6)
14425  version_type=linux
14426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14427  shlibpath_var=LD_LIBRARY_PATH
14428  shlibpath_overrides_runpath=yes
14429  ;;
14430
14431nto-qnx)
14432  version_type=linux
14433  need_lib_prefix=no
14434  need_version=no
14435  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14436  soname_spec='${libname}${release}${shared_ext}$major'
14437  shlibpath_var=LD_LIBRARY_PATH
14438  shlibpath_overrides_runpath=yes
14439  ;;
14440
14441openbsd*)
14442  version_type=sunos
14443  need_lib_prefix=no
14444  need_version=no
14445  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14446  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14447  shlibpath_var=LD_LIBRARY_PATH
14448  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14449    case $host_os in
14450      openbsd2.[89] | openbsd2.[89].*)
14451	shlibpath_overrides_runpath=no
14452	;;
14453      *)
14454	shlibpath_overrides_runpath=yes
14455	;;
14456      esac
14457  else
14458    shlibpath_overrides_runpath=yes
14459  fi
14460  ;;
14461
14462os2*)
14463  libname_spec='$name'
14464  shrext=".dll"
14465  need_lib_prefix=no
14466  library_names_spec='$libname${shared_ext} $libname.a'
14467  dynamic_linker='OS/2 ld.exe'
14468  shlibpath_var=LIBPATH
14469  ;;
14470
14471osf3* | osf4* | osf5*)
14472  version_type=osf
14473  need_lib_prefix=no
14474  need_version=no
14475  soname_spec='${libname}${release}${shared_ext}$major'
14476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14477  shlibpath_var=LD_LIBRARY_PATH
14478  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14479  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14480  ;;
14481
14482sco3.2v5*)
14483  version_type=osf
14484  soname_spec='${libname}${release}${shared_ext}$major'
14485  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14486  shlibpath_var=LD_LIBRARY_PATH
14487  ;;
14488
14489solaris*)
14490  version_type=linux
14491  need_lib_prefix=no
14492  need_version=no
14493  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14494  soname_spec='${libname}${release}${shared_ext}$major'
14495  shlibpath_var=LD_LIBRARY_PATH
14496  shlibpath_overrides_runpath=yes
14497  hardcode_into_libs=yes
14498  # ldd complains unless libraries are executable
14499  postinstall_cmds='chmod +x $lib'
14500  ;;
14501
14502sunos4*)
14503  version_type=sunos
14504  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14505  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14506  shlibpath_var=LD_LIBRARY_PATH
14507  shlibpath_overrides_runpath=yes
14508  if test "$with_gnu_ld" = yes; then
14509    need_lib_prefix=no
14510  fi
14511  need_version=yes
14512  ;;
14513
14514sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14515  version_type=linux
14516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14517  soname_spec='${libname}${release}${shared_ext}$major'
14518  shlibpath_var=LD_LIBRARY_PATH
14519  case $host_vendor in
14520    sni)
14521      shlibpath_overrides_runpath=no
14522      need_lib_prefix=no
14523      export_dynamic_flag_spec='${wl}-Blargedynsym'
14524      runpath_var=LD_RUN_PATH
14525      ;;
14526    siemens)
14527      need_lib_prefix=no
14528      ;;
14529    motorola)
14530      need_lib_prefix=no
14531      need_version=no
14532      shlibpath_overrides_runpath=no
14533      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14534      ;;
14535  esac
14536  ;;
14537
14538sysv4*MP*)
14539  if test -d /usr/nec ;then
14540    version_type=linux
14541    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14542    soname_spec='$libname${shared_ext}.$major'
14543    shlibpath_var=LD_LIBRARY_PATH
14544  fi
14545  ;;
14546
14547uts4*)
14548  version_type=linux
14549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14550  soname_spec='${libname}${release}${shared_ext}$major'
14551  shlibpath_var=LD_LIBRARY_PATH
14552  ;;
14553
14554*)
14555  dynamic_linker=no
14556  ;;
14557esac
14558echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14559echo "${ECHO_T}$dynamic_linker" >&6
14560test "$dynamic_linker" = no && can_build_shared=no
14561
14562
14563# The else clause should only fire when bootstrapping the
14564# libtool distribution, otherwise you forgot to ship ltmain.sh
14565# with your package, and you will get complaints that there are
14566# no rules to generate ltmain.sh.
14567if test -f "$ltmain"; then
14568  # See if we are running on zsh, and set the options which allow our commands through
14569  # without removal of \ escapes.
14570  if test -n "${ZSH_VERSION+set}" ; then
14571    setopt NO_GLOB_SUBST
14572  fi
14573  # Now quote all the things that may contain metacharacters while being
14574  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14575  # variables and quote the copies for generation of the libtool script.
14576  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14577    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14578    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14579    deplibs_check_method reload_flag reload_cmds need_locks \
14580    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14581    lt_cv_sys_global_symbol_to_c_name_address \
14582    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14583    old_postinstall_cmds old_postuninstall_cmds \
14584    compiler_F77 \
14585    CC_F77 \
14586    LD_F77 \
14587    lt_prog_compiler_wl_F77 \
14588    lt_prog_compiler_pic_F77 \
14589    lt_prog_compiler_static_F77 \
14590    lt_prog_compiler_no_builtin_flag_F77 \
14591    export_dynamic_flag_spec_F77 \
14592    thread_safe_flag_spec_F77 \
14593    whole_archive_flag_spec_F77 \
14594    enable_shared_with_static_runtimes_F77 \
14595    old_archive_cmds_F77 \
14596    old_archive_from_new_cmds_F77 \
14597    predep_objects_F77 \
14598    postdep_objects_F77 \
14599    predeps_F77 \
14600    postdeps_F77 \
14601    compiler_lib_search_path_F77 \
14602    archive_cmds_F77 \
14603    archive_expsym_cmds_F77 \
14604    postinstall_cmds_F77 \
14605    postuninstall_cmds_F77 \
14606    old_archive_from_expsyms_cmds_F77 \
14607    allow_undefined_flag_F77 \
14608    no_undefined_flag_F77 \
14609    export_symbols_cmds_F77 \
14610    hardcode_libdir_flag_spec_F77 \
14611    hardcode_libdir_flag_spec_ld_F77 \
14612    hardcode_libdir_separator_F77 \
14613    hardcode_automatic_F77 \
14614    module_cmds_F77 \
14615    module_expsym_cmds_F77 \
14616    lt_cv_prog_compiler_c_o_F77 \
14617    exclude_expsyms_F77 \
14618    include_expsyms_F77; do
14619
14620    case $var in
14621    old_archive_cmds_F77 | \
14622    old_archive_from_new_cmds_F77 | \
14623    archive_cmds_F77 | \
14624    archive_expsym_cmds_F77 | \
14625    module_cmds_F77 | \
14626    module_expsym_cmds_F77 | \
14627    old_archive_from_expsyms_cmds_F77 | \
14628    export_symbols_cmds_F77 | \
14629    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14630    postinstall_cmds | postuninstall_cmds | \
14631    old_postinstall_cmds | old_postuninstall_cmds | \
14632    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14633      # Double-quote double-evaled strings.
14634      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14635      ;;
14636    *)
14637      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14638      ;;
14639    esac
14640  done
14641
14642  case $lt_echo in
14643  *'\$0 --fallback-echo"')
14644    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14645    ;;
14646  esac
14647
14648cfgfile="$ofile"
14649
14650  cat <<__EOF__ >> "$cfgfile"
14651# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14652
14653# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14654
14655# Shell to use when invoking shell scripts.
14656SHELL=$lt_SHELL
14657
14658# Whether or not to build shared libraries.
14659build_libtool_libs=$enable_shared
14660
14661# Whether or not to build static libraries.
14662build_old_libs=$enable_static
14663
14664# Whether or not to add -lc for building shared libraries.
14665build_libtool_need_lc=$archive_cmds_need_lc_F77
14666
14667# Whether or not to disallow shared libs when runtime libs are static
14668allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14669
14670# Whether or not to optimize for fast installation.
14671fast_install=$enable_fast_install
14672
14673# The host system.
14674host_alias=$host_alias
14675host=$host
14676
14677# An echo program that does not interpret backslashes.
14678echo=$lt_echo
14679
14680# The archiver.
14681AR=$lt_AR
14682AR_FLAGS=$lt_AR_FLAGS
14683
14684# A C compiler.
14685LTCC=$lt_LTCC
14686
14687# A language-specific compiler.
14688CC=$lt_compiler_F77
14689
14690# Is the compiler the GNU C compiler?
14691with_gcc=$GCC_F77
14692
14693# An ERE matcher.
14694EGREP=$lt_EGREP
14695
14696# The linker used to build libraries.
14697LD=$lt_LD_F77
14698
14699# Whether we need hard or soft links.
14700LN_S=$lt_LN_S
14701
14702# A BSD-compatible nm program.
14703NM=$lt_NM
14704
14705# A symbol stripping program
14706STRIP=$STRIP
14707
14708# Used to examine libraries when file_magic_cmd begins "file"
14709MAGIC_CMD=$MAGIC_CMD
14710
14711# Used on cygwin: DLL creation program.
14712DLLTOOL="$DLLTOOL"
14713
14714# Used on cygwin: object dumper.
14715OBJDUMP="$OBJDUMP"
14716
14717# Used on cygwin: assembler.
14718AS="$AS"
14719
14720# The name of the directory that contains temporary libtool files.
14721objdir=$objdir
14722
14723# How to create reloadable object files.
14724reload_flag=$lt_reload_flag
14725reload_cmds=$lt_reload_cmds
14726
14727# How to pass a linker flag through the compiler.
14728wl=$lt_lt_prog_compiler_wl_F77
14729
14730# Object file suffix (normally "o").
14731objext="$ac_objext"
14732
14733# Old archive suffix (normally "a").
14734libext="$libext"
14735
14736# Shared library suffix (normally ".so").
14737shrext='$shrext'
14738
14739# Executable file suffix (normally "").
14740exeext="$exeext"
14741
14742# Additional compiler flags for building library objects.
14743pic_flag=$lt_lt_prog_compiler_pic_F77
14744pic_mode=$pic_mode
14745
14746# What is the maximum length of a command?
14747max_cmd_len=$lt_cv_sys_max_cmd_len
14748
14749# Does compiler simultaneously support -c and -o options?
14750compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14751
14752# Must we lock files when doing compilation ?
14753need_locks=$lt_need_locks
14754
14755# Do we need the lib prefix for modules?
14756need_lib_prefix=$need_lib_prefix
14757
14758# Do we need a version for libraries?
14759need_version=$need_version
14760
14761# Whether dlopen is supported.
14762dlopen_support=$enable_dlopen
14763
14764# Whether dlopen of programs is supported.
14765dlopen_self=$enable_dlopen_self
14766
14767# Whether dlopen of statically linked programs is supported.
14768dlopen_self_static=$enable_dlopen_self_static
14769
14770# Compiler flag to prevent dynamic linking.
14771link_static_flag=$lt_lt_prog_compiler_static_F77
14772
14773# Compiler flag to turn off builtin functions.
14774no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14775
14776# Compiler flag to allow reflexive dlopens.
14777export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14778
14779# Compiler flag to generate shared objects directly from archives.
14780whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14781
14782# Compiler flag to generate thread-safe objects.
14783thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14784
14785# Library versioning type.
14786version_type=$version_type
14787
14788# Format of library name prefix.
14789libname_spec=$lt_libname_spec
14790
14791# List of archive names.  First name is the real one, the rest are links.
14792# The last name is the one that the linker finds with -lNAME.
14793library_names_spec=$lt_library_names_spec
14794
14795# The coded name of the library, if different from the real name.
14796soname_spec=$lt_soname_spec
14797
14798# Commands used to build and install an old-style archive.
14799RANLIB=$lt_RANLIB
14800old_archive_cmds=$lt_old_archive_cmds_F77
14801old_postinstall_cmds=$lt_old_postinstall_cmds
14802old_postuninstall_cmds=$lt_old_postuninstall_cmds
14803
14804# Create an old-style archive from a shared archive.
14805old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14806
14807# Create a temporary old-style archive to link instead of a shared archive.
14808old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14809
14810# Commands used to build and install a shared archive.
14811archive_cmds=$lt_archive_cmds_F77
14812archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14813postinstall_cmds=$lt_postinstall_cmds
14814postuninstall_cmds=$lt_postuninstall_cmds
14815
14816# Commands used to build a loadable module (assumed same as above if empty)
14817module_cmds=$lt_module_cmds_F77
14818module_expsym_cmds=$lt_module_expsym_cmds_F77
14819
14820# Commands to strip libraries.
14821old_striplib=$lt_old_striplib
14822striplib=$lt_striplib
14823
14824# Dependencies to place before the objects being linked to create a
14825# shared library.
14826predep_objects=$lt_predep_objects_F77
14827
14828# Dependencies to place after the objects being linked to create a
14829# shared library.
14830postdep_objects=$lt_postdep_objects_F77
14831
14832# Dependencies to place before the objects being linked to create a
14833# shared library.
14834predeps=$lt_predeps_F77
14835
14836# Dependencies to place after the objects being linked to create a
14837# shared library.
14838postdeps=$lt_postdeps_F77
14839
14840# The library search path used internally by the compiler when linking
14841# a shared library.
14842compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14843
14844# Method to check whether dependent libraries are shared objects.
14845deplibs_check_method=$lt_deplibs_check_method
14846
14847# Command to use when deplibs_check_method == file_magic.
14848file_magic_cmd=$lt_file_magic_cmd
14849
14850# Flag that allows shared libraries with undefined symbols to be built.
14851allow_undefined_flag=$lt_allow_undefined_flag_F77
14852
14853# Flag that forces no undefined symbols.
14854no_undefined_flag=$lt_no_undefined_flag_F77
14855
14856# Commands used to finish a libtool library installation in a directory.
14857finish_cmds=$lt_finish_cmds
14858
14859# Same as above, but a single script fragment to be evaled but not shown.
14860finish_eval=$lt_finish_eval
14861
14862# Take the output of nm and produce a listing of raw symbols and C names.
14863global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14864
14865# Transform the output of nm in a proper C declaration
14866global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14867
14868# Transform the output of nm in a C name address pair
14869global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14870
14871# This is the shared library runtime path variable.
14872runpath_var=$runpath_var
14873
14874# This is the shared library path variable.
14875shlibpath_var=$shlibpath_var
14876
14877# Is shlibpath searched before the hard-coded library search path?
14878shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14879
14880# How to hardcode a shared library path into an executable.
14881hardcode_action=$hardcode_action_F77
14882
14883# Whether we should hardcode library paths into libraries.
14884hardcode_into_libs=$hardcode_into_libs
14885
14886# Flag to hardcode \$libdir into a binary during linking.
14887# This must work even if \$libdir does not exist.
14888hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14889
14890# If ld is used when linking, flag to hardcode \$libdir into
14891# a binary during linking. This must work even if \$libdir does
14892# not exist.
14893hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14894
14895# Whether we need a single -rpath flag with a separated argument.
14896hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14897
14898# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14899# resulting binary.
14900hardcode_direct=$hardcode_direct_F77
14901
14902# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14903# resulting binary.
14904hardcode_minus_L=$hardcode_minus_L_F77
14905
14906# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14907# the resulting binary.
14908hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14909
14910# Set to yes if building a shared library automatically hardcodes DIR into the library
14911# and all subsequent libraries and executables linked against it.
14912hardcode_automatic=$hardcode_automatic_F77
14913
14914# Variables whose values should be saved in libtool wrapper scripts and
14915# restored at relink time.
14916variables_saved_for_relink="$variables_saved_for_relink"
14917
14918# Whether libtool must link a program against all its dependency libraries.
14919link_all_deplibs=$link_all_deplibs_F77
14920
14921# Compile-time system search path for libraries
14922sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14923
14924# Run-time system search path for libraries
14925sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14926
14927# Fix the shell variable \$srcfile for the compiler.
14928fix_srcfile_path="$fix_srcfile_path_F77"
14929
14930# Set to yes if exported symbols are required.
14931always_export_symbols=$always_export_symbols_F77
14932
14933# The commands to list exported symbols.
14934export_symbols_cmds=$lt_export_symbols_cmds_F77
14935
14936# The commands to extract the exported symbol list from a shared archive.
14937extract_expsyms_cmds=$lt_extract_expsyms_cmds
14938
14939# Symbols that should not be listed in the preloaded symbols.
14940exclude_expsyms=$lt_exclude_expsyms_F77
14941
14942# Symbols that must always be exported.
14943include_expsyms=$lt_include_expsyms_F77
14944
14945# ### END LIBTOOL TAG CONFIG: $tagname
14946
14947__EOF__
14948
14949
14950else
14951  # If there is no Makefile yet, we rely on a make rule to execute
14952  # `config.status --recheck' to rerun these tests and create the
14953  # libtool script then.
14954  test -f Makefile && make "$ltmain"
14955fi
14956
14957
14958ac_ext=c
14959ac_cpp='$CPP $CPPFLAGS'
14960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14962ac_compiler_gnu=$ac_cv_c_compiler_gnu
14963
14964CC="$lt_save_CC"
14965
14966	else
14967	  tagname=""
14968	fi
14969	;;
14970
14971      GCJ)
14972	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14973
14974
14975
14976# Source file extension for Java test sources.
14977ac_ext=java
14978
14979# Object file extension for compiled Java test sources.
14980objext=o
14981objext_GCJ=$objext
14982
14983# Code to be used in simple compile tests
14984lt_simple_compile_test_code="class foo {}\n"
14985
14986# Code to be used in simple link tests
14987lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14988
14989# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14990
14991# If no C compiler was specified, use CC.
14992LTCC=${LTCC-"$CC"}
14993
14994# Allow CC to be a program name with arguments.
14995compiler=$CC
14996
14997
14998# Allow CC to be a program name with arguments.
14999lt_save_CC="$CC"
15000CC=${GCJ-"gcj"}
15001compiler=$CC
15002compiler_GCJ=$CC
15003
15004# GCJ did not exist at the time GCC didn't implicitly link libc in.
15005archive_cmds_need_lc_GCJ=no
15006
15007## CAVEAT EMPTOR:
15008## There is no encapsulation within the following macros, do not change
15009## the running order or otherwise move them around unless you know exactly
15010## what you are doing...
15011
15012lt_prog_compiler_no_builtin_flag_GCJ=
15013
15014if test "$GCC" = yes; then
15015  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15016
15017  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15018echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15019if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15020  echo $ECHO_N "(cached) $ECHO_C" >&6
15021else
15022  lt_cv_prog_compiler_rtti_exceptions=no
15023  ac_outfile=conftest.$ac_objext
15024   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15025   lt_compiler_flag="-fno-rtti -fno-exceptions"
15026   # Insert the option either (1) after the last *FLAGS variable, or
15027   # (2) before a word containing "conftest.", or (3) at the end.
15028   # Note that $ac_compile itself does not contain backslashes and begins
15029   # with a dollar sign (not a hyphen), so the echo should work correctly.
15030   # The option is referenced via a variable to avoid confusing sed.
15031   lt_compile=`echo "$ac_compile" | $SED \
15032   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15033   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15034   -e 's:$: $lt_compiler_flag:'`
15035   (eval echo "\"\$as_me:15035: $lt_compile\"" >&5)
15036   (eval "$lt_compile" 2>conftest.err)
15037   ac_status=$?
15038   cat conftest.err >&5
15039   echo "$as_me:15039: \$? = $ac_status" >&5
15040   if (exit $ac_status) && test -s "$ac_outfile"; then
15041     # The compiler can only warn and ignore the option if not recognized
15042     # So say no if there are warnings
15043     if test ! -s conftest.err; then
15044       lt_cv_prog_compiler_rtti_exceptions=yes
15045     fi
15046   fi
15047   $rm conftest*
15048
15049fi
15050echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15051echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15052
15053if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15054    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15055else
15056    :
15057fi
15058
15059fi
15060
15061lt_prog_compiler_wl_GCJ=
15062lt_prog_compiler_pic_GCJ=
15063lt_prog_compiler_static_GCJ=
15064
15065echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15066echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15067
15068  if test "$GCC" = yes; then
15069    lt_prog_compiler_wl_GCJ='-Wl,'
15070    lt_prog_compiler_static_GCJ='-static'
15071
15072    case $host_os in
15073      aix*)
15074      # All AIX code is PIC.
15075      if test "$host_cpu" = ia64; then
15076	# AIX 5 now supports IA64 processor
15077	lt_prog_compiler_static_GCJ='-Bstatic'
15078      fi
15079      ;;
15080
15081    amigaos*)
15082      # FIXME: we need at least 68020 code to build shared libraries, but
15083      # adding the `-m68020' flag to GCC prevents building anything better,
15084      # like `-m68040'.
15085      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15086      ;;
15087
15088    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15089      # PIC is the default for these OSes.
15090      ;;
15091
15092    mingw* | pw32* | os2*)
15093      # This hack is so that the source file can tell whether it is being
15094      # built for inclusion in a dll (and should export symbols for example).
15095      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15096      ;;
15097
15098    darwin* | rhapsody*)
15099      # PIC is the default on this platform
15100      # Common symbols not allowed in MH_DYLIB files
15101      lt_prog_compiler_pic_GCJ='-fno-common'
15102      ;;
15103
15104    msdosdjgpp*)
15105      # Just because we use GCC doesn't mean we suddenly get shared libraries
15106      # on systems that don't support them.
15107      lt_prog_compiler_can_build_shared_GCJ=no
15108      enable_shared=no
15109      ;;
15110
15111    sysv4*MP*)
15112      if test -d /usr/nec; then
15113	lt_prog_compiler_pic_GCJ=-Kconform_pic
15114      fi
15115      ;;
15116
15117    hpux*)
15118      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15119      # not for PA HP-UX.
15120      case "$host_cpu" in
15121      hppa*64*|ia64*)
15122	# +Z the default
15123	;;
15124      *)
15125	lt_prog_compiler_pic_GCJ='-fPIC'
15126	;;
15127      esac
15128      ;;
15129
15130    *)
15131      lt_prog_compiler_pic_GCJ='-fPIC'
15132      ;;
15133    esac
15134  else
15135    # PORTME Check for flag to pass linker flags through the system compiler.
15136    case $host_os in
15137    aix*)
15138      lt_prog_compiler_wl_GCJ='-Wl,'
15139      if test "$host_cpu" = ia64; then
15140	# AIX 5 now supports IA64 processor
15141	lt_prog_compiler_static_GCJ='-Bstatic'
15142      else
15143	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15144      fi
15145      ;;
15146
15147    mingw* | pw32* | os2*)
15148      # This hack is so that the source file can tell whether it is being
15149      # built for inclusion in a dll (and should export symbols for example).
15150      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15151      ;;
15152
15153    hpux9* | hpux10* | hpux11*)
15154      lt_prog_compiler_wl_GCJ='-Wl,'
15155      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15156      # not for PA HP-UX.
15157      case "$host_cpu" in
15158      hppa*64*|ia64*)
15159	# +Z the default
15160	;;
15161      *)
15162	lt_prog_compiler_pic_GCJ='+Z'
15163	;;
15164      esac
15165      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15166      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15167      ;;
15168
15169    irix5* | irix6* | nonstopux*)
15170      lt_prog_compiler_wl_GCJ='-Wl,'
15171      # PIC (with -KPIC) is the default.
15172      lt_prog_compiler_static_GCJ='-non_shared'
15173      ;;
15174
15175    newsos6)
15176      lt_prog_compiler_pic_GCJ='-KPIC'
15177      lt_prog_compiler_static_GCJ='-Bstatic'
15178      ;;
15179
15180    linux*)
15181      case $CC in
15182      icc|ecc)
15183	lt_prog_compiler_wl_GCJ='-Wl,'
15184	lt_prog_compiler_pic_GCJ='-KPIC'
15185	lt_prog_compiler_static_GCJ='-static'
15186        ;;
15187      ccc)
15188        lt_prog_compiler_wl_GCJ='-Wl,'
15189        # All Alpha code is PIC.
15190        lt_prog_compiler_static_GCJ='-non_shared'
15191        ;;
15192      esac
15193      ;;
15194
15195    osf3* | osf4* | osf5*)
15196      lt_prog_compiler_wl_GCJ='-Wl,'
15197      # All OSF/1 code is PIC.
15198      lt_prog_compiler_static_GCJ='-non_shared'
15199      ;;
15200
15201    sco3.2v5*)
15202      lt_prog_compiler_pic_GCJ='-Kpic'
15203      lt_prog_compiler_static_GCJ='-dn'
15204      ;;
15205
15206    solaris*)
15207      lt_prog_compiler_wl_GCJ='-Wl,'
15208      lt_prog_compiler_pic_GCJ='-KPIC'
15209      lt_prog_compiler_static_GCJ='-Bstatic'
15210      ;;
15211
15212    sunos4*)
15213      lt_prog_compiler_wl_GCJ='-Qoption ld '
15214      lt_prog_compiler_pic_GCJ='-PIC'
15215      lt_prog_compiler_static_GCJ='-Bstatic'
15216      ;;
15217
15218    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15219      lt_prog_compiler_wl_GCJ='-Wl,'
15220      lt_prog_compiler_pic_GCJ='-KPIC'
15221      lt_prog_compiler_static_GCJ='-Bstatic'
15222      ;;
15223
15224    sysv4*MP*)
15225      if test -d /usr/nec ;then
15226	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15227	lt_prog_compiler_static_GCJ='-Bstatic'
15228      fi
15229      ;;
15230
15231    uts4*)
15232      lt_prog_compiler_pic_GCJ='-pic'
15233      lt_prog_compiler_static_GCJ='-Bstatic'
15234      ;;
15235
15236    *)
15237      lt_prog_compiler_can_build_shared_GCJ=no
15238      ;;
15239    esac
15240  fi
15241
15242echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15243echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15244
15245#
15246# Check to make sure the PIC flag actually works.
15247#
15248if test -n "$lt_prog_compiler_pic_GCJ"; then
15249  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15250echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15251if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15252  echo $ECHO_N "(cached) $ECHO_C" >&6
15253else
15254  lt_prog_compiler_pic_works_GCJ=no
15255  ac_outfile=conftest.$ac_objext
15256   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15257   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15258   # Insert the option either (1) after the last *FLAGS variable, or
15259   # (2) before a word containing "conftest.", or (3) at the end.
15260   # Note that $ac_compile itself does not contain backslashes and begins
15261   # with a dollar sign (not a hyphen), so the echo should work correctly.
15262   # The option is referenced via a variable to avoid confusing sed.
15263   lt_compile=`echo "$ac_compile" | $SED \
15264   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15265   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15266   -e 's:$: $lt_compiler_flag:'`
15267   (eval echo "\"\$as_me:15267: $lt_compile\"" >&5)
15268   (eval "$lt_compile" 2>conftest.err)
15269   ac_status=$?
15270   cat conftest.err >&5
15271   echo "$as_me:15271: \$? = $ac_status" >&5
15272   if (exit $ac_status) && test -s "$ac_outfile"; then
15273     # The compiler can only warn and ignore the option if not recognized
15274     # So say no if there are warnings
15275     if test ! -s conftest.err; then
15276       lt_prog_compiler_pic_works_GCJ=yes
15277     fi
15278   fi
15279   $rm conftest*
15280
15281fi
15282echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15283echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15284
15285if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15286    case $lt_prog_compiler_pic_GCJ in
15287     "" | " "*) ;;
15288     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15289     esac
15290else
15291    lt_prog_compiler_pic_GCJ=
15292     lt_prog_compiler_can_build_shared_GCJ=no
15293fi
15294
15295fi
15296case "$host_os" in
15297  # For platforms which do not support PIC, -DPIC is meaningless:
15298  *djgpp*)
15299    lt_prog_compiler_pic_GCJ=
15300    ;;
15301  *)
15302    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15303    ;;
15304esac
15305
15306echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15307echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15308if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15309  echo $ECHO_N "(cached) $ECHO_C" >&6
15310else
15311  lt_cv_prog_compiler_c_o_GCJ=no
15312   $rm -r conftest 2>/dev/null
15313   mkdir conftest
15314   cd conftest
15315   mkdir out
15316   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15317
15318   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15319   # that will create temporary files in the current directory regardless of
15320   # the output directory.  Thus, making CWD read-only will cause this test
15321   # to fail, enabling locking or at least warning the user not to do parallel
15322   # builds.
15323   chmod -w .
15324
15325   lt_compiler_flag="-o out/conftest2.$ac_objext"
15326   # Insert the option either (1) after the last *FLAGS variable, or
15327   # (2) before a word containing "conftest.", or (3) at the end.
15328   # Note that $ac_compile itself does not contain backslashes and begins
15329   # with a dollar sign (not a hyphen), so the echo should work correctly.
15330   lt_compile=`echo "$ac_compile" | $SED \
15331   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15332   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15333   -e 's:$: $lt_compiler_flag:'`
15334   (eval echo "\"\$as_me:15334: $lt_compile\"" >&5)
15335   (eval "$lt_compile" 2>out/conftest.err)
15336   ac_status=$?
15337   cat out/conftest.err >&5
15338   echo "$as_me:15338: \$? = $ac_status" >&5
15339   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15340   then
15341     # The compiler can only warn and ignore the option if not recognized
15342     # So say no if there are warnings
15343     if test ! -s out/conftest.err; then
15344       lt_cv_prog_compiler_c_o_GCJ=yes
15345     fi
15346   fi
15347   chmod u+w .
15348   $rm conftest* out/*
15349   rmdir out
15350   cd ..
15351   rmdir conftest
15352   $rm conftest*
15353
15354fi
15355echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15356echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15357
15358
15359hard_links="nottested"
15360if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15361  # do not overwrite the value of need_locks provided by the user
15362  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15363echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15364  hard_links=yes
15365  $rm conftest*
15366  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15367  touch conftest.a
15368  ln conftest.a conftest.b 2>&5 || hard_links=no
15369  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15370  echo "$as_me:$LINENO: result: $hard_links" >&5
15371echo "${ECHO_T}$hard_links" >&6
15372  if test "$hard_links" = no; then
15373    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15374echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15375    need_locks=warn
15376  fi
15377else
15378  need_locks=no
15379fi
15380
15381echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15382echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15383
15384  runpath_var=
15385  allow_undefined_flag_GCJ=
15386  enable_shared_with_static_runtimes_GCJ=no
15387  archive_cmds_GCJ=
15388  archive_expsym_cmds_GCJ=
15389  old_archive_From_new_cmds_GCJ=
15390  old_archive_from_expsyms_cmds_GCJ=
15391  export_dynamic_flag_spec_GCJ=
15392  whole_archive_flag_spec_GCJ=
15393  thread_safe_flag_spec_GCJ=
15394  hardcode_libdir_flag_spec_GCJ=
15395  hardcode_libdir_flag_spec_ld_GCJ=
15396  hardcode_libdir_separator_GCJ=
15397  hardcode_direct_GCJ=no
15398  hardcode_minus_L_GCJ=no
15399  hardcode_shlibpath_var_GCJ=unsupported
15400  link_all_deplibs_GCJ=unknown
15401  hardcode_automatic_GCJ=no
15402  module_cmds_GCJ=
15403  module_expsym_cmds_GCJ=
15404  always_export_symbols_GCJ=no
15405  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15406  # include_expsyms should be a list of space-separated symbols to be *always*
15407  # included in the symbol list
15408  include_expsyms_GCJ=
15409  # exclude_expsyms can be an extended regexp of symbols to exclude
15410  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15411  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15412  # as well as any symbol that contains `d'.
15413  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15414  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15415  # platforms (ab)use it in PIC code, but their linkers get confused if
15416  # the symbol is explicitly referenced.  Since portable code cannot
15417  # rely on this symbol name, it's probably fine to never include it in
15418  # preloaded symbol tables.
15419  extract_expsyms_cmds=
15420
15421  case $host_os in
15422  cygwin* | mingw* | pw32*)
15423    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15424    # When not using gcc, we currently assume that we are using
15425    # Microsoft Visual C++.
15426    if test "$GCC" != yes; then
15427      with_gnu_ld=no
15428    fi
15429    ;;
15430  openbsd*)
15431    with_gnu_ld=no
15432    ;;
15433  esac
15434
15435  ld_shlibs_GCJ=yes
15436  if test "$with_gnu_ld" = yes; then
15437    # If archive_cmds runs LD, not CC, wlarc should be empty
15438    wlarc='${wl}'
15439
15440    # See if GNU ld supports shared libraries.
15441    case $host_os in
15442    aix3* | aix4* | aix5*)
15443      # On AIX/PPC, the GNU linker is very broken
15444      if test "$host_cpu" != ia64; then
15445	ld_shlibs_GCJ=no
15446	cat <<EOF 1>&2
15447
15448*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15449*** to be unable to reliably create shared libraries on AIX.
15450*** Therefore, libtool is disabling shared libraries support.  If you
15451*** really care for shared libraries, you may want to modify your PATH
15452*** so that a non-GNU linker is found, and then restart.
15453
15454EOF
15455      fi
15456      ;;
15457
15458    amigaos*)
15459      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)'
15460      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15461      hardcode_minus_L_GCJ=yes
15462
15463      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15464      # that the semantics of dynamic libraries on AmigaOS, at least up
15465      # to version 4, is to share data among multiple programs linked
15466      # with the same dynamic library.  Since this doesn't match the
15467      # behavior of shared libraries on other platforms, we can't use
15468      # them.
15469      ld_shlibs_GCJ=no
15470      ;;
15471
15472    beos*)
15473      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15474	allow_undefined_flag_GCJ=unsupported
15475	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15476	# support --undefined.  This deserves some investigation.  FIXME
15477	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15478      else
15479	ld_shlibs_GCJ=no
15480      fi
15481      ;;
15482
15483    cygwin* | mingw* | pw32*)
15484      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15485      # as there is no search path for DLLs.
15486      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15487      allow_undefined_flag_GCJ=unsupported
15488      always_export_symbols_GCJ=no
15489      enable_shared_with_static_runtimes_GCJ=yes
15490      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15491
15492      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15493        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15494	# If the export-symbols file already is a .def file (1st line
15495	# is EXPORTS), use it as is; otherwise, prepend...
15496	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15497	  cp $export_symbols $output_objdir/$soname.def;
15498	else
15499	  echo EXPORTS > $output_objdir/$soname.def;
15500	  cat $export_symbols >> $output_objdir/$soname.def;
15501	fi~
15502	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15503      else
15504	ld_shlibs=no
15505      fi
15506      ;;
15507
15508    netbsd*)
15509      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15510	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15511	wlarc=
15512      else
15513	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15514	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15515      fi
15516      ;;
15517
15518    solaris* | sysv5*)
15519      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15520	ld_shlibs_GCJ=no
15521	cat <<EOF 1>&2
15522
15523*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15524*** create shared libraries on Solaris systems.  Therefore, libtool
15525*** is disabling shared libraries support.  We urge you to upgrade GNU
15526*** binutils to release 2.9.1 or newer.  Another option is to modify
15527*** your PATH or compiler configuration so that the native linker is
15528*** used, and then restart.
15529
15530EOF
15531      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15532	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15533	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15534      else
15535	ld_shlibs_GCJ=no
15536      fi
15537      ;;
15538
15539    sunos4*)
15540      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15541      wlarc=
15542      hardcode_direct_GCJ=yes
15543      hardcode_shlibpath_var_GCJ=no
15544      ;;
15545
15546    *)
15547      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15548	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15549	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15550      else
15551	ld_shlibs_GCJ=no
15552      fi
15553      ;;
15554    esac
15555
15556    if test "$ld_shlibs_GCJ" = yes; then
15557      runpath_var=LD_RUN_PATH
15558      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15559      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15560      # ancient GNU ld didn't support --whole-archive et. al.
15561      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15562 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15563      else
15564  	whole_archive_flag_spec_GCJ=
15565      fi
15566    fi
15567  else
15568    # PORTME fill in a description of your system's linker (not GNU ld)
15569    case $host_os in
15570    aix3*)
15571      allow_undefined_flag_GCJ=unsupported
15572      always_export_symbols_GCJ=yes
15573      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'
15574      # Note: this linker hardcodes the directories in LIBPATH if there
15575      # are no directories specified by -L.
15576      hardcode_minus_L_GCJ=yes
15577      if test "$GCC" = yes && test -z "$link_static_flag"; then
15578	# Neither direct hardcoding nor static linking is supported with a
15579	# broken collect2.
15580	hardcode_direct_GCJ=unsupported
15581      fi
15582      ;;
15583
15584    aix4* | aix5*)
15585      if test "$host_cpu" = ia64; then
15586	# On IA64, the linker does run time linking by default, so we don't
15587	# have to do anything special.
15588	aix_use_runtimelinking=no
15589	exp_sym_flag='-Bexport'
15590	no_entry_flag=""
15591      else
15592	# If we're using GNU nm, then we don't want the "-C" option.
15593	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15594	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15595	  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'
15596	else
15597	  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'
15598	fi
15599	aix_use_runtimelinking=no
15600
15601	# Test if we are trying to use run time linking or normal
15602	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15603	# need to do runtime linking.
15604	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15605	  for ld_flag in $LDFLAGS; do
15606  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15607  	    aix_use_runtimelinking=yes
15608  	    break
15609  	  fi
15610	  done
15611	esac
15612
15613	exp_sym_flag='-bexport'
15614	no_entry_flag='-bnoentry'
15615      fi
15616
15617      # When large executables or shared objects are built, AIX ld can
15618      # have problems creating the table of contents.  If linking a library
15619      # or program results in "error TOC overflow" add -mminimal-toc to
15620      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15621      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15622
15623      archive_cmds_GCJ=''
15624      hardcode_direct_GCJ=yes
15625      hardcode_libdir_separator_GCJ=':'
15626      link_all_deplibs_GCJ=yes
15627
15628      if test "$GCC" = yes; then
15629	case $host_os in aix4.012|aix4.012.*)
15630	# We only want to do this on AIX 4.2 and lower, the check
15631	# below for broken collect2 doesn't work under 4.3+
15632	  collect2name=`${CC} -print-prog-name=collect2`
15633	  if test -f "$collect2name" && \
15634  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15635	  then
15636  	  # We have reworked collect2
15637  	  hardcode_direct_GCJ=yes
15638	  else
15639  	  # We have old collect2
15640  	  hardcode_direct_GCJ=unsupported
15641  	  # It fails to find uninstalled libraries when the uninstalled
15642  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15643  	  # to unsupported forces relinking
15644  	  hardcode_minus_L_GCJ=yes
15645  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
15646  	  hardcode_libdir_separator_GCJ=
15647	  fi
15648	esac
15649	shared_flag='-shared'
15650      else
15651	# not using gcc
15652	if test "$host_cpu" = ia64; then
15653  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15654  	# chokes on -Wl,-G. The following line is correct:
15655	  shared_flag='-G'
15656	else
15657  	if test "$aix_use_runtimelinking" = yes; then
15658	    shared_flag='${wl}-G'
15659	  else
15660	    shared_flag='${wl}-bM:SRE'
15661  	fi
15662	fi
15663      fi
15664
15665      # It seems that -bexpall does not export symbols beginning with
15666      # underscore (_), so it is better to generate a list of symbols to export.
15667      always_export_symbols_GCJ=yes
15668      if test "$aix_use_runtimelinking" = yes; then
15669	# Warning - without using the other runtime loading flags (-brtl),
15670	# -berok will link without error, but may produce a broken library.
15671	allow_undefined_flag_GCJ='-berok'
15672       # Determine the default libpath from the value encoded in an empty executable.
15673       cat >conftest.$ac_ext <<_ACEOF
15674#line $LINENO "configure"
15675/* confdefs.h.  */
15676_ACEOF
15677cat confdefs.h >>conftest.$ac_ext
15678cat >>conftest.$ac_ext <<_ACEOF
15679/* end confdefs.h.  */
15680
15681int
15682main ()
15683{
15684
15685  ;
15686  return 0;
15687}
15688_ACEOF
15689rm -f conftest.$ac_objext conftest$ac_exeext
15690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15691  (eval $ac_link) 2>&5
15692  ac_status=$?
15693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694  (exit $ac_status); } &&
15695         { ac_try='test -s conftest$ac_exeext'
15696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697  (eval $ac_try) 2>&5
15698  ac_status=$?
15699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700  (exit $ac_status); }; }; then
15701
15702aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15703}'`
15704# Check for a 64-bit object if we didn't find anything.
15705if 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; }
15706}'`; fi
15707else
15708  echo "$as_me: failed program was:" >&5
15709sed 's/^/| /' conftest.$ac_ext >&5
15710
15711fi
15712rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15713if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15714
15715       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15716	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"
15717       else
15718	if test "$host_cpu" = ia64; then
15719	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15720	  allow_undefined_flag_GCJ="-z nodefs"
15721	  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"
15722	else
15723	 # Determine the default libpath from the value encoded in an empty executable.
15724	 cat >conftest.$ac_ext <<_ACEOF
15725#line $LINENO "configure"
15726/* confdefs.h.  */
15727_ACEOF
15728cat confdefs.h >>conftest.$ac_ext
15729cat >>conftest.$ac_ext <<_ACEOF
15730/* end confdefs.h.  */
15731
15732int
15733main ()
15734{
15735
15736  ;
15737  return 0;
15738}
15739_ACEOF
15740rm -f conftest.$ac_objext conftest$ac_exeext
15741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15742  (eval $ac_link) 2>&5
15743  ac_status=$?
15744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745  (exit $ac_status); } &&
15746         { ac_try='test -s conftest$ac_exeext'
15747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15748  (eval $ac_try) 2>&5
15749  ac_status=$?
15750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751  (exit $ac_status); }; }; then
15752
15753aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15754}'`
15755# Check for a 64-bit object if we didn't find anything.
15756if 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; }
15757}'`; fi
15758else
15759  echo "$as_me: failed program was:" >&5
15760sed 's/^/| /' conftest.$ac_ext >&5
15761
15762fi
15763rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15764if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15765
15766	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15767	  # Warning - without using the other run time loading flags,
15768	  # -berok will link without error, but may produce a broken library.
15769	  no_undefined_flag_GCJ=' ${wl}-bernotok'
15770	  allow_undefined_flag_GCJ=' ${wl}-berok'
15771	  # -bexpall does not export symbols beginning with underscore (_)
15772	  always_export_symbols_GCJ=yes
15773	  # Exported symbols can be pulled into shared objects from archives
15774	  whole_archive_flag_spec_GCJ=' '
15775	  archive_cmds_need_lc_GCJ=yes
15776	  # This is similar to how AIX traditionally builds it's shared libraries.
15777	  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'
15778	fi
15779      fi
15780      ;;
15781
15782    amigaos*)
15783      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)'
15784      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15785      hardcode_minus_L_GCJ=yes
15786      # see comment about different semantics on the GNU ld section
15787      ld_shlibs_GCJ=no
15788      ;;
15789
15790    bsdi4*)
15791      export_dynamic_flag_spec_GCJ=-rdynamic
15792      ;;
15793
15794    cygwin* | mingw* | pw32*)
15795      # When not using gcc, we currently assume that we are using
15796      # Microsoft Visual C++.
15797      # hardcode_libdir_flag_spec is actually meaningless, as there is
15798      # no search path for DLLs.
15799      hardcode_libdir_flag_spec_GCJ=' '
15800      allow_undefined_flag_GCJ=unsupported
15801      # Tell ltmain to make .lib files, not .a files.
15802      libext=lib
15803      # Tell ltmain to make .dll files, not .so files.
15804      shrext=".dll"
15805      # FIXME: Setting linknames here is a bad hack.
15806      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15807      # The linker will automatically build a .lib file if we build a DLL.
15808      old_archive_From_new_cmds_GCJ='true'
15809      # FIXME: Should let the user specify the lib program.
15810      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15811      fix_srcfile_path='`cygpath -w "$srcfile"`'
15812      enable_shared_with_static_runtimes_GCJ=yes
15813      ;;
15814
15815    darwin* | rhapsody*)
15816    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15817      archive_cmds_need_lc_GCJ=no
15818      case "$host_os" in
15819      rhapsody* | darwin1.[012])
15820	allow_undefined_flag_GCJ='-undefined suppress'
15821	;;
15822      *) # Darwin 1.3 on
15823	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15824	;;
15825      esac
15826      # FIXME: Relying on posixy $() will cause problems for
15827      #        cross-compilation, but unfortunately the echo tests do not
15828      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15829      #	       `"' quotes if we put them in here... so don't!
15830    	lt_int_apple_cc_single_mod=no
15831    	output_verbose_link_cmd='echo'
15832    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15833    	  lt_int_apple_cc_single_mod=yes
15834    	fi
15835    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15836    	  archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15837    	else
15838        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'
15839      fi
15840      module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15841      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15842        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15843          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}'
15844        else
15845          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}'
15846        fi
15847          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}'
15848      hardcode_direct_GCJ=no
15849      hardcode_automatic_GCJ=yes
15850      hardcode_shlibpath_var_GCJ=unsupported
15851      whole_archive_flag_spec_GCJ='-all_load $convenience'
15852      link_all_deplibs_GCJ=yes
15853    fi
15854      ;;
15855
15856    dgux*)
15857      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15858      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15859      hardcode_shlibpath_var_GCJ=no
15860      ;;
15861
15862    freebsd1*)
15863      ld_shlibs_GCJ=no
15864      ;;
15865
15866    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15867    # support.  Future versions do this automatically, but an explicit c++rt0.o
15868    # does not break anything, and helps significantly (at the cost of a little
15869    # extra space).
15870    freebsd2.2*)
15871      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15872      hardcode_libdir_flag_spec_GCJ='-R$libdir'
15873      hardcode_direct_GCJ=yes
15874      hardcode_shlibpath_var_GCJ=no
15875      ;;
15876
15877    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15878    freebsd2*)
15879      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15880      hardcode_direct_GCJ=yes
15881      hardcode_minus_L_GCJ=yes
15882      hardcode_shlibpath_var_GCJ=no
15883      ;;
15884
15885    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15886    freebsd*)
15887      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15888      hardcode_libdir_flag_spec_GCJ='-R$libdir'
15889      hardcode_direct_GCJ=yes
15890      hardcode_shlibpath_var_GCJ=no
15891      ;;
15892
15893    hpux9*)
15894      if test "$GCC" = yes; then
15895	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'
15896      else
15897	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'
15898      fi
15899      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15900      hardcode_libdir_separator_GCJ=:
15901      hardcode_direct_GCJ=yes
15902
15903      # hardcode_minus_L: Not really in the search PATH,
15904      # but as the default location of the library.
15905      hardcode_minus_L_GCJ=yes
15906      export_dynamic_flag_spec_GCJ='${wl}-E'
15907      ;;
15908
15909    hpux10* | hpux11*)
15910      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15911	case "$host_cpu" in
15912	hppa*64*|ia64*)
15913	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15914	  ;;
15915	*)
15916	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15917	  ;;
15918	esac
15919      else
15920	case "$host_cpu" in
15921	hppa*64*|ia64*)
15922	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15923	  ;;
15924	*)
15925	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15926	  ;;
15927	esac
15928      fi
15929      if test "$with_gnu_ld" = no; then
15930	case "$host_cpu" in
15931	hppa*64*)
15932	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15933	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15934	  hardcode_libdir_separator_GCJ=:
15935	  hardcode_direct_GCJ=no
15936	  hardcode_shlibpath_var_GCJ=no
15937	  ;;
15938	ia64*)
15939	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
15940	  hardcode_direct_GCJ=no
15941	  hardcode_shlibpath_var_GCJ=no
15942
15943	  # hardcode_minus_L: Not really in the search PATH,
15944	  # but as the default location of the library.
15945	  hardcode_minus_L_GCJ=yes
15946	  ;;
15947	*)
15948	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15949	  hardcode_libdir_separator_GCJ=:
15950	  hardcode_direct_GCJ=yes
15951	  export_dynamic_flag_spec_GCJ='${wl}-E'
15952
15953	  # hardcode_minus_L: Not really in the search PATH,
15954	  # but as the default location of the library.
15955	  hardcode_minus_L_GCJ=yes
15956	  ;;
15957	esac
15958      fi
15959      ;;
15960
15961    irix5* | irix6* | nonstopux*)
15962      if test "$GCC" = yes; then
15963	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'
15964      else
15965	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'
15966	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15967      fi
15968      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15969      hardcode_libdir_separator_GCJ=:
15970      link_all_deplibs_GCJ=yes
15971      ;;
15972
15973    netbsd*)
15974      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15975	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15976      else
15977	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15978      fi
15979      hardcode_libdir_flag_spec_GCJ='-R$libdir'
15980      hardcode_direct_GCJ=yes
15981      hardcode_shlibpath_var_GCJ=no
15982      ;;
15983
15984    newsos6)
15985      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15986      hardcode_direct_GCJ=yes
15987      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15988      hardcode_libdir_separator_GCJ=:
15989      hardcode_shlibpath_var_GCJ=no
15990      ;;
15991
15992    openbsd*)
15993      hardcode_direct_GCJ=yes
15994      hardcode_shlibpath_var_GCJ=no
15995      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15996	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15997	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15998	export_dynamic_flag_spec_GCJ='${wl}-E'
15999      else
16000       case $host_os in
16001	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16002	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16003	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16004	   ;;
16005	 *)
16006	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16007	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16008	   ;;
16009       esac
16010      fi
16011      ;;
16012
16013    os2*)
16014      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16015      hardcode_minus_L_GCJ=yes
16016      allow_undefined_flag_GCJ=unsupported
16017      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'
16018      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16019      ;;
16020
16021    osf3*)
16022      if test "$GCC" = yes; then
16023	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16024	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'
16025      else
16026	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16027	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'
16028      fi
16029      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16030      hardcode_libdir_separator_GCJ=:
16031      ;;
16032
16033    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16034      if test "$GCC" = yes; then
16035	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16036	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'
16037	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16038      else
16039	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16040	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'
16041	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~
16042	$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'
16043
16044	# Both c and cxx compiler support -rpath directly
16045	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16046      fi
16047      hardcode_libdir_separator_GCJ=:
16048      ;;
16049
16050    sco3.2v5*)
16051      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16052      hardcode_shlibpath_var_GCJ=no
16053      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16054      runpath_var=LD_RUN_PATH
16055      hardcode_runpath_var=yes
16056      ;;
16057
16058    solaris*)
16059      no_undefined_flag_GCJ=' -z text'
16060      if test "$GCC" = yes; then
16061	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16062	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16063	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16064      else
16065	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16066	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16067  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16068      fi
16069      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16070      hardcode_shlibpath_var_GCJ=no
16071      case $host_os in
16072      solaris2.[0-5] | solaris2.[0-5].*) ;;
16073      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16074	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16075      esac
16076      link_all_deplibs_GCJ=yes
16077      ;;
16078
16079    sunos4*)
16080      if test "x$host_vendor" = xsequent; then
16081	# Use $CC to link under sequent, because it throws in some extra .o
16082	# files that make .init and .fini sections work.
16083	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16084      else
16085	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16086      fi
16087      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16088      hardcode_direct_GCJ=yes
16089      hardcode_minus_L_GCJ=yes
16090      hardcode_shlibpath_var_GCJ=no
16091      ;;
16092
16093    sysv4)
16094      case $host_vendor in
16095	sni)
16096	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16097	  hardcode_direct_GCJ=yes # is this really true???
16098	;;
16099	siemens)
16100	  ## LD is ld it makes a PLAMLIB
16101	  ## CC just makes a GrossModule.
16102	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16103	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16104	  hardcode_direct_GCJ=no
16105        ;;
16106	motorola)
16107	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16108	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16109	;;
16110      esac
16111      runpath_var='LD_RUN_PATH'
16112      hardcode_shlibpath_var_GCJ=no
16113      ;;
16114
16115    sysv4.3*)
16116      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16117      hardcode_shlibpath_var_GCJ=no
16118      export_dynamic_flag_spec_GCJ='-Bexport'
16119      ;;
16120
16121    sysv4*MP*)
16122      if test -d /usr/nec; then
16123	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16124	hardcode_shlibpath_var_GCJ=no
16125	runpath_var=LD_RUN_PATH
16126	hardcode_runpath_var=yes
16127	ld_shlibs_GCJ=yes
16128      fi
16129      ;;
16130
16131    sysv4.2uw2*)
16132      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16133      hardcode_direct_GCJ=yes
16134      hardcode_minus_L_GCJ=no
16135      hardcode_shlibpath_var_GCJ=no
16136      hardcode_runpath_var=yes
16137      runpath_var=LD_RUN_PATH
16138      ;;
16139
16140   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16141      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16142      if test "$GCC" = yes; then
16143	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16144      else
16145	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16146      fi
16147      runpath_var='LD_RUN_PATH'
16148      hardcode_shlibpath_var_GCJ=no
16149      ;;
16150
16151    sysv5*)
16152      no_undefined_flag_GCJ=' -z text'
16153      # $CC -shared without GNU ld will not create a library from C++
16154      # object files and a static libstdc++, better avoid it by now
16155      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16156      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16157  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16158      hardcode_libdir_flag_spec_GCJ=
16159      hardcode_shlibpath_var_GCJ=no
16160      runpath_var='LD_RUN_PATH'
16161      ;;
16162
16163    uts4*)
16164      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16165      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16166      hardcode_shlibpath_var_GCJ=no
16167      ;;
16168
16169    *)
16170      ld_shlibs_GCJ=no
16171      ;;
16172    esac
16173  fi
16174
16175echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16176echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16177test "$ld_shlibs_GCJ" = no && can_build_shared=no
16178
16179variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16180if test "$GCC" = yes; then
16181  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16182fi
16183
16184#
16185# Do we need to explicitly link libc?
16186#
16187case "x$archive_cmds_need_lc_GCJ" in
16188x|xyes)
16189  # Assume -lc should be added
16190  archive_cmds_need_lc_GCJ=yes
16191
16192  if test "$enable_shared" = yes && test "$GCC" = yes; then
16193    case $archive_cmds_GCJ in
16194    *'~'*)
16195      # FIXME: we may have to deal with multi-command sequences.
16196      ;;
16197    '$CC '*)
16198      # Test whether the compiler implicitly links with -lc since on some
16199      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16200      # to ld, don't add -lc before -lgcc.
16201      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16202echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16203      $rm conftest*
16204      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16205
16206      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16207  (eval $ac_compile) 2>&5
16208  ac_status=$?
16209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210  (exit $ac_status); } 2>conftest.err; then
16211        soname=conftest
16212        lib=conftest
16213        libobjs=conftest.$ac_objext
16214        deplibs=
16215        wl=$lt_prog_compiler_wl_GCJ
16216        compiler_flags=-v
16217        linker_flags=-v
16218        verstring=
16219        output_objdir=.
16220        libname=conftest
16221        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16222        allow_undefined_flag_GCJ=
16223        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16224  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16225  ac_status=$?
16226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227  (exit $ac_status); }
16228        then
16229	  archive_cmds_need_lc_GCJ=no
16230        else
16231	  archive_cmds_need_lc_GCJ=yes
16232        fi
16233        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16234      else
16235        cat conftest.err 1>&5
16236      fi
16237      $rm conftest*
16238      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16239echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16240      ;;
16241    esac
16242  fi
16243  ;;
16244esac
16245
16246echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16247echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16248hardcode_action_GCJ=
16249if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16250   test -n "$runpath_var GCJ" || \
16251   test "X$hardcode_automatic_GCJ"="Xyes" ; then
16252
16253  # We can hardcode non-existant directories.
16254  if test "$hardcode_direct_GCJ" != no &&
16255     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16256     # have to relink, otherwise we might link with an installed library
16257     # when we should be linking with a yet-to-be-installed one
16258     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16259     test "$hardcode_minus_L_GCJ" != no; then
16260    # Linking always hardcodes the temporary library directory.
16261    hardcode_action_GCJ=relink
16262  else
16263    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16264    hardcode_action_GCJ=immediate
16265  fi
16266else
16267  # We cannot hardcode anything, or else we can only hardcode existing
16268  # directories.
16269  hardcode_action_GCJ=unsupported
16270fi
16271echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16272echo "${ECHO_T}$hardcode_action_GCJ" >&6
16273
16274if test "$hardcode_action_GCJ" = relink; then
16275  # Fast installation is not supported
16276  enable_fast_install=no
16277elif test "$shlibpath_overrides_runpath" = yes ||
16278     test "$enable_shared" = no; then
16279  # Fast installation is not necessary
16280  enable_fast_install=needless
16281fi
16282
16283striplib=
16284old_striplib=
16285echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16286echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16287if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16288  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16289  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16290  echo "$as_me:$LINENO: result: yes" >&5
16291echo "${ECHO_T}yes" >&6
16292else
16293# FIXME - insert some real tests, host_os isn't really good enough
16294  case $host_os in
16295   darwin*)
16296       if test -n "$STRIP" ; then
16297         striplib="$STRIP -x"
16298         echo "$as_me:$LINENO: result: yes" >&5
16299echo "${ECHO_T}yes" >&6
16300       else
16301  echo "$as_me:$LINENO: result: no" >&5
16302echo "${ECHO_T}no" >&6
16303fi
16304       ;;
16305   *)
16306  echo "$as_me:$LINENO: result: no" >&5
16307echo "${ECHO_T}no" >&6
16308    ;;
16309  esac
16310fi
16311
16312echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16313echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16314library_names_spec=
16315libname_spec='lib$name'
16316soname_spec=
16317shrext=".so"
16318postinstall_cmds=
16319postuninstall_cmds=
16320finish_cmds=
16321finish_eval=
16322shlibpath_var=
16323shlibpath_overrides_runpath=unknown
16324version_type=none
16325dynamic_linker="$host_os ld.so"
16326sys_lib_dlsearch_path_spec="/lib /usr/lib"
16327if test "$GCC" = yes; then
16328  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16329  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16330    # if the path contains ";" then we assume it to be the separator
16331    # otherwise default to the standard path separator (i.e. ":") - it is
16332    # assumed that no part of a normal pathname contains ";" but that should
16333    # okay in the real world where ";" in dirpaths is itself problematic.
16334    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16335  else
16336    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16337  fi
16338else
16339  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16340fi
16341need_lib_prefix=unknown
16342hardcode_into_libs=no
16343
16344# when you set need_version to no, make sure it does not cause -set_version
16345# flags to be left without arguments
16346need_version=unknown
16347
16348case $host_os in
16349aix3*)
16350  version_type=linux
16351  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16352  shlibpath_var=LIBPATH
16353
16354  # AIX 3 has no versioning support, so we append a major version to the name.
16355  soname_spec='${libname}${release}${shared_ext}$major'
16356  ;;
16357
16358aix4* | aix5*)
16359  version_type=linux
16360  need_lib_prefix=no
16361  need_version=no
16362  hardcode_into_libs=yes
16363  if test "$host_cpu" = ia64; then
16364    # AIX 5 supports IA64
16365    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16366    shlibpath_var=LD_LIBRARY_PATH
16367  else
16368    # With GCC up to 2.95.x, collect2 would create an import file
16369    # for dependence libraries.  The import file would start with
16370    # the line `#! .'.  This would cause the generated library to
16371    # depend on `.', always an invalid library.  This was fixed in
16372    # development snapshots of GCC prior to 3.0.
16373    case $host_os in
16374      aix4 | aix4.[01] | aix4.[01].*)
16375      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16376	   echo ' yes '
16377	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16378	:
16379      else
16380	can_build_shared=no
16381      fi
16382      ;;
16383    esac
16384    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16385    # soname into executable. Probably we can add versioning support to
16386    # collect2, so additional links can be useful in future.
16387    if test "$aix_use_runtimelinking" = yes; then
16388      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16389      # instead of lib<name>.a to let people know that these are not
16390      # typical AIX shared libraries.
16391      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16392    else
16393      # We preserve .a as extension for shared libraries through AIX4.2
16394      # and later when we are not doing run time linking.
16395      library_names_spec='${libname}${release}.a $libname.a'
16396      soname_spec='${libname}${release}${shared_ext}$major'
16397    fi
16398    shlibpath_var=LIBPATH
16399  fi
16400  ;;
16401
16402amigaos*)
16403  library_names_spec='$libname.ixlibrary $libname.a'
16404  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16405  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'
16406  ;;
16407
16408beos*)
16409  library_names_spec='${libname}${shared_ext}'
16410  dynamic_linker="$host_os ld.so"
16411  shlibpath_var=LIBRARY_PATH
16412  ;;
16413
16414bsdi4*)
16415  version_type=linux
16416  need_version=no
16417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16418  soname_spec='${libname}${release}${shared_ext}$major'
16419  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16420  shlibpath_var=LD_LIBRARY_PATH
16421  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16422  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16423  # the default ld.so.conf also contains /usr/contrib/lib and
16424  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16425  # libtool to hard-code these into programs
16426  ;;
16427
16428cygwin* | mingw* | pw32*)
16429  version_type=windows
16430  shrext=".dll"
16431  need_version=no
16432  need_lib_prefix=no
16433
16434  case $GCC,$host_os in
16435  yes,cygwin* | yes,mingw* | yes,pw32*)
16436    library_names_spec='$libname.dll.a'
16437    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16438    postinstall_cmds='base_file=`basename \${file}`~
16439      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16440      dldir=$destdir/`dirname \$dlpath`~
16441      test -d \$dldir || mkdir -p \$dldir~
16442      $install_prog $dir/$dlname \$dldir/$dlname'
16443    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16444      dlpath=$dir/\$dldll~
16445       $rm \$dlpath'
16446    shlibpath_overrides_runpath=yes
16447
16448    case $host_os in
16449    cygwin*)
16450      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16451      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16452      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16453      ;;
16454    mingw*)
16455      # MinGW DLLs use traditional 'lib' prefix
16456      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16457      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16458      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16459        # It is most probably a Windows format PATH printed by
16460        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16461        # path with ; separators, and with drive letters. We can handle the
16462        # drive letters (cygwin fileutils understands them), so leave them,
16463        # especially as we might pass files found there to a mingw objdump,
16464        # which wouldn't understand a cygwinified path. Ahh.
16465        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16466      else
16467        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16468      fi
16469      ;;
16470    pw32*)
16471      # pw32 DLLs use 'pw' prefix rather than 'lib'
16472      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16473      ;;
16474    esac
16475    ;;
16476
16477  *)
16478    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16479    ;;
16480  esac
16481  dynamic_linker='Win32 ld.exe'
16482  # FIXME: first we should search . and the directory the executable is in
16483  shlibpath_var=PATH
16484  ;;
16485
16486darwin* | rhapsody*)
16487  dynamic_linker="$host_os dyld"
16488  version_type=darwin
16489  need_lib_prefix=no
16490  need_version=no
16491  # FIXME: Relying on posixy $() will cause problems for
16492  #        cross-compilation, but unfortunately the echo tests do not
16493  #        yet detect zsh echo's removal of \ escapes.
16494  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16495  soname_spec='${libname}${release}${major}$shared_ext'
16496  shlibpath_overrides_runpath=yes
16497  shlibpath_var=DYLD_LIBRARY_PATH
16498  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16499  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16500  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16501  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"`
16502  fi
16503  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16504  ;;
16505
16506dgux*)
16507  version_type=linux
16508  need_lib_prefix=no
16509  need_version=no
16510  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16511  soname_spec='${libname}${release}${shared_ext}$major'
16512  shlibpath_var=LD_LIBRARY_PATH
16513  ;;
16514
16515freebsd1*)
16516  dynamic_linker=no
16517  ;;
16518
16519freebsd*)
16520  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16521  version_type=freebsd-$objformat
16522  case $version_type in
16523    freebsd-elf*)
16524      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16525      need_version=no
16526      need_lib_prefix=no
16527      ;;
16528    freebsd-*)
16529      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16530      need_version=yes
16531      ;;
16532  esac
16533  shlibpath_var=LD_LIBRARY_PATH
16534  case $host_os in
16535  freebsd2*)
16536    shlibpath_overrides_runpath=yes
16537    ;;
16538  freebsd3.01* | freebsdelf3.01*)
16539    shlibpath_overrides_runpath=yes
16540    hardcode_into_libs=yes
16541    ;;
16542  *) # from 3.2 on
16543    shlibpath_overrides_runpath=no
16544    hardcode_into_libs=yes
16545    ;;
16546  esac
16547  ;;
16548
16549gnu*)
16550  version_type=linux
16551  need_lib_prefix=no
16552  need_version=no
16553  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16554  soname_spec='${libname}${release}${shared_ext}$major'
16555  shlibpath_var=LD_LIBRARY_PATH
16556  hardcode_into_libs=yes
16557  ;;
16558
16559hpux9* | hpux10* | hpux11*)
16560  # Give a soname corresponding to the major version so that dld.sl refuses to
16561  # link against other versions.
16562  version_type=sunos
16563  need_lib_prefix=no
16564  need_version=no
16565  case "$host_cpu" in
16566  ia64*)
16567    shrext='.so'
16568    hardcode_into_libs=yes
16569    dynamic_linker="$host_os dld.so"
16570    shlibpath_var=LD_LIBRARY_PATH
16571    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16572    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16573    soname_spec='${libname}${release}${shared_ext}$major'
16574    if test "X$HPUX_IA64_MODE" = X32; then
16575      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16576    else
16577      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16578    fi
16579    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16580    ;;
16581   hppa*64*)
16582     shrext='.sl'
16583     hardcode_into_libs=yes
16584     dynamic_linker="$host_os dld.sl"
16585     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16586     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16587     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16588     soname_spec='${libname}${release}${shared_ext}$major'
16589     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16590     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16591     ;;
16592   *)
16593    shrext='.sl'
16594    dynamic_linker="$host_os dld.sl"
16595    shlibpath_var=SHLIB_PATH
16596    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16597    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16598    soname_spec='${libname}${release}${shared_ext}$major'
16599    ;;
16600  esac
16601  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16602  postinstall_cmds='chmod 555 $lib'
16603  ;;
16604
16605irix5* | irix6* | nonstopux*)
16606  case $host_os in
16607    nonstopux*) version_type=nonstopux ;;
16608    *)
16609	if test "$lt_cv_prog_gnu_ld" = yes; then
16610		version_type=linux
16611	else
16612		version_type=irix
16613	fi ;;
16614  esac
16615  need_lib_prefix=no
16616  need_version=no
16617  soname_spec='${libname}${release}${shared_ext}$major'
16618  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16619  case $host_os in
16620  irix5* | nonstopux*)
16621    libsuff= shlibsuff=
16622    ;;
16623  *)
16624    case $LD in # libtool.m4 will add one of these switches to LD
16625    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16626      libsuff= shlibsuff= libmagic=32-bit;;
16627    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16628      libsuff=32 shlibsuff=N32 libmagic=N32;;
16629    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16630      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16631    *) libsuff= shlibsuff= libmagic=never-match;;
16632    esac
16633    ;;
16634  esac
16635  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16636  shlibpath_overrides_runpath=no
16637  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16638  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16639  hardcode_into_libs=yes
16640  ;;
16641
16642# No shared lib support for Linux oldld, aout, or coff.
16643linux*oldld* | linux*aout* | linux*coff*)
16644  dynamic_linker=no
16645  ;;
16646
16647# This must be Linux ELF.
16648linux*)
16649  version_type=linux
16650  need_lib_prefix=no
16651  need_version=no
16652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16653  soname_spec='${libname}${release}${shared_ext}$major'
16654  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16655  shlibpath_var=LD_LIBRARY_PATH
16656  shlibpath_overrides_runpath=no
16657  # This implies no fast_install, which is unacceptable.
16658  # Some rework will be needed to allow for fast_install
16659  # before this can be enabled.
16660  hardcode_into_libs=yes
16661
16662  # We used to test for /lib/ld.so.1 and disable shared libraries on
16663  # powerpc, because MkLinux only supported shared libraries with the
16664  # GNU dynamic linker.  Since this was broken with cross compilers,
16665  # most powerpc-linux boxes support dynamic linking these days and
16666  # people can always --disable-shared, the test was removed, and we
16667  # assume the GNU/Linux dynamic linker is in use.
16668  dynamic_linker='GNU/Linux ld.so'
16669  ;;
16670
16671netbsd*)
16672  version_type=sunos
16673  need_lib_prefix=no
16674  need_version=no
16675  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16676    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16677    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16678    dynamic_linker='NetBSD (a.out) ld.so'
16679  else
16680    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16681    soname_spec='${libname}${release}${shared_ext}$major'
16682    dynamic_linker='NetBSD ld.elf_so'
16683  fi
16684  shlibpath_var=LD_LIBRARY_PATH
16685  shlibpath_overrides_runpath=yes
16686  hardcode_into_libs=yes
16687  ;;
16688
16689newsos6)
16690  version_type=linux
16691  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16692  shlibpath_var=LD_LIBRARY_PATH
16693  shlibpath_overrides_runpath=yes
16694  ;;
16695
16696nto-qnx)
16697  version_type=linux
16698  need_lib_prefix=no
16699  need_version=no
16700  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16701  soname_spec='${libname}${release}${shared_ext}$major'
16702  shlibpath_var=LD_LIBRARY_PATH
16703  shlibpath_overrides_runpath=yes
16704  ;;
16705
16706openbsd*)
16707  version_type=sunos
16708  need_lib_prefix=no
16709  need_version=no
16710  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16711  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16712  shlibpath_var=LD_LIBRARY_PATH
16713  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16714    case $host_os in
16715      openbsd2.[89] | openbsd2.[89].*)
16716	shlibpath_overrides_runpath=no
16717	;;
16718      *)
16719	shlibpath_overrides_runpath=yes
16720	;;
16721      esac
16722  else
16723    shlibpath_overrides_runpath=yes
16724  fi
16725  ;;
16726
16727os2*)
16728  libname_spec='$name'
16729  shrext=".dll"
16730  need_lib_prefix=no
16731  library_names_spec='$libname${shared_ext} $libname.a'
16732  dynamic_linker='OS/2 ld.exe'
16733  shlibpath_var=LIBPATH
16734  ;;
16735
16736osf3* | osf4* | osf5*)
16737  version_type=osf
16738  need_lib_prefix=no
16739  need_version=no
16740  soname_spec='${libname}${release}${shared_ext}$major'
16741  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16742  shlibpath_var=LD_LIBRARY_PATH
16743  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16744  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16745  ;;
16746
16747sco3.2v5*)
16748  version_type=osf
16749  soname_spec='${libname}${release}${shared_ext}$major'
16750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16751  shlibpath_var=LD_LIBRARY_PATH
16752  ;;
16753
16754solaris*)
16755  version_type=linux
16756  need_lib_prefix=no
16757  need_version=no
16758  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16759  soname_spec='${libname}${release}${shared_ext}$major'
16760  shlibpath_var=LD_LIBRARY_PATH
16761  shlibpath_overrides_runpath=yes
16762  hardcode_into_libs=yes
16763  # ldd complains unless libraries are executable
16764  postinstall_cmds='chmod +x $lib'
16765  ;;
16766
16767sunos4*)
16768  version_type=sunos
16769  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16770  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16771  shlibpath_var=LD_LIBRARY_PATH
16772  shlibpath_overrides_runpath=yes
16773  if test "$with_gnu_ld" = yes; then
16774    need_lib_prefix=no
16775  fi
16776  need_version=yes
16777  ;;
16778
16779sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16780  version_type=linux
16781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16782  soname_spec='${libname}${release}${shared_ext}$major'
16783  shlibpath_var=LD_LIBRARY_PATH
16784  case $host_vendor in
16785    sni)
16786      shlibpath_overrides_runpath=no
16787      need_lib_prefix=no
16788      export_dynamic_flag_spec='${wl}-Blargedynsym'
16789      runpath_var=LD_RUN_PATH
16790      ;;
16791    siemens)
16792      need_lib_prefix=no
16793      ;;
16794    motorola)
16795      need_lib_prefix=no
16796      need_version=no
16797      shlibpath_overrides_runpath=no
16798      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16799      ;;
16800  esac
16801  ;;
16802
16803sysv4*MP*)
16804  if test -d /usr/nec ;then
16805    version_type=linux
16806    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16807    soname_spec='$libname${shared_ext}.$major'
16808    shlibpath_var=LD_LIBRARY_PATH
16809  fi
16810  ;;
16811
16812uts4*)
16813  version_type=linux
16814  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16815  soname_spec='${libname}${release}${shared_ext}$major'
16816  shlibpath_var=LD_LIBRARY_PATH
16817  ;;
16818
16819*)
16820  dynamic_linker=no
16821  ;;
16822esac
16823echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16824echo "${ECHO_T}$dynamic_linker" >&6
16825test "$dynamic_linker" = no && can_build_shared=no
16826
16827if test "x$enable_dlopen" != xyes; then
16828  enable_dlopen=unknown
16829  enable_dlopen_self=unknown
16830  enable_dlopen_self_static=unknown
16831else
16832  lt_cv_dlopen=no
16833  lt_cv_dlopen_libs=
16834
16835  case $host_os in
16836  beos*)
16837    lt_cv_dlopen="load_add_on"
16838    lt_cv_dlopen_libs=
16839    lt_cv_dlopen_self=yes
16840    ;;
16841
16842  mingw* | pw32*)
16843    lt_cv_dlopen="LoadLibrary"
16844    lt_cv_dlopen_libs=
16845   ;;
16846
16847  cygwin*)
16848    lt_cv_dlopen="dlopen"
16849    lt_cv_dlopen_libs=
16850   ;;
16851
16852  darwin*)
16853  # if libdl is installed we need to link against it
16854    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16855echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16856if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16857  echo $ECHO_N "(cached) $ECHO_C" >&6
16858else
16859  ac_check_lib_save_LIBS=$LIBS
16860LIBS="-ldl  $LIBS"
16861cat >conftest.$ac_ext <<_ACEOF
16862#line $LINENO "configure"
16863/* confdefs.h.  */
16864_ACEOF
16865cat confdefs.h >>conftest.$ac_ext
16866cat >>conftest.$ac_ext <<_ACEOF
16867/* end confdefs.h.  */
16868
16869/* Override any gcc2 internal prototype to avoid an error.  */
16870#ifdef __cplusplus
16871extern "C"
16872#endif
16873/* We use char because int might match the return type of a gcc2
16874   builtin and then its argument prototype would still apply.  */
16875char dlopen ();
16876int
16877main ()
16878{
16879dlopen ();
16880  ;
16881  return 0;
16882}
16883_ACEOF
16884rm -f conftest.$ac_objext conftest$ac_exeext
16885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16886  (eval $ac_link) 2>&5
16887  ac_status=$?
16888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889  (exit $ac_status); } &&
16890         { ac_try='test -s conftest$ac_exeext'
16891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16892  (eval $ac_try) 2>&5
16893  ac_status=$?
16894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895  (exit $ac_status); }; }; then
16896  ac_cv_lib_dl_dlopen=yes
16897else
16898  echo "$as_me: failed program was:" >&5
16899sed 's/^/| /' conftest.$ac_ext >&5
16900
16901ac_cv_lib_dl_dlopen=no
16902fi
16903rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16904LIBS=$ac_check_lib_save_LIBS
16905fi
16906echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16907echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16908if test $ac_cv_lib_dl_dlopen = yes; then
16909  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16910else
16911
16912    lt_cv_dlopen="dyld"
16913    lt_cv_dlopen_libs=
16914    lt_cv_dlopen_self=yes
16915
16916fi
16917
16918   ;;
16919
16920  *)
16921    echo "$as_me:$LINENO: checking for shl_load" >&5
16922echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16923if test "${ac_cv_func_shl_load+set}" = set; then
16924  echo $ECHO_N "(cached) $ECHO_C" >&6
16925else
16926  cat >conftest.$ac_ext <<_ACEOF
16927#line $LINENO "configure"
16928/* confdefs.h.  */
16929_ACEOF
16930cat confdefs.h >>conftest.$ac_ext
16931cat >>conftest.$ac_ext <<_ACEOF
16932/* end confdefs.h.  */
16933/* System header to define __stub macros and hopefully few prototypes,
16934    which can conflict with char shl_load (); below.
16935    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16936    <limits.h> exists even on freestanding compilers.  */
16937#ifdef __STDC__
16938# include <limits.h>
16939#else
16940# include <assert.h>
16941#endif
16942/* Override any gcc2 internal prototype to avoid an error.  */
16943#ifdef __cplusplus
16944extern "C"
16945{
16946#endif
16947/* We use char because int might match the return type of a gcc2
16948   builtin and then its argument prototype would still apply.  */
16949char shl_load ();
16950/* The GNU C library defines this for functions which it implements
16951    to always fail with ENOSYS.  Some functions are actually named
16952    something starting with __ and the normal name is an alias.  */
16953#if defined (__stub_shl_load) || defined (__stub___shl_load)
16954choke me
16955#else
16956char (*f) () = shl_load;
16957#endif
16958#ifdef __cplusplus
16959}
16960#endif
16961
16962int
16963main ()
16964{
16965return f != shl_load;
16966  ;
16967  return 0;
16968}
16969_ACEOF
16970rm -f conftest.$ac_objext conftest$ac_exeext
16971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16972  (eval $ac_link) 2>&5
16973  ac_status=$?
16974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975  (exit $ac_status); } &&
16976         { ac_try='test -s conftest$ac_exeext'
16977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16978  (eval $ac_try) 2>&5
16979  ac_status=$?
16980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981  (exit $ac_status); }; }; then
16982  ac_cv_func_shl_load=yes
16983else
16984  echo "$as_me: failed program was:" >&5
16985sed 's/^/| /' conftest.$ac_ext >&5
16986
16987ac_cv_func_shl_load=no
16988fi
16989rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16990fi
16991echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16992echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16993if test $ac_cv_func_shl_load = yes; then
16994  lt_cv_dlopen="shl_load"
16995else
16996  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16997echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16998if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16999  echo $ECHO_N "(cached) $ECHO_C" >&6
17000else
17001  ac_check_lib_save_LIBS=$LIBS
17002LIBS="-ldld  $LIBS"
17003cat >conftest.$ac_ext <<_ACEOF
17004#line $LINENO "configure"
17005/* confdefs.h.  */
17006_ACEOF
17007cat confdefs.h >>conftest.$ac_ext
17008cat >>conftest.$ac_ext <<_ACEOF
17009/* end confdefs.h.  */
17010
17011/* Override any gcc2 internal prototype to avoid an error.  */
17012#ifdef __cplusplus
17013extern "C"
17014#endif
17015/* We use char because int might match the return type of a gcc2
17016   builtin and then its argument prototype would still apply.  */
17017char shl_load ();
17018int
17019main ()
17020{
17021shl_load ();
17022  ;
17023  return 0;
17024}
17025_ACEOF
17026rm -f conftest.$ac_objext conftest$ac_exeext
17027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17028  (eval $ac_link) 2>&5
17029  ac_status=$?
17030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031  (exit $ac_status); } &&
17032         { ac_try='test -s conftest$ac_exeext'
17033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17034  (eval $ac_try) 2>&5
17035  ac_status=$?
17036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037  (exit $ac_status); }; }; then
17038  ac_cv_lib_dld_shl_load=yes
17039else
17040  echo "$as_me: failed program was:" >&5
17041sed 's/^/| /' conftest.$ac_ext >&5
17042
17043ac_cv_lib_dld_shl_load=no
17044fi
17045rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17046LIBS=$ac_check_lib_save_LIBS
17047fi
17048echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17049echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17050if test $ac_cv_lib_dld_shl_load = yes; then
17051  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17052else
17053  echo "$as_me:$LINENO: checking for dlopen" >&5
17054echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17055if test "${ac_cv_func_dlopen+set}" = set; then
17056  echo $ECHO_N "(cached) $ECHO_C" >&6
17057else
17058  cat >conftest.$ac_ext <<_ACEOF
17059#line $LINENO "configure"
17060/* confdefs.h.  */
17061_ACEOF
17062cat confdefs.h >>conftest.$ac_ext
17063cat >>conftest.$ac_ext <<_ACEOF
17064/* end confdefs.h.  */
17065/* System header to define __stub macros and hopefully few prototypes,
17066    which can conflict with char dlopen (); below.
17067    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17068    <limits.h> exists even on freestanding compilers.  */
17069#ifdef __STDC__
17070# include <limits.h>
17071#else
17072# include <assert.h>
17073#endif
17074/* Override any gcc2 internal prototype to avoid an error.  */
17075#ifdef __cplusplus
17076extern "C"
17077{
17078#endif
17079/* We use char because int might match the return type of a gcc2
17080   builtin and then its argument prototype would still apply.  */
17081char dlopen ();
17082/* The GNU C library defines this for functions which it implements
17083    to always fail with ENOSYS.  Some functions are actually named
17084    something starting with __ and the normal name is an alias.  */
17085#if defined (__stub_dlopen) || defined (__stub___dlopen)
17086choke me
17087#else
17088char (*f) () = dlopen;
17089#endif
17090#ifdef __cplusplus
17091}
17092#endif
17093
17094int
17095main ()
17096{
17097return f != dlopen;
17098  ;
17099  return 0;
17100}
17101_ACEOF
17102rm -f conftest.$ac_objext conftest$ac_exeext
17103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17104  (eval $ac_link) 2>&5
17105  ac_status=$?
17106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107  (exit $ac_status); } &&
17108         { ac_try='test -s conftest$ac_exeext'
17109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17110  (eval $ac_try) 2>&5
17111  ac_status=$?
17112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113  (exit $ac_status); }; }; then
17114  ac_cv_func_dlopen=yes
17115else
17116  echo "$as_me: failed program was:" >&5
17117sed 's/^/| /' conftest.$ac_ext >&5
17118
17119ac_cv_func_dlopen=no
17120fi
17121rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17122fi
17123echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17124echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17125if test $ac_cv_func_dlopen = yes; then
17126  lt_cv_dlopen="dlopen"
17127else
17128  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17129echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17130if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17131  echo $ECHO_N "(cached) $ECHO_C" >&6
17132else
17133  ac_check_lib_save_LIBS=$LIBS
17134LIBS="-ldl  $LIBS"
17135cat >conftest.$ac_ext <<_ACEOF
17136#line $LINENO "configure"
17137/* confdefs.h.  */
17138_ACEOF
17139cat confdefs.h >>conftest.$ac_ext
17140cat >>conftest.$ac_ext <<_ACEOF
17141/* end confdefs.h.  */
17142
17143/* Override any gcc2 internal prototype to avoid an error.  */
17144#ifdef __cplusplus
17145extern "C"
17146#endif
17147/* We use char because int might match the return type of a gcc2
17148   builtin and then its argument prototype would still apply.  */
17149char dlopen ();
17150int
17151main ()
17152{
17153dlopen ();
17154  ;
17155  return 0;
17156}
17157_ACEOF
17158rm -f conftest.$ac_objext conftest$ac_exeext
17159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17160  (eval $ac_link) 2>&5
17161  ac_status=$?
17162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163  (exit $ac_status); } &&
17164         { ac_try='test -s conftest$ac_exeext'
17165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17166  (eval $ac_try) 2>&5
17167  ac_status=$?
17168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169  (exit $ac_status); }; }; then
17170  ac_cv_lib_dl_dlopen=yes
17171else
17172  echo "$as_me: failed program was:" >&5
17173sed 's/^/| /' conftest.$ac_ext >&5
17174
17175ac_cv_lib_dl_dlopen=no
17176fi
17177rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17178LIBS=$ac_check_lib_save_LIBS
17179fi
17180echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17181echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17182if test $ac_cv_lib_dl_dlopen = yes; then
17183  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17184else
17185  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17186echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17187if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17188  echo $ECHO_N "(cached) $ECHO_C" >&6
17189else
17190  ac_check_lib_save_LIBS=$LIBS
17191LIBS="-lsvld  $LIBS"
17192cat >conftest.$ac_ext <<_ACEOF
17193#line $LINENO "configure"
17194/* confdefs.h.  */
17195_ACEOF
17196cat confdefs.h >>conftest.$ac_ext
17197cat >>conftest.$ac_ext <<_ACEOF
17198/* end confdefs.h.  */
17199
17200/* Override any gcc2 internal prototype to avoid an error.  */
17201#ifdef __cplusplus
17202extern "C"
17203#endif
17204/* We use char because int might match the return type of a gcc2
17205   builtin and then its argument prototype would still apply.  */
17206char dlopen ();
17207int
17208main ()
17209{
17210dlopen ();
17211  ;
17212  return 0;
17213}
17214_ACEOF
17215rm -f conftest.$ac_objext conftest$ac_exeext
17216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17217  (eval $ac_link) 2>&5
17218  ac_status=$?
17219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220  (exit $ac_status); } &&
17221         { ac_try='test -s conftest$ac_exeext'
17222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17223  (eval $ac_try) 2>&5
17224  ac_status=$?
17225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226  (exit $ac_status); }; }; then
17227  ac_cv_lib_svld_dlopen=yes
17228else
17229  echo "$as_me: failed program was:" >&5
17230sed 's/^/| /' conftest.$ac_ext >&5
17231
17232ac_cv_lib_svld_dlopen=no
17233fi
17234rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17235LIBS=$ac_check_lib_save_LIBS
17236fi
17237echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17238echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17239if test $ac_cv_lib_svld_dlopen = yes; then
17240  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17241else
17242  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17243echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17244if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17245  echo $ECHO_N "(cached) $ECHO_C" >&6
17246else
17247  ac_check_lib_save_LIBS=$LIBS
17248LIBS="-ldld  $LIBS"
17249cat >conftest.$ac_ext <<_ACEOF
17250#line $LINENO "configure"
17251/* confdefs.h.  */
17252_ACEOF
17253cat confdefs.h >>conftest.$ac_ext
17254cat >>conftest.$ac_ext <<_ACEOF
17255/* end confdefs.h.  */
17256
17257/* Override any gcc2 internal prototype to avoid an error.  */
17258#ifdef __cplusplus
17259extern "C"
17260#endif
17261/* We use char because int might match the return type of a gcc2
17262   builtin and then its argument prototype would still apply.  */
17263char dld_link ();
17264int
17265main ()
17266{
17267dld_link ();
17268  ;
17269  return 0;
17270}
17271_ACEOF
17272rm -f conftest.$ac_objext conftest$ac_exeext
17273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17274  (eval $ac_link) 2>&5
17275  ac_status=$?
17276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277  (exit $ac_status); } &&
17278         { ac_try='test -s conftest$ac_exeext'
17279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17280  (eval $ac_try) 2>&5
17281  ac_status=$?
17282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283  (exit $ac_status); }; }; then
17284  ac_cv_lib_dld_dld_link=yes
17285else
17286  echo "$as_me: failed program was:" >&5
17287sed 's/^/| /' conftest.$ac_ext >&5
17288
17289ac_cv_lib_dld_dld_link=no
17290fi
17291rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17292LIBS=$ac_check_lib_save_LIBS
17293fi
17294echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17295echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17296if test $ac_cv_lib_dld_dld_link = yes; then
17297  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17298fi
17299
17300
17301fi
17302
17303
17304fi
17305
17306
17307fi
17308
17309
17310fi
17311
17312
17313fi
17314
17315    ;;
17316  esac
17317
17318  if test "x$lt_cv_dlopen" != xno; then
17319    enable_dlopen=yes
17320  else
17321    enable_dlopen=no
17322  fi
17323
17324  case $lt_cv_dlopen in
17325  dlopen)
17326    save_CPPFLAGS="$CPPFLAGS"
17327    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17328
17329    save_LDFLAGS="$LDFLAGS"
17330    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17331
17332    save_LIBS="$LIBS"
17333    LIBS="$lt_cv_dlopen_libs $LIBS"
17334
17335    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17336echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17337if test "${lt_cv_dlopen_self+set}" = set; then
17338  echo $ECHO_N "(cached) $ECHO_C" >&6
17339else
17340  	  if test "$cross_compiling" = yes; then :
17341  lt_cv_dlopen_self=cross
17342else
17343  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17344  lt_status=$lt_dlunknown
17345  cat > conftest.$ac_ext <<EOF
17346#line 17346 "configure"
17347#include "confdefs.h"
17348
17349#if HAVE_DLFCN_H
17350#include <dlfcn.h>
17351#endif
17352
17353#include <stdio.h>
17354
17355#ifdef RTLD_GLOBAL
17356#  define LT_DLGLOBAL		RTLD_GLOBAL
17357#else
17358#  ifdef DL_GLOBAL
17359#    define LT_DLGLOBAL		DL_GLOBAL
17360#  else
17361#    define LT_DLGLOBAL		0
17362#  endif
17363#endif
17364
17365/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17366   find out it does not work in some platform. */
17367#ifndef LT_DLLAZY_OR_NOW
17368#  ifdef RTLD_LAZY
17369#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17370#  else
17371#    ifdef DL_LAZY
17372#      define LT_DLLAZY_OR_NOW		DL_LAZY
17373#    else
17374#      ifdef RTLD_NOW
17375#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17376#      else
17377#        ifdef DL_NOW
17378#          define LT_DLLAZY_OR_NOW	DL_NOW
17379#        else
17380#          define LT_DLLAZY_OR_NOW	0
17381#        endif
17382#      endif
17383#    endif
17384#  endif
17385#endif
17386
17387#ifdef __cplusplus
17388extern "C" void exit (int);
17389#endif
17390
17391void fnord() { int i=42;}
17392int main ()
17393{
17394  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17395  int status = $lt_dlunknown;
17396
17397  if (self)
17398    {
17399      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17400      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17401      /* dlclose (self); */
17402    }
17403
17404    exit (status);
17405}
17406EOF
17407  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17408  (eval $ac_link) 2>&5
17409  ac_status=$?
17410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17412    (./conftest; exit; ) 2>/dev/null
17413    lt_status=$?
17414    case x$lt_status in
17415      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17416      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17417      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17418    esac
17419  else :
17420    # compilation failed
17421    lt_cv_dlopen_self=no
17422  fi
17423fi
17424rm -fr conftest*
17425
17426
17427fi
17428echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17429echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17430
17431    if test "x$lt_cv_dlopen_self" = xyes; then
17432      LDFLAGS="$LDFLAGS $link_static_flag"
17433      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17434echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17435if test "${lt_cv_dlopen_self_static+set}" = set; then
17436  echo $ECHO_N "(cached) $ECHO_C" >&6
17437else
17438  	  if test "$cross_compiling" = yes; then :
17439  lt_cv_dlopen_self_static=cross
17440else
17441  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17442  lt_status=$lt_dlunknown
17443  cat > conftest.$ac_ext <<EOF
17444#line 17444 "configure"
17445#include "confdefs.h"
17446
17447#if HAVE_DLFCN_H
17448#include <dlfcn.h>
17449#endif
17450
17451#include <stdio.h>
17452
17453#ifdef RTLD_GLOBAL
17454#  define LT_DLGLOBAL		RTLD_GLOBAL
17455#else
17456#  ifdef DL_GLOBAL
17457#    define LT_DLGLOBAL		DL_GLOBAL
17458#  else
17459#    define LT_DLGLOBAL		0
17460#  endif
17461#endif
17462
17463/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17464   find out it does not work in some platform. */
17465#ifndef LT_DLLAZY_OR_NOW
17466#  ifdef RTLD_LAZY
17467#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17468#  else
17469#    ifdef DL_LAZY
17470#      define LT_DLLAZY_OR_NOW		DL_LAZY
17471#    else
17472#      ifdef RTLD_NOW
17473#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17474#      else
17475#        ifdef DL_NOW
17476#          define LT_DLLAZY_OR_NOW	DL_NOW
17477#        else
17478#          define LT_DLLAZY_OR_NOW	0
17479#        endif
17480#      endif
17481#    endif
17482#  endif
17483#endif
17484
17485#ifdef __cplusplus
17486extern "C" void exit (int);
17487#endif
17488
17489void fnord() { int i=42;}
17490int main ()
17491{
17492  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17493  int status = $lt_dlunknown;
17494
17495  if (self)
17496    {
17497      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17498      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17499      /* dlclose (self); */
17500    }
17501
17502    exit (status);
17503}
17504EOF
17505  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17506  (eval $ac_link) 2>&5
17507  ac_status=$?
17508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17510    (./conftest; exit; ) 2>/dev/null
17511    lt_status=$?
17512    case x$lt_status in
17513      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17514      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17515      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17516    esac
17517  else :
17518    # compilation failed
17519    lt_cv_dlopen_self_static=no
17520  fi
17521fi
17522rm -fr conftest*
17523
17524
17525fi
17526echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17527echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17528    fi
17529
17530    CPPFLAGS="$save_CPPFLAGS"
17531    LDFLAGS="$save_LDFLAGS"
17532    LIBS="$save_LIBS"
17533    ;;
17534  esac
17535
17536  case $lt_cv_dlopen_self in
17537  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17538  *) enable_dlopen_self=unknown ;;
17539  esac
17540
17541  case $lt_cv_dlopen_self_static in
17542  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17543  *) enable_dlopen_self_static=unknown ;;
17544  esac
17545fi
17546
17547
17548# The else clause should only fire when bootstrapping the
17549# libtool distribution, otherwise you forgot to ship ltmain.sh
17550# with your package, and you will get complaints that there are
17551# no rules to generate ltmain.sh.
17552if test -f "$ltmain"; then
17553  # See if we are running on zsh, and set the options which allow our commands through
17554  # without removal of \ escapes.
17555  if test -n "${ZSH_VERSION+set}" ; then
17556    setopt NO_GLOB_SUBST
17557  fi
17558  # Now quote all the things that may contain metacharacters while being
17559  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17560  # variables and quote the copies for generation of the libtool script.
17561  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17562    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17563    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17564    deplibs_check_method reload_flag reload_cmds need_locks \
17565    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17566    lt_cv_sys_global_symbol_to_c_name_address \
17567    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17568    old_postinstall_cmds old_postuninstall_cmds \
17569    compiler_GCJ \
17570    CC_GCJ \
17571    LD_GCJ \
17572    lt_prog_compiler_wl_GCJ \
17573    lt_prog_compiler_pic_GCJ \
17574    lt_prog_compiler_static_GCJ \
17575    lt_prog_compiler_no_builtin_flag_GCJ \
17576    export_dynamic_flag_spec_GCJ \
17577    thread_safe_flag_spec_GCJ \
17578    whole_archive_flag_spec_GCJ \
17579    enable_shared_with_static_runtimes_GCJ \
17580    old_archive_cmds_GCJ \
17581    old_archive_from_new_cmds_GCJ \
17582    predep_objects_GCJ \
17583    postdep_objects_GCJ \
17584    predeps_GCJ \
17585    postdeps_GCJ \
17586    compiler_lib_search_path_GCJ \
17587    archive_cmds_GCJ \
17588    archive_expsym_cmds_GCJ \
17589    postinstall_cmds_GCJ \
17590    postuninstall_cmds_GCJ \
17591    old_archive_from_expsyms_cmds_GCJ \
17592    allow_undefined_flag_GCJ \
17593    no_undefined_flag_GCJ \
17594    export_symbols_cmds_GCJ \
17595    hardcode_libdir_flag_spec_GCJ \
17596    hardcode_libdir_flag_spec_ld_GCJ \
17597    hardcode_libdir_separator_GCJ \
17598    hardcode_automatic_GCJ \
17599    module_cmds_GCJ \
17600    module_expsym_cmds_GCJ \
17601    lt_cv_prog_compiler_c_o_GCJ \
17602    exclude_expsyms_GCJ \
17603    include_expsyms_GCJ; do
17604
17605    case $var in
17606    old_archive_cmds_GCJ | \
17607    old_archive_from_new_cmds_GCJ | \
17608    archive_cmds_GCJ | \
17609    archive_expsym_cmds_GCJ | \
17610    module_cmds_GCJ | \
17611    module_expsym_cmds_GCJ | \
17612    old_archive_from_expsyms_cmds_GCJ | \
17613    export_symbols_cmds_GCJ | \
17614    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17615    postinstall_cmds | postuninstall_cmds | \
17616    old_postinstall_cmds | old_postuninstall_cmds | \
17617    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17618      # Double-quote double-evaled strings.
17619      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17620      ;;
17621    *)
17622      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17623      ;;
17624    esac
17625  done
17626
17627  case $lt_echo in
17628  *'\$0 --fallback-echo"')
17629    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17630    ;;
17631  esac
17632
17633cfgfile="$ofile"
17634
17635  cat <<__EOF__ >> "$cfgfile"
17636# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17637
17638# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17639
17640# Shell to use when invoking shell scripts.
17641SHELL=$lt_SHELL
17642
17643# Whether or not to build shared libraries.
17644build_libtool_libs=$enable_shared
17645
17646# Whether or not to build static libraries.
17647build_old_libs=$enable_static
17648
17649# Whether or not to add -lc for building shared libraries.
17650build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17651
17652# Whether or not to disallow shared libs when runtime libs are static
17653allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17654
17655# Whether or not to optimize for fast installation.
17656fast_install=$enable_fast_install
17657
17658# The host system.
17659host_alias=$host_alias
17660host=$host
17661
17662# An echo program that does not interpret backslashes.
17663echo=$lt_echo
17664
17665# The archiver.
17666AR=$lt_AR
17667AR_FLAGS=$lt_AR_FLAGS
17668
17669# A C compiler.
17670LTCC=$lt_LTCC
17671
17672# A language-specific compiler.
17673CC=$lt_compiler_GCJ
17674
17675# Is the compiler the GNU C compiler?
17676with_gcc=$GCC_GCJ
17677
17678# An ERE matcher.
17679EGREP=$lt_EGREP
17680
17681# The linker used to build libraries.
17682LD=$lt_LD_GCJ
17683
17684# Whether we need hard or soft links.
17685LN_S=$lt_LN_S
17686
17687# A BSD-compatible nm program.
17688NM=$lt_NM
17689
17690# A symbol stripping program
17691STRIP=$STRIP
17692
17693# Used to examine libraries when file_magic_cmd begins "file"
17694MAGIC_CMD=$MAGIC_CMD
17695
17696# Used on cygwin: DLL creation program.
17697DLLTOOL="$DLLTOOL"
17698
17699# Used on cygwin: object dumper.
17700OBJDUMP="$OBJDUMP"
17701
17702# Used on cygwin: assembler.
17703AS="$AS"
17704
17705# The name of the directory that contains temporary libtool files.
17706objdir=$objdir
17707
17708# How to create reloadable object files.
17709reload_flag=$lt_reload_flag
17710reload_cmds=$lt_reload_cmds
17711
17712# How to pass a linker flag through the compiler.
17713wl=$lt_lt_prog_compiler_wl_GCJ
17714
17715# Object file suffix (normally "o").
17716objext="$ac_objext"
17717
17718# Old archive suffix (normally "a").
17719libext="$libext"
17720
17721# Shared library suffix (normally ".so").
17722shrext='$shrext'
17723
17724# Executable file suffix (normally "").
17725exeext="$exeext"
17726
17727# Additional compiler flags for building library objects.
17728pic_flag=$lt_lt_prog_compiler_pic_GCJ
17729pic_mode=$pic_mode
17730
17731# What is the maximum length of a command?
17732max_cmd_len=$lt_cv_sys_max_cmd_len
17733
17734# Does compiler simultaneously support -c and -o options?
17735compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17736
17737# Must we lock files when doing compilation ?
17738need_locks=$lt_need_locks
17739
17740# Do we need the lib prefix for modules?
17741need_lib_prefix=$need_lib_prefix
17742
17743# Do we need a version for libraries?
17744need_version=$need_version
17745
17746# Whether dlopen is supported.
17747dlopen_support=$enable_dlopen
17748
17749# Whether dlopen of programs is supported.
17750dlopen_self=$enable_dlopen_self
17751
17752# Whether dlopen of statically linked programs is supported.
17753dlopen_self_static=$enable_dlopen_self_static
17754
17755# Compiler flag to prevent dynamic linking.
17756link_static_flag=$lt_lt_prog_compiler_static_GCJ
17757
17758# Compiler flag to turn off builtin functions.
17759no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17760
17761# Compiler flag to allow reflexive dlopens.
17762export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17763
17764# Compiler flag to generate shared objects directly from archives.
17765whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17766
17767# Compiler flag to generate thread-safe objects.
17768thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17769
17770# Library versioning type.
17771version_type=$version_type
17772
17773# Format of library name prefix.
17774libname_spec=$lt_libname_spec
17775
17776# List of archive names.  First name is the real one, the rest are links.
17777# The last name is the one that the linker finds with -lNAME.
17778library_names_spec=$lt_library_names_spec
17779
17780# The coded name of the library, if different from the real name.
17781soname_spec=$lt_soname_spec
17782
17783# Commands used to build and install an old-style archive.
17784RANLIB=$lt_RANLIB
17785old_archive_cmds=$lt_old_archive_cmds_GCJ
17786old_postinstall_cmds=$lt_old_postinstall_cmds
17787old_postuninstall_cmds=$lt_old_postuninstall_cmds
17788
17789# Create an old-style archive from a shared archive.
17790old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17791
17792# Create a temporary old-style archive to link instead of a shared archive.
17793old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17794
17795# Commands used to build and install a shared archive.
17796archive_cmds=$lt_archive_cmds_GCJ
17797archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17798postinstall_cmds=$lt_postinstall_cmds
17799postuninstall_cmds=$lt_postuninstall_cmds
17800
17801# Commands used to build a loadable module (assumed same as above if empty)
17802module_cmds=$lt_module_cmds_GCJ
17803module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17804
17805# Commands to strip libraries.
17806old_striplib=$lt_old_striplib
17807striplib=$lt_striplib
17808
17809# Dependencies to place before the objects being linked to create a
17810# shared library.
17811predep_objects=$lt_predep_objects_GCJ
17812
17813# Dependencies to place after the objects being linked to create a
17814# shared library.
17815postdep_objects=$lt_postdep_objects_GCJ
17816
17817# Dependencies to place before the objects being linked to create a
17818# shared library.
17819predeps=$lt_predeps_GCJ
17820
17821# Dependencies to place after the objects being linked to create a
17822# shared library.
17823postdeps=$lt_postdeps_GCJ
17824
17825# The library search path used internally by the compiler when linking
17826# a shared library.
17827compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17828
17829# Method to check whether dependent libraries are shared objects.
17830deplibs_check_method=$lt_deplibs_check_method
17831
17832# Command to use when deplibs_check_method == file_magic.
17833file_magic_cmd=$lt_file_magic_cmd
17834
17835# Flag that allows shared libraries with undefined symbols to be built.
17836allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17837
17838# Flag that forces no undefined symbols.
17839no_undefined_flag=$lt_no_undefined_flag_GCJ
17840
17841# Commands used to finish a libtool library installation in a directory.
17842finish_cmds=$lt_finish_cmds
17843
17844# Same as above, but a single script fragment to be evaled but not shown.
17845finish_eval=$lt_finish_eval
17846
17847# Take the output of nm and produce a listing of raw symbols and C names.
17848global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17849
17850# Transform the output of nm in a proper C declaration
17851global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17852
17853# Transform the output of nm in a C name address pair
17854global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17855
17856# This is the shared library runtime path variable.
17857runpath_var=$runpath_var
17858
17859# This is the shared library path variable.
17860shlibpath_var=$shlibpath_var
17861
17862# Is shlibpath searched before the hard-coded library search path?
17863shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17864
17865# How to hardcode a shared library path into an executable.
17866hardcode_action=$hardcode_action_GCJ
17867
17868# Whether we should hardcode library paths into libraries.
17869hardcode_into_libs=$hardcode_into_libs
17870
17871# Flag to hardcode \$libdir into a binary during linking.
17872# This must work even if \$libdir does not exist.
17873hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17874
17875# If ld is used when linking, flag to hardcode \$libdir into
17876# a binary during linking. This must work even if \$libdir does
17877# not exist.
17878hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17879
17880# Whether we need a single -rpath flag with a separated argument.
17881hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17882
17883# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17884# resulting binary.
17885hardcode_direct=$hardcode_direct_GCJ
17886
17887# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17888# resulting binary.
17889hardcode_minus_L=$hardcode_minus_L_GCJ
17890
17891# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17892# the resulting binary.
17893hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17894
17895# Set to yes if building a shared library automatically hardcodes DIR into the library
17896# and all subsequent libraries and executables linked against it.
17897hardcode_automatic=$hardcode_automatic_GCJ
17898
17899# Variables whose values should be saved in libtool wrapper scripts and
17900# restored at relink time.
17901variables_saved_for_relink="$variables_saved_for_relink"
17902
17903# Whether libtool must link a program against all its dependency libraries.
17904link_all_deplibs=$link_all_deplibs_GCJ
17905
17906# Compile-time system search path for libraries
17907sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17908
17909# Run-time system search path for libraries
17910sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17911
17912# Fix the shell variable \$srcfile for the compiler.
17913fix_srcfile_path="$fix_srcfile_path_GCJ"
17914
17915# Set to yes if exported symbols are required.
17916always_export_symbols=$always_export_symbols_GCJ
17917
17918# The commands to list exported symbols.
17919export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17920
17921# The commands to extract the exported symbol list from a shared archive.
17922extract_expsyms_cmds=$lt_extract_expsyms_cmds
17923
17924# Symbols that should not be listed in the preloaded symbols.
17925exclude_expsyms=$lt_exclude_expsyms_GCJ
17926
17927# Symbols that must always be exported.
17928include_expsyms=$lt_include_expsyms_GCJ
17929
17930# ### END LIBTOOL TAG CONFIG: $tagname
17931
17932__EOF__
17933
17934
17935else
17936  # If there is no Makefile yet, we rely on a make rule to execute
17937  # `config.status --recheck' to rerun these tests and create the
17938  # libtool script then.
17939  test -f Makefile && make "$ltmain"
17940fi
17941
17942
17943ac_ext=c
17944ac_cpp='$CPP $CPPFLAGS'
17945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17947ac_compiler_gnu=$ac_cv_c_compiler_gnu
17948
17949CC="$lt_save_CC"
17950
17951	else
17952	  tagname=""
17953	fi
17954	;;
17955
17956      RC)
17957
17958
17959
17960# Source file extension for RC test sources.
17961ac_ext=rc
17962
17963# Object file extension for compiled RC test sources.
17964objext=o
17965objext_RC=$objext
17966
17967# Code to be used in simple compile tests
17968lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17969
17970# Code to be used in simple link tests
17971lt_simple_link_test_code="$lt_simple_compile_test_code"
17972
17973# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17974
17975# If no C compiler was specified, use CC.
17976LTCC=${LTCC-"$CC"}
17977
17978# Allow CC to be a program name with arguments.
17979compiler=$CC
17980
17981
17982# Allow CC to be a program name with arguments.
17983lt_save_CC="$CC"
17984CC=${RC-"windres"}
17985compiler=$CC
17986compiler_RC=$CC
17987lt_cv_prog_compiler_c_o_RC=yes
17988
17989# The else clause should only fire when bootstrapping the
17990# libtool distribution, otherwise you forgot to ship ltmain.sh
17991# with your package, and you will get complaints that there are
17992# no rules to generate ltmain.sh.
17993if test -f "$ltmain"; then
17994  # See if we are running on zsh, and set the options which allow our commands through
17995  # without removal of \ escapes.
17996  if test -n "${ZSH_VERSION+set}" ; then
17997    setopt NO_GLOB_SUBST
17998  fi
17999  # Now quote all the things that may contain metacharacters while being
18000  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18001  # variables and quote the copies for generation of the libtool script.
18002  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18003    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18004    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18005    deplibs_check_method reload_flag reload_cmds need_locks \
18006    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18007    lt_cv_sys_global_symbol_to_c_name_address \
18008    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18009    old_postinstall_cmds old_postuninstall_cmds \
18010    compiler_RC \
18011    CC_RC \
18012    LD_RC \
18013    lt_prog_compiler_wl_RC \
18014    lt_prog_compiler_pic_RC \
18015    lt_prog_compiler_static_RC \
18016    lt_prog_compiler_no_builtin_flag_RC \
18017    export_dynamic_flag_spec_RC \
18018    thread_safe_flag_spec_RC \
18019    whole_archive_flag_spec_RC \
18020    enable_shared_with_static_runtimes_RC \
18021    old_archive_cmds_RC \
18022    old_archive_from_new_cmds_RC \
18023    predep_objects_RC \
18024    postdep_objects_RC \
18025    predeps_RC \
18026    postdeps_RC \
18027    compiler_lib_search_path_RC \
18028    archive_cmds_RC \
18029    archive_expsym_cmds_RC \
18030    postinstall_cmds_RC \
18031    postuninstall_cmds_RC \
18032    old_archive_from_expsyms_cmds_RC \
18033    allow_undefined_flag_RC \
18034    no_undefined_flag_RC \
18035    export_symbols_cmds_RC \
18036    hardcode_libdir_flag_spec_RC \
18037    hardcode_libdir_flag_spec_ld_RC \
18038    hardcode_libdir_separator_RC \
18039    hardcode_automatic_RC \
18040    module_cmds_RC \
18041    module_expsym_cmds_RC \
18042    lt_cv_prog_compiler_c_o_RC \
18043    exclude_expsyms_RC \
18044    include_expsyms_RC; do
18045
18046    case $var in
18047    old_archive_cmds_RC | \
18048    old_archive_from_new_cmds_RC | \
18049    archive_cmds_RC | \
18050    archive_expsym_cmds_RC | \
18051    module_cmds_RC | \
18052    module_expsym_cmds_RC | \
18053    old_archive_from_expsyms_cmds_RC | \
18054    export_symbols_cmds_RC | \
18055    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18056    postinstall_cmds | postuninstall_cmds | \
18057    old_postinstall_cmds | old_postuninstall_cmds | \
18058    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18059      # Double-quote double-evaled strings.
18060      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18061      ;;
18062    *)
18063      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18064      ;;
18065    esac
18066  done
18067
18068  case $lt_echo in
18069  *'\$0 --fallback-echo"')
18070    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18071    ;;
18072  esac
18073
18074cfgfile="$ofile"
18075
18076  cat <<__EOF__ >> "$cfgfile"
18077# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18078
18079# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18080
18081# Shell to use when invoking shell scripts.
18082SHELL=$lt_SHELL
18083
18084# Whether or not to build shared libraries.
18085build_libtool_libs=$enable_shared
18086
18087# Whether or not to build static libraries.
18088build_old_libs=$enable_static
18089
18090# Whether or not to add -lc for building shared libraries.
18091build_libtool_need_lc=$archive_cmds_need_lc_RC
18092
18093# Whether or not to disallow shared libs when runtime libs are static
18094allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18095
18096# Whether or not to optimize for fast installation.
18097fast_install=$enable_fast_install
18098
18099# The host system.
18100host_alias=$host_alias
18101host=$host
18102
18103# An echo program that does not interpret backslashes.
18104echo=$lt_echo
18105
18106# The archiver.
18107AR=$lt_AR
18108AR_FLAGS=$lt_AR_FLAGS
18109
18110# A C compiler.
18111LTCC=$lt_LTCC
18112
18113# A language-specific compiler.
18114CC=$lt_compiler_RC
18115
18116# Is the compiler the GNU C compiler?
18117with_gcc=$GCC_RC
18118
18119# An ERE matcher.
18120EGREP=$lt_EGREP
18121
18122# The linker used to build libraries.
18123LD=$lt_LD_RC
18124
18125# Whether we need hard or soft links.
18126LN_S=$lt_LN_S
18127
18128# A BSD-compatible nm program.
18129NM=$lt_NM
18130
18131# A symbol stripping program
18132STRIP=$STRIP
18133
18134# Used to examine libraries when file_magic_cmd begins "file"
18135MAGIC_CMD=$MAGIC_CMD
18136
18137# Used on cygwin: DLL creation program.
18138DLLTOOL="$DLLTOOL"
18139
18140# Used on cygwin: object dumper.
18141OBJDUMP="$OBJDUMP"
18142
18143# Used on cygwin: assembler.
18144AS="$AS"
18145
18146# The name of the directory that contains temporary libtool files.
18147objdir=$objdir
18148
18149# How to create reloadable object files.
18150reload_flag=$lt_reload_flag
18151reload_cmds=$lt_reload_cmds
18152
18153# How to pass a linker flag through the compiler.
18154wl=$lt_lt_prog_compiler_wl_RC
18155
18156# Object file suffix (normally "o").
18157objext="$ac_objext"
18158
18159# Old archive suffix (normally "a").
18160libext="$libext"
18161
18162# Shared library suffix (normally ".so").
18163shrext='$shrext'
18164
18165# Executable file suffix (normally "").
18166exeext="$exeext"
18167
18168# Additional compiler flags for building library objects.
18169pic_flag=$lt_lt_prog_compiler_pic_RC
18170pic_mode=$pic_mode
18171
18172# What is the maximum length of a command?
18173max_cmd_len=$lt_cv_sys_max_cmd_len
18174
18175# Does compiler simultaneously support -c and -o options?
18176compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18177
18178# Must we lock files when doing compilation ?
18179need_locks=$lt_need_locks
18180
18181# Do we need the lib prefix for modules?
18182need_lib_prefix=$need_lib_prefix
18183
18184# Do we need a version for libraries?
18185need_version=$need_version
18186
18187# Whether dlopen is supported.
18188dlopen_support=$enable_dlopen
18189
18190# Whether dlopen of programs is supported.
18191dlopen_self=$enable_dlopen_self
18192
18193# Whether dlopen of statically linked programs is supported.
18194dlopen_self_static=$enable_dlopen_self_static
18195
18196# Compiler flag to prevent dynamic linking.
18197link_static_flag=$lt_lt_prog_compiler_static_RC
18198
18199# Compiler flag to turn off builtin functions.
18200no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18201
18202# Compiler flag to allow reflexive dlopens.
18203export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18204
18205# Compiler flag to generate shared objects directly from archives.
18206whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18207
18208# Compiler flag to generate thread-safe objects.
18209thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18210
18211# Library versioning type.
18212version_type=$version_type
18213
18214# Format of library name prefix.
18215libname_spec=$lt_libname_spec
18216
18217# List of archive names.  First name is the real one, the rest are links.
18218# The last name is the one that the linker finds with -lNAME.
18219library_names_spec=$lt_library_names_spec
18220
18221# The coded name of the library, if different from the real name.
18222soname_spec=$lt_soname_spec
18223
18224# Commands used to build and install an old-style archive.
18225RANLIB=$lt_RANLIB
18226old_archive_cmds=$lt_old_archive_cmds_RC
18227old_postinstall_cmds=$lt_old_postinstall_cmds
18228old_postuninstall_cmds=$lt_old_postuninstall_cmds
18229
18230# Create an old-style archive from a shared archive.
18231old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18232
18233# Create a temporary old-style archive to link instead of a shared archive.
18234old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18235
18236# Commands used to build and install a shared archive.
18237archive_cmds=$lt_archive_cmds_RC
18238archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18239postinstall_cmds=$lt_postinstall_cmds
18240postuninstall_cmds=$lt_postuninstall_cmds
18241
18242# Commands used to build a loadable module (assumed same as above if empty)
18243module_cmds=$lt_module_cmds_RC
18244module_expsym_cmds=$lt_module_expsym_cmds_RC
18245
18246# Commands to strip libraries.
18247old_striplib=$lt_old_striplib
18248striplib=$lt_striplib
18249
18250# Dependencies to place before the objects being linked to create a
18251# shared library.
18252predep_objects=$lt_predep_objects_RC
18253
18254# Dependencies to place after the objects being linked to create a
18255# shared library.
18256postdep_objects=$lt_postdep_objects_RC
18257
18258# Dependencies to place before the objects being linked to create a
18259# shared library.
18260predeps=$lt_predeps_RC
18261
18262# Dependencies to place after the objects being linked to create a
18263# shared library.
18264postdeps=$lt_postdeps_RC
18265
18266# The library search path used internally by the compiler when linking
18267# a shared library.
18268compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18269
18270# Method to check whether dependent libraries are shared objects.
18271deplibs_check_method=$lt_deplibs_check_method
18272
18273# Command to use when deplibs_check_method == file_magic.
18274file_magic_cmd=$lt_file_magic_cmd
18275
18276# Flag that allows shared libraries with undefined symbols to be built.
18277allow_undefined_flag=$lt_allow_undefined_flag_RC
18278
18279# Flag that forces no undefined symbols.
18280no_undefined_flag=$lt_no_undefined_flag_RC
18281
18282# Commands used to finish a libtool library installation in a directory.
18283finish_cmds=$lt_finish_cmds
18284
18285# Same as above, but a single script fragment to be evaled but not shown.
18286finish_eval=$lt_finish_eval
18287
18288# Take the output of nm and produce a listing of raw symbols and C names.
18289global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18290
18291# Transform the output of nm in a proper C declaration
18292global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18293
18294# Transform the output of nm in a C name address pair
18295global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18296
18297# This is the shared library runtime path variable.
18298runpath_var=$runpath_var
18299
18300# This is the shared library path variable.
18301shlibpath_var=$shlibpath_var
18302
18303# Is shlibpath searched before the hard-coded library search path?
18304shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18305
18306# How to hardcode a shared library path into an executable.
18307hardcode_action=$hardcode_action_RC
18308
18309# Whether we should hardcode library paths into libraries.
18310hardcode_into_libs=$hardcode_into_libs
18311
18312# Flag to hardcode \$libdir into a binary during linking.
18313# This must work even if \$libdir does not exist.
18314hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18315
18316# If ld is used when linking, flag to hardcode \$libdir into
18317# a binary during linking. This must work even if \$libdir does
18318# not exist.
18319hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18320
18321# Whether we need a single -rpath flag with a separated argument.
18322hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18323
18324# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18325# resulting binary.
18326hardcode_direct=$hardcode_direct_RC
18327
18328# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18329# resulting binary.
18330hardcode_minus_L=$hardcode_minus_L_RC
18331
18332# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18333# the resulting binary.
18334hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18335
18336# Set to yes if building a shared library automatically hardcodes DIR into the library
18337# and all subsequent libraries and executables linked against it.
18338hardcode_automatic=$hardcode_automatic_RC
18339
18340# Variables whose values should be saved in libtool wrapper scripts and
18341# restored at relink time.
18342variables_saved_for_relink="$variables_saved_for_relink"
18343
18344# Whether libtool must link a program against all its dependency libraries.
18345link_all_deplibs=$link_all_deplibs_RC
18346
18347# Compile-time system search path for libraries
18348sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18349
18350# Run-time system search path for libraries
18351sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18352
18353# Fix the shell variable \$srcfile for the compiler.
18354fix_srcfile_path="$fix_srcfile_path_RC"
18355
18356# Set to yes if exported symbols are required.
18357always_export_symbols=$always_export_symbols_RC
18358
18359# The commands to list exported symbols.
18360export_symbols_cmds=$lt_export_symbols_cmds_RC
18361
18362# The commands to extract the exported symbol list from a shared archive.
18363extract_expsyms_cmds=$lt_extract_expsyms_cmds
18364
18365# Symbols that should not be listed in the preloaded symbols.
18366exclude_expsyms=$lt_exclude_expsyms_RC
18367
18368# Symbols that must always be exported.
18369include_expsyms=$lt_include_expsyms_RC
18370
18371# ### END LIBTOOL TAG CONFIG: $tagname
18372
18373__EOF__
18374
18375
18376else
18377  # If there is no Makefile yet, we rely on a make rule to execute
18378  # `config.status --recheck' to rerun these tests and create the
18379  # libtool script then.
18380  test -f Makefile && make "$ltmain"
18381fi
18382
18383
18384ac_ext=c
18385ac_cpp='$CPP $CPPFLAGS'
18386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18388ac_compiler_gnu=$ac_cv_c_compiler_gnu
18389
18390CC="$lt_save_CC"
18391
18392	;;
18393
18394      *)
18395	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18396echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18397   { (exit 1); exit 1; }; }
18398	;;
18399      esac
18400
18401      # Append the new tag name to the list of available tags.
18402      if test -n "$tagname" ; then
18403      available_tags="$available_tags $tagname"
18404    fi
18405    fi
18406  done
18407  IFS="$lt_save_ifs"
18408
18409  # Now substitute the updated list of available tags.
18410  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18411    mv "${ofile}T" "$ofile"
18412    chmod +x "$ofile"
18413  else
18414    rm -f "${ofile}T"
18415    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18416echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18417   { (exit 1); exit 1; }; }
18418  fi
18419fi
18420
18421
18422
18423# This can be used to rebuild libtool when needed
18424LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18425
18426# Always use our own libtool.
18427LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18428
18429# Prevent multiple expansion
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451# Extract the first word of "pwd", so it can be a program name with args.
18452set dummy pwd; ac_word=$2
18453echo "$as_me:$LINENO: checking for $ac_word" >&5
18454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18455if test "${ac_cv_path_RPWD+set}" = set; then
18456  echo $ECHO_N "(cached) $ECHO_C" >&6
18457else
18458  case $RPWD in
18459  [\\/]* | ?:[\\/]*)
18460  ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18461  ;;
18462  *)
18463  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18464for as_dir in $PATH
18465do
18466  IFS=$as_save_IFS
18467  test -z "$as_dir" && as_dir=.
18468  for ac_exec_ext in '' $ac_executable_extensions; do
18469  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18470    ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18471    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18472    break 2
18473  fi
18474done
18475done
18476
18477  ;;
18478esac
18479fi
18480RPWD=$ac_cv_path_RPWD
18481
18482if test -n "$RPWD"; then
18483  echo "$as_me:$LINENO: result: $RPWD" >&5
18484echo "${ECHO_T}$RPWD" >&6
18485else
18486  echo "$as_me:$LINENO: result: no" >&5
18487echo "${ECHO_T}no" >&6
18488fi
18489
18490# Extract the first word of "ar", so it can be a program name with args.
18491set dummy ar; ac_word=$2
18492echo "$as_me:$LINENO: checking for $ac_word" >&5
18493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18494if test "${ac_cv_path_AR+set}" = set; then
18495  echo $ECHO_N "(cached) $ECHO_C" >&6
18496else
18497  case $AR in
18498  [\\/]* | ?:[\\/]*)
18499  ac_cv_path_AR="$AR" # Let the user override the test with a path.
18500  ;;
18501  *)
18502  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18503for as_dir in $PATH
18504do
18505  IFS=$as_save_IFS
18506  test -z "$as_dir" && as_dir=.
18507  for ac_exec_ext in '' $ac_executable_extensions; do
18508  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18509    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18510    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18511    break 2
18512  fi
18513done
18514done
18515
18516  ;;
18517esac
18518fi
18519AR=$ac_cv_path_AR
18520
18521if test -n "$AR"; then
18522  echo "$as_me:$LINENO: result: $AR" >&5
18523echo "${ECHO_T}$AR" >&6
18524else
18525  echo "$as_me:$LINENO: result: no" >&5
18526echo "${ECHO_T}no" >&6
18527fi
18528
18529# Extract the first word of "sed", so it can be a program name with args.
18530set dummy sed; ac_word=$2
18531echo "$as_me:$LINENO: checking for $ac_word" >&5
18532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18533if test "${ac_cv_path_SED+set}" = set; then
18534  echo $ECHO_N "(cached) $ECHO_C" >&6
18535else
18536  case $SED in
18537  [\\/]* | ?:[\\/]*)
18538  ac_cv_path_SED="$SED" # Let the user override the test with a path.
18539  ;;
18540  *)
18541  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18542for as_dir in $PATH
18543do
18544  IFS=$as_save_IFS
18545  test -z "$as_dir" && as_dir=.
18546  for ac_exec_ext in '' $ac_executable_extensions; do
18547  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18548    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18549    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18550    break 2
18551  fi
18552done
18553done
18554
18555  ;;
18556esac
18557fi
18558SED=$ac_cv_path_SED
18559
18560if test -n "$SED"; then
18561  echo "$as_me:$LINENO: result: $SED" >&5
18562echo "${ECHO_T}$SED" >&6
18563else
18564  echo "$as_me:$LINENO: result: no" >&5
18565echo "${ECHO_T}no" >&6
18566fi
18567
18568# Extract the first word of "rm", so it can be a program name with args.
18569set dummy rm; ac_word=$2
18570echo "$as_me:$LINENO: checking for $ac_word" >&5
18571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18572if test "${ac_cv_path_RM+set}" = set; then
18573  echo $ECHO_N "(cached) $ECHO_C" >&6
18574else
18575  case $RM in
18576  [\\/]* | ?:[\\/]*)
18577  ac_cv_path_RM="$RM" # Let the user override the test with a path.
18578  ;;
18579  *)
18580  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18581for as_dir in $PATH
18582do
18583  IFS=$as_save_IFS
18584  test -z "$as_dir" && as_dir=.
18585  for ac_exec_ext in '' $ac_executable_extensions; do
18586  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18587    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18588    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18589    break 2
18590  fi
18591done
18592done
18593
18594  ;;
18595esac
18596fi
18597RM=$ac_cv_path_RM
18598
18599if test -n "$RM"; then
18600  echo "$as_me:$LINENO: result: $RM" >&5
18601echo "${ECHO_T}$RM" >&6
18602else
18603  echo "$as_me:$LINENO: result: no" >&5
18604echo "${ECHO_T}no" >&6
18605fi
18606
18607# Extract the first word of "echo", so it can be a program name with args.
18608set dummy echo; ac_word=$2
18609echo "$as_me:$LINENO: checking for $ac_word" >&5
18610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18611if test "${ac_cv_path_ECHO+set}" = set; then
18612  echo $ECHO_N "(cached) $ECHO_C" >&6
18613else
18614  case $ECHO in
18615  [\\/]* | ?:[\\/]*)
18616  ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18617  ;;
18618  *)
18619  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18620for as_dir in $PATH
18621do
18622  IFS=$as_save_IFS
18623  test -z "$as_dir" && as_dir=.
18624  for ac_exec_ext in '' $ac_executable_extensions; do
18625  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18626    ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18627    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18628    break 2
18629  fi
18630done
18631done
18632
18633  ;;
18634esac
18635fi
18636ECHO=$ac_cv_path_ECHO
18637
18638if test -n "$ECHO"; then
18639  echo "$as_me:$LINENO: result: $ECHO" >&5
18640echo "${ECHO_T}$ECHO" >&6
18641else
18642  echo "$as_me:$LINENO: result: no" >&5
18643echo "${ECHO_T}no" >&6
18644fi
18645
18646# Extract the first word of "mkdir", so it can be a program name with args.
18647set dummy mkdir; ac_word=$2
18648echo "$as_me:$LINENO: checking for $ac_word" >&5
18649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18650if test "${ac_cv_path_MKDIR+set}" = set; then
18651  echo $ECHO_N "(cached) $ECHO_C" >&6
18652else
18653  case $MKDIR in
18654  [\\/]* | ?:[\\/]*)
18655  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18656  ;;
18657  *)
18658  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18659for as_dir in $PATH
18660do
18661  IFS=$as_save_IFS
18662  test -z "$as_dir" && as_dir=.
18663  for ac_exec_ext in '' $ac_executable_extensions; do
18664  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18665    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18666    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18667    break 2
18668  fi
18669done
18670done
18671
18672  ;;
18673esac
18674fi
18675MKDIR=$ac_cv_path_MKDIR
18676
18677if test -n "$MKDIR"; then
18678  echo "$as_me:$LINENO: result: $MKDIR" >&5
18679echo "${ECHO_T}$MKDIR" >&6
18680else
18681  echo "$as_me:$LINENO: result: no" >&5
18682echo "${ECHO_T}no" >&6
18683fi
18684
18685# Extract the first word of "date", so it can be a program name with args.
18686set dummy date; ac_word=$2
18687echo "$as_me:$LINENO: checking for $ac_word" >&5
18688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18689if test "${ac_cv_path_DATE+set}" = set; then
18690  echo $ECHO_N "(cached) $ECHO_C" >&6
18691else
18692  case $DATE in
18693  [\\/]* | ?:[\\/]*)
18694  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18695  ;;
18696  *)
18697  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18698for as_dir in $PATH
18699do
18700  IFS=$as_save_IFS
18701  test -z "$as_dir" && as_dir=.
18702  for ac_exec_ext in '' $ac_executable_extensions; do
18703  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18704    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18705    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18706    break 2
18707  fi
18708done
18709done
18710
18711  ;;
18712esac
18713fi
18714DATE=$ac_cv_path_DATE
18715
18716if test -n "$DATE"; then
18717  echo "$as_me:$LINENO: result: $DATE" >&5
18718echo "${ECHO_T}$DATE" >&6
18719else
18720  echo "$as_me:$LINENO: result: no" >&5
18721echo "${ECHO_T}no" >&6
18722fi
18723
18724# Extract the first word of "mv", so it can be a program name with args.
18725set dummy mv; ac_word=$2
18726echo "$as_me:$LINENO: checking for $ac_word" >&5
18727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18728if test "${ac_cv_path_MV+set}" = set; then
18729  echo $ECHO_N "(cached) $ECHO_C" >&6
18730else
18731  case $MV in
18732  [\\/]* | ?:[\\/]*)
18733  ac_cv_path_MV="$MV" # Let the user override the test with a path.
18734  ;;
18735  *)
18736  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18737for as_dir in $PATH
18738do
18739  IFS=$as_save_IFS
18740  test -z "$as_dir" && as_dir=.
18741  for ac_exec_ext in '' $ac_executable_extensions; do
18742  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18743    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18744    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18745    break 2
18746  fi
18747done
18748done
18749
18750  ;;
18751esac
18752fi
18753MV=$ac_cv_path_MV
18754
18755if test -n "$MV"; then
18756  echo "$as_me:$LINENO: result: $MV" >&5
18757echo "${ECHO_T}$MV" >&6
18758else
18759  echo "$as_me:$LINENO: result: no" >&5
18760echo "${ECHO_T}no" >&6
18761fi
18762
18763# Extract the first word of "dot", so it can be a program name with args.
18764set dummy dot; ac_word=$2
18765echo "$as_me:$LINENO: checking for $ac_word" >&5
18766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18767if test "${ac_cv_path_DOT+set}" = set; then
18768  echo $ECHO_N "(cached) $ECHO_C" >&6
18769else
18770  case $DOT in
18771  [\\/]* | ?:[\\/]*)
18772  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18773  ;;
18774  *)
18775  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18776for as_dir in $PATH
18777do
18778  IFS=$as_save_IFS
18779  test -z "$as_dir" && as_dir=.
18780  for ac_exec_ext in '' $ac_executable_extensions; do
18781  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18782    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18783    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18784    break 2
18785  fi
18786done
18787done
18788
18789  ;;
18790esac
18791fi
18792DOT=$ac_cv_path_DOT
18793
18794if test -n "$DOT"; then
18795  echo "$as_me:$LINENO: result: $DOT" >&5
18796echo "${ECHO_T}$DOT" >&6
18797else
18798  echo "$as_me:$LINENO: result: no" >&5
18799echo "${ECHO_T}no" >&6
18800fi
18801
18802# Extract the first word of "etags", so it can be a program name with args.
18803set dummy etags; ac_word=$2
18804echo "$as_me:$LINENO: checking for $ac_word" >&5
18805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18806if test "${ac_cv_path_ETAGS+set}" = set; then
18807  echo $ECHO_N "(cached) $ECHO_C" >&6
18808else
18809  case $ETAGS in
18810  [\\/]* | ?:[\\/]*)
18811  ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18812  ;;
18813  *)
18814  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18815for as_dir in $PATH
18816do
18817  IFS=$as_save_IFS
18818  test -z "$as_dir" && as_dir=.
18819  for ac_exec_ext in '' $ac_executable_extensions; do
18820  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18821    ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18822    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18823    break 2
18824  fi
18825done
18826done
18827
18828  ;;
18829esac
18830fi
18831ETAGS=$ac_cv_path_ETAGS
18832
18833if test -n "$ETAGS"; then
18834  echo "$as_me:$LINENO: result: $ETAGS" >&5
18835echo "${ECHO_T}$ETAGS" >&6
18836else
18837  echo "$as_me:$LINENO: result: no" >&5
18838echo "${ECHO_T}no" >&6
18839fi
18840
18841# Extract the first word of "purify", so it can be a program name with args.
18842set dummy purify; ac_word=$2
18843echo "$as_me:$LINENO: checking for $ac_word" >&5
18844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18845if test "${ac_cv_path_PURIFY+set}" = set; then
18846  echo $ECHO_N "(cached) $ECHO_C" >&6
18847else
18848  case $PURIFY in
18849  [\\/]* | ?:[\\/]*)
18850  ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18851  ;;
18852  *)
18853  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18854for as_dir in $PATH
18855do
18856  IFS=$as_save_IFS
18857  test -z "$as_dir" && as_dir=.
18858  for ac_exec_ext in '' $ac_executable_extensions; do
18859  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18860    ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18861    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18862    break 2
18863  fi
18864done
18865done
18866
18867  ;;
18868esac
18869fi
18870PURIFY=$ac_cv_path_PURIFY
18871
18872if test -n "$PURIFY"; then
18873  echo "$as_me:$LINENO: result: $PURIFY" >&5
18874echo "${ECHO_T}$PURIFY" >&6
18875else
18876  echo "$as_me:$LINENO: result: no" >&5
18877echo "${ECHO_T}no" >&6
18878fi
18879
18880# Extract the first word of "python", so it can be a program name with args.
18881set dummy python; ac_word=$2
18882echo "$as_me:$LINENO: checking for $ac_word" >&5
18883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18884if test "${ac_cv_path_PYTHON+set}" = set; then
18885  echo $ECHO_N "(cached) $ECHO_C" >&6
18886else
18887  case $PYTHON in
18888  [\\/]* | ?:[\\/]*)
18889  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18890  ;;
18891  *)
18892  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18893for as_dir in $PATH
18894do
18895  IFS=$as_save_IFS
18896  test -z "$as_dir" && as_dir=.
18897  for ac_exec_ext in '' $ac_executable_extensions; do
18898  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18899    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18900    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18901    break 2
18902  fi
18903done
18904done
18905
18906  ;;
18907esac
18908fi
18909PYTHON=$ac_cv_path_PYTHON
18910
18911if test -n "$PYTHON"; then
18912  echo "$as_me:$LINENO: result: $PYTHON" >&5
18913echo "${ECHO_T}$PYTHON" >&6
18914else
18915  echo "$as_me:$LINENO: result: no" >&5
18916echo "${ECHO_T}no" >&6
18917fi
18918
18919# Extract the first word of "qmtest", so it can be a program name with args.
18920set dummy qmtest; ac_word=$2
18921echo "$as_me:$LINENO: checking for $ac_word" >&5
18922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18923if test "${ac_cv_path_QMTEST+set}" = set; then
18924  echo $ECHO_N "(cached) $ECHO_C" >&6
18925else
18926  case $QMTEST in
18927  [\\/]* | ?:[\\/]*)
18928  ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18929  ;;
18930  *)
18931  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18932for as_dir in $PATH
18933do
18934  IFS=$as_save_IFS
18935  test -z "$as_dir" && as_dir=.
18936  for ac_exec_ext in '' $ac_executable_extensions; do
18937  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18938    ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18939    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18940    break 2
18941  fi
18942done
18943done
18944
18945  ;;
18946esac
18947fi
18948QMTEST=$ac_cv_path_QMTEST
18949
18950if test -n "$QMTEST"; then
18951  echo "$as_me:$LINENO: result: $QMTEST" >&5
18952echo "${ECHO_T}$QMTEST" >&6
18953else
18954  echo "$as_me:$LINENO: result: no" >&5
18955echo "${ECHO_T}no" >&6
18956fi
18957
18958
18959pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18960pymajor=`echo $pyversion | cut -d. -f1`
18961pyminor=`echo $pyversion | cut -d. -f2`
18962
18963if test "$pymajor" -ge "2"
18964then
18965	if test "$pymajor" -eq "2"
18966	then
18967		if test "$pyminor" -lt "2"
18968		then
18969			{ { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18970echo "$as_me: error: Python 2.2 or greater required" >&2;}
18971   { (exit 1); exit 1; }; }
18972		fi
18973	fi
18974else
18975	{ { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18976echo "$as_me: error: Python 2.2 or greater required" >&2;}
18977   { (exit 1); exit 1; }; }
18978fi
18979
18980
18981
18982
18983
18984echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18985echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18986if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18987  echo $ECHO_N "(cached) $ECHO_C" >&6
18988else
18989  ac_check_lib_save_LIBS=$LIBS
18990LIBS="-lelf  $LIBS"
18991cat >conftest.$ac_ext <<_ACEOF
18992#line $LINENO "configure"
18993/* confdefs.h.  */
18994_ACEOF
18995cat confdefs.h >>conftest.$ac_ext
18996cat >>conftest.$ac_ext <<_ACEOF
18997/* end confdefs.h.  */
18998
18999/* Override any gcc2 internal prototype to avoid an error.  */
19000#ifdef __cplusplus
19001extern "C"
19002#endif
19003/* We use char because int might match the return type of a gcc2
19004   builtin and then its argument prototype would still apply.  */
19005char elf_begin ();
19006int
19007main ()
19008{
19009elf_begin ();
19010  ;
19011  return 0;
19012}
19013_ACEOF
19014rm -f conftest.$ac_objext conftest$ac_exeext
19015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19016  (eval $ac_link) 2>&5
19017  ac_status=$?
19018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019  (exit $ac_status); } &&
19020         { ac_try='test -s conftest$ac_exeext'
19021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19022  (eval $ac_try) 2>&5
19023  ac_status=$?
19024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025  (exit $ac_status); }; }; then
19026  ac_cv_lib_elf_elf_begin=yes
19027else
19028  echo "$as_me: failed program was:" >&5
19029sed 's/^/| /' conftest.$ac_ext >&5
19030
19031ac_cv_lib_elf_elf_begin=no
19032fi
19033rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19034LIBS=$ac_check_lib_save_LIBS
19035fi
19036echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19037echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19038if test $ac_cv_lib_elf_elf_begin = yes; then
19039  cat >>confdefs.h <<_ACEOF
19040#define HAVE_LIBELF 1
19041_ACEOF
19042
19043  LIBS="-lelf $LIBS"
19044
19045fi
19046
19047
19048echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19049echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19050if test "${ac_cv_search_dlopen+set}" = set; then
19051  echo $ECHO_N "(cached) $ECHO_C" >&6
19052else
19053  ac_func_search_save_LIBS=$LIBS
19054ac_cv_search_dlopen=no
19055cat >conftest.$ac_ext <<_ACEOF
19056#line $LINENO "configure"
19057/* confdefs.h.  */
19058_ACEOF
19059cat confdefs.h >>conftest.$ac_ext
19060cat >>conftest.$ac_ext <<_ACEOF
19061/* end confdefs.h.  */
19062
19063/* Override any gcc2 internal prototype to avoid an error.  */
19064#ifdef __cplusplus
19065extern "C"
19066#endif
19067/* We use char because int might match the return type of a gcc2
19068   builtin and then its argument prototype would still apply.  */
19069char dlopen ();
19070int
19071main ()
19072{
19073dlopen ();
19074  ;
19075  return 0;
19076}
19077_ACEOF
19078rm -f conftest.$ac_objext conftest$ac_exeext
19079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19080  (eval $ac_link) 2>&5
19081  ac_status=$?
19082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083  (exit $ac_status); } &&
19084         { ac_try='test -s conftest$ac_exeext'
19085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19086  (eval $ac_try) 2>&5
19087  ac_status=$?
19088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089  (exit $ac_status); }; }; then
19090  ac_cv_search_dlopen="none required"
19091else
19092  echo "$as_me: failed program was:" >&5
19093sed 's/^/| /' conftest.$ac_ext >&5
19094
19095fi
19096rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19097if test "$ac_cv_search_dlopen" = no; then
19098  for ac_lib in dl; do
19099    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19100    cat >conftest.$ac_ext <<_ACEOF
19101#line $LINENO "configure"
19102/* confdefs.h.  */
19103_ACEOF
19104cat confdefs.h >>conftest.$ac_ext
19105cat >>conftest.$ac_ext <<_ACEOF
19106/* end confdefs.h.  */
19107
19108/* Override any gcc2 internal prototype to avoid an error.  */
19109#ifdef __cplusplus
19110extern "C"
19111#endif
19112/* We use char because int might match the return type of a gcc2
19113   builtin and then its argument prototype would still apply.  */
19114char dlopen ();
19115int
19116main ()
19117{
19118dlopen ();
19119  ;
19120  return 0;
19121}
19122_ACEOF
19123rm -f conftest.$ac_objext conftest$ac_exeext
19124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19125  (eval $ac_link) 2>&5
19126  ac_status=$?
19127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128  (exit $ac_status); } &&
19129         { ac_try='test -s conftest$ac_exeext'
19130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131  (eval $ac_try) 2>&5
19132  ac_status=$?
19133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134  (exit $ac_status); }; }; then
19135  ac_cv_search_dlopen="-l$ac_lib"
19136break
19137else
19138  echo "$as_me: failed program was:" >&5
19139sed 's/^/| /' conftest.$ac_ext >&5
19140
19141fi
19142rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19143  done
19144fi
19145LIBS=$ac_func_search_save_LIBS
19146fi
19147echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19148echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19149if test "$ac_cv_search_dlopen" != no; then
19150  test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19151
19152else
19153  { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19154echo "$as_me: error: dlopen() required but not found" >&2;}
19155   { (exit 1); exit 1; }; }
19156fi
19157
19158
19159echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19160echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19161if test "${ac_cv_search_mallinfo+set}" = set; then
19162  echo $ECHO_N "(cached) $ECHO_C" >&6
19163else
19164  ac_func_search_save_LIBS=$LIBS
19165ac_cv_search_mallinfo=no
19166cat >conftest.$ac_ext <<_ACEOF
19167#line $LINENO "configure"
19168/* confdefs.h.  */
19169_ACEOF
19170cat confdefs.h >>conftest.$ac_ext
19171cat >>conftest.$ac_ext <<_ACEOF
19172/* end confdefs.h.  */
19173
19174/* Override any gcc2 internal prototype to avoid an error.  */
19175#ifdef __cplusplus
19176extern "C"
19177#endif
19178/* We use char because int might match the return type of a gcc2
19179   builtin and then its argument prototype would still apply.  */
19180char mallinfo ();
19181int
19182main ()
19183{
19184mallinfo ();
19185  ;
19186  return 0;
19187}
19188_ACEOF
19189rm -f conftest.$ac_objext conftest$ac_exeext
19190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19191  (eval $ac_link) 2>&5
19192  ac_status=$?
19193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194  (exit $ac_status); } &&
19195         { ac_try='test -s conftest$ac_exeext'
19196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19197  (eval $ac_try) 2>&5
19198  ac_status=$?
19199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200  (exit $ac_status); }; }; then
19201  ac_cv_search_mallinfo="none required"
19202else
19203  echo "$as_me: failed program was:" >&5
19204sed 's/^/| /' conftest.$ac_ext >&5
19205
19206fi
19207rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19208if test "$ac_cv_search_mallinfo" = no; then
19209  for ac_lib in malloc; do
19210    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19211    cat >conftest.$ac_ext <<_ACEOF
19212#line $LINENO "configure"
19213/* confdefs.h.  */
19214_ACEOF
19215cat confdefs.h >>conftest.$ac_ext
19216cat >>conftest.$ac_ext <<_ACEOF
19217/* end confdefs.h.  */
19218
19219/* Override any gcc2 internal prototype to avoid an error.  */
19220#ifdef __cplusplus
19221extern "C"
19222#endif
19223/* We use char because int might match the return type of a gcc2
19224   builtin and then its argument prototype would still apply.  */
19225char mallinfo ();
19226int
19227main ()
19228{
19229mallinfo ();
19230  ;
19231  return 0;
19232}
19233_ACEOF
19234rm -f conftest.$ac_objext conftest$ac_exeext
19235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19236  (eval $ac_link) 2>&5
19237  ac_status=$?
19238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239  (exit $ac_status); } &&
19240         { ac_try='test -s conftest$ac_exeext'
19241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242  (eval $ac_try) 2>&5
19243  ac_status=$?
19244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245  (exit $ac_status); }; }; then
19246  ac_cv_search_mallinfo="-l$ac_lib"
19247break
19248else
19249  echo "$as_me: failed program was:" >&5
19250sed 's/^/| /' conftest.$ac_ext >&5
19251
19252fi
19253rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19254  done
19255fi
19256LIBS=$ac_func_search_save_LIBS
19257fi
19258echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19259echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19260if test "$ac_cv_search_mallinfo" != no; then
19261  test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19262  cat >>confdefs.h <<\_ACEOF
19263#define HAVE_MALLINFO 1
19264_ACEOF
19265
19266fi
19267
19268
19269
19270echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19271echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19272if test "${ac_cv_header_stdc+set}" = set; then
19273  echo $ECHO_N "(cached) $ECHO_C" >&6
19274else
19275  cat >conftest.$ac_ext <<_ACEOF
19276#line $LINENO "configure"
19277/* confdefs.h.  */
19278_ACEOF
19279cat confdefs.h >>conftest.$ac_ext
19280cat >>conftest.$ac_ext <<_ACEOF
19281/* end confdefs.h.  */
19282#include <stdlib.h>
19283#include <stdarg.h>
19284#include <string.h>
19285#include <float.h>
19286
19287int
19288main ()
19289{
19290
19291  ;
19292  return 0;
19293}
19294_ACEOF
19295rm -f conftest.$ac_objext
19296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19297  (eval $ac_compile) 2>&5
19298  ac_status=$?
19299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300  (exit $ac_status); } &&
19301         { ac_try='test -s conftest.$ac_objext'
19302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19303  (eval $ac_try) 2>&5
19304  ac_status=$?
19305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306  (exit $ac_status); }; }; then
19307  ac_cv_header_stdc=yes
19308else
19309  echo "$as_me: failed program was:" >&5
19310sed 's/^/| /' conftest.$ac_ext >&5
19311
19312ac_cv_header_stdc=no
19313fi
19314rm -f conftest.$ac_objext conftest.$ac_ext
19315
19316if test $ac_cv_header_stdc = yes; then
19317  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19318  cat >conftest.$ac_ext <<_ACEOF
19319#line $LINENO "configure"
19320/* confdefs.h.  */
19321_ACEOF
19322cat confdefs.h >>conftest.$ac_ext
19323cat >>conftest.$ac_ext <<_ACEOF
19324/* end confdefs.h.  */
19325#include <string.h>
19326
19327_ACEOF
19328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19329  $EGREP "memchr" >/dev/null 2>&1; then
19330  :
19331else
19332  ac_cv_header_stdc=no
19333fi
19334rm -f conftest*
19335
19336fi
19337
19338if test $ac_cv_header_stdc = yes; then
19339  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19340  cat >conftest.$ac_ext <<_ACEOF
19341#line $LINENO "configure"
19342/* confdefs.h.  */
19343_ACEOF
19344cat confdefs.h >>conftest.$ac_ext
19345cat >>conftest.$ac_ext <<_ACEOF
19346/* end confdefs.h.  */
19347#include <stdlib.h>
19348
19349_ACEOF
19350if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19351  $EGREP "free" >/dev/null 2>&1; then
19352  :
19353else
19354  ac_cv_header_stdc=no
19355fi
19356rm -f conftest*
19357
19358fi
19359
19360if test $ac_cv_header_stdc = yes; then
19361  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19362  if test "$cross_compiling" = yes; then
19363  :
19364else
19365  cat >conftest.$ac_ext <<_ACEOF
19366#line $LINENO "configure"
19367/* confdefs.h.  */
19368_ACEOF
19369cat confdefs.h >>conftest.$ac_ext
19370cat >>conftest.$ac_ext <<_ACEOF
19371/* end confdefs.h.  */
19372#include <ctype.h>
19373#if ((' ' & 0x0FF) == 0x020)
19374# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19375# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19376#else
19377# define ISLOWER(c) \
19378                   (('a' <= (c) && (c) <= 'i') \
19379                     || ('j' <= (c) && (c) <= 'r') \
19380                     || ('s' <= (c) && (c) <= 'z'))
19381# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19382#endif
19383
19384#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19385int
19386main ()
19387{
19388  int i;
19389  for (i = 0; i < 256; i++)
19390    if (XOR (islower (i), ISLOWER (i))
19391        || toupper (i) != TOUPPER (i))
19392      exit(2);
19393  exit (0);
19394}
19395_ACEOF
19396rm -f conftest$ac_exeext
19397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19398  (eval $ac_link) 2>&5
19399  ac_status=$?
19400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19403  (eval $ac_try) 2>&5
19404  ac_status=$?
19405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406  (exit $ac_status); }; }; then
19407  :
19408else
19409  echo "$as_me: program exited with status $ac_status" >&5
19410echo "$as_me: failed program was:" >&5
19411sed 's/^/| /' conftest.$ac_ext >&5
19412
19413( exit $ac_status )
19414ac_cv_header_stdc=no
19415fi
19416rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19417fi
19418fi
19419fi
19420echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19421echo "${ECHO_T}$ac_cv_header_stdc" >&6
19422if test $ac_cv_header_stdc = yes; then
19423
19424cat >>confdefs.h <<\_ACEOF
19425#define STDC_HEADERS 1
19426_ACEOF
19427
19428fi
19429
19430echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19431echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19432if test "${ac_cv_header_sys_wait_h+set}" = set; then
19433  echo $ECHO_N "(cached) $ECHO_C" >&6
19434else
19435  cat >conftest.$ac_ext <<_ACEOF
19436#line $LINENO "configure"
19437/* confdefs.h.  */
19438_ACEOF
19439cat confdefs.h >>conftest.$ac_ext
19440cat >>conftest.$ac_ext <<_ACEOF
19441/* end confdefs.h.  */
19442#include <sys/types.h>
19443#include <sys/wait.h>
19444#ifndef WEXITSTATUS
19445# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19446#endif
19447#ifndef WIFEXITED
19448# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19449#endif
19450
19451int
19452main ()
19453{
19454  int s;
19455  wait (&s);
19456  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19457  ;
19458  return 0;
19459}
19460_ACEOF
19461rm -f conftest.$ac_objext
19462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19463  (eval $ac_compile) 2>&5
19464  ac_status=$?
19465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466  (exit $ac_status); } &&
19467         { ac_try='test -s conftest.$ac_objext'
19468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19469  (eval $ac_try) 2>&5
19470  ac_status=$?
19471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472  (exit $ac_status); }; }; then
19473  ac_cv_header_sys_wait_h=yes
19474else
19475  echo "$as_me: failed program was:" >&5
19476sed 's/^/| /' conftest.$ac_ext >&5
19477
19478ac_cv_header_sys_wait_h=no
19479fi
19480rm -f conftest.$ac_objext conftest.$ac_ext
19481fi
19482echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19483echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19484if test $ac_cv_header_sys_wait_h = yes; then
19485
19486cat >>confdefs.h <<\_ACEOF
19487#define HAVE_SYS_WAIT_H 1
19488_ACEOF
19489
19490fi
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19502do
19503as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19504if eval "test \"\${$as_ac_Header+set}\" = set"; then
19505  echo "$as_me:$LINENO: checking for $ac_header" >&5
19506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19507if eval "test \"\${$as_ac_Header+set}\" = set"; then
19508  echo $ECHO_N "(cached) $ECHO_C" >&6
19509fi
19510echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19511echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19512else
19513  # Is the header compilable?
19514echo "$as_me:$LINENO: checking $ac_header usability" >&5
19515echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19516cat >conftest.$ac_ext <<_ACEOF
19517#line $LINENO "configure"
19518/* confdefs.h.  */
19519_ACEOF
19520cat confdefs.h >>conftest.$ac_ext
19521cat >>conftest.$ac_ext <<_ACEOF
19522/* end confdefs.h.  */
19523$ac_includes_default
19524#include <$ac_header>
19525_ACEOF
19526rm -f conftest.$ac_objext
19527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19528  (eval $ac_compile) 2>&5
19529  ac_status=$?
19530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531  (exit $ac_status); } &&
19532         { ac_try='test -s conftest.$ac_objext'
19533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534  (eval $ac_try) 2>&5
19535  ac_status=$?
19536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537  (exit $ac_status); }; }; then
19538  ac_header_compiler=yes
19539else
19540  echo "$as_me: failed program was:" >&5
19541sed 's/^/| /' conftest.$ac_ext >&5
19542
19543ac_header_compiler=no
19544fi
19545rm -f conftest.$ac_objext conftest.$ac_ext
19546echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19547echo "${ECHO_T}$ac_header_compiler" >&6
19548
19549# Is the header present?
19550echo "$as_me:$LINENO: checking $ac_header presence" >&5
19551echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19552cat >conftest.$ac_ext <<_ACEOF
19553#line $LINENO "configure"
19554/* confdefs.h.  */
19555_ACEOF
19556cat confdefs.h >>conftest.$ac_ext
19557cat >>conftest.$ac_ext <<_ACEOF
19558/* end confdefs.h.  */
19559#include <$ac_header>
19560_ACEOF
19561if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19562  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19563  ac_status=$?
19564  grep -v '^ *+' conftest.er1 >conftest.err
19565  rm -f conftest.er1
19566  cat conftest.err >&5
19567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568  (exit $ac_status); } >/dev/null; then
19569  if test -s conftest.err; then
19570    ac_cpp_err=$ac_c_preproc_warn_flag
19571  else
19572    ac_cpp_err=
19573  fi
19574else
19575  ac_cpp_err=yes
19576fi
19577if test -z "$ac_cpp_err"; then
19578  ac_header_preproc=yes
19579else
19580  echo "$as_me: failed program was:" >&5
19581sed 's/^/| /' conftest.$ac_ext >&5
19582
19583  ac_header_preproc=no
19584fi
19585rm -f conftest.err conftest.$ac_ext
19586echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19587echo "${ECHO_T}$ac_header_preproc" >&6
19588
19589# So?  What about this header?
19590case $ac_header_compiler:$ac_header_preproc in
19591  yes:no )
19592    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19593echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19594    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19595echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19596    (
19597      cat <<\_ASBOX
19598## ------------------------------------ ##
19599## Report this to bug-autoconf@gnu.org. ##
19600## ------------------------------------ ##
19601_ASBOX
19602    ) |
19603      sed "s/^/$as_me: WARNING:     /" >&2
19604    ;;
19605  no:yes )
19606    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19607echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19608    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19609echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19610    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19611echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19612    (
19613      cat <<\_ASBOX
19614## ------------------------------------ ##
19615## Report this to bug-autoconf@gnu.org. ##
19616## ------------------------------------ ##
19617_ASBOX
19618    ) |
19619      sed "s/^/$as_me: WARNING:     /" >&2
19620    ;;
19621esac
19622echo "$as_me:$LINENO: checking for $ac_header" >&5
19623echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19624if eval "test \"\${$as_ac_Header+set}\" = set"; then
19625  echo $ECHO_N "(cached) $ECHO_C" >&6
19626else
19627  eval "$as_ac_Header=$ac_header_preproc"
19628fi
19629echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19630echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19631
19632fi
19633if test `eval echo '${'$as_ac_Header'}'` = yes; then
19634  cat >>confdefs.h <<_ACEOF
19635#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19636_ACEOF
19637
19638fi
19639
19640done
19641
19642
19643
19644
19645
19646
19647for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19648do
19649as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19650if eval "test \"\${$as_ac_Header+set}\" = set"; then
19651  echo "$as_me:$LINENO: checking for $ac_header" >&5
19652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19653if eval "test \"\${$as_ac_Header+set}\" = set"; then
19654  echo $ECHO_N "(cached) $ECHO_C" >&6
19655fi
19656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19658else
19659  # Is the header compilable?
19660echo "$as_me:$LINENO: checking $ac_header usability" >&5
19661echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19662cat >conftest.$ac_ext <<_ACEOF
19663#line $LINENO "configure"
19664/* confdefs.h.  */
19665_ACEOF
19666cat confdefs.h >>conftest.$ac_ext
19667cat >>conftest.$ac_ext <<_ACEOF
19668/* end confdefs.h.  */
19669$ac_includes_default
19670#include <$ac_header>
19671_ACEOF
19672rm -f conftest.$ac_objext
19673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19674  (eval $ac_compile) 2>&5
19675  ac_status=$?
19676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677  (exit $ac_status); } &&
19678         { ac_try='test -s conftest.$ac_objext'
19679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19680  (eval $ac_try) 2>&5
19681  ac_status=$?
19682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683  (exit $ac_status); }; }; then
19684  ac_header_compiler=yes
19685else
19686  echo "$as_me: failed program was:" >&5
19687sed 's/^/| /' conftest.$ac_ext >&5
19688
19689ac_header_compiler=no
19690fi
19691rm -f conftest.$ac_objext conftest.$ac_ext
19692echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19693echo "${ECHO_T}$ac_header_compiler" >&6
19694
19695# Is the header present?
19696echo "$as_me:$LINENO: checking $ac_header presence" >&5
19697echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19698cat >conftest.$ac_ext <<_ACEOF
19699#line $LINENO "configure"
19700/* confdefs.h.  */
19701_ACEOF
19702cat confdefs.h >>conftest.$ac_ext
19703cat >>conftest.$ac_ext <<_ACEOF
19704/* end confdefs.h.  */
19705#include <$ac_header>
19706_ACEOF
19707if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19708  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19709  ac_status=$?
19710  grep -v '^ *+' conftest.er1 >conftest.err
19711  rm -f conftest.er1
19712  cat conftest.err >&5
19713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714  (exit $ac_status); } >/dev/null; then
19715  if test -s conftest.err; then
19716    ac_cpp_err=$ac_c_preproc_warn_flag
19717  else
19718    ac_cpp_err=
19719  fi
19720else
19721  ac_cpp_err=yes
19722fi
19723if test -z "$ac_cpp_err"; then
19724  ac_header_preproc=yes
19725else
19726  echo "$as_me: failed program was:" >&5
19727sed 's/^/| /' conftest.$ac_ext >&5
19728
19729  ac_header_preproc=no
19730fi
19731rm -f conftest.err conftest.$ac_ext
19732echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19733echo "${ECHO_T}$ac_header_preproc" >&6
19734
19735# So?  What about this header?
19736case $ac_header_compiler:$ac_header_preproc in
19737  yes:no )
19738    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19739echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19740    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19741echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19742    (
19743      cat <<\_ASBOX
19744## ------------------------------------ ##
19745## Report this to bug-autoconf@gnu.org. ##
19746## ------------------------------------ ##
19747_ASBOX
19748    ) |
19749      sed "s/^/$as_me: WARNING:     /" >&2
19750    ;;
19751  no:yes )
19752    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19753echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19754    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19755echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19756    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19757echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19758    (
19759      cat <<\_ASBOX
19760## ------------------------------------ ##
19761## Report this to bug-autoconf@gnu.org. ##
19762## ------------------------------------ ##
19763_ASBOX
19764    ) |
19765      sed "s/^/$as_me: WARNING:     /" >&2
19766    ;;
19767esac
19768echo "$as_me:$LINENO: checking for $ac_header" >&5
19769echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19770if eval "test \"\${$as_ac_Header+set}\" = set"; then
19771  echo $ECHO_N "(cached) $ECHO_C" >&6
19772else
19773  eval "$as_ac_Header=$ac_header_preproc"
19774fi
19775echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19776echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19777
19778fi
19779if test `eval echo '${'$as_ac_Header'}'` = yes; then
19780  cat >>confdefs.h <<_ACEOF
19781#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19782_ACEOF
19783
19784fi
19785
19786done
19787
19788
19789
19790
19791for ac_header in dlfcn.h link.h
19792do
19793as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19794if eval "test \"\${$as_ac_Header+set}\" = set"; then
19795  echo "$as_me:$LINENO: checking for $ac_header" >&5
19796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19797if eval "test \"\${$as_ac_Header+set}\" = set"; then
19798  echo $ECHO_N "(cached) $ECHO_C" >&6
19799fi
19800echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19801echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19802else
19803  # Is the header compilable?
19804echo "$as_me:$LINENO: checking $ac_header usability" >&5
19805echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19806cat >conftest.$ac_ext <<_ACEOF
19807#line $LINENO "configure"
19808/* confdefs.h.  */
19809_ACEOF
19810cat confdefs.h >>conftest.$ac_ext
19811cat >>conftest.$ac_ext <<_ACEOF
19812/* end confdefs.h.  */
19813$ac_includes_default
19814#include <$ac_header>
19815_ACEOF
19816rm -f conftest.$ac_objext
19817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19818  (eval $ac_compile) 2>&5
19819  ac_status=$?
19820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821  (exit $ac_status); } &&
19822         { ac_try='test -s conftest.$ac_objext'
19823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19824  (eval $ac_try) 2>&5
19825  ac_status=$?
19826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827  (exit $ac_status); }; }; then
19828  ac_header_compiler=yes
19829else
19830  echo "$as_me: failed program was:" >&5
19831sed 's/^/| /' conftest.$ac_ext >&5
19832
19833ac_header_compiler=no
19834fi
19835rm -f conftest.$ac_objext conftest.$ac_ext
19836echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19837echo "${ECHO_T}$ac_header_compiler" >&6
19838
19839# Is the header present?
19840echo "$as_me:$LINENO: checking $ac_header presence" >&5
19841echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19842cat >conftest.$ac_ext <<_ACEOF
19843#line $LINENO "configure"
19844/* confdefs.h.  */
19845_ACEOF
19846cat confdefs.h >>conftest.$ac_ext
19847cat >>conftest.$ac_ext <<_ACEOF
19848/* end confdefs.h.  */
19849#include <$ac_header>
19850_ACEOF
19851if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19852  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19853  ac_status=$?
19854  grep -v '^ *+' conftest.er1 >conftest.err
19855  rm -f conftest.er1
19856  cat conftest.err >&5
19857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858  (exit $ac_status); } >/dev/null; then
19859  if test -s conftest.err; then
19860    ac_cpp_err=$ac_c_preproc_warn_flag
19861  else
19862    ac_cpp_err=
19863  fi
19864else
19865  ac_cpp_err=yes
19866fi
19867if test -z "$ac_cpp_err"; then
19868  ac_header_preproc=yes
19869else
19870  echo "$as_me: failed program was:" >&5
19871sed 's/^/| /' conftest.$ac_ext >&5
19872
19873  ac_header_preproc=no
19874fi
19875rm -f conftest.err conftest.$ac_ext
19876echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19877echo "${ECHO_T}$ac_header_preproc" >&6
19878
19879# So?  What about this header?
19880case $ac_header_compiler:$ac_header_preproc in
19881  yes:no )
19882    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19883echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19884    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19885echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19886    (
19887      cat <<\_ASBOX
19888## ------------------------------------ ##
19889## Report this to bug-autoconf@gnu.org. ##
19890## ------------------------------------ ##
19891_ASBOX
19892    ) |
19893      sed "s/^/$as_me: WARNING:     /" >&2
19894    ;;
19895  no:yes )
19896    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19897echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19898    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19899echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19900    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19901echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19902    (
19903      cat <<\_ASBOX
19904## ------------------------------------ ##
19905## Report this to bug-autoconf@gnu.org. ##
19906## ------------------------------------ ##
19907_ASBOX
19908    ) |
19909      sed "s/^/$as_me: WARNING:     /" >&2
19910    ;;
19911esac
19912echo "$as_me:$LINENO: checking for $ac_header" >&5
19913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19914if eval "test \"\${$as_ac_Header+set}\" = set"; then
19915  echo $ECHO_N "(cached) $ECHO_C" >&6
19916else
19917  eval "$as_ac_Header=$ac_header_preproc"
19918fi
19919echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19920echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19921
19922fi
19923if test `eval echo '${'$as_ac_Header'}'` = yes; then
19924  cat >>confdefs.h <<_ACEOF
19925#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19926_ACEOF
19927
19928fi
19929
19930done
19931
19932
19933
19934echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19935echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19936if test "${ac_cv_c_const+set}" = set; then
19937  echo $ECHO_N "(cached) $ECHO_C" >&6
19938else
19939  cat >conftest.$ac_ext <<_ACEOF
19940#line $LINENO "configure"
19941/* confdefs.h.  */
19942_ACEOF
19943cat confdefs.h >>conftest.$ac_ext
19944cat >>conftest.$ac_ext <<_ACEOF
19945/* end confdefs.h.  */
19946
19947int
19948main ()
19949{
19950/* FIXME: Include the comments suggested by Paul. */
19951#ifndef __cplusplus
19952  /* Ultrix mips cc rejects this.  */
19953  typedef int charset[2];
19954  const charset x;
19955  /* SunOS 4.1.1 cc rejects this.  */
19956  char const *const *ccp;
19957  char **p;
19958  /* NEC SVR4.0.2 mips cc rejects this.  */
19959  struct point {int x, y;};
19960  static struct point const zero = {0,0};
19961  /* AIX XL C 1.02.0.0 rejects this.
19962     It does not let you subtract one const X* pointer from another in
19963     an arm of an if-expression whose if-part is not a constant
19964     expression */
19965  const char *g = "string";
19966  ccp = &g + (g ? g-g : 0);
19967  /* HPUX 7.0 cc rejects these. */
19968  ++ccp;
19969  p = (char**) ccp;
19970  ccp = (char const *const *) p;
19971  { /* SCO 3.2v4 cc rejects this.  */
19972    char *t;
19973    char const *s = 0 ? (char *) 0 : (char const *) 0;
19974
19975    *t++ = 0;
19976  }
19977  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19978    int x[] = {25, 17};
19979    const int *foo = &x[0];
19980    ++foo;
19981  }
19982  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19983    typedef const int *iptr;
19984    iptr p = 0;
19985    ++p;
19986  }
19987  { /* AIX XL C 1.02.0.0 rejects this saying
19988       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19989    struct s { int j; const int *ap[3]; };
19990    struct s *b; b->j = 5;
19991  }
19992  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19993    const int foo = 10;
19994  }
19995#endif
19996
19997  ;
19998  return 0;
19999}
20000_ACEOF
20001rm -f conftest.$ac_objext
20002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20003  (eval $ac_compile) 2>&5
20004  ac_status=$?
20005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006  (exit $ac_status); } &&
20007         { ac_try='test -s conftest.$ac_objext'
20008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009  (eval $ac_try) 2>&5
20010  ac_status=$?
20011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012  (exit $ac_status); }; }; then
20013  ac_cv_c_const=yes
20014else
20015  echo "$as_me: failed program was:" >&5
20016sed 's/^/| /' conftest.$ac_ext >&5
20017
20018ac_cv_c_const=no
20019fi
20020rm -f conftest.$ac_objext conftest.$ac_ext
20021fi
20022echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20023echo "${ECHO_T}$ac_cv_c_const" >&6
20024if test $ac_cv_c_const = no; then
20025
20026cat >>confdefs.h <<\_ACEOF
20027#define const
20028_ACEOF
20029
20030fi
20031
20032echo "$as_me:$LINENO: checking for inline" >&5
20033echo $ECHO_N "checking for inline... $ECHO_C" >&6
20034if test "${ac_cv_c_inline+set}" = set; then
20035  echo $ECHO_N "(cached) $ECHO_C" >&6
20036else
20037  ac_cv_c_inline=no
20038for ac_kw in inline __inline__ __inline; do
20039  cat >conftest.$ac_ext <<_ACEOF
20040#line $LINENO "configure"
20041/* confdefs.h.  */
20042_ACEOF
20043cat confdefs.h >>conftest.$ac_ext
20044cat >>conftest.$ac_ext <<_ACEOF
20045/* end confdefs.h.  */
20046#ifndef __cplusplus
20047typedef int foo_t;
20048static $ac_kw foo_t static_foo () {return 0; }
20049$ac_kw foo_t foo () {return 0; }
20050#endif
20051
20052_ACEOF
20053rm -f conftest.$ac_objext
20054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20055  (eval $ac_compile) 2>&5
20056  ac_status=$?
20057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058  (exit $ac_status); } &&
20059         { ac_try='test -s conftest.$ac_objext'
20060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20061  (eval $ac_try) 2>&5
20062  ac_status=$?
20063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064  (exit $ac_status); }; }; then
20065  ac_cv_c_inline=$ac_kw; break
20066else
20067  echo "$as_me: failed program was:" >&5
20068sed 's/^/| /' conftest.$ac_ext >&5
20069
20070fi
20071rm -f conftest.$ac_objext conftest.$ac_ext
20072done
20073
20074fi
20075echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20076echo "${ECHO_T}$ac_cv_c_inline" >&6
20077case $ac_cv_c_inline in
20078  inline | yes) ;;
20079  no)
20080cat >>confdefs.h <<\_ACEOF
20081#define inline
20082_ACEOF
20083 ;;
20084  *)  cat >>confdefs.h <<_ACEOF
20085#define inline $ac_cv_c_inline
20086_ACEOF
20087 ;;
20088esac
20089
20090
20091echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20092echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20093if test "${ac_cv_c_bigendian+set}" = set; then
20094  echo $ECHO_N "(cached) $ECHO_C" >&6
20095else
20096  # See if sys/param.h defines the BYTE_ORDER macro.
20097cat >conftest.$ac_ext <<_ACEOF
20098#line $LINENO "configure"
20099/* confdefs.h.  */
20100_ACEOF
20101cat confdefs.h >>conftest.$ac_ext
20102cat >>conftest.$ac_ext <<_ACEOF
20103/* end confdefs.h.  */
20104#include <sys/types.h>
20105#include <sys/param.h>
20106
20107int
20108main ()
20109{
20110#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20111 bogus endian macros
20112#endif
20113
20114  ;
20115  return 0;
20116}
20117_ACEOF
20118rm -f conftest.$ac_objext
20119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20120  (eval $ac_compile) 2>&5
20121  ac_status=$?
20122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123  (exit $ac_status); } &&
20124         { ac_try='test -s conftest.$ac_objext'
20125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126  (eval $ac_try) 2>&5
20127  ac_status=$?
20128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129  (exit $ac_status); }; }; then
20130  # It does; now see whether it defined to BIG_ENDIAN or not.
20131cat >conftest.$ac_ext <<_ACEOF
20132#line $LINENO "configure"
20133/* confdefs.h.  */
20134_ACEOF
20135cat confdefs.h >>conftest.$ac_ext
20136cat >>conftest.$ac_ext <<_ACEOF
20137/* end confdefs.h.  */
20138#include <sys/types.h>
20139#include <sys/param.h>
20140
20141int
20142main ()
20143{
20144#if BYTE_ORDER != BIG_ENDIAN
20145 not big endian
20146#endif
20147
20148  ;
20149  return 0;
20150}
20151_ACEOF
20152rm -f conftest.$ac_objext
20153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20154  (eval $ac_compile) 2>&5
20155  ac_status=$?
20156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157  (exit $ac_status); } &&
20158         { ac_try='test -s conftest.$ac_objext'
20159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160  (eval $ac_try) 2>&5
20161  ac_status=$?
20162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163  (exit $ac_status); }; }; then
20164  ac_cv_c_bigendian=yes
20165else
20166  echo "$as_me: failed program was:" >&5
20167sed 's/^/| /' conftest.$ac_ext >&5
20168
20169ac_cv_c_bigendian=no
20170fi
20171rm -f conftest.$ac_objext conftest.$ac_ext
20172else
20173  echo "$as_me: failed program was:" >&5
20174sed 's/^/| /' conftest.$ac_ext >&5
20175
20176# It does not; compile a test program.
20177if test "$cross_compiling" = yes; then
20178  # try to guess the endianness by grepping values into an object file
20179  ac_cv_c_bigendian=unknown
20180  cat >conftest.$ac_ext <<_ACEOF
20181#line $LINENO "configure"
20182/* confdefs.h.  */
20183_ACEOF
20184cat confdefs.h >>conftest.$ac_ext
20185cat >>conftest.$ac_ext <<_ACEOF
20186/* end confdefs.h.  */
20187short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20188short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20189void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20190short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20191short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20192void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20193int
20194main ()
20195{
20196 _ascii (); _ebcdic ();
20197  ;
20198  return 0;
20199}
20200_ACEOF
20201rm -f conftest.$ac_objext
20202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20203  (eval $ac_compile) 2>&5
20204  ac_status=$?
20205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206  (exit $ac_status); } &&
20207         { ac_try='test -s conftest.$ac_objext'
20208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209  (eval $ac_try) 2>&5
20210  ac_status=$?
20211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212  (exit $ac_status); }; }; then
20213  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20214  ac_cv_c_bigendian=yes
20215fi
20216if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20217  if test "$ac_cv_c_bigendian" = unknown; then
20218    ac_cv_c_bigendian=no
20219  else
20220    # finding both strings is unlikely to happen, but who knows?
20221    ac_cv_c_bigendian=unknown
20222  fi
20223fi
20224else
20225  echo "$as_me: failed program was:" >&5
20226sed 's/^/| /' conftest.$ac_ext >&5
20227
20228fi
20229rm -f conftest.$ac_objext conftest.$ac_ext
20230else
20231  cat >conftest.$ac_ext <<_ACEOF
20232#line $LINENO "configure"
20233/* confdefs.h.  */
20234_ACEOF
20235cat confdefs.h >>conftest.$ac_ext
20236cat >>conftest.$ac_ext <<_ACEOF
20237/* end confdefs.h.  */
20238int
20239main ()
20240{
20241  /* Are we little or big endian?  From Harbison&Steele.  */
20242  union
20243  {
20244    long l;
20245    char c[sizeof (long)];
20246  } u;
20247  u.l = 1;
20248  exit (u.c[sizeof (long) - 1] == 1);
20249}
20250_ACEOF
20251rm -f conftest$ac_exeext
20252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20253  (eval $ac_link) 2>&5
20254  ac_status=$?
20255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258  (eval $ac_try) 2>&5
20259  ac_status=$?
20260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261  (exit $ac_status); }; }; then
20262  ac_cv_c_bigendian=no
20263else
20264  echo "$as_me: program exited with status $ac_status" >&5
20265echo "$as_me: failed program was:" >&5
20266sed 's/^/| /' conftest.$ac_ext >&5
20267
20268( exit $ac_status )
20269ac_cv_c_bigendian=yes
20270fi
20271rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20272fi
20273fi
20274rm -f conftest.$ac_objext conftest.$ac_ext
20275fi
20276echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20277echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20278case $ac_cv_c_bigendian in
20279  yes)
20280    cat >>confdefs.h <<\_ACEOF
20281#define ENDIAN_BIG 1
20282_ACEOF
20283 ;;
20284  no)
20285    cat >>confdefs.h <<\_ACEOF
20286#define ENDIAN_LITTLE 1
20287_ACEOF
20288 ;;
20289  *)
20290    { { echo "$as_me:$LINENO: error: unknown endianness
20291presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20292echo "$as_me: error: unknown endianness
20293presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20294   { (exit 1); exit 1; }; } ;;
20295esac
20296
20297
20298echo "$as_me:$LINENO: checking for pid_t" >&5
20299echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20300if test "${ac_cv_type_pid_t+set}" = set; then
20301  echo $ECHO_N "(cached) $ECHO_C" >&6
20302else
20303  cat >conftest.$ac_ext <<_ACEOF
20304#line $LINENO "configure"
20305/* confdefs.h.  */
20306_ACEOF
20307cat confdefs.h >>conftest.$ac_ext
20308cat >>conftest.$ac_ext <<_ACEOF
20309/* end confdefs.h.  */
20310$ac_includes_default
20311int
20312main ()
20313{
20314if ((pid_t *) 0)
20315  return 0;
20316if (sizeof (pid_t))
20317  return 0;
20318  ;
20319  return 0;
20320}
20321_ACEOF
20322rm -f conftest.$ac_objext
20323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20324  (eval $ac_compile) 2>&5
20325  ac_status=$?
20326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327  (exit $ac_status); } &&
20328         { ac_try='test -s conftest.$ac_objext'
20329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20330  (eval $ac_try) 2>&5
20331  ac_status=$?
20332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333  (exit $ac_status); }; }; then
20334  ac_cv_type_pid_t=yes
20335else
20336  echo "$as_me: failed program was:" >&5
20337sed 's/^/| /' conftest.$ac_ext >&5
20338
20339ac_cv_type_pid_t=no
20340fi
20341rm -f conftest.$ac_objext conftest.$ac_ext
20342fi
20343echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20344echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20345if test $ac_cv_type_pid_t = yes; then
20346  :
20347else
20348
20349cat >>confdefs.h <<_ACEOF
20350#define pid_t int
20351_ACEOF
20352
20353fi
20354
20355echo "$as_me:$LINENO: checking for size_t" >&5
20356echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20357if test "${ac_cv_type_size_t+set}" = set; then
20358  echo $ECHO_N "(cached) $ECHO_C" >&6
20359else
20360  cat >conftest.$ac_ext <<_ACEOF
20361#line $LINENO "configure"
20362/* confdefs.h.  */
20363_ACEOF
20364cat confdefs.h >>conftest.$ac_ext
20365cat >>conftest.$ac_ext <<_ACEOF
20366/* end confdefs.h.  */
20367$ac_includes_default
20368int
20369main ()
20370{
20371if ((size_t *) 0)
20372  return 0;
20373if (sizeof (size_t))
20374  return 0;
20375  ;
20376  return 0;
20377}
20378_ACEOF
20379rm -f conftest.$ac_objext
20380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20381  (eval $ac_compile) 2>&5
20382  ac_status=$?
20383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384  (exit $ac_status); } &&
20385         { ac_try='test -s conftest.$ac_objext'
20386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20387  (eval $ac_try) 2>&5
20388  ac_status=$?
20389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390  (exit $ac_status); }; }; then
20391  ac_cv_type_size_t=yes
20392else
20393  echo "$as_me: failed program was:" >&5
20394sed 's/^/| /' conftest.$ac_ext >&5
20395
20396ac_cv_type_size_t=no
20397fi
20398rm -f conftest.$ac_objext conftest.$ac_ext
20399fi
20400echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20401echo "${ECHO_T}$ac_cv_type_size_t" >&6
20402if test $ac_cv_type_size_t = yes; then
20403  :
20404else
20405
20406cat >>confdefs.h <<_ACEOF
20407#define size_t unsigned
20408_ACEOF
20409
20410fi
20411
20412echo "$as_me:$LINENO: checking for int64_t" >&5
20413echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20414if test "${ac_cv_type_int64_t+set}" = set; then
20415  echo $ECHO_N "(cached) $ECHO_C" >&6
20416else
20417  cat >conftest.$ac_ext <<_ACEOF
20418#line $LINENO "configure"
20419/* confdefs.h.  */
20420_ACEOF
20421cat confdefs.h >>conftest.$ac_ext
20422cat >>conftest.$ac_ext <<_ACEOF
20423/* end confdefs.h.  */
20424$ac_includes_default
20425int
20426main ()
20427{
20428if ((int64_t *) 0)
20429  return 0;
20430if (sizeof (int64_t))
20431  return 0;
20432  ;
20433  return 0;
20434}
20435_ACEOF
20436rm -f conftest.$ac_objext
20437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20438  (eval $ac_compile) 2>&5
20439  ac_status=$?
20440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441  (exit $ac_status); } &&
20442         { ac_try='test -s conftest.$ac_objext'
20443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20444  (eval $ac_try) 2>&5
20445  ac_status=$?
20446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447  (exit $ac_status); }; }; then
20448  ac_cv_type_int64_t=yes
20449else
20450  echo "$as_me: failed program was:" >&5
20451sed 's/^/| /' conftest.$ac_ext >&5
20452
20453ac_cv_type_int64_t=no
20454fi
20455rm -f conftest.$ac_objext conftest.$ac_ext
20456fi
20457echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20458echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20459if test $ac_cv_type_int64_t = yes; then
20460
20461cat >>confdefs.h <<_ACEOF
20462#define HAVE_INT64_T 1
20463_ACEOF
20464
20465
20466else
20467  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20468echo "$as_me: error: Type int64_t required but not found" >&2;}
20469   { (exit 1); exit 1; }; }
20470fi
20471
20472echo "$as_me:$LINENO: checking for uint64_t" >&5
20473echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20474if test "${ac_cv_type_uint64_t+set}" = set; then
20475  echo $ECHO_N "(cached) $ECHO_C" >&6
20476else
20477  cat >conftest.$ac_ext <<_ACEOF
20478#line $LINENO "configure"
20479/* confdefs.h.  */
20480_ACEOF
20481cat confdefs.h >>conftest.$ac_ext
20482cat >>conftest.$ac_ext <<_ACEOF
20483/* end confdefs.h.  */
20484$ac_includes_default
20485int
20486main ()
20487{
20488if ((uint64_t *) 0)
20489  return 0;
20490if (sizeof (uint64_t))
20491  return 0;
20492  ;
20493  return 0;
20494}
20495_ACEOF
20496rm -f conftest.$ac_objext
20497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20498  (eval $ac_compile) 2>&5
20499  ac_status=$?
20500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501  (exit $ac_status); } &&
20502         { ac_try='test -s conftest.$ac_objext'
20503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20504  (eval $ac_try) 2>&5
20505  ac_status=$?
20506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507  (exit $ac_status); }; }; then
20508  ac_cv_type_uint64_t=yes
20509else
20510  echo "$as_me: failed program was:" >&5
20511sed 's/^/| /' conftest.$ac_ext >&5
20512
20513ac_cv_type_uint64_t=no
20514fi
20515rm -f conftest.$ac_objext conftest.$ac_ext
20516fi
20517echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20518echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20519if test $ac_cv_type_uint64_t = yes; then
20520
20521cat >>confdefs.h <<_ACEOF
20522#define HAVE_UINT64_T 1
20523_ACEOF
20524
20525
20526else
20527  { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20528echo "$as_me: error: Type uint64_t required but not found" >&2;}
20529   { (exit 1); exit 1; }; }
20530fi
20531
20532echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20533echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20534if test "${ac_cv_header_time+set}" = set; then
20535  echo $ECHO_N "(cached) $ECHO_C" >&6
20536else
20537  cat >conftest.$ac_ext <<_ACEOF
20538#line $LINENO "configure"
20539/* confdefs.h.  */
20540_ACEOF
20541cat confdefs.h >>conftest.$ac_ext
20542cat >>conftest.$ac_ext <<_ACEOF
20543/* end confdefs.h.  */
20544#include <sys/types.h>
20545#include <sys/time.h>
20546#include <time.h>
20547
20548int
20549main ()
20550{
20551if ((struct tm *) 0)
20552return 0;
20553  ;
20554  return 0;
20555}
20556_ACEOF
20557rm -f conftest.$ac_objext
20558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20559  (eval $ac_compile) 2>&5
20560  ac_status=$?
20561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562  (exit $ac_status); } &&
20563         { ac_try='test -s conftest.$ac_objext'
20564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20565  (eval $ac_try) 2>&5
20566  ac_status=$?
20567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568  (exit $ac_status); }; }; then
20569  ac_cv_header_time=yes
20570else
20571  echo "$as_me: failed program was:" >&5
20572sed 's/^/| /' conftest.$ac_ext >&5
20573
20574ac_cv_header_time=no
20575fi
20576rm -f conftest.$ac_objext conftest.$ac_ext
20577fi
20578echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20579echo "${ECHO_T}$ac_cv_header_time" >&6
20580if test $ac_cv_header_time = yes; then
20581
20582cat >>confdefs.h <<\_ACEOF
20583#define TIME_WITH_SYS_TIME 1
20584_ACEOF
20585
20586fi
20587
20588echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20589echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20590if test "${ac_cv_struct_tm+set}" = set; then
20591  echo $ECHO_N "(cached) $ECHO_C" >&6
20592else
20593  cat >conftest.$ac_ext <<_ACEOF
20594#line $LINENO "configure"
20595/* confdefs.h.  */
20596_ACEOF
20597cat confdefs.h >>conftest.$ac_ext
20598cat >>conftest.$ac_ext <<_ACEOF
20599/* end confdefs.h.  */
20600#include <sys/types.h>
20601#include <time.h>
20602
20603int
20604main ()
20605{
20606struct tm *tp; tp->tm_sec;
20607  ;
20608  return 0;
20609}
20610_ACEOF
20611rm -f conftest.$ac_objext
20612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20613  (eval $ac_compile) 2>&5
20614  ac_status=$?
20615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616  (exit $ac_status); } &&
20617         { ac_try='test -s conftest.$ac_objext'
20618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619  (eval $ac_try) 2>&5
20620  ac_status=$?
20621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622  (exit $ac_status); }; }; then
20623  ac_cv_struct_tm=time.h
20624else
20625  echo "$as_me: failed program was:" >&5
20626sed 's/^/| /' conftest.$ac_ext >&5
20627
20628ac_cv_struct_tm=sys/time.h
20629fi
20630rm -f conftest.$ac_objext conftest.$ac_ext
20631fi
20632echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20633echo "${ECHO_T}$ac_cv_struct_tm" >&6
20634if test $ac_cv_struct_tm = sys/time.h; then
20635
20636cat >>confdefs.h <<\_ACEOF
20637#define TM_IN_SYS_TIME 1
20638_ACEOF
20639
20640fi
20641
20642
20643echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20644echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20645if test "${ac_cv_cxx_namespaces+set}" = set; then
20646  echo $ECHO_N "(cached) $ECHO_C" >&6
20647else
20648
20649
20650 ac_ext=cc
20651ac_cpp='$CXXCPP $CPPFLAGS'
20652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20655
20656 cat >conftest.$ac_ext <<_ACEOF
20657#line $LINENO "configure"
20658/* confdefs.h.  */
20659_ACEOF
20660cat confdefs.h >>conftest.$ac_ext
20661cat >>conftest.$ac_ext <<_ACEOF
20662/* end confdefs.h.  */
20663namespace Outer { namespace Inner { int i = 0; }}
20664int
20665main ()
20666{
20667using namespace Outer::Inner; return i;
20668  ;
20669  return 0;
20670}
20671_ACEOF
20672rm -f conftest.$ac_objext
20673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20674  (eval $ac_compile) 2>&5
20675  ac_status=$?
20676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677  (exit $ac_status); } &&
20678         { ac_try='test -s conftest.$ac_objext'
20679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680  (eval $ac_try) 2>&5
20681  ac_status=$?
20682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683  (exit $ac_status); }; }; then
20684  ac_cv_cxx_namespaces=yes
20685else
20686  echo "$as_me: failed program was:" >&5
20687sed 's/^/| /' conftest.$ac_ext >&5
20688
20689ac_cv_cxx_namespaces=no
20690fi
20691rm -f conftest.$ac_objext conftest.$ac_ext
20692 ac_ext=c
20693ac_cpp='$CPP $CPPFLAGS'
20694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20696ac_compiler_gnu=$ac_cv_c_compiler_gnu
20697
20698
20699fi
20700echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20701echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20702if test "$ac_cv_cxx_namespaces" = yes; then
20703
20704cat >>confdefs.h <<\_ACEOF
20705#define HAVE_NAMESPACES
20706_ACEOF
20707
20708fi
20709
20710echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20711echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20712if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20713  echo $ECHO_N "(cached) $ECHO_C" >&6
20714else
20715
20716
20717
20718  ac_ext=cc
20719ac_cpp='$CXXCPP $CPPFLAGS'
20720ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20721ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20722ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20723
20724  cat >conftest.$ac_ext <<_ACEOF
20725#line $LINENO "configure"
20726/* confdefs.h.  */
20727_ACEOF
20728cat confdefs.h >>conftest.$ac_ext
20729cat >>conftest.$ac_ext <<_ACEOF
20730/* end confdefs.h.  */
20731#include <ext/hash_map>
20732#ifdef HAVE_NAMESPACES
20733using namespace std;
20734#endif
20735int
20736main ()
20737{
20738hash_map<int, int> t; return 0;
20739  ;
20740  return 0;
20741}
20742_ACEOF
20743rm -f conftest.$ac_objext
20744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20745  (eval $ac_compile) 2>&5
20746  ac_status=$?
20747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748  (exit $ac_status); } &&
20749         { ac_try='test -s conftest.$ac_objext'
20750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751  (eval $ac_try) 2>&5
20752  ac_status=$?
20753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754  (exit $ac_status); }; }; then
20755  ac_cv_cxx_have_ext_hash_map=std
20756else
20757  echo "$as_me: failed program was:" >&5
20758sed 's/^/| /' conftest.$ac_ext >&5
20759
20760ac_cv_cxx_have_ext_hash_map=no
20761fi
20762rm -f conftest.$ac_objext conftest.$ac_ext
20763  cat >conftest.$ac_ext <<_ACEOF
20764#line $LINENO "configure"
20765/* confdefs.h.  */
20766_ACEOF
20767cat confdefs.h >>conftest.$ac_ext
20768cat >>conftest.$ac_ext <<_ACEOF
20769/* end confdefs.h.  */
20770#include <ext/hash_map>
20771#ifdef HAVE_NAMESPACES
20772using namespace __gnu_cxx;
20773#endif
20774int
20775main ()
20776{
20777hash_map<int, int> t; return 0;
20778  ;
20779  return 0;
20780}
20781_ACEOF
20782rm -f conftest.$ac_objext
20783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20784  (eval $ac_compile) 2>&5
20785  ac_status=$?
20786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787  (exit $ac_status); } &&
20788         { ac_try='test -s conftest.$ac_objext'
20789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790  (eval $ac_try) 2>&5
20791  ac_status=$?
20792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793  (exit $ac_status); }; }; then
20794  ac_cv_cxx_have_ext_hash_map=gnu
20795else
20796  echo "$as_me: failed program was:" >&5
20797sed 's/^/| /' conftest.$ac_ext >&5
20798
20799ac_cv_cxx_have_ext_hash_map=no
20800fi
20801rm -f conftest.$ac_objext conftest.$ac_ext
20802  ac_ext=c
20803ac_cpp='$CPP $CPPFLAGS'
20804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20806ac_compiler_gnu=$ac_cv_c_compiler_gnu
20807
20808
20809fi
20810echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20811echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20812if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20813
20814cat >>confdefs.h <<\_ACEOF
20815#define HAVE_STD_EXT_HASH_MAP
20816_ACEOF
20817
20818fi
20819if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20820
20821cat >>confdefs.h <<\_ACEOF
20822#define HAVE_GNU_EXT_HASH_MAP
20823_ACEOF
20824
20825fi
20826
20827echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20828echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20829if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20830  echo $ECHO_N "(cached) $ECHO_C" >&6
20831else
20832
20833
20834
20835  ac_ext=cc
20836ac_cpp='$CXXCPP $CPPFLAGS'
20837ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20838ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20839ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20840
20841  cat >conftest.$ac_ext <<_ACEOF
20842#line $LINENO "configure"
20843/* confdefs.h.  */
20844_ACEOF
20845cat confdefs.h >>conftest.$ac_ext
20846cat >>conftest.$ac_ext <<_ACEOF
20847/* end confdefs.h.  */
20848#include <ext/hash_set>
20849#ifdef HAVE_NAMESPACES
20850using namespace std;
20851#endif
20852int
20853main ()
20854{
20855hash_set<int> t; return 0;
20856  ;
20857  return 0;
20858}
20859_ACEOF
20860rm -f conftest.$ac_objext
20861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20862  (eval $ac_compile) 2>&5
20863  ac_status=$?
20864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865  (exit $ac_status); } &&
20866         { ac_try='test -s conftest.$ac_objext'
20867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20868  (eval $ac_try) 2>&5
20869  ac_status=$?
20870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871  (exit $ac_status); }; }; then
20872  ac_cv_cxx_have_ext_hash_set=std
20873else
20874  echo "$as_me: failed program was:" >&5
20875sed 's/^/| /' conftest.$ac_ext >&5
20876
20877ac_cv_cxx_have_ext_hash_set=no
20878fi
20879rm -f conftest.$ac_objext conftest.$ac_ext
20880  cat >conftest.$ac_ext <<_ACEOF
20881#line $LINENO "configure"
20882/* confdefs.h.  */
20883_ACEOF
20884cat confdefs.h >>conftest.$ac_ext
20885cat >>conftest.$ac_ext <<_ACEOF
20886/* end confdefs.h.  */
20887#include <ext/hash_set>
20888#ifdef HAVE_NAMESPACES
20889using namespace __gnu_cxx;
20890#endif
20891int
20892main ()
20893{
20894hash_set<int> t; return 0;
20895  ;
20896  return 0;
20897}
20898_ACEOF
20899rm -f conftest.$ac_objext
20900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20901  (eval $ac_compile) 2>&5
20902  ac_status=$?
20903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904  (exit $ac_status); } &&
20905         { ac_try='test -s conftest.$ac_objext'
20906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20907  (eval $ac_try) 2>&5
20908  ac_status=$?
20909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910  (exit $ac_status); }; }; then
20911  ac_cv_cxx_have_ext_hash_set=gnu
20912else
20913  echo "$as_me: failed program was:" >&5
20914sed 's/^/| /' conftest.$ac_ext >&5
20915
20916ac_cv_cxx_have_ext_hash_set=no
20917fi
20918rm -f conftest.$ac_objext conftest.$ac_ext
20919  ac_ext=c
20920ac_cpp='$CPP $CPPFLAGS'
20921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20923ac_compiler_gnu=$ac_cv_c_compiler_gnu
20924
20925
20926fi
20927echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20928echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20929if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20930
20931cat >>confdefs.h <<\_ACEOF
20932#define HAVE_STD_EXT_HASH_SET
20933_ACEOF
20934
20935fi
20936if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20937
20938cat >>confdefs.h <<\_ACEOF
20939#define HAVE_GNU_EXT_HASH_SET
20940_ACEOF
20941
20942fi
20943
20944echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20945echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20946if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20947  echo $ECHO_N "(cached) $ECHO_C" >&6
20948else
20949
20950
20951
20952  ac_ext=cc
20953ac_cpp='$CXXCPP $CPPFLAGS'
20954ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20955ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20956ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20957
20958  cat >conftest.$ac_ext <<_ACEOF
20959#line $LINENO "configure"
20960/* confdefs.h.  */
20961_ACEOF
20962cat confdefs.h >>conftest.$ac_ext
20963cat >>conftest.$ac_ext <<_ACEOF
20964/* end confdefs.h.  */
20965#include <ext/slist>
20966#ifdef HAVE_NAMESPACES
20967using namespace std;
20968#endif
20969int
20970main ()
20971{
20972slist<int> s; return 0;
20973  ;
20974  return 0;
20975}
20976_ACEOF
20977rm -f conftest.$ac_objext
20978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20979  (eval $ac_compile) 2>&5
20980  ac_status=$?
20981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982  (exit $ac_status); } &&
20983         { ac_try='test -s conftest.$ac_objext'
20984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20985  (eval $ac_try) 2>&5
20986  ac_status=$?
20987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988  (exit $ac_status); }; }; then
20989  ac_cv_cxx_have_ext_slist=std
20990else
20991  echo "$as_me: failed program was:" >&5
20992sed 's/^/| /' conftest.$ac_ext >&5
20993
20994ac_cv_cxx_have_ext_slist=no
20995fi
20996rm -f conftest.$ac_objext conftest.$ac_ext
20997  cat >conftest.$ac_ext <<_ACEOF
20998#line $LINENO "configure"
20999/* confdefs.h.  */
21000_ACEOF
21001cat confdefs.h >>conftest.$ac_ext
21002cat >>conftest.$ac_ext <<_ACEOF
21003/* end confdefs.h.  */
21004#include <ext/slist>
21005#ifdef HAVE_NAMESPACES
21006using namespace __gnu_cxx;
21007#endif
21008int
21009main ()
21010{
21011slist<int> s; return 0;
21012  ;
21013  return 0;
21014}
21015_ACEOF
21016rm -f conftest.$ac_objext
21017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21018  (eval $ac_compile) 2>&5
21019  ac_status=$?
21020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021  (exit $ac_status); } &&
21022         { ac_try='test -s conftest.$ac_objext'
21023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21024  (eval $ac_try) 2>&5
21025  ac_status=$?
21026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027  (exit $ac_status); }; }; then
21028  ac_cv_cxx_have_ext_slist=gnu
21029else
21030  echo "$as_me: failed program was:" >&5
21031sed 's/^/| /' conftest.$ac_ext >&5
21032
21033ac_cv_cxx_have_ext_slist=no
21034fi
21035rm -f conftest.$ac_objext conftest.$ac_ext
21036
21037  ac_ext=c
21038ac_cpp='$CPP $CPPFLAGS'
21039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21041ac_compiler_gnu=$ac_cv_c_compiler_gnu
21042
21043
21044fi
21045echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21046echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21047if test "$ac_cv_cxx_have_ext_slist" = std; then
21048
21049cat >>confdefs.h <<\_ACEOF
21050#define HAVE_EXT_SLIST std
21051_ACEOF
21052
21053fi
21054if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21055
21056cat >>confdefs.h <<\_ACEOF
21057#define HAVE_EXT_SLIST gnu
21058_ACEOF
21059
21060fi
21061
21062echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21063echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21064if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21065  echo $ECHO_N "(cached) $ECHO_C" >&6
21066else
21067
21068
21069
21070  ac_ext=cc
21071ac_cpp='$CXXCPP $CPPFLAGS'
21072ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21073ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21074ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21075
21076  cat >conftest.$ac_ext <<_ACEOF
21077#line $LINENO "configure"
21078/* confdefs.h.  */
21079_ACEOF
21080cat confdefs.h >>conftest.$ac_ext
21081cat >>conftest.$ac_ext <<_ACEOF
21082/* end confdefs.h.  */
21083#include <iterator>
21084#ifdef HAVE_NAMESPACES
21085using namespace std;
21086#endif
21087int
21088main ()
21089{
21090iterator<int,int,int> t; return 0;
21091  ;
21092  return 0;
21093}
21094_ACEOF
21095rm -f conftest.$ac_objext
21096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21097  (eval $ac_compile) 2>&5
21098  ac_status=$?
21099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100  (exit $ac_status); } &&
21101         { ac_try='test -s conftest.$ac_objext'
21102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21103  (eval $ac_try) 2>&5
21104  ac_status=$?
21105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106  (exit $ac_status); }; }; then
21107  ac_cv_cxx_have_std_iterator=yes
21108else
21109  echo "$as_me: failed program was:" >&5
21110sed 's/^/| /' conftest.$ac_ext >&5
21111
21112ac_cv_cxx_have_std_iterator=no
21113fi
21114rm -f conftest.$ac_objext conftest.$ac_ext
21115  ac_ext=c
21116ac_cpp='$CPP $CPPFLAGS'
21117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21119ac_compiler_gnu=$ac_cv_c_compiler_gnu
21120
21121
21122fi
21123echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21124echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21125if test "$ac_cv_cxx_have_std_iterator" = yes; then
21126
21127cat >>confdefs.h <<\_ACEOF
21128#define HAVE_STD_ITERATOR
21129_ACEOF
21130
21131fi
21132
21133echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21134echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21135if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21136  echo $ECHO_N "(cached) $ECHO_C" >&6
21137else
21138
21139
21140
21141  ac_ext=cc
21142ac_cpp='$CXXCPP $CPPFLAGS'
21143ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21144ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21145ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21146
21147  cat >conftest.$ac_ext <<_ACEOF
21148#line $LINENO "configure"
21149/* confdefs.h.  */
21150_ACEOF
21151cat confdefs.h >>conftest.$ac_ext
21152cat >>conftest.$ac_ext <<_ACEOF
21153/* end confdefs.h.  */
21154#include <iterator>
21155#ifdef HAVE_NAMESPACES
21156using namespace std;
21157#endif
21158int
21159main ()
21160{
21161bidirectional_iterator<int,int> t; return 0;
21162  ;
21163  return 0;
21164}
21165_ACEOF
21166rm -f conftest.$ac_objext
21167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21168  (eval $ac_compile) 2>&5
21169  ac_status=$?
21170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171  (exit $ac_status); } &&
21172         { ac_try='test -s conftest.$ac_objext'
21173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21174  (eval $ac_try) 2>&5
21175  ac_status=$?
21176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177  (exit $ac_status); }; }; then
21178  ac_cv_cxx_have_bi_iterator=yes
21179else
21180  echo "$as_me: failed program was:" >&5
21181sed 's/^/| /' conftest.$ac_ext >&5
21182
21183ac_cv_cxx_have_bi_iterator=no
21184fi
21185rm -f conftest.$ac_objext conftest.$ac_ext
21186  ac_ext=c
21187ac_cpp='$CPP $CPPFLAGS'
21188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21190ac_compiler_gnu=$ac_cv_c_compiler_gnu
21191
21192
21193fi
21194echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21195echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21196if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21197
21198cat >>confdefs.h <<\_ACEOF
21199#define HAVE_BI_ITERATOR
21200_ACEOF
21201
21202fi
21203
21204echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21205echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21206if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21207  echo $ECHO_N "(cached) $ECHO_C" >&6
21208else
21209
21210
21211
21212  ac_ext=cc
21213ac_cpp='$CXXCPP $CPPFLAGS'
21214ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21215ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21216ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21217
21218  cat >conftest.$ac_ext <<_ACEOF
21219#line $LINENO "configure"
21220/* confdefs.h.  */
21221_ACEOF
21222cat confdefs.h >>conftest.$ac_ext
21223cat >>conftest.$ac_ext <<_ACEOF
21224/* end confdefs.h.  */
21225#include <iterator>
21226#ifdef HAVE_NAMESPACES
21227using namespace std;
21228#endif
21229int
21230main ()
21231{
21232forward_iterator<int,int> t; return 0;
21233  ;
21234  return 0;
21235}
21236_ACEOF
21237rm -f conftest.$ac_objext
21238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21239  (eval $ac_compile) 2>&5
21240  ac_status=$?
21241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242  (exit $ac_status); } &&
21243         { ac_try='test -s conftest.$ac_objext'
21244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21245  (eval $ac_try) 2>&5
21246  ac_status=$?
21247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248  (exit $ac_status); }; }; then
21249  ac_cv_cxx_have_fwd_iterator=yes
21250else
21251  echo "$as_me: failed program was:" >&5
21252sed 's/^/| /' conftest.$ac_ext >&5
21253
21254ac_cv_cxx_have_fwd_iterator=no
21255fi
21256rm -f conftest.$ac_objext conftest.$ac_ext
21257  ac_ext=c
21258ac_cpp='$CPP $CPPFLAGS'
21259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21261ac_compiler_gnu=$ac_cv_c_compiler_gnu
21262
21263
21264fi
21265echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21266echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21267if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21268
21269cat >>confdefs.h <<\_ACEOF
21270#define HAVE_FWD_ITERATOR
21271_ACEOF
21272
21273fi
21274
21275
21276# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21277# for constant arguments.  Useless!
21278echo "$as_me:$LINENO: checking for working alloca.h" >&5
21279echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21280if test "${ac_cv_working_alloca_h+set}" = set; then
21281  echo $ECHO_N "(cached) $ECHO_C" >&6
21282else
21283  cat >conftest.$ac_ext <<_ACEOF
21284#line $LINENO "configure"
21285/* confdefs.h.  */
21286_ACEOF
21287cat confdefs.h >>conftest.$ac_ext
21288cat >>conftest.$ac_ext <<_ACEOF
21289/* end confdefs.h.  */
21290#include <alloca.h>
21291int
21292main ()
21293{
21294char *p = (char *) alloca (2 * sizeof (int));
21295  ;
21296  return 0;
21297}
21298_ACEOF
21299rm -f conftest.$ac_objext conftest$ac_exeext
21300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21301  (eval $ac_link) 2>&5
21302  ac_status=$?
21303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304  (exit $ac_status); } &&
21305         { ac_try='test -s conftest$ac_exeext'
21306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21307  (eval $ac_try) 2>&5
21308  ac_status=$?
21309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310  (exit $ac_status); }; }; then
21311  ac_cv_working_alloca_h=yes
21312else
21313  echo "$as_me: failed program was:" >&5
21314sed 's/^/| /' conftest.$ac_ext >&5
21315
21316ac_cv_working_alloca_h=no
21317fi
21318rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21319fi
21320echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21321echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21322if test $ac_cv_working_alloca_h = yes; then
21323
21324cat >>confdefs.h <<\_ACEOF
21325#define HAVE_ALLOCA_H 1
21326_ACEOF
21327
21328fi
21329
21330echo "$as_me:$LINENO: checking for alloca" >&5
21331echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21332if test "${ac_cv_func_alloca_works+set}" = set; then
21333  echo $ECHO_N "(cached) $ECHO_C" >&6
21334else
21335  cat >conftest.$ac_ext <<_ACEOF
21336#line $LINENO "configure"
21337/* confdefs.h.  */
21338_ACEOF
21339cat confdefs.h >>conftest.$ac_ext
21340cat >>conftest.$ac_ext <<_ACEOF
21341/* end confdefs.h.  */
21342#ifdef __GNUC__
21343# define alloca __builtin_alloca
21344#else
21345# ifdef _MSC_VER
21346#  include <malloc.h>
21347#  define alloca _alloca
21348# else
21349#  if HAVE_ALLOCA_H
21350#   include <alloca.h>
21351#  else
21352#   ifdef _AIX
21353 #pragma alloca
21354#   else
21355#    ifndef alloca /* predefined by HP cc +Olibcalls */
21356char *alloca ();
21357#    endif
21358#   endif
21359#  endif
21360# endif
21361#endif
21362
21363int
21364main ()
21365{
21366char *p = (char *) alloca (1);
21367  ;
21368  return 0;
21369}
21370_ACEOF
21371rm -f conftest.$ac_objext conftest$ac_exeext
21372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21373  (eval $ac_link) 2>&5
21374  ac_status=$?
21375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376  (exit $ac_status); } &&
21377         { ac_try='test -s conftest$ac_exeext'
21378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21379  (eval $ac_try) 2>&5
21380  ac_status=$?
21381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382  (exit $ac_status); }; }; then
21383  ac_cv_func_alloca_works=yes
21384else
21385  echo "$as_me: failed program was:" >&5
21386sed 's/^/| /' conftest.$ac_ext >&5
21387
21388ac_cv_func_alloca_works=no
21389fi
21390rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21391fi
21392echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21393echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21394
21395if test $ac_cv_func_alloca_works = yes; then
21396
21397cat >>confdefs.h <<\_ACEOF
21398#define HAVE_ALLOCA 1
21399_ACEOF
21400
21401else
21402  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21403# that cause trouble.  Some versions do not even contain alloca or
21404# contain a buggy version.  If you still want to use their alloca,
21405# use ar to extract alloca.o from them instead of compiling alloca.c.
21406
21407ALLOCA=alloca.$ac_objext
21408
21409cat >>confdefs.h <<\_ACEOF
21410#define C_ALLOCA 1
21411_ACEOF
21412
21413
21414echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21415echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21416if test "${ac_cv_os_cray+set}" = set; then
21417  echo $ECHO_N "(cached) $ECHO_C" >&6
21418else
21419  cat >conftest.$ac_ext <<_ACEOF
21420#line $LINENO "configure"
21421/* confdefs.h.  */
21422_ACEOF
21423cat confdefs.h >>conftest.$ac_ext
21424cat >>conftest.$ac_ext <<_ACEOF
21425/* end confdefs.h.  */
21426#if defined(CRAY) && ! defined(CRAY2)
21427webecray
21428#else
21429wenotbecray
21430#endif
21431
21432_ACEOF
21433if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21434  $EGREP "webecray" >/dev/null 2>&1; then
21435  ac_cv_os_cray=yes
21436else
21437  ac_cv_os_cray=no
21438fi
21439rm -f conftest*
21440
21441fi
21442echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21443echo "${ECHO_T}$ac_cv_os_cray" >&6
21444if test $ac_cv_os_cray = yes; then
21445  for ac_func in _getb67 GETB67 getb67; do
21446    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21447echo "$as_me:$LINENO: checking for $ac_func" >&5
21448echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21449if eval "test \"\${$as_ac_var+set}\" = set"; then
21450  echo $ECHO_N "(cached) $ECHO_C" >&6
21451else
21452  cat >conftest.$ac_ext <<_ACEOF
21453#line $LINENO "configure"
21454/* confdefs.h.  */
21455_ACEOF
21456cat confdefs.h >>conftest.$ac_ext
21457cat >>conftest.$ac_ext <<_ACEOF
21458/* end confdefs.h.  */
21459/* System header to define __stub macros and hopefully few prototypes,
21460    which can conflict with char $ac_func (); below.
21461    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21462    <limits.h> exists even on freestanding compilers.  */
21463#ifdef __STDC__
21464# include <limits.h>
21465#else
21466# include <assert.h>
21467#endif
21468/* Override any gcc2 internal prototype to avoid an error.  */
21469#ifdef __cplusplus
21470extern "C"
21471{
21472#endif
21473/* We use char because int might match the return type of a gcc2
21474   builtin and then its argument prototype would still apply.  */
21475char $ac_func ();
21476/* The GNU C library defines this for functions which it implements
21477    to always fail with ENOSYS.  Some functions are actually named
21478    something starting with __ and the normal name is an alias.  */
21479#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21480choke me
21481#else
21482char (*f) () = $ac_func;
21483#endif
21484#ifdef __cplusplus
21485}
21486#endif
21487
21488int
21489main ()
21490{
21491return f != $ac_func;
21492  ;
21493  return 0;
21494}
21495_ACEOF
21496rm -f conftest.$ac_objext conftest$ac_exeext
21497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21498  (eval $ac_link) 2>&5
21499  ac_status=$?
21500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501  (exit $ac_status); } &&
21502         { ac_try='test -s conftest$ac_exeext'
21503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21504  (eval $ac_try) 2>&5
21505  ac_status=$?
21506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507  (exit $ac_status); }; }; then
21508  eval "$as_ac_var=yes"
21509else
21510  echo "$as_me: failed program was:" >&5
21511sed 's/^/| /' conftest.$ac_ext >&5
21512
21513eval "$as_ac_var=no"
21514fi
21515rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21516fi
21517echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21518echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21519if test `eval echo '${'$as_ac_var'}'` = yes; then
21520
21521cat >>confdefs.h <<_ACEOF
21522#define CRAY_STACKSEG_END $ac_func
21523_ACEOF
21524
21525    break
21526fi
21527
21528  done
21529fi
21530
21531echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21532echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21533if test "${ac_cv_c_stack_direction+set}" = set; then
21534  echo $ECHO_N "(cached) $ECHO_C" >&6
21535else
21536  if test "$cross_compiling" = yes; then
21537  ac_cv_c_stack_direction=0
21538else
21539  cat >conftest.$ac_ext <<_ACEOF
21540#line $LINENO "configure"
21541/* confdefs.h.  */
21542_ACEOF
21543cat confdefs.h >>conftest.$ac_ext
21544cat >>conftest.$ac_ext <<_ACEOF
21545/* end confdefs.h.  */
21546int
21547find_stack_direction ()
21548{
21549  static char *addr = 0;
21550  auto char dummy;
21551  if (addr == 0)
21552    {
21553      addr = &dummy;
21554      return find_stack_direction ();
21555    }
21556  else
21557    return (&dummy > addr) ? 1 : -1;
21558}
21559
21560int
21561main ()
21562{
21563  exit (find_stack_direction () < 0);
21564}
21565_ACEOF
21566rm -f conftest$ac_exeext
21567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21568  (eval $ac_link) 2>&5
21569  ac_status=$?
21570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21573  (eval $ac_try) 2>&5
21574  ac_status=$?
21575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576  (exit $ac_status); }; }; then
21577  ac_cv_c_stack_direction=1
21578else
21579  echo "$as_me: program exited with status $ac_status" >&5
21580echo "$as_me: failed program was:" >&5
21581sed 's/^/| /' conftest.$ac_ext >&5
21582
21583( exit $ac_status )
21584ac_cv_c_stack_direction=-1
21585fi
21586rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21587fi
21588fi
21589echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21590echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21591
21592cat >>confdefs.h <<_ACEOF
21593#define STACK_DIRECTION $ac_cv_c_stack_direction
21594_ACEOF
21595
21596
21597fi
21598
21599if test $ac_cv_c_compiler_gnu = yes; then
21600    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21601echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21602if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21603  echo $ECHO_N "(cached) $ECHO_C" >&6
21604else
21605    ac_pattern="Autoconf.*'x'"
21606  cat >conftest.$ac_ext <<_ACEOF
21607#line $LINENO "configure"
21608/* confdefs.h.  */
21609_ACEOF
21610cat confdefs.h >>conftest.$ac_ext
21611cat >>conftest.$ac_ext <<_ACEOF
21612/* end confdefs.h.  */
21613#include <sgtty.h>
21614Autoconf TIOCGETP
21615_ACEOF
21616if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21617  $EGREP "$ac_pattern" >/dev/null 2>&1; then
21618  ac_cv_prog_gcc_traditional=yes
21619else
21620  ac_cv_prog_gcc_traditional=no
21621fi
21622rm -f conftest*
21623
21624
21625  if test $ac_cv_prog_gcc_traditional = no; then
21626    cat >conftest.$ac_ext <<_ACEOF
21627#line $LINENO "configure"
21628/* confdefs.h.  */
21629_ACEOF
21630cat confdefs.h >>conftest.$ac_ext
21631cat >>conftest.$ac_ext <<_ACEOF
21632/* end confdefs.h.  */
21633#include <termio.h>
21634Autoconf TCGETA
21635_ACEOF
21636if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21637  $EGREP "$ac_pattern" >/dev/null 2>&1; then
21638  ac_cv_prog_gcc_traditional=yes
21639fi
21640rm -f conftest*
21641
21642  fi
21643fi
21644echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21645echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21646  if test $ac_cv_prog_gcc_traditional = yes; then
21647    CC="$CC -traditional"
21648  fi
21649fi
21650
21651echo "$as_me:$LINENO: checking for working memcmp" >&5
21652echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21653if test "${ac_cv_func_memcmp_working+set}" = set; then
21654  echo $ECHO_N "(cached) $ECHO_C" >&6
21655else
21656  if test "$cross_compiling" = yes; then
21657  ac_cv_func_memcmp_working=no
21658else
21659  cat >conftest.$ac_ext <<_ACEOF
21660#line $LINENO "configure"
21661/* confdefs.h.  */
21662_ACEOF
21663cat confdefs.h >>conftest.$ac_ext
21664cat >>conftest.$ac_ext <<_ACEOF
21665/* end confdefs.h.  */
21666
21667int
21668main ()
21669{
21670
21671  /* Some versions of memcmp are not 8-bit clean.  */
21672  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21673  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21674    exit (1);
21675
21676  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21677     or more and with at least one buffer not starting on a 4-byte boundary.
21678     William Lewis provided this test program.   */
21679  {
21680    char foo[21];
21681    char bar[21];
21682    int i;
21683    for (i = 0; i < 4; i++)
21684      {
21685        char *a = foo + i;
21686        char *b = bar + i;
21687        strcpy (a, "--------01111111");
21688        strcpy (b, "--------10000000");
21689        if (memcmp (a, b, 16) >= 0)
21690          exit (1);
21691      }
21692    exit (0);
21693  }
21694
21695  ;
21696  return 0;
21697}
21698_ACEOF
21699rm -f conftest$ac_exeext
21700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21701  (eval $ac_link) 2>&5
21702  ac_status=$?
21703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21706  (eval $ac_try) 2>&5
21707  ac_status=$?
21708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709  (exit $ac_status); }; }; then
21710  ac_cv_func_memcmp_working=yes
21711else
21712  echo "$as_me: program exited with status $ac_status" >&5
21713echo "$as_me: failed program was:" >&5
21714sed 's/^/| /' conftest.$ac_ext >&5
21715
21716( exit $ac_status )
21717ac_cv_func_memcmp_working=no
21718fi
21719rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21720fi
21721fi
21722echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21723echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21724test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21725
21726
21727
21728for ac_header in stdlib.h unistd.h
21729do
21730as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21731if eval "test \"\${$as_ac_Header+set}\" = set"; then
21732  echo "$as_me:$LINENO: checking for $ac_header" >&5
21733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21734if eval "test \"\${$as_ac_Header+set}\" = set"; then
21735  echo $ECHO_N "(cached) $ECHO_C" >&6
21736fi
21737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21738echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21739else
21740  # Is the header compilable?
21741echo "$as_me:$LINENO: checking $ac_header usability" >&5
21742echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21743cat >conftest.$ac_ext <<_ACEOF
21744#line $LINENO "configure"
21745/* confdefs.h.  */
21746_ACEOF
21747cat confdefs.h >>conftest.$ac_ext
21748cat >>conftest.$ac_ext <<_ACEOF
21749/* end confdefs.h.  */
21750$ac_includes_default
21751#include <$ac_header>
21752_ACEOF
21753rm -f conftest.$ac_objext
21754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21755  (eval $ac_compile) 2>&5
21756  ac_status=$?
21757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758  (exit $ac_status); } &&
21759         { ac_try='test -s conftest.$ac_objext'
21760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21761  (eval $ac_try) 2>&5
21762  ac_status=$?
21763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764  (exit $ac_status); }; }; then
21765  ac_header_compiler=yes
21766else
21767  echo "$as_me: failed program was:" >&5
21768sed 's/^/| /' conftest.$ac_ext >&5
21769
21770ac_header_compiler=no
21771fi
21772rm -f conftest.$ac_objext conftest.$ac_ext
21773echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21774echo "${ECHO_T}$ac_header_compiler" >&6
21775
21776# Is the header present?
21777echo "$as_me:$LINENO: checking $ac_header presence" >&5
21778echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21779cat >conftest.$ac_ext <<_ACEOF
21780#line $LINENO "configure"
21781/* confdefs.h.  */
21782_ACEOF
21783cat confdefs.h >>conftest.$ac_ext
21784cat >>conftest.$ac_ext <<_ACEOF
21785/* end confdefs.h.  */
21786#include <$ac_header>
21787_ACEOF
21788if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21789  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21790  ac_status=$?
21791  grep -v '^ *+' conftest.er1 >conftest.err
21792  rm -f conftest.er1
21793  cat conftest.err >&5
21794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795  (exit $ac_status); } >/dev/null; then
21796  if test -s conftest.err; then
21797    ac_cpp_err=$ac_c_preproc_warn_flag
21798  else
21799    ac_cpp_err=
21800  fi
21801else
21802  ac_cpp_err=yes
21803fi
21804if test -z "$ac_cpp_err"; then
21805  ac_header_preproc=yes
21806else
21807  echo "$as_me: failed program was:" >&5
21808sed 's/^/| /' conftest.$ac_ext >&5
21809
21810  ac_header_preproc=no
21811fi
21812rm -f conftest.err conftest.$ac_ext
21813echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21814echo "${ECHO_T}$ac_header_preproc" >&6
21815
21816# So?  What about this header?
21817case $ac_header_compiler:$ac_header_preproc in
21818  yes:no )
21819    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21820echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21821    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21822echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21823    (
21824      cat <<\_ASBOX
21825## ------------------------------------ ##
21826## Report this to bug-autoconf@gnu.org. ##
21827## ------------------------------------ ##
21828_ASBOX
21829    ) |
21830      sed "s/^/$as_me: WARNING:     /" >&2
21831    ;;
21832  no:yes )
21833    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21834echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21835    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21836echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21837    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21838echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21839    (
21840      cat <<\_ASBOX
21841## ------------------------------------ ##
21842## Report this to bug-autoconf@gnu.org. ##
21843## ------------------------------------ ##
21844_ASBOX
21845    ) |
21846      sed "s/^/$as_me: WARNING:     /" >&2
21847    ;;
21848esac
21849echo "$as_me:$LINENO: checking for $ac_header" >&5
21850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21851if eval "test \"\${$as_ac_Header+set}\" = set"; then
21852  echo $ECHO_N "(cached) $ECHO_C" >&6
21853else
21854  eval "$as_ac_Header=$ac_header_preproc"
21855fi
21856echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21857echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21858
21859fi
21860if test `eval echo '${'$as_ac_Header'}'` = yes; then
21861  cat >>confdefs.h <<_ACEOF
21862#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21863_ACEOF
21864
21865fi
21866
21867done
21868
21869
21870for ac_func in getpagesize
21871do
21872as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21873echo "$as_me:$LINENO: checking for $ac_func" >&5
21874echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21875if eval "test \"\${$as_ac_var+set}\" = set"; then
21876  echo $ECHO_N "(cached) $ECHO_C" >&6
21877else
21878  cat >conftest.$ac_ext <<_ACEOF
21879#line $LINENO "configure"
21880/* confdefs.h.  */
21881_ACEOF
21882cat confdefs.h >>conftest.$ac_ext
21883cat >>conftest.$ac_ext <<_ACEOF
21884/* end confdefs.h.  */
21885/* System header to define __stub macros and hopefully few prototypes,
21886    which can conflict with char $ac_func (); below.
21887    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21888    <limits.h> exists even on freestanding compilers.  */
21889#ifdef __STDC__
21890# include <limits.h>
21891#else
21892# include <assert.h>
21893#endif
21894/* Override any gcc2 internal prototype to avoid an error.  */
21895#ifdef __cplusplus
21896extern "C"
21897{
21898#endif
21899/* We use char because int might match the return type of a gcc2
21900   builtin and then its argument prototype would still apply.  */
21901char $ac_func ();
21902/* The GNU C library defines this for functions which it implements
21903    to always fail with ENOSYS.  Some functions are actually named
21904    something starting with __ and the normal name is an alias.  */
21905#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21906choke me
21907#else
21908char (*f) () = $ac_func;
21909#endif
21910#ifdef __cplusplus
21911}
21912#endif
21913
21914int
21915main ()
21916{
21917return f != $ac_func;
21918  ;
21919  return 0;
21920}
21921_ACEOF
21922rm -f conftest.$ac_objext conftest$ac_exeext
21923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21924  (eval $ac_link) 2>&5
21925  ac_status=$?
21926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927  (exit $ac_status); } &&
21928         { ac_try='test -s conftest$ac_exeext'
21929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21930  (eval $ac_try) 2>&5
21931  ac_status=$?
21932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933  (exit $ac_status); }; }; then
21934  eval "$as_ac_var=yes"
21935else
21936  echo "$as_me: failed program was:" >&5
21937sed 's/^/| /' conftest.$ac_ext >&5
21938
21939eval "$as_ac_var=no"
21940fi
21941rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21942fi
21943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21944echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21945if test `eval echo '${'$as_ac_var'}'` = yes; then
21946  cat >>confdefs.h <<_ACEOF
21947#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21948_ACEOF
21949
21950fi
21951done
21952
21953echo "$as_me:$LINENO: checking for working mmap" >&5
21954echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21955if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21956  echo $ECHO_N "(cached) $ECHO_C" >&6
21957else
21958  if test "$cross_compiling" = yes; then
21959  ac_cv_func_mmap_fixed_mapped=no
21960else
21961  cat >conftest.$ac_ext <<_ACEOF
21962#line $LINENO "configure"
21963/* confdefs.h.  */
21964_ACEOF
21965cat confdefs.h >>conftest.$ac_ext
21966cat >>conftest.$ac_ext <<_ACEOF
21967/* end confdefs.h.  */
21968$ac_includes_default
21969/* malloc might have been renamed as rpl_malloc. */
21970#undef malloc
21971
21972/* Thanks to Mike Haertel and Jim Avera for this test.
21973   Here is a matrix of mmap possibilities:
21974	mmap private not fixed
21975	mmap private fixed at somewhere currently unmapped
21976	mmap private fixed at somewhere already mapped
21977	mmap shared not fixed
21978	mmap shared fixed at somewhere currently unmapped
21979	mmap shared fixed at somewhere already mapped
21980   For private mappings, we should verify that changes cannot be read()
21981   back from the file, nor mmap's back from the file at a different
21982   address.  (There have been systems where private was not correctly
21983   implemented like the infamous i386 svr4.0, and systems where the
21984   VM page cache was not coherent with the file system buffer cache
21985   like early versions of FreeBSD and possibly contemporary NetBSD.)
21986   For shared mappings, we should conversely verify that changes get
21987   propagated back to all the places they're supposed to be.
21988
21989   Grep wants private fixed already mapped.
21990   The main things grep needs to know about mmap are:
21991   * does it exist and is it safe to write into the mmap'd area
21992   * how to use it (BSD variants)  */
21993
21994#include <fcntl.h>
21995#include <sys/mman.h>
21996
21997#if !STDC_HEADERS && !HAVE_STDLIB_H
21998char *malloc ();
21999#endif
22000
22001/* This mess was copied from the GNU getpagesize.h.  */
22002#if !HAVE_GETPAGESIZE
22003/* Assume that all systems that can run configure have sys/param.h.  */
22004# if !HAVE_SYS_PARAM_H
22005#  define HAVE_SYS_PARAM_H 1
22006# endif
22007
22008# ifdef _SC_PAGESIZE
22009#  define getpagesize() sysconf(_SC_PAGESIZE)
22010# else /* no _SC_PAGESIZE */
22011#  if HAVE_SYS_PARAM_H
22012#   include <sys/param.h>
22013#   ifdef EXEC_PAGESIZE
22014#    define getpagesize() EXEC_PAGESIZE
22015#   else /* no EXEC_PAGESIZE */
22016#    ifdef NBPG
22017#     define getpagesize() NBPG * CLSIZE
22018#     ifndef CLSIZE
22019#      define CLSIZE 1
22020#     endif /* no CLSIZE */
22021#    else /* no NBPG */
22022#     ifdef NBPC
22023#      define getpagesize() NBPC
22024#     else /* no NBPC */
22025#      ifdef PAGESIZE
22026#       define getpagesize() PAGESIZE
22027#      endif /* PAGESIZE */
22028#     endif /* no NBPC */
22029#    endif /* no NBPG */
22030#   endif /* no EXEC_PAGESIZE */
22031#  else /* no HAVE_SYS_PARAM_H */
22032#   define getpagesize() 8192	/* punt totally */
22033#  endif /* no HAVE_SYS_PARAM_H */
22034# endif /* no _SC_PAGESIZE */
22035
22036#endif /* no HAVE_GETPAGESIZE */
22037
22038int
22039main ()
22040{
22041  char *data, *data2, *data3;
22042  int i, pagesize;
22043  int fd;
22044
22045  pagesize = getpagesize ();
22046
22047  /* First, make a file with some known garbage in it. */
22048  data = (char *) malloc (pagesize);
22049  if (!data)
22050    exit (1);
22051  for (i = 0; i < pagesize; ++i)
22052    *(data + i) = rand ();
22053  umask (0);
22054  fd = creat ("conftest.mmap", 0600);
22055  if (fd < 0)
22056    exit (1);
22057  if (write (fd, data, pagesize) != pagesize)
22058    exit (1);
22059  close (fd);
22060
22061  /* Next, try to mmap the file at a fixed address which already has
22062     something else allocated at it.  If we can, also make sure that
22063     we see the same garbage.  */
22064  fd = open ("conftest.mmap", O_RDWR);
22065  if (fd < 0)
22066    exit (1);
22067  data2 = (char *) malloc (2 * pagesize);
22068  if (!data2)
22069    exit (1);
22070  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22071  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22072                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
22073    exit (1);
22074  for (i = 0; i < pagesize; ++i)
22075    if (*(data + i) != *(data2 + i))
22076      exit (1);
22077
22078  /* Finally, make sure that changes to the mapped area do not
22079     percolate back to the file as seen by read().  (This is a bug on
22080     some variants of i386 svr4.0.)  */
22081  for (i = 0; i < pagesize; ++i)
22082    *(data2 + i) = *(data2 + i) + 1;
22083  data3 = (char *) malloc (pagesize);
22084  if (!data3)
22085    exit (1);
22086  if (read (fd, data3, pagesize) != pagesize)
22087    exit (1);
22088  for (i = 0; i < pagesize; ++i)
22089    if (*(data + i) != *(data3 + i))
22090      exit (1);
22091  close (fd);
22092  exit (0);
22093}
22094_ACEOF
22095rm -f conftest$ac_exeext
22096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22097  (eval $ac_link) 2>&5
22098  ac_status=$?
22099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22102  (eval $ac_try) 2>&5
22103  ac_status=$?
22104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105  (exit $ac_status); }; }; then
22106  ac_cv_func_mmap_fixed_mapped=yes
22107else
22108  echo "$as_me: program exited with status $ac_status" >&5
22109echo "$as_me: failed program was:" >&5
22110sed 's/^/| /' conftest.$ac_ext >&5
22111
22112( exit $ac_status )
22113ac_cv_func_mmap_fixed_mapped=no
22114fi
22115rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22116fi
22117fi
22118echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22119echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22120if test $ac_cv_func_mmap_fixed_mapped = yes; then
22121
22122cat >>confdefs.h <<\_ACEOF
22123#define HAVE_MMAP 1
22124_ACEOF
22125
22126fi
22127rm -f conftest.mmap
22128
22129echo "$as_me:$LINENO: checking for mmap of files" >&5
22130echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22131if test "${ac_cv_func_mmap_file+set}" = set; then
22132  echo $ECHO_N "(cached) $ECHO_C" >&6
22133else
22134
22135
22136  ac_ext=c
22137ac_cpp='$CPP $CPPFLAGS'
22138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22140ac_compiler_gnu=$ac_cv_c_compiler_gnu
22141
22142  if test "$cross_compiling" = yes; then
22143  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22144See \`config.log' for more details." >&5
22145echo "$as_me: error: cannot run test program while cross compiling
22146See \`config.log' for more details." >&2;}
22147   { (exit 1); exit 1; }; }
22148else
22149  cat >conftest.$ac_ext <<_ACEOF
22150#line $LINENO "configure"
22151/* confdefs.h.  */
22152_ACEOF
22153cat confdefs.h >>conftest.$ac_ext
22154cat >>conftest.$ac_ext <<_ACEOF
22155/* end confdefs.h.  */
22156
22157#ifdef HAVE_SYS_MMAN_H
22158#include <sys/mman.h>
22159#endif
22160
22161#ifdef HAVE_SYS_TYPES_H
22162#include <sys/types.h>
22163#endif
22164
22165#ifdef HAVE_FCNTL_H
22166#include <fcntl.h>
22167#endif
22168
22169  int fd;
22170  int main () {
22171  fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22172_ACEOF
22173rm -f conftest$ac_exeext
22174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22175  (eval $ac_link) 2>&5
22176  ac_status=$?
22177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22180  (eval $ac_try) 2>&5
22181  ac_status=$?
22182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183  (exit $ac_status); }; }; then
22184  ac_cv_func_mmap_file=yes
22185else
22186  echo "$as_me: program exited with status $ac_status" >&5
22187echo "$as_me: failed program was:" >&5
22188sed 's/^/| /' conftest.$ac_ext >&5
22189
22190( exit $ac_status )
22191ac_cv_func_mmap_file=no
22192fi
22193rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22194fi
22195  ac_ext=c
22196ac_cpp='$CPP $CPPFLAGS'
22197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22199ac_compiler_gnu=$ac_cv_c_compiler_gnu
22200
22201
22202fi
22203echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22204echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22205if test "$ac_cv_func_mmap_file" = yes; then
22206   cat >>confdefs.h <<\_ACEOF
22207#define HAVE_MMAP_FILE 1
22208_ACEOF
22209
22210   MMAP_FILE=yes
22211
22212fi
22213
22214if test ${ac_cv_func_mmap_file} = "no"
22215then
22216	{ { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22217echo "$as_me: error: mmap() of files required but not found" >&2;}
22218   { (exit 1); exit 1; }; }
22219fi
22220echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22221echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22222if test "${ac_cv_header_mmap_anon+set}" = set; then
22223  echo $ECHO_N "(cached) $ECHO_C" >&6
22224else
22225
22226
22227  ac_ext=c
22228ac_cpp='$CPP $CPPFLAGS'
22229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22231ac_compiler_gnu=$ac_cv_c_compiler_gnu
22232
22233  cat >conftest.$ac_ext <<_ACEOF
22234#line $LINENO "configure"
22235/* confdefs.h.  */
22236_ACEOF
22237cat confdefs.h >>conftest.$ac_ext
22238cat >>conftest.$ac_ext <<_ACEOF
22239/* end confdefs.h.  */
22240#include <sys/mman.h>
22241  #include <unistd.h>
22242  #include <fcntl.h>
22243int
22244main ()
22245{
22246mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22247  ;
22248  return 0;
22249}
22250_ACEOF
22251rm -f conftest.$ac_objext
22252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22253  (eval $ac_compile) 2>&5
22254  ac_status=$?
22255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256  (exit $ac_status); } &&
22257         { ac_try='test -s conftest.$ac_objext'
22258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22259  (eval $ac_try) 2>&5
22260  ac_status=$?
22261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262  (exit $ac_status); }; }; then
22263  ac_cv_header_mmap_anon=yes
22264else
22265  echo "$as_me: failed program was:" >&5
22266sed 's/^/| /' conftest.$ac_ext >&5
22267
22268ac_cv_header_mmap_anon=no
22269fi
22270rm -f conftest.$ac_objext conftest.$ac_ext
22271  ac_ext=c
22272ac_cpp='$CPP $CPPFLAGS'
22273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22275ac_compiler_gnu=$ac_cv_c_compiler_gnu
22276
22277
22278fi
22279echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22280echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22281if test "$ac_cv_header_mmap_anon" = yes; then
22282   cat >>confdefs.h <<\_ACEOF
22283#define HAVE_MMAP_ANONYMOUS 1
22284_ACEOF
22285
22286fi
22287
22288echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22289echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22290if test "${ac_cv_type_signal+set}" = set; then
22291  echo $ECHO_N "(cached) $ECHO_C" >&6
22292else
22293  cat >conftest.$ac_ext <<_ACEOF
22294#line $LINENO "configure"
22295/* confdefs.h.  */
22296_ACEOF
22297cat confdefs.h >>conftest.$ac_ext
22298cat >>conftest.$ac_ext <<_ACEOF
22299/* end confdefs.h.  */
22300#include <sys/types.h>
22301#include <signal.h>
22302#ifdef signal
22303# undef signal
22304#endif
22305#ifdef __cplusplus
22306extern "C" void (*signal (int, void (*)(int)))(int);
22307#else
22308void (*signal ()) ();
22309#endif
22310
22311int
22312main ()
22313{
22314int i;
22315  ;
22316  return 0;
22317}
22318_ACEOF
22319rm -f conftest.$ac_objext
22320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22321  (eval $ac_compile) 2>&5
22322  ac_status=$?
22323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324  (exit $ac_status); } &&
22325         { ac_try='test -s conftest.$ac_objext'
22326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22327  (eval $ac_try) 2>&5
22328  ac_status=$?
22329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330  (exit $ac_status); }; }; then
22331  ac_cv_type_signal=void
22332else
22333  echo "$as_me: failed program was:" >&5
22334sed 's/^/| /' conftest.$ac_ext >&5
22335
22336ac_cv_type_signal=int
22337fi
22338rm -f conftest.$ac_objext conftest.$ac_ext
22339fi
22340echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22341echo "${ECHO_T}$ac_cv_type_signal" >&6
22342
22343cat >>confdefs.h <<_ACEOF
22344#define RETSIGTYPE $ac_cv_type_signal
22345_ACEOF
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22358do
22359as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22360echo "$as_me:$LINENO: checking for $ac_func" >&5
22361echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22362if eval "test \"\${$as_ac_var+set}\" = set"; then
22363  echo $ECHO_N "(cached) $ECHO_C" >&6
22364else
22365  cat >conftest.$ac_ext <<_ACEOF
22366#line $LINENO "configure"
22367/* confdefs.h.  */
22368_ACEOF
22369cat confdefs.h >>conftest.$ac_ext
22370cat >>conftest.$ac_ext <<_ACEOF
22371/* end confdefs.h.  */
22372/* System header to define __stub macros and hopefully few prototypes,
22373    which can conflict with char $ac_func (); below.
22374    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22375    <limits.h> exists even on freestanding compilers.  */
22376#ifdef __STDC__
22377# include <limits.h>
22378#else
22379# include <assert.h>
22380#endif
22381/* Override any gcc2 internal prototype to avoid an error.  */
22382#ifdef __cplusplus
22383extern "C"
22384{
22385#endif
22386/* We use char because int might match the return type of a gcc2
22387   builtin and then its argument prototype would still apply.  */
22388char $ac_func ();
22389/* The GNU C library defines this for functions which it implements
22390    to always fail with ENOSYS.  Some functions are actually named
22391    something starting with __ and the normal name is an alias.  */
22392#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22393choke me
22394#else
22395char (*f) () = $ac_func;
22396#endif
22397#ifdef __cplusplus
22398}
22399#endif
22400
22401int
22402main ()
22403{
22404return f != $ac_func;
22405  ;
22406  return 0;
22407}
22408_ACEOF
22409rm -f conftest.$ac_objext conftest$ac_exeext
22410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22411  (eval $ac_link) 2>&5
22412  ac_status=$?
22413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414  (exit $ac_status); } &&
22415         { ac_try='test -s conftest$ac_exeext'
22416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22417  (eval $ac_try) 2>&5
22418  ac_status=$?
22419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420  (exit $ac_status); }; }; then
22421  eval "$as_ac_var=yes"
22422else
22423  echo "$as_me: failed program was:" >&5
22424sed 's/^/| /' conftest.$ac_ext >&5
22425
22426eval "$as_ac_var=no"
22427fi
22428rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22429fi
22430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22431echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22432if test `eval echo '${'$as_ac_var'}'` = yes; then
22433  cat >>confdefs.h <<_ACEOF
22434#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22435_ACEOF
22436
22437fi
22438done
22439
22440
22441
22442echo "$as_me:$LINENO: checking for mmap" >&5
22443echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22444if test "${ac_cv_func_mmap+set}" = set; then
22445  echo $ECHO_N "(cached) $ECHO_C" >&6
22446else
22447  cat >conftest.$ac_ext <<_ACEOF
22448#line $LINENO "configure"
22449/* confdefs.h.  */
22450_ACEOF
22451cat confdefs.h >>conftest.$ac_ext
22452cat >>conftest.$ac_ext <<_ACEOF
22453/* end confdefs.h.  */
22454/* System header to define __stub macros and hopefully few prototypes,
22455    which can conflict with char mmap (); below.
22456    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22457    <limits.h> exists even on freestanding compilers.  */
22458#ifdef __STDC__
22459# include <limits.h>
22460#else
22461# include <assert.h>
22462#endif
22463/* Override any gcc2 internal prototype to avoid an error.  */
22464#ifdef __cplusplus
22465extern "C"
22466{
22467#endif
22468/* We use char because int might match the return type of a gcc2
22469   builtin and then its argument prototype would still apply.  */
22470char mmap ();
22471/* The GNU C library defines this for functions which it implements
22472    to always fail with ENOSYS.  Some functions are actually named
22473    something starting with __ and the normal name is an alias.  */
22474#if defined (__stub_mmap) || defined (__stub___mmap)
22475choke me
22476#else
22477char (*f) () = mmap;
22478#endif
22479#ifdef __cplusplus
22480}
22481#endif
22482
22483int
22484main ()
22485{
22486return f != mmap;
22487  ;
22488  return 0;
22489}
22490_ACEOF
22491rm -f conftest.$ac_objext conftest$ac_exeext
22492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22493  (eval $ac_link) 2>&5
22494  ac_status=$?
22495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496  (exit $ac_status); } &&
22497         { ac_try='test -s conftest$ac_exeext'
22498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22499  (eval $ac_try) 2>&5
22500  ac_status=$?
22501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502  (exit $ac_status); }; }; then
22503  ac_cv_func_mmap=yes
22504else
22505  echo "$as_me: failed program was:" >&5
22506sed 's/^/| /' conftest.$ac_ext >&5
22507
22508ac_cv_func_mmap=no
22509fi
22510rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22511fi
22512echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22513echo "${ECHO_T}$ac_cv_func_mmap" >&6
22514if test $ac_cv_func_mmap = yes; then
22515  :
22516else
22517  { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22518echo "$as_me: error: Function mmap() required but not found" >&2;}
22519   { (exit 1); exit 1; }; }
22520fi
22521
22522echo "$as_me:$LINENO: checking for mprotect" >&5
22523echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22524if test "${ac_cv_func_mprotect+set}" = set; then
22525  echo $ECHO_N "(cached) $ECHO_C" >&6
22526else
22527  cat >conftest.$ac_ext <<_ACEOF
22528#line $LINENO "configure"
22529/* confdefs.h.  */
22530_ACEOF
22531cat confdefs.h >>conftest.$ac_ext
22532cat >>conftest.$ac_ext <<_ACEOF
22533/* end confdefs.h.  */
22534/* System header to define __stub macros and hopefully few prototypes,
22535    which can conflict with char mprotect (); below.
22536    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22537    <limits.h> exists even on freestanding compilers.  */
22538#ifdef __STDC__
22539# include <limits.h>
22540#else
22541# include <assert.h>
22542#endif
22543/* Override any gcc2 internal prototype to avoid an error.  */
22544#ifdef __cplusplus
22545extern "C"
22546{
22547#endif
22548/* We use char because int might match the return type of a gcc2
22549   builtin and then its argument prototype would still apply.  */
22550char mprotect ();
22551/* The GNU C library defines this for functions which it implements
22552    to always fail with ENOSYS.  Some functions are actually named
22553    something starting with __ and the normal name is an alias.  */
22554#if defined (__stub_mprotect) || defined (__stub___mprotect)
22555choke me
22556#else
22557char (*f) () = mprotect;
22558#endif
22559#ifdef __cplusplus
22560}
22561#endif
22562
22563int
22564main ()
22565{
22566return f != mprotect;
22567  ;
22568  return 0;
22569}
22570_ACEOF
22571rm -f conftest.$ac_objext conftest$ac_exeext
22572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22573  (eval $ac_link) 2>&5
22574  ac_status=$?
22575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576  (exit $ac_status); } &&
22577         { ac_try='test -s conftest$ac_exeext'
22578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22579  (eval $ac_try) 2>&5
22580  ac_status=$?
22581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582  (exit $ac_status); }; }; then
22583  ac_cv_func_mprotect=yes
22584else
22585  echo "$as_me: failed program was:" >&5
22586sed 's/^/| /' conftest.$ac_ext >&5
22587
22588ac_cv_func_mprotect=no
22589fi
22590rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22591fi
22592echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22593echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22594if test $ac_cv_func_mprotect = yes; then
22595  :
22596else
22597  { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22598echo "$as_me: error: Function mprotect() required but not found" >&2;}
22599   { (exit 1); exit 1; }; }
22600fi
22601
22602
22603
22604# Check whether --enable-purify or --disable-purify was given.
22605if test "${enable_purify+set}" = set; then
22606  enableval="$enable_purify"
22607
22608else
22609  enableval="no"
22610fi;
22611if test ${enableval} = "no"
22612then
22613	ENABLE_PURIFY=
22614
22615else
22616	ENABLE_PURIFY=ENABLE_PURIFY=1
22617
22618fi
22619
22620# Check whether --enable-optimized or --disable-optimized was given.
22621if test "${enable_optimized+set}" = set; then
22622  enableval="$enable_optimized"
22623
22624else
22625  enableval=no
22626fi;
22627if test ${enableval} = "no"
22628then
22629	ENABLE_OPTIMIZED=
22630
22631else
22632	ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22633
22634fi
22635
22636# Check whether --enable-spec or --disable-spec was given.
22637if test "${enable_spec+set}" = set; then
22638  enableval="$enable_spec"
22639
22640else
22641  enableval=no
22642fi;
22643if test ${enableval} = "no"
22644then
22645	USE_SPEC=
22646
22647else
22648	USE_SPEC=USE_SPEC=1
22649
22650fi
22651
22652# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22653if test "${enable_precompiled_bytecode+set}" = set; then
22654  enableval="$enable_precompiled_bytecode"
22655
22656else
22657  enableval=no
22658fi;
22659if test ${enableval} = "no"
22660then
22661	UPB=
22662
22663else
22664	UPB=USE_PRECOMPILED_BYTECODE=1
22665
22666fi
22667
22668
22669# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22670if test "${enable_llc_diffs+set}" = set; then
22671  enableval="$enable_llc_diffs"
22672
22673else
22674  enableval=yes
22675fi;
22676if test ${enableval} = "no"
22677then
22678	DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22679
22680else
22681	DISABLE_LLC_DIFFS=
22682
22683fi
22684
22685# Check whether --enable-jit or --disable-jit was given.
22686if test "${enable_jit+set}" = set; then
22687  enableval="$enable_jit"
22688
22689else
22690  enableval=default
22691fi;
22692
22693if test ${enableval} = "no"
22694then
22695	JIT=
22696
22697else
22698	case $target in
22699		*i*86*)
22700			JIT=TARGET_HAS_JIT=1
22701
22702			;;
22703		*sparc*)
22704			JIT=TARGET_HAS_JIT=1
22705
22706			;;
22707		*)
22708			JIT=
22709
22710			;;
22711	esac
22712fi
22713
22714
22715
22716# Check whether --with-spec or --without-spec was given.
22717if test "${with_spec+set}" = set; then
22718  withval="$with_spec"
22719  SPEC_ROOT=$withval
22720
22721else
22722  SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22723
22724fi;
22725
22726
22727# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22728if test "${with_llvmgccdir+set}" = set; then
22729  withval="$with_llvmgccdir"
22730  LLVMGCCDIR=$withval
22731
22732fi;
22733
22734
22735# Check whether --with-bcrepos or --without-bcrepos was given.
22736if test "${with_bcrepos+set}" = set; then
22737  withval="$with_bcrepos"
22738  BCR=$withval
22739
22740else
22741  BCR=/home/vadve/lattner/LLVMPrograms
22742
22743fi;
22744
22745
22746# Check whether --with-papi or --without-papi was given.
22747if test "${with_papi+set}" = set; then
22748  withval="$with_papi"
22749  PAPIDIR=$withval
22750
22751else
22752  PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22753
22754fi;
22755
22756
22757# Check whether --with-purify or --without-purify was given.
22758if test "${with_purify+set}" = set; then
22759  withval="$with_purify"
22760  PURIFY=$withval
22761
22762fi;
22763
22764
22765          ac_config_files="$ac_config_files Makefile.config"
22766cat >confcache <<\_ACEOF
22767# This file is a shell script that caches the results of configure
22768# tests run on this system so they can be shared between configure
22769# scripts and configure runs, see configure's option --config-cache.
22770# It is not useful on other systems.  If it contains results you don't
22771# want to keep, you may remove or edit it.
22772#
22773# config.status only pays attention to the cache file if you give it
22774# the --recheck option to rerun configure.
22775#
22776# `ac_cv_env_foo' variables (set or unset) will be overridden when
22777# loading this file, other *unset* `ac_cv_foo' will be assigned the
22778# following values.
22779
22780_ACEOF
22781
22782# The following way of writing the cache mishandles newlines in values,
22783# but we know of no workaround that is simple, portable, and efficient.
22784# So, don't put newlines in cache variables' values.
22785# Ultrix sh set writes to stderr and can't be redirected directly,
22786# and sets the high bit in the cache file unless we assign to the vars.
22787{
22788  (set) 2>&1 |
22789    case `(ac_space=' '; set | grep ac_space) 2>&1` in
22790    *ac_space=\ *)
22791      # `set' does not quote correctly, so add quotes (double-quote
22792      # substitution turns \\\\ into \\, and sed turns \\ into \).
22793      sed -n \
22794        "s/'/'\\\\''/g;
22795    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22796      ;;
22797    *)
22798      # `set' quotes correctly as required by POSIX, so do not add quotes.
22799      sed -n \
22800        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22801      ;;
22802    esac;
22803} |
22804  sed '
22805     t clear
22806     : clear
22807     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22808     t end
22809     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22810     : end' >>confcache
22811if diff $cache_file confcache >/dev/null 2>&1; then :; else
22812  if test -w $cache_file; then
22813    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22814    cat confcache >$cache_file
22815  else
22816    echo "not updating unwritable cache $cache_file"
22817  fi
22818fi
22819rm -f confcache
22820
22821test "x$prefix" = xNONE && prefix=$ac_default_prefix
22822# Let make expand exec_prefix.
22823test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22824
22825# VPATH may cause trouble with some makes, so we remove $(srcdir),
22826# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22827# trailing colons and then remove the whole line if VPATH becomes empty
22828# (actually we leave an empty line to preserve line numbers).
22829if test "x$srcdir" = x.; then
22830  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
22831s/:*\$(srcdir):*/:/;
22832s/:*\${srcdir}:*/:/;
22833s/:*@srcdir@:*/:/;
22834s/^\([^=]*=[ 	]*\):*/\1/;
22835s/:*$//;
22836s/^[^=]*=[ 	]*$//;
22837}'
22838fi
22839
22840DEFS=-DHAVE_CONFIG_H
22841
22842ac_libobjs=
22843ac_ltlibobjs=
22844for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22845  # 1. Remove the extension, and $U if already installed.
22846  ac_i=`echo "$ac_i" |
22847         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22848  # 2. Add them.
22849  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22850  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22851done
22852LIBOBJS=$ac_libobjs
22853
22854LTLIBOBJS=$ac_ltlibobjs
22855
22856
22857
22858: ${CONFIG_STATUS=./config.status}
22859ac_clean_files_save=$ac_clean_files
22860ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22861{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22862echo "$as_me: creating $CONFIG_STATUS" >&6;}
22863cat >$CONFIG_STATUS <<_ACEOF
22864#! $SHELL
22865# Generated by $as_me.
22866# Run this file to recreate the current configuration.
22867# Compiler output produced by configure, useful for debugging
22868# configure, is in config.log if it exists.
22869
22870debug=false
22871ac_cs_recheck=false
22872ac_cs_silent=false
22873SHELL=\${CONFIG_SHELL-$SHELL}
22874_ACEOF
22875
22876cat >>$CONFIG_STATUS <<\_ACEOF
22877## --------------------- ##
22878## M4sh Initialization.  ##
22879## --------------------- ##
22880
22881# Be Bourne compatible
22882if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22883  emulate sh
22884  NULLCMD=:
22885  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22886  # is contrary to our usage.  Disable this feature.
22887  alias -g '${1+"$@"}'='"$@"'
22888elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22889  set -o posix
22890fi
22891
22892# Support unset when possible.
22893if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22894  as_unset=unset
22895else
22896  as_unset=false
22897fi
22898
22899
22900# Work around bugs in pre-3.0 UWIN ksh.
22901$as_unset ENV MAIL MAILPATH
22902PS1='$ '
22903PS2='> '
22904PS4='+ '
22905
22906# NLS nuisances.
22907for as_var in \
22908  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22909  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22910  LC_TELEPHONE LC_TIME
22911do
22912  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22913    eval $as_var=C; export $as_var
22914  else
22915    $as_unset $as_var
22916  fi
22917done
22918
22919# Required to use basename.
22920if expr a : '\(a\)' >/dev/null 2>&1; then
22921  as_expr=expr
22922else
22923  as_expr=false
22924fi
22925
22926if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22927  as_basename=basename
22928else
22929  as_basename=false
22930fi
22931
22932
22933# Name of the executable.
22934as_me=`$as_basename "$0" ||
22935$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22936	 X"$0" : 'X\(//\)$' \| \
22937	 X"$0" : 'X\(/\)$' \| \
22938	 .     : '\(.\)' 2>/dev/null ||
22939echo X/"$0" |
22940    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22941  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
22942  	  /^X\/\(\/\).*/{ s//\1/; q; }
22943  	  s/.*/./; q'`
22944
22945
22946# PATH needs CR, and LINENO needs CR and PATH.
22947# Avoid depending upon Character Ranges.
22948as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22949as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22950as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22951as_cr_digits='0123456789'
22952as_cr_alnum=$as_cr_Letters$as_cr_digits
22953
22954# The user is always right.
22955if test "${PATH_SEPARATOR+set}" != set; then
22956  echo "#! /bin/sh" >conf$$.sh
22957  echo  "exit 0"   >>conf$$.sh
22958  chmod +x conf$$.sh
22959  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22960    PATH_SEPARATOR=';'
22961  else
22962    PATH_SEPARATOR=:
22963  fi
22964  rm -f conf$$.sh
22965fi
22966
22967
22968  as_lineno_1=$LINENO
22969  as_lineno_2=$LINENO
22970  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22971  test "x$as_lineno_1" != "x$as_lineno_2" &&
22972  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22973  # Find who we are.  Look in the path if we contain no path at all
22974  # relative or not.
22975  case $0 in
22976    *[\\/]* ) as_myself=$0 ;;
22977    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22978for as_dir in $PATH
22979do
22980  IFS=$as_save_IFS
22981  test -z "$as_dir" && as_dir=.
22982  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22983done
22984
22985       ;;
22986  esac
22987  # We did not find ourselves, most probably we were run as `sh COMMAND'
22988  # in which case we are not to be found in the path.
22989  if test "x$as_myself" = x; then
22990    as_myself=$0
22991  fi
22992  if test ! -f "$as_myself"; then
22993    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22994echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22995   { (exit 1); exit 1; }; }
22996  fi
22997  case $CONFIG_SHELL in
22998  '')
22999    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23000for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23001do
23002  IFS=$as_save_IFS
23003  test -z "$as_dir" && as_dir=.
23004  for as_base in sh bash ksh sh5; do
23005	 case $as_dir in
23006	 /*)
23007	   if ("$as_dir/$as_base" -c '
23008  as_lineno_1=$LINENO
23009  as_lineno_2=$LINENO
23010  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23011  test "x$as_lineno_1" != "x$as_lineno_2" &&
23012  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23013	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23014	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23015	     CONFIG_SHELL=$as_dir/$as_base
23016	     export CONFIG_SHELL
23017	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23018	   fi;;
23019	 esac
23020       done
23021done
23022;;
23023  esac
23024
23025  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23026  # uniformly replaced by the line number.  The first 'sed' inserts a
23027  # line-number line before each line; the second 'sed' does the real
23028  # work.  The second script uses 'N' to pair each line-number line
23029  # with the numbered line, and appends trailing '-' during
23030  # substitution so that $LINENO is not a special case at line end.
23031  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23032  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23033  sed '=' <$as_myself |
23034    sed '
23035      N
23036      s,$,-,
23037      : loop
23038      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23039      t loop
23040      s,-$,,
23041      s,^['$as_cr_digits']*\n,,
23042    ' >$as_me.lineno &&
23043  chmod +x $as_me.lineno ||
23044    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23045echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23046   { (exit 1); exit 1; }; }
23047
23048  # Don't try to exec as it changes $[0], causing all sort of problems
23049  # (the dirname of $[0] is not the place where we might find the
23050  # original and so on.  Autoconf is especially sensible to this).
23051  . ./$as_me.lineno
23052  # Exit status is that of the last command.
23053  exit
23054}
23055
23056
23057case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23058  *c*,-n*) ECHO_N= ECHO_C='
23059' ECHO_T='	' ;;
23060  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23061  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23062esac
23063
23064if expr a : '\(a\)' >/dev/null 2>&1; then
23065  as_expr=expr
23066else
23067  as_expr=false
23068fi
23069
23070rm -f conf$$ conf$$.exe conf$$.file
23071echo >conf$$.file
23072if ln -s conf$$.file conf$$ 2>/dev/null; then
23073  # We could just check for DJGPP; but this test a) works b) is more generic
23074  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23075  if test -f conf$$.exe; then
23076    # Don't use ln at all; we don't have any links
23077    as_ln_s='cp -p'
23078  else
23079    as_ln_s='ln -s'
23080  fi
23081elif ln conf$$.file conf$$ 2>/dev/null; then
23082  as_ln_s=ln
23083else
23084  as_ln_s='cp -p'
23085fi
23086rm -f conf$$ conf$$.exe conf$$.file
23087
23088if mkdir -p . 2>/dev/null; then
23089  as_mkdir_p=:
23090else
23091  as_mkdir_p=false
23092fi
23093
23094as_executable_p="test -f"
23095
23096# Sed expression to map a string onto a valid CPP name.
23097as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23098
23099# Sed expression to map a string onto a valid variable name.
23100as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23101
23102
23103# IFS
23104# We need space, tab and new line, in precisely that order.
23105as_nl='
23106'
23107IFS=" 	$as_nl"
23108
23109# CDPATH.
23110$as_unset CDPATH
23111
23112exec 6>&1
23113
23114# Open the log real soon, to keep \$[0] and so on meaningful, and to
23115# report actual input values of CONFIG_FILES etc. instead of their
23116# values after options handling.  Logging --version etc. is OK.
23117exec 5>>config.log
23118{
23119  echo
23120  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23121## Running $as_me. ##
23122_ASBOX
23123} >&5
23124cat >&5 <<_CSEOF
23125
23126This file was extended by [LLVM] $as_me [1.0], which was
23127generated by GNU Autoconf 2.57.  Invocation command line was
23128
23129  CONFIG_FILES    = $CONFIG_FILES
23130  CONFIG_HEADERS  = $CONFIG_HEADERS
23131  CONFIG_LINKS    = $CONFIG_LINKS
23132  CONFIG_COMMANDS = $CONFIG_COMMANDS
23133  $ $0 $@
23134
23135_CSEOF
23136echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23137echo >&5
23138_ACEOF
23139
23140# Files that config.status was made for.
23141if test -n "$ac_config_files"; then
23142  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23143fi
23144
23145if test -n "$ac_config_headers"; then
23146  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23147fi
23148
23149if test -n "$ac_config_links"; then
23150  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23151fi
23152
23153if test -n "$ac_config_commands"; then
23154  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23155fi
23156
23157cat >>$CONFIG_STATUS <<\_ACEOF
23158
23159ac_cs_usage="\
23160\`$as_me' instantiates files from templates according to the
23161current configuration.
23162
23163Usage: $0 [OPTIONS] [FILE]...
23164
23165  -h, --help       print this help, then exit
23166  -V, --version    print version number, then exit
23167  -q, --quiet      do not print progress messages
23168  -d, --debug      don't remove temporary files
23169      --recheck    update $as_me by reconfiguring in the same conditions
23170  --file=FILE[:TEMPLATE]
23171                   instantiate the configuration file FILE
23172  --header=FILE[:TEMPLATE]
23173                   instantiate the configuration header FILE
23174
23175Configuration files:
23176$config_files
23177
23178Configuration headers:
23179$config_headers
23180
23181Configuration commands:
23182$config_commands
23183
23184Report bugs to <bug-autoconf@gnu.org>."
23185_ACEOF
23186
23187cat >>$CONFIG_STATUS <<_ACEOF
23188ac_cs_version="\\
23189[LLVM] config.status [1.0]
23190configured by $0, generated by GNU Autoconf 2.57,
23191  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23192
23193Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23194Free Software Foundation, Inc.
23195This config.status script is free software; the Free Software Foundation
23196gives unlimited permission to copy, distribute and modify it."
23197srcdir=$srcdir
23198INSTALL="$INSTALL"
23199_ACEOF
23200
23201cat >>$CONFIG_STATUS <<\_ACEOF
23202# If no file are specified by the user, then we need to provide default
23203# value.  By we need to know if files were specified by the user.
23204ac_need_defaults=:
23205while test $# != 0
23206do
23207  case $1 in
23208  --*=*)
23209    ac_option=`expr "x$1" : 'x\([^=]*\)='`
23210    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23211    ac_shift=:
23212    ;;
23213  -*)
23214    ac_option=$1
23215    ac_optarg=$2
23216    ac_shift=shift
23217    ;;
23218  *) # This is not an option, so the user has probably given explicit
23219     # arguments.
23220     ac_option=$1
23221     ac_need_defaults=false;;
23222  esac
23223
23224  case $ac_option in
23225  # Handling of the options.
23226_ACEOF
23227cat >>$CONFIG_STATUS <<\_ACEOF
23228  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23229    ac_cs_recheck=: ;;
23230  --version | --vers* | -V )
23231    echo "$ac_cs_version"; exit 0 ;;
23232  --he | --h)
23233    # Conflict between --help and --header
23234    { { echo "$as_me:$LINENO: error: ambiguous option: $1
23235Try \`$0 --help' for more information." >&5
23236echo "$as_me: error: ambiguous option: $1
23237Try \`$0 --help' for more information." >&2;}
23238   { (exit 1); exit 1; }; };;
23239  --help | --hel | -h )
23240    echo "$ac_cs_usage"; exit 0 ;;
23241  --debug | --d* | -d )
23242    debug=: ;;
23243  --file | --fil | --fi | --f )
23244    $ac_shift
23245    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23246    ac_need_defaults=false;;
23247  --header | --heade | --head | --hea )
23248    $ac_shift
23249    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23250    ac_need_defaults=false;;
23251  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23252  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23253    ac_cs_silent=: ;;
23254
23255  # This is an error.
23256  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23257Try \`$0 --help' for more information." >&5
23258echo "$as_me: error: unrecognized option: $1
23259Try \`$0 --help' for more information." >&2;}
23260   { (exit 1); exit 1; }; } ;;
23261
23262  *) ac_config_targets="$ac_config_targets $1" ;;
23263
23264  esac
23265  shift
23266done
23267
23268ac_configure_extra_args=
23269
23270if $ac_cs_silent; then
23271  exec 6>/dev/null
23272  ac_configure_extra_args="$ac_configure_extra_args --silent"
23273fi
23274
23275_ACEOF
23276cat >>$CONFIG_STATUS <<_ACEOF
23277if \$ac_cs_recheck; then
23278  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23279  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23280fi
23281
23282_ACEOF
23283
23284cat >>$CONFIG_STATUS <<_ACEOF
23285#
23286# INIT-COMMANDS section.
23287#
23288
23289${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23290${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23291${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23292${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23293${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23294${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23295${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23296${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23297${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23298${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23299${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23300${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23301${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23302${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23303${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23304${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23305${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23306${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23307${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23308${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23309${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23310${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23311${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23312${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23313${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23314${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23315${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23316${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23317${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23318${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23319${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23320${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23321${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23322${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23323${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23324${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23325${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23326${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23327${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23328${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libexception/Makefile`
23329${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23330${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23331${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23332${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23333${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
23334${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23335${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23336${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
23337${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23338${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23339${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23340${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23341${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23342${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23343${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23344${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23345${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23346${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23347${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23348${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23349${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23350${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23351${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23352${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23353${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23354${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23355${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23356${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23357${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23358${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23359${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23360${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23361${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23362${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23363${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23364${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23365${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23366${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23367${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23368${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23369${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23370${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23371${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23372${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23373${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23374${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23375${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23376${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23377${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23378${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23379${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
23380${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23381${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
23382${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23383${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23384${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23385${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23386${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23387${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23388${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23389${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23390${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23391${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23392${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23393${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23394${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23395${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23396${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23397${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23398${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23399${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23400${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23401${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23402${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23403${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23404${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23405${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
23406${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
23407${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23408${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23409${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23410${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23411${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23412${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
23413${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
23414${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
23415${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23416${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23417${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23418${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23419${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
23420${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23421${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23422${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23423${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23424${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23425${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23426${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23427${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23428${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
23429${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23430${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23431${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23432${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23433${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23434${srcdir}/autoconf/mkinstalldirs `dirname tools/as/Makefile`
23435${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23436${srcdir}/autoconf/mkinstalldirs `dirname tools/dis/Makefile`
23437${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23438${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23439${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23440${srcdir}/autoconf/mkinstalldirs `dirname tools/link/Makefile`
23441${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23442${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23443${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23444${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23445${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23446${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
23447${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23448${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23449${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23450${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23451${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23452${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23453${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23454${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23455${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23456${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23457${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23458${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23459${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23460${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23461${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23462${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23463${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23464${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23465
23466_ACEOF
23467
23468
23469
23470cat >>$CONFIG_STATUS <<\_ACEOF
23471for ac_config_target in $ac_config_targets
23472do
23473  case "$ac_config_target" in
23474  # Handling of arguments.
23475  "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23476  "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23477  "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23478  "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23479  "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23480  "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23481  "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23482  "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23483  "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23484  "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23485  "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23486  "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23487  "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23488  "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23489  "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23490  "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23491  "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23492  "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23493  "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23494  "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23495  "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23496  "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23497  "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23498  "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23499  "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23500  "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23501  "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23502  "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23503  "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23504  "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23505  "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23506  "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23507  "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23508  "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23509  "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23510  "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23511  "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23512  "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23513  "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23514  "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23515  "runtime/GCCLibraries/libexception/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libexception/Makefile" ;;
23516  "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23517  "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23518  "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23519  "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23520  "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
23521  "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23522  "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23523  "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
23524  "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23525  "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23526  "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23527  "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23528  "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23529  "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23530  "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23531  "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23532  "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23533  "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23534  "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23535  "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23536  "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23537  "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23538  "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23539  "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23540  "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23541  "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23542  "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23543  "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23544  "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23545  "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23546  "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23547  "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23548  "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23549  "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23550  "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23551  "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23552  "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23553  "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23554  "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23555  "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23556  "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23557  "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23558  "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23559  "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23560  "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23561  "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23562  "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23563  "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23564  "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23565  "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23566  "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
23567  "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23568  "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
23569  "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23570  "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23571  "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23572  "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23573  "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23574  "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23575  "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23576  "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23577  "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23578  "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23579  "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23580  "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23581  "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23582  "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23583  "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23584  "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23585  "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23586  "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23587  "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23588  "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23589  "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23590  "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23591  "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23592  "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
23593  "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
23594  "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23595  "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23596  "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23597  "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23598  "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23599  "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
23600  "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
23601  "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
23602  "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23603  "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23604  "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23605  "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23606  "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
23607  "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23608  "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23609  "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23610  "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23611  "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23612  "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23613  "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23614  "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23615  "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
23616  "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23617  "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23618  "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23619  "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23620  "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23621  "tools/as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/as/Makefile" ;;
23622  "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23623  "tools/dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/dis/Makefile" ;;
23624  "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23625  "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23626  "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23627  "tools/link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/link/Makefile" ;;
23628  "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23629  "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23630  "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23631  "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23632  "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23633  "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
23634  "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23635  "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23636  "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23637  "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23638  "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23639  "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23640  "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23641  "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23642  "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23643  "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23644  "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23645  "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23646  "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23647  "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23648  "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23649  "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23650  "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23651  "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23652  "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23653  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23654echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23655   { (exit 1); exit 1; }; };;
23656  esac
23657done
23658
23659# If the user did not use the arguments to specify the items to instantiate,
23660# then the envvar interface is used.  Set only those that are not.
23661# We use the long form for the default assignment because of an extremely
23662# bizarre bug on SunOS 4.1.3.
23663if $ac_need_defaults; then
23664  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23665  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23666  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23667fi
23668
23669# Have a temporary directory for convenience.  Make it in the build tree
23670# simply because there is no reason to put it here, and in addition,
23671# creating and moving files from /tmp can sometimes cause problems.
23672# Create a temporary directory, and hook for its removal unless debugging.
23673$debug ||
23674{
23675  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23676  trap '{ (exit 1); exit 1; }' 1 2 13 15
23677}
23678
23679# Create a (secure) tmp directory for tmp files.
23680
23681{
23682  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23683  test -n "$tmp" && test -d "$tmp"
23684}  ||
23685{
23686  tmp=./confstat$$-$RANDOM
23687  (umask 077 && mkdir $tmp)
23688} ||
23689{
23690   echo "$me: cannot create a temporary directory in ." >&2
23691   { (exit 1); exit 1; }
23692}
23693
23694_ACEOF
23695
23696cat >>$CONFIG_STATUS <<_ACEOF
23697
23698#
23699# CONFIG_FILES section.
23700#
23701
23702# No need to generate the scripts if there are no CONFIG_FILES.
23703# This happens for instance when ./config.status config.h
23704if test -n "\$CONFIG_FILES"; then
23705  # Protect against being on the right side of a sed subst in config.status.
23706  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23707   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23708s,@SHELL@,$SHELL,;t t
23709s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23710s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23711s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23712s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23713s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23714s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23715s,@exec_prefix@,$exec_prefix,;t t
23716s,@prefix@,$prefix,;t t
23717s,@program_transform_name@,$program_transform_name,;t t
23718s,@bindir@,$bindir,;t t
23719s,@sbindir@,$sbindir,;t t
23720s,@libexecdir@,$libexecdir,;t t
23721s,@datadir@,$datadir,;t t
23722s,@sysconfdir@,$sysconfdir,;t t
23723s,@sharedstatedir@,$sharedstatedir,;t t
23724s,@localstatedir@,$localstatedir,;t t
23725s,@libdir@,$libdir,;t t
23726s,@includedir@,$includedir,;t t
23727s,@oldincludedir@,$oldincludedir,;t t
23728s,@infodir@,$infodir,;t t
23729s,@mandir@,$mandir,;t t
23730s,@build_alias@,$build_alias,;t t
23731s,@host_alias@,$host_alias,;t t
23732s,@target_alias@,$target_alias,;t t
23733s,@DEFS@,$DEFS,;t t
23734s,@ECHO_C@,$ECHO_C,;t t
23735s,@ECHO_N@,$ECHO_N,;t t
23736s,@ECHO_T@,$ECHO_T,;t t
23737s,@LIBS@,$LIBS,;t t
23738s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23739s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23740s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23741s,@build@,$build,;t t
23742s,@build_cpu@,$build_cpu,;t t
23743s,@build_vendor@,$build_vendor,;t t
23744s,@build_os@,$build_os,;t t
23745s,@host@,$host,;t t
23746s,@host_cpu@,$host_cpu,;t t
23747s,@host_vendor@,$host_vendor,;t t
23748s,@host_os@,$host_os,;t t
23749s,@target@,$target,;t t
23750s,@target_cpu@,$target_cpu,;t t
23751s,@target_vendor@,$target_vendor,;t t
23752s,@target_os@,$target_os,;t t
23753s,@OS@,$OS,;t t
23754s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23755s,@ARCH@,$ARCH,;t t
23756s,@CXX@,$CXX,;t t
23757s,@CXXFLAGS@,$CXXFLAGS,;t t
23758s,@LDFLAGS@,$LDFLAGS,;t t
23759s,@CPPFLAGS@,$CPPFLAGS,;t t
23760s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23761s,@EXEEXT@,$EXEEXT,;t t
23762s,@OBJEXT@,$OBJEXT,;t t
23763s,@CC@,$CC,;t t
23764s,@CFLAGS@,$CFLAGS,;t t
23765s,@ac_ct_CC@,$ac_ct_CC,;t t
23766s,@CPP@,$CPP,;t t
23767s,@ifGNUmake@,$ifGNUmake,;t t
23768s,@LEX@,$LEX,;t t
23769s,@LEXLIB@,$LEXLIB,;t t
23770s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23771s,@YACC@,$YACC,;t t
23772s,@EGREP@,$EGREP,;t t
23773s,@LN_S@,$LN_S,;t t
23774s,@ECHO@,$ECHO,;t t
23775s,@AR@,$AR,;t t
23776s,@ac_ct_AR@,$ac_ct_AR,;t t
23777s,@RANLIB@,$RANLIB,;t t
23778s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23779s,@STRIP@,$STRIP,;t t
23780s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23781s,@CXXCPP@,$CXXCPP,;t t
23782s,@F77@,$F77,;t t
23783s,@FFLAGS@,$FFLAGS,;t t
23784s,@ac_ct_F77@,$ac_ct_F77,;t t
23785s,@LIBTOOL@,$LIBTOOL,;t t
23786s,@RPWD@,$RPWD,;t t
23787s,@SED@,$SED,;t t
23788s,@RM@,$RM,;t t
23789s,@MKDIR@,$MKDIR,;t t
23790s,@DATE@,$DATE,;t t
23791s,@MV@,$MV,;t t
23792s,@DOT@,$DOT,;t t
23793s,@ETAGS@,$ETAGS,;t t
23794s,@PURIFY@,$PURIFY,;t t
23795s,@PYTHON@,$PYTHON,;t t
23796s,@QMTEST@,$QMTEST,;t t
23797s,@ALLOCA@,$ALLOCA,;t t
23798s,@LIBOBJS@,$LIBOBJS,;t t
23799s,@MMAP_FILE@,$MMAP_FILE,;t t
23800s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23801s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23802s,@USE_SPEC@,$USE_SPEC,;t t
23803s,@UPB@,$UPB,;t t
23804s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23805s,@JIT@,$JIT,;t t
23806s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23807s,@BCR@,$BCR,;t t
23808s,@PAPIDIR@,$PAPIDIR,;t t
23809s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23810CEOF
23811
23812_ACEOF
23813
23814  cat >>$CONFIG_STATUS <<\_ACEOF
23815  # Split the substitutions into bite-sized pieces for seds with
23816  # small command number limits, like on Digital OSF/1 and HP-UX.
23817  ac_max_sed_lines=48
23818  ac_sed_frag=1 # Number of current file.
23819  ac_beg=1 # First line for current file.
23820  ac_end=$ac_max_sed_lines # Line after last line for current file.
23821  ac_more_lines=:
23822  ac_sed_cmds=
23823  while $ac_more_lines; do
23824    if test $ac_beg -gt 1; then
23825      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23826    else
23827      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23828    fi
23829    if test ! -s $tmp/subs.frag; then
23830      ac_more_lines=false
23831    else
23832      # The purpose of the label and of the branching condition is to
23833      # speed up the sed processing (if there are no `@' at all, there
23834      # is no need to browse any of the substitutions).
23835      # These are the two extra sed commands mentioned above.
23836      (echo ':t
23837  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23838      if test -z "$ac_sed_cmds"; then
23839  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23840      else
23841  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23842      fi
23843      ac_sed_frag=`expr $ac_sed_frag + 1`
23844      ac_beg=$ac_end
23845      ac_end=`expr $ac_end + $ac_max_sed_lines`
23846    fi
23847  done
23848  if test -z "$ac_sed_cmds"; then
23849    ac_sed_cmds=cat
23850  fi
23851fi # test -n "$CONFIG_FILES"
23852
23853_ACEOF
23854cat >>$CONFIG_STATUS <<\_ACEOF
23855for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23856  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23857  case $ac_file in
23858  - | *:- | *:-:* ) # input from stdin
23859        cat >$tmp/stdin
23860        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23861        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23862  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23863        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23864  * )   ac_file_in=$ac_file.in ;;
23865  esac
23866
23867  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23868  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23869$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23870         X"$ac_file" : 'X\(//\)[^/]' \| \
23871         X"$ac_file" : 'X\(//\)$' \| \
23872         X"$ac_file" : 'X\(/\)' \| \
23873         .     : '\(.\)' 2>/dev/null ||
23874echo X"$ac_file" |
23875    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23876  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23877  	  /^X\(\/\/\)$/{ s//\1/; q; }
23878  	  /^X\(\/\).*/{ s//\1/; q; }
23879  	  s/.*/./; q'`
23880  { if $as_mkdir_p; then
23881    mkdir -p "$ac_dir"
23882  else
23883    as_dir="$ac_dir"
23884    as_dirs=
23885    while test ! -d "$as_dir"; do
23886      as_dirs="$as_dir $as_dirs"
23887      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23888$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23889         X"$as_dir" : 'X\(//\)[^/]' \| \
23890         X"$as_dir" : 'X\(//\)$' \| \
23891         X"$as_dir" : 'X\(/\)' \| \
23892         .     : '\(.\)' 2>/dev/null ||
23893echo X"$as_dir" |
23894    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23895  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23896  	  /^X\(\/\/\)$/{ s//\1/; q; }
23897  	  /^X\(\/\).*/{ s//\1/; q; }
23898  	  s/.*/./; q'`
23899    done
23900    test ! -n "$as_dirs" || mkdir $as_dirs
23901  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23902echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23903   { (exit 1); exit 1; }; }; }
23904
23905  ac_builddir=.
23906
23907if test "$ac_dir" != .; then
23908  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23909  # A "../" for each directory in $ac_dir_suffix.
23910  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23911else
23912  ac_dir_suffix= ac_top_builddir=
23913fi
23914
23915case $srcdir in
23916  .)  # No --srcdir option.  We are building in place.
23917    ac_srcdir=.
23918    if test -z "$ac_top_builddir"; then
23919       ac_top_srcdir=.
23920    else
23921       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23922    fi ;;
23923  [\\/]* | ?:[\\/]* )  # Absolute path.
23924    ac_srcdir=$srcdir$ac_dir_suffix;
23925    ac_top_srcdir=$srcdir ;;
23926  *) # Relative path.
23927    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23928    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23929esac
23930# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23931# absolute.
23932ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23933ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23934ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23935ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23936
23937
23938  case $INSTALL in
23939  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23940  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23941  esac
23942
23943  if test x"$ac_file" != x-; then
23944    { echo "$as_me:$LINENO: creating $ac_file" >&5
23945echo "$as_me: creating $ac_file" >&6;}
23946    rm -f "$ac_file"
23947  fi
23948  # Let's still pretend it is `configure' which instantiates (i.e., don't
23949  # use $as_me), people would be surprised to read:
23950  #    /* config.h.  Generated by config.status.  */
23951  if test x"$ac_file" = x-; then
23952    configure_input=
23953  else
23954    configure_input="$ac_file.  "
23955  fi
23956  configure_input=$configure_input"Generated from `echo $ac_file_in |
23957                                     sed 's,.*/,,'` by configure."
23958
23959  # First look for the input files in the build tree, otherwise in the
23960  # src tree.
23961  ac_file_inputs=`IFS=:
23962    for f in $ac_file_in; do
23963      case $f in
23964      -) echo $tmp/stdin ;;
23965      [\\/$]*)
23966         # Absolute (can't be DOS-style, as IFS=:)
23967         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23968echo "$as_me: error: cannot find input file: $f" >&2;}
23969   { (exit 1); exit 1; }; }
23970         echo $f;;
23971      *) # Relative
23972         if test -f "$f"; then
23973           # Build tree
23974           echo $f
23975         elif test -f "$srcdir/$f"; then
23976           # Source tree
23977           echo $srcdir/$f
23978         else
23979           # /dev/null tree
23980           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23981echo "$as_me: error: cannot find input file: $f" >&2;}
23982   { (exit 1); exit 1; }; }
23983         fi;;
23984      esac
23985    done` || { (exit 1); exit 1; }
23986_ACEOF
23987cat >>$CONFIG_STATUS <<_ACEOF
23988  sed "$ac_vpsub
23989$extrasub
23990_ACEOF
23991cat >>$CONFIG_STATUS <<\_ACEOF
23992:t
23993/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23994s,@configure_input@,$configure_input,;t t
23995s,@srcdir@,$ac_srcdir,;t t
23996s,@abs_srcdir@,$ac_abs_srcdir,;t t
23997s,@top_srcdir@,$ac_top_srcdir,;t t
23998s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23999s,@builddir@,$ac_builddir,;t t
24000s,@abs_builddir@,$ac_abs_builddir,;t t
24001s,@top_builddir@,$ac_top_builddir,;t t
24002s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24003s,@INSTALL@,$ac_INSTALL,;t t
24004" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24005  rm -f $tmp/stdin
24006  if test x"$ac_file" != x-; then
24007    mv $tmp/out $ac_file
24008  else
24009    cat $tmp/out
24010    rm -f $tmp/out
24011  fi
24012
24013done
24014_ACEOF
24015cat >>$CONFIG_STATUS <<\_ACEOF
24016
24017#
24018# CONFIG_HEADER section.
24019#
24020
24021# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24022# NAME is the cpp macro being defined and VALUE is the value it is being given.
24023#
24024# ac_d sets the value in "#define NAME VALUE" lines.
24025ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
24026ac_dB='[ 	].*$,\1#\2'
24027ac_dC=' '
24028ac_dD=',;t'
24029# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24030ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
24031ac_uB='$,\1#\2define\3'
24032ac_uC=' '
24033ac_uD=',;t'
24034
24035for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24036  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24037  case $ac_file in
24038  - | *:- | *:-:* ) # input from stdin
24039        cat >$tmp/stdin
24040        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24041        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24042  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24043        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24044  * )   ac_file_in=$ac_file.in ;;
24045  esac
24046
24047  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24048echo "$as_me: creating $ac_file" >&6;}
24049
24050  # First look for the input files in the build tree, otherwise in the
24051  # src tree.
24052  ac_file_inputs=`IFS=:
24053    for f in $ac_file_in; do
24054      case $f in
24055      -) echo $tmp/stdin ;;
24056      [\\/$]*)
24057         # Absolute (can't be DOS-style, as IFS=:)
24058         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24059echo "$as_me: error: cannot find input file: $f" >&2;}
24060   { (exit 1); exit 1; }; }
24061         echo $f;;
24062      *) # Relative
24063         if test -f "$f"; then
24064           # Build tree
24065           echo $f
24066         elif test -f "$srcdir/$f"; then
24067           # Source tree
24068           echo $srcdir/$f
24069         else
24070           # /dev/null tree
24071           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24072echo "$as_me: error: cannot find input file: $f" >&2;}
24073   { (exit 1); exit 1; }; }
24074         fi;;
24075      esac
24076    done` || { (exit 1); exit 1; }
24077  # Remove the trailing spaces.
24078  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
24079
24080_ACEOF
24081
24082# Transform confdefs.h into two sed scripts, `conftest.defines' and
24083# `conftest.undefs', that substitutes the proper values into
24084# config.h.in to produce config.h.  The first handles `#define'
24085# templates, and the second `#undef' templates.
24086# And first: Protect against being on the right side of a sed subst in
24087# config.status.  Protect against being in an unquoted here document
24088# in config.status.
24089rm -f conftest.defines conftest.undefs
24090# Using a here document instead of a string reduces the quoting nightmare.
24091# Putting comments in sed scripts is not portable.
24092#
24093# `end' is used to avoid that the second main sed command (meant for
24094# 0-ary CPP macros) applies to n-ary macro definitions.
24095# See the Autoconf documentation for `clear'.
24096cat >confdef2sed.sed <<\_ACEOF
24097s/[\\&,]/\\&/g
24098s,[\\$`],\\&,g
24099t clear
24100: clear
24101s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24102t end
24103s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24104: end
24105_ACEOF
24106# If some macros were called several times there might be several times
24107# the same #defines, which is useless.  Nevertheless, we may not want to
24108# sort them, since we want the *last* AC-DEFINE to be honored.
24109uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24110sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24111rm -f confdef2sed.sed
24112
24113# This sed command replaces #undef with comments.  This is necessary, for
24114# example, in the case of _POSIX_SOURCE, which is predefined and required
24115# on some systems where configure will not decide to define it.
24116cat >>conftest.undefs <<\_ACEOF
24117s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24118_ACEOF
24119
24120# Break up conftest.defines because some shells have a limit on the size
24121# of here documents, and old seds have small limits too (100 cmds).
24122echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24123echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24124echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24125echo '  :' >>$CONFIG_STATUS
24126rm -f conftest.tail
24127while grep . conftest.defines >/dev/null
24128do
24129  # Write a limited-size here document to $tmp/defines.sed.
24130  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24131  # Speed up: don't consider the non `#define' lines.
24132  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
24133  # Work around the forget-to-reset-the-flag bug.
24134  echo 't clr' >>$CONFIG_STATUS
24135  echo ': clr' >>$CONFIG_STATUS
24136  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24137  echo 'CEOF
24138  sed -f $tmp/defines.sed $tmp/in >$tmp/out
24139  rm -f $tmp/in
24140  mv $tmp/out $tmp/in
24141' >>$CONFIG_STATUS
24142  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24143  rm -f conftest.defines
24144  mv conftest.tail conftest.defines
24145done
24146rm -f conftest.defines
24147echo '  fi # grep' >>$CONFIG_STATUS
24148echo >>$CONFIG_STATUS
24149
24150# Break up conftest.undefs because some shells have a limit on the size
24151# of here documents, and old seds have small limits too (100 cmds).
24152echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24153rm -f conftest.tail
24154while grep . conftest.undefs >/dev/null
24155do
24156  # Write a limited-size here document to $tmp/undefs.sed.
24157  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24158  # Speed up: don't consider the non `#undef'
24159  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
24160  # Work around the forget-to-reset-the-flag bug.
24161  echo 't clr' >>$CONFIG_STATUS
24162  echo ': clr' >>$CONFIG_STATUS
24163  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24164  echo 'CEOF
24165  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24166  rm -f $tmp/in
24167  mv $tmp/out $tmp/in
24168' >>$CONFIG_STATUS
24169  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24170  rm -f conftest.undefs
24171  mv conftest.tail conftest.undefs
24172done
24173rm -f conftest.undefs
24174
24175cat >>$CONFIG_STATUS <<\_ACEOF
24176  # Let's still pretend it is `configure' which instantiates (i.e., don't
24177  # use $as_me), people would be surprised to read:
24178  #    /* config.h.  Generated by config.status.  */
24179  if test x"$ac_file" = x-; then
24180    echo "/* Generated by configure.  */" >$tmp/config.h
24181  else
24182    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24183  fi
24184  cat $tmp/in >>$tmp/config.h
24185  rm -f $tmp/in
24186  if test x"$ac_file" != x-; then
24187    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24188      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24189echo "$as_me: $ac_file is unchanged" >&6;}
24190    else
24191      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24192$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24193         X"$ac_file" : 'X\(//\)[^/]' \| \
24194         X"$ac_file" : 'X\(//\)$' \| \
24195         X"$ac_file" : 'X\(/\)' \| \
24196         .     : '\(.\)' 2>/dev/null ||
24197echo X"$ac_file" |
24198    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24199  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24200  	  /^X\(\/\/\)$/{ s//\1/; q; }
24201  	  /^X\(\/\).*/{ s//\1/; q; }
24202  	  s/.*/./; q'`
24203      { if $as_mkdir_p; then
24204    mkdir -p "$ac_dir"
24205  else
24206    as_dir="$ac_dir"
24207    as_dirs=
24208    while test ! -d "$as_dir"; do
24209      as_dirs="$as_dir $as_dirs"
24210      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24211$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24212         X"$as_dir" : 'X\(//\)[^/]' \| \
24213         X"$as_dir" : 'X\(//\)$' \| \
24214         X"$as_dir" : 'X\(/\)' \| \
24215         .     : '\(.\)' 2>/dev/null ||
24216echo X"$as_dir" |
24217    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24218  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24219  	  /^X\(\/\/\)$/{ s//\1/; q; }
24220  	  /^X\(\/\).*/{ s//\1/; q; }
24221  	  s/.*/./; q'`
24222    done
24223    test ! -n "$as_dirs" || mkdir $as_dirs
24224  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24225echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24226   { (exit 1); exit 1; }; }; }
24227
24228      rm -f $ac_file
24229      mv $tmp/config.h $ac_file
24230    fi
24231  else
24232    cat $tmp/config.h
24233    rm -f $tmp/config.h
24234  fi
24235done
24236_ACEOF
24237cat >>$CONFIG_STATUS <<\_ACEOF
24238
24239#
24240# CONFIG_COMMANDS section.
24241#
24242for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24243  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24244  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24245  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24246$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24247         X"$ac_dest" : 'X\(//\)[^/]' \| \
24248         X"$ac_dest" : 'X\(//\)$' \| \
24249         X"$ac_dest" : 'X\(/\)' \| \
24250         .     : '\(.\)' 2>/dev/null ||
24251echo X"$ac_dest" |
24252    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24253  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24254  	  /^X\(\/\/\)$/{ s//\1/; q; }
24255  	  /^X\(\/\).*/{ s//\1/; q; }
24256  	  s/.*/./; q'`
24257  ac_builddir=.
24258
24259if test "$ac_dir" != .; then
24260  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24261  # A "../" for each directory in $ac_dir_suffix.
24262  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24263else
24264  ac_dir_suffix= ac_top_builddir=
24265fi
24266
24267case $srcdir in
24268  .)  # No --srcdir option.  We are building in place.
24269    ac_srcdir=.
24270    if test -z "$ac_top_builddir"; then
24271       ac_top_srcdir=.
24272    else
24273       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24274    fi ;;
24275  [\\/]* | ?:[\\/]* )  # Absolute path.
24276    ac_srcdir=$srcdir$ac_dir_suffix;
24277    ac_top_srcdir=$srcdir ;;
24278  *) # Relative path.
24279    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24280    ac_top_srcdir=$ac_top_builddir$srcdir ;;
24281esac
24282# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24283# absolute.
24284ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24285ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24286ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24287ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24288
24289
24290  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24291echo "$as_me: executing $ac_dest commands" >&6;}
24292  case $ac_dest in
24293    Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24294    Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24295    Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24296    lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24297    lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24298    lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24299    lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24300    lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24301    lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24302    lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24303    lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24304    lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24305    lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24306    lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24307    lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24308    lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24309    lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24310    lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24311    lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24312    lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24313    lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24314    lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24315    lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24316    lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24317    lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24318    lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24319    lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24320    lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24321    lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24322    lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24323    lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24324    lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24325    lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24326    lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24327    runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24328    runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24329    runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24330    runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24331    runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24332    runtime/GCCLibraries/libexception/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libexception/Makefile runtime/GCCLibraries/libexception/Makefile ;;
24333    runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24334    runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24335    runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24336    runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24337    runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
24338    runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24339    runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24340    runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
24341    runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24342    runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24343    test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24344    test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24345    test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24346    test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24347    test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24348    test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24349    test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24350    test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24351    test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24352    test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24353    test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24354    test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24355    test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24356    test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24357    test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24358    test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24359    test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24360    test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24361    test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24362    test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24363    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 ;;
24364    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 ;;
24365    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 ;;
24366    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 ;;
24367    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 ;;
24368    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 ;;
24369    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 ;;
24370    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 ;;
24371    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 ;;
24372    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 ;;
24373    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 ;;
24374    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 ;;
24375    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 ;;
24376    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 ;;
24377    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 ;;
24378    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 ;;
24379    test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24380    test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24381    test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24382    test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24383    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 ;;
24384    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 ;;
24385    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 ;;
24386    test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24387    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 ;;
24388    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 ;;
24389    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 ;;
24390    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 ;;
24391    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 ;;
24392    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 ;;
24393    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 ;;
24394    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 ;;
24395    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 ;;
24396    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 ;;
24397    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 ;;
24398    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 ;;
24399    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 ;;
24400    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 ;;
24401    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 ;;
24402    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 ;;
24403    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 ;;
24404    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 ;;
24405    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 ;;
24406    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 ;;
24407    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 ;;
24408    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 ;;
24409    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 ;;
24410    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 ;;
24411    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 ;;
24412    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 ;;
24413    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 ;;
24414    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 ;;
24415    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 ;;
24416    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 ;;
24417    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 ;;
24418    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 ;;
24419    test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24420    test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24421    test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24422    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 ;;
24423    test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
24424    test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24425    test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24426    test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24427    test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24428    test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24429    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 ;;
24430    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 ;;
24431    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 ;;
24432    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 ;;
24433    test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24434    test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24435    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 ;;
24436    tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24437    tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24438    tools/as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/as/Makefile tools/as/Makefile ;;
24439    tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24440    tools/dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/dis/Makefile tools/dis/Makefile ;;
24441    tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24442    tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24443    tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24444    tools/link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/link/Makefile tools/link/Makefile ;;
24445    tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24446    tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24447    tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24448    tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24449    tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24450    tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
24451    tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24452    utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24453    utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24454    utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24455    utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24456    www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24457    projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24458    projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24459    projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24460    projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24461    projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24462    projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24463    projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24464    projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24465    projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24466    projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24467    projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24468    projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24469  esac
24470done
24471_ACEOF
24472
24473cat >>$CONFIG_STATUS <<\_ACEOF
24474
24475{ (exit 0); exit 0; }
24476_ACEOF
24477chmod +x $CONFIG_STATUS
24478ac_clean_files=$ac_clean_files_save
24479
24480
24481# configure is writing to config.log, and then calls config.status.
24482# config.status does its own redirection, appending to config.log.
24483# Unfortunately, on DOS this fails, as config.log is still kept open
24484# by configure, so config.status won't be able to write to it; its
24485# output is simply discarded.  So we exec the FD to /dev/null,
24486# effectively closing config.log, so it can be properly (re)opened and
24487# appended to by config.status.  When coming back to configure, we
24488# need to make the FD available again.
24489if test "$no_create" != yes; then
24490  ac_cs_success=:
24491  ac_config_status_args=
24492  test "$silent" = yes &&
24493    ac_config_status_args="$ac_config_status_args --quiet"
24494  exec 5>/dev/null
24495  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24496  exec 5>>config.log
24497  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24498  # would make configure fail if this is the last instruction.
24499  $ac_cs_success || { (exit 1); exit 1; }
24500fi
24501
24502