configure revision c45be043e301b1c9b2092deb6986ba29153c6a45
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
429ac_subdirs_all="$ac_subdirs_all projects/reopt"
430ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445#  include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450#  include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461#  include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_unique_file=""Makefile.config.in""
469ac_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 subdirs 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 PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB DISABLE_LLC_DIFFS JIT SPEC_ROOT BCR PAPIDIR PURIFY LTLIBOBJS'
470ac_subst_files=''
471
472# Initialize some variables set by options.
473ac_init_help=
474ac_init_version=false
475# The variables have the same names as the options, with
476# dashes changed to underlines.
477cache_file=/dev/null
478exec_prefix=NONE
479no_create=
480no_recursion=
481prefix=NONE
482program_prefix=NONE
483program_suffix=NONE
484program_transform_name=s,x,x,
485silent=
486site=
487srcdir=
488verbose=
489x_includes=NONE
490x_libraries=NONE
491
492# Installation directory options.
493# These are left unexpanded so users can "make install exec_prefix=/foo"
494# and all the variables that are supposed to be based on exec_prefix
495# by default will actually change.
496# Use braces instead of parens because sh, perl, etc. also accept them.
497bindir='${exec_prefix}/bin'
498sbindir='${exec_prefix}/sbin'
499libexecdir='${exec_prefix}/libexec'
500datadir='${prefix}/share'
501sysconfdir='${prefix}/etc'
502sharedstatedir='${prefix}/com'
503localstatedir='${prefix}/var'
504libdir='${exec_prefix}/lib'
505includedir='${prefix}/include'
506oldincludedir='/usr/include'
507infodir='${prefix}/info'
508mandir='${prefix}/man'
509
510ac_prev=
511for ac_option
512do
513  # If the previous option needs an argument, assign it.
514  if test -n "$ac_prev"; then
515    eval "$ac_prev=\$ac_option"
516    ac_prev=
517    continue
518  fi
519
520  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522  # Accept the important Cygnus configure options, so we can diagnose typos.
523
524  case $ac_option in
525
526  -bindir | --bindir | --bindi | --bind | --bin | --bi)
527    ac_prev=bindir ;;
528  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529    bindir=$ac_optarg ;;
530
531  -build | --build | --buil | --bui | --bu)
532    ac_prev=build_alias ;;
533  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534    build_alias=$ac_optarg ;;
535
536  -cache-file | --cache-file | --cache-fil | --cache-fi \
537  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538    ac_prev=cache_file ;;
539  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541    cache_file=$ac_optarg ;;
542
543  --config-cache | -C)
544    cache_file=config.cache ;;
545
546  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547    ac_prev=datadir ;;
548  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549  | --da=*)
550    datadir=$ac_optarg ;;
551
552  -disable-* | --disable-*)
553    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554    # Reject names that are not valid shell variable names.
555    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557   { (exit 1); exit 1; }; }
558    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559    eval "enable_$ac_feature=no" ;;
560
561  -enable-* | --enable-*)
562    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563    # Reject names that are not valid shell variable names.
564    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566   { (exit 1); exit 1; }; }
567    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568    case $ac_option in
569      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570      *) ac_optarg=yes ;;
571    esac
572    eval "enable_$ac_feature='$ac_optarg'" ;;
573
574  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576  | --exec | --exe | --ex)
577    ac_prev=exec_prefix ;;
578  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580  | --exec=* | --exe=* | --ex=*)
581    exec_prefix=$ac_optarg ;;
582
583  -gas | --gas | --ga | --g)
584    # Obsolete; use --with-gas.
585    with_gas=yes ;;
586
587  -help | --help | --hel | --he | -h)
588    ac_init_help=long ;;
589  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590    ac_init_help=recursive ;;
591  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592    ac_init_help=short ;;
593
594  -host | --host | --hos | --ho)
595    ac_prev=host_alias ;;
596  -host=* | --host=* | --hos=* | --ho=*)
597    host_alias=$ac_optarg ;;
598
599  -includedir | --includedir | --includedi | --included | --include \
600  | --includ | --inclu | --incl | --inc)
601    ac_prev=includedir ;;
602  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603  | --includ=* | --inclu=* | --incl=* | --inc=*)
604    includedir=$ac_optarg ;;
605
606  -infodir | --infodir | --infodi | --infod | --info | --inf)
607    ac_prev=infodir ;;
608  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609    infodir=$ac_optarg ;;
610
611  -libdir | --libdir | --libdi | --libd)
612    ac_prev=libdir ;;
613  -libdir=* | --libdir=* | --libdi=* | --libd=*)
614    libdir=$ac_optarg ;;
615
616  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617  | --libexe | --libex | --libe)
618    ac_prev=libexecdir ;;
619  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620  | --libexe=* | --libex=* | --libe=*)
621    libexecdir=$ac_optarg ;;
622
623  -localstatedir | --localstatedir | --localstatedi | --localstated \
624  | --localstate | --localstat | --localsta | --localst \
625  | --locals | --local | --loca | --loc | --lo)
626    ac_prev=localstatedir ;;
627  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630    localstatedir=$ac_optarg ;;
631
632  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633    ac_prev=mandir ;;
634  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635    mandir=$ac_optarg ;;
636
637  -nfp | --nfp | --nf)
638    # Obsolete; use --without-fp.
639    with_fp=no ;;
640
641  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642  | --no-cr | --no-c | -n)
643    no_create=yes ;;
644
645  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647    no_recursion=yes ;;
648
649  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651  | --oldin | --oldi | --old | --ol | --o)
652    ac_prev=oldincludedir ;;
653  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656    oldincludedir=$ac_optarg ;;
657
658  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659    ac_prev=prefix ;;
660  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661    prefix=$ac_optarg ;;
662
663  -program-prefix | --program-prefix | --program-prefi | --program-pref \
664  | --program-pre | --program-pr | --program-p)
665    ac_prev=program_prefix ;;
666  -program-prefix=* | --program-prefix=* | --program-prefi=* \
667  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668    program_prefix=$ac_optarg ;;
669
670  -program-suffix | --program-suffix | --program-suffi | --program-suff \
671  | --program-suf | --program-su | --program-s)
672    ac_prev=program_suffix ;;
673  -program-suffix=* | --program-suffix=* | --program-suffi=* \
674  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675    program_suffix=$ac_optarg ;;
676
677  -program-transform-name | --program-transform-name \
678  | --program-transform-nam | --program-transform-na \
679  | --program-transform-n | --program-transform- \
680  | --program-transform | --program-transfor \
681  | --program-transfo | --program-transf \
682  | --program-trans | --program-tran \
683  | --progr-tra | --program-tr | --program-t)
684    ac_prev=program_transform_name ;;
685  -program-transform-name=* | --program-transform-name=* \
686  | --program-transform-nam=* | --program-transform-na=* \
687  | --program-transform-n=* | --program-transform-=* \
688  | --program-transform=* | --program-transfor=* \
689  | --program-transfo=* | --program-transf=* \
690  | --program-trans=* | --program-tran=* \
691  | --progr-tra=* | --program-tr=* | --program-t=*)
692    program_transform_name=$ac_optarg ;;
693
694  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695  | -silent | --silent | --silen | --sile | --sil)
696    silent=yes ;;
697
698  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699    ac_prev=sbindir ;;
700  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701  | --sbi=* | --sb=*)
702    sbindir=$ac_optarg ;;
703
704  -sharedstatedir | --sharedstatedir | --sharedstatedi \
705  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706  | --sharedst | --shareds | --shared | --share | --shar \
707  | --sha | --sh)
708    ac_prev=sharedstatedir ;;
709  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712  | --sha=* | --sh=*)
713    sharedstatedir=$ac_optarg ;;
714
715  -site | --site | --sit)
716    ac_prev=site ;;
717  -site=* | --site=* | --sit=*)
718    site=$ac_optarg ;;
719
720  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721    ac_prev=srcdir ;;
722  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723    srcdir=$ac_optarg ;;
724
725  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726  | --syscon | --sysco | --sysc | --sys | --sy)
727    ac_prev=sysconfdir ;;
728  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730    sysconfdir=$ac_optarg ;;
731
732  -target | --target | --targe | --targ | --tar | --ta | --t)
733    ac_prev=target_alias ;;
734  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735    target_alias=$ac_optarg ;;
736
737  -v | -verbose | --verbose | --verbos | --verbo | --verb)
738    verbose=yes ;;
739
740  -version | --version | --versio | --versi | --vers | -V)
741    ac_init_version=: ;;
742
743  -with-* | --with-*)
744    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745    # Reject names that are not valid shell variable names.
746    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747      { echo "$as_me: error: invalid package name: $ac_package" >&2
748   { (exit 1); exit 1; }; }
749    ac_package=`echo $ac_package| sed 's/-/_/g'`
750    case $ac_option in
751      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752      *) ac_optarg=yes ;;
753    esac
754    eval "with_$ac_package='$ac_optarg'" ;;
755
756  -without-* | --without-*)
757    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758    # Reject names that are not valid shell variable names.
759    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760      { echo "$as_me: error: invalid package name: $ac_package" >&2
761   { (exit 1); exit 1; }; }
762    ac_package=`echo $ac_package | sed 's/-/_/g'`
763    eval "with_$ac_package=no" ;;
764
765  --x)
766    # Obsolete; use --with-x.
767    with_x=yes ;;
768
769  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770  | --x-incl | --x-inc | --x-in | --x-i)
771    ac_prev=x_includes ;;
772  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774    x_includes=$ac_optarg ;;
775
776  -x-libraries | --x-libraries | --x-librarie | --x-librari \
777  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778    ac_prev=x_libraries ;;
779  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781    x_libraries=$ac_optarg ;;
782
783  -*) { echo "$as_me: error: unrecognized option: $ac_option
784Try \`$0 --help' for more information." >&2
785   { (exit 1); exit 1; }; }
786    ;;
787
788  *=*)
789    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790    # Reject names that are not valid shell variable names.
791    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793   { (exit 1); exit 1; }; }
794    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795    eval "$ac_envvar='$ac_optarg'"
796    export $ac_envvar ;;
797
798  *)
799    # FIXME: should be removed in autoconf 3.0.
800    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804    ;;
805
806  esac
807done
808
809if test -n "$ac_prev"; then
810  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811  { echo "$as_me: error: missing argument to $ac_option" >&2
812   { (exit 1); exit 1; }; }
813fi
814
815# Be sure to have absolute paths.
816for ac_var in exec_prefix prefix
817do
818  eval ac_val=$`echo $ac_var`
819  case $ac_val in
820    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822   { (exit 1); exit 1; }; };;
823  esac
824done
825
826# Be sure to have absolute paths.
827for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828              localstatedir libdir includedir oldincludedir infodir mandir
829do
830  eval ac_val=$`echo $ac_var`
831  case $ac_val in
832    [\\/$]* | ?:[\\/]* ) ;;
833    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834   { (exit 1); exit 1; }; };;
835  esac
836done
837
838# There might be people who depend on the old broken behavior: `$host'
839# used to hold the argument of --host etc.
840# FIXME: To remove some day.
841build=$build_alias
842host=$host_alias
843target=$target_alias
844
845# FIXME: To remove some day.
846if test "x$host_alias" != x; then
847  if test "x$build_alias" = x; then
848    cross_compiling=maybe
849    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850    If a cross compiler is detected then cross compile mode will be used." >&2
851  elif test "x$build_alias" != "x$host_alias"; then
852    cross_compiling=yes
853  fi
854fi
855
856ac_tool_prefix=
857test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859test "$silent" = yes && exec 6>/dev/null
860
861
862# Find the source files, if location was not specified.
863if test -z "$srcdir"; then
864  ac_srcdir_defaulted=yes
865  # Try the directory containing this script, then its parent.
866  ac_confdir=`(dirname "$0") 2>/dev/null ||
867$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868         X"$0" : 'X\(//\)[^/]' \| \
869         X"$0" : 'X\(//\)$' \| \
870         X"$0" : 'X\(/\)' \| \
871         .     : '\(.\)' 2>/dev/null ||
872echo X"$0" |
873    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875  	  /^X\(\/\/\)$/{ s//\1/; q; }
876  	  /^X\(\/\).*/{ s//\1/; q; }
877  	  s/.*/./; q'`
878  srcdir=$ac_confdir
879  if test ! -r $srcdir/$ac_unique_file; then
880    srcdir=..
881  fi
882else
883  ac_srcdir_defaulted=no
884fi
885if test ! -r $srcdir/$ac_unique_file; then
886  if test "$ac_srcdir_defaulted" = yes; then
887    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888   { (exit 1); exit 1; }; }
889  else
890    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891   { (exit 1); exit 1; }; }
892  fi
893fi
894(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896   { (exit 1); exit 1; }; }
897srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898ac_env_build_alias_set=${build_alias+set}
899ac_env_build_alias_value=$build_alias
900ac_cv_env_build_alias_set=${build_alias+set}
901ac_cv_env_build_alias_value=$build_alias
902ac_env_host_alias_set=${host_alias+set}
903ac_env_host_alias_value=$host_alias
904ac_cv_env_host_alias_set=${host_alias+set}
905ac_cv_env_host_alias_value=$host_alias
906ac_env_target_alias_set=${target_alias+set}
907ac_env_target_alias_value=$target_alias
908ac_cv_env_target_alias_set=${target_alias+set}
909ac_cv_env_target_alias_value=$target_alias
910ac_env_CXX_set=${CXX+set}
911ac_env_CXX_value=$CXX
912ac_cv_env_CXX_set=${CXX+set}
913ac_cv_env_CXX_value=$CXX
914ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915ac_env_CXXFLAGS_value=$CXXFLAGS
916ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918ac_env_LDFLAGS_set=${LDFLAGS+set}
919ac_env_LDFLAGS_value=$LDFLAGS
920ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921ac_cv_env_LDFLAGS_value=$LDFLAGS
922ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_env_CPPFLAGS_value=$CPPFLAGS
924ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926ac_env_CC_set=${CC+set}
927ac_env_CC_value=$CC
928ac_cv_env_CC_set=${CC+set}
929ac_cv_env_CC_value=$CC
930ac_env_CFLAGS_set=${CFLAGS+set}
931ac_env_CFLAGS_value=$CFLAGS
932ac_cv_env_CFLAGS_set=${CFLAGS+set}
933ac_cv_env_CFLAGS_value=$CFLAGS
934ac_env_CPP_set=${CPP+set}
935ac_env_CPP_value=$CPP
936ac_cv_env_CPP_set=${CPP+set}
937ac_cv_env_CPP_value=$CPP
938ac_env_CXXCPP_set=${CXXCPP+set}
939ac_env_CXXCPP_value=$CXXCPP
940ac_cv_env_CXXCPP_set=${CXXCPP+set}
941ac_cv_env_CXXCPP_value=$CXXCPP
942ac_env_F77_set=${F77+set}
943ac_env_F77_value=$F77
944ac_cv_env_F77_set=${F77+set}
945ac_cv_env_F77_value=$F77
946ac_env_FFLAGS_set=${FFLAGS+set}
947ac_env_FFLAGS_value=$FFLAGS
948ac_cv_env_FFLAGS_set=${FFLAGS+set}
949ac_cv_env_FFLAGS_value=$FFLAGS
950
951#
952# Report the --help message.
953#
954if test "$ac_init_help" = "long"; then
955  # Omit some internal or obsolete options to make the list less imposing.
956  # This message is too long to be a string in the A/UX 3.1 sh.
957  cat <<_ACEOF
958\`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
959
960Usage: $0 [OPTION]... [VAR=VALUE]...
961
962To assign environment variables (e.g., CC, CFLAGS...), specify them as
963VAR=VALUE.  See below for descriptions of some of the useful variables.
964
965Defaults for the options are specified in brackets.
966
967Configuration:
968  -h, --help              display this help and exit
969      --help=short        display options specific to this package
970      --help=recursive    display the short help of all the included packages
971  -V, --version           display version information and exit
972  -q, --quiet, --silent   do not print \`checking...' messages
973      --cache-file=FILE   cache test results in FILE [disabled]
974  -C, --config-cache      alias for \`--cache-file=config.cache'
975  -n, --no-create         do not create output files
976      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
977
978_ACEOF
979
980  cat <<_ACEOF
981Installation directories:
982  --prefix=PREFIX         install architecture-independent files in PREFIX
983                          [$ac_default_prefix]
984  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
985                          [PREFIX]
986
987By default, \`make install' will install all the files in
988\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
989an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990for instance \`--prefix=\$HOME'.
991
992For better control, use the options below.
993
994Fine tuning of the installation directories:
995  --bindir=DIR           user executables [EPREFIX/bin]
996  --sbindir=DIR          system admin executables [EPREFIX/sbin]
997  --libexecdir=DIR       program executables [EPREFIX/libexec]
998  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
999  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1000  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1001  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1002  --libdir=DIR           object code libraries [EPREFIX/lib]
1003  --includedir=DIR       C header files [PREFIX/include]
1004  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1005  --infodir=DIR          info documentation [PREFIX/info]
1006  --mandir=DIR           man documentation [PREFIX/man]
1007_ACEOF
1008
1009  cat <<\_ACEOF
1010
1011System types:
1012  --build=BUILD     configure for building on BUILD [guessed]
1013  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1014  --target=TARGET   configure for building compilers for TARGET [HOST]
1015_ACEOF
1016fi
1017
1018if test -n "$ac_init_help"; then
1019  case $ac_init_help in
1020     short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1021   esac
1022  cat <<\_ACEOF
1023
1024Optional Features:
1025  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1026  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1027  --enable-shared[=PKGS]
1028                          build shared libraries [default=yes]
1029  --enable-static[=PKGS]
1030                          build static libraries [default=yes]
1031  --enable-fast-install[=PKGS]
1032                          optimize for fast installation [default=yes]
1033  --disable-libtool-lock  avoid locking (might break parallel builds)
1034  --enable-purify         Compile with purify (default is NO)
1035  --enable-optimized      Compile with optimizations enabled (default is NO)
1036  --enable-spec           Compile SPEC benchmarks (default is NO)
1037  --enable-precompiled_bytecode
1038                          Use pre-compiled bytecode (default is NO)
1039  --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1040  --enable-jit            Enable Just In Time Compiling (default is YES)
1041
1042Optional Packages:
1043  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1044  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1045  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1046  --with-pic              try to use only PIC/non-PIC objects [default=use
1047                          both]
1048  --with-tags[=TAGS]
1049                          include additional configurations [automatic]
1050  --with-spec             Location of SPEC benchmarks
1051  --with-llvmgccdir       Location of LLVM GCC front-end
1052  --with-bcrepos          Location of Bytecode Repository
1053  --with-papi             Location of PAPI
1054  --with-purify           Location of purify program
1055
1056Some influential environment variables:
1057  CXX         C++ compiler command
1058  CXXFLAGS    C++ compiler flags
1059  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1060              nonstandard directory <lib dir>
1061  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062              headers in a nonstandard directory <include dir>
1063  CC          C compiler command
1064  CFLAGS      C compiler flags
1065  CPP         C preprocessor
1066  CXXCPP      C++ preprocessor
1067  F77         Fortran 77 compiler command
1068  FFLAGS      Fortran 77 compiler flags
1069
1070Use these variables to override the choices made by `configure' or to help
1071it to find libraries and programs with nonstandard names/locations.
1072
1073Report bugs to <llvmbugs@cs.uiuc.edu>.
1074_ACEOF
1075fi
1076
1077if test "$ac_init_help" = "recursive"; then
1078  # If there are subdirs, report their specific --help.
1079  ac_popdir=`pwd`
1080  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081    test -d $ac_dir || continue
1082    ac_builddir=.
1083
1084if test "$ac_dir" != .; then
1085  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086  # A "../" for each directory in $ac_dir_suffix.
1087  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088else
1089  ac_dir_suffix= ac_top_builddir=
1090fi
1091
1092case $srcdir in
1093  .)  # No --srcdir option.  We are building in place.
1094    ac_srcdir=.
1095    if test -z "$ac_top_builddir"; then
1096       ac_top_srcdir=.
1097    else
1098       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099    fi ;;
1100  [\\/]* | ?:[\\/]* )  # Absolute path.
1101    ac_srcdir=$srcdir$ac_dir_suffix;
1102    ac_top_srcdir=$srcdir ;;
1103  *) # Relative path.
1104    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106esac
1107# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1108# absolute.
1109ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1110ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1111ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1112ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113
1114    cd $ac_dir
1115    # Check for guested configure; otherwise get Cygnus style configure.
1116    if test -f $ac_srcdir/configure.gnu; then
1117      echo
1118      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1119    elif test -f $ac_srcdir/configure; then
1120      echo
1121      $SHELL $ac_srcdir/configure  --help=recursive
1122    elif test -f $ac_srcdir/configure.ac ||
1123           test -f $ac_srcdir/configure.in; then
1124      echo
1125      $ac_configure --help
1126    else
1127      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128    fi
1129    cd $ac_popdir
1130  done
1131fi
1132
1133test -n "$ac_init_help" && exit 0
1134if $ac_init_version; then
1135  cat <<\_ACEOF
1136[LLVM] configure [1.0]
1137generated by GNU Autoconf 2.57
1138
1139Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1140Free Software Foundation, Inc.
1141This configure script is free software; the Free Software Foundation
1142gives unlimited permission to copy, distribute and modify it.
1143_ACEOF
1144  exit 0
1145fi
1146exec 5>config.log
1147cat >&5 <<_ACEOF
1148This file contains any messages produced by compilers while
1149running configure, to aid debugging if configure makes a mistake.
1150
1151It was created by [LLVM] $as_me [1.0], which was
1152generated by GNU Autoconf 2.57.  Invocation command line was
1153
1154  $ $0 $@
1155
1156_ACEOF
1157{
1158cat <<_ASUNAME
1159## --------- ##
1160## Platform. ##
1161## --------- ##
1162
1163hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168
1169/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1170/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1171
1172/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1173/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1174/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1175hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1176/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1177/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1178/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1179
1180_ASUNAME
1181
1182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1183for as_dir in $PATH
1184do
1185  IFS=$as_save_IFS
1186  test -z "$as_dir" && as_dir=.
1187  echo "PATH: $as_dir"
1188done
1189
1190} >&5
1191
1192cat >&5 <<_ACEOF
1193
1194
1195## ----------- ##
1196## Core tests. ##
1197## ----------- ##
1198
1199_ACEOF
1200
1201
1202# Keep a trace of the command line.
1203# Strip out --no-create and --no-recursion so they do not pile up.
1204# Strip out --silent because we don't want to record it for future runs.
1205# Also quote any args containing shell meta-characters.
1206# Make two passes to allow for proper duplicate-argument suppression.
1207ac_configure_args=
1208ac_configure_args0=
1209ac_configure_args1=
1210ac_sep=
1211ac_must_keep_next=false
1212for ac_pass in 1 2
1213do
1214  for ac_arg
1215  do
1216    case $ac_arg in
1217    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1218    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219    | -silent | --silent | --silen | --sile | --sil)
1220      continue ;;
1221    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223    esac
1224    case $ac_pass in
1225    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226    2)
1227      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1228      if test $ac_must_keep_next = true; then
1229        ac_must_keep_next=false # Got value, back to normal.
1230      else
1231        case $ac_arg in
1232          *=* | --config-cache | -C | -disable-* | --disable-* \
1233          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1234          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1235          | -with-* | --with-* | -without-* | --without-* | --x)
1236            case "$ac_configure_args0 " in
1237              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238            esac
1239            ;;
1240          -* ) ac_must_keep_next=true ;;
1241        esac
1242      fi
1243      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1244      # Get rid of the leading space.
1245      ac_sep=" "
1246      ;;
1247    esac
1248  done
1249done
1250$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1251$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1252
1253# When interrupted or exit'd, cleanup temporary files, and complete
1254# config.log.  We remove comments because anyway the quotes in there
1255# would cause problems or look ugly.
1256# WARNING: Be sure not to use single quotes in there, as some shells,
1257# such as our DU 5.0 friend, will then `close' the trap.
1258trap 'exit_status=$?
1259  # Save into config.log some information that might help in debugging.
1260  {
1261    echo
1262
1263    cat <<\_ASBOX
1264## ---------------- ##
1265## Cache variables. ##
1266## ---------------- ##
1267_ASBOX
1268    echo
1269    # The following way of writing the cache mishandles newlines in values,
1270{
1271  (set) 2>&1 |
1272    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273    *ac_space=\ *)
1274      sed -n \
1275        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1276    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1277      ;;
1278    *)
1279      sed -n \
1280        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1281      ;;
1282    esac;
1283}
1284    echo
1285
1286    cat <<\_ASBOX
1287## ----------------- ##
1288## Output variables. ##
1289## ----------------- ##
1290_ASBOX
1291    echo
1292    for ac_var in $ac_subst_vars
1293    do
1294      eval ac_val=$`echo $ac_var`
1295      echo "$ac_var='"'"'$ac_val'"'"'"
1296    done | sort
1297    echo
1298
1299    if test -n "$ac_subst_files"; then
1300      cat <<\_ASBOX
1301## ------------- ##
1302## Output files. ##
1303## ------------- ##
1304_ASBOX
1305      echo
1306      for ac_var in $ac_subst_files
1307      do
1308	eval ac_val=$`echo $ac_var`
1309        echo "$ac_var='"'"'$ac_val'"'"'"
1310      done | sort
1311      echo
1312    fi
1313
1314    if test -s confdefs.h; then
1315      cat <<\_ASBOX
1316## ----------- ##
1317## confdefs.h. ##
1318## ----------- ##
1319_ASBOX
1320      echo
1321      sed "/^$/d" confdefs.h | sort
1322      echo
1323    fi
1324    test "$ac_signal" != 0 &&
1325      echo "$as_me: caught signal $ac_signal"
1326    echo "$as_me: exit $exit_status"
1327  } >&5
1328  rm -f core core.* *.core &&
1329  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330    exit $exit_status
1331     ' 0
1332for ac_signal in 1 2 13 15; do
1333  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1334done
1335ac_signal=0
1336
1337# confdefs.h avoids OS command line length limits that DEFS can exceed.
1338rm -rf conftest* confdefs.h
1339# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340echo >confdefs.h
1341
1342# Predefined preprocessor variables.
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_NAME "$PACKAGE_NAME"
1346_ACEOF
1347
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_VERSION "$PACKAGE_VERSION"
1356_ACEOF
1357
1358
1359cat >>confdefs.h <<_ACEOF
1360#define PACKAGE_STRING "$PACKAGE_STRING"
1361_ACEOF
1362
1363
1364cat >>confdefs.h <<_ACEOF
1365#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1366_ACEOF
1367
1368
1369# Let the site file select an alternate cache file if it wants to.
1370# Prefer explicitly selected file to automatically selected ones.
1371if test -z "$CONFIG_SITE"; then
1372  if test "x$prefix" != xNONE; then
1373    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374  else
1375    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376  fi
1377fi
1378for ac_site_file in $CONFIG_SITE; do
1379  if test -r "$ac_site_file"; then
1380    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1381echo "$as_me: loading site script $ac_site_file" >&6;}
1382    sed 's/^/| /' "$ac_site_file" >&5
1383    . "$ac_site_file"
1384  fi
1385done
1386
1387if test -r "$cache_file"; then
1388  # Some versions of bash will fail to source /dev/null (special
1389  # files actually), so we avoid doing that.
1390  if test -f "$cache_file"; then
1391    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1392echo "$as_me: loading cache $cache_file" >&6;}
1393    case $cache_file in
1394      [\\/]* | ?:[\\/]* ) . $cache_file;;
1395      *)                      . ./$cache_file;;
1396    esac
1397  fi
1398else
1399  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400echo "$as_me: creating cache $cache_file" >&6;}
1401  >$cache_file
1402fi
1403
1404# Check that the precious variables saved in the cache have kept the same
1405# value.
1406ac_cache_corrupted=false
1407for ac_var in `(set) 2>&1 |
1408               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1409  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1410  eval ac_new_set=\$ac_env_${ac_var}_set
1411  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1412  eval ac_new_val="\$ac_env_${ac_var}_value"
1413  case $ac_old_set,$ac_new_set in
1414    set,)
1415      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1416echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1417      ac_cache_corrupted=: ;;
1418    ,set)
1419      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1420echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1421      ac_cache_corrupted=: ;;
1422    ,);;
1423    *)
1424      if test "x$ac_old_val" != "x$ac_new_val"; then
1425        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1428echo "$as_me:   former value:  $ac_old_val" >&2;}
1429        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1430echo "$as_me:   current value: $ac_new_val" >&2;}
1431        ac_cache_corrupted=:
1432      fi;;
1433  esac
1434  # Pass precious variables to config.status.
1435  if test "$ac_new_set" = set; then
1436    case $ac_new_val in
1437    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1438      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1439    *) ac_arg=$ac_var=$ac_new_val ;;
1440    esac
1441    case " $ac_configure_args " in
1442      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1443      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1444    esac
1445  fi
1446done
1447if $ac_cache_corrupted; then
1448  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1449echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1450  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1451echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1452   { (exit 1); exit 1; }; }
1453fi
1454
1455ac_ext=c
1456ac_cpp='$CPP $CPPFLAGS'
1457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1486
1487
1488ac_aux_dir=
1489for ac_dir in autoconf $srcdir/autoconf; do
1490  if test -f $ac_dir/install-sh; then
1491    ac_aux_dir=$ac_dir
1492    ac_install_sh="$ac_aux_dir/install-sh -c"
1493    break
1494  elif test -f $ac_dir/install.sh; then
1495    ac_aux_dir=$ac_dir
1496    ac_install_sh="$ac_aux_dir/install.sh -c"
1497    break
1498  elif test -f $ac_dir/shtool; then
1499    ac_aux_dir=$ac_dir
1500    ac_install_sh="$ac_aux_dir/shtool install -c"
1501    break
1502  fi
1503done
1504if test -z "$ac_aux_dir"; then
1505  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1506echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1507   { (exit 1); exit 1; }; }
1508fi
1509ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512
1513
1514if test ${srcdir} != "."
1515then
1516	if test -f ${srcdir}/include/Config/config.h
1517	then
1518		{ { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1519echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1520   { (exit 1); exit 1; }; }
1521	fi
1522fi
1523
1524if test -d ${srcdir}/projects/reopt
1525then
1526
1527
1528subdirs="$subdirs projects/reopt"
1529
1530fi
1531
1532if test -d ${srcdir}/projects/poolalloc
1533then
1534
1535
1536subdirs="$subdirs projects/poolalloc"
1537
1538fi
1539
1540          ac_config_headers="$ac_config_headers include/Config/config.h"
1541
1542          ac_config_commands="$ac_config_commands Makefile"
1543
1544
1545          ac_config_commands="$ac_config_commands Makefile.common"
1546
1547
1548          ac_config_commands="$ac_config_commands Makefile.rules"
1549
1550
1551          ac_config_commands="$ac_config_commands lib/Makefile"
1552
1553
1554          ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
1555
1556
1557          ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
1558
1559
1560          ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
1561
1562
1563          ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
1564
1565
1566          ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
1567
1568
1569          ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
1570
1571
1572          ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
1573
1574
1575          ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
1576
1577
1578          ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
1579
1580
1581          ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
1582
1583
1584          ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
1585
1586
1587          ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
1588
1589
1590          ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
1591
1592
1593          ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
1594
1595
1596          ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
1597
1598
1599          ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
1600
1601
1602          ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
1603
1604
1605          ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
1606
1607
1608          ac_config_commands="$ac_config_commands lib/Support/Makefile"
1609
1610
1611          ac_config_commands="$ac_config_commands lib/Target/Makefile"
1612
1613
1614          ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1615
1616
1617          ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1618
1619
1620          ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1621
1622
1623          ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1624
1625
1626          ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1627
1628
1629          ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1630
1631
1632          ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1633
1634
1635          ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1636
1637
1638          ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1639
1640
1641          ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1642
1643
1644          ac_config_commands="$ac_config_commands runtime/Makefile"
1645
1646
1647          ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1648
1649
1650          ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1651
1652
1653          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
1654
1655
1656          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1657
1658
1659          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
1660
1661
1662          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
1663
1664
1665          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
1666
1667
1668          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
1669
1670
1671          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1672
1673
1674          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
1675
1676
1677          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1678
1679
1680          ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1681
1682
1683          ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1684
1685
1686          ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1687
1688
1689          ac_config_commands="$ac_config_commands test/Makefile"
1690
1691
1692          ac_config_commands="$ac_config_commands test/Makefile.tests"
1693
1694
1695          ac_config_commands="$ac_config_commands test/QMTestDB/QMTest/llvm.py"
1696
1697
1698          ac_config_commands="$ac_config_commands test/Programs/Makefile"
1699
1700
1701          ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1702
1703
1704          ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1705
1706
1707          ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1708
1709
1710          ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1711
1712
1713          ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1714
1715
1716          ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1717
1718
1719          ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1720
1721
1722          ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1723
1724
1725          ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1726
1727
1728          ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1729
1730
1731          ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1732
1733
1734          ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1735
1736
1737          ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1738
1739
1740          ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1741
1742
1743          ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1744
1745
1746          ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1747
1748
1749          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1750
1751
1752          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1753
1754
1755          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1756
1757
1758          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1759
1760
1761          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1762
1763
1764          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1765
1766
1767          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1768
1769
1770          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1771
1772
1773          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1774
1775
1776          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1777
1778
1779          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1780
1781
1782          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1783
1784
1785          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1786
1787
1788          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1789
1790
1791          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1792
1793
1794          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1795
1796
1797          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1798
1799
1800          ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1801
1802
1803          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1804
1805
1806          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1807
1808
1809          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
1810
1811
1812          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
1813
1814
1815          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1816
1817
1818          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1819
1820
1821          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
1822
1823
1824          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
1825
1826
1827          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
1828
1829
1830          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
1831
1832
1833          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
1834
1835
1836          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
1837
1838
1839          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
1840
1841
1842          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
1843
1844
1845          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
1846
1847
1848          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
1849
1850
1851          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
1852
1853
1854          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
1855
1856
1857          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
1858
1859
1860          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
1861
1862
1863          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
1864
1865
1866          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
1867
1868
1869          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
1870
1871
1872          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
1873
1874
1875          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
1876
1877
1878          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
1879
1880
1881          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
1882
1883
1884          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1885
1886
1887          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1888
1889
1890          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
1891
1892
1893          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
1894
1895
1896          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
1897
1898
1899          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
1900
1901
1902          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
1903
1904
1905          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
1906
1907
1908          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
1909
1910
1911          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
1912
1913
1914          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
1915
1916
1917          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
1918
1919
1920          ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
1921
1922
1923          ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
1924
1925
1926          ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
1927
1928
1929          ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
1930
1931
1932          ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
1933
1934
1935          ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
1936
1937
1938          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1939
1940
1941          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1942
1943
1944          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1945
1946
1947          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1948
1949
1950          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1951
1952
1953          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1954
1955
1956          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1957
1958
1959          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1960
1961
1962          ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
1963
1964
1965          ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
1966
1967
1968          ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1969
1970
1971          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1972
1973
1974          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
1975
1976
1977          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
1978
1979
1980          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
1981
1982
1983          ac_config_commands="$ac_config_commands tools/Makefile"
1984
1985
1986          ac_config_commands="$ac_config_commands tools/analyze/Makefile"
1987
1988
1989          ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
1990
1991
1992          ac_config_commands="$ac_config_commands tools/extract/Makefile"
1993
1994
1995          ac_config_commands="$ac_config_commands tools/gccas/Makefile"
1996
1997
1998          ac_config_commands="$ac_config_commands tools/gccld/Makefile"
1999
2000
2001          ac_config_commands="$ac_config_commands tools/llc/Makefile"
2002
2003
2004          ac_config_commands="$ac_config_commands tools/llee/Makefile"
2005
2006
2007          ac_config_commands="$ac_config_commands tools/lli/Makefile"
2008
2009
2010          ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
2011
2012
2013          ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
2014
2015
2016          ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
2017
2018
2019          ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2020
2021
2022          ac_config_commands="$ac_config_commands tools/opt/Makefile"
2023
2024
2025          ac_config_commands="$ac_config_commands utils/Makefile"
2026
2027
2028          ac_config_commands="$ac_config_commands utils/Burg/Makefile"
2029
2030
2031          ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
2032
2033
2034          ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2035
2036
2037          ac_config_commands="$ac_config_commands www/docs/Makefile"
2038
2039
2040          ac_config_commands="$ac_config_commands projects/Makefile"
2041
2042
2043          ac_config_commands="$ac_config_commands projects/sample/Makefile"
2044
2045
2046          ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
2047
2048
2049          ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
2050
2051
2052          ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
2053
2054
2055          ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
2056
2057
2058          ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
2059
2060
2061          ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
2062
2063
2064          ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2065
2066
2067          ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2068
2069
2070          ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2071
2072
2073          ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2074
2075
2076
2077
2078# Find a good install program.  We prefer a C program (faster),
2079# so one script is as good as another.  But avoid the broken or
2080# incompatible versions:
2081# SysV /etc/install, /usr/sbin/install
2082# SunOS /usr/etc/install
2083# IRIX /sbin/install
2084# AIX /bin/install
2085# AmigaOS /C/install, which installs bootblocks on floppy discs
2086# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2087# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2088# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2089# ./install, which can be erroneously created by make from ./install.sh.
2090echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2091echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2092if test -z "$INSTALL"; then
2093if test "${ac_cv_path_install+set}" = set; then
2094  echo $ECHO_N "(cached) $ECHO_C" >&6
2095else
2096  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097for as_dir in $PATH
2098do
2099  IFS=$as_save_IFS
2100  test -z "$as_dir" && as_dir=.
2101  # Account for people who put trailing slashes in PATH elements.
2102case $as_dir/ in
2103  ./ | .// | /cC/* | \
2104  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2105  /usr/ucb/* ) ;;
2106  *)
2107    # OSF1 and SCO ODT 3.0 have their own names for install.
2108    # Don't use installbsd from OSF since it installs stuff as root
2109    # by default.
2110    for ac_prog in ginstall scoinst install; do
2111      for ac_exec_ext in '' $ac_executable_extensions; do
2112        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2113          if test $ac_prog = install &&
2114            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2115            # AIX install.  It has an incompatible calling convention.
2116            :
2117          elif test $ac_prog = install &&
2118            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2119            # program-specific install script used by HP pwplus--don't use.
2120            :
2121          else
2122            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2123            break 3
2124          fi
2125        fi
2126      done
2127    done
2128    ;;
2129esac
2130done
2131
2132
2133fi
2134  if test "${ac_cv_path_install+set}" = set; then
2135    INSTALL=$ac_cv_path_install
2136  else
2137    # As a last resort, use the slow shell script.  We don't cache a
2138    # path for INSTALL within a source directory, because that will
2139    # break other packages using the cache if that directory is
2140    # removed, or if the path is relative.
2141    INSTALL=$ac_install_sh
2142  fi
2143fi
2144echo "$as_me:$LINENO: result: $INSTALL" >&5
2145echo "${ECHO_T}$INSTALL" >&6
2146
2147# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2148# It thinks the first close brace ends the variable substitution.
2149test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2150
2151test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2152
2153test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2154
2155
2156# Make sure we can run config.sub.
2157$ac_config_sub sun4 >/dev/null 2>&1 ||
2158  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2159echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2160   { (exit 1); exit 1; }; }
2161
2162echo "$as_me:$LINENO: checking build system type" >&5
2163echo $ECHO_N "checking build system type... $ECHO_C" >&6
2164if test "${ac_cv_build+set}" = set; then
2165  echo $ECHO_N "(cached) $ECHO_C" >&6
2166else
2167  ac_cv_build_alias=$build_alias
2168test -z "$ac_cv_build_alias" &&
2169  ac_cv_build_alias=`$ac_config_guess`
2170test -z "$ac_cv_build_alias" &&
2171  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2172echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2173   { (exit 1); exit 1; }; }
2174ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2175  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2176echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2177   { (exit 1); exit 1; }; }
2178
2179fi
2180echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2181echo "${ECHO_T}$ac_cv_build" >&6
2182build=$ac_cv_build
2183build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2184build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2185build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2186
2187
2188echo "$as_me:$LINENO: checking host system type" >&5
2189echo $ECHO_N "checking host system type... $ECHO_C" >&6
2190if test "${ac_cv_host+set}" = set; then
2191  echo $ECHO_N "(cached) $ECHO_C" >&6
2192else
2193  ac_cv_host_alias=$host_alias
2194test -z "$ac_cv_host_alias" &&
2195  ac_cv_host_alias=$ac_cv_build_alias
2196ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2197  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2198echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2199   { (exit 1); exit 1; }; }
2200
2201fi
2202echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2203echo "${ECHO_T}$ac_cv_host" >&6
2204host=$ac_cv_host
2205host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2206host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2207host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2208
2209
2210echo "$as_me:$LINENO: checking target system type" >&5
2211echo $ECHO_N "checking target system type... $ECHO_C" >&6
2212if test "${ac_cv_target+set}" = set; then
2213  echo $ECHO_N "(cached) $ECHO_C" >&6
2214else
2215  ac_cv_target_alias=$target_alias
2216test "x$ac_cv_target_alias" = "x" &&
2217  ac_cv_target_alias=$ac_cv_host_alias
2218ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2219  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2220echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2221   { (exit 1); exit 1; }; }
2222
2223fi
2224echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2225echo "${ECHO_T}$ac_cv_target" >&6
2226target=$ac_cv_target
2227target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2228target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2229target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2230
2231
2232# The aliases save the names the user supplied, while $host etc.
2233# will get canonicalized.
2234test -n "$target_alias" &&
2235  test "$program_prefix$program_suffix$program_transform_name" = \
2236    NONENONEs,x,x, &&
2237  program_prefix=${target_alias}-
2238
2239case $build in
2240	*i*86*)  OS=Linux
2241
2242	         LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2243
2244	         ;;
2245
2246	*sparc*) OS=SunOS
2247
2248	         LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2249
2250	         ;;
2251
2252	*)       OS=Unknown
2253
2254	         ;;
2255esac
2256
2257case $target in
2258	*sparc*solaris*)  target=sparcv9-sun-solaris2.8
2259
2260	                  ;;
2261esac
2262
2263case $target in
2264	*i*86*)           ARCH=x86
2265
2266	                  ;;
2267	*sparc*solaris*)  ARCH=Sparc
2268
2269	                  ;;
2270esac
2271
2272
2273ac_ext=cc
2274ac_cpp='$CXXCPP $CPPFLAGS'
2275ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2276ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2277ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2278if test -n "$ac_tool_prefix"; then
2279  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2280  do
2281    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2282set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2283echo "$as_me:$LINENO: checking for $ac_word" >&5
2284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2285if test "${ac_cv_prog_CXX+set}" = set; then
2286  echo $ECHO_N "(cached) $ECHO_C" >&6
2287else
2288  if test -n "$CXX"; then
2289  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2290else
2291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292for as_dir in $PATH
2293do
2294  IFS=$as_save_IFS
2295  test -z "$as_dir" && as_dir=.
2296  for ac_exec_ext in '' $ac_executable_extensions; do
2297  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2298    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2299    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300    break 2
2301  fi
2302done
2303done
2304
2305fi
2306fi
2307CXX=$ac_cv_prog_CXX
2308if test -n "$CXX"; then
2309  echo "$as_me:$LINENO: result: $CXX" >&5
2310echo "${ECHO_T}$CXX" >&6
2311else
2312  echo "$as_me:$LINENO: result: no" >&5
2313echo "${ECHO_T}no" >&6
2314fi
2315
2316    test -n "$CXX" && break
2317  done
2318fi
2319if test -z "$CXX"; then
2320  ac_ct_CXX=$CXX
2321  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2322do
2323  # Extract the first word of "$ac_prog", so it can be a program name with args.
2324set dummy $ac_prog; ac_word=$2
2325echo "$as_me:$LINENO: checking for $ac_word" >&5
2326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2327if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2328  echo $ECHO_N "(cached) $ECHO_C" >&6
2329else
2330  if test -n "$ac_ct_CXX"; then
2331  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2332else
2333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334for as_dir in $PATH
2335do
2336  IFS=$as_save_IFS
2337  test -z "$as_dir" && as_dir=.
2338  for ac_exec_ext in '' $ac_executable_extensions; do
2339  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2340    ac_cv_prog_ac_ct_CXX="$ac_prog"
2341    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342    break 2
2343  fi
2344done
2345done
2346
2347fi
2348fi
2349ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2350if test -n "$ac_ct_CXX"; then
2351  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2352echo "${ECHO_T}$ac_ct_CXX" >&6
2353else
2354  echo "$as_me:$LINENO: result: no" >&5
2355echo "${ECHO_T}no" >&6
2356fi
2357
2358  test -n "$ac_ct_CXX" && break
2359done
2360test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2361
2362  CXX=$ac_ct_CXX
2363fi
2364
2365
2366# Provide some information about the compiler.
2367echo "$as_me:$LINENO:" \
2368     "checking for C++ compiler version" >&5
2369ac_compiler=`set X $ac_compile; echo $2`
2370{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2371  (eval $ac_compiler --version </dev/null >&5) 2>&5
2372  ac_status=$?
2373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374  (exit $ac_status); }
2375{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2376  (eval $ac_compiler -v </dev/null >&5) 2>&5
2377  ac_status=$?
2378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379  (exit $ac_status); }
2380{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2381  (eval $ac_compiler -V </dev/null >&5) 2>&5
2382  ac_status=$?
2383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384  (exit $ac_status); }
2385
2386cat >conftest.$ac_ext <<_ACEOF
2387#line $LINENO "configure"
2388/* confdefs.h.  */
2389_ACEOF
2390cat confdefs.h >>conftest.$ac_ext
2391cat >>conftest.$ac_ext <<_ACEOF
2392/* end confdefs.h.  */
2393
2394int
2395main ()
2396{
2397
2398  ;
2399  return 0;
2400}
2401_ACEOF
2402ac_clean_files_save=$ac_clean_files
2403ac_clean_files="$ac_clean_files a.out a.exe b.out"
2404# Try to create an executable without -o first, disregard a.out.
2405# It will help us diagnose broken compilers, and finding out an intuition
2406# of exeext.
2407echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2408echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2409ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2410if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2411  (eval $ac_link_default) 2>&5
2412  ac_status=$?
2413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414  (exit $ac_status); }; then
2415  # Find the output, starting from the most likely.  This scheme is
2416# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2417# resort.
2418
2419# Be careful to initialize this variable, since it used to be cached.
2420# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2421ac_cv_exeext=
2422# b.out is created by i960 compilers.
2423for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2424do
2425  test -f "$ac_file" || continue
2426  case $ac_file in
2427    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2428        ;;
2429    conftest.$ac_ext )
2430        # This is the source file.
2431        ;;
2432    [ab].out )
2433        # We found the default executable, but exeext='' is most
2434        # certainly right.
2435        break;;
2436    *.* )
2437        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2438        # FIXME: I believe we export ac_cv_exeext for Libtool,
2439        # but it would be cool to find out if it's true.  Does anybody
2440        # maintain Libtool? --akim.
2441        export ac_cv_exeext
2442        break;;
2443    * )
2444        break;;
2445  esac
2446done
2447else
2448  echo "$as_me: failed program was:" >&5
2449sed 's/^/| /' conftest.$ac_ext >&5
2450
2451{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2452See \`config.log' for more details." >&5
2453echo "$as_me: error: C++ compiler cannot create executables
2454See \`config.log' for more details." >&2;}
2455   { (exit 77); exit 77; }; }
2456fi
2457
2458ac_exeext=$ac_cv_exeext
2459echo "$as_me:$LINENO: result: $ac_file" >&5
2460echo "${ECHO_T}$ac_file" >&6
2461
2462# Check the compiler produces executables we can run.  If not, either
2463# the compiler is broken, or we cross compile.
2464echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2465echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2466# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2467# If not cross compiling, check that we can run a simple program.
2468if test "$cross_compiling" != yes; then
2469  if { ac_try='./$ac_file'
2470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471  (eval $ac_try) 2>&5
2472  ac_status=$?
2473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474  (exit $ac_status); }; }; then
2475    cross_compiling=no
2476  else
2477    if test "$cross_compiling" = maybe; then
2478	cross_compiling=yes
2479    else
2480	{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2481If you meant to cross compile, use \`--host'.
2482See \`config.log' for more details." >&5
2483echo "$as_me: error: cannot run C++ compiled programs.
2484If you meant to cross compile, use \`--host'.
2485See \`config.log' for more details." >&2;}
2486   { (exit 1); exit 1; }; }
2487    fi
2488  fi
2489fi
2490echo "$as_me:$LINENO: result: yes" >&5
2491echo "${ECHO_T}yes" >&6
2492
2493rm -f a.out a.exe conftest$ac_cv_exeext b.out
2494ac_clean_files=$ac_clean_files_save
2495# Check the compiler produces executables we can run.  If not, either
2496# the compiler is broken, or we cross compile.
2497echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2498echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2499echo "$as_me:$LINENO: result: $cross_compiling" >&5
2500echo "${ECHO_T}$cross_compiling" >&6
2501
2502echo "$as_me:$LINENO: checking for suffix of executables" >&5
2503echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2505  (eval $ac_link) 2>&5
2506  ac_status=$?
2507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508  (exit $ac_status); }; then
2509  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2510# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2511# work properly (i.e., refer to `conftest.exe'), while it won't with
2512# `rm'.
2513for ac_file in conftest.exe conftest conftest.*; do
2514  test -f "$ac_file" || continue
2515  case $ac_file in
2516    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2517    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2518          export ac_cv_exeext
2519          break;;
2520    * ) break;;
2521  esac
2522done
2523else
2524  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2525See \`config.log' for more details." >&5
2526echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2527See \`config.log' for more details." >&2;}
2528   { (exit 1); exit 1; }; }
2529fi
2530
2531rm -f conftest$ac_cv_exeext
2532echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2533echo "${ECHO_T}$ac_cv_exeext" >&6
2534
2535rm -f conftest.$ac_ext
2536EXEEXT=$ac_cv_exeext
2537ac_exeext=$EXEEXT
2538echo "$as_me:$LINENO: checking for suffix of object files" >&5
2539echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2540if test "${ac_cv_objext+set}" = set; then
2541  echo $ECHO_N "(cached) $ECHO_C" >&6
2542else
2543  cat >conftest.$ac_ext <<_ACEOF
2544#line $LINENO "configure"
2545/* confdefs.h.  */
2546_ACEOF
2547cat confdefs.h >>conftest.$ac_ext
2548cat >>conftest.$ac_ext <<_ACEOF
2549/* end confdefs.h.  */
2550
2551int
2552main ()
2553{
2554
2555  ;
2556  return 0;
2557}
2558_ACEOF
2559rm -f conftest.o conftest.obj
2560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561  (eval $ac_compile) 2>&5
2562  ac_status=$?
2563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564  (exit $ac_status); }; then
2565  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2566  case $ac_file in
2567    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2568    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2569       break;;
2570  esac
2571done
2572else
2573  echo "$as_me: failed program was:" >&5
2574sed 's/^/| /' conftest.$ac_ext >&5
2575
2576{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2577See \`config.log' for more details." >&5
2578echo "$as_me: error: cannot compute suffix of object files: cannot compile
2579See \`config.log' for more details." >&2;}
2580   { (exit 1); exit 1; }; }
2581fi
2582
2583rm -f conftest.$ac_cv_objext conftest.$ac_ext
2584fi
2585echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2586echo "${ECHO_T}$ac_cv_objext" >&6
2587OBJEXT=$ac_cv_objext
2588ac_objext=$OBJEXT
2589echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2590echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2591if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2592  echo $ECHO_N "(cached) $ECHO_C" >&6
2593else
2594  cat >conftest.$ac_ext <<_ACEOF
2595#line $LINENO "configure"
2596/* confdefs.h.  */
2597_ACEOF
2598cat confdefs.h >>conftest.$ac_ext
2599cat >>conftest.$ac_ext <<_ACEOF
2600/* end confdefs.h.  */
2601
2602int
2603main ()
2604{
2605#ifndef __GNUC__
2606       choke me
2607#endif
2608
2609  ;
2610  return 0;
2611}
2612_ACEOF
2613rm -f conftest.$ac_objext
2614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615  (eval $ac_compile) 2>&5
2616  ac_status=$?
2617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618  (exit $ac_status); } &&
2619         { ac_try='test -s conftest.$ac_objext'
2620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621  (eval $ac_try) 2>&5
2622  ac_status=$?
2623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624  (exit $ac_status); }; }; then
2625  ac_compiler_gnu=yes
2626else
2627  echo "$as_me: failed program was:" >&5
2628sed 's/^/| /' conftest.$ac_ext >&5
2629
2630ac_compiler_gnu=no
2631fi
2632rm -f conftest.$ac_objext conftest.$ac_ext
2633ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2634
2635fi
2636echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2637echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2638GXX=`test $ac_compiler_gnu = yes && echo yes`
2639ac_test_CXXFLAGS=${CXXFLAGS+set}
2640ac_save_CXXFLAGS=$CXXFLAGS
2641CXXFLAGS="-g"
2642echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2643echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2644if test "${ac_cv_prog_cxx_g+set}" = set; then
2645  echo $ECHO_N "(cached) $ECHO_C" >&6
2646else
2647  cat >conftest.$ac_ext <<_ACEOF
2648#line $LINENO "configure"
2649/* confdefs.h.  */
2650_ACEOF
2651cat confdefs.h >>conftest.$ac_ext
2652cat >>conftest.$ac_ext <<_ACEOF
2653/* end confdefs.h.  */
2654
2655int
2656main ()
2657{
2658
2659  ;
2660  return 0;
2661}
2662_ACEOF
2663rm -f conftest.$ac_objext
2664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2665  (eval $ac_compile) 2>&5
2666  ac_status=$?
2667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668  (exit $ac_status); } &&
2669         { ac_try='test -s conftest.$ac_objext'
2670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671  (eval $ac_try) 2>&5
2672  ac_status=$?
2673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674  (exit $ac_status); }; }; then
2675  ac_cv_prog_cxx_g=yes
2676else
2677  echo "$as_me: failed program was:" >&5
2678sed 's/^/| /' conftest.$ac_ext >&5
2679
2680ac_cv_prog_cxx_g=no
2681fi
2682rm -f conftest.$ac_objext conftest.$ac_ext
2683fi
2684echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2685echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2686if test "$ac_test_CXXFLAGS" = set; then
2687  CXXFLAGS=$ac_save_CXXFLAGS
2688elif test $ac_cv_prog_cxx_g = yes; then
2689  if test "$GXX" = yes; then
2690    CXXFLAGS="-g -O2"
2691  else
2692    CXXFLAGS="-g"
2693  fi
2694else
2695  if test "$GXX" = yes; then
2696    CXXFLAGS="-O2"
2697  else
2698    CXXFLAGS=
2699  fi
2700fi
2701for ac_declaration in \
2702   ''\
2703   '#include <stdlib.h>' \
2704   'extern "C" void std::exit (int) throw (); using std::exit;' \
2705   'extern "C" void std::exit (int); using std::exit;' \
2706   'extern "C" void exit (int) throw ();' \
2707   'extern "C" void exit (int);' \
2708   'void exit (int);'
2709do
2710  cat >conftest.$ac_ext <<_ACEOF
2711#line $LINENO "configure"
2712/* confdefs.h.  */
2713_ACEOF
2714cat confdefs.h >>conftest.$ac_ext
2715cat >>conftest.$ac_ext <<_ACEOF
2716/* end confdefs.h.  */
2717#include <stdlib.h>
2718$ac_declaration
2719int
2720main ()
2721{
2722exit (42);
2723  ;
2724  return 0;
2725}
2726_ACEOF
2727rm -f conftest.$ac_objext
2728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729  (eval $ac_compile) 2>&5
2730  ac_status=$?
2731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732  (exit $ac_status); } &&
2733         { ac_try='test -s conftest.$ac_objext'
2734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735  (eval $ac_try) 2>&5
2736  ac_status=$?
2737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738  (exit $ac_status); }; }; then
2739  :
2740else
2741  echo "$as_me: failed program was:" >&5
2742sed 's/^/| /' conftest.$ac_ext >&5
2743
2744continue
2745fi
2746rm -f conftest.$ac_objext conftest.$ac_ext
2747  cat >conftest.$ac_ext <<_ACEOF
2748#line $LINENO "configure"
2749/* confdefs.h.  */
2750_ACEOF
2751cat confdefs.h >>conftest.$ac_ext
2752cat >>conftest.$ac_ext <<_ACEOF
2753/* end confdefs.h.  */
2754$ac_declaration
2755int
2756main ()
2757{
2758exit (42);
2759  ;
2760  return 0;
2761}
2762_ACEOF
2763rm -f conftest.$ac_objext
2764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765  (eval $ac_compile) 2>&5
2766  ac_status=$?
2767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768  (exit $ac_status); } &&
2769         { ac_try='test -s conftest.$ac_objext'
2770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771  (eval $ac_try) 2>&5
2772  ac_status=$?
2773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774  (exit $ac_status); }; }; then
2775  break
2776else
2777  echo "$as_me: failed program was:" >&5
2778sed 's/^/| /' conftest.$ac_ext >&5
2779
2780fi
2781rm -f conftest.$ac_objext conftest.$ac_ext
2782done
2783rm -f conftest*
2784if test -n "$ac_declaration"; then
2785  echo '#ifdef __cplusplus' >>confdefs.h
2786  echo $ac_declaration      >>confdefs.h
2787  echo '#endif'             >>confdefs.h
2788fi
2789
2790ac_ext=c
2791ac_cpp='$CPP $CPPFLAGS'
2792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794ac_compiler_gnu=$ac_cv_c_compiler_gnu
2795
2796ac_ext=c
2797ac_cpp='$CPP $CPPFLAGS'
2798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2800ac_compiler_gnu=$ac_cv_c_compiler_gnu
2801if test -n "$ac_tool_prefix"; then
2802  for ac_prog in gcc
2803  do
2804    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2805set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2806echo "$as_me:$LINENO: checking for $ac_word" >&5
2807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2808if test "${ac_cv_prog_CC+set}" = set; then
2809  echo $ECHO_N "(cached) $ECHO_C" >&6
2810else
2811  if test -n "$CC"; then
2812  ac_cv_prog_CC="$CC" # Let the user override the test.
2813else
2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817  IFS=$as_save_IFS
2818  test -z "$as_dir" && as_dir=.
2819  for ac_exec_ext in '' $ac_executable_extensions; do
2820  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2822    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823    break 2
2824  fi
2825done
2826done
2827
2828fi
2829fi
2830CC=$ac_cv_prog_CC
2831if test -n "$CC"; then
2832  echo "$as_me:$LINENO: result: $CC" >&5
2833echo "${ECHO_T}$CC" >&6
2834else
2835  echo "$as_me:$LINENO: result: no" >&5
2836echo "${ECHO_T}no" >&6
2837fi
2838
2839    test -n "$CC" && break
2840  done
2841fi
2842if test -z "$CC"; then
2843  ac_ct_CC=$CC
2844  for ac_prog in gcc
2845do
2846  # Extract the first word of "$ac_prog", so it can be a program name with args.
2847set dummy $ac_prog; ac_word=$2
2848echo "$as_me:$LINENO: checking for $ac_word" >&5
2849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2850if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2851  echo $ECHO_N "(cached) $ECHO_C" >&6
2852else
2853  if test -n "$ac_ct_CC"; then
2854  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2855else
2856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857for as_dir in $PATH
2858do
2859  IFS=$as_save_IFS
2860  test -z "$as_dir" && as_dir=.
2861  for ac_exec_ext in '' $ac_executable_extensions; do
2862  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2863    ac_cv_prog_ac_ct_CC="$ac_prog"
2864    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2865    break 2
2866  fi
2867done
2868done
2869
2870fi
2871fi
2872ac_ct_CC=$ac_cv_prog_ac_ct_CC
2873if test -n "$ac_ct_CC"; then
2874  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2875echo "${ECHO_T}$ac_ct_CC" >&6
2876else
2877  echo "$as_me:$LINENO: result: no" >&5
2878echo "${ECHO_T}no" >&6
2879fi
2880
2881  test -n "$ac_ct_CC" && break
2882done
2883
2884  CC=$ac_ct_CC
2885fi
2886
2887
2888test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2889See \`config.log' for more details." >&5
2890echo "$as_me: error: no acceptable C compiler found in \$PATH
2891See \`config.log' for more details." >&2;}
2892   { (exit 1); exit 1; }; }
2893
2894# Provide some information about the compiler.
2895echo "$as_me:$LINENO:" \
2896     "checking for C compiler version" >&5
2897ac_compiler=`set X $ac_compile; echo $2`
2898{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2899  (eval $ac_compiler --version </dev/null >&5) 2>&5
2900  ac_status=$?
2901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902  (exit $ac_status); }
2903{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2904  (eval $ac_compiler -v </dev/null >&5) 2>&5
2905  ac_status=$?
2906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907  (exit $ac_status); }
2908{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2909  (eval $ac_compiler -V </dev/null >&5) 2>&5
2910  ac_status=$?
2911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912  (exit $ac_status); }
2913
2914echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2915echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2916if test "${ac_cv_c_compiler_gnu+set}" = set; then
2917  echo $ECHO_N "(cached) $ECHO_C" >&6
2918else
2919  cat >conftest.$ac_ext <<_ACEOF
2920#line $LINENO "configure"
2921/* confdefs.h.  */
2922_ACEOF
2923cat confdefs.h >>conftest.$ac_ext
2924cat >>conftest.$ac_ext <<_ACEOF
2925/* end confdefs.h.  */
2926
2927int
2928main ()
2929{
2930#ifndef __GNUC__
2931       choke me
2932#endif
2933
2934  ;
2935  return 0;
2936}
2937_ACEOF
2938rm -f conftest.$ac_objext
2939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2940  (eval $ac_compile) 2>&5
2941  ac_status=$?
2942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943  (exit $ac_status); } &&
2944         { ac_try='test -s conftest.$ac_objext'
2945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946  (eval $ac_try) 2>&5
2947  ac_status=$?
2948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949  (exit $ac_status); }; }; then
2950  ac_compiler_gnu=yes
2951else
2952  echo "$as_me: failed program was:" >&5
2953sed 's/^/| /' conftest.$ac_ext >&5
2954
2955ac_compiler_gnu=no
2956fi
2957rm -f conftest.$ac_objext conftest.$ac_ext
2958ac_cv_c_compiler_gnu=$ac_compiler_gnu
2959
2960fi
2961echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2962echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2963GCC=`test $ac_compiler_gnu = yes && echo yes`
2964ac_test_CFLAGS=${CFLAGS+set}
2965ac_save_CFLAGS=$CFLAGS
2966CFLAGS="-g"
2967echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2968echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2969if test "${ac_cv_prog_cc_g+set}" = set; then
2970  echo $ECHO_N "(cached) $ECHO_C" >&6
2971else
2972  cat >conftest.$ac_ext <<_ACEOF
2973#line $LINENO "configure"
2974/* confdefs.h.  */
2975_ACEOF
2976cat confdefs.h >>conftest.$ac_ext
2977cat >>conftest.$ac_ext <<_ACEOF
2978/* end confdefs.h.  */
2979
2980int
2981main ()
2982{
2983
2984  ;
2985  return 0;
2986}
2987_ACEOF
2988rm -f conftest.$ac_objext
2989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2990  (eval $ac_compile) 2>&5
2991  ac_status=$?
2992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993  (exit $ac_status); } &&
2994         { ac_try='test -s conftest.$ac_objext'
2995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996  (eval $ac_try) 2>&5
2997  ac_status=$?
2998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999  (exit $ac_status); }; }; then
3000  ac_cv_prog_cc_g=yes
3001else
3002  echo "$as_me: failed program was:" >&5
3003sed 's/^/| /' conftest.$ac_ext >&5
3004
3005ac_cv_prog_cc_g=no
3006fi
3007rm -f conftest.$ac_objext conftest.$ac_ext
3008fi
3009echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3010echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3011if test "$ac_test_CFLAGS" = set; then
3012  CFLAGS=$ac_save_CFLAGS
3013elif test $ac_cv_prog_cc_g = yes; then
3014  if test "$GCC" = yes; then
3015    CFLAGS="-g -O2"
3016  else
3017    CFLAGS="-g"
3018  fi
3019else
3020  if test "$GCC" = yes; then
3021    CFLAGS="-O2"
3022  else
3023    CFLAGS=
3024  fi
3025fi
3026echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3027echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3028if test "${ac_cv_prog_cc_stdc+set}" = set; then
3029  echo $ECHO_N "(cached) $ECHO_C" >&6
3030else
3031  ac_cv_prog_cc_stdc=no
3032ac_save_CC=$CC
3033cat >conftest.$ac_ext <<_ACEOF
3034#line $LINENO "configure"
3035/* confdefs.h.  */
3036_ACEOF
3037cat confdefs.h >>conftest.$ac_ext
3038cat >>conftest.$ac_ext <<_ACEOF
3039/* end confdefs.h.  */
3040#include <stdarg.h>
3041#include <stdio.h>
3042#include <sys/types.h>
3043#include <sys/stat.h>
3044/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3045struct buf { int x; };
3046FILE * (*rcsopen) (struct buf *, struct stat *, int);
3047static char *e (p, i)
3048     char **p;
3049     int i;
3050{
3051  return p[i];
3052}
3053static char *f (char * (*g) (char **, int), char **p, ...)
3054{
3055  char *s;
3056  va_list v;
3057  va_start (v,p);
3058  s = g (p, va_arg (v,int));
3059  va_end (v);
3060  return s;
3061}
3062int test (int i, double x);
3063struct s1 {int (*f) (int a);};
3064struct s2 {int (*f) (double a);};
3065int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3066int argc;
3067char **argv;
3068int
3069main ()
3070{
3071return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3072  ;
3073  return 0;
3074}
3075_ACEOF
3076# Don't try gcc -ansi; that turns off useful extensions and
3077# breaks some systems' header files.
3078# AIX			-qlanglvl=ansi
3079# Ultrix and OSF/1	-std1
3080# HP-UX 10.20 and later	-Ae
3081# HP-UX older versions	-Aa -D_HPUX_SOURCE
3082# SVR4			-Xc -D__EXTENSIONS__
3083for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3084do
3085  CC="$ac_save_CC $ac_arg"
3086  rm -f conftest.$ac_objext
3087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3088  (eval $ac_compile) 2>&5
3089  ac_status=$?
3090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091  (exit $ac_status); } &&
3092         { ac_try='test -s conftest.$ac_objext'
3093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094  (eval $ac_try) 2>&5
3095  ac_status=$?
3096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097  (exit $ac_status); }; }; then
3098  ac_cv_prog_cc_stdc=$ac_arg
3099break
3100else
3101  echo "$as_me: failed program was:" >&5
3102sed 's/^/| /' conftest.$ac_ext >&5
3103
3104fi
3105rm -f conftest.$ac_objext
3106done
3107rm -f conftest.$ac_ext conftest.$ac_objext
3108CC=$ac_save_CC
3109
3110fi
3111
3112case "x$ac_cv_prog_cc_stdc" in
3113  x|xno)
3114    echo "$as_me:$LINENO: result: none needed" >&5
3115echo "${ECHO_T}none needed" >&6 ;;
3116  *)
3117    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3118echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3119    CC="$CC $ac_cv_prog_cc_stdc" ;;
3120esac
3121
3122# Some people use a C++ compiler to compile C.  Since we use `exit',
3123# in C++ we need to declare it.  In case someone uses the same compiler
3124# for both compiling C and C++ we need to have the C++ compiler decide
3125# the declaration of exit, since it's the most demanding environment.
3126cat >conftest.$ac_ext <<_ACEOF
3127#ifndef __cplusplus
3128  choke me
3129#endif
3130_ACEOF
3131rm -f conftest.$ac_objext
3132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3133  (eval $ac_compile) 2>&5
3134  ac_status=$?
3135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136  (exit $ac_status); } &&
3137         { ac_try='test -s conftest.$ac_objext'
3138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139  (eval $ac_try) 2>&5
3140  ac_status=$?
3141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142  (exit $ac_status); }; }; then
3143  for ac_declaration in \
3144   ''\
3145   '#include <stdlib.h>' \
3146   'extern "C" void std::exit (int) throw (); using std::exit;' \
3147   'extern "C" void std::exit (int); using std::exit;' \
3148   'extern "C" void exit (int) throw ();' \
3149   'extern "C" void exit (int);' \
3150   'void exit (int);'
3151do
3152  cat >conftest.$ac_ext <<_ACEOF
3153#line $LINENO "configure"
3154/* confdefs.h.  */
3155_ACEOF
3156cat confdefs.h >>conftest.$ac_ext
3157cat >>conftest.$ac_ext <<_ACEOF
3158/* end confdefs.h.  */
3159#include <stdlib.h>
3160$ac_declaration
3161int
3162main ()
3163{
3164exit (42);
3165  ;
3166  return 0;
3167}
3168_ACEOF
3169rm -f conftest.$ac_objext
3170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3171  (eval $ac_compile) 2>&5
3172  ac_status=$?
3173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174  (exit $ac_status); } &&
3175         { ac_try='test -s conftest.$ac_objext'
3176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177  (eval $ac_try) 2>&5
3178  ac_status=$?
3179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180  (exit $ac_status); }; }; then
3181  :
3182else
3183  echo "$as_me: failed program was:" >&5
3184sed 's/^/| /' conftest.$ac_ext >&5
3185
3186continue
3187fi
3188rm -f conftest.$ac_objext conftest.$ac_ext
3189  cat >conftest.$ac_ext <<_ACEOF
3190#line $LINENO "configure"
3191/* confdefs.h.  */
3192_ACEOF
3193cat confdefs.h >>conftest.$ac_ext
3194cat >>conftest.$ac_ext <<_ACEOF
3195/* end confdefs.h.  */
3196$ac_declaration
3197int
3198main ()
3199{
3200exit (42);
3201  ;
3202  return 0;
3203}
3204_ACEOF
3205rm -f conftest.$ac_objext
3206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3207  (eval $ac_compile) 2>&5
3208  ac_status=$?
3209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210  (exit $ac_status); } &&
3211         { ac_try='test -s conftest.$ac_objext'
3212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3213  (eval $ac_try) 2>&5
3214  ac_status=$?
3215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216  (exit $ac_status); }; }; then
3217  break
3218else
3219  echo "$as_me: failed program was:" >&5
3220sed 's/^/| /' conftest.$ac_ext >&5
3221
3222fi
3223rm -f conftest.$ac_objext conftest.$ac_ext
3224done
3225rm -f conftest*
3226if test -n "$ac_declaration"; then
3227  echo '#ifdef __cplusplus' >>confdefs.h
3228  echo $ac_declaration      >>confdefs.h
3229  echo '#endif'             >>confdefs.h
3230fi
3231
3232else
3233  echo "$as_me: failed program was:" >&5
3234sed 's/^/| /' conftest.$ac_ext >&5
3235
3236fi
3237rm -f conftest.$ac_objext conftest.$ac_ext
3238ac_ext=c
3239ac_cpp='$CPP $CPPFLAGS'
3240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243
3244ac_ext=c
3245ac_cpp='$CPP $CPPFLAGS'
3246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248ac_compiler_gnu=$ac_cv_c_compiler_gnu
3249echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3250echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3251# On Suns, sometimes $CPP names a directory.
3252if test -n "$CPP" && test -d "$CPP"; then
3253  CPP=
3254fi
3255if test -z "$CPP"; then
3256  if test "${ac_cv_prog_CPP+set}" = set; then
3257  echo $ECHO_N "(cached) $ECHO_C" >&6
3258else
3259      # Double quotes because CPP needs to be expanded
3260    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3261    do
3262      ac_preproc_ok=false
3263for ac_c_preproc_warn_flag in '' yes
3264do
3265  # Use a header file that comes with gcc, so configuring glibc
3266  # with a fresh cross-compiler works.
3267  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3268  # <limits.h> exists even on freestanding compilers.
3269  # On the NeXT, cc -E runs the code through the compiler's parser,
3270  # not just through cpp. "Syntax error" is here to catch this case.
3271  cat >conftest.$ac_ext <<_ACEOF
3272#line $LINENO "configure"
3273/* confdefs.h.  */
3274_ACEOF
3275cat confdefs.h >>conftest.$ac_ext
3276cat >>conftest.$ac_ext <<_ACEOF
3277/* end confdefs.h.  */
3278#ifdef __STDC__
3279# include <limits.h>
3280#else
3281# include <assert.h>
3282#endif
3283                     Syntax error
3284_ACEOF
3285if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3286  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3287  ac_status=$?
3288  grep -v '^ *+' conftest.er1 >conftest.err
3289  rm -f conftest.er1
3290  cat conftest.err >&5
3291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292  (exit $ac_status); } >/dev/null; then
3293  if test -s conftest.err; then
3294    ac_cpp_err=$ac_c_preproc_warn_flag
3295  else
3296    ac_cpp_err=
3297  fi
3298else
3299  ac_cpp_err=yes
3300fi
3301if test -z "$ac_cpp_err"; then
3302  :
3303else
3304  echo "$as_me: failed program was:" >&5
3305sed 's/^/| /' conftest.$ac_ext >&5
3306
3307  # Broken: fails on valid input.
3308continue
3309fi
3310rm -f conftest.err conftest.$ac_ext
3311
3312  # OK, works on sane cases.  Now check whether non-existent headers
3313  # can be detected and how.
3314  cat >conftest.$ac_ext <<_ACEOF
3315#line $LINENO "configure"
3316/* confdefs.h.  */
3317_ACEOF
3318cat confdefs.h >>conftest.$ac_ext
3319cat >>conftest.$ac_ext <<_ACEOF
3320/* end confdefs.h.  */
3321#include <ac_nonexistent.h>
3322_ACEOF
3323if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3324  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3325  ac_status=$?
3326  grep -v '^ *+' conftest.er1 >conftest.err
3327  rm -f conftest.er1
3328  cat conftest.err >&5
3329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330  (exit $ac_status); } >/dev/null; then
3331  if test -s conftest.err; then
3332    ac_cpp_err=$ac_c_preproc_warn_flag
3333  else
3334    ac_cpp_err=
3335  fi
3336else
3337  ac_cpp_err=yes
3338fi
3339if test -z "$ac_cpp_err"; then
3340  # Broken: success on invalid input.
3341continue
3342else
3343  echo "$as_me: failed program was:" >&5
3344sed 's/^/| /' conftest.$ac_ext >&5
3345
3346  # Passes both tests.
3347ac_preproc_ok=:
3348break
3349fi
3350rm -f conftest.err conftest.$ac_ext
3351
3352done
3353# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3354rm -f conftest.err conftest.$ac_ext
3355if $ac_preproc_ok; then
3356  break
3357fi
3358
3359    done
3360    ac_cv_prog_CPP=$CPP
3361
3362fi
3363  CPP=$ac_cv_prog_CPP
3364else
3365  ac_cv_prog_CPP=$CPP
3366fi
3367echo "$as_me:$LINENO: result: $CPP" >&5
3368echo "${ECHO_T}$CPP" >&6
3369ac_preproc_ok=false
3370for ac_c_preproc_warn_flag in '' yes
3371do
3372  # Use a header file that comes with gcc, so configuring glibc
3373  # with a fresh cross-compiler works.
3374  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3375  # <limits.h> exists even on freestanding compilers.
3376  # On the NeXT, cc -E runs the code through the compiler's parser,
3377  # not just through cpp. "Syntax error" is here to catch this case.
3378  cat >conftest.$ac_ext <<_ACEOF
3379#line $LINENO "configure"
3380/* confdefs.h.  */
3381_ACEOF
3382cat confdefs.h >>conftest.$ac_ext
3383cat >>conftest.$ac_ext <<_ACEOF
3384/* end confdefs.h.  */
3385#ifdef __STDC__
3386# include <limits.h>
3387#else
3388# include <assert.h>
3389#endif
3390                     Syntax error
3391_ACEOF
3392if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3393  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3394  ac_status=$?
3395  grep -v '^ *+' conftest.er1 >conftest.err
3396  rm -f conftest.er1
3397  cat conftest.err >&5
3398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399  (exit $ac_status); } >/dev/null; then
3400  if test -s conftest.err; then
3401    ac_cpp_err=$ac_c_preproc_warn_flag
3402  else
3403    ac_cpp_err=
3404  fi
3405else
3406  ac_cpp_err=yes
3407fi
3408if test -z "$ac_cpp_err"; then
3409  :
3410else
3411  echo "$as_me: failed program was:" >&5
3412sed 's/^/| /' conftest.$ac_ext >&5
3413
3414  # Broken: fails on valid input.
3415continue
3416fi
3417rm -f conftest.err conftest.$ac_ext
3418
3419  # OK, works on sane cases.  Now check whether non-existent headers
3420  # can be detected and how.
3421  cat >conftest.$ac_ext <<_ACEOF
3422#line $LINENO "configure"
3423/* confdefs.h.  */
3424_ACEOF
3425cat confdefs.h >>conftest.$ac_ext
3426cat >>conftest.$ac_ext <<_ACEOF
3427/* end confdefs.h.  */
3428#include <ac_nonexistent.h>
3429_ACEOF
3430if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3431  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3432  ac_status=$?
3433  grep -v '^ *+' conftest.er1 >conftest.err
3434  rm -f conftest.er1
3435  cat conftest.err >&5
3436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437  (exit $ac_status); } >/dev/null; then
3438  if test -s conftest.err; then
3439    ac_cpp_err=$ac_c_preproc_warn_flag
3440  else
3441    ac_cpp_err=
3442  fi
3443else
3444  ac_cpp_err=yes
3445fi
3446if test -z "$ac_cpp_err"; then
3447  # Broken: success on invalid input.
3448continue
3449else
3450  echo "$as_me: failed program was:" >&5
3451sed 's/^/| /' conftest.$ac_ext >&5
3452
3453  # Passes both tests.
3454ac_preproc_ok=:
3455break
3456fi
3457rm -f conftest.err conftest.$ac_ext
3458
3459done
3460# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3461rm -f conftest.err conftest.$ac_ext
3462if $ac_preproc_ok; then
3463  :
3464else
3465  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3466See \`config.log' for more details." >&5
3467echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3468See \`config.log' for more details." >&2;}
3469   { (exit 1); exit 1; }; }
3470fi
3471
3472ac_ext=c
3473ac_cpp='$CPP $CPPFLAGS'
3474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477
3478
3479if test "$GCC" != "yes"
3480then
3481	{ { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3482echo "$as_me: error: gcc required but not found" >&2;}
3483   { (exit 1); exit 1; }; }
3484fi
3485
3486if test "$GXX" != "yes"
3487then
3488	{ { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3489echo "$as_me: error: g++ required but not found" >&2;}
3490   { (exit 1); exit 1; }; }
3491fi
3492
3493gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3494if test "$gccmajor" -lt "3"
3495then
3496	{ { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3497echo "$as_me: error: gcc 3.x required" >&2;}
3498   { (exit 1); exit 1; }; }
3499fi
3500
3501 echo "$as_me:$LINENO: checking for GNU make" >&5
3502echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3503if test "${_cv_gnu_make_command+set}" = set; then
3504  echo $ECHO_N "(cached) $ECHO_C" >&6
3505else
3506  _cv_gnu_make_command='' ;
3507                for a in "$MAKE" make gmake gnumake ; do
3508                        if test -z "$a" ; then continue ; fi ;
3509                        if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3510                                _cv_gnu_make_command=$a ;
3511                                break;
3512                        fi
3513                done ;
3514
3515fi
3516echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3517echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3518        if test  "x$_cv_gnu_make_command" != "x"  ; then
3519                ifGNUmake='' ;
3520        else
3521                ifGNUmake='#' ;
3522                echo "$as_me:$LINENO: result: \"Not found\"" >&5
3523echo "${ECHO_T}\"Not found\"" >&6;
3524        fi
3525
3526
3527if test -z "$_cv_gnu_make_command"
3528then
3529	{ { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3530echo "$as_me: error: GNU Make required but not found" >&2;}
3531   { (exit 1); exit 1; }; }
3532fi
3533
3534
3535echo "$as_me:$LINENO: checking " >&5
3536echo $ECHO_N "checking ... $ECHO_C" >&6
3537if test "${ac_cv_has_flex+set}" = set; then
3538  echo $ECHO_N "(cached) $ECHO_C" >&6
3539else
3540  for ac_prog in flex lex
3541do
3542  # Extract the first word of "$ac_prog", so it can be a program name with args.
3543set dummy $ac_prog; ac_word=$2
3544echo "$as_me:$LINENO: checking for $ac_word" >&5
3545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3546if test "${ac_cv_prog_LEX+set}" = set; then
3547  echo $ECHO_N "(cached) $ECHO_C" >&6
3548else
3549  if test -n "$LEX"; then
3550  ac_cv_prog_LEX="$LEX" # Let the user override the test.
3551else
3552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553for as_dir in $PATH
3554do
3555  IFS=$as_save_IFS
3556  test -z "$as_dir" && as_dir=.
3557  for ac_exec_ext in '' $ac_executable_extensions; do
3558  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3559    ac_cv_prog_LEX="$ac_prog"
3560    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3561    break 2
3562  fi
3563done
3564done
3565
3566fi
3567fi
3568LEX=$ac_cv_prog_LEX
3569if test -n "$LEX"; then
3570  echo "$as_me:$LINENO: result: $LEX" >&5
3571echo "${ECHO_T}$LEX" >&6
3572else
3573  echo "$as_me:$LINENO: result: no" >&5
3574echo "${ECHO_T}no" >&6
3575fi
3576
3577  test -n "$LEX" && break
3578done
3579test -n "$LEX" || LEX=":"
3580
3581if test -z "$LEXLIB"
3582then
3583  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3584echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3585if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3586  echo $ECHO_N "(cached) $ECHO_C" >&6
3587else
3588  ac_check_lib_save_LIBS=$LIBS
3589LIBS="-lfl  $LIBS"
3590cat >conftest.$ac_ext <<_ACEOF
3591#line $LINENO "configure"
3592/* confdefs.h.  */
3593_ACEOF
3594cat confdefs.h >>conftest.$ac_ext
3595cat >>conftest.$ac_ext <<_ACEOF
3596/* end confdefs.h.  */
3597
3598/* Override any gcc2 internal prototype to avoid an error.  */
3599#ifdef __cplusplus
3600extern "C"
3601#endif
3602/* We use char because int might match the return type of a gcc2
3603   builtin and then its argument prototype would still apply.  */
3604char yywrap ();
3605int
3606main ()
3607{
3608yywrap ();
3609  ;
3610  return 0;
3611}
3612_ACEOF
3613rm -f conftest.$ac_objext conftest$ac_exeext
3614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3615  (eval $ac_link) 2>&5
3616  ac_status=$?
3617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618  (exit $ac_status); } &&
3619         { ac_try='test -s conftest$ac_exeext'
3620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621  (eval $ac_try) 2>&5
3622  ac_status=$?
3623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624  (exit $ac_status); }; }; then
3625  ac_cv_lib_fl_yywrap=yes
3626else
3627  echo "$as_me: failed program was:" >&5
3628sed 's/^/| /' conftest.$ac_ext >&5
3629
3630ac_cv_lib_fl_yywrap=no
3631fi
3632rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3633LIBS=$ac_check_lib_save_LIBS
3634fi
3635echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3636echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3637if test $ac_cv_lib_fl_yywrap = yes; then
3638  LEXLIB="-lfl"
3639else
3640  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3641echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3642if test "${ac_cv_lib_l_yywrap+set}" = set; then
3643  echo $ECHO_N "(cached) $ECHO_C" >&6
3644else
3645  ac_check_lib_save_LIBS=$LIBS
3646LIBS="-ll  $LIBS"
3647cat >conftest.$ac_ext <<_ACEOF
3648#line $LINENO "configure"
3649/* confdefs.h.  */
3650_ACEOF
3651cat confdefs.h >>conftest.$ac_ext
3652cat >>conftest.$ac_ext <<_ACEOF
3653/* end confdefs.h.  */
3654
3655/* Override any gcc2 internal prototype to avoid an error.  */
3656#ifdef __cplusplus
3657extern "C"
3658#endif
3659/* We use char because int might match the return type of a gcc2
3660   builtin and then its argument prototype would still apply.  */
3661char yywrap ();
3662int
3663main ()
3664{
3665yywrap ();
3666  ;
3667  return 0;
3668}
3669_ACEOF
3670rm -f conftest.$ac_objext conftest$ac_exeext
3671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3672  (eval $ac_link) 2>&5
3673  ac_status=$?
3674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675  (exit $ac_status); } &&
3676         { ac_try='test -s conftest$ac_exeext'
3677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678  (eval $ac_try) 2>&5
3679  ac_status=$?
3680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681  (exit $ac_status); }; }; then
3682  ac_cv_lib_l_yywrap=yes
3683else
3684  echo "$as_me: failed program was:" >&5
3685sed 's/^/| /' conftest.$ac_ext >&5
3686
3687ac_cv_lib_l_yywrap=no
3688fi
3689rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3690LIBS=$ac_check_lib_save_LIBS
3691fi
3692echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3693echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3694if test $ac_cv_lib_l_yywrap = yes; then
3695  LEXLIB="-ll"
3696fi
3697
3698fi
3699
3700fi
3701
3702if test "x$LEX" != "x:"; then
3703  echo "$as_me:$LINENO: checking lex output file root" >&5
3704echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3705if test "${ac_cv_prog_lex_root+set}" = set; then
3706  echo $ECHO_N "(cached) $ECHO_C" >&6
3707else
3708  # The minimal lex program is just a single line: %%.  But some broken lexes
3709# (Solaris, I think it was) want two %% lines, so accommodate them.
3710cat >conftest.l <<_ACEOF
3711%%
3712%%
3713_ACEOF
3714{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3715  (eval $LEX conftest.l) 2>&5
3716  ac_status=$?
3717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718  (exit $ac_status); }
3719if test -f lex.yy.c; then
3720  ac_cv_prog_lex_root=lex.yy
3721elif test -f lexyy.c; then
3722  ac_cv_prog_lex_root=lexyy
3723else
3724  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3725echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3726   { (exit 1); exit 1; }; }
3727fi
3728fi
3729echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3730echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3731rm -f conftest.l
3732LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3733
3734echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3735echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3736if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3737  echo $ECHO_N "(cached) $ECHO_C" >&6
3738else
3739  # POSIX says lex can declare yytext either as a pointer or an array; the
3740# default is implementation-dependent. Figure out which it is, since
3741# not all implementations provide the %pointer and %array declarations.
3742ac_cv_prog_lex_yytext_pointer=no
3743echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3744ac_save_LIBS=$LIBS
3745LIBS="$LIBS $LEXLIB"
3746cat >conftest.$ac_ext <<_ACEOF
3747`cat $LEX_OUTPUT_ROOT.c`
3748_ACEOF
3749rm -f conftest.$ac_objext conftest$ac_exeext
3750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3751  (eval $ac_link) 2>&5
3752  ac_status=$?
3753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754  (exit $ac_status); } &&
3755         { ac_try='test -s conftest$ac_exeext'
3756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757  (eval $ac_try) 2>&5
3758  ac_status=$?
3759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760  (exit $ac_status); }; }; then
3761  ac_cv_prog_lex_yytext_pointer=yes
3762else
3763  echo "$as_me: failed program was:" >&5
3764sed 's/^/| /' conftest.$ac_ext >&5
3765
3766fi
3767rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3768LIBS=$ac_save_LIBS
3769rm -f "${LEX_OUTPUT_ROOT}.c"
3770
3771fi
3772echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3773echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3774if test $ac_cv_prog_lex_yytext_pointer = yes; then
3775
3776cat >>confdefs.h <<\_ACEOF
3777#define YYTEXT_POINTER 1
3778_ACEOF
3779
3780fi
3781
3782fi
3783
3784fi
3785echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3786echo "${ECHO_T}$ac_cv_has_flex" >&6
3787if test "$LEX" != "flex"; then
3788  { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3789echo "$as_me: error: flex not found but required" >&2;}
3790   { (exit 1); exit 1; }; }
3791fi
3792
3793echo "$as_me:$LINENO: checking " >&5
3794echo $ECHO_N "checking ... $ECHO_C" >&6
3795if test "${ac_cv_has_bison+set}" = set; then
3796  echo $ECHO_N "(cached) $ECHO_C" >&6
3797else
3798  for ac_prog in 'bison -y' byacc
3799do
3800  # Extract the first word of "$ac_prog", so it can be a program name with args.
3801set dummy $ac_prog; ac_word=$2
3802echo "$as_me:$LINENO: checking for $ac_word" >&5
3803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3804if test "${ac_cv_prog_YACC+set}" = set; then
3805  echo $ECHO_N "(cached) $ECHO_C" >&6
3806else
3807  if test -n "$YACC"; then
3808  ac_cv_prog_YACC="$YACC" # Let the user override the test.
3809else
3810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811for as_dir in $PATH
3812do
3813  IFS=$as_save_IFS
3814  test -z "$as_dir" && as_dir=.
3815  for ac_exec_ext in '' $ac_executable_extensions; do
3816  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817    ac_cv_prog_YACC="$ac_prog"
3818    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3819    break 2
3820  fi
3821done
3822done
3823
3824fi
3825fi
3826YACC=$ac_cv_prog_YACC
3827if test -n "$YACC"; then
3828  echo "$as_me:$LINENO: result: $YACC" >&5
3829echo "${ECHO_T}$YACC" >&6
3830else
3831  echo "$as_me:$LINENO: result: no" >&5
3832echo "${ECHO_T}no" >&6
3833fi
3834
3835  test -n "$YACC" && break
3836done
3837test -n "$YACC" || YACC="yacc"
3838
3839
3840fi
3841echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3842echo "${ECHO_T}$ac_cv_has_bison" >&6
3843if test "$YACC" != "bison -y"; then
3844  { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3845echo "$as_me: error: bison not found but required" >&2;}
3846   { (exit 1); exit 1; }; }
3847else
3848  YACC=bison
3849
3850fi
3851
3852
3853# Check whether --enable-shared or --disable-shared was given.
3854if test "${enable_shared+set}" = set; then
3855  enableval="$enable_shared"
3856  p=${PACKAGE-default}
3857    case $enableval in
3858    yes) enable_shared=yes ;;
3859    no) enable_shared=no ;;
3860    *)
3861      enable_shared=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_shared=yes
3868	fi
3869      done
3870      IFS="$lt_save_ifs"
3871      ;;
3872    esac
3873else
3874  enable_shared=yes
3875fi;
3876
3877# Check whether --enable-static or --disable-static was given.
3878if test "${enable_static+set}" = set; then
3879  enableval="$enable_static"
3880  p=${PACKAGE-default}
3881    case $enableval in
3882    yes) enable_static=yes ;;
3883    no) enable_static=no ;;
3884    *)
3885     enable_static=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_static=yes
3892	fi
3893      done
3894      IFS="$lt_save_ifs"
3895      ;;
3896    esac
3897else
3898  enable_static=yes
3899fi;
3900
3901# Check whether --enable-fast-install or --disable-fast-install was given.
3902if test "${enable_fast_install+set}" = set; then
3903  enableval="$enable_fast_install"
3904  p=${PACKAGE-default}
3905    case $enableval in
3906    yes) enable_fast_install=yes ;;
3907    no) enable_fast_install=no ;;
3908    *)
3909      enable_fast_install=no
3910      # Look at the argument we got.  We use all the common list separators.
3911      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3912      for pkg in $enableval; do
3913	IFS="$lt_save_ifs"
3914	if test "X$pkg" = "X$p"; then
3915	  enable_fast_install=yes
3916	fi
3917      done
3918      IFS="$lt_save_ifs"
3919      ;;
3920    esac
3921else
3922  enable_fast_install=yes
3923fi;
3924
3925echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3926echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3927if test "${lt_cv_path_SED+set}" = set; then
3928  echo $ECHO_N "(cached) $ECHO_C" >&6
3929else
3930  # Loop through the user's path and test for sed and gsed.
3931# Then use that list of sed's as ones to test for truncation.
3932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933for as_dir in $PATH
3934do
3935  IFS=$as_save_IFS
3936  test -z "$as_dir" && as_dir=.
3937  for lt_ac_prog in sed gsed; do
3938    for ac_exec_ext in '' $ac_executable_extensions; do
3939      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3940        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3941      fi
3942    done
3943  done
3944done
3945lt_ac_max=0
3946lt_ac_count=0
3947# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3948# along with /bin/sed that truncates output.
3949for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3950  test ! -f $lt_ac_sed && break
3951  cat /dev/null > conftest.in
3952  lt_ac_count=0
3953  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3954  # Check for GNU sed and select it if it is found.
3955  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3956    lt_cv_path_SED=$lt_ac_sed
3957    break
3958  fi
3959  while true; do
3960    cat conftest.in conftest.in >conftest.tmp
3961    mv conftest.tmp conftest.in
3962    cp conftest.in conftest.nl
3963    echo >>conftest.nl
3964    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3965    cmp -s conftest.out conftest.nl || break
3966    # 10000 chars as input seems more than enough
3967    test $lt_ac_count -gt 10 && break
3968    lt_ac_count=`expr $lt_ac_count + 1`
3969    if test $lt_ac_count -gt $lt_ac_max; then
3970      lt_ac_max=$lt_ac_count
3971      lt_cv_path_SED=$lt_ac_sed
3972    fi
3973  done
3974done
3975SED=$lt_cv_path_SED
3976
3977fi
3978
3979echo "$as_me:$LINENO: result: $SED" >&5
3980echo "${ECHO_T}$SED" >&6
3981
3982echo "$as_me:$LINENO: checking for egrep" >&5
3983echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3984if test "${ac_cv_prog_egrep+set}" = set; then
3985  echo $ECHO_N "(cached) $ECHO_C" >&6
3986else
3987  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3988    then ac_cv_prog_egrep='grep -E'
3989    else ac_cv_prog_egrep='egrep'
3990    fi
3991fi
3992echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3993echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3994 EGREP=$ac_cv_prog_egrep
3995
3996
3997
3998# Check whether --with-gnu-ld or --without-gnu-ld was given.
3999if test "${with_gnu_ld+set}" = set; then
4000  withval="$with_gnu_ld"
4001  test "$withval" = no || with_gnu_ld=yes
4002else
4003  with_gnu_ld=no
4004fi;
4005ac_prog=ld
4006if test "$GCC" = yes; then
4007  # Check if gcc -print-prog-name=ld gives a path.
4008  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4009echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4010  case $host in
4011  *-*-mingw*)
4012    # gcc leaves a trailing carriage return which upsets mingw
4013    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4014  *)
4015    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4016  esac
4017  case $ac_prog in
4018    # Accept absolute paths.
4019    [\\/]* | ?:[\\/]*)
4020      re_direlt='/[^/][^/]*/\.\./'
4021      # Canonicalize the path of ld
4022      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4023      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4024	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4025      done
4026      test -z "$LD" && LD="$ac_prog"
4027      ;;
4028  "")
4029    # If it fails, then pretend we aren't using GCC.
4030    ac_prog=ld
4031    ;;
4032  *)
4033    # If it is relative, then search for the first ld in PATH.
4034    with_gnu_ld=unknown
4035    ;;
4036  esac
4037elif test "$with_gnu_ld" = yes; then
4038  echo "$as_me:$LINENO: checking for GNU ld" >&5
4039echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4040else
4041  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4042echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4043fi
4044if test "${lt_cv_path_LD+set}" = set; then
4045  echo $ECHO_N "(cached) $ECHO_C" >&6
4046else
4047  if test -z "$LD"; then
4048  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4049  for ac_dir in $PATH; do
4050    IFS="$lt_save_ifs"
4051    test -z "$ac_dir" && ac_dir=.
4052    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4053      lt_cv_path_LD="$ac_dir/$ac_prog"
4054      # Check to see if the program is GNU ld.  I'd rather use --version,
4055      # but apparently some GNU ld's only accept -v.
4056      # Break only if it was the GNU/non-GNU ld that we prefer.
4057      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4058      *GNU* | *'with BFD'*)
4059	test "$with_gnu_ld" != no && break
4060	;;
4061      *)
4062	test "$with_gnu_ld" != yes && break
4063	;;
4064      esac
4065    fi
4066  done
4067  IFS="$lt_save_ifs"
4068else
4069  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4070fi
4071fi
4072
4073LD="$lt_cv_path_LD"
4074if test -n "$LD"; then
4075  echo "$as_me:$LINENO: result: $LD" >&5
4076echo "${ECHO_T}$LD" >&6
4077else
4078  echo "$as_me:$LINENO: result: no" >&5
4079echo "${ECHO_T}no" >&6
4080fi
4081test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4082echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4083   { (exit 1); exit 1; }; }
4084echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4085echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4086if test "${lt_cv_prog_gnu_ld+set}" = set; then
4087  echo $ECHO_N "(cached) $ECHO_C" >&6
4088else
4089  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4090case `"$LD" -v 2>&1 </dev/null` in
4091*GNU* | *'with BFD'*)
4092  lt_cv_prog_gnu_ld=yes
4093  ;;
4094*)
4095  lt_cv_prog_gnu_ld=no
4096  ;;
4097esac
4098fi
4099echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4100echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4101with_gnu_ld=$lt_cv_prog_gnu_ld
4102
4103
4104echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4105echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4106if test "${lt_cv_ld_reload_flag+set}" = set; then
4107  echo $ECHO_N "(cached) $ECHO_C" >&6
4108else
4109  lt_cv_ld_reload_flag='-r'
4110fi
4111echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4112echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4113reload_flag=$lt_cv_ld_reload_flag
4114case $reload_flag in
4115"" | " "*) ;;
4116*) reload_flag=" $reload_flag" ;;
4117esac
4118reload_cmds='$LD$reload_flag -o $output$reload_objs'
4119
4120echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4121echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4122if test "${lt_cv_path_NM+set}" = set; then
4123  echo $ECHO_N "(cached) $ECHO_C" >&6
4124else
4125  if test -n "$NM"; then
4126  # Let the user override the test.
4127  lt_cv_path_NM="$NM"
4128else
4129  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4130  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4131    IFS="$lt_save_ifs"
4132    test -z "$ac_dir" && ac_dir=.
4133    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4134    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4135      # Check to see if the nm accepts a BSD-compat flag.
4136      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4137      #   nm: unknown option "B" ignored
4138      # Tru64's nm complains that /dev/null is an invalid object file
4139      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4140      */dev/null* | *'Invalid file or object type'*)
4141	lt_cv_path_NM="$tmp_nm -B"
4142	break
4143        ;;
4144      *)
4145	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4146	*/dev/null*)
4147	  lt_cv_path_NM="$tmp_nm -p"
4148	  break
4149	  ;;
4150	*)
4151	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4152	  continue # so that we can try to find one that supports BSD flags
4153	  ;;
4154	esac
4155      esac
4156    fi
4157  done
4158  IFS="$lt_save_ifs"
4159  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4160fi
4161fi
4162echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4163echo "${ECHO_T}$lt_cv_path_NM" >&6
4164NM="$lt_cv_path_NM"
4165
4166echo "$as_me:$LINENO: checking whether ln -s works" >&5
4167echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4168LN_S=$as_ln_s
4169if test "$LN_S" = "ln -s"; then
4170  echo "$as_me:$LINENO: result: yes" >&5
4171echo "${ECHO_T}yes" >&6
4172else
4173  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4174echo "${ECHO_T}no, using $LN_S" >&6
4175fi
4176
4177echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4178echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4179if test "${lt_cv_deplibs_check_method+set}" = set; then
4180  echo $ECHO_N "(cached) $ECHO_C" >&6
4181else
4182  lt_cv_file_magic_cmd='$MAGIC_CMD'
4183lt_cv_file_magic_test_file=
4184lt_cv_deplibs_check_method='unknown'
4185# Need to set the preceding variable on all platforms that support
4186# interlibrary dependencies.
4187# 'none' -- dependencies not supported.
4188# `unknown' -- same as none, but documents that we really don't know.
4189# 'pass_all' -- all dependencies passed with no checks.
4190# 'test_compile' -- check by making test program.
4191# 'file_magic [[regex]]' -- check by looking for files in library path
4192# which responds to the $file_magic_cmd with a given extended regex.
4193# If you have `file' or equivalent on your system and you're not sure
4194# whether `pass_all' will *always* work, you probably want this one.
4195
4196case $host_os in
4197aix4* | aix5*)
4198  lt_cv_deplibs_check_method=pass_all
4199  ;;
4200
4201beos*)
4202  lt_cv_deplibs_check_method=pass_all
4203  ;;
4204
4205bsdi4*)
4206  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4207  lt_cv_file_magic_cmd='/usr/bin/file -L'
4208  lt_cv_file_magic_test_file=/shlib/libc.so
4209  ;;
4210
4211cygwin* | mingw* | pw32*)
4212  # win32_libid is a shell function defined in ltmain.sh
4213  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4214  lt_cv_file_magic_cmd='win32_libid'
4215  ;;
4216
4217darwin* | rhapsody*)
4218  # this will be overwritten by pass_all, but leave it in just in case
4219  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4220  lt_cv_file_magic_cmd='/usr/bin/file -L'
4221  case "$host_os" in
4222  rhapsody* | darwin1.[012])
4223    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4224    ;;
4225  *) # Darwin 1.3 on
4226    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4227    ;;
4228  esac
4229  lt_cv_deplibs_check_method=pass_all
4230  ;;
4231
4232freebsd*)
4233  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4234    case $host_cpu in
4235    i*86 )
4236      # Not sure whether the presence of OpenBSD here was a mistake.
4237      # Let's accept both of them until this is cleared up.
4238      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4239      lt_cv_file_magic_cmd=/usr/bin/file
4240      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4241      ;;
4242    esac
4243  else
4244    lt_cv_deplibs_check_method=pass_all
4245  fi
4246  ;;
4247
4248gnu*)
4249  lt_cv_deplibs_check_method=pass_all
4250  ;;
4251
4252hpux10.20* | hpux11*)
4253  lt_cv_file_magic_cmd=/usr/bin/file
4254  case "$host_cpu" in
4255  ia64*)
4256    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4257    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4258    ;;
4259  hppa*64*)
4260    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]'
4261    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4262    ;;
4263  *)
4264    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4265    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4266    ;;
4267  esac
4268  ;;
4269
4270irix5* | irix6* | nonstopux*)
4271  case $host_os in
4272  irix5* | nonstopux*)
4273    # this will be overridden with pass_all, but let us keep it just in case
4274    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4275    ;;
4276  *)
4277    case $LD in
4278    *-32|*"-32 ") libmagic=32-bit;;
4279    *-n32|*"-n32 ") libmagic=N32;;
4280    *-64|*"-64 ") libmagic=64-bit;;
4281    *) libmagic=never-match;;
4282    esac
4283    # this will be overridden with pass_all, but let us keep it just in case
4284    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4285    ;;
4286  esac
4287  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4288  lt_cv_deplibs_check_method=pass_all
4289  ;;
4290
4291# This must be Linux ELF.
4292linux*)
4293  case $host_cpu in
4294  alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4295    lt_cv_deplibs_check_method=pass_all ;;
4296  *)
4297    # glibc up to 2.1.1 does not perform some relocations on ARM
4298    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4299  esac
4300  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4301  ;;
4302
4303netbsd*)
4304  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4305    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4306  else
4307    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4308  fi
4309  ;;
4310
4311newos6*)
4312  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4313  lt_cv_file_magic_cmd=/usr/bin/file
4314  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4315  ;;
4316
4317nto-qnx)
4318  lt_cv_deplibs_check_method=unknown
4319  ;;
4320
4321openbsd*)
4322  lt_cv_file_magic_cmd=/usr/bin/file
4323  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4324  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4325    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4326  else
4327    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4328  fi
4329  ;;
4330
4331osf3* | osf4* | osf5*)
4332  # this will be overridden with pass_all, but let us keep it just in case
4333  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4334  lt_cv_file_magic_test_file=/shlib/libc.so
4335  lt_cv_deplibs_check_method=pass_all
4336  ;;
4337
4338sco3.2v5*)
4339  lt_cv_deplibs_check_method=pass_all
4340  ;;
4341
4342solaris*)
4343  lt_cv_deplibs_check_method=pass_all
4344  lt_cv_file_magic_test_file=/lib/libc.so
4345  ;;
4346
4347sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4348  case $host_vendor in
4349  motorola)
4350    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]'
4351    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4352    ;;
4353  ncr)
4354    lt_cv_deplibs_check_method=pass_all
4355    ;;
4356  sequent)
4357    lt_cv_file_magic_cmd='/bin/file'
4358    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4359    ;;
4360  sni)
4361    lt_cv_file_magic_cmd='/bin/file'
4362    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4363    lt_cv_file_magic_test_file=/lib/libc.so
4364    ;;
4365  siemens)
4366    lt_cv_deplibs_check_method=pass_all
4367    ;;
4368  esac
4369  ;;
4370
4371sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4372  lt_cv_deplibs_check_method=pass_all
4373  ;;
4374esac
4375
4376fi
4377echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4378echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4379file_magic_cmd=$lt_cv_file_magic_cmd
4380deplibs_check_method=$lt_cv_deplibs_check_method
4381test -z "$deplibs_check_method" && deplibs_check_method=unknown
4382
4383
4384
4385
4386# If no C compiler was specified, use CC.
4387LTCC=${LTCC-"$CC"}
4388
4389# Allow CC to be a program name with arguments.
4390compiler=$CC
4391
4392# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4393if test "${enable_libtool_lock+set}" = set; then
4394  enableval="$enable_libtool_lock"
4395
4396fi;
4397test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4398
4399# Some flags need to be propagated to the compiler or linker for good
4400# libtool support.
4401case $host in
4402ia64-*-hpux*)
4403  # Find out which ABI we are using.
4404  echo 'int i;' > conftest.$ac_ext
4405  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4406  (eval $ac_compile) 2>&5
4407  ac_status=$?
4408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409  (exit $ac_status); }; then
4410    case `/usr/bin/file conftest.$ac_objext` in
4411    *ELF-32*)
4412      HPUX_IA64_MODE="32"
4413      ;;
4414    *ELF-64*)
4415      HPUX_IA64_MODE="64"
4416      ;;
4417    esac
4418  fi
4419  rm -rf conftest*
4420  ;;
4421*-*-irix6*)
4422  # Find out which ABI we are using.
4423  echo '#line 4423 "configure"' > conftest.$ac_ext
4424  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4425  (eval $ac_compile) 2>&5
4426  ac_status=$?
4427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428  (exit $ac_status); }; then
4429   if test "$lt_cv_prog_gnu_ld" = yes; then
4430    case `/usr/bin/file conftest.$ac_objext` in
4431    *32-bit*)
4432      LD="${LD-ld} -melf32bsmip"
4433      ;;
4434    *N32*)
4435      LD="${LD-ld} -melf32bmipn32"
4436      ;;
4437    *64-bit*)
4438      LD="${LD-ld} -melf64bmip"
4439      ;;
4440    esac
4441   else
4442    case `/usr/bin/file conftest.$ac_objext` in
4443    *32-bit*)
4444      LD="${LD-ld} -32"
4445      ;;
4446    *N32*)
4447      LD="${LD-ld} -n32"
4448      ;;
4449    *64-bit*)
4450      LD="${LD-ld} -64"
4451      ;;
4452    esac
4453   fi
4454  fi
4455  rm -rf conftest*
4456  ;;
4457
4458x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4459  # Find out which ABI we are using.
4460  echo 'int i;' > conftest.$ac_ext
4461  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4462  (eval $ac_compile) 2>&5
4463  ac_status=$?
4464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465  (exit $ac_status); }; then
4466    case "`/usr/bin/file conftest.o`" in
4467    *32-bit*)
4468      case $host in
4469        x86_64-*linux*)
4470          LD="${LD-ld} -m elf_i386"
4471          ;;
4472        ppc64-*linux*)
4473          LD="${LD-ld} -m elf32ppclinux"
4474          ;;
4475        s390x-*linux*)
4476          LD="${LD-ld} -m elf_s390"
4477          ;;
4478        sparc64-*linux*)
4479          LD="${LD-ld} -m elf32_sparc"
4480          ;;
4481      esac
4482      ;;
4483    *64-bit*)
4484      case $host in
4485        x86_64-*linux*)
4486          LD="${LD-ld} -m elf_x86_64"
4487          ;;
4488        ppc*-*linux*|powerpc*-*linux*)
4489          LD="${LD-ld} -m elf64ppc"
4490          ;;
4491        s390*-*linux*)
4492          LD="${LD-ld} -m elf64_s390"
4493          ;;
4494        sparc*-*linux*)
4495          LD="${LD-ld} -m elf64_sparc"
4496          ;;
4497      esac
4498      ;;
4499    esac
4500  fi
4501  rm -rf conftest*
4502  ;;
4503
4504*-*-sco3.2v5*)
4505  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4506  SAVE_CFLAGS="$CFLAGS"
4507  CFLAGS="$CFLAGS -belf"
4508  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4509echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4510if test "${lt_cv_cc_needs_belf+set}" = set; then
4511  echo $ECHO_N "(cached) $ECHO_C" >&6
4512else
4513  ac_ext=c
4514ac_cpp='$CPP $CPPFLAGS'
4515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4517ac_compiler_gnu=$ac_cv_c_compiler_gnu
4518
4519     cat >conftest.$ac_ext <<_ACEOF
4520#line $LINENO "configure"
4521/* confdefs.h.  */
4522_ACEOF
4523cat confdefs.h >>conftest.$ac_ext
4524cat >>conftest.$ac_ext <<_ACEOF
4525/* end confdefs.h.  */
4526
4527int
4528main ()
4529{
4530
4531  ;
4532  return 0;
4533}
4534_ACEOF
4535rm -f conftest.$ac_objext conftest$ac_exeext
4536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4537  (eval $ac_link) 2>&5
4538  ac_status=$?
4539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540  (exit $ac_status); } &&
4541         { ac_try='test -s conftest$ac_exeext'
4542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543  (eval $ac_try) 2>&5
4544  ac_status=$?
4545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546  (exit $ac_status); }; }; then
4547  lt_cv_cc_needs_belf=yes
4548else
4549  echo "$as_me: failed program was:" >&5
4550sed 's/^/| /' conftest.$ac_ext >&5
4551
4552lt_cv_cc_needs_belf=no
4553fi
4554rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4555     ac_ext=c
4556ac_cpp='$CPP $CPPFLAGS'
4557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559ac_compiler_gnu=$ac_cv_c_compiler_gnu
4560
4561fi
4562echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4563echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4564  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4565    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4566    CFLAGS="$SAVE_CFLAGS"
4567  fi
4568  ;;
4569
4570esac
4571
4572need_locks="$enable_libtool_lock"
4573
4574
4575
4576echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4577echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4578if test "${ac_cv_header_stdc+set}" = set; then
4579  echo $ECHO_N "(cached) $ECHO_C" >&6
4580else
4581  cat >conftest.$ac_ext <<_ACEOF
4582#line $LINENO "configure"
4583/* confdefs.h.  */
4584_ACEOF
4585cat confdefs.h >>conftest.$ac_ext
4586cat >>conftest.$ac_ext <<_ACEOF
4587/* end confdefs.h.  */
4588#include <stdlib.h>
4589#include <stdarg.h>
4590#include <string.h>
4591#include <float.h>
4592
4593int
4594main ()
4595{
4596
4597  ;
4598  return 0;
4599}
4600_ACEOF
4601rm -f conftest.$ac_objext
4602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4603  (eval $ac_compile) 2>&5
4604  ac_status=$?
4605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606  (exit $ac_status); } &&
4607         { ac_try='test -s conftest.$ac_objext'
4608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609  (eval $ac_try) 2>&5
4610  ac_status=$?
4611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612  (exit $ac_status); }; }; then
4613  ac_cv_header_stdc=yes
4614else
4615  echo "$as_me: failed program was:" >&5
4616sed 's/^/| /' conftest.$ac_ext >&5
4617
4618ac_cv_header_stdc=no
4619fi
4620rm -f conftest.$ac_objext conftest.$ac_ext
4621
4622if test $ac_cv_header_stdc = yes; then
4623  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4624  cat >conftest.$ac_ext <<_ACEOF
4625#line $LINENO "configure"
4626/* confdefs.h.  */
4627_ACEOF
4628cat confdefs.h >>conftest.$ac_ext
4629cat >>conftest.$ac_ext <<_ACEOF
4630/* end confdefs.h.  */
4631#include <string.h>
4632
4633_ACEOF
4634if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4635  $EGREP "memchr" >/dev/null 2>&1; then
4636  :
4637else
4638  ac_cv_header_stdc=no
4639fi
4640rm -f conftest*
4641
4642fi
4643
4644if test $ac_cv_header_stdc = yes; then
4645  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4646  cat >conftest.$ac_ext <<_ACEOF
4647#line $LINENO "configure"
4648/* confdefs.h.  */
4649_ACEOF
4650cat confdefs.h >>conftest.$ac_ext
4651cat >>conftest.$ac_ext <<_ACEOF
4652/* end confdefs.h.  */
4653#include <stdlib.h>
4654
4655_ACEOF
4656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4657  $EGREP "free" >/dev/null 2>&1; then
4658  :
4659else
4660  ac_cv_header_stdc=no
4661fi
4662rm -f conftest*
4663
4664fi
4665
4666if test $ac_cv_header_stdc = yes; then
4667  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4668  if test "$cross_compiling" = yes; then
4669  :
4670else
4671  cat >conftest.$ac_ext <<_ACEOF
4672#line $LINENO "configure"
4673/* confdefs.h.  */
4674_ACEOF
4675cat confdefs.h >>conftest.$ac_ext
4676cat >>conftest.$ac_ext <<_ACEOF
4677/* end confdefs.h.  */
4678#include <ctype.h>
4679#if ((' ' & 0x0FF) == 0x020)
4680# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4681# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4682#else
4683# define ISLOWER(c) \
4684                   (('a' <= (c) && (c) <= 'i') \
4685                     || ('j' <= (c) && (c) <= 'r') \
4686                     || ('s' <= (c) && (c) <= 'z'))
4687# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4688#endif
4689
4690#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4691int
4692main ()
4693{
4694  int i;
4695  for (i = 0; i < 256; i++)
4696    if (XOR (islower (i), ISLOWER (i))
4697        || toupper (i) != TOUPPER (i))
4698      exit(2);
4699  exit (0);
4700}
4701_ACEOF
4702rm -f conftest$ac_exeext
4703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4704  (eval $ac_link) 2>&5
4705  ac_status=$?
4706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709  (eval $ac_try) 2>&5
4710  ac_status=$?
4711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712  (exit $ac_status); }; }; then
4713  :
4714else
4715  echo "$as_me: program exited with status $ac_status" >&5
4716echo "$as_me: failed program was:" >&5
4717sed 's/^/| /' conftest.$ac_ext >&5
4718
4719( exit $ac_status )
4720ac_cv_header_stdc=no
4721fi
4722rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4723fi
4724fi
4725fi
4726echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4727echo "${ECHO_T}$ac_cv_header_stdc" >&6
4728if test $ac_cv_header_stdc = yes; then
4729
4730cat >>confdefs.h <<\_ACEOF
4731#define STDC_HEADERS 1
4732_ACEOF
4733
4734fi
4735
4736# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4747                  inttypes.h stdint.h unistd.h
4748do
4749as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4750echo "$as_me:$LINENO: checking for $ac_header" >&5
4751echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4752if eval "test \"\${$as_ac_Header+set}\" = set"; then
4753  echo $ECHO_N "(cached) $ECHO_C" >&6
4754else
4755  cat >conftest.$ac_ext <<_ACEOF
4756#line $LINENO "configure"
4757/* confdefs.h.  */
4758_ACEOF
4759cat confdefs.h >>conftest.$ac_ext
4760cat >>conftest.$ac_ext <<_ACEOF
4761/* end confdefs.h.  */
4762$ac_includes_default
4763
4764#include <$ac_header>
4765_ACEOF
4766rm -f conftest.$ac_objext
4767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4768  (eval $ac_compile) 2>&5
4769  ac_status=$?
4770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771  (exit $ac_status); } &&
4772         { ac_try='test -s conftest.$ac_objext'
4773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774  (eval $ac_try) 2>&5
4775  ac_status=$?
4776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777  (exit $ac_status); }; }; then
4778  eval "$as_ac_Header=yes"
4779else
4780  echo "$as_me: failed program was:" >&5
4781sed 's/^/| /' conftest.$ac_ext >&5
4782
4783eval "$as_ac_Header=no"
4784fi
4785rm -f conftest.$ac_objext conftest.$ac_ext
4786fi
4787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4788echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4789if test `eval echo '${'$as_ac_Header'}'` = yes; then
4790  cat >>confdefs.h <<_ACEOF
4791#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4792_ACEOF
4793
4794fi
4795
4796done
4797
4798
4799
4800for ac_header in dlfcn.h
4801do
4802as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4803if eval "test \"\${$as_ac_Header+set}\" = set"; then
4804  echo "$as_me:$LINENO: checking for $ac_header" >&5
4805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4806if eval "test \"\${$as_ac_Header+set}\" = set"; then
4807  echo $ECHO_N "(cached) $ECHO_C" >&6
4808fi
4809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4810echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4811else
4812  # Is the header compilable?
4813echo "$as_me:$LINENO: checking $ac_header usability" >&5
4814echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4815cat >conftest.$ac_ext <<_ACEOF
4816#line $LINENO "configure"
4817/* confdefs.h.  */
4818_ACEOF
4819cat confdefs.h >>conftest.$ac_ext
4820cat >>conftest.$ac_ext <<_ACEOF
4821/* end confdefs.h.  */
4822$ac_includes_default
4823#include <$ac_header>
4824_ACEOF
4825rm -f conftest.$ac_objext
4826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4827  (eval $ac_compile) 2>&5
4828  ac_status=$?
4829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830  (exit $ac_status); } &&
4831         { ac_try='test -s conftest.$ac_objext'
4832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833  (eval $ac_try) 2>&5
4834  ac_status=$?
4835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836  (exit $ac_status); }; }; then
4837  ac_header_compiler=yes
4838else
4839  echo "$as_me: failed program was:" >&5
4840sed 's/^/| /' conftest.$ac_ext >&5
4841
4842ac_header_compiler=no
4843fi
4844rm -f conftest.$ac_objext conftest.$ac_ext
4845echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4846echo "${ECHO_T}$ac_header_compiler" >&6
4847
4848# Is the header present?
4849echo "$as_me:$LINENO: checking $ac_header presence" >&5
4850echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4851cat >conftest.$ac_ext <<_ACEOF
4852#line $LINENO "configure"
4853/* confdefs.h.  */
4854_ACEOF
4855cat confdefs.h >>conftest.$ac_ext
4856cat >>conftest.$ac_ext <<_ACEOF
4857/* end confdefs.h.  */
4858#include <$ac_header>
4859_ACEOF
4860if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4861  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4862  ac_status=$?
4863  grep -v '^ *+' conftest.er1 >conftest.err
4864  rm -f conftest.er1
4865  cat conftest.err >&5
4866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867  (exit $ac_status); } >/dev/null; then
4868  if test -s conftest.err; then
4869    ac_cpp_err=$ac_c_preproc_warn_flag
4870  else
4871    ac_cpp_err=
4872  fi
4873else
4874  ac_cpp_err=yes
4875fi
4876if test -z "$ac_cpp_err"; then
4877  ac_header_preproc=yes
4878else
4879  echo "$as_me: failed program was:" >&5
4880sed 's/^/| /' conftest.$ac_ext >&5
4881
4882  ac_header_preproc=no
4883fi
4884rm -f conftest.err conftest.$ac_ext
4885echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4886echo "${ECHO_T}$ac_header_preproc" >&6
4887
4888# So?  What about this header?
4889case $ac_header_compiler:$ac_header_preproc in
4890  yes:no )
4891    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4892echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4893    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4894echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4895    (
4896      cat <<\_ASBOX
4897## ------------------------------------ ##
4898## Report this to bug-autoconf@gnu.org. ##
4899## ------------------------------------ ##
4900_ASBOX
4901    ) |
4902      sed "s/^/$as_me: WARNING:     /" >&2
4903    ;;
4904  no:yes )
4905    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4906echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4907    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4908echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4909    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4910echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4911    (
4912      cat <<\_ASBOX
4913## ------------------------------------ ##
4914## Report this to bug-autoconf@gnu.org. ##
4915## ------------------------------------ ##
4916_ASBOX
4917    ) |
4918      sed "s/^/$as_me: WARNING:     /" >&2
4919    ;;
4920esac
4921echo "$as_me:$LINENO: checking for $ac_header" >&5
4922echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4923if eval "test \"\${$as_ac_Header+set}\" = set"; then
4924  echo $ECHO_N "(cached) $ECHO_C" >&6
4925else
4926  eval "$as_ac_Header=$ac_header_preproc"
4927fi
4928echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4929echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4930
4931fi
4932if test `eval echo '${'$as_ac_Header'}'` = yes; then
4933  cat >>confdefs.h <<_ACEOF
4934#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4935_ACEOF
4936
4937fi
4938
4939done
4940
4941ac_ext=cc
4942ac_cpp='$CXXCPP $CPPFLAGS'
4943ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4944ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4945ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4946echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4947echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4948if test -z "$CXXCPP"; then
4949  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4950  echo $ECHO_N "(cached) $ECHO_C" >&6
4951else
4952      # Double quotes because CXXCPP needs to be expanded
4953    for CXXCPP in "$CXX -E" "/lib/cpp"
4954    do
4955      ac_preproc_ok=false
4956for ac_cxx_preproc_warn_flag in '' yes
4957do
4958  # Use a header file that comes with gcc, so configuring glibc
4959  # with a fresh cross-compiler works.
4960  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4961  # <limits.h> exists even on freestanding compilers.
4962  # On the NeXT, cc -E runs the code through the compiler's parser,
4963  # not just through cpp. "Syntax error" is here to catch this case.
4964  cat >conftest.$ac_ext <<_ACEOF
4965#line $LINENO "configure"
4966/* confdefs.h.  */
4967_ACEOF
4968cat confdefs.h >>conftest.$ac_ext
4969cat >>conftest.$ac_ext <<_ACEOF
4970/* end confdefs.h.  */
4971#ifdef __STDC__
4972# include <limits.h>
4973#else
4974# include <assert.h>
4975#endif
4976                     Syntax error
4977_ACEOF
4978if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4979  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4980  ac_status=$?
4981  grep -v '^ *+' conftest.er1 >conftest.err
4982  rm -f conftest.er1
4983  cat conftest.err >&5
4984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985  (exit $ac_status); } >/dev/null; then
4986  if test -s conftest.err; then
4987    ac_cpp_err=$ac_cxx_preproc_warn_flag
4988  else
4989    ac_cpp_err=
4990  fi
4991else
4992  ac_cpp_err=yes
4993fi
4994if test -z "$ac_cpp_err"; then
4995  :
4996else
4997  echo "$as_me: failed program was:" >&5
4998sed 's/^/| /' conftest.$ac_ext >&5
4999
5000  # Broken: fails on valid input.
5001continue
5002fi
5003rm -f conftest.err conftest.$ac_ext
5004
5005  # OK, works on sane cases.  Now check whether non-existent headers
5006  # can be detected and how.
5007  cat >conftest.$ac_ext <<_ACEOF
5008#line $LINENO "configure"
5009/* confdefs.h.  */
5010_ACEOF
5011cat confdefs.h >>conftest.$ac_ext
5012cat >>conftest.$ac_ext <<_ACEOF
5013/* end confdefs.h.  */
5014#include <ac_nonexistent.h>
5015_ACEOF
5016if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5017  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5018  ac_status=$?
5019  grep -v '^ *+' conftest.er1 >conftest.err
5020  rm -f conftest.er1
5021  cat conftest.err >&5
5022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023  (exit $ac_status); } >/dev/null; then
5024  if test -s conftest.err; then
5025    ac_cpp_err=$ac_cxx_preproc_warn_flag
5026  else
5027    ac_cpp_err=
5028  fi
5029else
5030  ac_cpp_err=yes
5031fi
5032if test -z "$ac_cpp_err"; then
5033  # Broken: success on invalid input.
5034continue
5035else
5036  echo "$as_me: failed program was:" >&5
5037sed 's/^/| /' conftest.$ac_ext >&5
5038
5039  # Passes both tests.
5040ac_preproc_ok=:
5041break
5042fi
5043rm -f conftest.err conftest.$ac_ext
5044
5045done
5046# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5047rm -f conftest.err conftest.$ac_ext
5048if $ac_preproc_ok; then
5049  break
5050fi
5051
5052    done
5053    ac_cv_prog_CXXCPP=$CXXCPP
5054
5055fi
5056  CXXCPP=$ac_cv_prog_CXXCPP
5057else
5058  ac_cv_prog_CXXCPP=$CXXCPP
5059fi
5060echo "$as_me:$LINENO: result: $CXXCPP" >&5
5061echo "${ECHO_T}$CXXCPP" >&6
5062ac_preproc_ok=false
5063for ac_cxx_preproc_warn_flag in '' yes
5064do
5065  # Use a header file that comes with gcc, so configuring glibc
5066  # with a fresh cross-compiler works.
5067  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5068  # <limits.h> exists even on freestanding compilers.
5069  # On the NeXT, cc -E runs the code through the compiler's parser,
5070  # not just through cpp. "Syntax error" is here to catch this case.
5071  cat >conftest.$ac_ext <<_ACEOF
5072#line $LINENO "configure"
5073/* confdefs.h.  */
5074_ACEOF
5075cat confdefs.h >>conftest.$ac_ext
5076cat >>conftest.$ac_ext <<_ACEOF
5077/* end confdefs.h.  */
5078#ifdef __STDC__
5079# include <limits.h>
5080#else
5081# include <assert.h>
5082#endif
5083                     Syntax error
5084_ACEOF
5085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5086  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5087  ac_status=$?
5088  grep -v '^ *+' conftest.er1 >conftest.err
5089  rm -f conftest.er1
5090  cat conftest.err >&5
5091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092  (exit $ac_status); } >/dev/null; then
5093  if test -s conftest.err; then
5094    ac_cpp_err=$ac_cxx_preproc_warn_flag
5095  else
5096    ac_cpp_err=
5097  fi
5098else
5099  ac_cpp_err=yes
5100fi
5101if test -z "$ac_cpp_err"; then
5102  :
5103else
5104  echo "$as_me: failed program was:" >&5
5105sed 's/^/| /' conftest.$ac_ext >&5
5106
5107  # Broken: fails on valid input.
5108continue
5109fi
5110rm -f conftest.err conftest.$ac_ext
5111
5112  # OK, works on sane cases.  Now check whether non-existent headers
5113  # can be detected and how.
5114  cat >conftest.$ac_ext <<_ACEOF
5115#line $LINENO "configure"
5116/* confdefs.h.  */
5117_ACEOF
5118cat confdefs.h >>conftest.$ac_ext
5119cat >>conftest.$ac_ext <<_ACEOF
5120/* end confdefs.h.  */
5121#include <ac_nonexistent.h>
5122_ACEOF
5123if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5124  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5125  ac_status=$?
5126  grep -v '^ *+' conftest.er1 >conftest.err
5127  rm -f conftest.er1
5128  cat conftest.err >&5
5129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130  (exit $ac_status); } >/dev/null; then
5131  if test -s conftest.err; then
5132    ac_cpp_err=$ac_cxx_preproc_warn_flag
5133  else
5134    ac_cpp_err=
5135  fi
5136else
5137  ac_cpp_err=yes
5138fi
5139if test -z "$ac_cpp_err"; then
5140  # Broken: success on invalid input.
5141continue
5142else
5143  echo "$as_me: failed program was:" >&5
5144sed 's/^/| /' conftest.$ac_ext >&5
5145
5146  # Passes both tests.
5147ac_preproc_ok=:
5148break
5149fi
5150rm -f conftest.err conftest.$ac_ext
5151
5152done
5153# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5154rm -f conftest.err conftest.$ac_ext
5155if $ac_preproc_ok; then
5156  :
5157else
5158  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5159See \`config.log' for more details." >&5
5160echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5161See \`config.log' for more details." >&2;}
5162   { (exit 1); exit 1; }; }
5163fi
5164
5165ac_ext=cc
5166ac_cpp='$CXXCPP $CPPFLAGS'
5167ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5168ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5170
5171
5172ac_ext=f
5173ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5174ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5176if test -n "$ac_tool_prefix"; then
5177  for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5178  do
5179    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5180set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5181echo "$as_me:$LINENO: checking for $ac_word" >&5
5182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183if test "${ac_cv_prog_F77+set}" = set; then
5184  echo $ECHO_N "(cached) $ECHO_C" >&6
5185else
5186  if test -n "$F77"; then
5187  ac_cv_prog_F77="$F77" # Let the user override the test.
5188else
5189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190for as_dir in $PATH
5191do
5192  IFS=$as_save_IFS
5193  test -z "$as_dir" && as_dir=.
5194  for ac_exec_ext in '' $ac_executable_extensions; do
5195  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5197    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198    break 2
5199  fi
5200done
5201done
5202
5203fi
5204fi
5205F77=$ac_cv_prog_F77
5206if test -n "$F77"; then
5207  echo "$as_me:$LINENO: result: $F77" >&5
5208echo "${ECHO_T}$F77" >&6
5209else
5210  echo "$as_me:$LINENO: result: no" >&5
5211echo "${ECHO_T}no" >&6
5212fi
5213
5214    test -n "$F77" && break
5215  done
5216fi
5217if test -z "$F77"; then
5218  ac_ct_F77=$F77
5219  for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5220do
5221  # Extract the first word of "$ac_prog", so it can be a program name with args.
5222set dummy $ac_prog; ac_word=$2
5223echo "$as_me:$LINENO: checking for $ac_word" >&5
5224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5225if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5226  echo $ECHO_N "(cached) $ECHO_C" >&6
5227else
5228  if test -n "$ac_ct_F77"; then
5229  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5230else
5231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232for as_dir in $PATH
5233do
5234  IFS=$as_save_IFS
5235  test -z "$as_dir" && as_dir=.
5236  for ac_exec_ext in '' $ac_executable_extensions; do
5237  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238    ac_cv_prog_ac_ct_F77="$ac_prog"
5239    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240    break 2
5241  fi
5242done
5243done
5244
5245fi
5246fi
5247ac_ct_F77=$ac_cv_prog_ac_ct_F77
5248if test -n "$ac_ct_F77"; then
5249  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5250echo "${ECHO_T}$ac_ct_F77" >&6
5251else
5252  echo "$as_me:$LINENO: result: no" >&5
5253echo "${ECHO_T}no" >&6
5254fi
5255
5256  test -n "$ac_ct_F77" && break
5257done
5258
5259  F77=$ac_ct_F77
5260fi
5261
5262
5263# Provide some information about the compiler.
5264echo "$as_me:5264:" \
5265     "checking for Fortran 77 compiler version" >&5
5266ac_compiler=`set X $ac_compile; echo $2`
5267{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5268  (eval $ac_compiler --version </dev/null >&5) 2>&5
5269  ac_status=$?
5270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271  (exit $ac_status); }
5272{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5273  (eval $ac_compiler -v </dev/null >&5) 2>&5
5274  ac_status=$?
5275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276  (exit $ac_status); }
5277{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5278  (eval $ac_compiler -V </dev/null >&5) 2>&5
5279  ac_status=$?
5280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281  (exit $ac_status); }
5282
5283# If we don't use `.F' as extension, the preprocessor is not run on the
5284# input file.
5285ac_save_ext=$ac_ext
5286ac_ext=F
5287echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5288echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5289if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5290  echo $ECHO_N "(cached) $ECHO_C" >&6
5291else
5292  cat >conftest.$ac_ext <<_ACEOF
5293      program main
5294#ifndef __GNUC__
5295       choke me
5296#endif
5297
5298      end
5299_ACEOF
5300rm -f conftest.$ac_objext
5301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5302  (eval $ac_compile) 2>&5
5303  ac_status=$?
5304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305  (exit $ac_status); } &&
5306         { ac_try='test -s conftest.$ac_objext'
5307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308  (eval $ac_try) 2>&5
5309  ac_status=$?
5310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311  (exit $ac_status); }; }; then
5312  ac_compiler_gnu=yes
5313else
5314  echo "$as_me: failed program was:" >&5
5315sed 's/^/| /' conftest.$ac_ext >&5
5316
5317ac_compiler_gnu=no
5318fi
5319rm -f conftest.$ac_objext conftest.$ac_ext
5320ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5321
5322fi
5323echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5324echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5325ac_ext=$ac_save_ext
5326G77=`test $ac_compiler_gnu = yes && echo yes`
5327ac_test_FFLAGS=${FFLAGS+set}
5328ac_save_FFLAGS=$FFLAGS
5329FFLAGS=
5330echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5331echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5332if test "${ac_cv_prog_f77_g+set}" = set; then
5333  echo $ECHO_N "(cached) $ECHO_C" >&6
5334else
5335  FFLAGS=-g
5336cat >conftest.$ac_ext <<_ACEOF
5337      program main
5338
5339      end
5340_ACEOF
5341rm -f conftest.$ac_objext
5342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5343  (eval $ac_compile) 2>&5
5344  ac_status=$?
5345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346  (exit $ac_status); } &&
5347         { ac_try='test -s conftest.$ac_objext'
5348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349  (eval $ac_try) 2>&5
5350  ac_status=$?
5351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352  (exit $ac_status); }; }; then
5353  ac_cv_prog_f77_g=yes
5354else
5355  echo "$as_me: failed program was:" >&5
5356sed 's/^/| /' conftest.$ac_ext >&5
5357
5358ac_cv_prog_f77_g=no
5359fi
5360rm -f conftest.$ac_objext conftest.$ac_ext
5361
5362fi
5363echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5364echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5365if test "$ac_test_FFLAGS" = set; then
5366  FFLAGS=$ac_save_FFLAGS
5367elif test $ac_cv_prog_f77_g = yes; then
5368  if test "$G77" = yes; then
5369    FFLAGS="-g -O2"
5370  else
5371    FFLAGS="-g"
5372  fi
5373else
5374  if test "$G77" = yes; then
5375    FFLAGS="-O2"
5376  else
5377    FFLAGS=
5378  fi
5379fi
5380ac_ext=c
5381ac_cpp='$CPP $CPPFLAGS'
5382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5384ac_compiler_gnu=$ac_cv_c_compiler_gnu
5385
5386
5387
5388# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5389
5390# find the maximum length of command line arguments
5391echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5392echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5393if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5394  echo $ECHO_N "(cached) $ECHO_C" >&6
5395else
5396    i=0
5397  testring="ABCD"
5398
5399  case $build_os in
5400  msdosdjgpp*)
5401    # On DJGPP, this test can blow up pretty badly due to problems in libc
5402    # (any single argument exceeding 2000 bytes causes a buffer overrun
5403    # during glob expansion).  Even if it were fixed, the result of this
5404    # check would be larger than it should be.
5405    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5406    ;;
5407
5408  gnu*)
5409    # Under GNU Hurd, this test is not required because there is
5410    # no limit to the length of command line arguments.
5411    # Libtool will interpret -1 as no limit whatsoever
5412    lt_cv_sys_max_cmd_len=-1;
5413    ;;
5414
5415  cygwin* | mingw*)
5416    # On Win9x/ME, this test blows up -- it succeeds, but takes
5417    # about 5 minutes as the teststring grows exponentially.
5418    # Worse, since 9x/ME are not pre-emptively multitasking,
5419    # you end up with a "frozen" computer, even though with patience
5420    # the test eventually succeeds (with a max line length of 256k).
5421    # Instead, let's just punt: use the minimum linelength reported by
5422    # all of the supported platforms: 8192 (on NT/2K/XP).
5423    lt_cv_sys_max_cmd_len=8192;
5424    ;;
5425
5426 *)
5427    # If test is not a shell built-in, we'll probably end up computing a
5428    # maximum length that is only half of the actual maximum length, but
5429    # we can't tell.
5430    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5431	       = "XX$testring") >/dev/null 2>&1 &&
5432	    new_result=`expr "X$testring" : ".*" 2>&1` &&
5433	    lt_cv_sys_max_cmd_len=$new_result &&
5434	    test $i != 17 # 1/2 MB should be enough
5435    do
5436      i=`expr $i + 1`
5437      testring=$testring$testring
5438    done
5439    testring=
5440    # Add a significant safety factor because C++ compilers can tack on massive
5441    # amounts of additional arguments before passing them to the linker.
5442    # It appears as though 1/2 is a usable value.
5443    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5444    ;;
5445  esac
5446
5447fi
5448
5449if test -n $lt_cv_sys_max_cmd_len ; then
5450  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5451echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5452else
5453  echo "$as_me:$LINENO: result: none" >&5
5454echo "${ECHO_T}none" >&6
5455fi
5456
5457
5458
5459
5460# Check for command to grab the raw symbol name followed by C symbol from nm.
5461echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5462echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5463if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5464  echo $ECHO_N "(cached) $ECHO_C" >&6
5465else
5466
5467# These are sane defaults that work on at least a few old systems.
5468# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5469
5470# Character class describing NM global symbol codes.
5471symcode='[BCDEGRST]'
5472
5473# Regexp to match symbols that can be accessed directly from C.
5474sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5475
5476# Transform the above into a raw symbol and a C symbol.
5477symxfrm='\1 \2\3 \3'
5478
5479# Transform an extracted symbol line into a proper C declaration
5480lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5481
5482# Transform an extracted symbol line into symbol name and symbol address
5483lt_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'"
5484
5485# Define system-specific variables.
5486case $host_os in
5487aix*)
5488  symcode='[BCDT]'
5489  ;;
5490cygwin* | mingw* | pw32*)
5491  symcode='[ABCDGISTW]'
5492  ;;
5493hpux*) # Its linker distinguishes data from code symbols
5494  if test "$host_cpu" = ia64; then
5495    symcode='[ABCDEGRST]'
5496  fi
5497  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5498  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'"
5499  ;;
5500irix* | nonstopux*)
5501  symcode='[BCDEGRST]'
5502  ;;
5503osf*)
5504  symcode='[BCDEGQRST]'
5505  ;;
5506solaris* | sysv5*)
5507  symcode='[BDT]'
5508  ;;
5509sysv4)
5510  symcode='[DFNSTU]'
5511  ;;
5512esac
5513
5514# Handle CRLF in mingw tool chain
5515opt_cr=
5516case $build_os in
5517mingw*)
5518  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5519  ;;
5520esac
5521
5522# If we're using GNU nm, then use its standard symbol codes.
5523case `$NM -V 2>&1` in
5524*GNU* | *'with BFD'*)
5525  symcode='[ABCDGISTW]' ;;
5526esac
5527
5528# Try without a prefix undercore, then with it.
5529for ac_symprfx in "" "_"; do
5530
5531  # Write the raw and C identifiers.
5532  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5533
5534  # Check to see that the pipe works correctly.
5535  pipe_works=no
5536
5537  rm -f conftest*
5538  cat > conftest.$ac_ext <<EOF
5539#ifdef __cplusplus
5540extern "C" {
5541#endif
5542char nm_test_var;
5543void nm_test_func(){}
5544#ifdef __cplusplus
5545}
5546#endif
5547int main(){nm_test_var='a';nm_test_func();return(0);}
5548EOF
5549
5550  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5551  (eval $ac_compile) 2>&5
5552  ac_status=$?
5553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554  (exit $ac_status); }; then
5555    # Now try to grab the symbols.
5556    nlist=conftest.nm
5557    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5558  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5559  ac_status=$?
5560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561  (exit $ac_status); } && test -s "$nlist"; then
5562      # Try sorting and uniquifying the output.
5563      if sort "$nlist" | uniq > "$nlist"T; then
5564	mv -f "$nlist"T "$nlist"
5565      else
5566	rm -f "$nlist"T
5567      fi
5568
5569      # Make sure that we snagged all the symbols we need.
5570      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5571	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5572	  cat <<EOF > conftest.$ac_ext
5573#ifdef __cplusplus
5574extern "C" {
5575#endif
5576
5577EOF
5578	  # Now generate the symbol file.
5579	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5580
5581	  cat <<EOF >> conftest.$ac_ext
5582#if defined (__STDC__) && __STDC__
5583# define lt_ptr_t void *
5584#else
5585# define lt_ptr_t char *
5586# define const
5587#endif
5588
5589/* The mapping between symbol names and symbols. */
5590const struct {
5591  const char *name;
5592  lt_ptr_t address;
5593}
5594lt_preloaded_symbols[] =
5595{
5596EOF
5597	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5598	  cat <<\EOF >> conftest.$ac_ext
5599  {0, (lt_ptr_t) 0}
5600};
5601
5602#ifdef __cplusplus
5603}
5604#endif
5605EOF
5606	  # Now try linking the two files.
5607	  mv conftest.$ac_objext conftstm.$ac_objext
5608	  lt_save_LIBS="$LIBS"
5609	  lt_save_CFLAGS="$CFLAGS"
5610	  LIBS="conftstm.$ac_objext"
5611	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5612	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5613  (eval $ac_link) 2>&5
5614  ac_status=$?
5615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5617	    pipe_works=yes
5618	  fi
5619	  LIBS="$lt_save_LIBS"
5620	  CFLAGS="$lt_save_CFLAGS"
5621	else
5622	  echo "cannot find nm_test_func in $nlist" >&5
5623	fi
5624      else
5625	echo "cannot find nm_test_var in $nlist" >&5
5626      fi
5627    else
5628      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5629    fi
5630  else
5631    echo "$progname: failed program was:" >&5
5632    cat conftest.$ac_ext >&5
5633  fi
5634  rm -f conftest* conftst*
5635
5636  # Do not use the global_symbol_pipe unless it works.
5637  if test "$pipe_works" = yes; then
5638    break
5639  else
5640    lt_cv_sys_global_symbol_pipe=
5641  fi
5642done
5643
5644fi
5645
5646if test -z "$lt_cv_sys_global_symbol_pipe"; then
5647  lt_cv_sys_global_symbol_to_cdecl=
5648fi
5649if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5650  echo "$as_me:$LINENO: result: failed" >&5
5651echo "${ECHO_T}failed" >&6
5652else
5653  echo "$as_me:$LINENO: result: ok" >&5
5654echo "${ECHO_T}ok" >&6
5655fi
5656
5657echo "$as_me:$LINENO: checking for objdir" >&5
5658echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5659if test "${lt_cv_objdir+set}" = set; then
5660  echo $ECHO_N "(cached) $ECHO_C" >&6
5661else
5662  rm -f .libs 2>/dev/null
5663mkdir .libs 2>/dev/null
5664if test -d .libs; then
5665  lt_cv_objdir=.libs
5666else
5667  # MS-DOS does not allow filenames that begin with a dot.
5668  lt_cv_objdir=_libs
5669fi
5670rmdir .libs 2>/dev/null
5671fi
5672echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5673echo "${ECHO_T}$lt_cv_objdir" >&6
5674objdir=$lt_cv_objdir
5675
5676
5677
5678
5679
5680case $host_os in
5681aix3*)
5682  # AIX sometimes has problems with the GCC collect2 program.  For some
5683  # reason, if we set the COLLECT_NAMES environment variable, the problems
5684  # vanish in a puff of smoke.
5685  if test "X${COLLECT_NAMES+set}" != Xset; then
5686    COLLECT_NAMES=
5687    export COLLECT_NAMES
5688  fi
5689  ;;
5690esac
5691
5692# Sed substitution that helps us do robust quoting.  It backslashifies
5693# metacharacters that are still active within double-quoted strings.
5694Xsed='sed -e s/^X//'
5695sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5696
5697# Same as above, but do not quote variable references.
5698double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5699
5700# Sed substitution to delay expansion of an escaped shell variable in a
5701# double_quote_subst'ed string.
5702delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5703
5704# Sed substitution to avoid accidental globbing in evaled expressions
5705no_glob_subst='s/\*/\\\*/g'
5706
5707# Constants:
5708rm="rm -f"
5709
5710# Global variables:
5711default_ofile=mklib
5712can_build_shared=yes
5713
5714# All known linkers require a `.a' archive for static linking (except M$VC,
5715# which needs '.lib').
5716libext=a
5717ltmain="$ac_aux_dir/ltmain.sh"
5718ofile="$default_ofile"
5719with_gnu_ld="$lt_cv_prog_gnu_ld"
5720
5721if test -n "$ac_tool_prefix"; then
5722  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5723set dummy ${ac_tool_prefix}ar; ac_word=$2
5724echo "$as_me:$LINENO: checking for $ac_word" >&5
5725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5726if test "${ac_cv_prog_AR+set}" = set; then
5727  echo $ECHO_N "(cached) $ECHO_C" >&6
5728else
5729  if test -n "$AR"; then
5730  ac_cv_prog_AR="$AR" # Let the user override the test.
5731else
5732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733for as_dir in $PATH
5734do
5735  IFS=$as_save_IFS
5736  test -z "$as_dir" && as_dir=.
5737  for ac_exec_ext in '' $ac_executable_extensions; do
5738  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5739    ac_cv_prog_AR="${ac_tool_prefix}ar"
5740    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5741    break 2
5742  fi
5743done
5744done
5745
5746fi
5747fi
5748AR=$ac_cv_prog_AR
5749if test -n "$AR"; then
5750  echo "$as_me:$LINENO: result: $AR" >&5
5751echo "${ECHO_T}$AR" >&6
5752else
5753  echo "$as_me:$LINENO: result: no" >&5
5754echo "${ECHO_T}no" >&6
5755fi
5756
5757fi
5758if test -z "$ac_cv_prog_AR"; then
5759  ac_ct_AR=$AR
5760  # Extract the first word of "ar", so it can be a program name with args.
5761set dummy ar; ac_word=$2
5762echo "$as_me:$LINENO: checking for $ac_word" >&5
5763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5764if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5765  echo $ECHO_N "(cached) $ECHO_C" >&6
5766else
5767  if test -n "$ac_ct_AR"; then
5768  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5769else
5770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771for as_dir in $PATH
5772do
5773  IFS=$as_save_IFS
5774  test -z "$as_dir" && as_dir=.
5775  for ac_exec_ext in '' $ac_executable_extensions; do
5776  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5777    ac_cv_prog_ac_ct_AR="ar"
5778    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5779    break 2
5780  fi
5781done
5782done
5783
5784  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5785fi
5786fi
5787ac_ct_AR=$ac_cv_prog_ac_ct_AR
5788if test -n "$ac_ct_AR"; then
5789  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5790echo "${ECHO_T}$ac_ct_AR" >&6
5791else
5792  echo "$as_me:$LINENO: result: no" >&5
5793echo "${ECHO_T}no" >&6
5794fi
5795
5796  AR=$ac_ct_AR
5797else
5798  AR="$ac_cv_prog_AR"
5799fi
5800
5801if test -n "$ac_tool_prefix"; then
5802  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5803set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5804echo "$as_me:$LINENO: checking for $ac_word" >&5
5805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5806if test "${ac_cv_prog_RANLIB+set}" = set; then
5807  echo $ECHO_N "(cached) $ECHO_C" >&6
5808else
5809  if test -n "$RANLIB"; then
5810  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5811else
5812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813for as_dir in $PATH
5814do
5815  IFS=$as_save_IFS
5816  test -z "$as_dir" && as_dir=.
5817  for ac_exec_ext in '' $ac_executable_extensions; do
5818  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5820    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821    break 2
5822  fi
5823done
5824done
5825
5826fi
5827fi
5828RANLIB=$ac_cv_prog_RANLIB
5829if test -n "$RANLIB"; then
5830  echo "$as_me:$LINENO: result: $RANLIB" >&5
5831echo "${ECHO_T}$RANLIB" >&6
5832else
5833  echo "$as_me:$LINENO: result: no" >&5
5834echo "${ECHO_T}no" >&6
5835fi
5836
5837fi
5838if test -z "$ac_cv_prog_RANLIB"; then
5839  ac_ct_RANLIB=$RANLIB
5840  # Extract the first word of "ranlib", so it can be a program name with args.
5841set dummy ranlib; ac_word=$2
5842echo "$as_me:$LINENO: checking for $ac_word" >&5
5843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5844if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5845  echo $ECHO_N "(cached) $ECHO_C" >&6
5846else
5847  if test -n "$ac_ct_RANLIB"; then
5848  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5849else
5850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851for as_dir in $PATH
5852do
5853  IFS=$as_save_IFS
5854  test -z "$as_dir" && as_dir=.
5855  for ac_exec_ext in '' $ac_executable_extensions; do
5856  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857    ac_cv_prog_ac_ct_RANLIB="ranlib"
5858    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5859    break 2
5860  fi
5861done
5862done
5863
5864  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5865fi
5866fi
5867ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5868if test -n "$ac_ct_RANLIB"; then
5869  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5870echo "${ECHO_T}$ac_ct_RANLIB" >&6
5871else
5872  echo "$as_me:$LINENO: result: no" >&5
5873echo "${ECHO_T}no" >&6
5874fi
5875
5876  RANLIB=$ac_ct_RANLIB
5877else
5878  RANLIB="$ac_cv_prog_RANLIB"
5879fi
5880
5881if test -n "$ac_tool_prefix"; then
5882  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5883set dummy ${ac_tool_prefix}strip; ac_word=$2
5884echo "$as_me:$LINENO: checking for $ac_word" >&5
5885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5886if test "${ac_cv_prog_STRIP+set}" = set; then
5887  echo $ECHO_N "(cached) $ECHO_C" >&6
5888else
5889  if test -n "$STRIP"; then
5890  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5891else
5892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893for as_dir in $PATH
5894do
5895  IFS=$as_save_IFS
5896  test -z "$as_dir" && as_dir=.
5897  for ac_exec_ext in '' $ac_executable_extensions; do
5898  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5899    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5900    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901    break 2
5902  fi
5903done
5904done
5905
5906fi
5907fi
5908STRIP=$ac_cv_prog_STRIP
5909if test -n "$STRIP"; then
5910  echo "$as_me:$LINENO: result: $STRIP" >&5
5911echo "${ECHO_T}$STRIP" >&6
5912else
5913  echo "$as_me:$LINENO: result: no" >&5
5914echo "${ECHO_T}no" >&6
5915fi
5916
5917fi
5918if test -z "$ac_cv_prog_STRIP"; then
5919  ac_ct_STRIP=$STRIP
5920  # Extract the first word of "strip", so it can be a program name with args.
5921set dummy strip; ac_word=$2
5922echo "$as_me:$LINENO: checking for $ac_word" >&5
5923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5924if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5925  echo $ECHO_N "(cached) $ECHO_C" >&6
5926else
5927  if test -n "$ac_ct_STRIP"; then
5928  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5929else
5930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931for as_dir in $PATH
5932do
5933  IFS=$as_save_IFS
5934  test -z "$as_dir" && as_dir=.
5935  for ac_exec_ext in '' $ac_executable_extensions; do
5936  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5937    ac_cv_prog_ac_ct_STRIP="strip"
5938    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5939    break 2
5940  fi
5941done
5942done
5943
5944  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5945fi
5946fi
5947ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5948if test -n "$ac_ct_STRIP"; then
5949  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5950echo "${ECHO_T}$ac_ct_STRIP" >&6
5951else
5952  echo "$as_me:$LINENO: result: no" >&5
5953echo "${ECHO_T}no" >&6
5954fi
5955
5956  STRIP=$ac_ct_STRIP
5957else
5958  STRIP="$ac_cv_prog_STRIP"
5959fi
5960
5961
5962old_CC="$CC"
5963old_CFLAGS="$CFLAGS"
5964
5965# Set sane defaults for various variables
5966test -z "$AR" && AR=ar
5967test -z "$AR_FLAGS" && AR_FLAGS=cru
5968test -z "$AS" && AS=as
5969test -z "$CC" && CC=cc
5970test -z "$LTCC" && LTCC=$CC
5971test -z "$DLLTOOL" && DLLTOOL=dlltool
5972test -z "$LD" && LD=ld
5973test -z "$LN_S" && LN_S="ln -s"
5974test -z "$MAGIC_CMD" && MAGIC_CMD=file
5975test -z "$NM" && NM=nm
5976test -z "$SED" && SED=sed
5977test -z "$OBJDUMP" && OBJDUMP=objdump
5978test -z "$RANLIB" && RANLIB=:
5979test -z "$STRIP" && STRIP=:
5980test -z "$ac_objext" && ac_objext=o
5981
5982# Determine commands to create old-style static archives.
5983old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5984old_postinstall_cmds='chmod 644 $oldlib'
5985old_postuninstall_cmds=
5986
5987if test -n "$RANLIB"; then
5988  case $host_os in
5989  openbsd*)
5990    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5991    ;;
5992  *)
5993    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5994    ;;
5995  esac
5996  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5997fi
5998
5999# Only perform the check for file, if the check method requires it
6000case $deplibs_check_method in
6001file_magic*)
6002  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6003    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6004echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6005if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6006  echo $ECHO_N "(cached) $ECHO_C" >&6
6007else
6008  case $MAGIC_CMD in
6009[\\/*] |  ?:[\\/]*)
6010  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6011  ;;
6012*)
6013  lt_save_MAGIC_CMD="$MAGIC_CMD"
6014  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6015  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6016  for ac_dir in $ac_dummy; do
6017    IFS="$lt_save_ifs"
6018    test -z "$ac_dir" && ac_dir=.
6019    if test -f $ac_dir/${ac_tool_prefix}file; then
6020      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6021      if test -n "$file_magic_test_file"; then
6022	case $deplibs_check_method in
6023	"file_magic "*)
6024	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6025	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6026	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6027	    $EGREP "$file_magic_regex" > /dev/null; then
6028	    :
6029	  else
6030	    cat <<EOF 1>&2
6031
6032*** Warning: the command libtool uses to detect shared libraries,
6033*** $file_magic_cmd, produces output that libtool cannot recognize.
6034*** The result is that libtool may fail to recognize shared libraries
6035*** as such.  This will affect the creation of libtool libraries that
6036*** depend on shared libraries, but programs linked with such libtool
6037*** libraries will work regardless of this problem.  Nevertheless, you
6038*** may want to report the problem to your system manager and/or to
6039*** bug-libtool@gnu.org
6040
6041EOF
6042	  fi ;;
6043	esac
6044      fi
6045      break
6046    fi
6047  done
6048  IFS="$lt_save_ifs"
6049  MAGIC_CMD="$lt_save_MAGIC_CMD"
6050  ;;
6051esac
6052fi
6053
6054MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6055if test -n "$MAGIC_CMD"; then
6056  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6057echo "${ECHO_T}$MAGIC_CMD" >&6
6058else
6059  echo "$as_me:$LINENO: result: no" >&5
6060echo "${ECHO_T}no" >&6
6061fi
6062
6063if test -z "$lt_cv_path_MAGIC_CMD"; then
6064  if test -n "$ac_tool_prefix"; then
6065    echo "$as_me:$LINENO: checking for file" >&5
6066echo $ECHO_N "checking for file... $ECHO_C" >&6
6067if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6068  echo $ECHO_N "(cached) $ECHO_C" >&6
6069else
6070  case $MAGIC_CMD in
6071[\\/*] |  ?:[\\/]*)
6072  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6073  ;;
6074*)
6075  lt_save_MAGIC_CMD="$MAGIC_CMD"
6076  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6077  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6078  for ac_dir in $ac_dummy; do
6079    IFS="$lt_save_ifs"
6080    test -z "$ac_dir" && ac_dir=.
6081    if test -f $ac_dir/file; then
6082      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6083      if test -n "$file_magic_test_file"; then
6084	case $deplibs_check_method in
6085	"file_magic "*)
6086	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6087	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6088	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6089	    $EGREP "$file_magic_regex" > /dev/null; then
6090	    :
6091	  else
6092	    cat <<EOF 1>&2
6093
6094*** Warning: the command libtool uses to detect shared libraries,
6095*** $file_magic_cmd, produces output that libtool cannot recognize.
6096*** The result is that libtool may fail to recognize shared libraries
6097*** as such.  This will affect the creation of libtool libraries that
6098*** depend on shared libraries, but programs linked with such libtool
6099*** libraries will work regardless of this problem.  Nevertheless, you
6100*** may want to report the problem to your system manager and/or to
6101*** bug-libtool@gnu.org
6102
6103EOF
6104	  fi ;;
6105	esac
6106      fi
6107      break
6108    fi
6109  done
6110  IFS="$lt_save_ifs"
6111  MAGIC_CMD="$lt_save_MAGIC_CMD"
6112  ;;
6113esac
6114fi
6115
6116MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6117if test -n "$MAGIC_CMD"; then
6118  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6119echo "${ECHO_T}$MAGIC_CMD" >&6
6120else
6121  echo "$as_me:$LINENO: result: no" >&5
6122echo "${ECHO_T}no" >&6
6123fi
6124
6125  else
6126    MAGIC_CMD=:
6127  fi
6128fi
6129
6130  fi
6131  ;;
6132esac
6133
6134enable_dlopen=no
6135enable_win32_dll=no
6136
6137# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6138if test "${enable_libtool_lock+set}" = set; then
6139  enableval="$enable_libtool_lock"
6140
6141fi;
6142test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6143
6144
6145# Check whether --with-pic or --without-pic was given.
6146if test "${with_pic+set}" = set; then
6147  withval="$with_pic"
6148  pic_mode="$withval"
6149else
6150  pic_mode=default
6151fi;
6152test -z "$pic_mode" && pic_mode=default
6153
6154# Use C for the default configuration in the libtool script
6155tagname=
6156lt_save_CC="$CC"
6157ac_ext=c
6158ac_cpp='$CPP $CPPFLAGS'
6159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6161ac_compiler_gnu=$ac_cv_c_compiler_gnu
6162
6163
6164# Source file extension for C test sources.
6165ac_ext=c
6166
6167# Object file extension for compiled C test sources.
6168objext=o
6169objext=$objext
6170
6171# Code to be used in simple compile tests
6172lt_simple_compile_test_code="int some_variable = 0;\n"
6173
6174# Code to be used in simple link tests
6175lt_simple_link_test_code='int main(){return(0);}\n'
6176
6177
6178# If no C compiler was specified, use CC.
6179LTCC=${LTCC-"$CC"}
6180
6181# Allow CC to be a program name with arguments.
6182compiler=$CC
6183
6184
6185#
6186# Check for any special shared library compilation flags.
6187#
6188lt_prog_cc_shlib=
6189if test "$GCC" = no; then
6190  case $host_os in
6191  sco3.2v5*)
6192    lt_prog_cc_shlib='-belf'
6193    ;;
6194  esac
6195fi
6196if test -n "$lt_prog_cc_shlib"; then
6197  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6198echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6199  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6200  else
6201    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6202echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6203    lt_cv_prog_cc_can_build_shared=no
6204  fi
6205fi
6206
6207
6208#
6209# Check to make sure the static flag actually works.
6210#
6211echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6212echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6213if test "${lt_prog_compiler_static_works+set}" = set; then
6214  echo $ECHO_N "(cached) $ECHO_C" >&6
6215else
6216  lt_prog_compiler_static_works=no
6217   save_LDFLAGS="$LDFLAGS"
6218   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6219   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6220   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6221     # The compiler can only warn and ignore the option if not recognized
6222     # So say no if there are warnings
6223     if test -s conftest.err; then
6224       # Append any errors to the config.log.
6225       cat conftest.err 1>&5
6226     else
6227       lt_prog_compiler_static_works=yes
6228     fi
6229   fi
6230   $rm conftest*
6231   LDFLAGS="$save_LDFLAGS"
6232
6233fi
6234echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6235echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6236
6237if test x"$lt_prog_compiler_static_works" = xyes; then
6238    :
6239else
6240    lt_prog_compiler_static=
6241fi
6242
6243
6244
6245## CAVEAT EMPTOR:
6246## There is no encapsulation within the following macros, do not change
6247## the running order or otherwise move them around unless you know exactly
6248## what you are doing...
6249
6250lt_prog_compiler_no_builtin_flag=
6251
6252if test "$GCC" = yes; then
6253  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6254
6255  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6256echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6257if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6258  echo $ECHO_N "(cached) $ECHO_C" >&6
6259else
6260  lt_cv_prog_compiler_rtti_exceptions=no
6261  ac_outfile=conftest.$ac_objext
6262   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6263   lt_compiler_flag="-fno-rtti -fno-exceptions"
6264   # Insert the option either (1) after the last *FLAGS variable, or
6265   # (2) before a word containing "conftest.", or (3) at the end.
6266   # Note that $ac_compile itself does not contain backslashes and begins
6267   # with a dollar sign (not a hyphen), so the echo should work correctly.
6268   # The option is referenced via a variable to avoid confusing sed.
6269   lt_compile=`echo "$ac_compile" | $SED \
6270   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6271   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6272   -e 's:$: $lt_compiler_flag:'`
6273   (eval echo "\"\$as_me:6273: $lt_compile\"" >&5)
6274   (eval "$lt_compile" 2>conftest.err)
6275   ac_status=$?
6276   cat conftest.err >&5
6277   echo "$as_me:6277: \$? = $ac_status" >&5
6278   if (exit $ac_status) && test -s "$ac_outfile"; then
6279     # The compiler can only warn and ignore the option if not recognized
6280     # So say no if there are warnings
6281     if test ! -s conftest.err; then
6282       lt_cv_prog_compiler_rtti_exceptions=yes
6283     fi
6284   fi
6285   $rm conftest*
6286
6287fi
6288echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6289echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6290
6291if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6292    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6293else
6294    :
6295fi
6296
6297fi
6298
6299lt_prog_compiler_wl=
6300lt_prog_compiler_pic=
6301lt_prog_compiler_static=
6302
6303echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6304echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6305
6306  if test "$GCC" = yes; then
6307    lt_prog_compiler_wl='-Wl,'
6308    lt_prog_compiler_static='-static'
6309
6310    case $host_os in
6311      aix*)
6312      # All AIX code is PIC.
6313      if test "$host_cpu" = ia64; then
6314	# AIX 5 now supports IA64 processor
6315	lt_prog_compiler_static='-Bstatic'
6316      fi
6317      ;;
6318
6319    amigaos*)
6320      # FIXME: we need at least 68020 code to build shared libraries, but
6321      # adding the `-m68020' flag to GCC prevents building anything better,
6322      # like `-m68040'.
6323      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6324      ;;
6325
6326    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6327      # PIC is the default for these OSes.
6328      ;;
6329
6330    mingw* | pw32* | os2*)
6331      # This hack is so that the source file can tell whether it is being
6332      # built for inclusion in a dll (and should export symbols for example).
6333      lt_prog_compiler_pic='-DDLL_EXPORT'
6334      ;;
6335
6336    darwin* | rhapsody*)
6337      # PIC is the default on this platform
6338      # Common symbols not allowed in MH_DYLIB files
6339      lt_prog_compiler_pic='-fno-common'
6340      ;;
6341
6342    msdosdjgpp*)
6343      # Just because we use GCC doesn't mean we suddenly get shared libraries
6344      # on systems that don't support them.
6345      lt_prog_compiler_can_build_shared=no
6346      enable_shared=no
6347      ;;
6348
6349    sysv4*MP*)
6350      if test -d /usr/nec; then
6351	lt_prog_compiler_pic=-Kconform_pic
6352      fi
6353      ;;
6354
6355    hpux*)
6356      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6357      # not for PA HP-UX.
6358      case "$host_cpu" in
6359      hppa*64*|ia64*)
6360	# +Z the default
6361	;;
6362      *)
6363	lt_prog_compiler_pic='-fPIC'
6364	;;
6365      esac
6366      ;;
6367
6368    *)
6369      lt_prog_compiler_pic='-fPIC'
6370      ;;
6371    esac
6372  else
6373    # PORTME Check for flag to pass linker flags through the system compiler.
6374    case $host_os in
6375    aix*)
6376      lt_prog_compiler_wl='-Wl,'
6377      if test "$host_cpu" = ia64; then
6378	# AIX 5 now supports IA64 processor
6379	lt_prog_compiler_static='-Bstatic'
6380      else
6381	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6382      fi
6383      ;;
6384
6385    mingw* | pw32* | os2*)
6386      # This hack is so that the source file can tell whether it is being
6387      # built for inclusion in a dll (and should export symbols for example).
6388      lt_prog_compiler_pic='-DDLL_EXPORT'
6389      ;;
6390
6391    hpux9* | hpux10* | hpux11*)
6392      lt_prog_compiler_wl='-Wl,'
6393      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6394      # not for PA HP-UX.
6395      case "$host_cpu" in
6396      hppa*64*|ia64*)
6397	# +Z the default
6398	;;
6399      *)
6400	lt_prog_compiler_pic='+Z'
6401	;;
6402      esac
6403      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6404      lt_prog_compiler_static='${wl}-a ${wl}archive'
6405      ;;
6406
6407    irix5* | irix6* | nonstopux*)
6408      lt_prog_compiler_wl='-Wl,'
6409      # PIC (with -KPIC) is the default.
6410      lt_prog_compiler_static='-non_shared'
6411      ;;
6412
6413    newsos6)
6414      lt_prog_compiler_pic='-KPIC'
6415      lt_prog_compiler_static='-Bstatic'
6416      ;;
6417
6418    linux*)
6419      case $CC in
6420      icc|ecc)
6421	lt_prog_compiler_wl='-Wl,'
6422	lt_prog_compiler_pic='-KPIC'
6423	lt_prog_compiler_static='-static'
6424        ;;
6425      ccc)
6426        lt_prog_compiler_wl='-Wl,'
6427        # All Alpha code is PIC.
6428        lt_prog_compiler_static='-non_shared'
6429        ;;
6430      esac
6431      ;;
6432
6433    osf3* | osf4* | osf5*)
6434      lt_prog_compiler_wl='-Wl,'
6435      # All OSF/1 code is PIC.
6436      lt_prog_compiler_static='-non_shared'
6437      ;;
6438
6439    sco3.2v5*)
6440      lt_prog_compiler_pic='-Kpic'
6441      lt_prog_compiler_static='-dn'
6442      ;;
6443
6444    solaris*)
6445      lt_prog_compiler_wl='-Wl,'
6446      lt_prog_compiler_pic='-KPIC'
6447      lt_prog_compiler_static='-Bstatic'
6448      ;;
6449
6450    sunos4*)
6451      lt_prog_compiler_wl='-Qoption ld '
6452      lt_prog_compiler_pic='-PIC'
6453      lt_prog_compiler_static='-Bstatic'
6454      ;;
6455
6456    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6457      lt_prog_compiler_wl='-Wl,'
6458      lt_prog_compiler_pic='-KPIC'
6459      lt_prog_compiler_static='-Bstatic'
6460      ;;
6461
6462    sysv4*MP*)
6463      if test -d /usr/nec ;then
6464	lt_prog_compiler_pic='-Kconform_pic'
6465	lt_prog_compiler_static='-Bstatic'
6466      fi
6467      ;;
6468
6469    uts4*)
6470      lt_prog_compiler_pic='-pic'
6471      lt_prog_compiler_static='-Bstatic'
6472      ;;
6473
6474    *)
6475      lt_prog_compiler_can_build_shared=no
6476      ;;
6477    esac
6478  fi
6479
6480echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6481echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6482
6483#
6484# Check to make sure the PIC flag actually works.
6485#
6486if test -n "$lt_prog_compiler_pic"; then
6487  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6488echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6489if test "${lt_prog_compiler_pic_works+set}" = set; then
6490  echo $ECHO_N "(cached) $ECHO_C" >&6
6491else
6492  lt_prog_compiler_pic_works=no
6493  ac_outfile=conftest.$ac_objext
6494   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6495   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6496   # Insert the option either (1) after the last *FLAGS variable, or
6497   # (2) before a word containing "conftest.", or (3) at the end.
6498   # Note that $ac_compile itself does not contain backslashes and begins
6499   # with a dollar sign (not a hyphen), so the echo should work correctly.
6500   # The option is referenced via a variable to avoid confusing sed.
6501   lt_compile=`echo "$ac_compile" | $SED \
6502   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6503   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6504   -e 's:$: $lt_compiler_flag:'`
6505   (eval echo "\"\$as_me:6505: $lt_compile\"" >&5)
6506   (eval "$lt_compile" 2>conftest.err)
6507   ac_status=$?
6508   cat conftest.err >&5
6509   echo "$as_me:6509: \$? = $ac_status" >&5
6510   if (exit $ac_status) && test -s "$ac_outfile"; then
6511     # The compiler can only warn and ignore the option if not recognized
6512     # So say no if there are warnings
6513     if test ! -s conftest.err; then
6514       lt_prog_compiler_pic_works=yes
6515     fi
6516   fi
6517   $rm conftest*
6518
6519fi
6520echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6521echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6522
6523if test x"$lt_prog_compiler_pic_works" = xyes; then
6524    case $lt_prog_compiler_pic in
6525     "" | " "*) ;;
6526     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6527     esac
6528else
6529    lt_prog_compiler_pic=
6530     lt_prog_compiler_can_build_shared=no
6531fi
6532
6533fi
6534case "$host_os" in
6535  # For platforms which do not support PIC, -DPIC is meaningless:
6536  *djgpp*)
6537    lt_prog_compiler_pic=
6538    ;;
6539  *)
6540    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6541    ;;
6542esac
6543
6544echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6545echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6546if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6547  echo $ECHO_N "(cached) $ECHO_C" >&6
6548else
6549  lt_cv_prog_compiler_c_o=no
6550   $rm -r conftest 2>/dev/null
6551   mkdir conftest
6552   cd conftest
6553   mkdir out
6554   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6555
6556   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6557   # that will create temporary files in the current directory regardless of
6558   # the output directory.  Thus, making CWD read-only will cause this test
6559   # to fail, enabling locking or at least warning the user not to do parallel
6560   # builds.
6561   chmod -w .
6562
6563   lt_compiler_flag="-o out/conftest2.$ac_objext"
6564   # Insert the option either (1) after the last *FLAGS variable, or
6565   # (2) before a word containing "conftest.", or (3) at the end.
6566   # Note that $ac_compile itself does not contain backslashes and begins
6567   # with a dollar sign (not a hyphen), so the echo should work correctly.
6568   lt_compile=`echo "$ac_compile" | $SED \
6569   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6570   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6571   -e 's:$: $lt_compiler_flag:'`
6572   (eval echo "\"\$as_me:6572: $lt_compile\"" >&5)
6573   (eval "$lt_compile" 2>out/conftest.err)
6574   ac_status=$?
6575   cat out/conftest.err >&5
6576   echo "$as_me:6576: \$? = $ac_status" >&5
6577   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6578   then
6579     # The compiler can only warn and ignore the option if not recognized
6580     # So say no if there are warnings
6581     if test ! -s out/conftest.err; then
6582       lt_cv_prog_compiler_c_o=yes
6583     fi
6584   fi
6585   chmod u+w .
6586   $rm conftest* out/*
6587   rmdir out
6588   cd ..
6589   rmdir conftest
6590   $rm conftest*
6591
6592fi
6593echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6594echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6595
6596
6597hard_links="nottested"
6598if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6599  # do not overwrite the value of need_locks provided by the user
6600  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6601echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6602  hard_links=yes
6603  $rm conftest*
6604  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6605  touch conftest.a
6606  ln conftest.a conftest.b 2>&5 || hard_links=no
6607  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6608  echo "$as_me:$LINENO: result: $hard_links" >&5
6609echo "${ECHO_T}$hard_links" >&6
6610  if test "$hard_links" = no; then
6611    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6612echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6613    need_locks=warn
6614  fi
6615else
6616  need_locks=no
6617fi
6618
6619echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6620echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6621
6622  runpath_var=
6623  allow_undefined_flag=
6624  enable_shared_with_static_runtimes=no
6625  archive_cmds=
6626  archive_expsym_cmds=
6627  old_archive_From_new_cmds=
6628  old_archive_from_expsyms_cmds=
6629  export_dynamic_flag_spec=
6630  whole_archive_flag_spec=
6631  thread_safe_flag_spec=
6632  hardcode_libdir_flag_spec=
6633  hardcode_libdir_flag_spec_ld=
6634  hardcode_libdir_separator=
6635  hardcode_direct=no
6636  hardcode_minus_L=no
6637  hardcode_shlibpath_var=unsupported
6638  link_all_deplibs=unknown
6639  hardcode_automatic=no
6640  module_cmds=
6641  module_expsym_cmds=
6642  always_export_symbols=no
6643  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6644  # include_expsyms should be a list of space-separated symbols to be *always*
6645  # included in the symbol list
6646  include_expsyms=
6647  # exclude_expsyms can be an extended regexp of symbols to exclude
6648  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6649  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6650  # as well as any symbol that contains `d'.
6651  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6652  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6653  # platforms (ab)use it in PIC code, but their linkers get confused if
6654  # the symbol is explicitly referenced.  Since portable code cannot
6655  # rely on this symbol name, it's probably fine to never include it in
6656  # preloaded symbol tables.
6657  extract_expsyms_cmds=
6658
6659  case $host_os in
6660  cygwin* | mingw* | pw32*)
6661    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6662    # When not using gcc, we currently assume that we are using
6663    # Microsoft Visual C++.
6664    if test "$GCC" != yes; then
6665      with_gnu_ld=no
6666    fi
6667    ;;
6668  openbsd*)
6669    with_gnu_ld=no
6670    ;;
6671  esac
6672
6673  ld_shlibs=yes
6674  if test "$with_gnu_ld" = yes; then
6675    # If archive_cmds runs LD, not CC, wlarc should be empty
6676    wlarc='${wl}'
6677
6678    # See if GNU ld supports shared libraries.
6679    case $host_os in
6680    aix3* | aix4* | aix5*)
6681      # On AIX/PPC, the GNU linker is very broken
6682      if test "$host_cpu" != ia64; then
6683	ld_shlibs=no
6684	cat <<EOF 1>&2
6685
6686*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6687*** to be unable to reliably create shared libraries on AIX.
6688*** Therefore, libtool is disabling shared libraries support.  If you
6689*** really care for shared libraries, you may want to modify your PATH
6690*** so that a non-GNU linker is found, and then restart.
6691
6692EOF
6693      fi
6694      ;;
6695
6696    amigaos*)
6697      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)'
6698      hardcode_libdir_flag_spec='-L$libdir'
6699      hardcode_minus_L=yes
6700
6701      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6702      # that the semantics of dynamic libraries on AmigaOS, at least up
6703      # to version 4, is to share data among multiple programs linked
6704      # with the same dynamic library.  Since this doesn't match the
6705      # behavior of shared libraries on other platforms, we can't use
6706      # them.
6707      ld_shlibs=no
6708      ;;
6709
6710    beos*)
6711      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6712	allow_undefined_flag=unsupported
6713	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6714	# support --undefined.  This deserves some investigation.  FIXME
6715	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6716      else
6717	ld_shlibs=no
6718      fi
6719      ;;
6720
6721    cygwin* | mingw* | pw32*)
6722      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6723      # as there is no search path for DLLs.
6724      hardcode_libdir_flag_spec='-L$libdir'
6725      allow_undefined_flag=unsupported
6726      always_export_symbols=no
6727      enable_shared_with_static_runtimes=yes
6728      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6729
6730      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6731        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6732	# If the export-symbols file already is a .def file (1st line
6733	# is EXPORTS), use it as is; otherwise, prepend...
6734	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6735	  cp $export_symbols $output_objdir/$soname.def;
6736	else
6737	  echo EXPORTS > $output_objdir/$soname.def;
6738	  cat $export_symbols >> $output_objdir/$soname.def;
6739	fi~
6740	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6741      else
6742	ld_shlibs=no
6743      fi
6744      ;;
6745
6746    netbsd*)
6747      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6748	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6749	wlarc=
6750      else
6751	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6752	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6753      fi
6754      ;;
6755
6756    solaris* | sysv5*)
6757      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6758	ld_shlibs=no
6759	cat <<EOF 1>&2
6760
6761*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6762*** create shared libraries on Solaris systems.  Therefore, libtool
6763*** is disabling shared libraries support.  We urge you to upgrade GNU
6764*** binutils to release 2.9.1 or newer.  Another option is to modify
6765*** your PATH or compiler configuration so that the native linker is
6766*** used, and then restart.
6767
6768EOF
6769      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6770	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6771	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6772      else
6773	ld_shlibs=no
6774      fi
6775      ;;
6776
6777    sunos4*)
6778      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6779      wlarc=
6780      hardcode_direct=yes
6781      hardcode_shlibpath_var=no
6782      ;;
6783
6784    *)
6785      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6786	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6787	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6788      else
6789	ld_shlibs=no
6790      fi
6791      ;;
6792    esac
6793
6794    if test "$ld_shlibs" = yes; then
6795      runpath_var=LD_RUN_PATH
6796      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6797      export_dynamic_flag_spec='${wl}--export-dynamic'
6798      # ancient GNU ld didn't support --whole-archive et. al.
6799      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6800 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6801      else
6802  	whole_archive_flag_spec=
6803      fi
6804    fi
6805  else
6806    # PORTME fill in a description of your system's linker (not GNU ld)
6807    case $host_os in
6808    aix3*)
6809      allow_undefined_flag=unsupported
6810      always_export_symbols=yes
6811      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'
6812      # Note: this linker hardcodes the directories in LIBPATH if there
6813      # are no directories specified by -L.
6814      hardcode_minus_L=yes
6815      if test "$GCC" = yes && test -z "$link_static_flag"; then
6816	# Neither direct hardcoding nor static linking is supported with a
6817	# broken collect2.
6818	hardcode_direct=unsupported
6819      fi
6820      ;;
6821
6822    aix4* | aix5*)
6823      if test "$host_cpu" = ia64; then
6824	# On IA64, the linker does run time linking by default, so we don't
6825	# have to do anything special.
6826	aix_use_runtimelinking=no
6827	exp_sym_flag='-Bexport'
6828	no_entry_flag=""
6829      else
6830	# If we're using GNU nm, then we don't want the "-C" option.
6831	# -C means demangle to AIX nm, but means don't demangle with GNU nm
6832	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6833	  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'
6834	else
6835	  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'
6836	fi
6837	aix_use_runtimelinking=no
6838
6839	# Test if we are trying to use run time linking or normal
6840	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6841	# need to do runtime linking.
6842	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6843	  for ld_flag in $LDFLAGS; do
6844  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6845  	    aix_use_runtimelinking=yes
6846  	    break
6847  	  fi
6848	  done
6849	esac
6850
6851	exp_sym_flag='-bexport'
6852	no_entry_flag='-bnoentry'
6853      fi
6854
6855      # When large executables or shared objects are built, AIX ld can
6856      # have problems creating the table of contents.  If linking a library
6857      # or program results in "error TOC overflow" add -mminimal-toc to
6858      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6859      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6860
6861      archive_cmds=''
6862      hardcode_direct=yes
6863      hardcode_libdir_separator=':'
6864      link_all_deplibs=yes
6865
6866      if test "$GCC" = yes; then
6867	case $host_os in aix4.012|aix4.012.*)
6868	# We only want to do this on AIX 4.2 and lower, the check
6869	# below for broken collect2 doesn't work under 4.3+
6870	  collect2name=`${CC} -print-prog-name=collect2`
6871	  if test -f "$collect2name" && \
6872  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
6873	  then
6874  	  # We have reworked collect2
6875  	  hardcode_direct=yes
6876	  else
6877  	  # We have old collect2
6878  	  hardcode_direct=unsupported
6879  	  # It fails to find uninstalled libraries when the uninstalled
6880  	  # path is not listed in the libpath.  Setting hardcode_minus_L
6881  	  # to unsupported forces relinking
6882  	  hardcode_minus_L=yes
6883  	  hardcode_libdir_flag_spec='-L$libdir'
6884  	  hardcode_libdir_separator=
6885	  fi
6886	esac
6887	shared_flag='-shared'
6888      else
6889	# not using gcc
6890	if test "$host_cpu" = ia64; then
6891  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6892  	# chokes on -Wl,-G. The following line is correct:
6893	  shared_flag='-G'
6894	else
6895  	if test "$aix_use_runtimelinking" = yes; then
6896	    shared_flag='${wl}-G'
6897	  else
6898	    shared_flag='${wl}-bM:SRE'
6899  	fi
6900	fi
6901      fi
6902
6903      # It seems that -bexpall does not export symbols beginning with
6904      # underscore (_), so it is better to generate a list of symbols to export.
6905      always_export_symbols=yes
6906      if test "$aix_use_runtimelinking" = yes; then
6907	# Warning - without using the other runtime loading flags (-brtl),
6908	# -berok will link without error, but may produce a broken library.
6909	allow_undefined_flag='-berok'
6910       # Determine the default libpath from the value encoded in an empty executable.
6911       cat >conftest.$ac_ext <<_ACEOF
6912#line $LINENO "configure"
6913/* confdefs.h.  */
6914_ACEOF
6915cat confdefs.h >>conftest.$ac_ext
6916cat >>conftest.$ac_ext <<_ACEOF
6917/* end confdefs.h.  */
6918
6919int
6920main ()
6921{
6922
6923  ;
6924  return 0;
6925}
6926_ACEOF
6927rm -f conftest.$ac_objext conftest$ac_exeext
6928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6929  (eval $ac_link) 2>&5
6930  ac_status=$?
6931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932  (exit $ac_status); } &&
6933         { ac_try='test -s conftest$ac_exeext'
6934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6935  (eval $ac_try) 2>&5
6936  ac_status=$?
6937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938  (exit $ac_status); }; }; then
6939
6940aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6941}'`
6942# Check for a 64-bit object if we didn't find anything.
6943if 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; }
6944}'`; fi
6945else
6946  echo "$as_me: failed program was:" >&5
6947sed 's/^/| /' conftest.$ac_ext >&5
6948
6949fi
6950rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6951if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6952
6953       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6954	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"
6955       else
6956	if test "$host_cpu" = ia64; then
6957	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6958	  allow_undefined_flag="-z nodefs"
6959	  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"
6960	else
6961	 # Determine the default libpath from the value encoded in an empty executable.
6962	 cat >conftest.$ac_ext <<_ACEOF
6963#line $LINENO "configure"
6964/* confdefs.h.  */
6965_ACEOF
6966cat confdefs.h >>conftest.$ac_ext
6967cat >>conftest.$ac_ext <<_ACEOF
6968/* end confdefs.h.  */
6969
6970int
6971main ()
6972{
6973
6974  ;
6975  return 0;
6976}
6977_ACEOF
6978rm -f conftest.$ac_objext conftest$ac_exeext
6979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6980  (eval $ac_link) 2>&5
6981  ac_status=$?
6982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983  (exit $ac_status); } &&
6984         { ac_try='test -s conftest$ac_exeext'
6985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986  (eval $ac_try) 2>&5
6987  ac_status=$?
6988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989  (exit $ac_status); }; }; then
6990
6991aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6992}'`
6993# Check for a 64-bit object if we didn't find anything.
6994if 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; }
6995}'`; fi
6996else
6997  echo "$as_me: failed program was:" >&5
6998sed 's/^/| /' conftest.$ac_ext >&5
6999
7000fi
7001rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7002if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7003
7004	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7005	  # Warning - without using the other run time loading flags,
7006	  # -berok will link without error, but may produce a broken library.
7007	  no_undefined_flag=' ${wl}-bernotok'
7008	  allow_undefined_flag=' ${wl}-berok'
7009	  # -bexpall does not export symbols beginning with underscore (_)
7010	  always_export_symbols=yes
7011	  # Exported symbols can be pulled into shared objects from archives
7012	  whole_archive_flag_spec=' '
7013	  archive_cmds_need_lc=yes
7014	  # This is similar to how AIX traditionally builds it's shared libraries.
7015	  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'
7016	fi
7017      fi
7018      ;;
7019
7020    amigaos*)
7021      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)'
7022      hardcode_libdir_flag_spec='-L$libdir'
7023      hardcode_minus_L=yes
7024      # see comment about different semantics on the GNU ld section
7025      ld_shlibs=no
7026      ;;
7027
7028    bsdi4*)
7029      export_dynamic_flag_spec=-rdynamic
7030      ;;
7031
7032    cygwin* | mingw* | pw32*)
7033      # When not using gcc, we currently assume that we are using
7034      # Microsoft Visual C++.
7035      # hardcode_libdir_flag_spec is actually meaningless, as there is
7036      # no search path for DLLs.
7037      hardcode_libdir_flag_spec=' '
7038      allow_undefined_flag=unsupported
7039      # Tell ltmain to make .lib files, not .a files.
7040      libext=lib
7041      # Tell ltmain to make .dll files, not .so files.
7042      shrext=".dll"
7043      # FIXME: Setting linknames here is a bad hack.
7044      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7045      # The linker will automatically build a .lib file if we build a DLL.
7046      old_archive_From_new_cmds='true'
7047      # FIXME: Should let the user specify the lib program.
7048      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7049      fix_srcfile_path='`cygpath -w "$srcfile"`'
7050      enable_shared_with_static_runtimes=yes
7051      ;;
7052
7053    darwin* | rhapsody*)
7054    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7055      archive_cmds_need_lc=no
7056      case "$host_os" in
7057      rhapsody* | darwin1.[012])
7058	allow_undefined_flag='-undefined suppress'
7059	;;
7060      *) # Darwin 1.3 on
7061	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7062	;;
7063      esac
7064      # FIXME: Relying on posixy $() will cause problems for
7065      #        cross-compilation, but unfortunately the echo tests do not
7066      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7067      #	       `"' quotes if we put them in here... so don't!
7068    	lt_int_apple_cc_single_mod=no
7069    	output_verbose_link_cmd='echo'
7070    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7071    	  lt_int_apple_cc_single_mod=yes
7072    	fi
7073    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7074    	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7075    	else
7076        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'
7077      fi
7078      module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7079      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7080        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7081          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}'
7082        else
7083          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}'
7084        fi
7085          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}'
7086      hardcode_direct=no
7087      hardcode_automatic=yes
7088      hardcode_shlibpath_var=unsupported
7089      whole_archive_flag_spec='-all_load $convenience'
7090      link_all_deplibs=yes
7091    fi
7092      ;;
7093
7094    dgux*)
7095      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7096      hardcode_libdir_flag_spec='-L$libdir'
7097      hardcode_shlibpath_var=no
7098      ;;
7099
7100    freebsd1*)
7101      ld_shlibs=no
7102      ;;
7103
7104    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7105    # support.  Future versions do this automatically, but an explicit c++rt0.o
7106    # does not break anything, and helps significantly (at the cost of a little
7107    # extra space).
7108    freebsd2.2*)
7109      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7110      hardcode_libdir_flag_spec='-R$libdir'
7111      hardcode_direct=yes
7112      hardcode_shlibpath_var=no
7113      ;;
7114
7115    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7116    freebsd2*)
7117      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7118      hardcode_direct=yes
7119      hardcode_minus_L=yes
7120      hardcode_shlibpath_var=no
7121      ;;
7122
7123    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7124    freebsd*)
7125      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7126      hardcode_libdir_flag_spec='-R$libdir'
7127      hardcode_direct=yes
7128      hardcode_shlibpath_var=no
7129      ;;
7130
7131    hpux9*)
7132      if test "$GCC" = yes; then
7133	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'
7134      else
7135	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'
7136      fi
7137      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7138      hardcode_libdir_separator=:
7139      hardcode_direct=yes
7140
7141      # hardcode_minus_L: Not really in the search PATH,
7142      # but as the default location of the library.
7143      hardcode_minus_L=yes
7144      export_dynamic_flag_spec='${wl}-E'
7145      ;;
7146
7147    hpux10* | hpux11*)
7148      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7149	case "$host_cpu" in
7150	hppa*64*|ia64*)
7151	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7152	  ;;
7153	*)
7154	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7155	  ;;
7156	esac
7157      else
7158	case "$host_cpu" in
7159	hppa*64*|ia64*)
7160	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7161	  ;;
7162	*)
7163	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7164	  ;;
7165	esac
7166      fi
7167      if test "$with_gnu_ld" = no; then
7168	case "$host_cpu" in
7169	hppa*64*)
7170	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7171	  hardcode_libdir_flag_spec_ld='+b $libdir'
7172	  hardcode_libdir_separator=:
7173	  hardcode_direct=no
7174	  hardcode_shlibpath_var=no
7175	  ;;
7176	ia64*)
7177	  hardcode_libdir_flag_spec='-L$libdir'
7178	  hardcode_direct=no
7179	  hardcode_shlibpath_var=no
7180
7181	  # hardcode_minus_L: Not really in the search PATH,
7182	  # but as the default location of the library.
7183	  hardcode_minus_L=yes
7184	  ;;
7185	*)
7186	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7187	  hardcode_libdir_separator=:
7188	  hardcode_direct=yes
7189	  export_dynamic_flag_spec='${wl}-E'
7190
7191	  # hardcode_minus_L: Not really in the search PATH,
7192	  # but as the default location of the library.
7193	  hardcode_minus_L=yes
7194	  ;;
7195	esac
7196      fi
7197      ;;
7198
7199    irix5* | irix6* | nonstopux*)
7200      if test "$GCC" = yes; then
7201	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'
7202      else
7203	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'
7204	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7205      fi
7206      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7207      hardcode_libdir_separator=:
7208      link_all_deplibs=yes
7209      ;;
7210
7211    netbsd*)
7212      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7213	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7214      else
7215	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7216      fi
7217      hardcode_libdir_flag_spec='-R$libdir'
7218      hardcode_direct=yes
7219      hardcode_shlibpath_var=no
7220      ;;
7221
7222    newsos6)
7223      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7224      hardcode_direct=yes
7225      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7226      hardcode_libdir_separator=:
7227      hardcode_shlibpath_var=no
7228      ;;
7229
7230    openbsd*)
7231      hardcode_direct=yes
7232      hardcode_shlibpath_var=no
7233      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7234	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7235	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7236	export_dynamic_flag_spec='${wl}-E'
7237      else
7238       case $host_os in
7239	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7240	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7241	   hardcode_libdir_flag_spec='-R$libdir'
7242	   ;;
7243	 *)
7244	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7245	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7246	   ;;
7247       esac
7248      fi
7249      ;;
7250
7251    os2*)
7252      hardcode_libdir_flag_spec='-L$libdir'
7253      hardcode_minus_L=yes
7254      allow_undefined_flag=unsupported
7255      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'
7256      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7257      ;;
7258
7259    osf3*)
7260      if test "$GCC" = yes; then
7261	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7262	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'
7263      else
7264	allow_undefined_flag=' -expect_unresolved \*'
7265	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'
7266      fi
7267      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7268      hardcode_libdir_separator=:
7269      ;;
7270
7271    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7272      if test "$GCC" = yes; then
7273	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7274	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'
7275	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7276      else
7277	allow_undefined_flag=' -expect_unresolved \*'
7278	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'
7279	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7280	$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'
7281
7282	# Both c and cxx compiler support -rpath directly
7283	hardcode_libdir_flag_spec='-rpath $libdir'
7284      fi
7285      hardcode_libdir_separator=:
7286      ;;
7287
7288    sco3.2v5*)
7289      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7290      hardcode_shlibpath_var=no
7291      export_dynamic_flag_spec='${wl}-Bexport'
7292      runpath_var=LD_RUN_PATH
7293      hardcode_runpath_var=yes
7294      ;;
7295
7296    solaris*)
7297      no_undefined_flag=' -z text'
7298      if test "$GCC" = yes; then
7299	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7300	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7301	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7302      else
7303	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7304	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7305  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7306      fi
7307      hardcode_libdir_flag_spec='-R$libdir'
7308      hardcode_shlibpath_var=no
7309      case $host_os in
7310      solaris2.[0-5] | solaris2.[0-5].*) ;;
7311      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7312	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7313      esac
7314      link_all_deplibs=yes
7315      ;;
7316
7317    sunos4*)
7318      if test "x$host_vendor" = xsequent; then
7319	# Use $CC to link under sequent, because it throws in some extra .o
7320	# files that make .init and .fini sections work.
7321	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7322      else
7323	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7324      fi
7325      hardcode_libdir_flag_spec='-L$libdir'
7326      hardcode_direct=yes
7327      hardcode_minus_L=yes
7328      hardcode_shlibpath_var=no
7329      ;;
7330
7331    sysv4)
7332      case $host_vendor in
7333	sni)
7334	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7335	  hardcode_direct=yes # is this really true???
7336	;;
7337	siemens)
7338	  ## LD is ld it makes a PLAMLIB
7339	  ## CC just makes a GrossModule.
7340	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7341	  reload_cmds='$CC -r -o $output$reload_objs'
7342	  hardcode_direct=no
7343        ;;
7344	motorola)
7345	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7346	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7347	;;
7348      esac
7349      runpath_var='LD_RUN_PATH'
7350      hardcode_shlibpath_var=no
7351      ;;
7352
7353    sysv4.3*)
7354      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7355      hardcode_shlibpath_var=no
7356      export_dynamic_flag_spec='-Bexport'
7357      ;;
7358
7359    sysv4*MP*)
7360      if test -d /usr/nec; then
7361	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7362	hardcode_shlibpath_var=no
7363	runpath_var=LD_RUN_PATH
7364	hardcode_runpath_var=yes
7365	ld_shlibs=yes
7366      fi
7367      ;;
7368
7369    sysv4.2uw2*)
7370      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7371      hardcode_direct=yes
7372      hardcode_minus_L=no
7373      hardcode_shlibpath_var=no
7374      hardcode_runpath_var=yes
7375      runpath_var=LD_RUN_PATH
7376      ;;
7377
7378   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7379      no_undefined_flag='${wl}-z ${wl}text'
7380      if test "$GCC" = yes; then
7381	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7382      else
7383	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7384      fi
7385      runpath_var='LD_RUN_PATH'
7386      hardcode_shlibpath_var=no
7387      ;;
7388
7389    sysv5*)
7390      no_undefined_flag=' -z text'
7391      # $CC -shared without GNU ld will not create a library from C++
7392      # object files and a static libstdc++, better avoid it by now
7393      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7394      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7395  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7396      hardcode_libdir_flag_spec=
7397      hardcode_shlibpath_var=no
7398      runpath_var='LD_RUN_PATH'
7399      ;;
7400
7401    uts4*)
7402      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7403      hardcode_libdir_flag_spec='-L$libdir'
7404      hardcode_shlibpath_var=no
7405      ;;
7406
7407    *)
7408      ld_shlibs=no
7409      ;;
7410    esac
7411  fi
7412
7413echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7414echo "${ECHO_T}$ld_shlibs" >&6
7415test "$ld_shlibs" = no && can_build_shared=no
7416
7417variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7418if test "$GCC" = yes; then
7419  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7420fi
7421
7422#
7423# Do we need to explicitly link libc?
7424#
7425case "x$archive_cmds_need_lc" in
7426x|xyes)
7427  # Assume -lc should be added
7428  archive_cmds_need_lc=yes
7429
7430  if test "$enable_shared" = yes && test "$GCC" = yes; then
7431    case $archive_cmds in
7432    *'~'*)
7433      # FIXME: we may have to deal with multi-command sequences.
7434      ;;
7435    '$CC '*)
7436      # Test whether the compiler implicitly links with -lc since on some
7437      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7438      # to ld, don't add -lc before -lgcc.
7439      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7440echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7441      $rm conftest*
7442      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7443
7444      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7445  (eval $ac_compile) 2>&5
7446  ac_status=$?
7447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448  (exit $ac_status); } 2>conftest.err; then
7449        soname=conftest
7450        lib=conftest
7451        libobjs=conftest.$ac_objext
7452        deplibs=
7453        wl=$lt_prog_compiler_wl
7454        compiler_flags=-v
7455        linker_flags=-v
7456        verstring=
7457        output_objdir=.
7458        libname=conftest
7459        lt_save_allow_undefined_flag=$allow_undefined_flag
7460        allow_undefined_flag=
7461        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7462  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7463  ac_status=$?
7464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465  (exit $ac_status); }
7466        then
7467	  archive_cmds_need_lc=no
7468        else
7469	  archive_cmds_need_lc=yes
7470        fi
7471        allow_undefined_flag=$lt_save_allow_undefined_flag
7472      else
7473        cat conftest.err 1>&5
7474      fi
7475      $rm conftest*
7476      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7477echo "${ECHO_T}$archive_cmds_need_lc" >&6
7478      ;;
7479    esac
7480  fi
7481  ;;
7482esac
7483
7484echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7485echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7486hardcode_action=
7487if test -n "$hardcode_libdir_flag_spec" || \
7488   test -n "$runpath_var " || \
7489   test "X$hardcode_automatic"="Xyes" ; then
7490
7491  # We can hardcode non-existant directories.
7492  if test "$hardcode_direct" != no &&
7493     # If the only mechanism to avoid hardcoding is shlibpath_var, we
7494     # have to relink, otherwise we might link with an installed library
7495     # when we should be linking with a yet-to-be-installed one
7496     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7497     test "$hardcode_minus_L" != no; then
7498    # Linking always hardcodes the temporary library directory.
7499    hardcode_action=relink
7500  else
7501    # We can link without hardcoding, and we can hardcode nonexisting dirs.
7502    hardcode_action=immediate
7503  fi
7504else
7505  # We cannot hardcode anything, or else we can only hardcode existing
7506  # directories.
7507  hardcode_action=unsupported
7508fi
7509echo "$as_me:$LINENO: result: $hardcode_action" >&5
7510echo "${ECHO_T}$hardcode_action" >&6
7511
7512if test "$hardcode_action" = relink; then
7513  # Fast installation is not supported
7514  enable_fast_install=no
7515elif test "$shlibpath_overrides_runpath" = yes ||
7516     test "$enable_shared" = no; then
7517  # Fast installation is not necessary
7518  enable_fast_install=needless
7519fi
7520
7521striplib=
7522old_striplib=
7523echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7524echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7525if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7526  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7527  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7528  echo "$as_me:$LINENO: result: yes" >&5
7529echo "${ECHO_T}yes" >&6
7530else
7531# FIXME - insert some real tests, host_os isn't really good enough
7532  case $host_os in
7533   darwin*)
7534       if test -n "$STRIP" ; then
7535         striplib="$STRIP -x"
7536         echo "$as_me:$LINENO: result: yes" >&5
7537echo "${ECHO_T}yes" >&6
7538       else
7539  echo "$as_me:$LINENO: result: no" >&5
7540echo "${ECHO_T}no" >&6
7541fi
7542       ;;
7543   *)
7544  echo "$as_me:$LINENO: result: no" >&5
7545echo "${ECHO_T}no" >&6
7546    ;;
7547  esac
7548fi
7549
7550echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7551echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7552library_names_spec=
7553libname_spec='lib$name'
7554soname_spec=
7555shrext=".so"
7556postinstall_cmds=
7557postuninstall_cmds=
7558finish_cmds=
7559finish_eval=
7560shlibpath_var=
7561shlibpath_overrides_runpath=unknown
7562version_type=none
7563dynamic_linker="$host_os ld.so"
7564sys_lib_dlsearch_path_spec="/lib /usr/lib"
7565if test "$GCC" = yes; then
7566  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7567  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7568    # if the path contains ";" then we assume it to be the separator
7569    # otherwise default to the standard path separator (i.e. ":") - it is
7570    # assumed that no part of a normal pathname contains ";" but that should
7571    # okay in the real world where ";" in dirpaths is itself problematic.
7572    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7573  else
7574    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7575  fi
7576else
7577  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7578fi
7579need_lib_prefix=unknown
7580hardcode_into_libs=no
7581
7582# when you set need_version to no, make sure it does not cause -set_version
7583# flags to be left without arguments
7584need_version=unknown
7585
7586case $host_os in
7587aix3*)
7588  version_type=linux
7589  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7590  shlibpath_var=LIBPATH
7591
7592  # AIX 3 has no versioning support, so we append a major version to the name.
7593  soname_spec='${libname}${release}${shared_ext}$major'
7594  ;;
7595
7596aix4* | aix5*)
7597  version_type=linux
7598  need_lib_prefix=no
7599  need_version=no
7600  hardcode_into_libs=yes
7601  if test "$host_cpu" = ia64; then
7602    # AIX 5 supports IA64
7603    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7604    shlibpath_var=LD_LIBRARY_PATH
7605  else
7606    # With GCC up to 2.95.x, collect2 would create an import file
7607    # for dependence libraries.  The import file would start with
7608    # the line `#! .'.  This would cause the generated library to
7609    # depend on `.', always an invalid library.  This was fixed in
7610    # development snapshots of GCC prior to 3.0.
7611    case $host_os in
7612      aix4 | aix4.[01] | aix4.[01].*)
7613      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7614	   echo ' yes '
7615	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7616	:
7617      else
7618	can_build_shared=no
7619      fi
7620      ;;
7621    esac
7622    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7623    # soname into executable. Probably we can add versioning support to
7624    # collect2, so additional links can be useful in future.
7625    if test "$aix_use_runtimelinking" = yes; then
7626      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7627      # instead of lib<name>.a to let people know that these are not
7628      # typical AIX shared libraries.
7629      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7630    else
7631      # We preserve .a as extension for shared libraries through AIX4.2
7632      # and later when we are not doing run time linking.
7633      library_names_spec='${libname}${release}.a $libname.a'
7634      soname_spec='${libname}${release}${shared_ext}$major'
7635    fi
7636    shlibpath_var=LIBPATH
7637  fi
7638  ;;
7639
7640amigaos*)
7641  library_names_spec='$libname.ixlibrary $libname.a'
7642  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7643  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'
7644  ;;
7645
7646beos*)
7647  library_names_spec='${libname}${shared_ext}'
7648  dynamic_linker="$host_os ld.so"
7649  shlibpath_var=LIBRARY_PATH
7650  ;;
7651
7652bsdi4*)
7653  version_type=linux
7654  need_version=no
7655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7656  soname_spec='${libname}${release}${shared_ext}$major'
7657  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7658  shlibpath_var=LD_LIBRARY_PATH
7659  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7660  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7661  # the default ld.so.conf also contains /usr/contrib/lib and
7662  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7663  # libtool to hard-code these into programs
7664  ;;
7665
7666cygwin* | mingw* | pw32*)
7667  version_type=windows
7668  shrext=".dll"
7669  need_version=no
7670  need_lib_prefix=no
7671
7672  case $GCC,$host_os in
7673  yes,cygwin* | yes,mingw* | yes,pw32*)
7674    library_names_spec='$libname.dll.a'
7675    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7676    postinstall_cmds='base_file=`basename \${file}`~
7677      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7678      dldir=$destdir/`dirname \$dlpath`~
7679      test -d \$dldir || mkdir -p \$dldir~
7680      $install_prog $dir/$dlname \$dldir/$dlname'
7681    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7682      dlpath=$dir/\$dldll~
7683       $rm \$dlpath'
7684    shlibpath_overrides_runpath=yes
7685
7686    case $host_os in
7687    cygwin*)
7688      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7689      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7690      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7691      ;;
7692    mingw*)
7693      # MinGW DLLs use traditional 'lib' prefix
7694      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7695      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7696      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7697        # It is most probably a Windows format PATH printed by
7698        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7699        # path with ; separators, and with drive letters. We can handle the
7700        # drive letters (cygwin fileutils understands them), so leave them,
7701        # especially as we might pass files found there to a mingw objdump,
7702        # which wouldn't understand a cygwinified path. Ahh.
7703        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7704      else
7705        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7706      fi
7707      ;;
7708    pw32*)
7709      # pw32 DLLs use 'pw' prefix rather than 'lib'
7710      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7711      ;;
7712    esac
7713    ;;
7714
7715  *)
7716    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7717    ;;
7718  esac
7719  dynamic_linker='Win32 ld.exe'
7720  # FIXME: first we should search . and the directory the executable is in
7721  shlibpath_var=PATH
7722  ;;
7723
7724darwin* | rhapsody*)
7725  dynamic_linker="$host_os dyld"
7726  version_type=darwin
7727  need_lib_prefix=no
7728  need_version=no
7729  # FIXME: Relying on posixy $() will cause problems for
7730  #        cross-compilation, but unfortunately the echo tests do not
7731  #        yet detect zsh echo's removal of \ escapes.
7732  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7733  soname_spec='${libname}${release}${major}$shared_ext'
7734  shlibpath_overrides_runpath=yes
7735  shlibpath_var=DYLD_LIBRARY_PATH
7736  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7737  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7738  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7739  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"`
7740  fi
7741  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7742  ;;
7743
7744dgux*)
7745  version_type=linux
7746  need_lib_prefix=no
7747  need_version=no
7748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7749  soname_spec='${libname}${release}${shared_ext}$major'
7750  shlibpath_var=LD_LIBRARY_PATH
7751  ;;
7752
7753freebsd1*)
7754  dynamic_linker=no
7755  ;;
7756
7757freebsd*)
7758  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7759  version_type=freebsd-$objformat
7760  case $version_type in
7761    freebsd-elf*)
7762      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7763      need_version=no
7764      need_lib_prefix=no
7765      ;;
7766    freebsd-*)
7767      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7768      need_version=yes
7769      ;;
7770  esac
7771  shlibpath_var=LD_LIBRARY_PATH
7772  case $host_os in
7773  freebsd2*)
7774    shlibpath_overrides_runpath=yes
7775    ;;
7776  freebsd3.01* | freebsdelf3.01*)
7777    shlibpath_overrides_runpath=yes
7778    hardcode_into_libs=yes
7779    ;;
7780  *) # from 3.2 on
7781    shlibpath_overrides_runpath=no
7782    hardcode_into_libs=yes
7783    ;;
7784  esac
7785  ;;
7786
7787gnu*)
7788  version_type=linux
7789  need_lib_prefix=no
7790  need_version=no
7791  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7792  soname_spec='${libname}${release}${shared_ext}$major'
7793  shlibpath_var=LD_LIBRARY_PATH
7794  hardcode_into_libs=yes
7795  ;;
7796
7797hpux9* | hpux10* | hpux11*)
7798  # Give a soname corresponding to the major version so that dld.sl refuses to
7799  # link against other versions.
7800  version_type=sunos
7801  need_lib_prefix=no
7802  need_version=no
7803  case "$host_cpu" in
7804  ia64*)
7805    shrext='.so'
7806    hardcode_into_libs=yes
7807    dynamic_linker="$host_os dld.so"
7808    shlibpath_var=LD_LIBRARY_PATH
7809    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7810    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7811    soname_spec='${libname}${release}${shared_ext}$major'
7812    if test "X$HPUX_IA64_MODE" = X32; then
7813      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7814    else
7815      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7816    fi
7817    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7818    ;;
7819   hppa*64*)
7820     shrext='.sl'
7821     hardcode_into_libs=yes
7822     dynamic_linker="$host_os dld.sl"
7823     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7824     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7825     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7826     soname_spec='${libname}${release}${shared_ext}$major'
7827     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7828     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7829     ;;
7830   *)
7831    shrext='.sl'
7832    dynamic_linker="$host_os dld.sl"
7833    shlibpath_var=SHLIB_PATH
7834    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7835    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7836    soname_spec='${libname}${release}${shared_ext}$major'
7837    ;;
7838  esac
7839  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7840  postinstall_cmds='chmod 555 $lib'
7841  ;;
7842
7843irix5* | irix6* | nonstopux*)
7844  case $host_os in
7845    nonstopux*) version_type=nonstopux ;;
7846    *)
7847	if test "$lt_cv_prog_gnu_ld" = yes; then
7848		version_type=linux
7849	else
7850		version_type=irix
7851	fi ;;
7852  esac
7853  need_lib_prefix=no
7854  need_version=no
7855  soname_spec='${libname}${release}${shared_ext}$major'
7856  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7857  case $host_os in
7858  irix5* | nonstopux*)
7859    libsuff= shlibsuff=
7860    ;;
7861  *)
7862    case $LD in # libtool.m4 will add one of these switches to LD
7863    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7864      libsuff= shlibsuff= libmagic=32-bit;;
7865    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7866      libsuff=32 shlibsuff=N32 libmagic=N32;;
7867    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7868      libsuff=64 shlibsuff=64 libmagic=64-bit;;
7869    *) libsuff= shlibsuff= libmagic=never-match;;
7870    esac
7871    ;;
7872  esac
7873  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7874  shlibpath_overrides_runpath=no
7875  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7876  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7877  hardcode_into_libs=yes
7878  ;;
7879
7880# No shared lib support for Linux oldld, aout, or coff.
7881linux*oldld* | linux*aout* | linux*coff*)
7882  dynamic_linker=no
7883  ;;
7884
7885# This must be Linux ELF.
7886linux*)
7887  version_type=linux
7888  need_lib_prefix=no
7889  need_version=no
7890  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7891  soname_spec='${libname}${release}${shared_ext}$major'
7892  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7893  shlibpath_var=LD_LIBRARY_PATH
7894  shlibpath_overrides_runpath=no
7895  # This implies no fast_install, which is unacceptable.
7896  # Some rework will be needed to allow for fast_install
7897  # before this can be enabled.
7898  hardcode_into_libs=yes
7899
7900  # We used to test for /lib/ld.so.1 and disable shared libraries on
7901  # powerpc, because MkLinux only supported shared libraries with the
7902  # GNU dynamic linker.  Since this was broken with cross compilers,
7903  # most powerpc-linux boxes support dynamic linking these days and
7904  # people can always --disable-shared, the test was removed, and we
7905  # assume the GNU/Linux dynamic linker is in use.
7906  dynamic_linker='GNU/Linux ld.so'
7907  ;;
7908
7909netbsd*)
7910  version_type=sunos
7911  need_lib_prefix=no
7912  need_version=no
7913  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7914    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7915    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7916    dynamic_linker='NetBSD (a.out) ld.so'
7917  else
7918    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7919    soname_spec='${libname}${release}${shared_ext}$major'
7920    dynamic_linker='NetBSD ld.elf_so'
7921  fi
7922  shlibpath_var=LD_LIBRARY_PATH
7923  shlibpath_overrides_runpath=yes
7924  hardcode_into_libs=yes
7925  ;;
7926
7927newsos6)
7928  version_type=linux
7929  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7930  shlibpath_var=LD_LIBRARY_PATH
7931  shlibpath_overrides_runpath=yes
7932  ;;
7933
7934nto-qnx)
7935  version_type=linux
7936  need_lib_prefix=no
7937  need_version=no
7938  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7939  soname_spec='${libname}${release}${shared_ext}$major'
7940  shlibpath_var=LD_LIBRARY_PATH
7941  shlibpath_overrides_runpath=yes
7942  ;;
7943
7944openbsd*)
7945  version_type=sunos
7946  need_lib_prefix=no
7947  need_version=no
7948  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7949  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7950  shlibpath_var=LD_LIBRARY_PATH
7951  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7952    case $host_os in
7953      openbsd2.[89] | openbsd2.[89].*)
7954	shlibpath_overrides_runpath=no
7955	;;
7956      *)
7957	shlibpath_overrides_runpath=yes
7958	;;
7959      esac
7960  else
7961    shlibpath_overrides_runpath=yes
7962  fi
7963  ;;
7964
7965os2*)
7966  libname_spec='$name'
7967  shrext=".dll"
7968  need_lib_prefix=no
7969  library_names_spec='$libname${shared_ext} $libname.a'
7970  dynamic_linker='OS/2 ld.exe'
7971  shlibpath_var=LIBPATH
7972  ;;
7973
7974osf3* | osf4* | osf5*)
7975  version_type=osf
7976  need_lib_prefix=no
7977  need_version=no
7978  soname_spec='${libname}${release}${shared_ext}$major'
7979  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7980  shlibpath_var=LD_LIBRARY_PATH
7981  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7982  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7983  ;;
7984
7985sco3.2v5*)
7986  version_type=osf
7987  soname_spec='${libname}${release}${shared_ext}$major'
7988  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7989  shlibpath_var=LD_LIBRARY_PATH
7990  ;;
7991
7992solaris*)
7993  version_type=linux
7994  need_lib_prefix=no
7995  need_version=no
7996  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7997  soname_spec='${libname}${release}${shared_ext}$major'
7998  shlibpath_var=LD_LIBRARY_PATH
7999  shlibpath_overrides_runpath=yes
8000  hardcode_into_libs=yes
8001  # ldd complains unless libraries are executable
8002  postinstall_cmds='chmod +x $lib'
8003  ;;
8004
8005sunos4*)
8006  version_type=sunos
8007  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8008  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8009  shlibpath_var=LD_LIBRARY_PATH
8010  shlibpath_overrides_runpath=yes
8011  if test "$with_gnu_ld" = yes; then
8012    need_lib_prefix=no
8013  fi
8014  need_version=yes
8015  ;;
8016
8017sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8018  version_type=linux
8019  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8020  soname_spec='${libname}${release}${shared_ext}$major'
8021  shlibpath_var=LD_LIBRARY_PATH
8022  case $host_vendor in
8023    sni)
8024      shlibpath_overrides_runpath=no
8025      need_lib_prefix=no
8026      export_dynamic_flag_spec='${wl}-Blargedynsym'
8027      runpath_var=LD_RUN_PATH
8028      ;;
8029    siemens)
8030      need_lib_prefix=no
8031      ;;
8032    motorola)
8033      need_lib_prefix=no
8034      need_version=no
8035      shlibpath_overrides_runpath=no
8036      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8037      ;;
8038  esac
8039  ;;
8040
8041sysv4*MP*)
8042  if test -d /usr/nec ;then
8043    version_type=linux
8044    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8045    soname_spec='$libname${shared_ext}.$major'
8046    shlibpath_var=LD_LIBRARY_PATH
8047  fi
8048  ;;
8049
8050uts4*)
8051  version_type=linux
8052  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8053  soname_spec='${libname}${release}${shared_ext}$major'
8054  shlibpath_var=LD_LIBRARY_PATH
8055  ;;
8056
8057*)
8058  dynamic_linker=no
8059  ;;
8060esac
8061echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8062echo "${ECHO_T}$dynamic_linker" >&6
8063test "$dynamic_linker" = no && can_build_shared=no
8064
8065if test "x$enable_dlopen" != xyes; then
8066  enable_dlopen=unknown
8067  enable_dlopen_self=unknown
8068  enable_dlopen_self_static=unknown
8069else
8070  lt_cv_dlopen=no
8071  lt_cv_dlopen_libs=
8072
8073  case $host_os in
8074  beos*)
8075    lt_cv_dlopen="load_add_on"
8076    lt_cv_dlopen_libs=
8077    lt_cv_dlopen_self=yes
8078    ;;
8079
8080  mingw* | pw32*)
8081    lt_cv_dlopen="LoadLibrary"
8082    lt_cv_dlopen_libs=
8083   ;;
8084
8085  cygwin*)
8086    lt_cv_dlopen="dlopen"
8087    lt_cv_dlopen_libs=
8088   ;;
8089
8090  darwin*)
8091  # if libdl is installed we need to link against it
8092    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8093echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8094if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8095  echo $ECHO_N "(cached) $ECHO_C" >&6
8096else
8097  ac_check_lib_save_LIBS=$LIBS
8098LIBS="-ldl  $LIBS"
8099cat >conftest.$ac_ext <<_ACEOF
8100#line $LINENO "configure"
8101/* confdefs.h.  */
8102_ACEOF
8103cat confdefs.h >>conftest.$ac_ext
8104cat >>conftest.$ac_ext <<_ACEOF
8105/* end confdefs.h.  */
8106
8107/* Override any gcc2 internal prototype to avoid an error.  */
8108#ifdef __cplusplus
8109extern "C"
8110#endif
8111/* We use char because int might match the return type of a gcc2
8112   builtin and then its argument prototype would still apply.  */
8113char dlopen ();
8114int
8115main ()
8116{
8117dlopen ();
8118  ;
8119  return 0;
8120}
8121_ACEOF
8122rm -f conftest.$ac_objext conftest$ac_exeext
8123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8124  (eval $ac_link) 2>&5
8125  ac_status=$?
8126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127  (exit $ac_status); } &&
8128         { ac_try='test -s conftest$ac_exeext'
8129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130  (eval $ac_try) 2>&5
8131  ac_status=$?
8132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133  (exit $ac_status); }; }; then
8134  ac_cv_lib_dl_dlopen=yes
8135else
8136  echo "$as_me: failed program was:" >&5
8137sed 's/^/| /' conftest.$ac_ext >&5
8138
8139ac_cv_lib_dl_dlopen=no
8140fi
8141rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8142LIBS=$ac_check_lib_save_LIBS
8143fi
8144echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8145echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8146if test $ac_cv_lib_dl_dlopen = yes; then
8147  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8148else
8149
8150    lt_cv_dlopen="dyld"
8151    lt_cv_dlopen_libs=
8152    lt_cv_dlopen_self=yes
8153
8154fi
8155
8156   ;;
8157
8158  *)
8159    echo "$as_me:$LINENO: checking for shl_load" >&5
8160echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8161if test "${ac_cv_func_shl_load+set}" = set; then
8162  echo $ECHO_N "(cached) $ECHO_C" >&6
8163else
8164  cat >conftest.$ac_ext <<_ACEOF
8165#line $LINENO "configure"
8166/* confdefs.h.  */
8167_ACEOF
8168cat confdefs.h >>conftest.$ac_ext
8169cat >>conftest.$ac_ext <<_ACEOF
8170/* end confdefs.h.  */
8171/* System header to define __stub macros and hopefully few prototypes,
8172    which can conflict with char shl_load (); below.
8173    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8174    <limits.h> exists even on freestanding compilers.  */
8175#ifdef __STDC__
8176# include <limits.h>
8177#else
8178# include <assert.h>
8179#endif
8180/* Override any gcc2 internal prototype to avoid an error.  */
8181#ifdef __cplusplus
8182extern "C"
8183{
8184#endif
8185/* We use char because int might match the return type of a gcc2
8186   builtin and then its argument prototype would still apply.  */
8187char shl_load ();
8188/* The GNU C library defines this for functions which it implements
8189    to always fail with ENOSYS.  Some functions are actually named
8190    something starting with __ and the normal name is an alias.  */
8191#if defined (__stub_shl_load) || defined (__stub___shl_load)
8192choke me
8193#else
8194char (*f) () = shl_load;
8195#endif
8196#ifdef __cplusplus
8197}
8198#endif
8199
8200int
8201main ()
8202{
8203return f != shl_load;
8204  ;
8205  return 0;
8206}
8207_ACEOF
8208rm -f conftest.$ac_objext conftest$ac_exeext
8209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8210  (eval $ac_link) 2>&5
8211  ac_status=$?
8212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213  (exit $ac_status); } &&
8214         { ac_try='test -s conftest$ac_exeext'
8215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216  (eval $ac_try) 2>&5
8217  ac_status=$?
8218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219  (exit $ac_status); }; }; then
8220  ac_cv_func_shl_load=yes
8221else
8222  echo "$as_me: failed program was:" >&5
8223sed 's/^/| /' conftest.$ac_ext >&5
8224
8225ac_cv_func_shl_load=no
8226fi
8227rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8228fi
8229echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8230echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8231if test $ac_cv_func_shl_load = yes; then
8232  lt_cv_dlopen="shl_load"
8233else
8234  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8235echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8236if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8237  echo $ECHO_N "(cached) $ECHO_C" >&6
8238else
8239  ac_check_lib_save_LIBS=$LIBS
8240LIBS="-ldld  $LIBS"
8241cat >conftest.$ac_ext <<_ACEOF
8242#line $LINENO "configure"
8243/* confdefs.h.  */
8244_ACEOF
8245cat confdefs.h >>conftest.$ac_ext
8246cat >>conftest.$ac_ext <<_ACEOF
8247/* end confdefs.h.  */
8248
8249/* Override any gcc2 internal prototype to avoid an error.  */
8250#ifdef __cplusplus
8251extern "C"
8252#endif
8253/* We use char because int might match the return type of a gcc2
8254   builtin and then its argument prototype would still apply.  */
8255char shl_load ();
8256int
8257main ()
8258{
8259shl_load ();
8260  ;
8261  return 0;
8262}
8263_ACEOF
8264rm -f conftest.$ac_objext conftest$ac_exeext
8265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8266  (eval $ac_link) 2>&5
8267  ac_status=$?
8268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269  (exit $ac_status); } &&
8270         { ac_try='test -s conftest$ac_exeext'
8271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272  (eval $ac_try) 2>&5
8273  ac_status=$?
8274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275  (exit $ac_status); }; }; then
8276  ac_cv_lib_dld_shl_load=yes
8277else
8278  echo "$as_me: failed program was:" >&5
8279sed 's/^/| /' conftest.$ac_ext >&5
8280
8281ac_cv_lib_dld_shl_load=no
8282fi
8283rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8284LIBS=$ac_check_lib_save_LIBS
8285fi
8286echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8287echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8288if test $ac_cv_lib_dld_shl_load = yes; then
8289  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8290else
8291  echo "$as_me:$LINENO: checking for dlopen" >&5
8292echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8293if test "${ac_cv_func_dlopen+set}" = set; then
8294  echo $ECHO_N "(cached) $ECHO_C" >&6
8295else
8296  cat >conftest.$ac_ext <<_ACEOF
8297#line $LINENO "configure"
8298/* confdefs.h.  */
8299_ACEOF
8300cat confdefs.h >>conftest.$ac_ext
8301cat >>conftest.$ac_ext <<_ACEOF
8302/* end confdefs.h.  */
8303/* System header to define __stub macros and hopefully few prototypes,
8304    which can conflict with char dlopen (); below.
8305    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8306    <limits.h> exists even on freestanding compilers.  */
8307#ifdef __STDC__
8308# include <limits.h>
8309#else
8310# include <assert.h>
8311#endif
8312/* Override any gcc2 internal prototype to avoid an error.  */
8313#ifdef __cplusplus
8314extern "C"
8315{
8316#endif
8317/* We use char because int might match the return type of a gcc2
8318   builtin and then its argument prototype would still apply.  */
8319char dlopen ();
8320/* The GNU C library defines this for functions which it implements
8321    to always fail with ENOSYS.  Some functions are actually named
8322    something starting with __ and the normal name is an alias.  */
8323#if defined (__stub_dlopen) || defined (__stub___dlopen)
8324choke me
8325#else
8326char (*f) () = dlopen;
8327#endif
8328#ifdef __cplusplus
8329}
8330#endif
8331
8332int
8333main ()
8334{
8335return f != dlopen;
8336  ;
8337  return 0;
8338}
8339_ACEOF
8340rm -f conftest.$ac_objext conftest$ac_exeext
8341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8342  (eval $ac_link) 2>&5
8343  ac_status=$?
8344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345  (exit $ac_status); } &&
8346         { ac_try='test -s conftest$ac_exeext'
8347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348  (eval $ac_try) 2>&5
8349  ac_status=$?
8350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351  (exit $ac_status); }; }; then
8352  ac_cv_func_dlopen=yes
8353else
8354  echo "$as_me: failed program was:" >&5
8355sed 's/^/| /' conftest.$ac_ext >&5
8356
8357ac_cv_func_dlopen=no
8358fi
8359rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8360fi
8361echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8362echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8363if test $ac_cv_func_dlopen = yes; then
8364  lt_cv_dlopen="dlopen"
8365else
8366  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8367echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8368if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8369  echo $ECHO_N "(cached) $ECHO_C" >&6
8370else
8371  ac_check_lib_save_LIBS=$LIBS
8372LIBS="-ldl  $LIBS"
8373cat >conftest.$ac_ext <<_ACEOF
8374#line $LINENO "configure"
8375/* confdefs.h.  */
8376_ACEOF
8377cat confdefs.h >>conftest.$ac_ext
8378cat >>conftest.$ac_ext <<_ACEOF
8379/* end confdefs.h.  */
8380
8381/* Override any gcc2 internal prototype to avoid an error.  */
8382#ifdef __cplusplus
8383extern "C"
8384#endif
8385/* We use char because int might match the return type of a gcc2
8386   builtin and then its argument prototype would still apply.  */
8387char dlopen ();
8388int
8389main ()
8390{
8391dlopen ();
8392  ;
8393  return 0;
8394}
8395_ACEOF
8396rm -f conftest.$ac_objext conftest$ac_exeext
8397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8398  (eval $ac_link) 2>&5
8399  ac_status=$?
8400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401  (exit $ac_status); } &&
8402         { ac_try='test -s conftest$ac_exeext'
8403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404  (eval $ac_try) 2>&5
8405  ac_status=$?
8406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407  (exit $ac_status); }; }; then
8408  ac_cv_lib_dl_dlopen=yes
8409else
8410  echo "$as_me: failed program was:" >&5
8411sed 's/^/| /' conftest.$ac_ext >&5
8412
8413ac_cv_lib_dl_dlopen=no
8414fi
8415rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8416LIBS=$ac_check_lib_save_LIBS
8417fi
8418echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8419echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8420if test $ac_cv_lib_dl_dlopen = yes; then
8421  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8422else
8423  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8424echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8425if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8426  echo $ECHO_N "(cached) $ECHO_C" >&6
8427else
8428  ac_check_lib_save_LIBS=$LIBS
8429LIBS="-lsvld  $LIBS"
8430cat >conftest.$ac_ext <<_ACEOF
8431#line $LINENO "configure"
8432/* confdefs.h.  */
8433_ACEOF
8434cat confdefs.h >>conftest.$ac_ext
8435cat >>conftest.$ac_ext <<_ACEOF
8436/* end confdefs.h.  */
8437
8438/* Override any gcc2 internal prototype to avoid an error.  */
8439#ifdef __cplusplus
8440extern "C"
8441#endif
8442/* We use char because int might match the return type of a gcc2
8443   builtin and then its argument prototype would still apply.  */
8444char dlopen ();
8445int
8446main ()
8447{
8448dlopen ();
8449  ;
8450  return 0;
8451}
8452_ACEOF
8453rm -f conftest.$ac_objext conftest$ac_exeext
8454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8455  (eval $ac_link) 2>&5
8456  ac_status=$?
8457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458  (exit $ac_status); } &&
8459         { ac_try='test -s conftest$ac_exeext'
8460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461  (eval $ac_try) 2>&5
8462  ac_status=$?
8463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464  (exit $ac_status); }; }; then
8465  ac_cv_lib_svld_dlopen=yes
8466else
8467  echo "$as_me: failed program was:" >&5
8468sed 's/^/| /' conftest.$ac_ext >&5
8469
8470ac_cv_lib_svld_dlopen=no
8471fi
8472rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8473LIBS=$ac_check_lib_save_LIBS
8474fi
8475echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8476echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8477if test $ac_cv_lib_svld_dlopen = yes; then
8478  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8479else
8480  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8481echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8482if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8483  echo $ECHO_N "(cached) $ECHO_C" >&6
8484else
8485  ac_check_lib_save_LIBS=$LIBS
8486LIBS="-ldld  $LIBS"
8487cat >conftest.$ac_ext <<_ACEOF
8488#line $LINENO "configure"
8489/* confdefs.h.  */
8490_ACEOF
8491cat confdefs.h >>conftest.$ac_ext
8492cat >>conftest.$ac_ext <<_ACEOF
8493/* end confdefs.h.  */
8494
8495/* Override any gcc2 internal prototype to avoid an error.  */
8496#ifdef __cplusplus
8497extern "C"
8498#endif
8499/* We use char because int might match the return type of a gcc2
8500   builtin and then its argument prototype would still apply.  */
8501char dld_link ();
8502int
8503main ()
8504{
8505dld_link ();
8506  ;
8507  return 0;
8508}
8509_ACEOF
8510rm -f conftest.$ac_objext conftest$ac_exeext
8511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8512  (eval $ac_link) 2>&5
8513  ac_status=$?
8514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515  (exit $ac_status); } &&
8516         { ac_try='test -s conftest$ac_exeext'
8517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518  (eval $ac_try) 2>&5
8519  ac_status=$?
8520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521  (exit $ac_status); }; }; then
8522  ac_cv_lib_dld_dld_link=yes
8523else
8524  echo "$as_me: failed program was:" >&5
8525sed 's/^/| /' conftest.$ac_ext >&5
8526
8527ac_cv_lib_dld_dld_link=no
8528fi
8529rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8530LIBS=$ac_check_lib_save_LIBS
8531fi
8532echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8533echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8534if test $ac_cv_lib_dld_dld_link = yes; then
8535  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8536fi
8537
8538
8539fi
8540
8541
8542fi
8543
8544
8545fi
8546
8547
8548fi
8549
8550
8551fi
8552
8553    ;;
8554  esac
8555
8556  if test "x$lt_cv_dlopen" != xno; then
8557    enable_dlopen=yes
8558  else
8559    enable_dlopen=no
8560  fi
8561
8562  case $lt_cv_dlopen in
8563  dlopen)
8564    save_CPPFLAGS="$CPPFLAGS"
8565    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8566
8567    save_LDFLAGS="$LDFLAGS"
8568    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8569
8570    save_LIBS="$LIBS"
8571    LIBS="$lt_cv_dlopen_libs $LIBS"
8572
8573    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8574echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8575if test "${lt_cv_dlopen_self+set}" = set; then
8576  echo $ECHO_N "(cached) $ECHO_C" >&6
8577else
8578  	  if test "$cross_compiling" = yes; then :
8579  lt_cv_dlopen_self=cross
8580else
8581  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8582  lt_status=$lt_dlunknown
8583  cat > conftest.$ac_ext <<EOF
8584#line 8584 "configure"
8585#include "confdefs.h"
8586
8587#if HAVE_DLFCN_H
8588#include <dlfcn.h>
8589#endif
8590
8591#include <stdio.h>
8592
8593#ifdef RTLD_GLOBAL
8594#  define LT_DLGLOBAL		RTLD_GLOBAL
8595#else
8596#  ifdef DL_GLOBAL
8597#    define LT_DLGLOBAL		DL_GLOBAL
8598#  else
8599#    define LT_DLGLOBAL		0
8600#  endif
8601#endif
8602
8603/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8604   find out it does not work in some platform. */
8605#ifndef LT_DLLAZY_OR_NOW
8606#  ifdef RTLD_LAZY
8607#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8608#  else
8609#    ifdef DL_LAZY
8610#      define LT_DLLAZY_OR_NOW		DL_LAZY
8611#    else
8612#      ifdef RTLD_NOW
8613#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8614#      else
8615#        ifdef DL_NOW
8616#          define LT_DLLAZY_OR_NOW	DL_NOW
8617#        else
8618#          define LT_DLLAZY_OR_NOW	0
8619#        endif
8620#      endif
8621#    endif
8622#  endif
8623#endif
8624
8625#ifdef __cplusplus
8626extern "C" void exit (int);
8627#endif
8628
8629void fnord() { int i=42;}
8630int main ()
8631{
8632  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8633  int status = $lt_dlunknown;
8634
8635  if (self)
8636    {
8637      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8638      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8639      /* dlclose (self); */
8640    }
8641
8642    exit (status);
8643}
8644EOF
8645  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8646  (eval $ac_link) 2>&5
8647  ac_status=$?
8648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8650    (./conftest; exit; ) 2>/dev/null
8651    lt_status=$?
8652    case x$lt_status in
8653      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8654      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8655      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8656    esac
8657  else :
8658    # compilation failed
8659    lt_cv_dlopen_self=no
8660  fi
8661fi
8662rm -fr conftest*
8663
8664
8665fi
8666echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8667echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8668
8669    if test "x$lt_cv_dlopen_self" = xyes; then
8670      LDFLAGS="$LDFLAGS $link_static_flag"
8671      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8672echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8673if test "${lt_cv_dlopen_self_static+set}" = set; then
8674  echo $ECHO_N "(cached) $ECHO_C" >&6
8675else
8676  	  if test "$cross_compiling" = yes; then :
8677  lt_cv_dlopen_self_static=cross
8678else
8679  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8680  lt_status=$lt_dlunknown
8681  cat > conftest.$ac_ext <<EOF
8682#line 8682 "configure"
8683#include "confdefs.h"
8684
8685#if HAVE_DLFCN_H
8686#include <dlfcn.h>
8687#endif
8688
8689#include <stdio.h>
8690
8691#ifdef RTLD_GLOBAL
8692#  define LT_DLGLOBAL		RTLD_GLOBAL
8693#else
8694#  ifdef DL_GLOBAL
8695#    define LT_DLGLOBAL		DL_GLOBAL
8696#  else
8697#    define LT_DLGLOBAL		0
8698#  endif
8699#endif
8700
8701/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8702   find out it does not work in some platform. */
8703#ifndef LT_DLLAZY_OR_NOW
8704#  ifdef RTLD_LAZY
8705#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8706#  else
8707#    ifdef DL_LAZY
8708#      define LT_DLLAZY_OR_NOW		DL_LAZY
8709#    else
8710#      ifdef RTLD_NOW
8711#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8712#      else
8713#        ifdef DL_NOW
8714#          define LT_DLLAZY_OR_NOW	DL_NOW
8715#        else
8716#          define LT_DLLAZY_OR_NOW	0
8717#        endif
8718#      endif
8719#    endif
8720#  endif
8721#endif
8722
8723#ifdef __cplusplus
8724extern "C" void exit (int);
8725#endif
8726
8727void fnord() { int i=42;}
8728int main ()
8729{
8730  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8731  int status = $lt_dlunknown;
8732
8733  if (self)
8734    {
8735      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8736      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8737      /* dlclose (self); */
8738    }
8739
8740    exit (status);
8741}
8742EOF
8743  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8744  (eval $ac_link) 2>&5
8745  ac_status=$?
8746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8748    (./conftest; exit; ) 2>/dev/null
8749    lt_status=$?
8750    case x$lt_status in
8751      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8752      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8753      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8754    esac
8755  else :
8756    # compilation failed
8757    lt_cv_dlopen_self_static=no
8758  fi
8759fi
8760rm -fr conftest*
8761
8762
8763fi
8764echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8765echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8766    fi
8767
8768    CPPFLAGS="$save_CPPFLAGS"
8769    LDFLAGS="$save_LDFLAGS"
8770    LIBS="$save_LIBS"
8771    ;;
8772  esac
8773
8774  case $lt_cv_dlopen_self in
8775  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8776  *) enable_dlopen_self=unknown ;;
8777  esac
8778
8779  case $lt_cv_dlopen_self_static in
8780  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8781  *) enable_dlopen_self_static=unknown ;;
8782  esac
8783fi
8784
8785
8786# Report which librarie types wil actually be built
8787echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8788echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8789echo "$as_me:$LINENO: result: $can_build_shared" >&5
8790echo "${ECHO_T}$can_build_shared" >&6
8791
8792echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8793echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8794test "$can_build_shared" = "no" && enable_shared=no
8795
8796# On AIX, shared libraries and static libraries use the same namespace, and
8797# are all built from PIC.
8798case "$host_os" in
8799aix3*)
8800  test "$enable_shared" = yes && enable_static=no
8801  if test -n "$RANLIB"; then
8802    archive_cmds="$archive_cmds~\$RANLIB \$lib"
8803    postinstall_cmds='$RANLIB $lib'
8804  fi
8805  ;;
8806
8807aix4*)
8808  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8809    test "$enable_shared" = yes && enable_static=no
8810  fi
8811  ;;
8812  darwin* | rhapsody*)
8813  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8814    archive_cmds_need_lc=no
8815    case "$host_os" in
8816    rhapsody* | darwin1.[012])
8817      allow_undefined_flag='-undefined suppress'
8818      ;;
8819    *) # Darwin 1.3 on
8820      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8821      ;;
8822    esac
8823    # FIXME: Relying on posixy $() will cause problems for
8824    #        cross-compilation, but unfortunately the echo tests do not
8825    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8826    #	       `"' quotes if we put them in here... so don't!
8827		output_verbose_link_cmd='echo'
8828    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8829    module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8830    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8831		  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}'
8832		  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}'
8833    hardcode_direct=no
8834    hardcode_automatic=yes
8835    hardcode_shlibpath_var=unsupported
8836    whole_archive_flag_spec='-all_load $convenience'
8837    link_all_deplibs=yes
8838    fi
8839    ;;
8840esac
8841echo "$as_me:$LINENO: result: $enable_shared" >&5
8842echo "${ECHO_T}$enable_shared" >&6
8843
8844echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8845echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8846# Make sure either enable_shared or enable_static is yes.
8847test "$enable_shared" = yes || enable_static=yes
8848echo "$as_me:$LINENO: result: $enable_static" >&5
8849echo "${ECHO_T}$enable_static" >&6
8850
8851# The else clause should only fire when bootstrapping the
8852# libtool distribution, otherwise you forgot to ship ltmain.sh
8853# with your package, and you will get complaints that there are
8854# no rules to generate ltmain.sh.
8855if test -f "$ltmain"; then
8856  # See if we are running on zsh, and set the options which allow our commands through
8857  # without removal of \ escapes.
8858  if test -n "${ZSH_VERSION+set}" ; then
8859    setopt NO_GLOB_SUBST
8860  fi
8861  # Now quote all the things that may contain metacharacters while being
8862  # careful not to overquote the AC_SUBSTed values.  We take copies of the
8863  # variables and quote the copies for generation of the libtool script.
8864  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8865    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8866    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8867    deplibs_check_method reload_flag reload_cmds need_locks \
8868    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8869    lt_cv_sys_global_symbol_to_c_name_address \
8870    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8871    old_postinstall_cmds old_postuninstall_cmds \
8872    compiler \
8873    CC \
8874    LD \
8875    lt_prog_compiler_wl \
8876    lt_prog_compiler_pic \
8877    lt_prog_compiler_static \
8878    lt_prog_compiler_no_builtin_flag \
8879    export_dynamic_flag_spec \
8880    thread_safe_flag_spec \
8881    whole_archive_flag_spec \
8882    enable_shared_with_static_runtimes \
8883    old_archive_cmds \
8884    old_archive_from_new_cmds \
8885    predep_objects \
8886    postdep_objects \
8887    predeps \
8888    postdeps \
8889    compiler_lib_search_path \
8890    archive_cmds \
8891    archive_expsym_cmds \
8892    postinstall_cmds \
8893    postuninstall_cmds \
8894    old_archive_from_expsyms_cmds \
8895    allow_undefined_flag \
8896    no_undefined_flag \
8897    export_symbols_cmds \
8898    hardcode_libdir_flag_spec \
8899    hardcode_libdir_flag_spec_ld \
8900    hardcode_libdir_separator \
8901    hardcode_automatic \
8902    module_cmds \
8903    module_expsym_cmds \
8904    lt_cv_prog_compiler_c_o \
8905    exclude_expsyms \
8906    include_expsyms; do
8907
8908    case $var in
8909    old_archive_cmds | \
8910    old_archive_from_new_cmds | \
8911    archive_cmds | \
8912    archive_expsym_cmds | \
8913    module_cmds | \
8914    module_expsym_cmds | \
8915    old_archive_from_expsyms_cmds | \
8916    export_symbols_cmds | \
8917    extract_expsyms_cmds | reload_cmds | finish_cmds | \
8918    postinstall_cmds | postuninstall_cmds | \
8919    old_postinstall_cmds | old_postuninstall_cmds | \
8920    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8921      # Double-quote double-evaled strings.
8922      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8923      ;;
8924    *)
8925      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8926      ;;
8927    esac
8928  done
8929
8930  case $lt_echo in
8931  *'\$0 --fallback-echo"')
8932    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8933    ;;
8934  esac
8935
8936cfgfile="${ofile}T"
8937  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8938  $rm -f "$cfgfile"
8939  { echo "$as_me:$LINENO: creating $ofile" >&5
8940echo "$as_me: creating $ofile" >&6;}
8941
8942  cat <<__EOF__ >> "$cfgfile"
8943#! $SHELL
8944
8945# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8946# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8947# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8948#
8949# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8950# Free Software Foundation, Inc.
8951#
8952# This file is part of GNU Libtool:
8953# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8954#
8955# This program is free software; you can redistribute it and/or modify
8956# it under the terms of the GNU General Public License as published by
8957# the Free Software Foundation; either version 2 of the License, or
8958# (at your option) any later version.
8959#
8960# This program is distributed in the hope that it will be useful, but
8961# WITHOUT ANY WARRANTY; without even the implied warranty of
8962# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8963# General Public License for more details.
8964#
8965# You should have received a copy of the GNU General Public License
8966# along with this program; if not, write to the Free Software
8967# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8968#
8969# As a special exception to the GNU General Public License, if you
8970# distribute this file as part of a program that contains a
8971# configuration script generated by Autoconf, you may include it under
8972# the same distribution terms that you use for the rest of that program.
8973
8974# A sed program that does not truncate output.
8975SED=$lt_SED
8976
8977# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8978Xsed="$SED -e s/^X//"
8979
8980# The HP-UX ksh and POSIX shell print the target directory to stdout
8981# if CDPATH is set.
8982if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8983
8984# The names of the tagged configurations supported by this script.
8985available_tags=
8986
8987# ### BEGIN LIBTOOL CONFIG
8988
8989# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8990
8991# Shell to use when invoking shell scripts.
8992SHELL=$lt_SHELL
8993
8994# Whether or not to build shared libraries.
8995build_libtool_libs=$enable_shared
8996
8997# Whether or not to build static libraries.
8998build_old_libs=$enable_static
8999
9000# Whether or not to add -lc for building shared libraries.
9001build_libtool_need_lc=$archive_cmds_need_lc
9002
9003# Whether or not to disallow shared libs when runtime libs are static
9004allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9005
9006# Whether or not to optimize for fast installation.
9007fast_install=$enable_fast_install
9008
9009# The host system.
9010host_alias=$host_alias
9011host=$host
9012
9013# An echo program that does not interpret backslashes.
9014echo=$lt_echo
9015
9016# The archiver.
9017AR=$lt_AR
9018AR_FLAGS=$lt_AR_FLAGS
9019
9020# A C compiler.
9021LTCC=$lt_LTCC
9022
9023# A language-specific compiler.
9024CC=$lt_compiler
9025
9026# Is the compiler the GNU C compiler?
9027with_gcc=$GCC
9028
9029# An ERE matcher.
9030EGREP=$lt_EGREP
9031
9032# The linker used to build libraries.
9033LD=$lt_LD
9034
9035# Whether we need hard or soft links.
9036LN_S=$lt_LN_S
9037
9038# A BSD-compatible nm program.
9039NM=$lt_NM
9040
9041# A symbol stripping program
9042STRIP=$STRIP
9043
9044# Used to examine libraries when file_magic_cmd begins "file"
9045MAGIC_CMD=$MAGIC_CMD
9046
9047# Used on cygwin: DLL creation program.
9048DLLTOOL="$DLLTOOL"
9049
9050# Used on cygwin: object dumper.
9051OBJDUMP="$OBJDUMP"
9052
9053# Used on cygwin: assembler.
9054AS="$AS"
9055
9056# The name of the directory that contains temporary libtool files.
9057objdir=$objdir
9058
9059# How to create reloadable object files.
9060reload_flag=$lt_reload_flag
9061reload_cmds=$lt_reload_cmds
9062
9063# How to pass a linker flag through the compiler.
9064wl=$lt_lt_prog_compiler_wl
9065
9066# Object file suffix (normally "o").
9067objext="$ac_objext"
9068
9069# Old archive suffix (normally "a").
9070libext="$libext"
9071
9072# Shared library suffix (normally ".so").
9073shrext='$shrext'
9074
9075# Executable file suffix (normally "").
9076exeext="$exeext"
9077
9078# Additional compiler flags for building library objects.
9079pic_flag=$lt_lt_prog_compiler_pic
9080pic_mode=$pic_mode
9081
9082# What is the maximum length of a command?
9083max_cmd_len=$lt_cv_sys_max_cmd_len
9084
9085# Does compiler simultaneously support -c and -o options?
9086compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9087
9088# Must we lock files when doing compilation ?
9089need_locks=$lt_need_locks
9090
9091# Do we need the lib prefix for modules?
9092need_lib_prefix=$need_lib_prefix
9093
9094# Do we need a version for libraries?
9095need_version=$need_version
9096
9097# Whether dlopen is supported.
9098dlopen_support=$enable_dlopen
9099
9100# Whether dlopen of programs is supported.
9101dlopen_self=$enable_dlopen_self
9102
9103# Whether dlopen of statically linked programs is supported.
9104dlopen_self_static=$enable_dlopen_self_static
9105
9106# Compiler flag to prevent dynamic linking.
9107link_static_flag=$lt_lt_prog_compiler_static
9108
9109# Compiler flag to turn off builtin functions.
9110no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9111
9112# Compiler flag to allow reflexive dlopens.
9113export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9114
9115# Compiler flag to generate shared objects directly from archives.
9116whole_archive_flag_spec=$lt_whole_archive_flag_spec
9117
9118# Compiler flag to generate thread-safe objects.
9119thread_safe_flag_spec=$lt_thread_safe_flag_spec
9120
9121# Library versioning type.
9122version_type=$version_type
9123
9124# Format of library name prefix.
9125libname_spec=$lt_libname_spec
9126
9127# List of archive names.  First name is the real one, the rest are links.
9128# The last name is the one that the linker finds with -lNAME.
9129library_names_spec=$lt_library_names_spec
9130
9131# The coded name of the library, if different from the real name.
9132soname_spec=$lt_soname_spec
9133
9134# Commands used to build and install an old-style archive.
9135RANLIB=$lt_RANLIB
9136old_archive_cmds=$lt_old_archive_cmds
9137old_postinstall_cmds=$lt_old_postinstall_cmds
9138old_postuninstall_cmds=$lt_old_postuninstall_cmds
9139
9140# Create an old-style archive from a shared archive.
9141old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9142
9143# Create a temporary old-style archive to link instead of a shared archive.
9144old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9145
9146# Commands used to build and install a shared archive.
9147archive_cmds=$lt_archive_cmds
9148archive_expsym_cmds=$lt_archive_expsym_cmds
9149postinstall_cmds=$lt_postinstall_cmds
9150postuninstall_cmds=$lt_postuninstall_cmds
9151
9152# Commands used to build a loadable module (assumed same as above if empty)
9153module_cmds=$lt_module_cmds
9154module_expsym_cmds=$lt_module_expsym_cmds
9155
9156# Commands to strip libraries.
9157old_striplib=$lt_old_striplib
9158striplib=$lt_striplib
9159
9160# Dependencies to place before the objects being linked to create a
9161# shared library.
9162predep_objects=$lt_predep_objects
9163
9164# Dependencies to place after the objects being linked to create a
9165# shared library.
9166postdep_objects=$lt_postdep_objects
9167
9168# Dependencies to place before the objects being linked to create a
9169# shared library.
9170predeps=$lt_predeps
9171
9172# Dependencies to place after the objects being linked to create a
9173# shared library.
9174postdeps=$lt_postdeps
9175
9176# The library search path used internally by the compiler when linking
9177# a shared library.
9178compiler_lib_search_path=$lt_compiler_lib_search_path
9179
9180# Method to check whether dependent libraries are shared objects.
9181deplibs_check_method=$lt_deplibs_check_method
9182
9183# Command to use when deplibs_check_method == file_magic.
9184file_magic_cmd=$lt_file_magic_cmd
9185
9186# Flag that allows shared libraries with undefined symbols to be built.
9187allow_undefined_flag=$lt_allow_undefined_flag
9188
9189# Flag that forces no undefined symbols.
9190no_undefined_flag=$lt_no_undefined_flag
9191
9192# Commands used to finish a libtool library installation in a directory.
9193finish_cmds=$lt_finish_cmds
9194
9195# Same as above, but a single script fragment to be evaled but not shown.
9196finish_eval=$lt_finish_eval
9197
9198# Take the output of nm and produce a listing of raw symbols and C names.
9199global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9200
9201# Transform the output of nm in a proper C declaration
9202global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9203
9204# Transform the output of nm in a C name address pair
9205global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9206
9207# This is the shared library runtime path variable.
9208runpath_var=$runpath_var
9209
9210# This is the shared library path variable.
9211shlibpath_var=$shlibpath_var
9212
9213# Is shlibpath searched before the hard-coded library search path?
9214shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9215
9216# How to hardcode a shared library path into an executable.
9217hardcode_action=$hardcode_action
9218
9219# Whether we should hardcode library paths into libraries.
9220hardcode_into_libs=$hardcode_into_libs
9221
9222# Flag to hardcode \$libdir into a binary during linking.
9223# This must work even if \$libdir does not exist.
9224hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9225
9226# If ld is used when linking, flag to hardcode \$libdir into
9227# a binary during linking. This must work even if \$libdir does
9228# not exist.
9229hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9230
9231# Whether we need a single -rpath flag with a separated argument.
9232hardcode_libdir_separator=$lt_hardcode_libdir_separator
9233
9234# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9235# resulting binary.
9236hardcode_direct=$hardcode_direct
9237
9238# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9239# resulting binary.
9240hardcode_minus_L=$hardcode_minus_L
9241
9242# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9243# the resulting binary.
9244hardcode_shlibpath_var=$hardcode_shlibpath_var
9245
9246# Set to yes if building a shared library automatically hardcodes DIR into the library
9247# and all subsequent libraries and executables linked against it.
9248hardcode_automatic=$hardcode_automatic
9249
9250# Variables whose values should be saved in libtool wrapper scripts and
9251# restored at relink time.
9252variables_saved_for_relink="$variables_saved_for_relink"
9253
9254# Whether libtool must link a program against all its dependency libraries.
9255link_all_deplibs=$link_all_deplibs
9256
9257# Compile-time system search path for libraries
9258sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9259
9260# Run-time system search path for libraries
9261sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9262
9263# Fix the shell variable \$srcfile for the compiler.
9264fix_srcfile_path="$fix_srcfile_path"
9265
9266# Set to yes if exported symbols are required.
9267always_export_symbols=$always_export_symbols
9268
9269# The commands to list exported symbols.
9270export_symbols_cmds=$lt_export_symbols_cmds
9271
9272# The commands to extract the exported symbol list from a shared archive.
9273extract_expsyms_cmds=$lt_extract_expsyms_cmds
9274
9275# Symbols that should not be listed in the preloaded symbols.
9276exclude_expsyms=$lt_exclude_expsyms
9277
9278# Symbols that must always be exported.
9279include_expsyms=$lt_include_expsyms
9280
9281# ### END LIBTOOL CONFIG
9282
9283__EOF__
9284
9285
9286  case $host_os in
9287  aix3*)
9288    cat <<\EOF >> "$cfgfile"
9289
9290# AIX sometimes has problems with the GCC collect2 program.  For some
9291# reason, if we set the COLLECT_NAMES environment variable, the problems
9292# vanish in a puff of smoke.
9293if test "X${COLLECT_NAMES+set}" != Xset; then
9294  COLLECT_NAMES=
9295  export COLLECT_NAMES
9296fi
9297EOF
9298    ;;
9299  esac
9300
9301  # We use sed instead of cat because bash on DJGPP gets confused if
9302  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9303  # text mode, it properly converts lines to CR/LF.  This bash problem
9304  # is reportedly fixed, but why not run on old versions too?
9305  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9306
9307  mv -f "$cfgfile" "$ofile" || \
9308    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9309  chmod +x "$ofile"
9310
9311else
9312  # If there is no Makefile yet, we rely on a make rule to execute
9313  # `config.status --recheck' to rerun these tests and create the
9314  # libtool script then.
9315  test -f Makefile && make "$ltmain"
9316fi
9317
9318
9319ac_ext=c
9320ac_cpp='$CPP $CPPFLAGS'
9321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9323ac_compiler_gnu=$ac_cv_c_compiler_gnu
9324
9325CC="$lt_save_CC"
9326
9327
9328# Check whether --with-tags or --without-tags was given.
9329if test "${with_tags+set}" = set; then
9330  withval="$with_tags"
9331  tagnames="$withval"
9332fi;
9333
9334if test -f "$ltmain" && test -n "$tagnames"; then
9335  if test ! -f "${ofile}"; then
9336    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9337echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9338  fi
9339
9340  if test -z "$LTCC"; then
9341    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9342    if test -z "$LTCC"; then
9343      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9344echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9345    else
9346      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9347echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9348    fi
9349  fi
9350
9351  # Extract list of available tagged configurations in $ofile.
9352  # Note that this assumes the entire list is on one line.
9353  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9354
9355  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9356  for tagname in $tagnames; do
9357    IFS="$lt_save_ifs"
9358    # Check whether tagname contains only valid characters
9359    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9360    "") ;;
9361    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9362echo "$as_me: error: invalid tag name: $tagname" >&2;}
9363   { (exit 1); exit 1; }; }
9364	;;
9365    esac
9366
9367    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9368    then
9369      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9370echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9371   { (exit 1); exit 1; }; }
9372    fi
9373
9374    # Update the list of available tags.
9375    if test -n "$tagname"; then
9376      echo appending configuration tag \"$tagname\" to $ofile
9377
9378      case $tagname in
9379      CXX)
9380	if test -n "$CXX" && test "X$CXX" != "Xno"; then
9381	  ac_ext=cc
9382ac_cpp='$CXXCPP $CPPFLAGS'
9383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9386
9387
9388
9389
9390archive_cmds_need_lc_CXX=no
9391allow_undefined_flag_CXX=
9392always_export_symbols_CXX=no
9393archive_expsym_cmds_CXX=
9394export_dynamic_flag_spec_CXX=
9395hardcode_direct_CXX=no
9396hardcode_libdir_flag_spec_CXX=
9397hardcode_libdir_flag_spec_ld_CXX=
9398hardcode_libdir_separator_CXX=
9399hardcode_minus_L_CXX=no
9400hardcode_automatic_CXX=no
9401module_cmds_CXX=
9402module_expsym_cmds_CXX=
9403link_all_deplibs_CXX=unknown
9404old_archive_cmds_CXX=$old_archive_cmds
9405no_undefined_flag_CXX=
9406whole_archive_flag_spec_CXX=
9407enable_shared_with_static_runtimes_CXX=no
9408
9409# Dependencies to place before and after the object being linked:
9410predep_objects_CXX=
9411postdep_objects_CXX=
9412predeps_CXX=
9413postdeps_CXX=
9414compiler_lib_search_path_CXX=
9415
9416# Source file extension for C++ test sources.
9417ac_ext=cc
9418
9419# Object file extension for compiled C++ test sources.
9420objext=o
9421objext_CXX=$objext
9422
9423# Code to be used in simple compile tests
9424lt_simple_compile_test_code="int some_variable = 0;\n"
9425
9426# Code to be used in simple link tests
9427lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9428
9429# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9430
9431# If no C compiler was specified, use CC.
9432LTCC=${LTCC-"$CC"}
9433
9434# Allow CC to be a program name with arguments.
9435compiler=$CC
9436
9437
9438# Allow CC to be a program name with arguments.
9439lt_save_CC=$CC
9440lt_save_LD=$LD
9441lt_save_GCC=$GCC
9442GCC=$GXX
9443lt_save_with_gnu_ld=$with_gnu_ld
9444lt_save_path_LD=$lt_cv_path_LD
9445if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9446  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9447else
9448  unset lt_cv_prog_gnu_ld
9449fi
9450if test -n "${lt_cv_path_LDCXX+set}"; then
9451  lt_cv_path_LD=$lt_cv_path_LDCXX
9452else
9453  unset lt_cv_path_LD
9454fi
9455test -z "${LDCXX+set}" || LD=$LDCXX
9456CC=${CXX-"c++"}
9457compiler=$CC
9458compiler_CXX=$CC
9459cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9460
9461# We don't want -fno-exception wen compiling C++ code, so set the
9462# no_builtin_flag separately
9463if test "$GXX" = yes; then
9464  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9465else
9466  lt_prog_compiler_no_builtin_flag_CXX=
9467fi
9468
9469if test "$GXX" = yes; then
9470  # Set up default GNU C++ configuration
9471
9472
9473# Check whether --with-gnu-ld or --without-gnu-ld was given.
9474if test "${with_gnu_ld+set}" = set; then
9475  withval="$with_gnu_ld"
9476  test "$withval" = no || with_gnu_ld=yes
9477else
9478  with_gnu_ld=no
9479fi;
9480ac_prog=ld
9481if test "$GCC" = yes; then
9482  # Check if gcc -print-prog-name=ld gives a path.
9483  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9484echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9485  case $host in
9486  *-*-mingw*)
9487    # gcc leaves a trailing carriage return which upsets mingw
9488    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9489  *)
9490    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9491  esac
9492  case $ac_prog in
9493    # Accept absolute paths.
9494    [\\/]* | ?:[\\/]*)
9495      re_direlt='/[^/][^/]*/\.\./'
9496      # Canonicalize the path of ld
9497      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9498      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9499	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9500      done
9501      test -z "$LD" && LD="$ac_prog"
9502      ;;
9503  "")
9504    # If it fails, then pretend we aren't using GCC.
9505    ac_prog=ld
9506    ;;
9507  *)
9508    # If it is relative, then search for the first ld in PATH.
9509    with_gnu_ld=unknown
9510    ;;
9511  esac
9512elif test "$with_gnu_ld" = yes; then
9513  echo "$as_me:$LINENO: checking for GNU ld" >&5
9514echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9515else
9516  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9517echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9518fi
9519if test "${lt_cv_path_LD+set}" = set; then
9520  echo $ECHO_N "(cached) $ECHO_C" >&6
9521else
9522  if test -z "$LD"; then
9523  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9524  for ac_dir in $PATH; do
9525    IFS="$lt_save_ifs"
9526    test -z "$ac_dir" && ac_dir=.
9527    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9528      lt_cv_path_LD="$ac_dir/$ac_prog"
9529      # Check to see if the program is GNU ld.  I'd rather use --version,
9530      # but apparently some GNU ld's only accept -v.
9531      # Break only if it was the GNU/non-GNU ld that we prefer.
9532      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9533      *GNU* | *'with BFD'*)
9534	test "$with_gnu_ld" != no && break
9535	;;
9536      *)
9537	test "$with_gnu_ld" != yes && break
9538	;;
9539      esac
9540    fi
9541  done
9542  IFS="$lt_save_ifs"
9543else
9544  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9545fi
9546fi
9547
9548LD="$lt_cv_path_LD"
9549if test -n "$LD"; then
9550  echo "$as_me:$LINENO: result: $LD" >&5
9551echo "${ECHO_T}$LD" >&6
9552else
9553  echo "$as_me:$LINENO: result: no" >&5
9554echo "${ECHO_T}no" >&6
9555fi
9556test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9557echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9558   { (exit 1); exit 1; }; }
9559echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9560echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9561if test "${lt_cv_prog_gnu_ld+set}" = set; then
9562  echo $ECHO_N "(cached) $ECHO_C" >&6
9563else
9564  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9565case `"$LD" -v 2>&1 </dev/null` in
9566*GNU* | *'with BFD'*)
9567  lt_cv_prog_gnu_ld=yes
9568  ;;
9569*)
9570  lt_cv_prog_gnu_ld=no
9571  ;;
9572esac
9573fi
9574echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9575echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9576with_gnu_ld=$lt_cv_prog_gnu_ld
9577
9578
9579
9580  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9581  # archiving commands below assume that GNU ld is being used.
9582  if test "$with_gnu_ld" = yes; then
9583    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9584    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'
9585
9586    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9587    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9588
9589    # If archive_cmds runs LD, not CC, wlarc should be empty
9590    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9591    #     investigate it a little bit more. (MM)
9592    wlarc='${wl}'
9593
9594    # ancient GNU ld didn't support --whole-archive et. al.
9595    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9596	grep 'no-whole-archive' > /dev/null; then
9597      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9598    else
9599      whole_archive_flag_spec_CXX=
9600    fi
9601  else
9602    with_gnu_ld=no
9603    wlarc=
9604
9605    # A generic and very simple default shared library creation
9606    # command for GNU C++ for the case where it uses the native
9607    # linker, instead of GNU ld.  If possible, this setting should
9608    # overridden to take advantage of the native linker features on
9609    # the platform it is being used on.
9610    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9611  fi
9612
9613  # Commands to make compiler produce verbose output that lists
9614  # what "hidden" libraries, object files and flags are used when
9615  # linking a shared library.
9616  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9617
9618else
9619  GXX=no
9620  with_gnu_ld=no
9621  wlarc=
9622fi
9623
9624# PORTME: fill in a description of your system's C++ link characteristics
9625echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9626echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9627ld_shlibs_CXX=yes
9628case $host_os in
9629  aix3*)
9630    # FIXME: insert proper C++ library support
9631    ld_shlibs_CXX=no
9632    ;;
9633  aix4* | aix5*)
9634    if test "$host_cpu" = ia64; then
9635      # On IA64, the linker does run time linking by default, so we don't
9636      # have to do anything special.
9637      aix_use_runtimelinking=no
9638      exp_sym_flag='-Bexport'
9639      no_entry_flag=""
9640    else
9641      aix_use_runtimelinking=no
9642
9643      # Test if we are trying to use run time linking or normal
9644      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9645      # need to do runtime linking.
9646      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9647	for ld_flag in $LDFLAGS; do
9648	  case $ld_flag in
9649	  *-brtl*)
9650	    aix_use_runtimelinking=yes
9651	    break
9652	    ;;
9653	  esac
9654	done
9655      esac
9656
9657      exp_sym_flag='-bexport'
9658      no_entry_flag='-bnoentry'
9659    fi
9660
9661    # When large executables or shared objects are built, AIX ld can
9662    # have problems creating the table of contents.  If linking a library
9663    # or program results in "error TOC overflow" add -mminimal-toc to
9664    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9665    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9666
9667    archive_cmds_CXX=''
9668    hardcode_direct_CXX=yes
9669    hardcode_libdir_separator_CXX=':'
9670    link_all_deplibs_CXX=yes
9671
9672    if test "$GXX" = yes; then
9673      case $host_os in aix4.012|aix4.012.*)
9674      # We only want to do this on AIX 4.2 and lower, the check
9675      # below for broken collect2 doesn't work under 4.3+
9676	collect2name=`${CC} -print-prog-name=collect2`
9677	if test -f "$collect2name" && \
9678	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9679	then
9680	  # We have reworked collect2
9681	  hardcode_direct_CXX=yes
9682	else
9683	  # We have old collect2
9684	  hardcode_direct_CXX=unsupported
9685	  # It fails to find uninstalled libraries when the uninstalled
9686	  # path is not listed in the libpath.  Setting hardcode_minus_L
9687	  # to unsupported forces relinking
9688	  hardcode_minus_L_CXX=yes
9689	  hardcode_libdir_flag_spec_CXX='-L$libdir'
9690	  hardcode_libdir_separator_CXX=
9691	fi
9692      esac
9693      shared_flag='-shared'
9694    else
9695      # not using gcc
9696      if test "$host_cpu" = ia64; then
9697	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9698	# chokes on -Wl,-G. The following line is correct:
9699	shared_flag='-G'
9700      else
9701	if test "$aix_use_runtimelinking" = yes; then
9702	  shared_flag='${wl}-G'
9703	else
9704	  shared_flag='${wl}-bM:SRE'
9705	fi
9706      fi
9707    fi
9708
9709    # It seems that -bexpall does not export symbols beginning with
9710    # underscore (_), so it is better to generate a list of symbols to export.
9711    always_export_symbols_CXX=yes
9712    if test "$aix_use_runtimelinking" = yes; then
9713      # Warning - without using the other runtime loading flags (-brtl),
9714      # -berok will link without error, but may produce a broken library.
9715      allow_undefined_flag_CXX='-berok'
9716      # Determine the default libpath from the value encoded in an empty executable.
9717      cat >conftest.$ac_ext <<_ACEOF
9718#line $LINENO "configure"
9719/* confdefs.h.  */
9720_ACEOF
9721cat confdefs.h >>conftest.$ac_ext
9722cat >>conftest.$ac_ext <<_ACEOF
9723/* end confdefs.h.  */
9724
9725int
9726main ()
9727{
9728
9729  ;
9730  return 0;
9731}
9732_ACEOF
9733rm -f conftest.$ac_objext conftest$ac_exeext
9734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9735  (eval $ac_link) 2>&5
9736  ac_status=$?
9737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738  (exit $ac_status); } &&
9739         { ac_try='test -s conftest$ac_exeext'
9740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741  (eval $ac_try) 2>&5
9742  ac_status=$?
9743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744  (exit $ac_status); }; }; then
9745
9746aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9747}'`
9748# Check for a 64-bit object if we didn't find anything.
9749if 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; }
9750}'`; fi
9751else
9752  echo "$as_me: failed program was:" >&5
9753sed 's/^/| /' conftest.$ac_ext >&5
9754
9755fi
9756rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9757if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9758
9759      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9760
9761      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"
9762     else
9763      if test "$host_cpu" = ia64; then
9764	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9765	allow_undefined_flag_CXX="-z nodefs"
9766	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"
9767      else
9768	# Determine the default libpath from the value encoded in an empty executable.
9769	cat >conftest.$ac_ext <<_ACEOF
9770#line $LINENO "configure"
9771/* confdefs.h.  */
9772_ACEOF
9773cat confdefs.h >>conftest.$ac_ext
9774cat >>conftest.$ac_ext <<_ACEOF
9775/* end confdefs.h.  */
9776
9777int
9778main ()
9779{
9780
9781  ;
9782  return 0;
9783}
9784_ACEOF
9785rm -f conftest.$ac_objext conftest$ac_exeext
9786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9787  (eval $ac_link) 2>&5
9788  ac_status=$?
9789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790  (exit $ac_status); } &&
9791         { ac_try='test -s conftest$ac_exeext'
9792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793  (eval $ac_try) 2>&5
9794  ac_status=$?
9795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796  (exit $ac_status); }; }; then
9797
9798aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9799}'`
9800# Check for a 64-bit object if we didn't find anything.
9801if 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; }
9802}'`; fi
9803else
9804  echo "$as_me: failed program was:" >&5
9805sed 's/^/| /' conftest.$ac_ext >&5
9806
9807fi
9808rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9809if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9810
9811	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9812	# Warning - without using the other run time loading flags,
9813	# -berok will link without error, but may produce a broken library.
9814	no_undefined_flag_CXX=' ${wl}-bernotok'
9815	allow_undefined_flag_CXX=' ${wl}-berok'
9816	# -bexpall does not export symbols beginning with underscore (_)
9817	always_export_symbols_CXX=yes
9818	# Exported symbols can be pulled into shared objects from archives
9819	whole_archive_flag_spec_CXX=' '
9820	archive_cmds_need_lc_CXX=yes
9821	# This is similar to how AIX traditionally builds it's shared libraries.
9822	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'
9823      fi
9824    fi
9825    ;;
9826  chorus*)
9827    case $cc_basename in
9828      *)
9829	# FIXME: insert proper C++ library support
9830	ld_shlibs_CXX=no
9831	;;
9832    esac
9833    ;;
9834
9835  cygwin* | mingw* | pw32*)
9836    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9837    # as there is no search path for DLLs.
9838    hardcode_libdir_flag_spec_CXX='-L$libdir'
9839    allow_undefined_flag_CXX=unsupported
9840    always_export_symbols_CXX=no
9841    enable_shared_with_static_runtimes_CXX=yes
9842
9843    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9844      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'
9845      # If the export-symbols file already is a .def file (1st line
9846      # is EXPORTS), use it as is; otherwise, prepend...
9847      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9848	cp $export_symbols $output_objdir/$soname.def;
9849      else
9850	echo EXPORTS > $output_objdir/$soname.def;
9851	cat $export_symbols >> $output_objdir/$soname.def;
9852      fi~
9853      $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'
9854    else
9855      ld_shlibs_CXX=no
9856    fi
9857  ;;
9858
9859  darwin* | rhapsody*)
9860   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9861    archive_cmds_need_lc_CXX=no
9862    case "$host_os" in
9863    rhapsody* | darwin1.[012])
9864      allow_undefined_flag_CXX='-undefined suppress'
9865      ;;
9866    *) # Darwin 1.3 on
9867      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9868      ;;
9869    esac
9870    	lt_int_apple_cc_single_mod=no
9871    	output_verbose_link_cmd='echo'
9872    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9873    	  lt_int_apple_cc_single_mod=yes
9874    	fi
9875    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9876    	  archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9877    	else
9878        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'
9879      fi
9880      module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9881
9882    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9883      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9884        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}'
9885      else
9886        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}'
9887      fi
9888        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}'
9889    hardcode_direct_CXX=no
9890    hardcode_automatic_CXX=yes
9891    hardcode_shlibpath_var_CXX=unsupported
9892    whole_archive_flag_spec_CXX='-all_load $convenience'
9893    link_all_deplibs_CXX=yes
9894   fi
9895    ;;
9896
9897  dgux*)
9898    case $cc_basename in
9899      ec++)
9900	# FIXME: insert proper C++ library support
9901	ld_shlibs_CXX=no
9902	;;
9903      ghcx)
9904	# Green Hills C++ Compiler
9905	# FIXME: insert proper C++ library support
9906	ld_shlibs_CXX=no
9907	;;
9908      *)
9909	# FIXME: insert proper C++ library support
9910	ld_shlibs_CXX=no
9911	;;
9912    esac
9913    ;;
9914  freebsd12*)
9915    # C++ shared libraries reported to be fairly broken before switch to ELF
9916    ld_shlibs_CXX=no
9917    ;;
9918  freebsd-elf*)
9919    archive_cmds_need_lc_CXX=no
9920    ;;
9921  freebsd*)
9922    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9923    # conventions
9924    ld_shlibs_CXX=yes
9925    ;;
9926  gnu*)
9927    ;;
9928  hpux9*)
9929    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9930    hardcode_libdir_separator_CXX=:
9931    export_dynamic_flag_spec_CXX='${wl}-E'
9932    hardcode_direct_CXX=yes
9933    hardcode_minus_L_CXX=yes # Not in the search PATH,
9934				# but as the default
9935				# location of the library.
9936
9937    case $cc_basename in
9938    CC)
9939      # FIXME: insert proper C++ library support
9940      ld_shlibs_CXX=no
9941      ;;
9942    aCC)
9943      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'
9944      # Commands to make compiler produce verbose output that lists
9945      # what "hidden" libraries, object files and flags are used when
9946      # linking a shared library.
9947      #
9948      # There doesn't appear to be a way to prevent this compiler from
9949      # explicitly linking system object files so we need to strip them
9950      # from the output so that they don't get included in the library
9951      # dependencies.
9952      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'
9953      ;;
9954    *)
9955      if test "$GXX" = yes; then
9956        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'
9957      else
9958        # FIXME: insert proper C++ library support
9959        ld_shlibs_CXX=no
9960      fi
9961      ;;
9962    esac
9963    ;;
9964  hpux10*|hpux11*)
9965    if test $with_gnu_ld = no; then
9966      case "$host_cpu" in
9967      hppa*64*)
9968	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9969	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9970	hardcode_libdir_separator_CXX=:
9971        ;;
9972      ia64*)
9973	hardcode_libdir_flag_spec_CXX='-L$libdir'
9974        ;;
9975      *)
9976	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9977	hardcode_libdir_separator_CXX=:
9978	export_dynamic_flag_spec_CXX='${wl}-E'
9979        ;;
9980      esac
9981    fi
9982    case "$host_cpu" in
9983    hppa*64*)
9984      hardcode_direct_CXX=no
9985      hardcode_shlibpath_var_CXX=no
9986      ;;
9987    ia64*)
9988      hardcode_direct_CXX=no
9989      hardcode_shlibpath_var_CXX=no
9990      hardcode_minus_L_CXX=yes # Not in the search PATH,
9991					      # but as the default
9992					      # location of the library.
9993      ;;
9994    *)
9995      hardcode_direct_CXX=yes
9996      hardcode_minus_L_CXX=yes # Not in the search PATH,
9997					      # but as the default
9998					      # location of the library.
9999      ;;
10000    esac
10001
10002    case $cc_basename in
10003      CC)
10004	# FIXME: insert proper C++ library support
10005	ld_shlibs_CXX=no
10006	;;
10007      aCC)
10008	case "$host_cpu" in
10009	hppa*64*|ia64*)
10010	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10011	  ;;
10012	*)
10013	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10014	  ;;
10015	esac
10016	# Commands to make compiler produce verbose output that lists
10017	# what "hidden" libraries, object files and flags are used when
10018	# linking a shared library.
10019	#
10020	# There doesn't appear to be a way to prevent this compiler from
10021	# explicitly linking system object files so we need to strip them
10022	# from the output so that they don't get included in the library
10023	# dependencies.
10024	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'
10025	;;
10026      *)
10027	if test "$GXX" = yes; then
10028	  if test $with_gnu_ld = no; then
10029	    case "$host_cpu" in
10030	    ia64*|hppa*64*)
10031	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10032	      ;;
10033	    *)
10034	      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'
10035	      ;;
10036	    esac
10037	  fi
10038	else
10039	  # FIXME: insert proper C++ library support
10040	  ld_shlibs_CXX=no
10041	fi
10042	;;
10043    esac
10044    ;;
10045  irix5* | irix6*)
10046    case $cc_basename in
10047      CC)
10048	# SGI C++
10049	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'
10050
10051	# Archives containing C++ object files must be created using
10052	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10053	# necessary to make sure instantiated templates are included
10054	# in the archive.
10055	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10056	;;
10057      *)
10058	if test "$GXX" = yes; then
10059	  if test "$with_gnu_ld" = no; then
10060	    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'
10061	  else
10062	    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'
10063	  fi
10064	fi
10065	link_all_deplibs_CXX=yes
10066	;;
10067    esac
10068    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10069    hardcode_libdir_separator_CXX=:
10070    ;;
10071  linux*)
10072    case $cc_basename in
10073      KCC)
10074	# Kuck and Associates, Inc. (KAI) C++ Compiler
10075
10076	# KCC will only create a shared library if the output file
10077	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10078	# to its proper name (with version) after linking.
10079	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'
10080	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'
10081	# Commands to make compiler produce verbose output that lists
10082	# what "hidden" libraries, object files and flags are used when
10083	# linking a shared library.
10084	#
10085	# There doesn't appear to be a way to prevent this compiler from
10086	# explicitly linking system object files so we need to strip them
10087	# from the output so that they don't get included in the library
10088	# dependencies.
10089	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'
10090
10091	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10092	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10093
10094	# Archives containing C++ object files must be created using
10095	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10096	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10097	;;
10098      icpc)
10099	# Intel C++
10100	with_gnu_ld=yes
10101	archive_cmds_need_lc_CXX=no
10102	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10103	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'
10104	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10105	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10106	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10107	;;
10108      cxx)
10109	# Compaq C++
10110	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10111	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'
10112
10113	runpath_var=LD_RUN_PATH
10114	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10115	hardcode_libdir_separator_CXX=:
10116
10117	# Commands to make compiler produce verbose output that lists
10118	# what "hidden" libraries, object files and flags are used when
10119	# linking a shared library.
10120	#
10121	# There doesn't appear to be a way to prevent this compiler from
10122	# explicitly linking system object files so we need to strip them
10123	# from the output so that they don't get included in the library
10124	# dependencies.
10125	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'
10126	;;
10127    esac
10128    ;;
10129  lynxos*)
10130    # FIXME: insert proper C++ library support
10131    ld_shlibs_CXX=no
10132    ;;
10133  m88k*)
10134    # FIXME: insert proper C++ library support
10135    ld_shlibs_CXX=no
10136    ;;
10137  mvs*)
10138    case $cc_basename in
10139      cxx)
10140	# FIXME: insert proper C++ library support
10141	ld_shlibs_CXX=no
10142	;;
10143      *)
10144	# FIXME: insert proper C++ library support
10145	ld_shlibs_CXX=no
10146	;;
10147    esac
10148    ;;
10149  netbsd*)
10150    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10151      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10152      wlarc=
10153      hardcode_libdir_flag_spec_CXX='-R$libdir'
10154      hardcode_direct_CXX=yes
10155      hardcode_shlibpath_var_CXX=no
10156    fi
10157    # Workaround some broken pre-1.5 toolchains
10158    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10159    ;;
10160  osf3*)
10161    case $cc_basename in
10162      KCC)
10163	# Kuck and Associates, Inc. (KAI) C++ Compiler
10164
10165	# KCC will only create a shared library if the output file
10166	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10167	# to its proper name (with version) after linking.
10168	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'
10169
10170	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10171	hardcode_libdir_separator_CXX=:
10172
10173	# Archives containing C++ object files must be created using
10174	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10175	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10176
10177	;;
10178      RCC)
10179	# Rational C++ 2.4.1
10180	# FIXME: insert proper C++ library support
10181	ld_shlibs_CXX=no
10182	;;
10183      cxx)
10184	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10185	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'
10186
10187	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10188	hardcode_libdir_separator_CXX=:
10189
10190	# Commands to make compiler produce verbose output that lists
10191	# what "hidden" libraries, object files and flags are used when
10192	# linking a shared library.
10193	#
10194	# There doesn't appear to be a way to prevent this compiler from
10195	# explicitly linking system object files so we need to strip them
10196	# from the output so that they don't get included in the library
10197	# dependencies.
10198	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'
10199	;;
10200      *)
10201	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10202	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10203	  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'
10204
10205	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10206	  hardcode_libdir_separator_CXX=:
10207
10208	  # Commands to make compiler produce verbose output that lists
10209	  # what "hidden" libraries, object files and flags are used when
10210	  # linking a shared library.
10211	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10212
10213	else
10214	  # FIXME: insert proper C++ library support
10215	  ld_shlibs_CXX=no
10216	fi
10217	;;
10218    esac
10219    ;;
10220  osf4* | osf5*)
10221    case $cc_basename in
10222      KCC)
10223	# Kuck and Associates, Inc. (KAI) C++ Compiler
10224
10225	# KCC will only create a shared library if the output file
10226	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10227	# to its proper name (with version) after linking.
10228	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'
10229
10230	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10231	hardcode_libdir_separator_CXX=:
10232
10233	# Archives containing C++ object files must be created using
10234	# the KAI C++ compiler.
10235	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10236	;;
10237      RCC)
10238	# Rational C++ 2.4.1
10239	# FIXME: insert proper C++ library support
10240	ld_shlibs_CXX=no
10241	;;
10242      cxx)
10243	allow_undefined_flag_CXX=' -expect_unresolved \*'
10244	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'
10245	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10246	  echo "-hidden">> $lib.exp~
10247	  $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~
10248	  $rm $lib.exp'
10249
10250	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10251	hardcode_libdir_separator_CXX=:
10252
10253	# Commands to make compiler produce verbose output that lists
10254	# what "hidden" libraries, object files and flags are used when
10255	# linking a shared library.
10256	#
10257	# There doesn't appear to be a way to prevent this compiler from
10258	# explicitly linking system object files so we need to strip them
10259	# from the output so that they don't get included in the library
10260	# dependencies.
10261	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'
10262	;;
10263      *)
10264	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10265	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10266	 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'
10267
10268	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10269	  hardcode_libdir_separator_CXX=:
10270
10271	  # Commands to make compiler produce verbose output that lists
10272	  # what "hidden" libraries, object files and flags are used when
10273	  # linking a shared library.
10274	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10275
10276	else
10277	  # FIXME: insert proper C++ library support
10278	  ld_shlibs_CXX=no
10279	fi
10280	;;
10281    esac
10282    ;;
10283  psos*)
10284    # FIXME: insert proper C++ library support
10285    ld_shlibs_CXX=no
10286    ;;
10287  sco*)
10288    archive_cmds_need_lc_CXX=no
10289    case $cc_basename in
10290      CC)
10291	# FIXME: insert proper C++ library support
10292	ld_shlibs_CXX=no
10293	;;
10294      *)
10295	# FIXME: insert proper C++ library support
10296	ld_shlibs_CXX=no
10297	;;
10298    esac
10299    ;;
10300  sunos4*)
10301    case $cc_basename in
10302      CC)
10303	# Sun C++ 4.x
10304	# FIXME: insert proper C++ library support
10305	ld_shlibs_CXX=no
10306	;;
10307      lcc)
10308	# Lucid
10309	# FIXME: insert proper C++ library support
10310	ld_shlibs_CXX=no
10311	;;
10312      *)
10313	# FIXME: insert proper C++ library support
10314	ld_shlibs_CXX=no
10315	;;
10316    esac
10317    ;;
10318  solaris*)
10319    case $cc_basename in
10320      CC)
10321	# Sun C++ 4.2, 5.x and Centerline C++
10322	no_undefined_flag_CXX=' -zdefs'
10323	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10324	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10325	$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'
10326
10327	hardcode_libdir_flag_spec_CXX='-R$libdir'
10328	hardcode_shlibpath_var_CXX=no
10329	case $host_os in
10330	  solaris2.0-5 | solaris2.0-5.*) ;;
10331	  *)
10332	    # The C++ compiler is used as linker so we must use $wl
10333	    # flag to pass the commands to the underlying system
10334	    # linker.
10335	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10336	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10337	    ;;
10338	esac
10339	link_all_deplibs_CXX=yes
10340
10341	# Commands to make compiler produce verbose output that lists
10342	# what "hidden" libraries, object files and flags are used when
10343	# linking a shared library.
10344	#
10345	# There doesn't appear to be a way to prevent this compiler from
10346	# explicitly linking system object files so we need to strip them
10347	# from the output so that they don't get included in the library
10348	# dependencies.
10349	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'
10350
10351	# Archives containing C++ object files must be created using
10352	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10353	# necessary to make sure instantiated templates are included
10354	# in the archive.
10355	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10356	;;
10357      gcx)
10358	# Green Hills C++ Compiler
10359	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10360
10361	# The C++ compiler must be used to create the archive.
10362	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10363	;;
10364      *)
10365	# GNU C++ compiler with Solaris linker
10366	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10367	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10368	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10369	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10370	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10371		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10372
10373	    # Commands to make compiler produce verbose output that lists
10374	    # what "hidden" libraries, object files and flags are used when
10375	    # linking a shared library.
10376	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10377	  else
10378	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10379	    # platform.
10380	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10381	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10382		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10383
10384	    # Commands to make compiler produce verbose output that lists
10385	    # what "hidden" libraries, object files and flags are used when
10386	    # linking a shared library.
10387	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10388	  fi
10389
10390	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10391	fi
10392	;;
10393    esac
10394    ;;
10395  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10396    archive_cmds_need_lc_CXX=no
10397    ;;
10398  tandem*)
10399    case $cc_basename in
10400      NCC)
10401	# NonStop-UX NCC 3.20
10402	# FIXME: insert proper C++ library support
10403	ld_shlibs_CXX=no
10404	;;
10405      *)
10406	# FIXME: insert proper C++ library support
10407	ld_shlibs_CXX=no
10408	;;
10409    esac
10410    ;;
10411  vxworks*)
10412    # FIXME: insert proper C++ library support
10413    ld_shlibs_CXX=no
10414    ;;
10415  *)
10416    # FIXME: insert proper C++ library support
10417    ld_shlibs_CXX=no
10418    ;;
10419esac
10420echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10421echo "${ECHO_T}$ld_shlibs_CXX" >&6
10422test "$ld_shlibs_CXX" = no && can_build_shared=no
10423
10424GCC_CXX="$GXX"
10425LD_CXX="$LD"
10426
10427## CAVEAT EMPTOR:
10428## There is no encapsulation within the following macros, do not change
10429## the running order or otherwise move them around unless you know exactly
10430## what you are doing...
10431
10432cat > conftest.$ac_ext <<EOF
10433class Foo
10434{
10435public:
10436  Foo (void) { a = 0; }
10437private:
10438  int a;
10439};
10440EOF
10441
10442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10443  (eval $ac_compile) 2>&5
10444  ac_status=$?
10445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446  (exit $ac_status); }; then
10447  # Parse the compiler output and extract the necessary
10448  # objects, libraries and library flags.
10449
10450  # Sentinel used to keep track of whether or not we are before
10451  # the conftest object file.
10452  pre_test_object_deps_done=no
10453
10454  # The `*' in the case matches for architectures that use `case' in
10455  # $output_verbose_cmd can trigger glob expansion during the loop
10456  # eval without this substitution.
10457  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10458
10459  for p in `eval $output_verbose_link_cmd`; do
10460    case $p in
10461
10462    -L* | -R* | -l*)
10463       # Some compilers place space between "-{L,R}" and the path.
10464       # Remove the space.
10465       if test $p = "-L" \
10466	  || test $p = "-R"; then
10467	 prev=$p
10468	 continue
10469       else
10470	 prev=
10471       fi
10472
10473       if test "$pre_test_object_deps_done" = no; then
10474	 case $p in
10475	 -L* | -R*)
10476	   # Internal compiler library paths should come after those
10477	   # provided the user.  The postdeps already come after the
10478	   # user supplied libs so there is no need to process them.
10479	   if test -z "$compiler_lib_search_path_CXX"; then
10480	     compiler_lib_search_path_CXX="${prev}${p}"
10481	   else
10482	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10483	   fi
10484	   ;;
10485	 # The "-l" case would never come before the object being
10486	 # linked, so don't bother handling this case.
10487	 esac
10488       else
10489	 if test -z "$postdeps_CXX"; then
10490	   postdeps_CXX="${prev}${p}"
10491	 else
10492	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10493	 fi
10494       fi
10495       ;;
10496
10497    *.$objext)
10498       # This assumes that the test object file only shows up
10499       # once in the compiler output.
10500       if test "$p" = "conftest.$objext"; then
10501	 pre_test_object_deps_done=yes
10502	 continue
10503       fi
10504
10505       if test "$pre_test_object_deps_done" = no; then
10506	 if test -z "$predep_objects_CXX"; then
10507	   predep_objects_CXX="$p"
10508	 else
10509	   predep_objects_CXX="$predep_objects_CXX $p"
10510	 fi
10511       else
10512	 if test -z "$postdep_objects_CXX"; then
10513	   postdep_objects_CXX="$p"
10514	 else
10515	   postdep_objects_CXX="$postdep_objects_CXX $p"
10516	 fi
10517       fi
10518       ;;
10519
10520    *) ;; # Ignore the rest.
10521
10522    esac
10523  done
10524
10525  # Clean up.
10526  rm -f a.out a.exe
10527else
10528  echo "libtool.m4: error: problem compiling CXX test program"
10529fi
10530
10531$rm -f confest.$objext
10532
10533case " $postdeps_CXX " in
10534*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10535esac
10536
10537lt_prog_compiler_wl_CXX=
10538lt_prog_compiler_pic_CXX=
10539lt_prog_compiler_static_CXX=
10540
10541echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10542echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10543
10544  # C++ specific cases for pic, static, wl, etc.
10545  if test "$GXX" = yes; then
10546    lt_prog_compiler_wl_CXX='-Wl,'
10547    lt_prog_compiler_static_CXX='-static'
10548
10549    case $host_os in
10550    aix*)
10551      # All AIX code is PIC.
10552      if test "$host_cpu" = ia64; then
10553	# AIX 5 now supports IA64 processor
10554	lt_prog_compiler_static_CXX='-Bstatic'
10555      fi
10556      ;;
10557    amigaos*)
10558      # FIXME: we need at least 68020 code to build shared libraries, but
10559      # adding the `-m68020' flag to GCC prevents building anything better,
10560      # like `-m68040'.
10561      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10562      ;;
10563    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10564      # PIC is the default for these OSes.
10565      ;;
10566    mingw* | os2* | pw32*)
10567      # This hack is so that the source file can tell whether it is being
10568      # built for inclusion in a dll (and should export symbols for example).
10569      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10570      ;;
10571    darwin* | rhapsody*)
10572      # PIC is the default on this platform
10573      # Common symbols not allowed in MH_DYLIB files
10574      lt_prog_compiler_pic_CXX='-fno-common'
10575      ;;
10576    *djgpp*)
10577      # DJGPP does not support shared libraries at all
10578      lt_prog_compiler_pic_CXX=
10579      ;;
10580    sysv4*MP*)
10581      if test -d /usr/nec; then
10582	lt_prog_compiler_pic_CXX=-Kconform_pic
10583      fi
10584      ;;
10585    hpux*)
10586      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10587      # not for PA HP-UX.
10588      case "$host_cpu" in
10589      hppa*64*|ia64*)
10590	;;
10591      *)
10592	lt_prog_compiler_pic_CXX='-fPIC'
10593	;;
10594      esac
10595      ;;
10596    *)
10597      lt_prog_compiler_pic_CXX='-fPIC'
10598      ;;
10599    esac
10600  else
10601    case $host_os in
10602      aix4* | aix5*)
10603	# All AIX code is PIC.
10604	if test "$host_cpu" = ia64; then
10605	  # AIX 5 now supports IA64 processor
10606	  lt_prog_compiler_static_CXX='-Bstatic'
10607	else
10608	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10609	fi
10610	;;
10611      chorus*)
10612	case $cc_basename in
10613	cxch68)
10614	  # Green Hills C++ Compiler
10615	  # _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"
10616	  ;;
10617	esac
10618	;;
10619      dgux*)
10620	case $cc_basename in
10621	  ec++)
10622	    lt_prog_compiler_pic_CXX='-KPIC'
10623	    ;;
10624	  ghcx)
10625	    # Green Hills C++ Compiler
10626	    lt_prog_compiler_pic_CXX='-pic'
10627	    ;;
10628	  *)
10629	    ;;
10630	esac
10631	;;
10632      freebsd*)
10633	# FreeBSD uses GNU C++
10634	;;
10635      hpux9* | hpux10* | hpux11*)
10636	case $cc_basename in
10637	  CC)
10638	    lt_prog_compiler_wl_CXX='-Wl,'
10639	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10640	    if test "$host_cpu" != ia64; then
10641	      lt_prog_compiler_pic_CXX='+Z'
10642	    fi
10643	    ;;
10644	  aCC)
10645	    lt_prog_compiler_wl_CXX='-Wl,'
10646	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10647	    case "$host_cpu" in
10648	    hppa*64*|ia64*)
10649	      # +Z the default
10650	      ;;
10651	    *)
10652	      lt_prog_compiler_pic_CXX='+Z'
10653	      ;;
10654	    esac
10655	    ;;
10656	  *)
10657	    ;;
10658	esac
10659	;;
10660      irix5* | irix6* | nonstopux*)
10661	case $cc_basename in
10662	  CC)
10663	    lt_prog_compiler_wl_CXX='-Wl,'
10664	    lt_prog_compiler_static_CXX='-non_shared'
10665	    # CC pic flag -KPIC is the default.
10666	    ;;
10667	  *)
10668	    ;;
10669	esac
10670	;;
10671      linux*)
10672	case $cc_basename in
10673	  KCC)
10674	    # KAI C++ Compiler
10675	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10676	    lt_prog_compiler_pic_CXX='-fPIC'
10677	    ;;
10678	  icpc)
10679	    # Intel C++
10680	    lt_prog_compiler_wl_CXX='-Wl,'
10681	    lt_prog_compiler_pic_CXX='-KPIC'
10682	    lt_prog_compiler_static_CXX='-static'
10683	    ;;
10684	  cxx)
10685	    # Compaq C++
10686	    # Make sure the PIC flag is empty.  It appears that all Alpha
10687	    # Linux and Compaq Tru64 Unix objects are PIC.
10688	    lt_prog_compiler_pic_CXX=
10689	    lt_prog_compiler_static_CXX='-non_shared'
10690	    ;;
10691	  *)
10692	    ;;
10693	esac
10694	;;
10695      lynxos*)
10696	;;
10697      m88k*)
10698	;;
10699      mvs*)
10700	case $cc_basename in
10701	  cxx)
10702	    lt_prog_compiler_pic_CXX='-W c,exportall'
10703	    ;;
10704	  *)
10705	    ;;
10706	esac
10707	;;
10708      netbsd*)
10709	;;
10710      osf3* | osf4* | osf5*)
10711	case $cc_basename in
10712	  KCC)
10713	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10714	    ;;
10715	  RCC)
10716	    # Rational C++ 2.4.1
10717	    lt_prog_compiler_pic_CXX='-pic'
10718	    ;;
10719	  cxx)
10720	    # Digital/Compaq C++
10721	    lt_prog_compiler_wl_CXX='-Wl,'
10722	    # Make sure the PIC flag is empty.  It appears that all Alpha
10723	    # Linux and Compaq Tru64 Unix objects are PIC.
10724	    lt_prog_compiler_pic_CXX=
10725	    lt_prog_compiler_static_CXX='-non_shared'
10726	    ;;
10727	  *)
10728	    ;;
10729	esac
10730	;;
10731      psos*)
10732	;;
10733      sco*)
10734	case $cc_basename in
10735	  CC)
10736	    lt_prog_compiler_pic_CXX='-fPIC'
10737	    ;;
10738	  *)
10739	    ;;
10740	esac
10741	;;
10742      solaris*)
10743	case $cc_basename in
10744	  CC)
10745	    # Sun C++ 4.2, 5.x and Centerline C++
10746	    lt_prog_compiler_pic_CXX='-KPIC'
10747	    lt_prog_compiler_static_CXX='-Bstatic'
10748	    lt_prog_compiler_wl_CXX='-Qoption ld '
10749	    ;;
10750	  gcx)
10751	    # Green Hills C++ Compiler
10752	    lt_prog_compiler_pic_CXX='-PIC'
10753	    ;;
10754	  *)
10755	    ;;
10756	esac
10757	;;
10758      sunos4*)
10759	case $cc_basename in
10760	  CC)
10761	    # Sun C++ 4.x
10762	    lt_prog_compiler_pic_CXX='-pic'
10763	    lt_prog_compiler_static_CXX='-Bstatic'
10764	    ;;
10765	  lcc)
10766	    # Lucid
10767	    lt_prog_compiler_pic_CXX='-pic'
10768	    ;;
10769	  *)
10770	    ;;
10771	esac
10772	;;
10773      tandem*)
10774	case $cc_basename in
10775	  NCC)
10776	    # NonStop-UX NCC 3.20
10777	    lt_prog_compiler_pic_CXX='-KPIC'
10778	    ;;
10779	  *)
10780	    ;;
10781	esac
10782	;;
10783      unixware*)
10784	;;
10785      vxworks*)
10786	;;
10787      *)
10788	lt_prog_compiler_can_build_shared_CXX=no
10789	;;
10790    esac
10791  fi
10792
10793echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10794echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10795
10796#
10797# Check to make sure the PIC flag actually works.
10798#
10799if test -n "$lt_prog_compiler_pic_CXX"; then
10800  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10801echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10802if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10803  echo $ECHO_N "(cached) $ECHO_C" >&6
10804else
10805  lt_prog_compiler_pic_works_CXX=no
10806  ac_outfile=conftest.$ac_objext
10807   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10808   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10809   # Insert the option either (1) after the last *FLAGS variable, or
10810   # (2) before a word containing "conftest.", or (3) at the end.
10811   # Note that $ac_compile itself does not contain backslashes and begins
10812   # with a dollar sign (not a hyphen), so the echo should work correctly.
10813   # The option is referenced via a variable to avoid confusing sed.
10814   lt_compile=`echo "$ac_compile" | $SED \
10815   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10816   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10817   -e 's:$: $lt_compiler_flag:'`
10818   (eval echo "\"\$as_me:10818: $lt_compile\"" >&5)
10819   (eval "$lt_compile" 2>conftest.err)
10820   ac_status=$?
10821   cat conftest.err >&5
10822   echo "$as_me:10822: \$? = $ac_status" >&5
10823   if (exit $ac_status) && test -s "$ac_outfile"; then
10824     # The compiler can only warn and ignore the option if not recognized
10825     # So say no if there are warnings
10826     if test ! -s conftest.err; then
10827       lt_prog_compiler_pic_works_CXX=yes
10828     fi
10829   fi
10830   $rm conftest*
10831
10832fi
10833echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10834echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10835
10836if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10837    case $lt_prog_compiler_pic_CXX in
10838     "" | " "*) ;;
10839     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10840     esac
10841else
10842    lt_prog_compiler_pic_CXX=
10843     lt_prog_compiler_can_build_shared_CXX=no
10844fi
10845
10846fi
10847case "$host_os" in
10848  # For platforms which do not support PIC, -DPIC is meaningless:
10849  *djgpp*)
10850    lt_prog_compiler_pic_CXX=
10851    ;;
10852  *)
10853    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10854    ;;
10855esac
10856
10857echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10858echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10859if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10860  echo $ECHO_N "(cached) $ECHO_C" >&6
10861else
10862  lt_cv_prog_compiler_c_o_CXX=no
10863   $rm -r conftest 2>/dev/null
10864   mkdir conftest
10865   cd conftest
10866   mkdir out
10867   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10868
10869   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10870   # that will create temporary files in the current directory regardless of
10871   # the output directory.  Thus, making CWD read-only will cause this test
10872   # to fail, enabling locking or at least warning the user not to do parallel
10873   # builds.
10874   chmod -w .
10875
10876   lt_compiler_flag="-o out/conftest2.$ac_objext"
10877   # Insert the option either (1) after the last *FLAGS variable, or
10878   # (2) before a word containing "conftest.", or (3) at the end.
10879   # Note that $ac_compile itself does not contain backslashes and begins
10880   # with a dollar sign (not a hyphen), so the echo should work correctly.
10881   lt_compile=`echo "$ac_compile" | $SED \
10882   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10883   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10884   -e 's:$: $lt_compiler_flag:'`
10885   (eval echo "\"\$as_me:10885: $lt_compile\"" >&5)
10886   (eval "$lt_compile" 2>out/conftest.err)
10887   ac_status=$?
10888   cat out/conftest.err >&5
10889   echo "$as_me:10889: \$? = $ac_status" >&5
10890   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10891   then
10892     # The compiler can only warn and ignore the option if not recognized
10893     # So say no if there are warnings
10894     if test ! -s out/conftest.err; then
10895       lt_cv_prog_compiler_c_o_CXX=yes
10896     fi
10897   fi
10898   chmod u+w .
10899   $rm conftest* out/*
10900   rmdir out
10901   cd ..
10902   rmdir conftest
10903   $rm conftest*
10904
10905fi
10906echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10907echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10908
10909
10910hard_links="nottested"
10911if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10912  # do not overwrite the value of need_locks provided by the user
10913  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10914echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10915  hard_links=yes
10916  $rm conftest*
10917  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10918  touch conftest.a
10919  ln conftest.a conftest.b 2>&5 || hard_links=no
10920  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10921  echo "$as_me:$LINENO: result: $hard_links" >&5
10922echo "${ECHO_T}$hard_links" >&6
10923  if test "$hard_links" = no; then
10924    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10925echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10926    need_locks=warn
10927  fi
10928else
10929  need_locks=no
10930fi
10931
10932echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10933echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10934
10935  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10936  case $host_os in
10937  aix4* | aix5*)
10938    # If we're using GNU nm, then we don't want the "-C" option.
10939    # -C means demangle to AIX nm, but means don't demangle with GNU nm
10940    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10941      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'
10942    else
10943      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'
10944    fi
10945    ;;
10946  pw32*)
10947    export_symbols_cmds_CXX="$ltdll_cmds"
10948  ;;
10949  cygwin* | mingw*)
10950    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10951  ;;
10952  *)
10953    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10954  ;;
10955  esac
10956
10957echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10958echo "${ECHO_T}$ld_shlibs_CXX" >&6
10959test "$ld_shlibs_CXX" = no && can_build_shared=no
10960
10961variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10962if test "$GCC" = yes; then
10963  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10964fi
10965
10966#
10967# Do we need to explicitly link libc?
10968#
10969case "x$archive_cmds_need_lc_CXX" in
10970x|xyes)
10971  # Assume -lc should be added
10972  archive_cmds_need_lc_CXX=yes
10973
10974  if test "$enable_shared" = yes && test "$GCC" = yes; then
10975    case $archive_cmds_CXX in
10976    *'~'*)
10977      # FIXME: we may have to deal with multi-command sequences.
10978      ;;
10979    '$CC '*)
10980      # Test whether the compiler implicitly links with -lc since on some
10981      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10982      # to ld, don't add -lc before -lgcc.
10983      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10984echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10985      $rm conftest*
10986      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10987
10988      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10989  (eval $ac_compile) 2>&5
10990  ac_status=$?
10991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992  (exit $ac_status); } 2>conftest.err; then
10993        soname=conftest
10994        lib=conftest
10995        libobjs=conftest.$ac_objext
10996        deplibs=
10997        wl=$lt_prog_compiler_wl_CXX
10998        compiler_flags=-v
10999        linker_flags=-v
11000        verstring=
11001        output_objdir=.
11002        libname=conftest
11003        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11004        allow_undefined_flag_CXX=
11005        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11006  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11007  ac_status=$?
11008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009  (exit $ac_status); }
11010        then
11011	  archive_cmds_need_lc_CXX=no
11012        else
11013	  archive_cmds_need_lc_CXX=yes
11014        fi
11015        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11016      else
11017        cat conftest.err 1>&5
11018      fi
11019      $rm conftest*
11020      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11021echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11022      ;;
11023    esac
11024  fi
11025  ;;
11026esac
11027
11028echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11029echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11030hardcode_action_CXX=
11031if test -n "$hardcode_libdir_flag_spec_CXX" || \
11032   test -n "$runpath_var CXX" || \
11033   test "X$hardcode_automatic_CXX"="Xyes" ; then
11034
11035  # We can hardcode non-existant directories.
11036  if test "$hardcode_direct_CXX" != no &&
11037     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11038     # have to relink, otherwise we might link with an installed library
11039     # when we should be linking with a yet-to-be-installed one
11040     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11041     test "$hardcode_minus_L_CXX" != no; then
11042    # Linking always hardcodes the temporary library directory.
11043    hardcode_action_CXX=relink
11044  else
11045    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11046    hardcode_action_CXX=immediate
11047  fi
11048else
11049  # We cannot hardcode anything, or else we can only hardcode existing
11050  # directories.
11051  hardcode_action_CXX=unsupported
11052fi
11053echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11054echo "${ECHO_T}$hardcode_action_CXX" >&6
11055
11056if test "$hardcode_action_CXX" = relink; then
11057  # Fast installation is not supported
11058  enable_fast_install=no
11059elif test "$shlibpath_overrides_runpath" = yes ||
11060     test "$enable_shared" = no; then
11061  # Fast installation is not necessary
11062  enable_fast_install=needless
11063fi
11064
11065striplib=
11066old_striplib=
11067echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11068echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11069if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11070  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11071  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11072  echo "$as_me:$LINENO: result: yes" >&5
11073echo "${ECHO_T}yes" >&6
11074else
11075# FIXME - insert some real tests, host_os isn't really good enough
11076  case $host_os in
11077   darwin*)
11078       if test -n "$STRIP" ; then
11079         striplib="$STRIP -x"
11080         echo "$as_me:$LINENO: result: yes" >&5
11081echo "${ECHO_T}yes" >&6
11082       else
11083  echo "$as_me:$LINENO: result: no" >&5
11084echo "${ECHO_T}no" >&6
11085fi
11086       ;;
11087   *)
11088  echo "$as_me:$LINENO: result: no" >&5
11089echo "${ECHO_T}no" >&6
11090    ;;
11091  esac
11092fi
11093
11094echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11095echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11096library_names_spec=
11097libname_spec='lib$name'
11098soname_spec=
11099shrext=".so"
11100postinstall_cmds=
11101postuninstall_cmds=
11102finish_cmds=
11103finish_eval=
11104shlibpath_var=
11105shlibpath_overrides_runpath=unknown
11106version_type=none
11107dynamic_linker="$host_os ld.so"
11108sys_lib_dlsearch_path_spec="/lib /usr/lib"
11109if test "$GCC" = yes; then
11110  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11111  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11112    # if the path contains ";" then we assume it to be the separator
11113    # otherwise default to the standard path separator (i.e. ":") - it is
11114    # assumed that no part of a normal pathname contains ";" but that should
11115    # okay in the real world where ";" in dirpaths is itself problematic.
11116    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11117  else
11118    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11119  fi
11120else
11121  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11122fi
11123need_lib_prefix=unknown
11124hardcode_into_libs=no
11125
11126# when you set need_version to no, make sure it does not cause -set_version
11127# flags to be left without arguments
11128need_version=unknown
11129
11130case $host_os in
11131aix3*)
11132  version_type=linux
11133  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11134  shlibpath_var=LIBPATH
11135
11136  # AIX 3 has no versioning support, so we append a major version to the name.
11137  soname_spec='${libname}${release}${shared_ext}$major'
11138  ;;
11139
11140aix4* | aix5*)
11141  version_type=linux
11142  need_lib_prefix=no
11143  need_version=no
11144  hardcode_into_libs=yes
11145  if test "$host_cpu" = ia64; then
11146    # AIX 5 supports IA64
11147    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11148    shlibpath_var=LD_LIBRARY_PATH
11149  else
11150    # With GCC up to 2.95.x, collect2 would create an import file
11151    # for dependence libraries.  The import file would start with
11152    # the line `#! .'.  This would cause the generated library to
11153    # depend on `.', always an invalid library.  This was fixed in
11154    # development snapshots of GCC prior to 3.0.
11155    case $host_os in
11156      aix4 | aix4.[01] | aix4.[01].*)
11157      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11158	   echo ' yes '
11159	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11160	:
11161      else
11162	can_build_shared=no
11163      fi
11164      ;;
11165    esac
11166    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11167    # soname into executable. Probably we can add versioning support to
11168    # collect2, so additional links can be useful in future.
11169    if test "$aix_use_runtimelinking" = yes; then
11170      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11171      # instead of lib<name>.a to let people know that these are not
11172      # typical AIX shared libraries.
11173      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11174    else
11175      # We preserve .a as extension for shared libraries through AIX4.2
11176      # and later when we are not doing run time linking.
11177      library_names_spec='${libname}${release}.a $libname.a'
11178      soname_spec='${libname}${release}${shared_ext}$major'
11179    fi
11180    shlibpath_var=LIBPATH
11181  fi
11182  ;;
11183
11184amigaos*)
11185  library_names_spec='$libname.ixlibrary $libname.a'
11186  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11187  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'
11188  ;;
11189
11190beos*)
11191  library_names_spec='${libname}${shared_ext}'
11192  dynamic_linker="$host_os ld.so"
11193  shlibpath_var=LIBRARY_PATH
11194  ;;
11195
11196bsdi4*)
11197  version_type=linux
11198  need_version=no
11199  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11200  soname_spec='${libname}${release}${shared_ext}$major'
11201  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11202  shlibpath_var=LD_LIBRARY_PATH
11203  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11204  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11205  # the default ld.so.conf also contains /usr/contrib/lib and
11206  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11207  # libtool to hard-code these into programs
11208  ;;
11209
11210cygwin* | mingw* | pw32*)
11211  version_type=windows
11212  shrext=".dll"
11213  need_version=no
11214  need_lib_prefix=no
11215
11216  case $GCC,$host_os in
11217  yes,cygwin* | yes,mingw* | yes,pw32*)
11218    library_names_spec='$libname.dll.a'
11219    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11220    postinstall_cmds='base_file=`basename \${file}`~
11221      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11222      dldir=$destdir/`dirname \$dlpath`~
11223      test -d \$dldir || mkdir -p \$dldir~
11224      $install_prog $dir/$dlname \$dldir/$dlname'
11225    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11226      dlpath=$dir/\$dldll~
11227       $rm \$dlpath'
11228    shlibpath_overrides_runpath=yes
11229
11230    case $host_os in
11231    cygwin*)
11232      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11233      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11234      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11235      ;;
11236    mingw*)
11237      # MinGW DLLs use traditional 'lib' prefix
11238      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11239      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11240      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11241        # It is most probably a Windows format PATH printed by
11242        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11243        # path with ; separators, and with drive letters. We can handle the
11244        # drive letters (cygwin fileutils understands them), so leave them,
11245        # especially as we might pass files found there to a mingw objdump,
11246        # which wouldn't understand a cygwinified path. Ahh.
11247        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11248      else
11249        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11250      fi
11251      ;;
11252    pw32*)
11253      # pw32 DLLs use 'pw' prefix rather than 'lib'
11254      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11255      ;;
11256    esac
11257    ;;
11258
11259  *)
11260    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11261    ;;
11262  esac
11263  dynamic_linker='Win32 ld.exe'
11264  # FIXME: first we should search . and the directory the executable is in
11265  shlibpath_var=PATH
11266  ;;
11267
11268darwin* | rhapsody*)
11269  dynamic_linker="$host_os dyld"
11270  version_type=darwin
11271  need_lib_prefix=no
11272  need_version=no
11273  # FIXME: Relying on posixy $() will cause problems for
11274  #        cross-compilation, but unfortunately the echo tests do not
11275  #        yet detect zsh echo's removal of \ escapes.
11276  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11277  soname_spec='${libname}${release}${major}$shared_ext'
11278  shlibpath_overrides_runpath=yes
11279  shlibpath_var=DYLD_LIBRARY_PATH
11280  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11281  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11282  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11283  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"`
11284  fi
11285  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11286  ;;
11287
11288dgux*)
11289  version_type=linux
11290  need_lib_prefix=no
11291  need_version=no
11292  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11293  soname_spec='${libname}${release}${shared_ext}$major'
11294  shlibpath_var=LD_LIBRARY_PATH
11295  ;;
11296
11297freebsd1*)
11298  dynamic_linker=no
11299  ;;
11300
11301freebsd*)
11302  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11303  version_type=freebsd-$objformat
11304  case $version_type in
11305    freebsd-elf*)
11306      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11307      need_version=no
11308      need_lib_prefix=no
11309      ;;
11310    freebsd-*)
11311      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11312      need_version=yes
11313      ;;
11314  esac
11315  shlibpath_var=LD_LIBRARY_PATH
11316  case $host_os in
11317  freebsd2*)
11318    shlibpath_overrides_runpath=yes
11319    ;;
11320  freebsd3.01* | freebsdelf3.01*)
11321    shlibpath_overrides_runpath=yes
11322    hardcode_into_libs=yes
11323    ;;
11324  *) # from 3.2 on
11325    shlibpath_overrides_runpath=no
11326    hardcode_into_libs=yes
11327    ;;
11328  esac
11329  ;;
11330
11331gnu*)
11332  version_type=linux
11333  need_lib_prefix=no
11334  need_version=no
11335  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11336  soname_spec='${libname}${release}${shared_ext}$major'
11337  shlibpath_var=LD_LIBRARY_PATH
11338  hardcode_into_libs=yes
11339  ;;
11340
11341hpux9* | hpux10* | hpux11*)
11342  # Give a soname corresponding to the major version so that dld.sl refuses to
11343  # link against other versions.
11344  version_type=sunos
11345  need_lib_prefix=no
11346  need_version=no
11347  case "$host_cpu" in
11348  ia64*)
11349    shrext='.so'
11350    hardcode_into_libs=yes
11351    dynamic_linker="$host_os dld.so"
11352    shlibpath_var=LD_LIBRARY_PATH
11353    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11354    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11355    soname_spec='${libname}${release}${shared_ext}$major'
11356    if test "X$HPUX_IA64_MODE" = X32; then
11357      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11358    else
11359      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11360    fi
11361    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11362    ;;
11363   hppa*64*)
11364     shrext='.sl'
11365     hardcode_into_libs=yes
11366     dynamic_linker="$host_os dld.sl"
11367     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11368     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11369     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11370     soname_spec='${libname}${release}${shared_ext}$major'
11371     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11372     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11373     ;;
11374   *)
11375    shrext='.sl'
11376    dynamic_linker="$host_os dld.sl"
11377    shlibpath_var=SHLIB_PATH
11378    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11379    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11380    soname_spec='${libname}${release}${shared_ext}$major'
11381    ;;
11382  esac
11383  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11384  postinstall_cmds='chmod 555 $lib'
11385  ;;
11386
11387irix5* | irix6* | nonstopux*)
11388  case $host_os in
11389    nonstopux*) version_type=nonstopux ;;
11390    *)
11391	if test "$lt_cv_prog_gnu_ld" = yes; then
11392		version_type=linux
11393	else
11394		version_type=irix
11395	fi ;;
11396  esac
11397  need_lib_prefix=no
11398  need_version=no
11399  soname_spec='${libname}${release}${shared_ext}$major'
11400  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11401  case $host_os in
11402  irix5* | nonstopux*)
11403    libsuff= shlibsuff=
11404    ;;
11405  *)
11406    case $LD in # libtool.m4 will add one of these switches to LD
11407    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11408      libsuff= shlibsuff= libmagic=32-bit;;
11409    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11410      libsuff=32 shlibsuff=N32 libmagic=N32;;
11411    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11412      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11413    *) libsuff= shlibsuff= libmagic=never-match;;
11414    esac
11415    ;;
11416  esac
11417  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11418  shlibpath_overrides_runpath=no
11419  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11420  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11421  hardcode_into_libs=yes
11422  ;;
11423
11424# No shared lib support for Linux oldld, aout, or coff.
11425linux*oldld* | linux*aout* | linux*coff*)
11426  dynamic_linker=no
11427  ;;
11428
11429# This must be Linux ELF.
11430linux*)
11431  version_type=linux
11432  need_lib_prefix=no
11433  need_version=no
11434  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11435  soname_spec='${libname}${release}${shared_ext}$major'
11436  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11437  shlibpath_var=LD_LIBRARY_PATH
11438  shlibpath_overrides_runpath=no
11439  # This implies no fast_install, which is unacceptable.
11440  # Some rework will be needed to allow for fast_install
11441  # before this can be enabled.
11442  hardcode_into_libs=yes
11443
11444  # We used to test for /lib/ld.so.1 and disable shared libraries on
11445  # powerpc, because MkLinux only supported shared libraries with the
11446  # GNU dynamic linker.  Since this was broken with cross compilers,
11447  # most powerpc-linux boxes support dynamic linking these days and
11448  # people can always --disable-shared, the test was removed, and we
11449  # assume the GNU/Linux dynamic linker is in use.
11450  dynamic_linker='GNU/Linux ld.so'
11451  ;;
11452
11453netbsd*)
11454  version_type=sunos
11455  need_lib_prefix=no
11456  need_version=no
11457  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11458    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11459    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11460    dynamic_linker='NetBSD (a.out) ld.so'
11461  else
11462    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11463    soname_spec='${libname}${release}${shared_ext}$major'
11464    dynamic_linker='NetBSD ld.elf_so'
11465  fi
11466  shlibpath_var=LD_LIBRARY_PATH
11467  shlibpath_overrides_runpath=yes
11468  hardcode_into_libs=yes
11469  ;;
11470
11471newsos6)
11472  version_type=linux
11473  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11474  shlibpath_var=LD_LIBRARY_PATH
11475  shlibpath_overrides_runpath=yes
11476  ;;
11477
11478nto-qnx)
11479  version_type=linux
11480  need_lib_prefix=no
11481  need_version=no
11482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11483  soname_spec='${libname}${release}${shared_ext}$major'
11484  shlibpath_var=LD_LIBRARY_PATH
11485  shlibpath_overrides_runpath=yes
11486  ;;
11487
11488openbsd*)
11489  version_type=sunos
11490  need_lib_prefix=no
11491  need_version=no
11492  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11493  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11494  shlibpath_var=LD_LIBRARY_PATH
11495  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11496    case $host_os in
11497      openbsd2.[89] | openbsd2.[89].*)
11498	shlibpath_overrides_runpath=no
11499	;;
11500      *)
11501	shlibpath_overrides_runpath=yes
11502	;;
11503      esac
11504  else
11505    shlibpath_overrides_runpath=yes
11506  fi
11507  ;;
11508
11509os2*)
11510  libname_spec='$name'
11511  shrext=".dll"
11512  need_lib_prefix=no
11513  library_names_spec='$libname${shared_ext} $libname.a'
11514  dynamic_linker='OS/2 ld.exe'
11515  shlibpath_var=LIBPATH
11516  ;;
11517
11518osf3* | osf4* | osf5*)
11519  version_type=osf
11520  need_lib_prefix=no
11521  need_version=no
11522  soname_spec='${libname}${release}${shared_ext}$major'
11523  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11524  shlibpath_var=LD_LIBRARY_PATH
11525  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11526  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11527  ;;
11528
11529sco3.2v5*)
11530  version_type=osf
11531  soname_spec='${libname}${release}${shared_ext}$major'
11532  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11533  shlibpath_var=LD_LIBRARY_PATH
11534  ;;
11535
11536solaris*)
11537  version_type=linux
11538  need_lib_prefix=no
11539  need_version=no
11540  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11541  soname_spec='${libname}${release}${shared_ext}$major'
11542  shlibpath_var=LD_LIBRARY_PATH
11543  shlibpath_overrides_runpath=yes
11544  hardcode_into_libs=yes
11545  # ldd complains unless libraries are executable
11546  postinstall_cmds='chmod +x $lib'
11547  ;;
11548
11549sunos4*)
11550  version_type=sunos
11551  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11552  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11553  shlibpath_var=LD_LIBRARY_PATH
11554  shlibpath_overrides_runpath=yes
11555  if test "$with_gnu_ld" = yes; then
11556    need_lib_prefix=no
11557  fi
11558  need_version=yes
11559  ;;
11560
11561sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11562  version_type=linux
11563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11564  soname_spec='${libname}${release}${shared_ext}$major'
11565  shlibpath_var=LD_LIBRARY_PATH
11566  case $host_vendor in
11567    sni)
11568      shlibpath_overrides_runpath=no
11569      need_lib_prefix=no
11570      export_dynamic_flag_spec='${wl}-Blargedynsym'
11571      runpath_var=LD_RUN_PATH
11572      ;;
11573    siemens)
11574      need_lib_prefix=no
11575      ;;
11576    motorola)
11577      need_lib_prefix=no
11578      need_version=no
11579      shlibpath_overrides_runpath=no
11580      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11581      ;;
11582  esac
11583  ;;
11584
11585sysv4*MP*)
11586  if test -d /usr/nec ;then
11587    version_type=linux
11588    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11589    soname_spec='$libname${shared_ext}.$major'
11590    shlibpath_var=LD_LIBRARY_PATH
11591  fi
11592  ;;
11593
11594uts4*)
11595  version_type=linux
11596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11597  soname_spec='${libname}${release}${shared_ext}$major'
11598  shlibpath_var=LD_LIBRARY_PATH
11599  ;;
11600
11601*)
11602  dynamic_linker=no
11603  ;;
11604esac
11605echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11606echo "${ECHO_T}$dynamic_linker" >&6
11607test "$dynamic_linker" = no && can_build_shared=no
11608
11609if test "x$enable_dlopen" != xyes; then
11610  enable_dlopen=unknown
11611  enable_dlopen_self=unknown
11612  enable_dlopen_self_static=unknown
11613else
11614  lt_cv_dlopen=no
11615  lt_cv_dlopen_libs=
11616
11617  case $host_os in
11618  beos*)
11619    lt_cv_dlopen="load_add_on"
11620    lt_cv_dlopen_libs=
11621    lt_cv_dlopen_self=yes
11622    ;;
11623
11624  mingw* | pw32*)
11625    lt_cv_dlopen="LoadLibrary"
11626    lt_cv_dlopen_libs=
11627   ;;
11628
11629  cygwin*)
11630    lt_cv_dlopen="dlopen"
11631    lt_cv_dlopen_libs=
11632   ;;
11633
11634  darwin*)
11635  # if libdl is installed we need to link against it
11636    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11637echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11638if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11639  echo $ECHO_N "(cached) $ECHO_C" >&6
11640else
11641  ac_check_lib_save_LIBS=$LIBS
11642LIBS="-ldl  $LIBS"
11643cat >conftest.$ac_ext <<_ACEOF
11644#line $LINENO "configure"
11645/* confdefs.h.  */
11646_ACEOF
11647cat confdefs.h >>conftest.$ac_ext
11648cat >>conftest.$ac_ext <<_ACEOF
11649/* end confdefs.h.  */
11650
11651/* Override any gcc2 internal prototype to avoid an error.  */
11652#ifdef __cplusplus
11653extern "C"
11654#endif
11655/* We use char because int might match the return type of a gcc2
11656   builtin and then its argument prototype would still apply.  */
11657char dlopen ();
11658int
11659main ()
11660{
11661dlopen ();
11662  ;
11663  return 0;
11664}
11665_ACEOF
11666rm -f conftest.$ac_objext conftest$ac_exeext
11667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11668  (eval $ac_link) 2>&5
11669  ac_status=$?
11670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671  (exit $ac_status); } &&
11672         { ac_try='test -s conftest$ac_exeext'
11673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674  (eval $ac_try) 2>&5
11675  ac_status=$?
11676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677  (exit $ac_status); }; }; then
11678  ac_cv_lib_dl_dlopen=yes
11679else
11680  echo "$as_me: failed program was:" >&5
11681sed 's/^/| /' conftest.$ac_ext >&5
11682
11683ac_cv_lib_dl_dlopen=no
11684fi
11685rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11686LIBS=$ac_check_lib_save_LIBS
11687fi
11688echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11689echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11690if test $ac_cv_lib_dl_dlopen = yes; then
11691  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11692else
11693
11694    lt_cv_dlopen="dyld"
11695    lt_cv_dlopen_libs=
11696    lt_cv_dlopen_self=yes
11697
11698fi
11699
11700   ;;
11701
11702  *)
11703    echo "$as_me:$LINENO: checking for shl_load" >&5
11704echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11705if test "${ac_cv_func_shl_load+set}" = set; then
11706  echo $ECHO_N "(cached) $ECHO_C" >&6
11707else
11708  cat >conftest.$ac_ext <<_ACEOF
11709#line $LINENO "configure"
11710/* confdefs.h.  */
11711_ACEOF
11712cat confdefs.h >>conftest.$ac_ext
11713cat >>conftest.$ac_ext <<_ACEOF
11714/* end confdefs.h.  */
11715/* System header to define __stub macros and hopefully few prototypes,
11716    which can conflict with char shl_load (); below.
11717    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11718    <limits.h> exists even on freestanding compilers.  */
11719#ifdef __STDC__
11720# include <limits.h>
11721#else
11722# include <assert.h>
11723#endif
11724/* Override any gcc2 internal prototype to avoid an error.  */
11725#ifdef __cplusplus
11726extern "C"
11727{
11728#endif
11729/* We use char because int might match the return type of a gcc2
11730   builtin and then its argument prototype would still apply.  */
11731char shl_load ();
11732/* The GNU C library defines this for functions which it implements
11733    to always fail with ENOSYS.  Some functions are actually named
11734    something starting with __ and the normal name is an alias.  */
11735#if defined (__stub_shl_load) || defined (__stub___shl_load)
11736choke me
11737#else
11738char (*f) () = shl_load;
11739#endif
11740#ifdef __cplusplus
11741}
11742#endif
11743
11744int
11745main ()
11746{
11747return f != shl_load;
11748  ;
11749  return 0;
11750}
11751_ACEOF
11752rm -f conftest.$ac_objext conftest$ac_exeext
11753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11754  (eval $ac_link) 2>&5
11755  ac_status=$?
11756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757  (exit $ac_status); } &&
11758         { ac_try='test -s conftest$ac_exeext'
11759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760  (eval $ac_try) 2>&5
11761  ac_status=$?
11762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763  (exit $ac_status); }; }; then
11764  ac_cv_func_shl_load=yes
11765else
11766  echo "$as_me: failed program was:" >&5
11767sed 's/^/| /' conftest.$ac_ext >&5
11768
11769ac_cv_func_shl_load=no
11770fi
11771rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11772fi
11773echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11774echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11775if test $ac_cv_func_shl_load = yes; then
11776  lt_cv_dlopen="shl_load"
11777else
11778  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11779echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11780if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11781  echo $ECHO_N "(cached) $ECHO_C" >&6
11782else
11783  ac_check_lib_save_LIBS=$LIBS
11784LIBS="-ldld  $LIBS"
11785cat >conftest.$ac_ext <<_ACEOF
11786#line $LINENO "configure"
11787/* confdefs.h.  */
11788_ACEOF
11789cat confdefs.h >>conftest.$ac_ext
11790cat >>conftest.$ac_ext <<_ACEOF
11791/* end confdefs.h.  */
11792
11793/* Override any gcc2 internal prototype to avoid an error.  */
11794#ifdef __cplusplus
11795extern "C"
11796#endif
11797/* We use char because int might match the return type of a gcc2
11798   builtin and then its argument prototype would still apply.  */
11799char shl_load ();
11800int
11801main ()
11802{
11803shl_load ();
11804  ;
11805  return 0;
11806}
11807_ACEOF
11808rm -f conftest.$ac_objext conftest$ac_exeext
11809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11810  (eval $ac_link) 2>&5
11811  ac_status=$?
11812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813  (exit $ac_status); } &&
11814         { ac_try='test -s conftest$ac_exeext'
11815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816  (eval $ac_try) 2>&5
11817  ac_status=$?
11818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819  (exit $ac_status); }; }; then
11820  ac_cv_lib_dld_shl_load=yes
11821else
11822  echo "$as_me: failed program was:" >&5
11823sed 's/^/| /' conftest.$ac_ext >&5
11824
11825ac_cv_lib_dld_shl_load=no
11826fi
11827rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11828LIBS=$ac_check_lib_save_LIBS
11829fi
11830echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11831echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11832if test $ac_cv_lib_dld_shl_load = yes; then
11833  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11834else
11835  echo "$as_me:$LINENO: checking for dlopen" >&5
11836echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11837if test "${ac_cv_func_dlopen+set}" = set; then
11838  echo $ECHO_N "(cached) $ECHO_C" >&6
11839else
11840  cat >conftest.$ac_ext <<_ACEOF
11841#line $LINENO "configure"
11842/* confdefs.h.  */
11843_ACEOF
11844cat confdefs.h >>conftest.$ac_ext
11845cat >>conftest.$ac_ext <<_ACEOF
11846/* end confdefs.h.  */
11847/* System header to define __stub macros and hopefully few prototypes,
11848    which can conflict with char dlopen (); below.
11849    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11850    <limits.h> exists even on freestanding compilers.  */
11851#ifdef __STDC__
11852# include <limits.h>
11853#else
11854# include <assert.h>
11855#endif
11856/* Override any gcc2 internal prototype to avoid an error.  */
11857#ifdef __cplusplus
11858extern "C"
11859{
11860#endif
11861/* We use char because int might match the return type of a gcc2
11862   builtin and then its argument prototype would still apply.  */
11863char dlopen ();
11864/* The GNU C library defines this for functions which it implements
11865    to always fail with ENOSYS.  Some functions are actually named
11866    something starting with __ and the normal name is an alias.  */
11867#if defined (__stub_dlopen) || defined (__stub___dlopen)
11868choke me
11869#else
11870char (*f) () = dlopen;
11871#endif
11872#ifdef __cplusplus
11873}
11874#endif
11875
11876int
11877main ()
11878{
11879return f != dlopen;
11880  ;
11881  return 0;
11882}
11883_ACEOF
11884rm -f conftest.$ac_objext conftest$ac_exeext
11885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11886  (eval $ac_link) 2>&5
11887  ac_status=$?
11888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889  (exit $ac_status); } &&
11890         { ac_try='test -s conftest$ac_exeext'
11891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892  (eval $ac_try) 2>&5
11893  ac_status=$?
11894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895  (exit $ac_status); }; }; then
11896  ac_cv_func_dlopen=yes
11897else
11898  echo "$as_me: failed program was:" >&5
11899sed 's/^/| /' conftest.$ac_ext >&5
11900
11901ac_cv_func_dlopen=no
11902fi
11903rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11904fi
11905echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11906echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11907if test $ac_cv_func_dlopen = yes; then
11908  lt_cv_dlopen="dlopen"
11909else
11910  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11911echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11912if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11913  echo $ECHO_N "(cached) $ECHO_C" >&6
11914else
11915  ac_check_lib_save_LIBS=$LIBS
11916LIBS="-ldl  $LIBS"
11917cat >conftest.$ac_ext <<_ACEOF
11918#line $LINENO "configure"
11919/* confdefs.h.  */
11920_ACEOF
11921cat confdefs.h >>conftest.$ac_ext
11922cat >>conftest.$ac_ext <<_ACEOF
11923/* end confdefs.h.  */
11924
11925/* Override any gcc2 internal prototype to avoid an error.  */
11926#ifdef __cplusplus
11927extern "C"
11928#endif
11929/* We use char because int might match the return type of a gcc2
11930   builtin and then its argument prototype would still apply.  */
11931char dlopen ();
11932int
11933main ()
11934{
11935dlopen ();
11936  ;
11937  return 0;
11938}
11939_ACEOF
11940rm -f conftest.$ac_objext conftest$ac_exeext
11941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11942  (eval $ac_link) 2>&5
11943  ac_status=$?
11944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945  (exit $ac_status); } &&
11946         { ac_try='test -s conftest$ac_exeext'
11947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948  (eval $ac_try) 2>&5
11949  ac_status=$?
11950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951  (exit $ac_status); }; }; then
11952  ac_cv_lib_dl_dlopen=yes
11953else
11954  echo "$as_me: failed program was:" >&5
11955sed 's/^/| /' conftest.$ac_ext >&5
11956
11957ac_cv_lib_dl_dlopen=no
11958fi
11959rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11960LIBS=$ac_check_lib_save_LIBS
11961fi
11962echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11963echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11964if test $ac_cv_lib_dl_dlopen = yes; then
11965  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11966else
11967  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11968echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11969if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11970  echo $ECHO_N "(cached) $ECHO_C" >&6
11971else
11972  ac_check_lib_save_LIBS=$LIBS
11973LIBS="-lsvld  $LIBS"
11974cat >conftest.$ac_ext <<_ACEOF
11975#line $LINENO "configure"
11976/* confdefs.h.  */
11977_ACEOF
11978cat confdefs.h >>conftest.$ac_ext
11979cat >>conftest.$ac_ext <<_ACEOF
11980/* end confdefs.h.  */
11981
11982/* Override any gcc2 internal prototype to avoid an error.  */
11983#ifdef __cplusplus
11984extern "C"
11985#endif
11986/* We use char because int might match the return type of a gcc2
11987   builtin and then its argument prototype would still apply.  */
11988char dlopen ();
11989int
11990main ()
11991{
11992dlopen ();
11993  ;
11994  return 0;
11995}
11996_ACEOF
11997rm -f conftest.$ac_objext conftest$ac_exeext
11998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11999  (eval $ac_link) 2>&5
12000  ac_status=$?
12001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002  (exit $ac_status); } &&
12003         { ac_try='test -s conftest$ac_exeext'
12004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12005  (eval $ac_try) 2>&5
12006  ac_status=$?
12007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008  (exit $ac_status); }; }; then
12009  ac_cv_lib_svld_dlopen=yes
12010else
12011  echo "$as_me: failed program was:" >&5
12012sed 's/^/| /' conftest.$ac_ext >&5
12013
12014ac_cv_lib_svld_dlopen=no
12015fi
12016rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12017LIBS=$ac_check_lib_save_LIBS
12018fi
12019echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12020echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12021if test $ac_cv_lib_svld_dlopen = yes; then
12022  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12023else
12024  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12025echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12026if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12027  echo $ECHO_N "(cached) $ECHO_C" >&6
12028else
12029  ac_check_lib_save_LIBS=$LIBS
12030LIBS="-ldld  $LIBS"
12031cat >conftest.$ac_ext <<_ACEOF
12032#line $LINENO "configure"
12033/* confdefs.h.  */
12034_ACEOF
12035cat confdefs.h >>conftest.$ac_ext
12036cat >>conftest.$ac_ext <<_ACEOF
12037/* end confdefs.h.  */
12038
12039/* Override any gcc2 internal prototype to avoid an error.  */
12040#ifdef __cplusplus
12041extern "C"
12042#endif
12043/* We use char because int might match the return type of a gcc2
12044   builtin and then its argument prototype would still apply.  */
12045char dld_link ();
12046int
12047main ()
12048{
12049dld_link ();
12050  ;
12051  return 0;
12052}
12053_ACEOF
12054rm -f conftest.$ac_objext conftest$ac_exeext
12055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12056  (eval $ac_link) 2>&5
12057  ac_status=$?
12058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059  (exit $ac_status); } &&
12060         { ac_try='test -s conftest$ac_exeext'
12061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12062  (eval $ac_try) 2>&5
12063  ac_status=$?
12064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065  (exit $ac_status); }; }; then
12066  ac_cv_lib_dld_dld_link=yes
12067else
12068  echo "$as_me: failed program was:" >&5
12069sed 's/^/| /' conftest.$ac_ext >&5
12070
12071ac_cv_lib_dld_dld_link=no
12072fi
12073rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12074LIBS=$ac_check_lib_save_LIBS
12075fi
12076echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12077echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12078if test $ac_cv_lib_dld_dld_link = yes; then
12079  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12080fi
12081
12082
12083fi
12084
12085
12086fi
12087
12088
12089fi
12090
12091
12092fi
12093
12094
12095fi
12096
12097    ;;
12098  esac
12099
12100  if test "x$lt_cv_dlopen" != xno; then
12101    enable_dlopen=yes
12102  else
12103    enable_dlopen=no
12104  fi
12105
12106  case $lt_cv_dlopen in
12107  dlopen)
12108    save_CPPFLAGS="$CPPFLAGS"
12109    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12110
12111    save_LDFLAGS="$LDFLAGS"
12112    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12113
12114    save_LIBS="$LIBS"
12115    LIBS="$lt_cv_dlopen_libs $LIBS"
12116
12117    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12118echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12119if test "${lt_cv_dlopen_self+set}" = set; then
12120  echo $ECHO_N "(cached) $ECHO_C" >&6
12121else
12122  	  if test "$cross_compiling" = yes; then :
12123  lt_cv_dlopen_self=cross
12124else
12125  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12126  lt_status=$lt_dlunknown
12127  cat > conftest.$ac_ext <<EOF
12128#line 12128 "configure"
12129#include "confdefs.h"
12130
12131#if HAVE_DLFCN_H
12132#include <dlfcn.h>
12133#endif
12134
12135#include <stdio.h>
12136
12137#ifdef RTLD_GLOBAL
12138#  define LT_DLGLOBAL		RTLD_GLOBAL
12139#else
12140#  ifdef DL_GLOBAL
12141#    define LT_DLGLOBAL		DL_GLOBAL
12142#  else
12143#    define LT_DLGLOBAL		0
12144#  endif
12145#endif
12146
12147/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12148   find out it does not work in some platform. */
12149#ifndef LT_DLLAZY_OR_NOW
12150#  ifdef RTLD_LAZY
12151#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12152#  else
12153#    ifdef DL_LAZY
12154#      define LT_DLLAZY_OR_NOW		DL_LAZY
12155#    else
12156#      ifdef RTLD_NOW
12157#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12158#      else
12159#        ifdef DL_NOW
12160#          define LT_DLLAZY_OR_NOW	DL_NOW
12161#        else
12162#          define LT_DLLAZY_OR_NOW	0
12163#        endif
12164#      endif
12165#    endif
12166#  endif
12167#endif
12168
12169#ifdef __cplusplus
12170extern "C" void exit (int);
12171#endif
12172
12173void fnord() { int i=42;}
12174int main ()
12175{
12176  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12177  int status = $lt_dlunknown;
12178
12179  if (self)
12180    {
12181      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12182      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12183      /* dlclose (self); */
12184    }
12185
12186    exit (status);
12187}
12188EOF
12189  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12190  (eval $ac_link) 2>&5
12191  ac_status=$?
12192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12194    (./conftest; exit; ) 2>/dev/null
12195    lt_status=$?
12196    case x$lt_status in
12197      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12198      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12199      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12200    esac
12201  else :
12202    # compilation failed
12203    lt_cv_dlopen_self=no
12204  fi
12205fi
12206rm -fr conftest*
12207
12208
12209fi
12210echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12211echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12212
12213    if test "x$lt_cv_dlopen_self" = xyes; then
12214      LDFLAGS="$LDFLAGS $link_static_flag"
12215      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12216echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12217if test "${lt_cv_dlopen_self_static+set}" = set; then
12218  echo $ECHO_N "(cached) $ECHO_C" >&6
12219else
12220  	  if test "$cross_compiling" = yes; then :
12221  lt_cv_dlopen_self_static=cross
12222else
12223  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12224  lt_status=$lt_dlunknown
12225  cat > conftest.$ac_ext <<EOF
12226#line 12226 "configure"
12227#include "confdefs.h"
12228
12229#if HAVE_DLFCN_H
12230#include <dlfcn.h>
12231#endif
12232
12233#include <stdio.h>
12234
12235#ifdef RTLD_GLOBAL
12236#  define LT_DLGLOBAL		RTLD_GLOBAL
12237#else
12238#  ifdef DL_GLOBAL
12239#    define LT_DLGLOBAL		DL_GLOBAL
12240#  else
12241#    define LT_DLGLOBAL		0
12242#  endif
12243#endif
12244
12245/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12246   find out it does not work in some platform. */
12247#ifndef LT_DLLAZY_OR_NOW
12248#  ifdef RTLD_LAZY
12249#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12250#  else
12251#    ifdef DL_LAZY
12252#      define LT_DLLAZY_OR_NOW		DL_LAZY
12253#    else
12254#      ifdef RTLD_NOW
12255#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12256#      else
12257#        ifdef DL_NOW
12258#          define LT_DLLAZY_OR_NOW	DL_NOW
12259#        else
12260#          define LT_DLLAZY_OR_NOW	0
12261#        endif
12262#      endif
12263#    endif
12264#  endif
12265#endif
12266
12267#ifdef __cplusplus
12268extern "C" void exit (int);
12269#endif
12270
12271void fnord() { int i=42;}
12272int main ()
12273{
12274  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12275  int status = $lt_dlunknown;
12276
12277  if (self)
12278    {
12279      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12280      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12281      /* dlclose (self); */
12282    }
12283
12284    exit (status);
12285}
12286EOF
12287  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12288  (eval $ac_link) 2>&5
12289  ac_status=$?
12290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12292    (./conftest; exit; ) 2>/dev/null
12293    lt_status=$?
12294    case x$lt_status in
12295      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12296      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12297      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12298    esac
12299  else :
12300    # compilation failed
12301    lt_cv_dlopen_self_static=no
12302  fi
12303fi
12304rm -fr conftest*
12305
12306
12307fi
12308echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12309echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12310    fi
12311
12312    CPPFLAGS="$save_CPPFLAGS"
12313    LDFLAGS="$save_LDFLAGS"
12314    LIBS="$save_LIBS"
12315    ;;
12316  esac
12317
12318  case $lt_cv_dlopen_self in
12319  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12320  *) enable_dlopen_self=unknown ;;
12321  esac
12322
12323  case $lt_cv_dlopen_self_static in
12324  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12325  *) enable_dlopen_self_static=unknown ;;
12326  esac
12327fi
12328
12329
12330# The else clause should only fire when bootstrapping the
12331# libtool distribution, otherwise you forgot to ship ltmain.sh
12332# with your package, and you will get complaints that there are
12333# no rules to generate ltmain.sh.
12334if test -f "$ltmain"; then
12335  # See if we are running on zsh, and set the options which allow our commands through
12336  # without removal of \ escapes.
12337  if test -n "${ZSH_VERSION+set}" ; then
12338    setopt NO_GLOB_SUBST
12339  fi
12340  # Now quote all the things that may contain metacharacters while being
12341  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12342  # variables and quote the copies for generation of the libtool script.
12343  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12344    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12345    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12346    deplibs_check_method reload_flag reload_cmds need_locks \
12347    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12348    lt_cv_sys_global_symbol_to_c_name_address \
12349    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12350    old_postinstall_cmds old_postuninstall_cmds \
12351    compiler_CXX \
12352    CC_CXX \
12353    LD_CXX \
12354    lt_prog_compiler_wl_CXX \
12355    lt_prog_compiler_pic_CXX \
12356    lt_prog_compiler_static_CXX \
12357    lt_prog_compiler_no_builtin_flag_CXX \
12358    export_dynamic_flag_spec_CXX \
12359    thread_safe_flag_spec_CXX \
12360    whole_archive_flag_spec_CXX \
12361    enable_shared_with_static_runtimes_CXX \
12362    old_archive_cmds_CXX \
12363    old_archive_from_new_cmds_CXX \
12364    predep_objects_CXX \
12365    postdep_objects_CXX \
12366    predeps_CXX \
12367    postdeps_CXX \
12368    compiler_lib_search_path_CXX \
12369    archive_cmds_CXX \
12370    archive_expsym_cmds_CXX \
12371    postinstall_cmds_CXX \
12372    postuninstall_cmds_CXX \
12373    old_archive_from_expsyms_cmds_CXX \
12374    allow_undefined_flag_CXX \
12375    no_undefined_flag_CXX \
12376    export_symbols_cmds_CXX \
12377    hardcode_libdir_flag_spec_CXX \
12378    hardcode_libdir_flag_spec_ld_CXX \
12379    hardcode_libdir_separator_CXX \
12380    hardcode_automatic_CXX \
12381    module_cmds_CXX \
12382    module_expsym_cmds_CXX \
12383    lt_cv_prog_compiler_c_o_CXX \
12384    exclude_expsyms_CXX \
12385    include_expsyms_CXX; do
12386
12387    case $var in
12388    old_archive_cmds_CXX | \
12389    old_archive_from_new_cmds_CXX | \
12390    archive_cmds_CXX | \
12391    archive_expsym_cmds_CXX | \
12392    module_cmds_CXX | \
12393    module_expsym_cmds_CXX | \
12394    old_archive_from_expsyms_cmds_CXX | \
12395    export_symbols_cmds_CXX | \
12396    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12397    postinstall_cmds | postuninstall_cmds | \
12398    old_postinstall_cmds | old_postuninstall_cmds | \
12399    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12400      # Double-quote double-evaled strings.
12401      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12402      ;;
12403    *)
12404      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12405      ;;
12406    esac
12407  done
12408
12409  case $lt_echo in
12410  *'\$0 --fallback-echo"')
12411    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12412    ;;
12413  esac
12414
12415cfgfile="$ofile"
12416
12417  cat <<__EOF__ >> "$cfgfile"
12418# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12419
12420# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12421
12422# Shell to use when invoking shell scripts.
12423SHELL=$lt_SHELL
12424
12425# Whether or not to build shared libraries.
12426build_libtool_libs=$enable_shared
12427
12428# Whether or not to build static libraries.
12429build_old_libs=$enable_static
12430
12431# Whether or not to add -lc for building shared libraries.
12432build_libtool_need_lc=$archive_cmds_need_lc_CXX
12433
12434# Whether or not to disallow shared libs when runtime libs are static
12435allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12436
12437# Whether or not to optimize for fast installation.
12438fast_install=$enable_fast_install
12439
12440# The host system.
12441host_alias=$host_alias
12442host=$host
12443
12444# An echo program that does not interpret backslashes.
12445echo=$lt_echo
12446
12447# The archiver.
12448AR=$lt_AR
12449AR_FLAGS=$lt_AR_FLAGS
12450
12451# A C compiler.
12452LTCC=$lt_LTCC
12453
12454# A language-specific compiler.
12455CC=$lt_compiler_CXX
12456
12457# Is the compiler the GNU C compiler?
12458with_gcc=$GCC_CXX
12459
12460# An ERE matcher.
12461EGREP=$lt_EGREP
12462
12463# The linker used to build libraries.
12464LD=$lt_LD_CXX
12465
12466# Whether we need hard or soft links.
12467LN_S=$lt_LN_S
12468
12469# A BSD-compatible nm program.
12470NM=$lt_NM
12471
12472# A symbol stripping program
12473STRIP=$STRIP
12474
12475# Used to examine libraries when file_magic_cmd begins "file"
12476MAGIC_CMD=$MAGIC_CMD
12477
12478# Used on cygwin: DLL creation program.
12479DLLTOOL="$DLLTOOL"
12480
12481# Used on cygwin: object dumper.
12482OBJDUMP="$OBJDUMP"
12483
12484# Used on cygwin: assembler.
12485AS="$AS"
12486
12487# The name of the directory that contains temporary libtool files.
12488objdir=$objdir
12489
12490# How to create reloadable object files.
12491reload_flag=$lt_reload_flag
12492reload_cmds=$lt_reload_cmds
12493
12494# How to pass a linker flag through the compiler.
12495wl=$lt_lt_prog_compiler_wl_CXX
12496
12497# Object file suffix (normally "o").
12498objext="$ac_objext"
12499
12500# Old archive suffix (normally "a").
12501libext="$libext"
12502
12503# Shared library suffix (normally ".so").
12504shrext='$shrext'
12505
12506# Executable file suffix (normally "").
12507exeext="$exeext"
12508
12509# Additional compiler flags for building library objects.
12510pic_flag=$lt_lt_prog_compiler_pic_CXX
12511pic_mode=$pic_mode
12512
12513# What is the maximum length of a command?
12514max_cmd_len=$lt_cv_sys_max_cmd_len
12515
12516# Does compiler simultaneously support -c and -o options?
12517compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12518
12519# Must we lock files when doing compilation ?
12520need_locks=$lt_need_locks
12521
12522# Do we need the lib prefix for modules?
12523need_lib_prefix=$need_lib_prefix
12524
12525# Do we need a version for libraries?
12526need_version=$need_version
12527
12528# Whether dlopen is supported.
12529dlopen_support=$enable_dlopen
12530
12531# Whether dlopen of programs is supported.
12532dlopen_self=$enable_dlopen_self
12533
12534# Whether dlopen of statically linked programs is supported.
12535dlopen_self_static=$enable_dlopen_self_static
12536
12537# Compiler flag to prevent dynamic linking.
12538link_static_flag=$lt_lt_prog_compiler_static_CXX
12539
12540# Compiler flag to turn off builtin functions.
12541no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12542
12543# Compiler flag to allow reflexive dlopens.
12544export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12545
12546# Compiler flag to generate shared objects directly from archives.
12547whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12548
12549# Compiler flag to generate thread-safe objects.
12550thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12551
12552# Library versioning type.
12553version_type=$version_type
12554
12555# Format of library name prefix.
12556libname_spec=$lt_libname_spec
12557
12558# List of archive names.  First name is the real one, the rest are links.
12559# The last name is the one that the linker finds with -lNAME.
12560library_names_spec=$lt_library_names_spec
12561
12562# The coded name of the library, if different from the real name.
12563soname_spec=$lt_soname_spec
12564
12565# Commands used to build and install an old-style archive.
12566RANLIB=$lt_RANLIB
12567old_archive_cmds=$lt_old_archive_cmds_CXX
12568old_postinstall_cmds=$lt_old_postinstall_cmds
12569old_postuninstall_cmds=$lt_old_postuninstall_cmds
12570
12571# Create an old-style archive from a shared archive.
12572old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12573
12574# Create a temporary old-style archive to link instead of a shared archive.
12575old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12576
12577# Commands used to build and install a shared archive.
12578archive_cmds=$lt_archive_cmds_CXX
12579archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12580postinstall_cmds=$lt_postinstall_cmds
12581postuninstall_cmds=$lt_postuninstall_cmds
12582
12583# Commands used to build a loadable module (assumed same as above if empty)
12584module_cmds=$lt_module_cmds_CXX
12585module_expsym_cmds=$lt_module_expsym_cmds_CXX
12586
12587# Commands to strip libraries.
12588old_striplib=$lt_old_striplib
12589striplib=$lt_striplib
12590
12591# Dependencies to place before the objects being linked to create a
12592# shared library.
12593predep_objects=$lt_predep_objects_CXX
12594
12595# Dependencies to place after the objects being linked to create a
12596# shared library.
12597postdep_objects=$lt_postdep_objects_CXX
12598
12599# Dependencies to place before the objects being linked to create a
12600# shared library.
12601predeps=$lt_predeps_CXX
12602
12603# Dependencies to place after the objects being linked to create a
12604# shared library.
12605postdeps=$lt_postdeps_CXX
12606
12607# The library search path used internally by the compiler when linking
12608# a shared library.
12609compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12610
12611# Method to check whether dependent libraries are shared objects.
12612deplibs_check_method=$lt_deplibs_check_method
12613
12614# Command to use when deplibs_check_method == file_magic.
12615file_magic_cmd=$lt_file_magic_cmd
12616
12617# Flag that allows shared libraries with undefined symbols to be built.
12618allow_undefined_flag=$lt_allow_undefined_flag_CXX
12619
12620# Flag that forces no undefined symbols.
12621no_undefined_flag=$lt_no_undefined_flag_CXX
12622
12623# Commands used to finish a libtool library installation in a directory.
12624finish_cmds=$lt_finish_cmds
12625
12626# Same as above, but a single script fragment to be evaled but not shown.
12627finish_eval=$lt_finish_eval
12628
12629# Take the output of nm and produce a listing of raw symbols and C names.
12630global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12631
12632# Transform the output of nm in a proper C declaration
12633global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12634
12635# Transform the output of nm in a C name address pair
12636global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12637
12638# This is the shared library runtime path variable.
12639runpath_var=$runpath_var
12640
12641# This is the shared library path variable.
12642shlibpath_var=$shlibpath_var
12643
12644# Is shlibpath searched before the hard-coded library search path?
12645shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12646
12647# How to hardcode a shared library path into an executable.
12648hardcode_action=$hardcode_action_CXX
12649
12650# Whether we should hardcode library paths into libraries.
12651hardcode_into_libs=$hardcode_into_libs
12652
12653# Flag to hardcode \$libdir into a binary during linking.
12654# This must work even if \$libdir does not exist.
12655hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12656
12657# If ld is used when linking, flag to hardcode \$libdir into
12658# a binary during linking. This must work even if \$libdir does
12659# not exist.
12660hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12661
12662# Whether we need a single -rpath flag with a separated argument.
12663hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12664
12665# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12666# resulting binary.
12667hardcode_direct=$hardcode_direct_CXX
12668
12669# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12670# resulting binary.
12671hardcode_minus_L=$hardcode_minus_L_CXX
12672
12673# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12674# the resulting binary.
12675hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12676
12677# Set to yes if building a shared library automatically hardcodes DIR into the library
12678# and all subsequent libraries and executables linked against it.
12679hardcode_automatic=$hardcode_automatic_CXX
12680
12681# Variables whose values should be saved in libtool wrapper scripts and
12682# restored at relink time.
12683variables_saved_for_relink="$variables_saved_for_relink"
12684
12685# Whether libtool must link a program against all its dependency libraries.
12686link_all_deplibs=$link_all_deplibs_CXX
12687
12688# Compile-time system search path for libraries
12689sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12690
12691# Run-time system search path for libraries
12692sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12693
12694# Fix the shell variable \$srcfile for the compiler.
12695fix_srcfile_path="$fix_srcfile_path_CXX"
12696
12697# Set to yes if exported symbols are required.
12698always_export_symbols=$always_export_symbols_CXX
12699
12700# The commands to list exported symbols.
12701export_symbols_cmds=$lt_export_symbols_cmds_CXX
12702
12703# The commands to extract the exported symbol list from a shared archive.
12704extract_expsyms_cmds=$lt_extract_expsyms_cmds
12705
12706# Symbols that should not be listed in the preloaded symbols.
12707exclude_expsyms=$lt_exclude_expsyms_CXX
12708
12709# Symbols that must always be exported.
12710include_expsyms=$lt_include_expsyms_CXX
12711
12712# ### END LIBTOOL TAG CONFIG: $tagname
12713
12714__EOF__
12715
12716
12717else
12718  # If there is no Makefile yet, we rely on a make rule to execute
12719  # `config.status --recheck' to rerun these tests and create the
12720  # libtool script then.
12721  test -f Makefile && make "$ltmain"
12722fi
12723
12724
12725ac_ext=c
12726ac_cpp='$CPP $CPPFLAGS'
12727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12729ac_compiler_gnu=$ac_cv_c_compiler_gnu
12730
12731CC=$lt_save_CC
12732LDCXX=$LD
12733LD=$lt_save_LD
12734GCC=$lt_save_GCC
12735with_gnu_ldcxx=$with_gnu_ld
12736with_gnu_ld=$lt_save_with_gnu_ld
12737lt_cv_path_LDCXX=$lt_cv_path_LD
12738lt_cv_path_LD=$lt_save_path_LD
12739lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12740lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12741
12742	else
12743	  tagname=""
12744	fi
12745	;;
12746
12747      F77)
12748	if test -n "$F77" && test "X$F77" != "Xno"; then
12749
12750ac_ext=f
12751ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12752ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12753ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12754
12755
12756archive_cmds_need_lc_F77=no
12757allow_undefined_flag_F77=
12758always_export_symbols_F77=no
12759archive_expsym_cmds_F77=
12760export_dynamic_flag_spec_F77=
12761hardcode_direct_F77=no
12762hardcode_libdir_flag_spec_F77=
12763hardcode_libdir_flag_spec_ld_F77=
12764hardcode_libdir_separator_F77=
12765hardcode_minus_L_F77=no
12766hardcode_automatic_F77=no
12767module_cmds_F77=
12768module_expsym_cmds_F77=
12769link_all_deplibs_F77=unknown
12770old_archive_cmds_F77=$old_archive_cmds
12771no_undefined_flag_F77=
12772whole_archive_flag_spec_F77=
12773enable_shared_with_static_runtimes_F77=no
12774
12775# Source file extension for f77 test sources.
12776ac_ext=f
12777
12778# Object file extension for compiled f77 test sources.
12779objext=o
12780objext_F77=$objext
12781
12782# Code to be used in simple compile tests
12783lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12784
12785# Code to be used in simple link tests
12786lt_simple_link_test_code="      program t\n      end\n"
12787
12788# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12789
12790# If no C compiler was specified, use CC.
12791LTCC=${LTCC-"$CC"}
12792
12793# Allow CC to be a program name with arguments.
12794compiler=$CC
12795
12796
12797# Allow CC to be a program name with arguments.
12798lt_save_CC="$CC"
12799CC=${F77-"f77"}
12800compiler=$CC
12801compiler_F77=$CC
12802cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12803
12804echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12805echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12806echo "$as_me:$LINENO: result: $can_build_shared" >&5
12807echo "${ECHO_T}$can_build_shared" >&6
12808
12809echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12810echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12811test "$can_build_shared" = "no" && enable_shared=no
12812
12813# On AIX, shared libraries and static libraries use the same namespace, and
12814# are all built from PIC.
12815case "$host_os" in
12816aix3*)
12817  test "$enable_shared" = yes && enable_static=no
12818  if test -n "$RANLIB"; then
12819    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12820    postinstall_cmds='$RANLIB $lib'
12821  fi
12822  ;;
12823aix4*)
12824  test "$enable_shared" = yes && enable_static=no
12825  ;;
12826esac
12827echo "$as_me:$LINENO: result: $enable_shared" >&5
12828echo "${ECHO_T}$enable_shared" >&6
12829
12830echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12831echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12832# Make sure either enable_shared or enable_static is yes.
12833test "$enable_shared" = yes || enable_static=yes
12834echo "$as_me:$LINENO: result: $enable_static" >&5
12835echo "${ECHO_T}$enable_static" >&6
12836
12837test "$ld_shlibs_F77" = no && can_build_shared=no
12838
12839GCC_F77="$G77"
12840LD_F77="$LD"
12841
12842lt_prog_compiler_wl_F77=
12843lt_prog_compiler_pic_F77=
12844lt_prog_compiler_static_F77=
12845
12846echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12847echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12848
12849  if test "$GCC" = yes; then
12850    lt_prog_compiler_wl_F77='-Wl,'
12851    lt_prog_compiler_static_F77='-static'
12852
12853    case $host_os in
12854      aix*)
12855      # All AIX code is PIC.
12856      if test "$host_cpu" = ia64; then
12857	# AIX 5 now supports IA64 processor
12858	lt_prog_compiler_static_F77='-Bstatic'
12859      fi
12860      ;;
12861
12862    amigaos*)
12863      # FIXME: we need at least 68020 code to build shared libraries, but
12864      # adding the `-m68020' flag to GCC prevents building anything better,
12865      # like `-m68040'.
12866      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12867      ;;
12868
12869    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12870      # PIC is the default for these OSes.
12871      ;;
12872
12873    mingw* | pw32* | os2*)
12874      # This hack is so that the source file can tell whether it is being
12875      # built for inclusion in a dll (and should export symbols for example).
12876      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12877      ;;
12878
12879    darwin* | rhapsody*)
12880      # PIC is the default on this platform
12881      # Common symbols not allowed in MH_DYLIB files
12882      lt_prog_compiler_pic_F77='-fno-common'
12883      ;;
12884
12885    msdosdjgpp*)
12886      # Just because we use GCC doesn't mean we suddenly get shared libraries
12887      # on systems that don't support them.
12888      lt_prog_compiler_can_build_shared_F77=no
12889      enable_shared=no
12890      ;;
12891
12892    sysv4*MP*)
12893      if test -d /usr/nec; then
12894	lt_prog_compiler_pic_F77=-Kconform_pic
12895      fi
12896      ;;
12897
12898    hpux*)
12899      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12900      # not for PA HP-UX.
12901      case "$host_cpu" in
12902      hppa*64*|ia64*)
12903	# +Z the default
12904	;;
12905      *)
12906	lt_prog_compiler_pic_F77='-fPIC'
12907	;;
12908      esac
12909      ;;
12910
12911    *)
12912      lt_prog_compiler_pic_F77='-fPIC'
12913      ;;
12914    esac
12915  else
12916    # PORTME Check for flag to pass linker flags through the system compiler.
12917    case $host_os in
12918    aix*)
12919      lt_prog_compiler_wl_F77='-Wl,'
12920      if test "$host_cpu" = ia64; then
12921	# AIX 5 now supports IA64 processor
12922	lt_prog_compiler_static_F77='-Bstatic'
12923      else
12924	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12925      fi
12926      ;;
12927
12928    mingw* | pw32* | os2*)
12929      # This hack is so that the source file can tell whether it is being
12930      # built for inclusion in a dll (and should export symbols for example).
12931      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12932      ;;
12933
12934    hpux9* | hpux10* | hpux11*)
12935      lt_prog_compiler_wl_F77='-Wl,'
12936      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12937      # not for PA HP-UX.
12938      case "$host_cpu" in
12939      hppa*64*|ia64*)
12940	# +Z the default
12941	;;
12942      *)
12943	lt_prog_compiler_pic_F77='+Z'
12944	;;
12945      esac
12946      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12947      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12948      ;;
12949
12950    irix5* | irix6* | nonstopux*)
12951      lt_prog_compiler_wl_F77='-Wl,'
12952      # PIC (with -KPIC) is the default.
12953      lt_prog_compiler_static_F77='-non_shared'
12954      ;;
12955
12956    newsos6)
12957      lt_prog_compiler_pic_F77='-KPIC'
12958      lt_prog_compiler_static_F77='-Bstatic'
12959      ;;
12960
12961    linux*)
12962      case $CC in
12963      icc|ecc)
12964	lt_prog_compiler_wl_F77='-Wl,'
12965	lt_prog_compiler_pic_F77='-KPIC'
12966	lt_prog_compiler_static_F77='-static'
12967        ;;
12968      ccc)
12969        lt_prog_compiler_wl_F77='-Wl,'
12970        # All Alpha code is PIC.
12971        lt_prog_compiler_static_F77='-non_shared'
12972        ;;
12973      esac
12974      ;;
12975
12976    osf3* | osf4* | osf5*)
12977      lt_prog_compiler_wl_F77='-Wl,'
12978      # All OSF/1 code is PIC.
12979      lt_prog_compiler_static_F77='-non_shared'
12980      ;;
12981
12982    sco3.2v5*)
12983      lt_prog_compiler_pic_F77='-Kpic'
12984      lt_prog_compiler_static_F77='-dn'
12985      ;;
12986
12987    solaris*)
12988      lt_prog_compiler_wl_F77='-Wl,'
12989      lt_prog_compiler_pic_F77='-KPIC'
12990      lt_prog_compiler_static_F77='-Bstatic'
12991      ;;
12992
12993    sunos4*)
12994      lt_prog_compiler_wl_F77='-Qoption ld '
12995      lt_prog_compiler_pic_F77='-PIC'
12996      lt_prog_compiler_static_F77='-Bstatic'
12997      ;;
12998
12999    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13000      lt_prog_compiler_wl_F77='-Wl,'
13001      lt_prog_compiler_pic_F77='-KPIC'
13002      lt_prog_compiler_static_F77='-Bstatic'
13003      ;;
13004
13005    sysv4*MP*)
13006      if test -d /usr/nec ;then
13007	lt_prog_compiler_pic_F77='-Kconform_pic'
13008	lt_prog_compiler_static_F77='-Bstatic'
13009      fi
13010      ;;
13011
13012    uts4*)
13013      lt_prog_compiler_pic_F77='-pic'
13014      lt_prog_compiler_static_F77='-Bstatic'
13015      ;;
13016
13017    *)
13018      lt_prog_compiler_can_build_shared_F77=no
13019      ;;
13020    esac
13021  fi
13022
13023echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13024echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13025
13026#
13027# Check to make sure the PIC flag actually works.
13028#
13029if test -n "$lt_prog_compiler_pic_F77"; then
13030  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13031echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13032if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13033  echo $ECHO_N "(cached) $ECHO_C" >&6
13034else
13035  lt_prog_compiler_pic_works_F77=no
13036  ac_outfile=conftest.$ac_objext
13037   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13038   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13039   # Insert the option either (1) after the last *FLAGS variable, or
13040   # (2) before a word containing "conftest.", or (3) at the end.
13041   # Note that $ac_compile itself does not contain backslashes and begins
13042   # with a dollar sign (not a hyphen), so the echo should work correctly.
13043   # The option is referenced via a variable to avoid confusing sed.
13044   lt_compile=`echo "$ac_compile" | $SED \
13045   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13046   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13047   -e 's:$: $lt_compiler_flag:'`
13048   (eval echo "\"\$as_me:13048: $lt_compile\"" >&5)
13049   (eval "$lt_compile" 2>conftest.err)
13050   ac_status=$?
13051   cat conftest.err >&5
13052   echo "$as_me:13052: \$? = $ac_status" >&5
13053   if (exit $ac_status) && test -s "$ac_outfile"; then
13054     # The compiler can only warn and ignore the option if not recognized
13055     # So say no if there are warnings
13056     if test ! -s conftest.err; then
13057       lt_prog_compiler_pic_works_F77=yes
13058     fi
13059   fi
13060   $rm conftest*
13061
13062fi
13063echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13064echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13065
13066if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13067    case $lt_prog_compiler_pic_F77 in
13068     "" | " "*) ;;
13069     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13070     esac
13071else
13072    lt_prog_compiler_pic_F77=
13073     lt_prog_compiler_can_build_shared_F77=no
13074fi
13075
13076fi
13077case "$host_os" in
13078  # For platforms which do not support PIC, -DPIC is meaningless:
13079  *djgpp*)
13080    lt_prog_compiler_pic_F77=
13081    ;;
13082  *)
13083    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13084    ;;
13085esac
13086
13087echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13088echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13089if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13090  echo $ECHO_N "(cached) $ECHO_C" >&6
13091else
13092  lt_cv_prog_compiler_c_o_F77=no
13093   $rm -r conftest 2>/dev/null
13094   mkdir conftest
13095   cd conftest
13096   mkdir out
13097   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13098
13099   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13100   # that will create temporary files in the current directory regardless of
13101   # the output directory.  Thus, making CWD read-only will cause this test
13102   # to fail, enabling locking or at least warning the user not to do parallel
13103   # builds.
13104   chmod -w .
13105
13106   lt_compiler_flag="-o out/conftest2.$ac_objext"
13107   # Insert the option either (1) after the last *FLAGS variable, or
13108   # (2) before a word containing "conftest.", or (3) at the end.
13109   # Note that $ac_compile itself does not contain backslashes and begins
13110   # with a dollar sign (not a hyphen), so the echo should work correctly.
13111   lt_compile=`echo "$ac_compile" | $SED \
13112   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13113   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13114   -e 's:$: $lt_compiler_flag:'`
13115   (eval echo "\"\$as_me:13115: $lt_compile\"" >&5)
13116   (eval "$lt_compile" 2>out/conftest.err)
13117   ac_status=$?
13118   cat out/conftest.err >&5
13119   echo "$as_me:13119: \$? = $ac_status" >&5
13120   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13121   then
13122     # The compiler can only warn and ignore the option if not recognized
13123     # So say no if there are warnings
13124     if test ! -s out/conftest.err; then
13125       lt_cv_prog_compiler_c_o_F77=yes
13126     fi
13127   fi
13128   chmod u+w .
13129   $rm conftest* out/*
13130   rmdir out
13131   cd ..
13132   rmdir conftest
13133   $rm conftest*
13134
13135fi
13136echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13137echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13138
13139
13140hard_links="nottested"
13141if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13142  # do not overwrite the value of need_locks provided by the user
13143  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13144echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13145  hard_links=yes
13146  $rm conftest*
13147  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13148  touch conftest.a
13149  ln conftest.a conftest.b 2>&5 || hard_links=no
13150  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13151  echo "$as_me:$LINENO: result: $hard_links" >&5
13152echo "${ECHO_T}$hard_links" >&6
13153  if test "$hard_links" = no; then
13154    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13155echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13156    need_locks=warn
13157  fi
13158else
13159  need_locks=no
13160fi
13161
13162echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13163echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13164
13165  runpath_var=
13166  allow_undefined_flag_F77=
13167  enable_shared_with_static_runtimes_F77=no
13168  archive_cmds_F77=
13169  archive_expsym_cmds_F77=
13170  old_archive_From_new_cmds_F77=
13171  old_archive_from_expsyms_cmds_F77=
13172  export_dynamic_flag_spec_F77=
13173  whole_archive_flag_spec_F77=
13174  thread_safe_flag_spec_F77=
13175  hardcode_libdir_flag_spec_F77=
13176  hardcode_libdir_flag_spec_ld_F77=
13177  hardcode_libdir_separator_F77=
13178  hardcode_direct_F77=no
13179  hardcode_minus_L_F77=no
13180  hardcode_shlibpath_var_F77=unsupported
13181  link_all_deplibs_F77=unknown
13182  hardcode_automatic_F77=no
13183  module_cmds_F77=
13184  module_expsym_cmds_F77=
13185  always_export_symbols_F77=no
13186  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13187  # include_expsyms should be a list of space-separated symbols to be *always*
13188  # included in the symbol list
13189  include_expsyms_F77=
13190  # exclude_expsyms can be an extended regexp of symbols to exclude
13191  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13192  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13193  # as well as any symbol that contains `d'.
13194  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13195  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13196  # platforms (ab)use it in PIC code, but their linkers get confused if
13197  # the symbol is explicitly referenced.  Since portable code cannot
13198  # rely on this symbol name, it's probably fine to never include it in
13199  # preloaded symbol tables.
13200  extract_expsyms_cmds=
13201
13202  case $host_os in
13203  cygwin* | mingw* | pw32*)
13204    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13205    # When not using gcc, we currently assume that we are using
13206    # Microsoft Visual C++.
13207    if test "$GCC" != yes; then
13208      with_gnu_ld=no
13209    fi
13210    ;;
13211  openbsd*)
13212    with_gnu_ld=no
13213    ;;
13214  esac
13215
13216  ld_shlibs_F77=yes
13217  if test "$with_gnu_ld" = yes; then
13218    # If archive_cmds runs LD, not CC, wlarc should be empty
13219    wlarc='${wl}'
13220
13221    # See if GNU ld supports shared libraries.
13222    case $host_os in
13223    aix3* | aix4* | aix5*)
13224      # On AIX/PPC, the GNU linker is very broken
13225      if test "$host_cpu" != ia64; then
13226	ld_shlibs_F77=no
13227	cat <<EOF 1>&2
13228
13229*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13230*** to be unable to reliably create shared libraries on AIX.
13231*** Therefore, libtool is disabling shared libraries support.  If you
13232*** really care for shared libraries, you may want to modify your PATH
13233*** so that a non-GNU linker is found, and then restart.
13234
13235EOF
13236      fi
13237      ;;
13238
13239    amigaos*)
13240      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)'
13241      hardcode_libdir_flag_spec_F77='-L$libdir'
13242      hardcode_minus_L_F77=yes
13243
13244      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13245      # that the semantics of dynamic libraries on AmigaOS, at least up
13246      # to version 4, is to share data among multiple programs linked
13247      # with the same dynamic library.  Since this doesn't match the
13248      # behavior of shared libraries on other platforms, we can't use
13249      # them.
13250      ld_shlibs_F77=no
13251      ;;
13252
13253    beos*)
13254      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13255	allow_undefined_flag_F77=unsupported
13256	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13257	# support --undefined.  This deserves some investigation.  FIXME
13258	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13259      else
13260	ld_shlibs_F77=no
13261      fi
13262      ;;
13263
13264    cygwin* | mingw* | pw32*)
13265      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13266      # as there is no search path for DLLs.
13267      hardcode_libdir_flag_spec_F77='-L$libdir'
13268      allow_undefined_flag_F77=unsupported
13269      always_export_symbols_F77=no
13270      enable_shared_with_static_runtimes_F77=yes
13271      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13272
13273      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13274        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13275	# If the export-symbols file already is a .def file (1st line
13276	# is EXPORTS), use it as is; otherwise, prepend...
13277	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13278	  cp $export_symbols $output_objdir/$soname.def;
13279	else
13280	  echo EXPORTS > $output_objdir/$soname.def;
13281	  cat $export_symbols >> $output_objdir/$soname.def;
13282	fi~
13283	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13284      else
13285	ld_shlibs=no
13286      fi
13287      ;;
13288
13289    netbsd*)
13290      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13291	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13292	wlarc=
13293      else
13294	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13295	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13296      fi
13297      ;;
13298
13299    solaris* | sysv5*)
13300      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13301	ld_shlibs_F77=no
13302	cat <<EOF 1>&2
13303
13304*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13305*** create shared libraries on Solaris systems.  Therefore, libtool
13306*** is disabling shared libraries support.  We urge you to upgrade GNU
13307*** binutils to release 2.9.1 or newer.  Another option is to modify
13308*** your PATH or compiler configuration so that the native linker is
13309*** used, and then restart.
13310
13311EOF
13312      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13313	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13314	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13315      else
13316	ld_shlibs_F77=no
13317      fi
13318      ;;
13319
13320    sunos4*)
13321      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13322      wlarc=
13323      hardcode_direct_F77=yes
13324      hardcode_shlibpath_var_F77=no
13325      ;;
13326
13327    *)
13328      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13329	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13330	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13331      else
13332	ld_shlibs_F77=no
13333      fi
13334      ;;
13335    esac
13336
13337    if test "$ld_shlibs_F77" = yes; then
13338      runpath_var=LD_RUN_PATH
13339      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13340      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13341      # ancient GNU ld didn't support --whole-archive et. al.
13342      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13343 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13344      else
13345  	whole_archive_flag_spec_F77=
13346      fi
13347    fi
13348  else
13349    # PORTME fill in a description of your system's linker (not GNU ld)
13350    case $host_os in
13351    aix3*)
13352      allow_undefined_flag_F77=unsupported
13353      always_export_symbols_F77=yes
13354      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'
13355      # Note: this linker hardcodes the directories in LIBPATH if there
13356      # are no directories specified by -L.
13357      hardcode_minus_L_F77=yes
13358      if test "$GCC" = yes && test -z "$link_static_flag"; then
13359	# Neither direct hardcoding nor static linking is supported with a
13360	# broken collect2.
13361	hardcode_direct_F77=unsupported
13362      fi
13363      ;;
13364
13365    aix4* | aix5*)
13366      if test "$host_cpu" = ia64; then
13367	# On IA64, the linker does run time linking by default, so we don't
13368	# have to do anything special.
13369	aix_use_runtimelinking=no
13370	exp_sym_flag='-Bexport'
13371	no_entry_flag=""
13372      else
13373	# If we're using GNU nm, then we don't want the "-C" option.
13374	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13375	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13376	  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'
13377	else
13378	  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'
13379	fi
13380	aix_use_runtimelinking=no
13381
13382	# Test if we are trying to use run time linking or normal
13383	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13384	# need to do runtime linking.
13385	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13386	  for ld_flag in $LDFLAGS; do
13387  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13388  	    aix_use_runtimelinking=yes
13389  	    break
13390  	  fi
13391	  done
13392	esac
13393
13394	exp_sym_flag='-bexport'
13395	no_entry_flag='-bnoentry'
13396      fi
13397
13398      # When large executables or shared objects are built, AIX ld can
13399      # have problems creating the table of contents.  If linking a library
13400      # or program results in "error TOC overflow" add -mminimal-toc to
13401      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13402      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13403
13404      archive_cmds_F77=''
13405      hardcode_direct_F77=yes
13406      hardcode_libdir_separator_F77=':'
13407      link_all_deplibs_F77=yes
13408
13409      if test "$GCC" = yes; then
13410	case $host_os in aix4.012|aix4.012.*)
13411	# We only want to do this on AIX 4.2 and lower, the check
13412	# below for broken collect2 doesn't work under 4.3+
13413	  collect2name=`${CC} -print-prog-name=collect2`
13414	  if test -f "$collect2name" && \
13415  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13416	  then
13417  	  # We have reworked collect2
13418  	  hardcode_direct_F77=yes
13419	  else
13420  	  # We have old collect2
13421  	  hardcode_direct_F77=unsupported
13422  	  # It fails to find uninstalled libraries when the uninstalled
13423  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13424  	  # to unsupported forces relinking
13425  	  hardcode_minus_L_F77=yes
13426  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13427  	  hardcode_libdir_separator_F77=
13428	  fi
13429	esac
13430	shared_flag='-shared'
13431      else
13432	# not using gcc
13433	if test "$host_cpu" = ia64; then
13434  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13435  	# chokes on -Wl,-G. The following line is correct:
13436	  shared_flag='-G'
13437	else
13438  	if test "$aix_use_runtimelinking" = yes; then
13439	    shared_flag='${wl}-G'
13440	  else
13441	    shared_flag='${wl}-bM:SRE'
13442  	fi
13443	fi
13444      fi
13445
13446      # It seems that -bexpall does not export symbols beginning with
13447      # underscore (_), so it is better to generate a list of symbols to export.
13448      always_export_symbols_F77=yes
13449      if test "$aix_use_runtimelinking" = yes; then
13450	# Warning - without using the other runtime loading flags (-brtl),
13451	# -berok will link without error, but may produce a broken library.
13452	allow_undefined_flag_F77='-berok'
13453       # Determine the default libpath from the value encoded in an empty executable.
13454       cat >conftest.$ac_ext <<_ACEOF
13455      program main
13456
13457      end
13458_ACEOF
13459rm -f conftest.$ac_objext conftest$ac_exeext
13460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13461  (eval $ac_link) 2>&5
13462  ac_status=$?
13463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464  (exit $ac_status); } &&
13465         { ac_try='test -s conftest$ac_exeext'
13466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467  (eval $ac_try) 2>&5
13468  ac_status=$?
13469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470  (exit $ac_status); }; }; then
13471
13472aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13473}'`
13474# Check for a 64-bit object if we didn't find anything.
13475if 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; }
13476}'`; fi
13477else
13478  echo "$as_me: failed program was:" >&5
13479sed 's/^/| /' conftest.$ac_ext >&5
13480
13481fi
13482rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13483if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13484
13485       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13486	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"
13487       else
13488	if test "$host_cpu" = ia64; then
13489	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13490	  allow_undefined_flag_F77="-z nodefs"
13491	  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"
13492	else
13493	 # Determine the default libpath from the value encoded in an empty executable.
13494	 cat >conftest.$ac_ext <<_ACEOF
13495      program main
13496
13497      end
13498_ACEOF
13499rm -f conftest.$ac_objext conftest$ac_exeext
13500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13501  (eval $ac_link) 2>&5
13502  ac_status=$?
13503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504  (exit $ac_status); } &&
13505         { ac_try='test -s conftest$ac_exeext'
13506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507  (eval $ac_try) 2>&5
13508  ac_status=$?
13509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510  (exit $ac_status); }; }; then
13511
13512aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13513}'`
13514# Check for a 64-bit object if we didn't find anything.
13515if 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; }
13516}'`; fi
13517else
13518  echo "$as_me: failed program was:" >&5
13519sed 's/^/| /' conftest.$ac_ext >&5
13520
13521fi
13522rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13523if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13524
13525	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13526	  # Warning - without using the other run time loading flags,
13527	  # -berok will link without error, but may produce a broken library.
13528	  no_undefined_flag_F77=' ${wl}-bernotok'
13529	  allow_undefined_flag_F77=' ${wl}-berok'
13530	  # -bexpall does not export symbols beginning with underscore (_)
13531	  always_export_symbols_F77=yes
13532	  # Exported symbols can be pulled into shared objects from archives
13533	  whole_archive_flag_spec_F77=' '
13534	  archive_cmds_need_lc_F77=yes
13535	  # This is similar to how AIX traditionally builds it's shared libraries.
13536	  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'
13537	fi
13538      fi
13539      ;;
13540
13541    amigaos*)
13542      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)'
13543      hardcode_libdir_flag_spec_F77='-L$libdir'
13544      hardcode_minus_L_F77=yes
13545      # see comment about different semantics on the GNU ld section
13546      ld_shlibs_F77=no
13547      ;;
13548
13549    bsdi4*)
13550      export_dynamic_flag_spec_F77=-rdynamic
13551      ;;
13552
13553    cygwin* | mingw* | pw32*)
13554      # When not using gcc, we currently assume that we are using
13555      # Microsoft Visual C++.
13556      # hardcode_libdir_flag_spec is actually meaningless, as there is
13557      # no search path for DLLs.
13558      hardcode_libdir_flag_spec_F77=' '
13559      allow_undefined_flag_F77=unsupported
13560      # Tell ltmain to make .lib files, not .a files.
13561      libext=lib
13562      # Tell ltmain to make .dll files, not .so files.
13563      shrext=".dll"
13564      # FIXME: Setting linknames here is a bad hack.
13565      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13566      # The linker will automatically build a .lib file if we build a DLL.
13567      old_archive_From_new_cmds_F77='true'
13568      # FIXME: Should let the user specify the lib program.
13569      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13570      fix_srcfile_path='`cygpath -w "$srcfile"`'
13571      enable_shared_with_static_runtimes_F77=yes
13572      ;;
13573
13574    darwin* | rhapsody*)
13575    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13576      archive_cmds_need_lc_F77=no
13577      case "$host_os" in
13578      rhapsody* | darwin1.[012])
13579	allow_undefined_flag_F77='-undefined suppress'
13580	;;
13581      *) # Darwin 1.3 on
13582	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13583	;;
13584      esac
13585      # FIXME: Relying on posixy $() will cause problems for
13586      #        cross-compilation, but unfortunately the echo tests do not
13587      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13588      #	       `"' quotes if we put them in here... so don't!
13589    	lt_int_apple_cc_single_mod=no
13590    	output_verbose_link_cmd='echo'
13591    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13592    	  lt_int_apple_cc_single_mod=yes
13593    	fi
13594    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13595    	  archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13596    	else
13597        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'
13598      fi
13599      module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13600      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13601        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13602          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}'
13603        else
13604          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}'
13605        fi
13606          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}'
13607      hardcode_direct_F77=no
13608      hardcode_automatic_F77=yes
13609      hardcode_shlibpath_var_F77=unsupported
13610      whole_archive_flag_spec_F77='-all_load $convenience'
13611      link_all_deplibs_F77=yes
13612    fi
13613      ;;
13614
13615    dgux*)
13616      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13617      hardcode_libdir_flag_spec_F77='-L$libdir'
13618      hardcode_shlibpath_var_F77=no
13619      ;;
13620
13621    freebsd1*)
13622      ld_shlibs_F77=no
13623      ;;
13624
13625    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13626    # support.  Future versions do this automatically, but an explicit c++rt0.o
13627    # does not break anything, and helps significantly (at the cost of a little
13628    # extra space).
13629    freebsd2.2*)
13630      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13631      hardcode_libdir_flag_spec_F77='-R$libdir'
13632      hardcode_direct_F77=yes
13633      hardcode_shlibpath_var_F77=no
13634      ;;
13635
13636    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13637    freebsd2*)
13638      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13639      hardcode_direct_F77=yes
13640      hardcode_minus_L_F77=yes
13641      hardcode_shlibpath_var_F77=no
13642      ;;
13643
13644    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13645    freebsd*)
13646      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13647      hardcode_libdir_flag_spec_F77='-R$libdir'
13648      hardcode_direct_F77=yes
13649      hardcode_shlibpath_var_F77=no
13650      ;;
13651
13652    hpux9*)
13653      if test "$GCC" = yes; then
13654	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'
13655      else
13656	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'
13657      fi
13658      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13659      hardcode_libdir_separator_F77=:
13660      hardcode_direct_F77=yes
13661
13662      # hardcode_minus_L: Not really in the search PATH,
13663      # but as the default location of the library.
13664      hardcode_minus_L_F77=yes
13665      export_dynamic_flag_spec_F77='${wl}-E'
13666      ;;
13667
13668    hpux10* | hpux11*)
13669      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13670	case "$host_cpu" in
13671	hppa*64*|ia64*)
13672	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13673	  ;;
13674	*)
13675	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13676	  ;;
13677	esac
13678      else
13679	case "$host_cpu" in
13680	hppa*64*|ia64*)
13681	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13682	  ;;
13683	*)
13684	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13685	  ;;
13686	esac
13687      fi
13688      if test "$with_gnu_ld" = no; then
13689	case "$host_cpu" in
13690	hppa*64*)
13691	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13692	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13693	  hardcode_libdir_separator_F77=:
13694	  hardcode_direct_F77=no
13695	  hardcode_shlibpath_var_F77=no
13696	  ;;
13697	ia64*)
13698	  hardcode_libdir_flag_spec_F77='-L$libdir'
13699	  hardcode_direct_F77=no
13700	  hardcode_shlibpath_var_F77=no
13701
13702	  # hardcode_minus_L: Not really in the search PATH,
13703	  # but as the default location of the library.
13704	  hardcode_minus_L_F77=yes
13705	  ;;
13706	*)
13707	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13708	  hardcode_libdir_separator_F77=:
13709	  hardcode_direct_F77=yes
13710	  export_dynamic_flag_spec_F77='${wl}-E'
13711
13712	  # hardcode_minus_L: Not really in the search PATH,
13713	  # but as the default location of the library.
13714	  hardcode_minus_L_F77=yes
13715	  ;;
13716	esac
13717      fi
13718      ;;
13719
13720    irix5* | irix6* | nonstopux*)
13721      if test "$GCC" = yes; then
13722	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'
13723      else
13724	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'
13725	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13726      fi
13727      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13728      hardcode_libdir_separator_F77=:
13729      link_all_deplibs_F77=yes
13730      ;;
13731
13732    netbsd*)
13733      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13734	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13735      else
13736	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13737      fi
13738      hardcode_libdir_flag_spec_F77='-R$libdir'
13739      hardcode_direct_F77=yes
13740      hardcode_shlibpath_var_F77=no
13741      ;;
13742
13743    newsos6)
13744      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13745      hardcode_direct_F77=yes
13746      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13747      hardcode_libdir_separator_F77=:
13748      hardcode_shlibpath_var_F77=no
13749      ;;
13750
13751    openbsd*)
13752      hardcode_direct_F77=yes
13753      hardcode_shlibpath_var_F77=no
13754      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13755	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13756	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13757	export_dynamic_flag_spec_F77='${wl}-E'
13758      else
13759       case $host_os in
13760	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13761	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13762	   hardcode_libdir_flag_spec_F77='-R$libdir'
13763	   ;;
13764	 *)
13765	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13766	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13767	   ;;
13768       esac
13769      fi
13770      ;;
13771
13772    os2*)
13773      hardcode_libdir_flag_spec_F77='-L$libdir'
13774      hardcode_minus_L_F77=yes
13775      allow_undefined_flag_F77=unsupported
13776      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'
13777      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13778      ;;
13779
13780    osf3*)
13781      if test "$GCC" = yes; then
13782	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13783	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'
13784      else
13785	allow_undefined_flag_F77=' -expect_unresolved \*'
13786	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'
13787      fi
13788      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13789      hardcode_libdir_separator_F77=:
13790      ;;
13791
13792    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13793      if test "$GCC" = yes; then
13794	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13795	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'
13796	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13797      else
13798	allow_undefined_flag_F77=' -expect_unresolved \*'
13799	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'
13800	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~
13801	$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'
13802
13803	# Both c and cxx compiler support -rpath directly
13804	hardcode_libdir_flag_spec_F77='-rpath $libdir'
13805      fi
13806      hardcode_libdir_separator_F77=:
13807      ;;
13808
13809    sco3.2v5*)
13810      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13811      hardcode_shlibpath_var_F77=no
13812      export_dynamic_flag_spec_F77='${wl}-Bexport'
13813      runpath_var=LD_RUN_PATH
13814      hardcode_runpath_var=yes
13815      ;;
13816
13817    solaris*)
13818      no_undefined_flag_F77=' -z text'
13819      if test "$GCC" = yes; then
13820	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13821	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13822	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13823      else
13824	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13825	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13826  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13827      fi
13828      hardcode_libdir_flag_spec_F77='-R$libdir'
13829      hardcode_shlibpath_var_F77=no
13830      case $host_os in
13831      solaris2.[0-5] | solaris2.[0-5].*) ;;
13832      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13833	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13834      esac
13835      link_all_deplibs_F77=yes
13836      ;;
13837
13838    sunos4*)
13839      if test "x$host_vendor" = xsequent; then
13840	# Use $CC to link under sequent, because it throws in some extra .o
13841	# files that make .init and .fini sections work.
13842	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13843      else
13844	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13845      fi
13846      hardcode_libdir_flag_spec_F77='-L$libdir'
13847      hardcode_direct_F77=yes
13848      hardcode_minus_L_F77=yes
13849      hardcode_shlibpath_var_F77=no
13850      ;;
13851
13852    sysv4)
13853      case $host_vendor in
13854	sni)
13855	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13856	  hardcode_direct_F77=yes # is this really true???
13857	;;
13858	siemens)
13859	  ## LD is ld it makes a PLAMLIB
13860	  ## CC just makes a GrossModule.
13861	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13862	  reload_cmds_F77='$CC -r -o $output$reload_objs'
13863	  hardcode_direct_F77=no
13864        ;;
13865	motorola)
13866	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13867	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13868	;;
13869      esac
13870      runpath_var='LD_RUN_PATH'
13871      hardcode_shlibpath_var_F77=no
13872      ;;
13873
13874    sysv4.3*)
13875      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13876      hardcode_shlibpath_var_F77=no
13877      export_dynamic_flag_spec_F77='-Bexport'
13878      ;;
13879
13880    sysv4*MP*)
13881      if test -d /usr/nec; then
13882	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13883	hardcode_shlibpath_var_F77=no
13884	runpath_var=LD_RUN_PATH
13885	hardcode_runpath_var=yes
13886	ld_shlibs_F77=yes
13887      fi
13888      ;;
13889
13890    sysv4.2uw2*)
13891      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13892      hardcode_direct_F77=yes
13893      hardcode_minus_L_F77=no
13894      hardcode_shlibpath_var_F77=no
13895      hardcode_runpath_var=yes
13896      runpath_var=LD_RUN_PATH
13897      ;;
13898
13899   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13900      no_undefined_flag_F77='${wl}-z ${wl}text'
13901      if test "$GCC" = yes; then
13902	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13903      else
13904	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13905      fi
13906      runpath_var='LD_RUN_PATH'
13907      hardcode_shlibpath_var_F77=no
13908      ;;
13909
13910    sysv5*)
13911      no_undefined_flag_F77=' -z text'
13912      # $CC -shared without GNU ld will not create a library from C++
13913      # object files and a static libstdc++, better avoid it by now
13914      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13915      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13916  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13917      hardcode_libdir_flag_spec_F77=
13918      hardcode_shlibpath_var_F77=no
13919      runpath_var='LD_RUN_PATH'
13920      ;;
13921
13922    uts4*)
13923      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13924      hardcode_libdir_flag_spec_F77='-L$libdir'
13925      hardcode_shlibpath_var_F77=no
13926      ;;
13927
13928    *)
13929      ld_shlibs_F77=no
13930      ;;
13931    esac
13932  fi
13933
13934echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13935echo "${ECHO_T}$ld_shlibs_F77" >&6
13936test "$ld_shlibs_F77" = no && can_build_shared=no
13937
13938variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13939if test "$GCC" = yes; then
13940  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13941fi
13942
13943#
13944# Do we need to explicitly link libc?
13945#
13946case "x$archive_cmds_need_lc_F77" in
13947x|xyes)
13948  # Assume -lc should be added
13949  archive_cmds_need_lc_F77=yes
13950
13951  if test "$enable_shared" = yes && test "$GCC" = yes; then
13952    case $archive_cmds_F77 in
13953    *'~'*)
13954      # FIXME: we may have to deal with multi-command sequences.
13955      ;;
13956    '$CC '*)
13957      # Test whether the compiler implicitly links with -lc since on some
13958      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13959      # to ld, don't add -lc before -lgcc.
13960      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13961echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13962      $rm conftest*
13963      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13964
13965      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13966  (eval $ac_compile) 2>&5
13967  ac_status=$?
13968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969  (exit $ac_status); } 2>conftest.err; then
13970        soname=conftest
13971        lib=conftest
13972        libobjs=conftest.$ac_objext
13973        deplibs=
13974        wl=$lt_prog_compiler_wl_F77
13975        compiler_flags=-v
13976        linker_flags=-v
13977        verstring=
13978        output_objdir=.
13979        libname=conftest
13980        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13981        allow_undefined_flag_F77=
13982        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13983  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13984  ac_status=$?
13985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986  (exit $ac_status); }
13987        then
13988	  archive_cmds_need_lc_F77=no
13989        else
13990	  archive_cmds_need_lc_F77=yes
13991        fi
13992        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13993      else
13994        cat conftest.err 1>&5
13995      fi
13996      $rm conftest*
13997      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13998echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13999      ;;
14000    esac
14001  fi
14002  ;;
14003esac
14004
14005echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14006echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14007hardcode_action_F77=
14008if test -n "$hardcode_libdir_flag_spec_F77" || \
14009   test -n "$runpath_var F77" || \
14010   test "X$hardcode_automatic_F77"="Xyes" ; then
14011
14012  # We can hardcode non-existant directories.
14013  if test "$hardcode_direct_F77" != no &&
14014     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14015     # have to relink, otherwise we might link with an installed library
14016     # when we should be linking with a yet-to-be-installed one
14017     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14018     test "$hardcode_minus_L_F77" != no; then
14019    # Linking always hardcodes the temporary library directory.
14020    hardcode_action_F77=relink
14021  else
14022    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14023    hardcode_action_F77=immediate
14024  fi
14025else
14026  # We cannot hardcode anything, or else we can only hardcode existing
14027  # directories.
14028  hardcode_action_F77=unsupported
14029fi
14030echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14031echo "${ECHO_T}$hardcode_action_F77" >&6
14032
14033if test "$hardcode_action_F77" = relink; then
14034  # Fast installation is not supported
14035  enable_fast_install=no
14036elif test "$shlibpath_overrides_runpath" = yes ||
14037     test "$enable_shared" = no; then
14038  # Fast installation is not necessary
14039  enable_fast_install=needless
14040fi
14041
14042striplib=
14043old_striplib=
14044echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14045echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14046if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14047  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14048  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14049  echo "$as_me:$LINENO: result: yes" >&5
14050echo "${ECHO_T}yes" >&6
14051else
14052# FIXME - insert some real tests, host_os isn't really good enough
14053  case $host_os in
14054   darwin*)
14055       if test -n "$STRIP" ; then
14056         striplib="$STRIP -x"
14057         echo "$as_me:$LINENO: result: yes" >&5
14058echo "${ECHO_T}yes" >&6
14059       else
14060  echo "$as_me:$LINENO: result: no" >&5
14061echo "${ECHO_T}no" >&6
14062fi
14063       ;;
14064   *)
14065  echo "$as_me:$LINENO: result: no" >&5
14066echo "${ECHO_T}no" >&6
14067    ;;
14068  esac
14069fi
14070
14071echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14072echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14073library_names_spec=
14074libname_spec='lib$name'
14075soname_spec=
14076shrext=".so"
14077postinstall_cmds=
14078postuninstall_cmds=
14079finish_cmds=
14080finish_eval=
14081shlibpath_var=
14082shlibpath_overrides_runpath=unknown
14083version_type=none
14084dynamic_linker="$host_os ld.so"
14085sys_lib_dlsearch_path_spec="/lib /usr/lib"
14086if test "$GCC" = yes; then
14087  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14088  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14089    # if the path contains ";" then we assume it to be the separator
14090    # otherwise default to the standard path separator (i.e. ":") - it is
14091    # assumed that no part of a normal pathname contains ";" but that should
14092    # okay in the real world where ";" in dirpaths is itself problematic.
14093    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14094  else
14095    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14096  fi
14097else
14098  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14099fi
14100need_lib_prefix=unknown
14101hardcode_into_libs=no
14102
14103# when you set need_version to no, make sure it does not cause -set_version
14104# flags to be left without arguments
14105need_version=unknown
14106
14107case $host_os in
14108aix3*)
14109  version_type=linux
14110  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14111  shlibpath_var=LIBPATH
14112
14113  # AIX 3 has no versioning support, so we append a major version to the name.
14114  soname_spec='${libname}${release}${shared_ext}$major'
14115  ;;
14116
14117aix4* | aix5*)
14118  version_type=linux
14119  need_lib_prefix=no
14120  need_version=no
14121  hardcode_into_libs=yes
14122  if test "$host_cpu" = ia64; then
14123    # AIX 5 supports IA64
14124    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14125    shlibpath_var=LD_LIBRARY_PATH
14126  else
14127    # With GCC up to 2.95.x, collect2 would create an import file
14128    # for dependence libraries.  The import file would start with
14129    # the line `#! .'.  This would cause the generated library to
14130    # depend on `.', always an invalid library.  This was fixed in
14131    # development snapshots of GCC prior to 3.0.
14132    case $host_os in
14133      aix4 | aix4.[01] | aix4.[01].*)
14134      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14135	   echo ' yes '
14136	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14137	:
14138      else
14139	can_build_shared=no
14140      fi
14141      ;;
14142    esac
14143    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14144    # soname into executable. Probably we can add versioning support to
14145    # collect2, so additional links can be useful in future.
14146    if test "$aix_use_runtimelinking" = yes; then
14147      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14148      # instead of lib<name>.a to let people know that these are not
14149      # typical AIX shared libraries.
14150      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14151    else
14152      # We preserve .a as extension for shared libraries through AIX4.2
14153      # and later when we are not doing run time linking.
14154      library_names_spec='${libname}${release}.a $libname.a'
14155      soname_spec='${libname}${release}${shared_ext}$major'
14156    fi
14157    shlibpath_var=LIBPATH
14158  fi
14159  ;;
14160
14161amigaos*)
14162  library_names_spec='$libname.ixlibrary $libname.a'
14163  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14164  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'
14165  ;;
14166
14167beos*)
14168  library_names_spec='${libname}${shared_ext}'
14169  dynamic_linker="$host_os ld.so"
14170  shlibpath_var=LIBRARY_PATH
14171  ;;
14172
14173bsdi4*)
14174  version_type=linux
14175  need_version=no
14176  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14177  soname_spec='${libname}${release}${shared_ext}$major'
14178  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14179  shlibpath_var=LD_LIBRARY_PATH
14180  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14181  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14182  # the default ld.so.conf also contains /usr/contrib/lib and
14183  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14184  # libtool to hard-code these into programs
14185  ;;
14186
14187cygwin* | mingw* | pw32*)
14188  version_type=windows
14189  shrext=".dll"
14190  need_version=no
14191  need_lib_prefix=no
14192
14193  case $GCC,$host_os in
14194  yes,cygwin* | yes,mingw* | yes,pw32*)
14195    library_names_spec='$libname.dll.a'
14196    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14197    postinstall_cmds='base_file=`basename \${file}`~
14198      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14199      dldir=$destdir/`dirname \$dlpath`~
14200      test -d \$dldir || mkdir -p \$dldir~
14201      $install_prog $dir/$dlname \$dldir/$dlname'
14202    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14203      dlpath=$dir/\$dldll~
14204       $rm \$dlpath'
14205    shlibpath_overrides_runpath=yes
14206
14207    case $host_os in
14208    cygwin*)
14209      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14210      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14211      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14212      ;;
14213    mingw*)
14214      # MinGW DLLs use traditional 'lib' prefix
14215      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14216      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14217      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14218        # It is most probably a Windows format PATH printed by
14219        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14220        # path with ; separators, and with drive letters. We can handle the
14221        # drive letters (cygwin fileutils understands them), so leave them,
14222        # especially as we might pass files found there to a mingw objdump,
14223        # which wouldn't understand a cygwinified path. Ahh.
14224        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14225      else
14226        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14227      fi
14228      ;;
14229    pw32*)
14230      # pw32 DLLs use 'pw' prefix rather than 'lib'
14231      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14232      ;;
14233    esac
14234    ;;
14235
14236  *)
14237    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14238    ;;
14239  esac
14240  dynamic_linker='Win32 ld.exe'
14241  # FIXME: first we should search . and the directory the executable is in
14242  shlibpath_var=PATH
14243  ;;
14244
14245darwin* | rhapsody*)
14246  dynamic_linker="$host_os dyld"
14247  version_type=darwin
14248  need_lib_prefix=no
14249  need_version=no
14250  # FIXME: Relying on posixy $() will cause problems for
14251  #        cross-compilation, but unfortunately the echo tests do not
14252  #        yet detect zsh echo's removal of \ escapes.
14253  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14254  soname_spec='${libname}${release}${major}$shared_ext'
14255  shlibpath_overrides_runpath=yes
14256  shlibpath_var=DYLD_LIBRARY_PATH
14257  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14258  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14259  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14260  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"`
14261  fi
14262  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14263  ;;
14264
14265dgux*)
14266  version_type=linux
14267  need_lib_prefix=no
14268  need_version=no
14269  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14270  soname_spec='${libname}${release}${shared_ext}$major'
14271  shlibpath_var=LD_LIBRARY_PATH
14272  ;;
14273
14274freebsd1*)
14275  dynamic_linker=no
14276  ;;
14277
14278freebsd*)
14279  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14280  version_type=freebsd-$objformat
14281  case $version_type in
14282    freebsd-elf*)
14283      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14284      need_version=no
14285      need_lib_prefix=no
14286      ;;
14287    freebsd-*)
14288      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14289      need_version=yes
14290      ;;
14291  esac
14292  shlibpath_var=LD_LIBRARY_PATH
14293  case $host_os in
14294  freebsd2*)
14295    shlibpath_overrides_runpath=yes
14296    ;;
14297  freebsd3.01* | freebsdelf3.01*)
14298    shlibpath_overrides_runpath=yes
14299    hardcode_into_libs=yes
14300    ;;
14301  *) # from 3.2 on
14302    shlibpath_overrides_runpath=no
14303    hardcode_into_libs=yes
14304    ;;
14305  esac
14306  ;;
14307
14308gnu*)
14309  version_type=linux
14310  need_lib_prefix=no
14311  need_version=no
14312  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14313  soname_spec='${libname}${release}${shared_ext}$major'
14314  shlibpath_var=LD_LIBRARY_PATH
14315  hardcode_into_libs=yes
14316  ;;
14317
14318hpux9* | hpux10* | hpux11*)
14319  # Give a soname corresponding to the major version so that dld.sl refuses to
14320  # link against other versions.
14321  version_type=sunos
14322  need_lib_prefix=no
14323  need_version=no
14324  case "$host_cpu" in
14325  ia64*)
14326    shrext='.so'
14327    hardcode_into_libs=yes
14328    dynamic_linker="$host_os dld.so"
14329    shlibpath_var=LD_LIBRARY_PATH
14330    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14331    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14332    soname_spec='${libname}${release}${shared_ext}$major'
14333    if test "X$HPUX_IA64_MODE" = X32; then
14334      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14335    else
14336      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14337    fi
14338    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14339    ;;
14340   hppa*64*)
14341     shrext='.sl'
14342     hardcode_into_libs=yes
14343     dynamic_linker="$host_os dld.sl"
14344     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14345     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14346     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14347     soname_spec='${libname}${release}${shared_ext}$major'
14348     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14349     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14350     ;;
14351   *)
14352    shrext='.sl'
14353    dynamic_linker="$host_os dld.sl"
14354    shlibpath_var=SHLIB_PATH
14355    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14356    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14357    soname_spec='${libname}${release}${shared_ext}$major'
14358    ;;
14359  esac
14360  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14361  postinstall_cmds='chmod 555 $lib'
14362  ;;
14363
14364irix5* | irix6* | nonstopux*)
14365  case $host_os in
14366    nonstopux*) version_type=nonstopux ;;
14367    *)
14368	if test "$lt_cv_prog_gnu_ld" = yes; then
14369		version_type=linux
14370	else
14371		version_type=irix
14372	fi ;;
14373  esac
14374  need_lib_prefix=no
14375  need_version=no
14376  soname_spec='${libname}${release}${shared_ext}$major'
14377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14378  case $host_os in
14379  irix5* | nonstopux*)
14380    libsuff= shlibsuff=
14381    ;;
14382  *)
14383    case $LD in # libtool.m4 will add one of these switches to LD
14384    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14385      libsuff= shlibsuff= libmagic=32-bit;;
14386    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14387      libsuff=32 shlibsuff=N32 libmagic=N32;;
14388    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14389      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14390    *) libsuff= shlibsuff= libmagic=never-match;;
14391    esac
14392    ;;
14393  esac
14394  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14395  shlibpath_overrides_runpath=no
14396  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14397  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14398  hardcode_into_libs=yes
14399  ;;
14400
14401# No shared lib support for Linux oldld, aout, or coff.
14402linux*oldld* | linux*aout* | linux*coff*)
14403  dynamic_linker=no
14404  ;;
14405
14406# This must be Linux ELF.
14407linux*)
14408  version_type=linux
14409  need_lib_prefix=no
14410  need_version=no
14411  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14412  soname_spec='${libname}${release}${shared_ext}$major'
14413  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14414  shlibpath_var=LD_LIBRARY_PATH
14415  shlibpath_overrides_runpath=no
14416  # This implies no fast_install, which is unacceptable.
14417  # Some rework will be needed to allow for fast_install
14418  # before this can be enabled.
14419  hardcode_into_libs=yes
14420
14421  # We used to test for /lib/ld.so.1 and disable shared libraries on
14422  # powerpc, because MkLinux only supported shared libraries with the
14423  # GNU dynamic linker.  Since this was broken with cross compilers,
14424  # most powerpc-linux boxes support dynamic linking these days and
14425  # people can always --disable-shared, the test was removed, and we
14426  # assume the GNU/Linux dynamic linker is in use.
14427  dynamic_linker='GNU/Linux ld.so'
14428  ;;
14429
14430netbsd*)
14431  version_type=sunos
14432  need_lib_prefix=no
14433  need_version=no
14434  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14435    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14436    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14437    dynamic_linker='NetBSD (a.out) ld.so'
14438  else
14439    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14440    soname_spec='${libname}${release}${shared_ext}$major'
14441    dynamic_linker='NetBSD ld.elf_so'
14442  fi
14443  shlibpath_var=LD_LIBRARY_PATH
14444  shlibpath_overrides_runpath=yes
14445  hardcode_into_libs=yes
14446  ;;
14447
14448newsos6)
14449  version_type=linux
14450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14451  shlibpath_var=LD_LIBRARY_PATH
14452  shlibpath_overrides_runpath=yes
14453  ;;
14454
14455nto-qnx)
14456  version_type=linux
14457  need_lib_prefix=no
14458  need_version=no
14459  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14460  soname_spec='${libname}${release}${shared_ext}$major'
14461  shlibpath_var=LD_LIBRARY_PATH
14462  shlibpath_overrides_runpath=yes
14463  ;;
14464
14465openbsd*)
14466  version_type=sunos
14467  need_lib_prefix=no
14468  need_version=no
14469  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14470  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14471  shlibpath_var=LD_LIBRARY_PATH
14472  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14473    case $host_os in
14474      openbsd2.[89] | openbsd2.[89].*)
14475	shlibpath_overrides_runpath=no
14476	;;
14477      *)
14478	shlibpath_overrides_runpath=yes
14479	;;
14480      esac
14481  else
14482    shlibpath_overrides_runpath=yes
14483  fi
14484  ;;
14485
14486os2*)
14487  libname_spec='$name'
14488  shrext=".dll"
14489  need_lib_prefix=no
14490  library_names_spec='$libname${shared_ext} $libname.a'
14491  dynamic_linker='OS/2 ld.exe'
14492  shlibpath_var=LIBPATH
14493  ;;
14494
14495osf3* | osf4* | osf5*)
14496  version_type=osf
14497  need_lib_prefix=no
14498  need_version=no
14499  soname_spec='${libname}${release}${shared_ext}$major'
14500  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14501  shlibpath_var=LD_LIBRARY_PATH
14502  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14503  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14504  ;;
14505
14506sco3.2v5*)
14507  version_type=osf
14508  soname_spec='${libname}${release}${shared_ext}$major'
14509  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14510  shlibpath_var=LD_LIBRARY_PATH
14511  ;;
14512
14513solaris*)
14514  version_type=linux
14515  need_lib_prefix=no
14516  need_version=no
14517  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14518  soname_spec='${libname}${release}${shared_ext}$major'
14519  shlibpath_var=LD_LIBRARY_PATH
14520  shlibpath_overrides_runpath=yes
14521  hardcode_into_libs=yes
14522  # ldd complains unless libraries are executable
14523  postinstall_cmds='chmod +x $lib'
14524  ;;
14525
14526sunos4*)
14527  version_type=sunos
14528  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14529  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14530  shlibpath_var=LD_LIBRARY_PATH
14531  shlibpath_overrides_runpath=yes
14532  if test "$with_gnu_ld" = yes; then
14533    need_lib_prefix=no
14534  fi
14535  need_version=yes
14536  ;;
14537
14538sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14539  version_type=linux
14540  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14541  soname_spec='${libname}${release}${shared_ext}$major'
14542  shlibpath_var=LD_LIBRARY_PATH
14543  case $host_vendor in
14544    sni)
14545      shlibpath_overrides_runpath=no
14546      need_lib_prefix=no
14547      export_dynamic_flag_spec='${wl}-Blargedynsym'
14548      runpath_var=LD_RUN_PATH
14549      ;;
14550    siemens)
14551      need_lib_prefix=no
14552      ;;
14553    motorola)
14554      need_lib_prefix=no
14555      need_version=no
14556      shlibpath_overrides_runpath=no
14557      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14558      ;;
14559  esac
14560  ;;
14561
14562sysv4*MP*)
14563  if test -d /usr/nec ;then
14564    version_type=linux
14565    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14566    soname_spec='$libname${shared_ext}.$major'
14567    shlibpath_var=LD_LIBRARY_PATH
14568  fi
14569  ;;
14570
14571uts4*)
14572  version_type=linux
14573  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14574  soname_spec='${libname}${release}${shared_ext}$major'
14575  shlibpath_var=LD_LIBRARY_PATH
14576  ;;
14577
14578*)
14579  dynamic_linker=no
14580  ;;
14581esac
14582echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14583echo "${ECHO_T}$dynamic_linker" >&6
14584test "$dynamic_linker" = no && can_build_shared=no
14585
14586
14587# The else clause should only fire when bootstrapping the
14588# libtool distribution, otherwise you forgot to ship ltmain.sh
14589# with your package, and you will get complaints that there are
14590# no rules to generate ltmain.sh.
14591if test -f "$ltmain"; then
14592  # See if we are running on zsh, and set the options which allow our commands through
14593  # without removal of \ escapes.
14594  if test -n "${ZSH_VERSION+set}" ; then
14595    setopt NO_GLOB_SUBST
14596  fi
14597  # Now quote all the things that may contain metacharacters while being
14598  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14599  # variables and quote the copies for generation of the libtool script.
14600  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14601    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14602    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14603    deplibs_check_method reload_flag reload_cmds need_locks \
14604    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14605    lt_cv_sys_global_symbol_to_c_name_address \
14606    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14607    old_postinstall_cmds old_postuninstall_cmds \
14608    compiler_F77 \
14609    CC_F77 \
14610    LD_F77 \
14611    lt_prog_compiler_wl_F77 \
14612    lt_prog_compiler_pic_F77 \
14613    lt_prog_compiler_static_F77 \
14614    lt_prog_compiler_no_builtin_flag_F77 \
14615    export_dynamic_flag_spec_F77 \
14616    thread_safe_flag_spec_F77 \
14617    whole_archive_flag_spec_F77 \
14618    enable_shared_with_static_runtimes_F77 \
14619    old_archive_cmds_F77 \
14620    old_archive_from_new_cmds_F77 \
14621    predep_objects_F77 \
14622    postdep_objects_F77 \
14623    predeps_F77 \
14624    postdeps_F77 \
14625    compiler_lib_search_path_F77 \
14626    archive_cmds_F77 \
14627    archive_expsym_cmds_F77 \
14628    postinstall_cmds_F77 \
14629    postuninstall_cmds_F77 \
14630    old_archive_from_expsyms_cmds_F77 \
14631    allow_undefined_flag_F77 \
14632    no_undefined_flag_F77 \
14633    export_symbols_cmds_F77 \
14634    hardcode_libdir_flag_spec_F77 \
14635    hardcode_libdir_flag_spec_ld_F77 \
14636    hardcode_libdir_separator_F77 \
14637    hardcode_automatic_F77 \
14638    module_cmds_F77 \
14639    module_expsym_cmds_F77 \
14640    lt_cv_prog_compiler_c_o_F77 \
14641    exclude_expsyms_F77 \
14642    include_expsyms_F77; do
14643
14644    case $var in
14645    old_archive_cmds_F77 | \
14646    old_archive_from_new_cmds_F77 | \
14647    archive_cmds_F77 | \
14648    archive_expsym_cmds_F77 | \
14649    module_cmds_F77 | \
14650    module_expsym_cmds_F77 | \
14651    old_archive_from_expsyms_cmds_F77 | \
14652    export_symbols_cmds_F77 | \
14653    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14654    postinstall_cmds | postuninstall_cmds | \
14655    old_postinstall_cmds | old_postuninstall_cmds | \
14656    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14657      # Double-quote double-evaled strings.
14658      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14659      ;;
14660    *)
14661      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14662      ;;
14663    esac
14664  done
14665
14666  case $lt_echo in
14667  *'\$0 --fallback-echo"')
14668    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14669    ;;
14670  esac
14671
14672cfgfile="$ofile"
14673
14674  cat <<__EOF__ >> "$cfgfile"
14675# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14676
14677# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14678
14679# Shell to use when invoking shell scripts.
14680SHELL=$lt_SHELL
14681
14682# Whether or not to build shared libraries.
14683build_libtool_libs=$enable_shared
14684
14685# Whether or not to build static libraries.
14686build_old_libs=$enable_static
14687
14688# Whether or not to add -lc for building shared libraries.
14689build_libtool_need_lc=$archive_cmds_need_lc_F77
14690
14691# Whether or not to disallow shared libs when runtime libs are static
14692allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14693
14694# Whether or not to optimize for fast installation.
14695fast_install=$enable_fast_install
14696
14697# The host system.
14698host_alias=$host_alias
14699host=$host
14700
14701# An echo program that does not interpret backslashes.
14702echo=$lt_echo
14703
14704# The archiver.
14705AR=$lt_AR
14706AR_FLAGS=$lt_AR_FLAGS
14707
14708# A C compiler.
14709LTCC=$lt_LTCC
14710
14711# A language-specific compiler.
14712CC=$lt_compiler_F77
14713
14714# Is the compiler the GNU C compiler?
14715with_gcc=$GCC_F77
14716
14717# An ERE matcher.
14718EGREP=$lt_EGREP
14719
14720# The linker used to build libraries.
14721LD=$lt_LD_F77
14722
14723# Whether we need hard or soft links.
14724LN_S=$lt_LN_S
14725
14726# A BSD-compatible nm program.
14727NM=$lt_NM
14728
14729# A symbol stripping program
14730STRIP=$STRIP
14731
14732# Used to examine libraries when file_magic_cmd begins "file"
14733MAGIC_CMD=$MAGIC_CMD
14734
14735# Used on cygwin: DLL creation program.
14736DLLTOOL="$DLLTOOL"
14737
14738# Used on cygwin: object dumper.
14739OBJDUMP="$OBJDUMP"
14740
14741# Used on cygwin: assembler.
14742AS="$AS"
14743
14744# The name of the directory that contains temporary libtool files.
14745objdir=$objdir
14746
14747# How to create reloadable object files.
14748reload_flag=$lt_reload_flag
14749reload_cmds=$lt_reload_cmds
14750
14751# How to pass a linker flag through the compiler.
14752wl=$lt_lt_prog_compiler_wl_F77
14753
14754# Object file suffix (normally "o").
14755objext="$ac_objext"
14756
14757# Old archive suffix (normally "a").
14758libext="$libext"
14759
14760# Shared library suffix (normally ".so").
14761shrext='$shrext'
14762
14763# Executable file suffix (normally "").
14764exeext="$exeext"
14765
14766# Additional compiler flags for building library objects.
14767pic_flag=$lt_lt_prog_compiler_pic_F77
14768pic_mode=$pic_mode
14769
14770# What is the maximum length of a command?
14771max_cmd_len=$lt_cv_sys_max_cmd_len
14772
14773# Does compiler simultaneously support -c and -o options?
14774compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14775
14776# Must we lock files when doing compilation ?
14777need_locks=$lt_need_locks
14778
14779# Do we need the lib prefix for modules?
14780need_lib_prefix=$need_lib_prefix
14781
14782# Do we need a version for libraries?
14783need_version=$need_version
14784
14785# Whether dlopen is supported.
14786dlopen_support=$enable_dlopen
14787
14788# Whether dlopen of programs is supported.
14789dlopen_self=$enable_dlopen_self
14790
14791# Whether dlopen of statically linked programs is supported.
14792dlopen_self_static=$enable_dlopen_self_static
14793
14794# Compiler flag to prevent dynamic linking.
14795link_static_flag=$lt_lt_prog_compiler_static_F77
14796
14797# Compiler flag to turn off builtin functions.
14798no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14799
14800# Compiler flag to allow reflexive dlopens.
14801export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14802
14803# Compiler flag to generate shared objects directly from archives.
14804whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14805
14806# Compiler flag to generate thread-safe objects.
14807thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14808
14809# Library versioning type.
14810version_type=$version_type
14811
14812# Format of library name prefix.
14813libname_spec=$lt_libname_spec
14814
14815# List of archive names.  First name is the real one, the rest are links.
14816# The last name is the one that the linker finds with -lNAME.
14817library_names_spec=$lt_library_names_spec
14818
14819# The coded name of the library, if different from the real name.
14820soname_spec=$lt_soname_spec
14821
14822# Commands used to build and install an old-style archive.
14823RANLIB=$lt_RANLIB
14824old_archive_cmds=$lt_old_archive_cmds_F77
14825old_postinstall_cmds=$lt_old_postinstall_cmds
14826old_postuninstall_cmds=$lt_old_postuninstall_cmds
14827
14828# Create an old-style archive from a shared archive.
14829old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14830
14831# Create a temporary old-style archive to link instead of a shared archive.
14832old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14833
14834# Commands used to build and install a shared archive.
14835archive_cmds=$lt_archive_cmds_F77
14836archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14837postinstall_cmds=$lt_postinstall_cmds
14838postuninstall_cmds=$lt_postuninstall_cmds
14839
14840# Commands used to build a loadable module (assumed same as above if empty)
14841module_cmds=$lt_module_cmds_F77
14842module_expsym_cmds=$lt_module_expsym_cmds_F77
14843
14844# Commands to strip libraries.
14845old_striplib=$lt_old_striplib
14846striplib=$lt_striplib
14847
14848# Dependencies to place before the objects being linked to create a
14849# shared library.
14850predep_objects=$lt_predep_objects_F77
14851
14852# Dependencies to place after the objects being linked to create a
14853# shared library.
14854postdep_objects=$lt_postdep_objects_F77
14855
14856# Dependencies to place before the objects being linked to create a
14857# shared library.
14858predeps=$lt_predeps_F77
14859
14860# Dependencies to place after the objects being linked to create a
14861# shared library.
14862postdeps=$lt_postdeps_F77
14863
14864# The library search path used internally by the compiler when linking
14865# a shared library.
14866compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14867
14868# Method to check whether dependent libraries are shared objects.
14869deplibs_check_method=$lt_deplibs_check_method
14870
14871# Command to use when deplibs_check_method == file_magic.
14872file_magic_cmd=$lt_file_magic_cmd
14873
14874# Flag that allows shared libraries with undefined symbols to be built.
14875allow_undefined_flag=$lt_allow_undefined_flag_F77
14876
14877# Flag that forces no undefined symbols.
14878no_undefined_flag=$lt_no_undefined_flag_F77
14879
14880# Commands used to finish a libtool library installation in a directory.
14881finish_cmds=$lt_finish_cmds
14882
14883# Same as above, but a single script fragment to be evaled but not shown.
14884finish_eval=$lt_finish_eval
14885
14886# Take the output of nm and produce a listing of raw symbols and C names.
14887global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14888
14889# Transform the output of nm in a proper C declaration
14890global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14891
14892# Transform the output of nm in a C name address pair
14893global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14894
14895# This is the shared library runtime path variable.
14896runpath_var=$runpath_var
14897
14898# This is the shared library path variable.
14899shlibpath_var=$shlibpath_var
14900
14901# Is shlibpath searched before the hard-coded library search path?
14902shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14903
14904# How to hardcode a shared library path into an executable.
14905hardcode_action=$hardcode_action_F77
14906
14907# Whether we should hardcode library paths into libraries.
14908hardcode_into_libs=$hardcode_into_libs
14909
14910# Flag to hardcode \$libdir into a binary during linking.
14911# This must work even if \$libdir does not exist.
14912hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14913
14914# If ld is used when linking, flag to hardcode \$libdir into
14915# a binary during linking. This must work even if \$libdir does
14916# not exist.
14917hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14918
14919# Whether we need a single -rpath flag with a separated argument.
14920hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14921
14922# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14923# resulting binary.
14924hardcode_direct=$hardcode_direct_F77
14925
14926# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14927# resulting binary.
14928hardcode_minus_L=$hardcode_minus_L_F77
14929
14930# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14931# the resulting binary.
14932hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14933
14934# Set to yes if building a shared library automatically hardcodes DIR into the library
14935# and all subsequent libraries and executables linked against it.
14936hardcode_automatic=$hardcode_automatic_F77
14937
14938# Variables whose values should be saved in libtool wrapper scripts and
14939# restored at relink time.
14940variables_saved_for_relink="$variables_saved_for_relink"
14941
14942# Whether libtool must link a program against all its dependency libraries.
14943link_all_deplibs=$link_all_deplibs_F77
14944
14945# Compile-time system search path for libraries
14946sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14947
14948# Run-time system search path for libraries
14949sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14950
14951# Fix the shell variable \$srcfile for the compiler.
14952fix_srcfile_path="$fix_srcfile_path_F77"
14953
14954# Set to yes if exported symbols are required.
14955always_export_symbols=$always_export_symbols_F77
14956
14957# The commands to list exported symbols.
14958export_symbols_cmds=$lt_export_symbols_cmds_F77
14959
14960# The commands to extract the exported symbol list from a shared archive.
14961extract_expsyms_cmds=$lt_extract_expsyms_cmds
14962
14963# Symbols that should not be listed in the preloaded symbols.
14964exclude_expsyms=$lt_exclude_expsyms_F77
14965
14966# Symbols that must always be exported.
14967include_expsyms=$lt_include_expsyms_F77
14968
14969# ### END LIBTOOL TAG CONFIG: $tagname
14970
14971__EOF__
14972
14973
14974else
14975  # If there is no Makefile yet, we rely on a make rule to execute
14976  # `config.status --recheck' to rerun these tests and create the
14977  # libtool script then.
14978  test -f Makefile && make "$ltmain"
14979fi
14980
14981
14982ac_ext=c
14983ac_cpp='$CPP $CPPFLAGS'
14984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14986ac_compiler_gnu=$ac_cv_c_compiler_gnu
14987
14988CC="$lt_save_CC"
14989
14990	else
14991	  tagname=""
14992	fi
14993	;;
14994
14995      GCJ)
14996	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14997
14998
14999
15000# Source file extension for Java test sources.
15001ac_ext=java
15002
15003# Object file extension for compiled Java test sources.
15004objext=o
15005objext_GCJ=$objext
15006
15007# Code to be used in simple compile tests
15008lt_simple_compile_test_code="class foo {}\n"
15009
15010# Code to be used in simple link tests
15011lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15012
15013# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15014
15015# If no C compiler was specified, use CC.
15016LTCC=${LTCC-"$CC"}
15017
15018# Allow CC to be a program name with arguments.
15019compiler=$CC
15020
15021
15022# Allow CC to be a program name with arguments.
15023lt_save_CC="$CC"
15024CC=${GCJ-"gcj"}
15025compiler=$CC
15026compiler_GCJ=$CC
15027
15028# GCJ did not exist at the time GCC didn't implicitly link libc in.
15029archive_cmds_need_lc_GCJ=no
15030
15031## CAVEAT EMPTOR:
15032## There is no encapsulation within the following macros, do not change
15033## the running order or otherwise move them around unless you know exactly
15034## what you are doing...
15035
15036lt_prog_compiler_no_builtin_flag_GCJ=
15037
15038if test "$GCC" = yes; then
15039  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15040
15041  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15042echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15043if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15044  echo $ECHO_N "(cached) $ECHO_C" >&6
15045else
15046  lt_cv_prog_compiler_rtti_exceptions=no
15047  ac_outfile=conftest.$ac_objext
15048   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15049   lt_compiler_flag="-fno-rtti -fno-exceptions"
15050   # Insert the option either (1) after the last *FLAGS variable, or
15051   # (2) before a word containing "conftest.", or (3) at the end.
15052   # Note that $ac_compile itself does not contain backslashes and begins
15053   # with a dollar sign (not a hyphen), so the echo should work correctly.
15054   # The option is referenced via a variable to avoid confusing sed.
15055   lt_compile=`echo "$ac_compile" | $SED \
15056   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15057   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15058   -e 's:$: $lt_compiler_flag:'`
15059   (eval echo "\"\$as_me:15059: $lt_compile\"" >&5)
15060   (eval "$lt_compile" 2>conftest.err)
15061   ac_status=$?
15062   cat conftest.err >&5
15063   echo "$as_me:15063: \$? = $ac_status" >&5
15064   if (exit $ac_status) && test -s "$ac_outfile"; then
15065     # The compiler can only warn and ignore the option if not recognized
15066     # So say no if there are warnings
15067     if test ! -s conftest.err; then
15068       lt_cv_prog_compiler_rtti_exceptions=yes
15069     fi
15070   fi
15071   $rm conftest*
15072
15073fi
15074echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15075echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15076
15077if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15078    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15079else
15080    :
15081fi
15082
15083fi
15084
15085lt_prog_compiler_wl_GCJ=
15086lt_prog_compiler_pic_GCJ=
15087lt_prog_compiler_static_GCJ=
15088
15089echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15090echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15091
15092  if test "$GCC" = yes; then
15093    lt_prog_compiler_wl_GCJ='-Wl,'
15094    lt_prog_compiler_static_GCJ='-static'
15095
15096    case $host_os in
15097      aix*)
15098      # All AIX code is PIC.
15099      if test "$host_cpu" = ia64; then
15100	# AIX 5 now supports IA64 processor
15101	lt_prog_compiler_static_GCJ='-Bstatic'
15102      fi
15103      ;;
15104
15105    amigaos*)
15106      # FIXME: we need at least 68020 code to build shared libraries, but
15107      # adding the `-m68020' flag to GCC prevents building anything better,
15108      # like `-m68040'.
15109      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15110      ;;
15111
15112    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15113      # PIC is the default for these OSes.
15114      ;;
15115
15116    mingw* | pw32* | os2*)
15117      # This hack is so that the source file can tell whether it is being
15118      # built for inclusion in a dll (and should export symbols for example).
15119      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15120      ;;
15121
15122    darwin* | rhapsody*)
15123      # PIC is the default on this platform
15124      # Common symbols not allowed in MH_DYLIB files
15125      lt_prog_compiler_pic_GCJ='-fno-common'
15126      ;;
15127
15128    msdosdjgpp*)
15129      # Just because we use GCC doesn't mean we suddenly get shared libraries
15130      # on systems that don't support them.
15131      lt_prog_compiler_can_build_shared_GCJ=no
15132      enable_shared=no
15133      ;;
15134
15135    sysv4*MP*)
15136      if test -d /usr/nec; then
15137	lt_prog_compiler_pic_GCJ=-Kconform_pic
15138      fi
15139      ;;
15140
15141    hpux*)
15142      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15143      # not for PA HP-UX.
15144      case "$host_cpu" in
15145      hppa*64*|ia64*)
15146	# +Z the default
15147	;;
15148      *)
15149	lt_prog_compiler_pic_GCJ='-fPIC'
15150	;;
15151      esac
15152      ;;
15153
15154    *)
15155      lt_prog_compiler_pic_GCJ='-fPIC'
15156      ;;
15157    esac
15158  else
15159    # PORTME Check for flag to pass linker flags through the system compiler.
15160    case $host_os in
15161    aix*)
15162      lt_prog_compiler_wl_GCJ='-Wl,'
15163      if test "$host_cpu" = ia64; then
15164	# AIX 5 now supports IA64 processor
15165	lt_prog_compiler_static_GCJ='-Bstatic'
15166      else
15167	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15168      fi
15169      ;;
15170
15171    mingw* | pw32* | os2*)
15172      # This hack is so that the source file can tell whether it is being
15173      # built for inclusion in a dll (and should export symbols for example).
15174      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15175      ;;
15176
15177    hpux9* | hpux10* | hpux11*)
15178      lt_prog_compiler_wl_GCJ='-Wl,'
15179      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15180      # not for PA HP-UX.
15181      case "$host_cpu" in
15182      hppa*64*|ia64*)
15183	# +Z the default
15184	;;
15185      *)
15186	lt_prog_compiler_pic_GCJ='+Z'
15187	;;
15188      esac
15189      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15190      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15191      ;;
15192
15193    irix5* | irix6* | nonstopux*)
15194      lt_prog_compiler_wl_GCJ='-Wl,'
15195      # PIC (with -KPIC) is the default.
15196      lt_prog_compiler_static_GCJ='-non_shared'
15197      ;;
15198
15199    newsos6)
15200      lt_prog_compiler_pic_GCJ='-KPIC'
15201      lt_prog_compiler_static_GCJ='-Bstatic'
15202      ;;
15203
15204    linux*)
15205      case $CC in
15206      icc|ecc)
15207	lt_prog_compiler_wl_GCJ='-Wl,'
15208	lt_prog_compiler_pic_GCJ='-KPIC'
15209	lt_prog_compiler_static_GCJ='-static'
15210        ;;
15211      ccc)
15212        lt_prog_compiler_wl_GCJ='-Wl,'
15213        # All Alpha code is PIC.
15214        lt_prog_compiler_static_GCJ='-non_shared'
15215        ;;
15216      esac
15217      ;;
15218
15219    osf3* | osf4* | osf5*)
15220      lt_prog_compiler_wl_GCJ='-Wl,'
15221      # All OSF/1 code is PIC.
15222      lt_prog_compiler_static_GCJ='-non_shared'
15223      ;;
15224
15225    sco3.2v5*)
15226      lt_prog_compiler_pic_GCJ='-Kpic'
15227      lt_prog_compiler_static_GCJ='-dn'
15228      ;;
15229
15230    solaris*)
15231      lt_prog_compiler_wl_GCJ='-Wl,'
15232      lt_prog_compiler_pic_GCJ='-KPIC'
15233      lt_prog_compiler_static_GCJ='-Bstatic'
15234      ;;
15235
15236    sunos4*)
15237      lt_prog_compiler_wl_GCJ='-Qoption ld '
15238      lt_prog_compiler_pic_GCJ='-PIC'
15239      lt_prog_compiler_static_GCJ='-Bstatic'
15240      ;;
15241
15242    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15243      lt_prog_compiler_wl_GCJ='-Wl,'
15244      lt_prog_compiler_pic_GCJ='-KPIC'
15245      lt_prog_compiler_static_GCJ='-Bstatic'
15246      ;;
15247
15248    sysv4*MP*)
15249      if test -d /usr/nec ;then
15250	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15251	lt_prog_compiler_static_GCJ='-Bstatic'
15252      fi
15253      ;;
15254
15255    uts4*)
15256      lt_prog_compiler_pic_GCJ='-pic'
15257      lt_prog_compiler_static_GCJ='-Bstatic'
15258      ;;
15259
15260    *)
15261      lt_prog_compiler_can_build_shared_GCJ=no
15262      ;;
15263    esac
15264  fi
15265
15266echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15267echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15268
15269#
15270# Check to make sure the PIC flag actually works.
15271#
15272if test -n "$lt_prog_compiler_pic_GCJ"; then
15273  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15274echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15275if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15276  echo $ECHO_N "(cached) $ECHO_C" >&6
15277else
15278  lt_prog_compiler_pic_works_GCJ=no
15279  ac_outfile=conftest.$ac_objext
15280   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15281   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15282   # Insert the option either (1) after the last *FLAGS variable, or
15283   # (2) before a word containing "conftest.", or (3) at the end.
15284   # Note that $ac_compile itself does not contain backslashes and begins
15285   # with a dollar sign (not a hyphen), so the echo should work correctly.
15286   # The option is referenced via a variable to avoid confusing sed.
15287   lt_compile=`echo "$ac_compile" | $SED \
15288   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15289   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15290   -e 's:$: $lt_compiler_flag:'`
15291   (eval echo "\"\$as_me:15291: $lt_compile\"" >&5)
15292   (eval "$lt_compile" 2>conftest.err)
15293   ac_status=$?
15294   cat conftest.err >&5
15295   echo "$as_me:15295: \$? = $ac_status" >&5
15296   if (exit $ac_status) && test -s "$ac_outfile"; then
15297     # The compiler can only warn and ignore the option if not recognized
15298     # So say no if there are warnings
15299     if test ! -s conftest.err; then
15300       lt_prog_compiler_pic_works_GCJ=yes
15301     fi
15302   fi
15303   $rm conftest*
15304
15305fi
15306echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15307echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15308
15309if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15310    case $lt_prog_compiler_pic_GCJ in
15311     "" | " "*) ;;
15312     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15313     esac
15314else
15315    lt_prog_compiler_pic_GCJ=
15316     lt_prog_compiler_can_build_shared_GCJ=no
15317fi
15318
15319fi
15320case "$host_os" in
15321  # For platforms which do not support PIC, -DPIC is meaningless:
15322  *djgpp*)
15323    lt_prog_compiler_pic_GCJ=
15324    ;;
15325  *)
15326    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15327    ;;
15328esac
15329
15330echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15331echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15332if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15333  echo $ECHO_N "(cached) $ECHO_C" >&6
15334else
15335  lt_cv_prog_compiler_c_o_GCJ=no
15336   $rm -r conftest 2>/dev/null
15337   mkdir conftest
15338   cd conftest
15339   mkdir out
15340   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15341
15342   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15343   # that will create temporary files in the current directory regardless of
15344   # the output directory.  Thus, making CWD read-only will cause this test
15345   # to fail, enabling locking or at least warning the user not to do parallel
15346   # builds.
15347   chmod -w .
15348
15349   lt_compiler_flag="-o out/conftest2.$ac_objext"
15350   # Insert the option either (1) after the last *FLAGS variable, or
15351   # (2) before a word containing "conftest.", or (3) at the end.
15352   # Note that $ac_compile itself does not contain backslashes and begins
15353   # with a dollar sign (not a hyphen), so the echo should work correctly.
15354   lt_compile=`echo "$ac_compile" | $SED \
15355   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15356   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15357   -e 's:$: $lt_compiler_flag:'`
15358   (eval echo "\"\$as_me:15358: $lt_compile\"" >&5)
15359   (eval "$lt_compile" 2>out/conftest.err)
15360   ac_status=$?
15361   cat out/conftest.err >&5
15362   echo "$as_me:15362: \$? = $ac_status" >&5
15363   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15364   then
15365     # The compiler can only warn and ignore the option if not recognized
15366     # So say no if there are warnings
15367     if test ! -s out/conftest.err; then
15368       lt_cv_prog_compiler_c_o_GCJ=yes
15369     fi
15370   fi
15371   chmod u+w .
15372   $rm conftest* out/*
15373   rmdir out
15374   cd ..
15375   rmdir conftest
15376   $rm conftest*
15377
15378fi
15379echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15380echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15381
15382
15383hard_links="nottested"
15384if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15385  # do not overwrite the value of need_locks provided by the user
15386  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15387echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15388  hard_links=yes
15389  $rm conftest*
15390  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15391  touch conftest.a
15392  ln conftest.a conftest.b 2>&5 || hard_links=no
15393  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15394  echo "$as_me:$LINENO: result: $hard_links" >&5
15395echo "${ECHO_T}$hard_links" >&6
15396  if test "$hard_links" = no; then
15397    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15398echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15399    need_locks=warn
15400  fi
15401else
15402  need_locks=no
15403fi
15404
15405echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15406echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15407
15408  runpath_var=
15409  allow_undefined_flag_GCJ=
15410  enable_shared_with_static_runtimes_GCJ=no
15411  archive_cmds_GCJ=
15412  archive_expsym_cmds_GCJ=
15413  old_archive_From_new_cmds_GCJ=
15414  old_archive_from_expsyms_cmds_GCJ=
15415  export_dynamic_flag_spec_GCJ=
15416  whole_archive_flag_spec_GCJ=
15417  thread_safe_flag_spec_GCJ=
15418  hardcode_libdir_flag_spec_GCJ=
15419  hardcode_libdir_flag_spec_ld_GCJ=
15420  hardcode_libdir_separator_GCJ=
15421  hardcode_direct_GCJ=no
15422  hardcode_minus_L_GCJ=no
15423  hardcode_shlibpath_var_GCJ=unsupported
15424  link_all_deplibs_GCJ=unknown
15425  hardcode_automatic_GCJ=no
15426  module_cmds_GCJ=
15427  module_expsym_cmds_GCJ=
15428  always_export_symbols_GCJ=no
15429  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15430  # include_expsyms should be a list of space-separated symbols to be *always*
15431  # included in the symbol list
15432  include_expsyms_GCJ=
15433  # exclude_expsyms can be an extended regexp of symbols to exclude
15434  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15435  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15436  # as well as any symbol that contains `d'.
15437  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15438  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15439  # platforms (ab)use it in PIC code, but their linkers get confused if
15440  # the symbol is explicitly referenced.  Since portable code cannot
15441  # rely on this symbol name, it's probably fine to never include it in
15442  # preloaded symbol tables.
15443  extract_expsyms_cmds=
15444
15445  case $host_os in
15446  cygwin* | mingw* | pw32*)
15447    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15448    # When not using gcc, we currently assume that we are using
15449    # Microsoft Visual C++.
15450    if test "$GCC" != yes; then
15451      with_gnu_ld=no
15452    fi
15453    ;;
15454  openbsd*)
15455    with_gnu_ld=no
15456    ;;
15457  esac
15458
15459  ld_shlibs_GCJ=yes
15460  if test "$with_gnu_ld" = yes; then
15461    # If archive_cmds runs LD, not CC, wlarc should be empty
15462    wlarc='${wl}'
15463
15464    # See if GNU ld supports shared libraries.
15465    case $host_os in
15466    aix3* | aix4* | aix5*)
15467      # On AIX/PPC, the GNU linker is very broken
15468      if test "$host_cpu" != ia64; then
15469	ld_shlibs_GCJ=no
15470	cat <<EOF 1>&2
15471
15472*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15473*** to be unable to reliably create shared libraries on AIX.
15474*** Therefore, libtool is disabling shared libraries support.  If you
15475*** really care for shared libraries, you may want to modify your PATH
15476*** so that a non-GNU linker is found, and then restart.
15477
15478EOF
15479      fi
15480      ;;
15481
15482    amigaos*)
15483      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)'
15484      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15485      hardcode_minus_L_GCJ=yes
15486
15487      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15488      # that the semantics of dynamic libraries on AmigaOS, at least up
15489      # to version 4, is to share data among multiple programs linked
15490      # with the same dynamic library.  Since this doesn't match the
15491      # behavior of shared libraries on other platforms, we can't use
15492      # them.
15493      ld_shlibs_GCJ=no
15494      ;;
15495
15496    beos*)
15497      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15498	allow_undefined_flag_GCJ=unsupported
15499	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15500	# support --undefined.  This deserves some investigation.  FIXME
15501	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15502      else
15503	ld_shlibs_GCJ=no
15504      fi
15505      ;;
15506
15507    cygwin* | mingw* | pw32*)
15508      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15509      # as there is no search path for DLLs.
15510      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15511      allow_undefined_flag_GCJ=unsupported
15512      always_export_symbols_GCJ=no
15513      enable_shared_with_static_runtimes_GCJ=yes
15514      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15515
15516      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15517        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15518	# If the export-symbols file already is a .def file (1st line
15519	# is EXPORTS), use it as is; otherwise, prepend...
15520	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15521	  cp $export_symbols $output_objdir/$soname.def;
15522	else
15523	  echo EXPORTS > $output_objdir/$soname.def;
15524	  cat $export_symbols >> $output_objdir/$soname.def;
15525	fi~
15526	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15527      else
15528	ld_shlibs=no
15529      fi
15530      ;;
15531
15532    netbsd*)
15533      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15534	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15535	wlarc=
15536      else
15537	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15538	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15539      fi
15540      ;;
15541
15542    solaris* | sysv5*)
15543      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15544	ld_shlibs_GCJ=no
15545	cat <<EOF 1>&2
15546
15547*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15548*** create shared libraries on Solaris systems.  Therefore, libtool
15549*** is disabling shared libraries support.  We urge you to upgrade GNU
15550*** binutils to release 2.9.1 or newer.  Another option is to modify
15551*** your PATH or compiler configuration so that the native linker is
15552*** used, and then restart.
15553
15554EOF
15555      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15556	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15557	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15558      else
15559	ld_shlibs_GCJ=no
15560      fi
15561      ;;
15562
15563    sunos4*)
15564      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15565      wlarc=
15566      hardcode_direct_GCJ=yes
15567      hardcode_shlibpath_var_GCJ=no
15568      ;;
15569
15570    *)
15571      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15572	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15573	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15574      else
15575	ld_shlibs_GCJ=no
15576      fi
15577      ;;
15578    esac
15579
15580    if test "$ld_shlibs_GCJ" = yes; then
15581      runpath_var=LD_RUN_PATH
15582      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15583      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15584      # ancient GNU ld didn't support --whole-archive et. al.
15585      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15586 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15587      else
15588  	whole_archive_flag_spec_GCJ=
15589      fi
15590    fi
15591  else
15592    # PORTME fill in a description of your system's linker (not GNU ld)
15593    case $host_os in
15594    aix3*)
15595      allow_undefined_flag_GCJ=unsupported
15596      always_export_symbols_GCJ=yes
15597      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'
15598      # Note: this linker hardcodes the directories in LIBPATH if there
15599      # are no directories specified by -L.
15600      hardcode_minus_L_GCJ=yes
15601      if test "$GCC" = yes && test -z "$link_static_flag"; then
15602	# Neither direct hardcoding nor static linking is supported with a
15603	# broken collect2.
15604	hardcode_direct_GCJ=unsupported
15605      fi
15606      ;;
15607
15608    aix4* | aix5*)
15609      if test "$host_cpu" = ia64; then
15610	# On IA64, the linker does run time linking by default, so we don't
15611	# have to do anything special.
15612	aix_use_runtimelinking=no
15613	exp_sym_flag='-Bexport'
15614	no_entry_flag=""
15615      else
15616	# If we're using GNU nm, then we don't want the "-C" option.
15617	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15618	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15619	  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'
15620	else
15621	  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'
15622	fi
15623	aix_use_runtimelinking=no
15624
15625	# Test if we are trying to use run time linking or normal
15626	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15627	# need to do runtime linking.
15628	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15629	  for ld_flag in $LDFLAGS; do
15630  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15631  	    aix_use_runtimelinking=yes
15632  	    break
15633  	  fi
15634	  done
15635	esac
15636
15637	exp_sym_flag='-bexport'
15638	no_entry_flag='-bnoentry'
15639      fi
15640
15641      # When large executables or shared objects are built, AIX ld can
15642      # have problems creating the table of contents.  If linking a library
15643      # or program results in "error TOC overflow" add -mminimal-toc to
15644      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15645      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15646
15647      archive_cmds_GCJ=''
15648      hardcode_direct_GCJ=yes
15649      hardcode_libdir_separator_GCJ=':'
15650      link_all_deplibs_GCJ=yes
15651
15652      if test "$GCC" = yes; then
15653	case $host_os in aix4.012|aix4.012.*)
15654	# We only want to do this on AIX 4.2 and lower, the check
15655	# below for broken collect2 doesn't work under 4.3+
15656	  collect2name=`${CC} -print-prog-name=collect2`
15657	  if test -f "$collect2name" && \
15658  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15659	  then
15660  	  # We have reworked collect2
15661  	  hardcode_direct_GCJ=yes
15662	  else
15663  	  # We have old collect2
15664  	  hardcode_direct_GCJ=unsupported
15665  	  # It fails to find uninstalled libraries when the uninstalled
15666  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15667  	  # to unsupported forces relinking
15668  	  hardcode_minus_L_GCJ=yes
15669  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
15670  	  hardcode_libdir_separator_GCJ=
15671	  fi
15672	esac
15673	shared_flag='-shared'
15674      else
15675	# not using gcc
15676	if test "$host_cpu" = ia64; then
15677  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15678  	# chokes on -Wl,-G. The following line is correct:
15679	  shared_flag='-G'
15680	else
15681  	if test "$aix_use_runtimelinking" = yes; then
15682	    shared_flag='${wl}-G'
15683	  else
15684	    shared_flag='${wl}-bM:SRE'
15685  	fi
15686	fi
15687      fi
15688
15689      # It seems that -bexpall does not export symbols beginning with
15690      # underscore (_), so it is better to generate a list of symbols to export.
15691      always_export_symbols_GCJ=yes
15692      if test "$aix_use_runtimelinking" = yes; then
15693	# Warning - without using the other runtime loading flags (-brtl),
15694	# -berok will link without error, but may produce a broken library.
15695	allow_undefined_flag_GCJ='-berok'
15696       # Determine the default libpath from the value encoded in an empty executable.
15697       cat >conftest.$ac_ext <<_ACEOF
15698#line $LINENO "configure"
15699/* confdefs.h.  */
15700_ACEOF
15701cat confdefs.h >>conftest.$ac_ext
15702cat >>conftest.$ac_ext <<_ACEOF
15703/* end confdefs.h.  */
15704
15705int
15706main ()
15707{
15708
15709  ;
15710  return 0;
15711}
15712_ACEOF
15713rm -f conftest.$ac_objext conftest$ac_exeext
15714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15715  (eval $ac_link) 2>&5
15716  ac_status=$?
15717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718  (exit $ac_status); } &&
15719         { ac_try='test -s conftest$ac_exeext'
15720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721  (eval $ac_try) 2>&5
15722  ac_status=$?
15723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724  (exit $ac_status); }; }; then
15725
15726aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15727}'`
15728# Check for a 64-bit object if we didn't find anything.
15729if 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; }
15730}'`; fi
15731else
15732  echo "$as_me: failed program was:" >&5
15733sed 's/^/| /' conftest.$ac_ext >&5
15734
15735fi
15736rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15737if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15738
15739       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15740	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"
15741       else
15742	if test "$host_cpu" = ia64; then
15743	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15744	  allow_undefined_flag_GCJ="-z nodefs"
15745	  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"
15746	else
15747	 # Determine the default libpath from the value encoded in an empty executable.
15748	 cat >conftest.$ac_ext <<_ACEOF
15749#line $LINENO "configure"
15750/* confdefs.h.  */
15751_ACEOF
15752cat confdefs.h >>conftest.$ac_ext
15753cat >>conftest.$ac_ext <<_ACEOF
15754/* end confdefs.h.  */
15755
15756int
15757main ()
15758{
15759
15760  ;
15761  return 0;
15762}
15763_ACEOF
15764rm -f conftest.$ac_objext conftest$ac_exeext
15765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15766  (eval $ac_link) 2>&5
15767  ac_status=$?
15768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769  (exit $ac_status); } &&
15770         { ac_try='test -s conftest$ac_exeext'
15771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772  (eval $ac_try) 2>&5
15773  ac_status=$?
15774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775  (exit $ac_status); }; }; then
15776
15777aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15778}'`
15779# Check for a 64-bit object if we didn't find anything.
15780if 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; }
15781}'`; fi
15782else
15783  echo "$as_me: failed program was:" >&5
15784sed 's/^/| /' conftest.$ac_ext >&5
15785
15786fi
15787rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15788if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15789
15790	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15791	  # Warning - without using the other run time loading flags,
15792	  # -berok will link without error, but may produce a broken library.
15793	  no_undefined_flag_GCJ=' ${wl}-bernotok'
15794	  allow_undefined_flag_GCJ=' ${wl}-berok'
15795	  # -bexpall does not export symbols beginning with underscore (_)
15796	  always_export_symbols_GCJ=yes
15797	  # Exported symbols can be pulled into shared objects from archives
15798	  whole_archive_flag_spec_GCJ=' '
15799	  archive_cmds_need_lc_GCJ=yes
15800	  # This is similar to how AIX traditionally builds it's shared libraries.
15801	  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'
15802	fi
15803      fi
15804      ;;
15805
15806    amigaos*)
15807      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)'
15808      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15809      hardcode_minus_L_GCJ=yes
15810      # see comment about different semantics on the GNU ld section
15811      ld_shlibs_GCJ=no
15812      ;;
15813
15814    bsdi4*)
15815      export_dynamic_flag_spec_GCJ=-rdynamic
15816      ;;
15817
15818    cygwin* | mingw* | pw32*)
15819      # When not using gcc, we currently assume that we are using
15820      # Microsoft Visual C++.
15821      # hardcode_libdir_flag_spec is actually meaningless, as there is
15822      # no search path for DLLs.
15823      hardcode_libdir_flag_spec_GCJ=' '
15824      allow_undefined_flag_GCJ=unsupported
15825      # Tell ltmain to make .lib files, not .a files.
15826      libext=lib
15827      # Tell ltmain to make .dll files, not .so files.
15828      shrext=".dll"
15829      # FIXME: Setting linknames here is a bad hack.
15830      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15831      # The linker will automatically build a .lib file if we build a DLL.
15832      old_archive_From_new_cmds_GCJ='true'
15833      # FIXME: Should let the user specify the lib program.
15834      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15835      fix_srcfile_path='`cygpath -w "$srcfile"`'
15836      enable_shared_with_static_runtimes_GCJ=yes
15837      ;;
15838
15839    darwin* | rhapsody*)
15840    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15841      archive_cmds_need_lc_GCJ=no
15842      case "$host_os" in
15843      rhapsody* | darwin1.[012])
15844	allow_undefined_flag_GCJ='-undefined suppress'
15845	;;
15846      *) # Darwin 1.3 on
15847	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15848	;;
15849      esac
15850      # FIXME: Relying on posixy $() will cause problems for
15851      #        cross-compilation, but unfortunately the echo tests do not
15852      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15853      #	       `"' quotes if we put them in here... so don't!
15854    	lt_int_apple_cc_single_mod=no
15855    	output_verbose_link_cmd='echo'
15856    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15857    	  lt_int_apple_cc_single_mod=yes
15858    	fi
15859    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15860    	  archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15861    	else
15862        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'
15863      fi
15864      module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15865      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15866        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15867          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}'
15868        else
15869          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}'
15870        fi
15871          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}'
15872      hardcode_direct_GCJ=no
15873      hardcode_automatic_GCJ=yes
15874      hardcode_shlibpath_var_GCJ=unsupported
15875      whole_archive_flag_spec_GCJ='-all_load $convenience'
15876      link_all_deplibs_GCJ=yes
15877    fi
15878      ;;
15879
15880    dgux*)
15881      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15882      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15883      hardcode_shlibpath_var_GCJ=no
15884      ;;
15885
15886    freebsd1*)
15887      ld_shlibs_GCJ=no
15888      ;;
15889
15890    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15891    # support.  Future versions do this automatically, but an explicit c++rt0.o
15892    # does not break anything, and helps significantly (at the cost of a little
15893    # extra space).
15894    freebsd2.2*)
15895      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15896      hardcode_libdir_flag_spec_GCJ='-R$libdir'
15897      hardcode_direct_GCJ=yes
15898      hardcode_shlibpath_var_GCJ=no
15899      ;;
15900
15901    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15902    freebsd2*)
15903      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15904      hardcode_direct_GCJ=yes
15905      hardcode_minus_L_GCJ=yes
15906      hardcode_shlibpath_var_GCJ=no
15907      ;;
15908
15909    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15910    freebsd*)
15911      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15912      hardcode_libdir_flag_spec_GCJ='-R$libdir'
15913      hardcode_direct_GCJ=yes
15914      hardcode_shlibpath_var_GCJ=no
15915      ;;
15916
15917    hpux9*)
15918      if test "$GCC" = yes; then
15919	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'
15920      else
15921	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'
15922      fi
15923      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15924      hardcode_libdir_separator_GCJ=:
15925      hardcode_direct_GCJ=yes
15926
15927      # hardcode_minus_L: Not really in the search PATH,
15928      # but as the default location of the library.
15929      hardcode_minus_L_GCJ=yes
15930      export_dynamic_flag_spec_GCJ='${wl}-E'
15931      ;;
15932
15933    hpux10* | hpux11*)
15934      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15935	case "$host_cpu" in
15936	hppa*64*|ia64*)
15937	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15938	  ;;
15939	*)
15940	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15941	  ;;
15942	esac
15943      else
15944	case "$host_cpu" in
15945	hppa*64*|ia64*)
15946	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15947	  ;;
15948	*)
15949	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15950	  ;;
15951	esac
15952      fi
15953      if test "$with_gnu_ld" = no; then
15954	case "$host_cpu" in
15955	hppa*64*)
15956	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15957	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15958	  hardcode_libdir_separator_GCJ=:
15959	  hardcode_direct_GCJ=no
15960	  hardcode_shlibpath_var_GCJ=no
15961	  ;;
15962	ia64*)
15963	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
15964	  hardcode_direct_GCJ=no
15965	  hardcode_shlibpath_var_GCJ=no
15966
15967	  # hardcode_minus_L: Not really in the search PATH,
15968	  # but as the default location of the library.
15969	  hardcode_minus_L_GCJ=yes
15970	  ;;
15971	*)
15972	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15973	  hardcode_libdir_separator_GCJ=:
15974	  hardcode_direct_GCJ=yes
15975	  export_dynamic_flag_spec_GCJ='${wl}-E'
15976
15977	  # hardcode_minus_L: Not really in the search PATH,
15978	  # but as the default location of the library.
15979	  hardcode_minus_L_GCJ=yes
15980	  ;;
15981	esac
15982      fi
15983      ;;
15984
15985    irix5* | irix6* | nonstopux*)
15986      if test "$GCC" = yes; then
15987	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'
15988      else
15989	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'
15990	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15991      fi
15992      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15993      hardcode_libdir_separator_GCJ=:
15994      link_all_deplibs_GCJ=yes
15995      ;;
15996
15997    netbsd*)
15998      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15999	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16000      else
16001	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16002      fi
16003      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16004      hardcode_direct_GCJ=yes
16005      hardcode_shlibpath_var_GCJ=no
16006      ;;
16007
16008    newsos6)
16009      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16010      hardcode_direct_GCJ=yes
16011      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16012      hardcode_libdir_separator_GCJ=:
16013      hardcode_shlibpath_var_GCJ=no
16014      ;;
16015
16016    openbsd*)
16017      hardcode_direct_GCJ=yes
16018      hardcode_shlibpath_var_GCJ=no
16019      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16020	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16021	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16022	export_dynamic_flag_spec_GCJ='${wl}-E'
16023      else
16024       case $host_os in
16025	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16026	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16027	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16028	   ;;
16029	 *)
16030	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16031	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16032	   ;;
16033       esac
16034      fi
16035      ;;
16036
16037    os2*)
16038      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16039      hardcode_minus_L_GCJ=yes
16040      allow_undefined_flag_GCJ=unsupported
16041      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'
16042      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16043      ;;
16044
16045    osf3*)
16046      if test "$GCC" = yes; then
16047	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16048	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'
16049      else
16050	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16051	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'
16052      fi
16053      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16054      hardcode_libdir_separator_GCJ=:
16055      ;;
16056
16057    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16058      if test "$GCC" = yes; then
16059	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16060	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'
16061	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16062      else
16063	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16064	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'
16065	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~
16066	$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'
16067
16068	# Both c and cxx compiler support -rpath directly
16069	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16070      fi
16071      hardcode_libdir_separator_GCJ=:
16072      ;;
16073
16074    sco3.2v5*)
16075      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16076      hardcode_shlibpath_var_GCJ=no
16077      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16078      runpath_var=LD_RUN_PATH
16079      hardcode_runpath_var=yes
16080      ;;
16081
16082    solaris*)
16083      no_undefined_flag_GCJ=' -z text'
16084      if test "$GCC" = yes; then
16085	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16086	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16087	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16088      else
16089	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16090	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16091  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16092      fi
16093      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16094      hardcode_shlibpath_var_GCJ=no
16095      case $host_os in
16096      solaris2.[0-5] | solaris2.[0-5].*) ;;
16097      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16098	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16099      esac
16100      link_all_deplibs_GCJ=yes
16101      ;;
16102
16103    sunos4*)
16104      if test "x$host_vendor" = xsequent; then
16105	# Use $CC to link under sequent, because it throws in some extra .o
16106	# files that make .init and .fini sections work.
16107	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16108      else
16109	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16110      fi
16111      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16112      hardcode_direct_GCJ=yes
16113      hardcode_minus_L_GCJ=yes
16114      hardcode_shlibpath_var_GCJ=no
16115      ;;
16116
16117    sysv4)
16118      case $host_vendor in
16119	sni)
16120	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16121	  hardcode_direct_GCJ=yes # is this really true???
16122	;;
16123	siemens)
16124	  ## LD is ld it makes a PLAMLIB
16125	  ## CC just makes a GrossModule.
16126	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16127	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16128	  hardcode_direct_GCJ=no
16129        ;;
16130	motorola)
16131	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16132	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16133	;;
16134      esac
16135      runpath_var='LD_RUN_PATH'
16136      hardcode_shlibpath_var_GCJ=no
16137      ;;
16138
16139    sysv4.3*)
16140      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16141      hardcode_shlibpath_var_GCJ=no
16142      export_dynamic_flag_spec_GCJ='-Bexport'
16143      ;;
16144
16145    sysv4*MP*)
16146      if test -d /usr/nec; then
16147	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16148	hardcode_shlibpath_var_GCJ=no
16149	runpath_var=LD_RUN_PATH
16150	hardcode_runpath_var=yes
16151	ld_shlibs_GCJ=yes
16152      fi
16153      ;;
16154
16155    sysv4.2uw2*)
16156      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16157      hardcode_direct_GCJ=yes
16158      hardcode_minus_L_GCJ=no
16159      hardcode_shlibpath_var_GCJ=no
16160      hardcode_runpath_var=yes
16161      runpath_var=LD_RUN_PATH
16162      ;;
16163
16164   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16165      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16166      if test "$GCC" = yes; then
16167	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16168      else
16169	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16170      fi
16171      runpath_var='LD_RUN_PATH'
16172      hardcode_shlibpath_var_GCJ=no
16173      ;;
16174
16175    sysv5*)
16176      no_undefined_flag_GCJ=' -z text'
16177      # $CC -shared without GNU ld will not create a library from C++
16178      # object files and a static libstdc++, better avoid it by now
16179      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16180      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16181  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16182      hardcode_libdir_flag_spec_GCJ=
16183      hardcode_shlibpath_var_GCJ=no
16184      runpath_var='LD_RUN_PATH'
16185      ;;
16186
16187    uts4*)
16188      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16189      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16190      hardcode_shlibpath_var_GCJ=no
16191      ;;
16192
16193    *)
16194      ld_shlibs_GCJ=no
16195      ;;
16196    esac
16197  fi
16198
16199echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16200echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16201test "$ld_shlibs_GCJ" = no && can_build_shared=no
16202
16203variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16204if test "$GCC" = yes; then
16205  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16206fi
16207
16208#
16209# Do we need to explicitly link libc?
16210#
16211case "x$archive_cmds_need_lc_GCJ" in
16212x|xyes)
16213  # Assume -lc should be added
16214  archive_cmds_need_lc_GCJ=yes
16215
16216  if test "$enable_shared" = yes && test "$GCC" = yes; then
16217    case $archive_cmds_GCJ in
16218    *'~'*)
16219      # FIXME: we may have to deal with multi-command sequences.
16220      ;;
16221    '$CC '*)
16222      # Test whether the compiler implicitly links with -lc since on some
16223      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16224      # to ld, don't add -lc before -lgcc.
16225      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16226echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16227      $rm conftest*
16228      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16229
16230      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16231  (eval $ac_compile) 2>&5
16232  ac_status=$?
16233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234  (exit $ac_status); } 2>conftest.err; then
16235        soname=conftest
16236        lib=conftest
16237        libobjs=conftest.$ac_objext
16238        deplibs=
16239        wl=$lt_prog_compiler_wl_GCJ
16240        compiler_flags=-v
16241        linker_flags=-v
16242        verstring=
16243        output_objdir=.
16244        libname=conftest
16245        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16246        allow_undefined_flag_GCJ=
16247        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16248  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16249  ac_status=$?
16250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251  (exit $ac_status); }
16252        then
16253	  archive_cmds_need_lc_GCJ=no
16254        else
16255	  archive_cmds_need_lc_GCJ=yes
16256        fi
16257        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16258      else
16259        cat conftest.err 1>&5
16260      fi
16261      $rm conftest*
16262      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16263echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16264      ;;
16265    esac
16266  fi
16267  ;;
16268esac
16269
16270echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16271echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16272hardcode_action_GCJ=
16273if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16274   test -n "$runpath_var GCJ" || \
16275   test "X$hardcode_automatic_GCJ"="Xyes" ; then
16276
16277  # We can hardcode non-existant directories.
16278  if test "$hardcode_direct_GCJ" != no &&
16279     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16280     # have to relink, otherwise we might link with an installed library
16281     # when we should be linking with a yet-to-be-installed one
16282     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16283     test "$hardcode_minus_L_GCJ" != no; then
16284    # Linking always hardcodes the temporary library directory.
16285    hardcode_action_GCJ=relink
16286  else
16287    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16288    hardcode_action_GCJ=immediate
16289  fi
16290else
16291  # We cannot hardcode anything, or else we can only hardcode existing
16292  # directories.
16293  hardcode_action_GCJ=unsupported
16294fi
16295echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16296echo "${ECHO_T}$hardcode_action_GCJ" >&6
16297
16298if test "$hardcode_action_GCJ" = relink; then
16299  # Fast installation is not supported
16300  enable_fast_install=no
16301elif test "$shlibpath_overrides_runpath" = yes ||
16302     test "$enable_shared" = no; then
16303  # Fast installation is not necessary
16304  enable_fast_install=needless
16305fi
16306
16307striplib=
16308old_striplib=
16309echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16310echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16311if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16312  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16313  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16314  echo "$as_me:$LINENO: result: yes" >&5
16315echo "${ECHO_T}yes" >&6
16316else
16317# FIXME - insert some real tests, host_os isn't really good enough
16318  case $host_os in
16319   darwin*)
16320       if test -n "$STRIP" ; then
16321         striplib="$STRIP -x"
16322         echo "$as_me:$LINENO: result: yes" >&5
16323echo "${ECHO_T}yes" >&6
16324       else
16325  echo "$as_me:$LINENO: result: no" >&5
16326echo "${ECHO_T}no" >&6
16327fi
16328       ;;
16329   *)
16330  echo "$as_me:$LINENO: result: no" >&5
16331echo "${ECHO_T}no" >&6
16332    ;;
16333  esac
16334fi
16335
16336echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16337echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16338library_names_spec=
16339libname_spec='lib$name'
16340soname_spec=
16341shrext=".so"
16342postinstall_cmds=
16343postuninstall_cmds=
16344finish_cmds=
16345finish_eval=
16346shlibpath_var=
16347shlibpath_overrides_runpath=unknown
16348version_type=none
16349dynamic_linker="$host_os ld.so"
16350sys_lib_dlsearch_path_spec="/lib /usr/lib"
16351if test "$GCC" = yes; then
16352  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16353  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16354    # if the path contains ";" then we assume it to be the separator
16355    # otherwise default to the standard path separator (i.e. ":") - it is
16356    # assumed that no part of a normal pathname contains ";" but that should
16357    # okay in the real world where ";" in dirpaths is itself problematic.
16358    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16359  else
16360    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16361  fi
16362else
16363  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16364fi
16365need_lib_prefix=unknown
16366hardcode_into_libs=no
16367
16368# when you set need_version to no, make sure it does not cause -set_version
16369# flags to be left without arguments
16370need_version=unknown
16371
16372case $host_os in
16373aix3*)
16374  version_type=linux
16375  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16376  shlibpath_var=LIBPATH
16377
16378  # AIX 3 has no versioning support, so we append a major version to the name.
16379  soname_spec='${libname}${release}${shared_ext}$major'
16380  ;;
16381
16382aix4* | aix5*)
16383  version_type=linux
16384  need_lib_prefix=no
16385  need_version=no
16386  hardcode_into_libs=yes
16387  if test "$host_cpu" = ia64; then
16388    # AIX 5 supports IA64
16389    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16390    shlibpath_var=LD_LIBRARY_PATH
16391  else
16392    # With GCC up to 2.95.x, collect2 would create an import file
16393    # for dependence libraries.  The import file would start with
16394    # the line `#! .'.  This would cause the generated library to
16395    # depend on `.', always an invalid library.  This was fixed in
16396    # development snapshots of GCC prior to 3.0.
16397    case $host_os in
16398      aix4 | aix4.[01] | aix4.[01].*)
16399      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16400	   echo ' yes '
16401	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16402	:
16403      else
16404	can_build_shared=no
16405      fi
16406      ;;
16407    esac
16408    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16409    # soname into executable. Probably we can add versioning support to
16410    # collect2, so additional links can be useful in future.
16411    if test "$aix_use_runtimelinking" = yes; then
16412      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16413      # instead of lib<name>.a to let people know that these are not
16414      # typical AIX shared libraries.
16415      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16416    else
16417      # We preserve .a as extension for shared libraries through AIX4.2
16418      # and later when we are not doing run time linking.
16419      library_names_spec='${libname}${release}.a $libname.a'
16420      soname_spec='${libname}${release}${shared_ext}$major'
16421    fi
16422    shlibpath_var=LIBPATH
16423  fi
16424  ;;
16425
16426amigaos*)
16427  library_names_spec='$libname.ixlibrary $libname.a'
16428  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16429  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'
16430  ;;
16431
16432beos*)
16433  library_names_spec='${libname}${shared_ext}'
16434  dynamic_linker="$host_os ld.so"
16435  shlibpath_var=LIBRARY_PATH
16436  ;;
16437
16438bsdi4*)
16439  version_type=linux
16440  need_version=no
16441  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16442  soname_spec='${libname}${release}${shared_ext}$major'
16443  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16444  shlibpath_var=LD_LIBRARY_PATH
16445  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16446  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16447  # the default ld.so.conf also contains /usr/contrib/lib and
16448  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16449  # libtool to hard-code these into programs
16450  ;;
16451
16452cygwin* | mingw* | pw32*)
16453  version_type=windows
16454  shrext=".dll"
16455  need_version=no
16456  need_lib_prefix=no
16457
16458  case $GCC,$host_os in
16459  yes,cygwin* | yes,mingw* | yes,pw32*)
16460    library_names_spec='$libname.dll.a'
16461    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16462    postinstall_cmds='base_file=`basename \${file}`~
16463      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16464      dldir=$destdir/`dirname \$dlpath`~
16465      test -d \$dldir || mkdir -p \$dldir~
16466      $install_prog $dir/$dlname \$dldir/$dlname'
16467    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16468      dlpath=$dir/\$dldll~
16469       $rm \$dlpath'
16470    shlibpath_overrides_runpath=yes
16471
16472    case $host_os in
16473    cygwin*)
16474      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16475      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16476      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16477      ;;
16478    mingw*)
16479      # MinGW DLLs use traditional 'lib' prefix
16480      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16481      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16482      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16483        # It is most probably a Windows format PATH printed by
16484        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16485        # path with ; separators, and with drive letters. We can handle the
16486        # drive letters (cygwin fileutils understands them), so leave them,
16487        # especially as we might pass files found there to a mingw objdump,
16488        # which wouldn't understand a cygwinified path. Ahh.
16489        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16490      else
16491        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16492      fi
16493      ;;
16494    pw32*)
16495      # pw32 DLLs use 'pw' prefix rather than 'lib'
16496      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16497      ;;
16498    esac
16499    ;;
16500
16501  *)
16502    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16503    ;;
16504  esac
16505  dynamic_linker='Win32 ld.exe'
16506  # FIXME: first we should search . and the directory the executable is in
16507  shlibpath_var=PATH
16508  ;;
16509
16510darwin* | rhapsody*)
16511  dynamic_linker="$host_os dyld"
16512  version_type=darwin
16513  need_lib_prefix=no
16514  need_version=no
16515  # FIXME: Relying on posixy $() will cause problems for
16516  #        cross-compilation, but unfortunately the echo tests do not
16517  #        yet detect zsh echo's removal of \ escapes.
16518  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16519  soname_spec='${libname}${release}${major}$shared_ext'
16520  shlibpath_overrides_runpath=yes
16521  shlibpath_var=DYLD_LIBRARY_PATH
16522  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16523  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16524  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16525  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"`
16526  fi
16527  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16528  ;;
16529
16530dgux*)
16531  version_type=linux
16532  need_lib_prefix=no
16533  need_version=no
16534  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16535  soname_spec='${libname}${release}${shared_ext}$major'
16536  shlibpath_var=LD_LIBRARY_PATH
16537  ;;
16538
16539freebsd1*)
16540  dynamic_linker=no
16541  ;;
16542
16543freebsd*)
16544  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16545  version_type=freebsd-$objformat
16546  case $version_type in
16547    freebsd-elf*)
16548      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16549      need_version=no
16550      need_lib_prefix=no
16551      ;;
16552    freebsd-*)
16553      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16554      need_version=yes
16555      ;;
16556  esac
16557  shlibpath_var=LD_LIBRARY_PATH
16558  case $host_os in
16559  freebsd2*)
16560    shlibpath_overrides_runpath=yes
16561    ;;
16562  freebsd3.01* | freebsdelf3.01*)
16563    shlibpath_overrides_runpath=yes
16564    hardcode_into_libs=yes
16565    ;;
16566  *) # from 3.2 on
16567    shlibpath_overrides_runpath=no
16568    hardcode_into_libs=yes
16569    ;;
16570  esac
16571  ;;
16572
16573gnu*)
16574  version_type=linux
16575  need_lib_prefix=no
16576  need_version=no
16577  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16578  soname_spec='${libname}${release}${shared_ext}$major'
16579  shlibpath_var=LD_LIBRARY_PATH
16580  hardcode_into_libs=yes
16581  ;;
16582
16583hpux9* | hpux10* | hpux11*)
16584  # Give a soname corresponding to the major version so that dld.sl refuses to
16585  # link against other versions.
16586  version_type=sunos
16587  need_lib_prefix=no
16588  need_version=no
16589  case "$host_cpu" in
16590  ia64*)
16591    shrext='.so'
16592    hardcode_into_libs=yes
16593    dynamic_linker="$host_os dld.so"
16594    shlibpath_var=LD_LIBRARY_PATH
16595    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16596    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16597    soname_spec='${libname}${release}${shared_ext}$major'
16598    if test "X$HPUX_IA64_MODE" = X32; then
16599      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16600    else
16601      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16602    fi
16603    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16604    ;;
16605   hppa*64*)
16606     shrext='.sl'
16607     hardcode_into_libs=yes
16608     dynamic_linker="$host_os dld.sl"
16609     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16610     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16611     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16612     soname_spec='${libname}${release}${shared_ext}$major'
16613     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16614     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16615     ;;
16616   *)
16617    shrext='.sl'
16618    dynamic_linker="$host_os dld.sl"
16619    shlibpath_var=SHLIB_PATH
16620    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16621    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16622    soname_spec='${libname}${release}${shared_ext}$major'
16623    ;;
16624  esac
16625  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16626  postinstall_cmds='chmod 555 $lib'
16627  ;;
16628
16629irix5* | irix6* | nonstopux*)
16630  case $host_os in
16631    nonstopux*) version_type=nonstopux ;;
16632    *)
16633	if test "$lt_cv_prog_gnu_ld" = yes; then
16634		version_type=linux
16635	else
16636		version_type=irix
16637	fi ;;
16638  esac
16639  need_lib_prefix=no
16640  need_version=no
16641  soname_spec='${libname}${release}${shared_ext}$major'
16642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16643  case $host_os in
16644  irix5* | nonstopux*)
16645    libsuff= shlibsuff=
16646    ;;
16647  *)
16648    case $LD in # libtool.m4 will add one of these switches to LD
16649    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16650      libsuff= shlibsuff= libmagic=32-bit;;
16651    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16652      libsuff=32 shlibsuff=N32 libmagic=N32;;
16653    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16654      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16655    *) libsuff= shlibsuff= libmagic=never-match;;
16656    esac
16657    ;;
16658  esac
16659  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16660  shlibpath_overrides_runpath=no
16661  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16662  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16663  hardcode_into_libs=yes
16664  ;;
16665
16666# No shared lib support for Linux oldld, aout, or coff.
16667linux*oldld* | linux*aout* | linux*coff*)
16668  dynamic_linker=no
16669  ;;
16670
16671# This must be Linux ELF.
16672linux*)
16673  version_type=linux
16674  need_lib_prefix=no
16675  need_version=no
16676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16677  soname_spec='${libname}${release}${shared_ext}$major'
16678  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16679  shlibpath_var=LD_LIBRARY_PATH
16680  shlibpath_overrides_runpath=no
16681  # This implies no fast_install, which is unacceptable.
16682  # Some rework will be needed to allow for fast_install
16683  # before this can be enabled.
16684  hardcode_into_libs=yes
16685
16686  # We used to test for /lib/ld.so.1 and disable shared libraries on
16687  # powerpc, because MkLinux only supported shared libraries with the
16688  # GNU dynamic linker.  Since this was broken with cross compilers,
16689  # most powerpc-linux boxes support dynamic linking these days and
16690  # people can always --disable-shared, the test was removed, and we
16691  # assume the GNU/Linux dynamic linker is in use.
16692  dynamic_linker='GNU/Linux ld.so'
16693  ;;
16694
16695netbsd*)
16696  version_type=sunos
16697  need_lib_prefix=no
16698  need_version=no
16699  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16700    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16701    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16702    dynamic_linker='NetBSD (a.out) ld.so'
16703  else
16704    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16705    soname_spec='${libname}${release}${shared_ext}$major'
16706    dynamic_linker='NetBSD ld.elf_so'
16707  fi
16708  shlibpath_var=LD_LIBRARY_PATH
16709  shlibpath_overrides_runpath=yes
16710  hardcode_into_libs=yes
16711  ;;
16712
16713newsos6)
16714  version_type=linux
16715  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16716  shlibpath_var=LD_LIBRARY_PATH
16717  shlibpath_overrides_runpath=yes
16718  ;;
16719
16720nto-qnx)
16721  version_type=linux
16722  need_lib_prefix=no
16723  need_version=no
16724  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16725  soname_spec='${libname}${release}${shared_ext}$major'
16726  shlibpath_var=LD_LIBRARY_PATH
16727  shlibpath_overrides_runpath=yes
16728  ;;
16729
16730openbsd*)
16731  version_type=sunos
16732  need_lib_prefix=no
16733  need_version=no
16734  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16735  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16736  shlibpath_var=LD_LIBRARY_PATH
16737  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16738    case $host_os in
16739      openbsd2.[89] | openbsd2.[89].*)
16740	shlibpath_overrides_runpath=no
16741	;;
16742      *)
16743	shlibpath_overrides_runpath=yes
16744	;;
16745      esac
16746  else
16747    shlibpath_overrides_runpath=yes
16748  fi
16749  ;;
16750
16751os2*)
16752  libname_spec='$name'
16753  shrext=".dll"
16754  need_lib_prefix=no
16755  library_names_spec='$libname${shared_ext} $libname.a'
16756  dynamic_linker='OS/2 ld.exe'
16757  shlibpath_var=LIBPATH
16758  ;;
16759
16760osf3* | osf4* | osf5*)
16761  version_type=osf
16762  need_lib_prefix=no
16763  need_version=no
16764  soname_spec='${libname}${release}${shared_ext}$major'
16765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16766  shlibpath_var=LD_LIBRARY_PATH
16767  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16768  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16769  ;;
16770
16771sco3.2v5*)
16772  version_type=osf
16773  soname_spec='${libname}${release}${shared_ext}$major'
16774  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16775  shlibpath_var=LD_LIBRARY_PATH
16776  ;;
16777
16778solaris*)
16779  version_type=linux
16780  need_lib_prefix=no
16781  need_version=no
16782  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16783  soname_spec='${libname}${release}${shared_ext}$major'
16784  shlibpath_var=LD_LIBRARY_PATH
16785  shlibpath_overrides_runpath=yes
16786  hardcode_into_libs=yes
16787  # ldd complains unless libraries are executable
16788  postinstall_cmds='chmod +x $lib'
16789  ;;
16790
16791sunos4*)
16792  version_type=sunos
16793  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16794  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16795  shlibpath_var=LD_LIBRARY_PATH
16796  shlibpath_overrides_runpath=yes
16797  if test "$with_gnu_ld" = yes; then
16798    need_lib_prefix=no
16799  fi
16800  need_version=yes
16801  ;;
16802
16803sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16804  version_type=linux
16805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16806  soname_spec='${libname}${release}${shared_ext}$major'
16807  shlibpath_var=LD_LIBRARY_PATH
16808  case $host_vendor in
16809    sni)
16810      shlibpath_overrides_runpath=no
16811      need_lib_prefix=no
16812      export_dynamic_flag_spec='${wl}-Blargedynsym'
16813      runpath_var=LD_RUN_PATH
16814      ;;
16815    siemens)
16816      need_lib_prefix=no
16817      ;;
16818    motorola)
16819      need_lib_prefix=no
16820      need_version=no
16821      shlibpath_overrides_runpath=no
16822      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16823      ;;
16824  esac
16825  ;;
16826
16827sysv4*MP*)
16828  if test -d /usr/nec ;then
16829    version_type=linux
16830    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16831    soname_spec='$libname${shared_ext}.$major'
16832    shlibpath_var=LD_LIBRARY_PATH
16833  fi
16834  ;;
16835
16836uts4*)
16837  version_type=linux
16838  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16839  soname_spec='${libname}${release}${shared_ext}$major'
16840  shlibpath_var=LD_LIBRARY_PATH
16841  ;;
16842
16843*)
16844  dynamic_linker=no
16845  ;;
16846esac
16847echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16848echo "${ECHO_T}$dynamic_linker" >&6
16849test "$dynamic_linker" = no && can_build_shared=no
16850
16851if test "x$enable_dlopen" != xyes; then
16852  enable_dlopen=unknown
16853  enable_dlopen_self=unknown
16854  enable_dlopen_self_static=unknown
16855else
16856  lt_cv_dlopen=no
16857  lt_cv_dlopen_libs=
16858
16859  case $host_os in
16860  beos*)
16861    lt_cv_dlopen="load_add_on"
16862    lt_cv_dlopen_libs=
16863    lt_cv_dlopen_self=yes
16864    ;;
16865
16866  mingw* | pw32*)
16867    lt_cv_dlopen="LoadLibrary"
16868    lt_cv_dlopen_libs=
16869   ;;
16870
16871  cygwin*)
16872    lt_cv_dlopen="dlopen"
16873    lt_cv_dlopen_libs=
16874   ;;
16875
16876  darwin*)
16877  # if libdl is installed we need to link against it
16878    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16879echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16880if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16881  echo $ECHO_N "(cached) $ECHO_C" >&6
16882else
16883  ac_check_lib_save_LIBS=$LIBS
16884LIBS="-ldl  $LIBS"
16885cat >conftest.$ac_ext <<_ACEOF
16886#line $LINENO "configure"
16887/* confdefs.h.  */
16888_ACEOF
16889cat confdefs.h >>conftest.$ac_ext
16890cat >>conftest.$ac_ext <<_ACEOF
16891/* end confdefs.h.  */
16892
16893/* Override any gcc2 internal prototype to avoid an error.  */
16894#ifdef __cplusplus
16895extern "C"
16896#endif
16897/* We use char because int might match the return type of a gcc2
16898   builtin and then its argument prototype would still apply.  */
16899char dlopen ();
16900int
16901main ()
16902{
16903dlopen ();
16904  ;
16905  return 0;
16906}
16907_ACEOF
16908rm -f conftest.$ac_objext conftest$ac_exeext
16909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16910  (eval $ac_link) 2>&5
16911  ac_status=$?
16912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913  (exit $ac_status); } &&
16914         { ac_try='test -s conftest$ac_exeext'
16915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916  (eval $ac_try) 2>&5
16917  ac_status=$?
16918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919  (exit $ac_status); }; }; then
16920  ac_cv_lib_dl_dlopen=yes
16921else
16922  echo "$as_me: failed program was:" >&5
16923sed 's/^/| /' conftest.$ac_ext >&5
16924
16925ac_cv_lib_dl_dlopen=no
16926fi
16927rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16928LIBS=$ac_check_lib_save_LIBS
16929fi
16930echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16931echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16932if test $ac_cv_lib_dl_dlopen = yes; then
16933  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16934else
16935
16936    lt_cv_dlopen="dyld"
16937    lt_cv_dlopen_libs=
16938    lt_cv_dlopen_self=yes
16939
16940fi
16941
16942   ;;
16943
16944  *)
16945    echo "$as_me:$LINENO: checking for shl_load" >&5
16946echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16947if test "${ac_cv_func_shl_load+set}" = set; then
16948  echo $ECHO_N "(cached) $ECHO_C" >&6
16949else
16950  cat >conftest.$ac_ext <<_ACEOF
16951#line $LINENO "configure"
16952/* confdefs.h.  */
16953_ACEOF
16954cat confdefs.h >>conftest.$ac_ext
16955cat >>conftest.$ac_ext <<_ACEOF
16956/* end confdefs.h.  */
16957/* System header to define __stub macros and hopefully few prototypes,
16958    which can conflict with char shl_load (); below.
16959    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16960    <limits.h> exists even on freestanding compilers.  */
16961#ifdef __STDC__
16962# include <limits.h>
16963#else
16964# include <assert.h>
16965#endif
16966/* Override any gcc2 internal prototype to avoid an error.  */
16967#ifdef __cplusplus
16968extern "C"
16969{
16970#endif
16971/* We use char because int might match the return type of a gcc2
16972   builtin and then its argument prototype would still apply.  */
16973char shl_load ();
16974/* The GNU C library defines this for functions which it implements
16975    to always fail with ENOSYS.  Some functions are actually named
16976    something starting with __ and the normal name is an alias.  */
16977#if defined (__stub_shl_load) || defined (__stub___shl_load)
16978choke me
16979#else
16980char (*f) () = shl_load;
16981#endif
16982#ifdef __cplusplus
16983}
16984#endif
16985
16986int
16987main ()
16988{
16989return f != shl_load;
16990  ;
16991  return 0;
16992}
16993_ACEOF
16994rm -f conftest.$ac_objext conftest$ac_exeext
16995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16996  (eval $ac_link) 2>&5
16997  ac_status=$?
16998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999  (exit $ac_status); } &&
17000         { ac_try='test -s conftest$ac_exeext'
17001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002  (eval $ac_try) 2>&5
17003  ac_status=$?
17004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005  (exit $ac_status); }; }; then
17006  ac_cv_func_shl_load=yes
17007else
17008  echo "$as_me: failed program was:" >&5
17009sed 's/^/| /' conftest.$ac_ext >&5
17010
17011ac_cv_func_shl_load=no
17012fi
17013rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17014fi
17015echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17016echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17017if test $ac_cv_func_shl_load = yes; then
17018  lt_cv_dlopen="shl_load"
17019else
17020  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17021echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17022if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17023  echo $ECHO_N "(cached) $ECHO_C" >&6
17024else
17025  ac_check_lib_save_LIBS=$LIBS
17026LIBS="-ldld  $LIBS"
17027cat >conftest.$ac_ext <<_ACEOF
17028#line $LINENO "configure"
17029/* confdefs.h.  */
17030_ACEOF
17031cat confdefs.h >>conftest.$ac_ext
17032cat >>conftest.$ac_ext <<_ACEOF
17033/* end confdefs.h.  */
17034
17035/* Override any gcc2 internal prototype to avoid an error.  */
17036#ifdef __cplusplus
17037extern "C"
17038#endif
17039/* We use char because int might match the return type of a gcc2
17040   builtin and then its argument prototype would still apply.  */
17041char shl_load ();
17042int
17043main ()
17044{
17045shl_load ();
17046  ;
17047  return 0;
17048}
17049_ACEOF
17050rm -f conftest.$ac_objext conftest$ac_exeext
17051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17052  (eval $ac_link) 2>&5
17053  ac_status=$?
17054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055  (exit $ac_status); } &&
17056         { ac_try='test -s conftest$ac_exeext'
17057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058  (eval $ac_try) 2>&5
17059  ac_status=$?
17060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061  (exit $ac_status); }; }; then
17062  ac_cv_lib_dld_shl_load=yes
17063else
17064  echo "$as_me: failed program was:" >&5
17065sed 's/^/| /' conftest.$ac_ext >&5
17066
17067ac_cv_lib_dld_shl_load=no
17068fi
17069rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17070LIBS=$ac_check_lib_save_LIBS
17071fi
17072echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17073echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17074if test $ac_cv_lib_dld_shl_load = yes; then
17075  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17076else
17077  echo "$as_me:$LINENO: checking for dlopen" >&5
17078echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17079if test "${ac_cv_func_dlopen+set}" = set; then
17080  echo $ECHO_N "(cached) $ECHO_C" >&6
17081else
17082  cat >conftest.$ac_ext <<_ACEOF
17083#line $LINENO "configure"
17084/* confdefs.h.  */
17085_ACEOF
17086cat confdefs.h >>conftest.$ac_ext
17087cat >>conftest.$ac_ext <<_ACEOF
17088/* end confdefs.h.  */
17089/* System header to define __stub macros and hopefully few prototypes,
17090    which can conflict with char dlopen (); below.
17091    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17092    <limits.h> exists even on freestanding compilers.  */
17093#ifdef __STDC__
17094# include <limits.h>
17095#else
17096# include <assert.h>
17097#endif
17098/* Override any gcc2 internal prototype to avoid an error.  */
17099#ifdef __cplusplus
17100extern "C"
17101{
17102#endif
17103/* We use char because int might match the return type of a gcc2
17104   builtin and then its argument prototype would still apply.  */
17105char dlopen ();
17106/* The GNU C library defines this for functions which it implements
17107    to always fail with ENOSYS.  Some functions are actually named
17108    something starting with __ and the normal name is an alias.  */
17109#if defined (__stub_dlopen) || defined (__stub___dlopen)
17110choke me
17111#else
17112char (*f) () = dlopen;
17113#endif
17114#ifdef __cplusplus
17115}
17116#endif
17117
17118int
17119main ()
17120{
17121return f != dlopen;
17122  ;
17123  return 0;
17124}
17125_ACEOF
17126rm -f conftest.$ac_objext conftest$ac_exeext
17127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17128  (eval $ac_link) 2>&5
17129  ac_status=$?
17130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131  (exit $ac_status); } &&
17132         { ac_try='test -s conftest$ac_exeext'
17133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17134  (eval $ac_try) 2>&5
17135  ac_status=$?
17136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137  (exit $ac_status); }; }; then
17138  ac_cv_func_dlopen=yes
17139else
17140  echo "$as_me: failed program was:" >&5
17141sed 's/^/| /' conftest.$ac_ext >&5
17142
17143ac_cv_func_dlopen=no
17144fi
17145rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17146fi
17147echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17148echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17149if test $ac_cv_func_dlopen = yes; then
17150  lt_cv_dlopen="dlopen"
17151else
17152  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17153echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17154if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17155  echo $ECHO_N "(cached) $ECHO_C" >&6
17156else
17157  ac_check_lib_save_LIBS=$LIBS
17158LIBS="-ldl  $LIBS"
17159cat >conftest.$ac_ext <<_ACEOF
17160#line $LINENO "configure"
17161/* confdefs.h.  */
17162_ACEOF
17163cat confdefs.h >>conftest.$ac_ext
17164cat >>conftest.$ac_ext <<_ACEOF
17165/* end confdefs.h.  */
17166
17167/* Override any gcc2 internal prototype to avoid an error.  */
17168#ifdef __cplusplus
17169extern "C"
17170#endif
17171/* We use char because int might match the return type of a gcc2
17172   builtin and then its argument prototype would still apply.  */
17173char dlopen ();
17174int
17175main ()
17176{
17177dlopen ();
17178  ;
17179  return 0;
17180}
17181_ACEOF
17182rm -f conftest.$ac_objext conftest$ac_exeext
17183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17184  (eval $ac_link) 2>&5
17185  ac_status=$?
17186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187  (exit $ac_status); } &&
17188         { ac_try='test -s conftest$ac_exeext'
17189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190  (eval $ac_try) 2>&5
17191  ac_status=$?
17192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193  (exit $ac_status); }; }; then
17194  ac_cv_lib_dl_dlopen=yes
17195else
17196  echo "$as_me: failed program was:" >&5
17197sed 's/^/| /' conftest.$ac_ext >&5
17198
17199ac_cv_lib_dl_dlopen=no
17200fi
17201rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17202LIBS=$ac_check_lib_save_LIBS
17203fi
17204echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17205echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17206if test $ac_cv_lib_dl_dlopen = yes; then
17207  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17208else
17209  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17210echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17211if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17212  echo $ECHO_N "(cached) $ECHO_C" >&6
17213else
17214  ac_check_lib_save_LIBS=$LIBS
17215LIBS="-lsvld  $LIBS"
17216cat >conftest.$ac_ext <<_ACEOF
17217#line $LINENO "configure"
17218/* confdefs.h.  */
17219_ACEOF
17220cat confdefs.h >>conftest.$ac_ext
17221cat >>conftest.$ac_ext <<_ACEOF
17222/* end confdefs.h.  */
17223
17224/* Override any gcc2 internal prototype to avoid an error.  */
17225#ifdef __cplusplus
17226extern "C"
17227#endif
17228/* We use char because int might match the return type of a gcc2
17229   builtin and then its argument prototype would still apply.  */
17230char dlopen ();
17231int
17232main ()
17233{
17234dlopen ();
17235  ;
17236  return 0;
17237}
17238_ACEOF
17239rm -f conftest.$ac_objext conftest$ac_exeext
17240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17241  (eval $ac_link) 2>&5
17242  ac_status=$?
17243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244  (exit $ac_status); } &&
17245         { ac_try='test -s conftest$ac_exeext'
17246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17247  (eval $ac_try) 2>&5
17248  ac_status=$?
17249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250  (exit $ac_status); }; }; then
17251  ac_cv_lib_svld_dlopen=yes
17252else
17253  echo "$as_me: failed program was:" >&5
17254sed 's/^/| /' conftest.$ac_ext >&5
17255
17256ac_cv_lib_svld_dlopen=no
17257fi
17258rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17259LIBS=$ac_check_lib_save_LIBS
17260fi
17261echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17262echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17263if test $ac_cv_lib_svld_dlopen = yes; then
17264  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17265else
17266  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17267echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17268if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17269  echo $ECHO_N "(cached) $ECHO_C" >&6
17270else
17271  ac_check_lib_save_LIBS=$LIBS
17272LIBS="-ldld  $LIBS"
17273cat >conftest.$ac_ext <<_ACEOF
17274#line $LINENO "configure"
17275/* confdefs.h.  */
17276_ACEOF
17277cat confdefs.h >>conftest.$ac_ext
17278cat >>conftest.$ac_ext <<_ACEOF
17279/* end confdefs.h.  */
17280
17281/* Override any gcc2 internal prototype to avoid an error.  */
17282#ifdef __cplusplus
17283extern "C"
17284#endif
17285/* We use char because int might match the return type of a gcc2
17286   builtin and then its argument prototype would still apply.  */
17287char dld_link ();
17288int
17289main ()
17290{
17291dld_link ();
17292  ;
17293  return 0;
17294}
17295_ACEOF
17296rm -f conftest.$ac_objext conftest$ac_exeext
17297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17298  (eval $ac_link) 2>&5
17299  ac_status=$?
17300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301  (exit $ac_status); } &&
17302         { ac_try='test -s conftest$ac_exeext'
17303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304  (eval $ac_try) 2>&5
17305  ac_status=$?
17306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307  (exit $ac_status); }; }; then
17308  ac_cv_lib_dld_dld_link=yes
17309else
17310  echo "$as_me: failed program was:" >&5
17311sed 's/^/| /' conftest.$ac_ext >&5
17312
17313ac_cv_lib_dld_dld_link=no
17314fi
17315rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17316LIBS=$ac_check_lib_save_LIBS
17317fi
17318echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17319echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17320if test $ac_cv_lib_dld_dld_link = yes; then
17321  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17322fi
17323
17324
17325fi
17326
17327
17328fi
17329
17330
17331fi
17332
17333
17334fi
17335
17336
17337fi
17338
17339    ;;
17340  esac
17341
17342  if test "x$lt_cv_dlopen" != xno; then
17343    enable_dlopen=yes
17344  else
17345    enable_dlopen=no
17346  fi
17347
17348  case $lt_cv_dlopen in
17349  dlopen)
17350    save_CPPFLAGS="$CPPFLAGS"
17351    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17352
17353    save_LDFLAGS="$LDFLAGS"
17354    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17355
17356    save_LIBS="$LIBS"
17357    LIBS="$lt_cv_dlopen_libs $LIBS"
17358
17359    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17360echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17361if test "${lt_cv_dlopen_self+set}" = set; then
17362  echo $ECHO_N "(cached) $ECHO_C" >&6
17363else
17364  	  if test "$cross_compiling" = yes; then :
17365  lt_cv_dlopen_self=cross
17366else
17367  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17368  lt_status=$lt_dlunknown
17369  cat > conftest.$ac_ext <<EOF
17370#line 17370 "configure"
17371#include "confdefs.h"
17372
17373#if HAVE_DLFCN_H
17374#include <dlfcn.h>
17375#endif
17376
17377#include <stdio.h>
17378
17379#ifdef RTLD_GLOBAL
17380#  define LT_DLGLOBAL		RTLD_GLOBAL
17381#else
17382#  ifdef DL_GLOBAL
17383#    define LT_DLGLOBAL		DL_GLOBAL
17384#  else
17385#    define LT_DLGLOBAL		0
17386#  endif
17387#endif
17388
17389/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17390   find out it does not work in some platform. */
17391#ifndef LT_DLLAZY_OR_NOW
17392#  ifdef RTLD_LAZY
17393#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17394#  else
17395#    ifdef DL_LAZY
17396#      define LT_DLLAZY_OR_NOW		DL_LAZY
17397#    else
17398#      ifdef RTLD_NOW
17399#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17400#      else
17401#        ifdef DL_NOW
17402#          define LT_DLLAZY_OR_NOW	DL_NOW
17403#        else
17404#          define LT_DLLAZY_OR_NOW	0
17405#        endif
17406#      endif
17407#    endif
17408#  endif
17409#endif
17410
17411#ifdef __cplusplus
17412extern "C" void exit (int);
17413#endif
17414
17415void fnord() { int i=42;}
17416int main ()
17417{
17418  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17419  int status = $lt_dlunknown;
17420
17421  if (self)
17422    {
17423      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17424      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17425      /* dlclose (self); */
17426    }
17427
17428    exit (status);
17429}
17430EOF
17431  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17432  (eval $ac_link) 2>&5
17433  ac_status=$?
17434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17436    (./conftest; exit; ) 2>/dev/null
17437    lt_status=$?
17438    case x$lt_status in
17439      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17440      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17441      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17442    esac
17443  else :
17444    # compilation failed
17445    lt_cv_dlopen_self=no
17446  fi
17447fi
17448rm -fr conftest*
17449
17450
17451fi
17452echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17453echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17454
17455    if test "x$lt_cv_dlopen_self" = xyes; then
17456      LDFLAGS="$LDFLAGS $link_static_flag"
17457      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17458echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17459if test "${lt_cv_dlopen_self_static+set}" = set; then
17460  echo $ECHO_N "(cached) $ECHO_C" >&6
17461else
17462  	  if test "$cross_compiling" = yes; then :
17463  lt_cv_dlopen_self_static=cross
17464else
17465  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17466  lt_status=$lt_dlunknown
17467  cat > conftest.$ac_ext <<EOF
17468#line 17468 "configure"
17469#include "confdefs.h"
17470
17471#if HAVE_DLFCN_H
17472#include <dlfcn.h>
17473#endif
17474
17475#include <stdio.h>
17476
17477#ifdef RTLD_GLOBAL
17478#  define LT_DLGLOBAL		RTLD_GLOBAL
17479#else
17480#  ifdef DL_GLOBAL
17481#    define LT_DLGLOBAL		DL_GLOBAL
17482#  else
17483#    define LT_DLGLOBAL		0
17484#  endif
17485#endif
17486
17487/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17488   find out it does not work in some platform. */
17489#ifndef LT_DLLAZY_OR_NOW
17490#  ifdef RTLD_LAZY
17491#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17492#  else
17493#    ifdef DL_LAZY
17494#      define LT_DLLAZY_OR_NOW		DL_LAZY
17495#    else
17496#      ifdef RTLD_NOW
17497#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17498#      else
17499#        ifdef DL_NOW
17500#          define LT_DLLAZY_OR_NOW	DL_NOW
17501#        else
17502#          define LT_DLLAZY_OR_NOW	0
17503#        endif
17504#      endif
17505#    endif
17506#  endif
17507#endif
17508
17509#ifdef __cplusplus
17510extern "C" void exit (int);
17511#endif
17512
17513void fnord() { int i=42;}
17514int main ()
17515{
17516  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17517  int status = $lt_dlunknown;
17518
17519  if (self)
17520    {
17521      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17522      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17523      /* dlclose (self); */
17524    }
17525
17526    exit (status);
17527}
17528EOF
17529  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17530  (eval $ac_link) 2>&5
17531  ac_status=$?
17532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17534    (./conftest; exit; ) 2>/dev/null
17535    lt_status=$?
17536    case x$lt_status in
17537      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17538      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17539      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17540    esac
17541  else :
17542    # compilation failed
17543    lt_cv_dlopen_self_static=no
17544  fi
17545fi
17546rm -fr conftest*
17547
17548
17549fi
17550echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17551echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17552    fi
17553
17554    CPPFLAGS="$save_CPPFLAGS"
17555    LDFLAGS="$save_LDFLAGS"
17556    LIBS="$save_LIBS"
17557    ;;
17558  esac
17559
17560  case $lt_cv_dlopen_self in
17561  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17562  *) enable_dlopen_self=unknown ;;
17563  esac
17564
17565  case $lt_cv_dlopen_self_static in
17566  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17567  *) enable_dlopen_self_static=unknown ;;
17568  esac
17569fi
17570
17571
17572# The else clause should only fire when bootstrapping the
17573# libtool distribution, otherwise you forgot to ship ltmain.sh
17574# with your package, and you will get complaints that there are
17575# no rules to generate ltmain.sh.
17576if test -f "$ltmain"; then
17577  # See if we are running on zsh, and set the options which allow our commands through
17578  # without removal of \ escapes.
17579  if test -n "${ZSH_VERSION+set}" ; then
17580    setopt NO_GLOB_SUBST
17581  fi
17582  # Now quote all the things that may contain metacharacters while being
17583  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17584  # variables and quote the copies for generation of the libtool script.
17585  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17586    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17587    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17588    deplibs_check_method reload_flag reload_cmds need_locks \
17589    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17590    lt_cv_sys_global_symbol_to_c_name_address \
17591    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17592    old_postinstall_cmds old_postuninstall_cmds \
17593    compiler_GCJ \
17594    CC_GCJ \
17595    LD_GCJ \
17596    lt_prog_compiler_wl_GCJ \
17597    lt_prog_compiler_pic_GCJ \
17598    lt_prog_compiler_static_GCJ \
17599    lt_prog_compiler_no_builtin_flag_GCJ \
17600    export_dynamic_flag_spec_GCJ \
17601    thread_safe_flag_spec_GCJ \
17602    whole_archive_flag_spec_GCJ \
17603    enable_shared_with_static_runtimes_GCJ \
17604    old_archive_cmds_GCJ \
17605    old_archive_from_new_cmds_GCJ \
17606    predep_objects_GCJ \
17607    postdep_objects_GCJ \
17608    predeps_GCJ \
17609    postdeps_GCJ \
17610    compiler_lib_search_path_GCJ \
17611    archive_cmds_GCJ \
17612    archive_expsym_cmds_GCJ \
17613    postinstall_cmds_GCJ \
17614    postuninstall_cmds_GCJ \
17615    old_archive_from_expsyms_cmds_GCJ \
17616    allow_undefined_flag_GCJ \
17617    no_undefined_flag_GCJ \
17618    export_symbols_cmds_GCJ \
17619    hardcode_libdir_flag_spec_GCJ \
17620    hardcode_libdir_flag_spec_ld_GCJ \
17621    hardcode_libdir_separator_GCJ \
17622    hardcode_automatic_GCJ \
17623    module_cmds_GCJ \
17624    module_expsym_cmds_GCJ \
17625    lt_cv_prog_compiler_c_o_GCJ \
17626    exclude_expsyms_GCJ \
17627    include_expsyms_GCJ; do
17628
17629    case $var in
17630    old_archive_cmds_GCJ | \
17631    old_archive_from_new_cmds_GCJ | \
17632    archive_cmds_GCJ | \
17633    archive_expsym_cmds_GCJ | \
17634    module_cmds_GCJ | \
17635    module_expsym_cmds_GCJ | \
17636    old_archive_from_expsyms_cmds_GCJ | \
17637    export_symbols_cmds_GCJ | \
17638    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17639    postinstall_cmds | postuninstall_cmds | \
17640    old_postinstall_cmds | old_postuninstall_cmds | \
17641    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17642      # Double-quote double-evaled strings.
17643      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17644      ;;
17645    *)
17646      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17647      ;;
17648    esac
17649  done
17650
17651  case $lt_echo in
17652  *'\$0 --fallback-echo"')
17653    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17654    ;;
17655  esac
17656
17657cfgfile="$ofile"
17658
17659  cat <<__EOF__ >> "$cfgfile"
17660# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17661
17662# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17663
17664# Shell to use when invoking shell scripts.
17665SHELL=$lt_SHELL
17666
17667# Whether or not to build shared libraries.
17668build_libtool_libs=$enable_shared
17669
17670# Whether or not to build static libraries.
17671build_old_libs=$enable_static
17672
17673# Whether or not to add -lc for building shared libraries.
17674build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17675
17676# Whether or not to disallow shared libs when runtime libs are static
17677allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17678
17679# Whether or not to optimize for fast installation.
17680fast_install=$enable_fast_install
17681
17682# The host system.
17683host_alias=$host_alias
17684host=$host
17685
17686# An echo program that does not interpret backslashes.
17687echo=$lt_echo
17688
17689# The archiver.
17690AR=$lt_AR
17691AR_FLAGS=$lt_AR_FLAGS
17692
17693# A C compiler.
17694LTCC=$lt_LTCC
17695
17696# A language-specific compiler.
17697CC=$lt_compiler_GCJ
17698
17699# Is the compiler the GNU C compiler?
17700with_gcc=$GCC_GCJ
17701
17702# An ERE matcher.
17703EGREP=$lt_EGREP
17704
17705# The linker used to build libraries.
17706LD=$lt_LD_GCJ
17707
17708# Whether we need hard or soft links.
17709LN_S=$lt_LN_S
17710
17711# A BSD-compatible nm program.
17712NM=$lt_NM
17713
17714# A symbol stripping program
17715STRIP=$STRIP
17716
17717# Used to examine libraries when file_magic_cmd begins "file"
17718MAGIC_CMD=$MAGIC_CMD
17719
17720# Used on cygwin: DLL creation program.
17721DLLTOOL="$DLLTOOL"
17722
17723# Used on cygwin: object dumper.
17724OBJDUMP="$OBJDUMP"
17725
17726# Used on cygwin: assembler.
17727AS="$AS"
17728
17729# The name of the directory that contains temporary libtool files.
17730objdir=$objdir
17731
17732# How to create reloadable object files.
17733reload_flag=$lt_reload_flag
17734reload_cmds=$lt_reload_cmds
17735
17736# How to pass a linker flag through the compiler.
17737wl=$lt_lt_prog_compiler_wl_GCJ
17738
17739# Object file suffix (normally "o").
17740objext="$ac_objext"
17741
17742# Old archive suffix (normally "a").
17743libext="$libext"
17744
17745# Shared library suffix (normally ".so").
17746shrext='$shrext'
17747
17748# Executable file suffix (normally "").
17749exeext="$exeext"
17750
17751# Additional compiler flags for building library objects.
17752pic_flag=$lt_lt_prog_compiler_pic_GCJ
17753pic_mode=$pic_mode
17754
17755# What is the maximum length of a command?
17756max_cmd_len=$lt_cv_sys_max_cmd_len
17757
17758# Does compiler simultaneously support -c and -o options?
17759compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17760
17761# Must we lock files when doing compilation ?
17762need_locks=$lt_need_locks
17763
17764# Do we need the lib prefix for modules?
17765need_lib_prefix=$need_lib_prefix
17766
17767# Do we need a version for libraries?
17768need_version=$need_version
17769
17770# Whether dlopen is supported.
17771dlopen_support=$enable_dlopen
17772
17773# Whether dlopen of programs is supported.
17774dlopen_self=$enable_dlopen_self
17775
17776# Whether dlopen of statically linked programs is supported.
17777dlopen_self_static=$enable_dlopen_self_static
17778
17779# Compiler flag to prevent dynamic linking.
17780link_static_flag=$lt_lt_prog_compiler_static_GCJ
17781
17782# Compiler flag to turn off builtin functions.
17783no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17784
17785# Compiler flag to allow reflexive dlopens.
17786export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17787
17788# Compiler flag to generate shared objects directly from archives.
17789whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17790
17791# Compiler flag to generate thread-safe objects.
17792thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17793
17794# Library versioning type.
17795version_type=$version_type
17796
17797# Format of library name prefix.
17798libname_spec=$lt_libname_spec
17799
17800# List of archive names.  First name is the real one, the rest are links.
17801# The last name is the one that the linker finds with -lNAME.
17802library_names_spec=$lt_library_names_spec
17803
17804# The coded name of the library, if different from the real name.
17805soname_spec=$lt_soname_spec
17806
17807# Commands used to build and install an old-style archive.
17808RANLIB=$lt_RANLIB
17809old_archive_cmds=$lt_old_archive_cmds_GCJ
17810old_postinstall_cmds=$lt_old_postinstall_cmds
17811old_postuninstall_cmds=$lt_old_postuninstall_cmds
17812
17813# Create an old-style archive from a shared archive.
17814old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17815
17816# Create a temporary old-style archive to link instead of a shared archive.
17817old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17818
17819# Commands used to build and install a shared archive.
17820archive_cmds=$lt_archive_cmds_GCJ
17821archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17822postinstall_cmds=$lt_postinstall_cmds
17823postuninstall_cmds=$lt_postuninstall_cmds
17824
17825# Commands used to build a loadable module (assumed same as above if empty)
17826module_cmds=$lt_module_cmds_GCJ
17827module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17828
17829# Commands to strip libraries.
17830old_striplib=$lt_old_striplib
17831striplib=$lt_striplib
17832
17833# Dependencies to place before the objects being linked to create a
17834# shared library.
17835predep_objects=$lt_predep_objects_GCJ
17836
17837# Dependencies to place after the objects being linked to create a
17838# shared library.
17839postdep_objects=$lt_postdep_objects_GCJ
17840
17841# Dependencies to place before the objects being linked to create a
17842# shared library.
17843predeps=$lt_predeps_GCJ
17844
17845# Dependencies to place after the objects being linked to create a
17846# shared library.
17847postdeps=$lt_postdeps_GCJ
17848
17849# The library search path used internally by the compiler when linking
17850# a shared library.
17851compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17852
17853# Method to check whether dependent libraries are shared objects.
17854deplibs_check_method=$lt_deplibs_check_method
17855
17856# Command to use when deplibs_check_method == file_magic.
17857file_magic_cmd=$lt_file_magic_cmd
17858
17859# Flag that allows shared libraries with undefined symbols to be built.
17860allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17861
17862# Flag that forces no undefined symbols.
17863no_undefined_flag=$lt_no_undefined_flag_GCJ
17864
17865# Commands used to finish a libtool library installation in a directory.
17866finish_cmds=$lt_finish_cmds
17867
17868# Same as above, but a single script fragment to be evaled but not shown.
17869finish_eval=$lt_finish_eval
17870
17871# Take the output of nm and produce a listing of raw symbols and C names.
17872global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17873
17874# Transform the output of nm in a proper C declaration
17875global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17876
17877# Transform the output of nm in a C name address pair
17878global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17879
17880# This is the shared library runtime path variable.
17881runpath_var=$runpath_var
17882
17883# This is the shared library path variable.
17884shlibpath_var=$shlibpath_var
17885
17886# Is shlibpath searched before the hard-coded library search path?
17887shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17888
17889# How to hardcode a shared library path into an executable.
17890hardcode_action=$hardcode_action_GCJ
17891
17892# Whether we should hardcode library paths into libraries.
17893hardcode_into_libs=$hardcode_into_libs
17894
17895# Flag to hardcode \$libdir into a binary during linking.
17896# This must work even if \$libdir does not exist.
17897hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17898
17899# If ld is used when linking, flag to hardcode \$libdir into
17900# a binary during linking. This must work even if \$libdir does
17901# not exist.
17902hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17903
17904# Whether we need a single -rpath flag with a separated argument.
17905hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17906
17907# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17908# resulting binary.
17909hardcode_direct=$hardcode_direct_GCJ
17910
17911# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17912# resulting binary.
17913hardcode_minus_L=$hardcode_minus_L_GCJ
17914
17915# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17916# the resulting binary.
17917hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17918
17919# Set to yes if building a shared library automatically hardcodes DIR into the library
17920# and all subsequent libraries and executables linked against it.
17921hardcode_automatic=$hardcode_automatic_GCJ
17922
17923# Variables whose values should be saved in libtool wrapper scripts and
17924# restored at relink time.
17925variables_saved_for_relink="$variables_saved_for_relink"
17926
17927# Whether libtool must link a program against all its dependency libraries.
17928link_all_deplibs=$link_all_deplibs_GCJ
17929
17930# Compile-time system search path for libraries
17931sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17932
17933# Run-time system search path for libraries
17934sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17935
17936# Fix the shell variable \$srcfile for the compiler.
17937fix_srcfile_path="$fix_srcfile_path_GCJ"
17938
17939# Set to yes if exported symbols are required.
17940always_export_symbols=$always_export_symbols_GCJ
17941
17942# The commands to list exported symbols.
17943export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17944
17945# The commands to extract the exported symbol list from a shared archive.
17946extract_expsyms_cmds=$lt_extract_expsyms_cmds
17947
17948# Symbols that should not be listed in the preloaded symbols.
17949exclude_expsyms=$lt_exclude_expsyms_GCJ
17950
17951# Symbols that must always be exported.
17952include_expsyms=$lt_include_expsyms_GCJ
17953
17954# ### END LIBTOOL TAG CONFIG: $tagname
17955
17956__EOF__
17957
17958
17959else
17960  # If there is no Makefile yet, we rely on a make rule to execute
17961  # `config.status --recheck' to rerun these tests and create the
17962  # libtool script then.
17963  test -f Makefile && make "$ltmain"
17964fi
17965
17966
17967ac_ext=c
17968ac_cpp='$CPP $CPPFLAGS'
17969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17971ac_compiler_gnu=$ac_cv_c_compiler_gnu
17972
17973CC="$lt_save_CC"
17974
17975	else
17976	  tagname=""
17977	fi
17978	;;
17979
17980      RC)
17981
17982
17983
17984# Source file extension for RC test sources.
17985ac_ext=rc
17986
17987# Object file extension for compiled RC test sources.
17988objext=o
17989objext_RC=$objext
17990
17991# Code to be used in simple compile tests
17992lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17993
17994# Code to be used in simple link tests
17995lt_simple_link_test_code="$lt_simple_compile_test_code"
17996
17997# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17998
17999# If no C compiler was specified, use CC.
18000LTCC=${LTCC-"$CC"}
18001
18002# Allow CC to be a program name with arguments.
18003compiler=$CC
18004
18005
18006# Allow CC to be a program name with arguments.
18007lt_save_CC="$CC"
18008CC=${RC-"windres"}
18009compiler=$CC
18010compiler_RC=$CC
18011lt_cv_prog_compiler_c_o_RC=yes
18012
18013# The else clause should only fire when bootstrapping the
18014# libtool distribution, otherwise you forgot to ship ltmain.sh
18015# with your package, and you will get complaints that there are
18016# no rules to generate ltmain.sh.
18017if test -f "$ltmain"; then
18018  # See if we are running on zsh, and set the options which allow our commands through
18019  # without removal of \ escapes.
18020  if test -n "${ZSH_VERSION+set}" ; then
18021    setopt NO_GLOB_SUBST
18022  fi
18023  # Now quote all the things that may contain metacharacters while being
18024  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18025  # variables and quote the copies for generation of the libtool script.
18026  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18027    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18028    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18029    deplibs_check_method reload_flag reload_cmds need_locks \
18030    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18031    lt_cv_sys_global_symbol_to_c_name_address \
18032    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18033    old_postinstall_cmds old_postuninstall_cmds \
18034    compiler_RC \
18035    CC_RC \
18036    LD_RC \
18037    lt_prog_compiler_wl_RC \
18038    lt_prog_compiler_pic_RC \
18039    lt_prog_compiler_static_RC \
18040    lt_prog_compiler_no_builtin_flag_RC \
18041    export_dynamic_flag_spec_RC \
18042    thread_safe_flag_spec_RC \
18043    whole_archive_flag_spec_RC \
18044    enable_shared_with_static_runtimes_RC \
18045    old_archive_cmds_RC \
18046    old_archive_from_new_cmds_RC \
18047    predep_objects_RC \
18048    postdep_objects_RC \
18049    predeps_RC \
18050    postdeps_RC \
18051    compiler_lib_search_path_RC \
18052    archive_cmds_RC \
18053    archive_expsym_cmds_RC \
18054    postinstall_cmds_RC \
18055    postuninstall_cmds_RC \
18056    old_archive_from_expsyms_cmds_RC \
18057    allow_undefined_flag_RC \
18058    no_undefined_flag_RC \
18059    export_symbols_cmds_RC \
18060    hardcode_libdir_flag_spec_RC \
18061    hardcode_libdir_flag_spec_ld_RC \
18062    hardcode_libdir_separator_RC \
18063    hardcode_automatic_RC \
18064    module_cmds_RC \
18065    module_expsym_cmds_RC \
18066    lt_cv_prog_compiler_c_o_RC \
18067    exclude_expsyms_RC \
18068    include_expsyms_RC; do
18069
18070    case $var in
18071    old_archive_cmds_RC | \
18072    old_archive_from_new_cmds_RC | \
18073    archive_cmds_RC | \
18074    archive_expsym_cmds_RC | \
18075    module_cmds_RC | \
18076    module_expsym_cmds_RC | \
18077    old_archive_from_expsyms_cmds_RC | \
18078    export_symbols_cmds_RC | \
18079    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18080    postinstall_cmds | postuninstall_cmds | \
18081    old_postinstall_cmds | old_postuninstall_cmds | \
18082    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18083      # Double-quote double-evaled strings.
18084      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18085      ;;
18086    *)
18087      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18088      ;;
18089    esac
18090  done
18091
18092  case $lt_echo in
18093  *'\$0 --fallback-echo"')
18094    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18095    ;;
18096  esac
18097
18098cfgfile="$ofile"
18099
18100  cat <<__EOF__ >> "$cfgfile"
18101# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18102
18103# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18104
18105# Shell to use when invoking shell scripts.
18106SHELL=$lt_SHELL
18107
18108# Whether or not to build shared libraries.
18109build_libtool_libs=$enable_shared
18110
18111# Whether or not to build static libraries.
18112build_old_libs=$enable_static
18113
18114# Whether or not to add -lc for building shared libraries.
18115build_libtool_need_lc=$archive_cmds_need_lc_RC
18116
18117# Whether or not to disallow shared libs when runtime libs are static
18118allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18119
18120# Whether or not to optimize for fast installation.
18121fast_install=$enable_fast_install
18122
18123# The host system.
18124host_alias=$host_alias
18125host=$host
18126
18127# An echo program that does not interpret backslashes.
18128echo=$lt_echo
18129
18130# The archiver.
18131AR=$lt_AR
18132AR_FLAGS=$lt_AR_FLAGS
18133
18134# A C compiler.
18135LTCC=$lt_LTCC
18136
18137# A language-specific compiler.
18138CC=$lt_compiler_RC
18139
18140# Is the compiler the GNU C compiler?
18141with_gcc=$GCC_RC
18142
18143# An ERE matcher.
18144EGREP=$lt_EGREP
18145
18146# The linker used to build libraries.
18147LD=$lt_LD_RC
18148
18149# Whether we need hard or soft links.
18150LN_S=$lt_LN_S
18151
18152# A BSD-compatible nm program.
18153NM=$lt_NM
18154
18155# A symbol stripping program
18156STRIP=$STRIP
18157
18158# Used to examine libraries when file_magic_cmd begins "file"
18159MAGIC_CMD=$MAGIC_CMD
18160
18161# Used on cygwin: DLL creation program.
18162DLLTOOL="$DLLTOOL"
18163
18164# Used on cygwin: object dumper.
18165OBJDUMP="$OBJDUMP"
18166
18167# Used on cygwin: assembler.
18168AS="$AS"
18169
18170# The name of the directory that contains temporary libtool files.
18171objdir=$objdir
18172
18173# How to create reloadable object files.
18174reload_flag=$lt_reload_flag
18175reload_cmds=$lt_reload_cmds
18176
18177# How to pass a linker flag through the compiler.
18178wl=$lt_lt_prog_compiler_wl_RC
18179
18180# Object file suffix (normally "o").
18181objext="$ac_objext"
18182
18183# Old archive suffix (normally "a").
18184libext="$libext"
18185
18186# Shared library suffix (normally ".so").
18187shrext='$shrext'
18188
18189# Executable file suffix (normally "").
18190exeext="$exeext"
18191
18192# Additional compiler flags for building library objects.
18193pic_flag=$lt_lt_prog_compiler_pic_RC
18194pic_mode=$pic_mode
18195
18196# What is the maximum length of a command?
18197max_cmd_len=$lt_cv_sys_max_cmd_len
18198
18199# Does compiler simultaneously support -c and -o options?
18200compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18201
18202# Must we lock files when doing compilation ?
18203need_locks=$lt_need_locks
18204
18205# Do we need the lib prefix for modules?
18206need_lib_prefix=$need_lib_prefix
18207
18208# Do we need a version for libraries?
18209need_version=$need_version
18210
18211# Whether dlopen is supported.
18212dlopen_support=$enable_dlopen
18213
18214# Whether dlopen of programs is supported.
18215dlopen_self=$enable_dlopen_self
18216
18217# Whether dlopen of statically linked programs is supported.
18218dlopen_self_static=$enable_dlopen_self_static
18219
18220# Compiler flag to prevent dynamic linking.
18221link_static_flag=$lt_lt_prog_compiler_static_RC
18222
18223# Compiler flag to turn off builtin functions.
18224no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18225
18226# Compiler flag to allow reflexive dlopens.
18227export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18228
18229# Compiler flag to generate shared objects directly from archives.
18230whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18231
18232# Compiler flag to generate thread-safe objects.
18233thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18234
18235# Library versioning type.
18236version_type=$version_type
18237
18238# Format of library name prefix.
18239libname_spec=$lt_libname_spec
18240
18241# List of archive names.  First name is the real one, the rest are links.
18242# The last name is the one that the linker finds with -lNAME.
18243library_names_spec=$lt_library_names_spec
18244
18245# The coded name of the library, if different from the real name.
18246soname_spec=$lt_soname_spec
18247
18248# Commands used to build and install an old-style archive.
18249RANLIB=$lt_RANLIB
18250old_archive_cmds=$lt_old_archive_cmds_RC
18251old_postinstall_cmds=$lt_old_postinstall_cmds
18252old_postuninstall_cmds=$lt_old_postuninstall_cmds
18253
18254# Create an old-style archive from a shared archive.
18255old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18256
18257# Create a temporary old-style archive to link instead of a shared archive.
18258old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18259
18260# Commands used to build and install a shared archive.
18261archive_cmds=$lt_archive_cmds_RC
18262archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18263postinstall_cmds=$lt_postinstall_cmds
18264postuninstall_cmds=$lt_postuninstall_cmds
18265
18266# Commands used to build a loadable module (assumed same as above if empty)
18267module_cmds=$lt_module_cmds_RC
18268module_expsym_cmds=$lt_module_expsym_cmds_RC
18269
18270# Commands to strip libraries.
18271old_striplib=$lt_old_striplib
18272striplib=$lt_striplib
18273
18274# Dependencies to place before the objects being linked to create a
18275# shared library.
18276predep_objects=$lt_predep_objects_RC
18277
18278# Dependencies to place after the objects being linked to create a
18279# shared library.
18280postdep_objects=$lt_postdep_objects_RC
18281
18282# Dependencies to place before the objects being linked to create a
18283# shared library.
18284predeps=$lt_predeps_RC
18285
18286# Dependencies to place after the objects being linked to create a
18287# shared library.
18288postdeps=$lt_postdeps_RC
18289
18290# The library search path used internally by the compiler when linking
18291# a shared library.
18292compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18293
18294# Method to check whether dependent libraries are shared objects.
18295deplibs_check_method=$lt_deplibs_check_method
18296
18297# Command to use when deplibs_check_method == file_magic.
18298file_magic_cmd=$lt_file_magic_cmd
18299
18300# Flag that allows shared libraries with undefined symbols to be built.
18301allow_undefined_flag=$lt_allow_undefined_flag_RC
18302
18303# Flag that forces no undefined symbols.
18304no_undefined_flag=$lt_no_undefined_flag_RC
18305
18306# Commands used to finish a libtool library installation in a directory.
18307finish_cmds=$lt_finish_cmds
18308
18309# Same as above, but a single script fragment to be evaled but not shown.
18310finish_eval=$lt_finish_eval
18311
18312# Take the output of nm and produce a listing of raw symbols and C names.
18313global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18314
18315# Transform the output of nm in a proper C declaration
18316global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18317
18318# Transform the output of nm in a C name address pair
18319global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18320
18321# This is the shared library runtime path variable.
18322runpath_var=$runpath_var
18323
18324# This is the shared library path variable.
18325shlibpath_var=$shlibpath_var
18326
18327# Is shlibpath searched before the hard-coded library search path?
18328shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18329
18330# How to hardcode a shared library path into an executable.
18331hardcode_action=$hardcode_action_RC
18332
18333# Whether we should hardcode library paths into libraries.
18334hardcode_into_libs=$hardcode_into_libs
18335
18336# Flag to hardcode \$libdir into a binary during linking.
18337# This must work even if \$libdir does not exist.
18338hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18339
18340# If ld is used when linking, flag to hardcode \$libdir into
18341# a binary during linking. This must work even if \$libdir does
18342# not exist.
18343hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18344
18345# Whether we need a single -rpath flag with a separated argument.
18346hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18347
18348# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18349# resulting binary.
18350hardcode_direct=$hardcode_direct_RC
18351
18352# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18353# resulting binary.
18354hardcode_minus_L=$hardcode_minus_L_RC
18355
18356# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18357# the resulting binary.
18358hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18359
18360# Set to yes if building a shared library automatically hardcodes DIR into the library
18361# and all subsequent libraries and executables linked against it.
18362hardcode_automatic=$hardcode_automatic_RC
18363
18364# Variables whose values should be saved in libtool wrapper scripts and
18365# restored at relink time.
18366variables_saved_for_relink="$variables_saved_for_relink"
18367
18368# Whether libtool must link a program against all its dependency libraries.
18369link_all_deplibs=$link_all_deplibs_RC
18370
18371# Compile-time system search path for libraries
18372sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18373
18374# Run-time system search path for libraries
18375sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18376
18377# Fix the shell variable \$srcfile for the compiler.
18378fix_srcfile_path="$fix_srcfile_path_RC"
18379
18380# Set to yes if exported symbols are required.
18381always_export_symbols=$always_export_symbols_RC
18382
18383# The commands to list exported symbols.
18384export_symbols_cmds=$lt_export_symbols_cmds_RC
18385
18386# The commands to extract the exported symbol list from a shared archive.
18387extract_expsyms_cmds=$lt_extract_expsyms_cmds
18388
18389# Symbols that should not be listed in the preloaded symbols.
18390exclude_expsyms=$lt_exclude_expsyms_RC
18391
18392# Symbols that must always be exported.
18393include_expsyms=$lt_include_expsyms_RC
18394
18395# ### END LIBTOOL TAG CONFIG: $tagname
18396
18397__EOF__
18398
18399
18400else
18401  # If there is no Makefile yet, we rely on a make rule to execute
18402  # `config.status --recheck' to rerun these tests and create the
18403  # libtool script then.
18404  test -f Makefile && make "$ltmain"
18405fi
18406
18407
18408ac_ext=c
18409ac_cpp='$CPP $CPPFLAGS'
18410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18412ac_compiler_gnu=$ac_cv_c_compiler_gnu
18413
18414CC="$lt_save_CC"
18415
18416	;;
18417
18418      *)
18419	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18420echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18421   { (exit 1); exit 1; }; }
18422	;;
18423      esac
18424
18425      # Append the new tag name to the list of available tags.
18426      if test -n "$tagname" ; then
18427      available_tags="$available_tags $tagname"
18428    fi
18429    fi
18430  done
18431  IFS="$lt_save_ifs"
18432
18433  # Now substitute the updated list of available tags.
18434  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18435    mv "${ofile}T" "$ofile"
18436    chmod +x "$ofile"
18437  else
18438    rm -f "${ofile}T"
18439    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18440echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18441   { (exit 1); exit 1; }; }
18442  fi
18443fi
18444
18445
18446
18447# This can be used to rebuild libtool when needed
18448LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18449
18450# Always use our own libtool.
18451LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18452
18453# Prevent multiple expansion
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475# Extract the first word of "pwd", so it can be a program name with args.
18476set dummy pwd; ac_word=$2
18477echo "$as_me:$LINENO: checking for $ac_word" >&5
18478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18479if test "${ac_cv_path_RPWD+set}" = set; then
18480  echo $ECHO_N "(cached) $ECHO_C" >&6
18481else
18482  case $RPWD in
18483  [\\/]* | ?:[\\/]*)
18484  ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18485  ;;
18486  *)
18487  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18488for as_dir in $PATH
18489do
18490  IFS=$as_save_IFS
18491  test -z "$as_dir" && as_dir=.
18492  for ac_exec_ext in '' $ac_executable_extensions; do
18493  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18494    ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18495    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18496    break 2
18497  fi
18498done
18499done
18500
18501  test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
18502  ;;
18503esac
18504fi
18505RPWD=$ac_cv_path_RPWD
18506
18507if test -n "$RPWD"; then
18508  echo "$as_me:$LINENO: result: $RPWD" >&5
18509echo "${ECHO_T}$RPWD" >&6
18510else
18511  echo "$as_me:$LINENO: result: no" >&5
18512echo "${ECHO_T}no" >&6
18513fi
18514
18515if test ${RPWD} = "false"
18516then
18517	{ { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18518echo "$as_me: error: pwd required but not found" >&2;}
18519   { (exit 1); exit 1; }; }
18520fi
18521
18522# Extract the first word of "ar", so it can be a program name with args.
18523set dummy ar; ac_word=$2
18524echo "$as_me:$LINENO: checking for $ac_word" >&5
18525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18526if test "${ac_cv_path_AR+set}" = set; then
18527  echo $ECHO_N "(cached) $ECHO_C" >&6
18528else
18529  case $AR in
18530  [\\/]* | ?:[\\/]*)
18531  ac_cv_path_AR="$AR" # Let the user override the test with a path.
18532  ;;
18533  *)
18534  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18535for as_dir in $PATH
18536do
18537  IFS=$as_save_IFS
18538  test -z "$as_dir" && as_dir=.
18539  for ac_exec_ext in '' $ac_executable_extensions; do
18540  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18541    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18542    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18543    break 2
18544  fi
18545done
18546done
18547
18548  test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
18549  ;;
18550esac
18551fi
18552AR=$ac_cv_path_AR
18553
18554if test -n "$AR"; then
18555  echo "$as_me:$LINENO: result: $AR" >&5
18556echo "${ECHO_T}$AR" >&6
18557else
18558  echo "$as_me:$LINENO: result: no" >&5
18559echo "${ECHO_T}no" >&6
18560fi
18561
18562if test ${AR} = "false"
18563then
18564	{ { echo "$as_me:$LINENO: error: ar required but not found" >&5
18565echo "$as_me: error: ar required but not found" >&2;}
18566   { (exit 1); exit 1; }; }
18567fi
18568
18569# Extract the first word of "sed", so it can be a program name with args.
18570set dummy sed; ac_word=$2
18571echo "$as_me:$LINENO: checking for $ac_word" >&5
18572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18573if test "${ac_cv_path_SED+set}" = set; then
18574  echo $ECHO_N "(cached) $ECHO_C" >&6
18575else
18576  case $SED in
18577  [\\/]* | ?:[\\/]*)
18578  ac_cv_path_SED="$SED" # Let the user override the test with a path.
18579  ;;
18580  *)
18581  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18582for as_dir in $PATH
18583do
18584  IFS=$as_save_IFS
18585  test -z "$as_dir" && as_dir=.
18586  for ac_exec_ext in '' $ac_executable_extensions; do
18587  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18588    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18589    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18590    break 2
18591  fi
18592done
18593done
18594
18595  test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
18596  ;;
18597esac
18598fi
18599SED=$ac_cv_path_SED
18600
18601if test -n "$SED"; then
18602  echo "$as_me:$LINENO: result: $SED" >&5
18603echo "${ECHO_T}$SED" >&6
18604else
18605  echo "$as_me:$LINENO: result: no" >&5
18606echo "${ECHO_T}no" >&6
18607fi
18608
18609if test ${SED} = "false"
18610then
18611	{ { echo "$as_me:$LINENO: error: sed required but not found" >&5
18612echo "$as_me: error: sed required but not found" >&2;}
18613   { (exit 1); exit 1; }; }
18614fi
18615
18616# Extract the first word of "rm", so it can be a program name with args.
18617set dummy rm; ac_word=$2
18618echo "$as_me:$LINENO: checking for $ac_word" >&5
18619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18620if test "${ac_cv_path_RM+set}" = set; then
18621  echo $ECHO_N "(cached) $ECHO_C" >&6
18622else
18623  case $RM in
18624  [\\/]* | ?:[\\/]*)
18625  ac_cv_path_RM="$RM" # Let the user override the test with a path.
18626  ;;
18627  *)
18628  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18629for as_dir in $PATH
18630do
18631  IFS=$as_save_IFS
18632  test -z "$as_dir" && as_dir=.
18633  for ac_exec_ext in '' $ac_executable_extensions; do
18634  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18635    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18636    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18637    break 2
18638  fi
18639done
18640done
18641
18642  test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
18643  ;;
18644esac
18645fi
18646RM=$ac_cv_path_RM
18647
18648if test -n "$RM"; then
18649  echo "$as_me:$LINENO: result: $RM" >&5
18650echo "${ECHO_T}$RM" >&6
18651else
18652  echo "$as_me:$LINENO: result: no" >&5
18653echo "${ECHO_T}no" >&6
18654fi
18655
18656if test ${RM} = "false"
18657then
18658	{ { echo "$as_me:$LINENO: error: rm required but not found" >&5
18659echo "$as_me: error: rm required but not found" >&2;}
18660   { (exit 1); exit 1; }; }
18661fi
18662
18663# Extract the first word of "echo", so it can be a program name with args.
18664set dummy echo; ac_word=$2
18665echo "$as_me:$LINENO: checking for $ac_word" >&5
18666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18667if test "${ac_cv_path_ECHO+set}" = set; then
18668  echo $ECHO_N "(cached) $ECHO_C" >&6
18669else
18670  case $ECHO in
18671  [\\/]* | ?:[\\/]*)
18672  ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18673  ;;
18674  *)
18675  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18676for as_dir in $PATH
18677do
18678  IFS=$as_save_IFS
18679  test -z "$as_dir" && as_dir=.
18680  for ac_exec_ext in '' $ac_executable_extensions; do
18681  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18682    ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18683    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18684    break 2
18685  fi
18686done
18687done
18688
18689  test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
18690  ;;
18691esac
18692fi
18693ECHO=$ac_cv_path_ECHO
18694
18695if test -n "$ECHO"; then
18696  echo "$as_me:$LINENO: result: $ECHO" >&5
18697echo "${ECHO_T}$ECHO" >&6
18698else
18699  echo "$as_me:$LINENO: result: no" >&5
18700echo "${ECHO_T}no" >&6
18701fi
18702
18703if test ${ECHO} = "false"
18704then
18705	{ { echo "$as_me:$LINENO: error: echo required but not found" >&5
18706echo "$as_me: error: echo required but not found" >&2;}
18707   { (exit 1); exit 1; }; }
18708fi
18709
18710# Extract the first word of "mkdir", so it can be a program name with args.
18711set dummy mkdir; ac_word=$2
18712echo "$as_me:$LINENO: checking for $ac_word" >&5
18713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18714if test "${ac_cv_path_MKDIR+set}" = set; then
18715  echo $ECHO_N "(cached) $ECHO_C" >&6
18716else
18717  case $MKDIR in
18718  [\\/]* | ?:[\\/]*)
18719  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18720  ;;
18721  *)
18722  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18723for as_dir in $PATH
18724do
18725  IFS=$as_save_IFS
18726  test -z "$as_dir" && as_dir=.
18727  for ac_exec_ext in '' $ac_executable_extensions; do
18728  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18729    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18730    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18731    break 2
18732  fi
18733done
18734done
18735
18736  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
18737  ;;
18738esac
18739fi
18740MKDIR=$ac_cv_path_MKDIR
18741
18742if test -n "$MKDIR"; then
18743  echo "$as_me:$LINENO: result: $MKDIR" >&5
18744echo "${ECHO_T}$MKDIR" >&6
18745else
18746  echo "$as_me:$LINENO: result: no" >&5
18747echo "${ECHO_T}no" >&6
18748fi
18749
18750if test ${MKDIR} = "false"
18751then
18752	{ { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18753echo "$as_me: error: mkdir required but not found" >&2;}
18754   { (exit 1); exit 1; }; }
18755fi
18756
18757# Extract the first word of "date", so it can be a program name with args.
18758set dummy date; ac_word=$2
18759echo "$as_me:$LINENO: checking for $ac_word" >&5
18760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18761if test "${ac_cv_path_DATE+set}" = set; then
18762  echo $ECHO_N "(cached) $ECHO_C" >&6
18763else
18764  case $DATE in
18765  [\\/]* | ?:[\\/]*)
18766  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18767  ;;
18768  *)
18769  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18770for as_dir in $PATH
18771do
18772  IFS=$as_save_IFS
18773  test -z "$as_dir" && as_dir=.
18774  for ac_exec_ext in '' $ac_executable_extensions; do
18775  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18776    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18777    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18778    break 2
18779  fi
18780done
18781done
18782
18783  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
18784  ;;
18785esac
18786fi
18787DATE=$ac_cv_path_DATE
18788
18789if test -n "$DATE"; then
18790  echo "$as_me:$LINENO: result: $DATE" >&5
18791echo "${ECHO_T}$DATE" >&6
18792else
18793  echo "$as_me:$LINENO: result: no" >&5
18794echo "${ECHO_T}no" >&6
18795fi
18796
18797if test ${DATE} = "false"
18798then
18799	{ { echo "$as_me:$LINENO: error: date required but not found" >&5
18800echo "$as_me: error: date required but not found" >&2;}
18801   { (exit 1); exit 1; }; }
18802fi
18803
18804# Extract the first word of "mv", so it can be a program name with args.
18805set dummy mv; ac_word=$2
18806echo "$as_me:$LINENO: checking for $ac_word" >&5
18807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18808if test "${ac_cv_path_MV+set}" = set; then
18809  echo $ECHO_N "(cached) $ECHO_C" >&6
18810else
18811  case $MV in
18812  [\\/]* | ?:[\\/]*)
18813  ac_cv_path_MV="$MV" # Let the user override the test with a path.
18814  ;;
18815  *)
18816  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18817for as_dir in $PATH
18818do
18819  IFS=$as_save_IFS
18820  test -z "$as_dir" && as_dir=.
18821  for ac_exec_ext in '' $ac_executable_extensions; do
18822  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18823    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18824    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18825    break 2
18826  fi
18827done
18828done
18829
18830  test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
18831  ;;
18832esac
18833fi
18834MV=$ac_cv_path_MV
18835
18836if test -n "$MV"; then
18837  echo "$as_me:$LINENO: result: $MV" >&5
18838echo "${ECHO_T}$MV" >&6
18839else
18840  echo "$as_me:$LINENO: result: no" >&5
18841echo "${ECHO_T}no" >&6
18842fi
18843
18844if test ${MV} = "false"
18845then
18846	{ { echo "$as_me:$LINENO: error: mv required but not found" >&5
18847echo "$as_me: error: mv required but not found" >&2;}
18848   { (exit 1); exit 1; }; }
18849fi
18850
18851# Extract the first word of "dot", so it can be a program name with args.
18852set dummy dot; ac_word=$2
18853echo "$as_me:$LINENO: checking for $ac_word" >&5
18854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18855if test "${ac_cv_path_DOT+set}" = set; then
18856  echo $ECHO_N "(cached) $ECHO_C" >&6
18857else
18858  case $DOT in
18859  [\\/]* | ?:[\\/]*)
18860  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18861  ;;
18862  *)
18863  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18864for as_dir in $PATH
18865do
18866  IFS=$as_save_IFS
18867  test -z "$as_dir" && as_dir=.
18868  for ac_exec_ext in '' $ac_executable_extensions; do
18869  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18870    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18871    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18872    break 2
18873  fi
18874done
18875done
18876
18877  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
18878  ;;
18879esac
18880fi
18881DOT=$ac_cv_path_DOT
18882
18883if test -n "$DOT"; then
18884  echo "$as_me:$LINENO: result: $DOT" >&5
18885echo "${ECHO_T}$DOT" >&6
18886else
18887  echo "$as_me:$LINENO: result: no" >&5
18888echo "${ECHO_T}no" >&6
18889fi
18890
18891
18892# Extract the first word of "etags", so it can be a program name with args.
18893set dummy etags; ac_word=$2
18894echo "$as_me:$LINENO: checking for $ac_word" >&5
18895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18896if test "${ac_cv_path_ETAGS+set}" = set; then
18897  echo $ECHO_N "(cached) $ECHO_C" >&6
18898else
18899  case $ETAGS in
18900  [\\/]* | ?:[\\/]*)
18901  ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18902  ;;
18903  *)
18904  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18905for as_dir in $PATH
18906do
18907  IFS=$as_save_IFS
18908  test -z "$as_dir" && as_dir=.
18909  for ac_exec_ext in '' $ac_executable_extensions; do
18910  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18911    ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18912    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18913    break 2
18914  fi
18915done
18916done
18917
18918  test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
18919  ;;
18920esac
18921fi
18922ETAGS=$ac_cv_path_ETAGS
18923
18924if test -n "$ETAGS"; then
18925  echo "$as_me:$LINENO: result: $ETAGS" >&5
18926echo "${ECHO_T}$ETAGS" >&6
18927else
18928  echo "$as_me:$LINENO: result: no" >&5
18929echo "${ECHO_T}no" >&6
18930fi
18931
18932
18933# Extract the first word of "python", so it can be a program name with args.
18934set dummy python; ac_word=$2
18935echo "$as_me:$LINENO: checking for $ac_word" >&5
18936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18937if test "${ac_cv_path_PYTHON+set}" = set; then
18938  echo $ECHO_N "(cached) $ECHO_C" >&6
18939else
18940  case $PYTHON in
18941  [\\/]* | ?:[\\/]*)
18942  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18943  ;;
18944  *)
18945  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18946for as_dir in $PATH
18947do
18948  IFS=$as_save_IFS
18949  test -z "$as_dir" && as_dir=.
18950  for ac_exec_ext in '' $ac_executable_extensions; do
18951  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18952    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18953    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18954    break 2
18955  fi
18956done
18957done
18958
18959  test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
18960  ;;
18961esac
18962fi
18963PYTHON=$ac_cv_path_PYTHON
18964
18965if test -n "$PYTHON"; then
18966  echo "$as_me:$LINENO: result: $PYTHON" >&5
18967echo "${ECHO_T}$PYTHON" >&6
18968else
18969  echo "$as_me:$LINENO: result: no" >&5
18970echo "${ECHO_T}no" >&6
18971fi
18972
18973if test ${PYTHON} = "false"
18974then
18975	{ echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18976echo "$as_me: WARNING: python required but not found" >&2;}
18977fi
18978
18979# Extract the first word of "qmtest", so it can be a program name with args.
18980set dummy qmtest; ac_word=$2
18981echo "$as_me:$LINENO: checking for $ac_word" >&5
18982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18983if test "${ac_cv_path_QMTEST+set}" = set; then
18984  echo $ECHO_N "(cached) $ECHO_C" >&6
18985else
18986  case $QMTEST in
18987  [\\/]* | ?:[\\/]*)
18988  ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18989  ;;
18990  *)
18991  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18992for as_dir in $PATH
18993do
18994  IFS=$as_save_IFS
18995  test -z "$as_dir" && as_dir=.
18996  for ac_exec_ext in '' $ac_executable_extensions; do
18997  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18998    ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18999    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19000    break 2
19001  fi
19002done
19003done
19004
19005  test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
19006  ;;
19007esac
19008fi
19009QMTEST=$ac_cv_path_QMTEST
19010
19011if test -n "$QMTEST"; then
19012  echo "$as_me:$LINENO: result: $QMTEST" >&5
19013echo "${ECHO_T}$QMTEST" >&6
19014else
19015  echo "$as_me:$LINENO: result: no" >&5
19016echo "${ECHO_T}no" >&6
19017fi
19018
19019if test ${QMTEST} = "false"
19020then
19021	{ echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19022echo "$as_me: WARNING: qmtest required but not found" >&2;}
19023fi
19024
19025pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
19026pymajor=`echo $pyversion | cut -d. -f1`
19027pyminor=`echo $pyversion | cut -d. -f2`
19028
19029if test "$pymajor" -ge "2"
19030then
19031	if test "$pymajor" -eq "2"
19032	then
19033		if test "$pyminor" -lt "2"
19034		then
19035			{ { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19036echo "$as_me: error: Python 2.2 or greater required" >&2;}
19037   { (exit 1); exit 1; }; }
19038		fi
19039	fi
19040else
19041	{ { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19042echo "$as_me: error: Python 2.2 or greater required" >&2;}
19043   { (exit 1); exit 1; }; }
19044fi
19045
19046
19047
19048
19049
19050echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19051echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19052if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19053  echo $ECHO_N "(cached) $ECHO_C" >&6
19054else
19055  ac_check_lib_save_LIBS=$LIBS
19056LIBS="-lelf  $LIBS"
19057cat >conftest.$ac_ext <<_ACEOF
19058#line $LINENO "configure"
19059/* confdefs.h.  */
19060_ACEOF
19061cat confdefs.h >>conftest.$ac_ext
19062cat >>conftest.$ac_ext <<_ACEOF
19063/* end confdefs.h.  */
19064
19065/* Override any gcc2 internal prototype to avoid an error.  */
19066#ifdef __cplusplus
19067extern "C"
19068#endif
19069/* We use char because int might match the return type of a gcc2
19070   builtin and then its argument prototype would still apply.  */
19071char elf_begin ();
19072int
19073main ()
19074{
19075elf_begin ();
19076  ;
19077  return 0;
19078}
19079_ACEOF
19080rm -f conftest.$ac_objext conftest$ac_exeext
19081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19082  (eval $ac_link) 2>&5
19083  ac_status=$?
19084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085  (exit $ac_status); } &&
19086         { ac_try='test -s conftest$ac_exeext'
19087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19088  (eval $ac_try) 2>&5
19089  ac_status=$?
19090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091  (exit $ac_status); }; }; then
19092  ac_cv_lib_elf_elf_begin=yes
19093else
19094  echo "$as_me: failed program was:" >&5
19095sed 's/^/| /' conftest.$ac_ext >&5
19096
19097ac_cv_lib_elf_elf_begin=no
19098fi
19099rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19100LIBS=$ac_check_lib_save_LIBS
19101fi
19102echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19103echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19104if test $ac_cv_lib_elf_elf_begin = yes; then
19105  cat >>confdefs.h <<_ACEOF
19106#define HAVE_LIBELF 1
19107_ACEOF
19108
19109  LIBS="-lelf $LIBS"
19110
19111fi
19112
19113
19114echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19115echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19116if test "${ac_cv_search_dlopen+set}" = set; then
19117  echo $ECHO_N "(cached) $ECHO_C" >&6
19118else
19119  ac_func_search_save_LIBS=$LIBS
19120ac_cv_search_dlopen=no
19121cat >conftest.$ac_ext <<_ACEOF
19122#line $LINENO "configure"
19123/* confdefs.h.  */
19124_ACEOF
19125cat confdefs.h >>conftest.$ac_ext
19126cat >>conftest.$ac_ext <<_ACEOF
19127/* end confdefs.h.  */
19128
19129/* Override any gcc2 internal prototype to avoid an error.  */
19130#ifdef __cplusplus
19131extern "C"
19132#endif
19133/* We use char because int might match the return type of a gcc2
19134   builtin and then its argument prototype would still apply.  */
19135char dlopen ();
19136int
19137main ()
19138{
19139dlopen ();
19140  ;
19141  return 0;
19142}
19143_ACEOF
19144rm -f conftest.$ac_objext conftest$ac_exeext
19145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19146  (eval $ac_link) 2>&5
19147  ac_status=$?
19148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149  (exit $ac_status); } &&
19150         { ac_try='test -s conftest$ac_exeext'
19151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19152  (eval $ac_try) 2>&5
19153  ac_status=$?
19154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155  (exit $ac_status); }; }; then
19156  ac_cv_search_dlopen="none required"
19157else
19158  echo "$as_me: failed program was:" >&5
19159sed 's/^/| /' conftest.$ac_ext >&5
19160
19161fi
19162rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19163if test "$ac_cv_search_dlopen" = no; then
19164  for ac_lib in dl; do
19165    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19166    cat >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 dlopen ();
19181int
19182main ()
19183{
19184dlopen ();
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_dlopen="-l$ac_lib"
19202break
19203else
19204  echo "$as_me: failed program was:" >&5
19205sed 's/^/| /' conftest.$ac_ext >&5
19206
19207fi
19208rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19209  done
19210fi
19211LIBS=$ac_func_search_save_LIBS
19212fi
19213echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19214echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19215if test "$ac_cv_search_dlopen" != no; then
19216  test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19217  cat >>confdefs.h <<\_ACEOF
19218#define HAVE_DLOPEN 1
19219_ACEOF
19220
19221else
19222  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19223echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19224fi
19225
19226
19227echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19228echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19229if test "${ac_cv_search_mallinfo+set}" = set; then
19230  echo $ECHO_N "(cached) $ECHO_C" >&6
19231else
19232  ac_func_search_save_LIBS=$LIBS
19233ac_cv_search_mallinfo=no
19234cat >conftest.$ac_ext <<_ACEOF
19235#line $LINENO "configure"
19236/* confdefs.h.  */
19237_ACEOF
19238cat confdefs.h >>conftest.$ac_ext
19239cat >>conftest.$ac_ext <<_ACEOF
19240/* end confdefs.h.  */
19241
19242/* Override any gcc2 internal prototype to avoid an error.  */
19243#ifdef __cplusplus
19244extern "C"
19245#endif
19246/* We use char because int might match the return type of a gcc2
19247   builtin and then its argument prototype would still apply.  */
19248char mallinfo ();
19249int
19250main ()
19251{
19252mallinfo ();
19253  ;
19254  return 0;
19255}
19256_ACEOF
19257rm -f conftest.$ac_objext conftest$ac_exeext
19258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19259  (eval $ac_link) 2>&5
19260  ac_status=$?
19261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262  (exit $ac_status); } &&
19263         { ac_try='test -s conftest$ac_exeext'
19264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19265  (eval $ac_try) 2>&5
19266  ac_status=$?
19267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268  (exit $ac_status); }; }; then
19269  ac_cv_search_mallinfo="none required"
19270else
19271  echo "$as_me: failed program was:" >&5
19272sed 's/^/| /' conftest.$ac_ext >&5
19273
19274fi
19275rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19276if test "$ac_cv_search_mallinfo" = no; then
19277  for ac_lib in malloc; do
19278    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19279    cat >conftest.$ac_ext <<_ACEOF
19280#line $LINENO "configure"
19281/* confdefs.h.  */
19282_ACEOF
19283cat confdefs.h >>conftest.$ac_ext
19284cat >>conftest.$ac_ext <<_ACEOF
19285/* end confdefs.h.  */
19286
19287/* Override any gcc2 internal prototype to avoid an error.  */
19288#ifdef __cplusplus
19289extern "C"
19290#endif
19291/* We use char because int might match the return type of a gcc2
19292   builtin and then its argument prototype would still apply.  */
19293char mallinfo ();
19294int
19295main ()
19296{
19297mallinfo ();
19298  ;
19299  return 0;
19300}
19301_ACEOF
19302rm -f conftest.$ac_objext conftest$ac_exeext
19303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19304  (eval $ac_link) 2>&5
19305  ac_status=$?
19306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307  (exit $ac_status); } &&
19308         { ac_try='test -s conftest$ac_exeext'
19309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19310  (eval $ac_try) 2>&5
19311  ac_status=$?
19312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313  (exit $ac_status); }; }; then
19314  ac_cv_search_mallinfo="-l$ac_lib"
19315break
19316else
19317  echo "$as_me: failed program was:" >&5
19318sed 's/^/| /' conftest.$ac_ext >&5
19319
19320fi
19321rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19322  done
19323fi
19324LIBS=$ac_func_search_save_LIBS
19325fi
19326echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19327echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19328if test "$ac_cv_search_mallinfo" != no; then
19329  test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19330  cat >>confdefs.h <<\_ACEOF
19331#define HAVE_MALLINFO 1
19332_ACEOF
19333
19334fi
19335
19336
19337
19338echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19339echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19340if test "${ac_cv_header_stdc+set}" = set; then
19341  echo $ECHO_N "(cached) $ECHO_C" >&6
19342else
19343  cat >conftest.$ac_ext <<_ACEOF
19344#line $LINENO "configure"
19345/* confdefs.h.  */
19346_ACEOF
19347cat confdefs.h >>conftest.$ac_ext
19348cat >>conftest.$ac_ext <<_ACEOF
19349/* end confdefs.h.  */
19350#include <stdlib.h>
19351#include <stdarg.h>
19352#include <string.h>
19353#include <float.h>
19354
19355int
19356main ()
19357{
19358
19359  ;
19360  return 0;
19361}
19362_ACEOF
19363rm -f conftest.$ac_objext
19364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19365  (eval $ac_compile) 2>&5
19366  ac_status=$?
19367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368  (exit $ac_status); } &&
19369         { ac_try='test -s conftest.$ac_objext'
19370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19371  (eval $ac_try) 2>&5
19372  ac_status=$?
19373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374  (exit $ac_status); }; }; then
19375  ac_cv_header_stdc=yes
19376else
19377  echo "$as_me: failed program was:" >&5
19378sed 's/^/| /' conftest.$ac_ext >&5
19379
19380ac_cv_header_stdc=no
19381fi
19382rm -f conftest.$ac_objext conftest.$ac_ext
19383
19384if test $ac_cv_header_stdc = yes; then
19385  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19386  cat >conftest.$ac_ext <<_ACEOF
19387#line $LINENO "configure"
19388/* confdefs.h.  */
19389_ACEOF
19390cat confdefs.h >>conftest.$ac_ext
19391cat >>conftest.$ac_ext <<_ACEOF
19392/* end confdefs.h.  */
19393#include <string.h>
19394
19395_ACEOF
19396if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19397  $EGREP "memchr" >/dev/null 2>&1; then
19398  :
19399else
19400  ac_cv_header_stdc=no
19401fi
19402rm -f conftest*
19403
19404fi
19405
19406if test $ac_cv_header_stdc = yes; then
19407  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19408  cat >conftest.$ac_ext <<_ACEOF
19409#line $LINENO "configure"
19410/* confdefs.h.  */
19411_ACEOF
19412cat confdefs.h >>conftest.$ac_ext
19413cat >>conftest.$ac_ext <<_ACEOF
19414/* end confdefs.h.  */
19415#include <stdlib.h>
19416
19417_ACEOF
19418if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19419  $EGREP "free" >/dev/null 2>&1; then
19420  :
19421else
19422  ac_cv_header_stdc=no
19423fi
19424rm -f conftest*
19425
19426fi
19427
19428if test $ac_cv_header_stdc = yes; then
19429  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19430  if test "$cross_compiling" = yes; then
19431  :
19432else
19433  cat >conftest.$ac_ext <<_ACEOF
19434#line $LINENO "configure"
19435/* confdefs.h.  */
19436_ACEOF
19437cat confdefs.h >>conftest.$ac_ext
19438cat >>conftest.$ac_ext <<_ACEOF
19439/* end confdefs.h.  */
19440#include <ctype.h>
19441#if ((' ' & 0x0FF) == 0x020)
19442# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19443# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19444#else
19445# define ISLOWER(c) \
19446                   (('a' <= (c) && (c) <= 'i') \
19447                     || ('j' <= (c) && (c) <= 'r') \
19448                     || ('s' <= (c) && (c) <= 'z'))
19449# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19450#endif
19451
19452#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19453int
19454main ()
19455{
19456  int i;
19457  for (i = 0; i < 256; i++)
19458    if (XOR (islower (i), ISLOWER (i))
19459        || toupper (i) != TOUPPER (i))
19460      exit(2);
19461  exit (0);
19462}
19463_ACEOF
19464rm -f conftest$ac_exeext
19465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19466  (eval $ac_link) 2>&5
19467  ac_status=$?
19468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471  (eval $ac_try) 2>&5
19472  ac_status=$?
19473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474  (exit $ac_status); }; }; then
19475  :
19476else
19477  echo "$as_me: program exited with status $ac_status" >&5
19478echo "$as_me: failed program was:" >&5
19479sed 's/^/| /' conftest.$ac_ext >&5
19480
19481( exit $ac_status )
19482ac_cv_header_stdc=no
19483fi
19484rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19485fi
19486fi
19487fi
19488echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19489echo "${ECHO_T}$ac_cv_header_stdc" >&6
19490if test $ac_cv_header_stdc = yes; then
19491
19492cat >>confdefs.h <<\_ACEOF
19493#define STDC_HEADERS 1
19494_ACEOF
19495
19496fi
19497
19498echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19499echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19500if test "${ac_cv_header_sys_wait_h+set}" = set; then
19501  echo $ECHO_N "(cached) $ECHO_C" >&6
19502else
19503  cat >conftest.$ac_ext <<_ACEOF
19504#line $LINENO "configure"
19505/* confdefs.h.  */
19506_ACEOF
19507cat confdefs.h >>conftest.$ac_ext
19508cat >>conftest.$ac_ext <<_ACEOF
19509/* end confdefs.h.  */
19510#include <sys/types.h>
19511#include <sys/wait.h>
19512#ifndef WEXITSTATUS
19513# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19514#endif
19515#ifndef WIFEXITED
19516# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19517#endif
19518
19519int
19520main ()
19521{
19522  int s;
19523  wait (&s);
19524  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19525  ;
19526  return 0;
19527}
19528_ACEOF
19529rm -f conftest.$ac_objext
19530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19531  (eval $ac_compile) 2>&5
19532  ac_status=$?
19533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534  (exit $ac_status); } &&
19535         { ac_try='test -s conftest.$ac_objext'
19536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19537  (eval $ac_try) 2>&5
19538  ac_status=$?
19539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540  (exit $ac_status); }; }; then
19541  ac_cv_header_sys_wait_h=yes
19542else
19543  echo "$as_me: failed program was:" >&5
19544sed 's/^/| /' conftest.$ac_ext >&5
19545
19546ac_cv_header_sys_wait_h=no
19547fi
19548rm -f conftest.$ac_objext conftest.$ac_ext
19549fi
19550echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19551echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19552if test $ac_cv_header_sys_wait_h = yes; then
19553
19554cat >>confdefs.h <<\_ACEOF
19555#define HAVE_SYS_WAIT_H 1
19556_ACEOF
19557
19558fi
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19570do
19571as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19572if eval "test \"\${$as_ac_Header+set}\" = set"; then
19573  echo "$as_me:$LINENO: checking for $ac_header" >&5
19574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19575if eval "test \"\${$as_ac_Header+set}\" = set"; then
19576  echo $ECHO_N "(cached) $ECHO_C" >&6
19577fi
19578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19579echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19580else
19581  # Is the header compilable?
19582echo "$as_me:$LINENO: checking $ac_header usability" >&5
19583echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19584cat >conftest.$ac_ext <<_ACEOF
19585#line $LINENO "configure"
19586/* confdefs.h.  */
19587_ACEOF
19588cat confdefs.h >>conftest.$ac_ext
19589cat >>conftest.$ac_ext <<_ACEOF
19590/* end confdefs.h.  */
19591$ac_includes_default
19592#include <$ac_header>
19593_ACEOF
19594rm -f conftest.$ac_objext
19595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19596  (eval $ac_compile) 2>&5
19597  ac_status=$?
19598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599  (exit $ac_status); } &&
19600         { ac_try='test -s conftest.$ac_objext'
19601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19602  (eval $ac_try) 2>&5
19603  ac_status=$?
19604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605  (exit $ac_status); }; }; then
19606  ac_header_compiler=yes
19607else
19608  echo "$as_me: failed program was:" >&5
19609sed 's/^/| /' conftest.$ac_ext >&5
19610
19611ac_header_compiler=no
19612fi
19613rm -f conftest.$ac_objext conftest.$ac_ext
19614echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19615echo "${ECHO_T}$ac_header_compiler" >&6
19616
19617# Is the header present?
19618echo "$as_me:$LINENO: checking $ac_header presence" >&5
19619echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19620cat >conftest.$ac_ext <<_ACEOF
19621#line $LINENO "configure"
19622/* confdefs.h.  */
19623_ACEOF
19624cat confdefs.h >>conftest.$ac_ext
19625cat >>conftest.$ac_ext <<_ACEOF
19626/* end confdefs.h.  */
19627#include <$ac_header>
19628_ACEOF
19629if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19630  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19631  ac_status=$?
19632  grep -v '^ *+' conftest.er1 >conftest.err
19633  rm -f conftest.er1
19634  cat conftest.err >&5
19635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636  (exit $ac_status); } >/dev/null; then
19637  if test -s conftest.err; then
19638    ac_cpp_err=$ac_c_preproc_warn_flag
19639  else
19640    ac_cpp_err=
19641  fi
19642else
19643  ac_cpp_err=yes
19644fi
19645if test -z "$ac_cpp_err"; then
19646  ac_header_preproc=yes
19647else
19648  echo "$as_me: failed program was:" >&5
19649sed 's/^/| /' conftest.$ac_ext >&5
19650
19651  ac_header_preproc=no
19652fi
19653rm -f conftest.err conftest.$ac_ext
19654echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19655echo "${ECHO_T}$ac_header_preproc" >&6
19656
19657# So?  What about this header?
19658case $ac_header_compiler:$ac_header_preproc in
19659  yes:no )
19660    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19661echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19662    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19663echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19664    (
19665      cat <<\_ASBOX
19666## ------------------------------------ ##
19667## Report this to bug-autoconf@gnu.org. ##
19668## ------------------------------------ ##
19669_ASBOX
19670    ) |
19671      sed "s/^/$as_me: WARNING:     /" >&2
19672    ;;
19673  no:yes )
19674    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19675echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19676    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19677echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19678    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19679echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19680    (
19681      cat <<\_ASBOX
19682## ------------------------------------ ##
19683## Report this to bug-autoconf@gnu.org. ##
19684## ------------------------------------ ##
19685_ASBOX
19686    ) |
19687      sed "s/^/$as_me: WARNING:     /" >&2
19688    ;;
19689esac
19690echo "$as_me:$LINENO: checking for $ac_header" >&5
19691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19692if eval "test \"\${$as_ac_Header+set}\" = set"; then
19693  echo $ECHO_N "(cached) $ECHO_C" >&6
19694else
19695  eval "$as_ac_Header=$ac_header_preproc"
19696fi
19697echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19698echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19699
19700fi
19701if test `eval echo '${'$as_ac_Header'}'` = yes; then
19702  cat >>confdefs.h <<_ACEOF
19703#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19704_ACEOF
19705
19706fi
19707
19708done
19709
19710
19711
19712
19713
19714
19715for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19716do
19717as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19718if eval "test \"\${$as_ac_Header+set}\" = set"; then
19719  echo "$as_me:$LINENO: checking for $ac_header" >&5
19720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19721if eval "test \"\${$as_ac_Header+set}\" = set"; then
19722  echo $ECHO_N "(cached) $ECHO_C" >&6
19723fi
19724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19725echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19726else
19727  # Is the header compilable?
19728echo "$as_me:$LINENO: checking $ac_header usability" >&5
19729echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19730cat >conftest.$ac_ext <<_ACEOF
19731#line $LINENO "configure"
19732/* confdefs.h.  */
19733_ACEOF
19734cat confdefs.h >>conftest.$ac_ext
19735cat >>conftest.$ac_ext <<_ACEOF
19736/* end confdefs.h.  */
19737$ac_includes_default
19738#include <$ac_header>
19739_ACEOF
19740rm -f conftest.$ac_objext
19741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19742  (eval $ac_compile) 2>&5
19743  ac_status=$?
19744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745  (exit $ac_status); } &&
19746         { ac_try='test -s conftest.$ac_objext'
19747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748  (eval $ac_try) 2>&5
19749  ac_status=$?
19750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751  (exit $ac_status); }; }; then
19752  ac_header_compiler=yes
19753else
19754  echo "$as_me: failed program was:" >&5
19755sed 's/^/| /' conftest.$ac_ext >&5
19756
19757ac_header_compiler=no
19758fi
19759rm -f conftest.$ac_objext conftest.$ac_ext
19760echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19761echo "${ECHO_T}$ac_header_compiler" >&6
19762
19763# Is the header present?
19764echo "$as_me:$LINENO: checking $ac_header presence" >&5
19765echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19766cat >conftest.$ac_ext <<_ACEOF
19767#line $LINENO "configure"
19768/* confdefs.h.  */
19769_ACEOF
19770cat confdefs.h >>conftest.$ac_ext
19771cat >>conftest.$ac_ext <<_ACEOF
19772/* end confdefs.h.  */
19773#include <$ac_header>
19774_ACEOF
19775if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19776  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19777  ac_status=$?
19778  grep -v '^ *+' conftest.er1 >conftest.err
19779  rm -f conftest.er1
19780  cat conftest.err >&5
19781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782  (exit $ac_status); } >/dev/null; then
19783  if test -s conftest.err; then
19784    ac_cpp_err=$ac_c_preproc_warn_flag
19785  else
19786    ac_cpp_err=
19787  fi
19788else
19789  ac_cpp_err=yes
19790fi
19791if test -z "$ac_cpp_err"; then
19792  ac_header_preproc=yes
19793else
19794  echo "$as_me: failed program was:" >&5
19795sed 's/^/| /' conftest.$ac_ext >&5
19796
19797  ac_header_preproc=no
19798fi
19799rm -f conftest.err conftest.$ac_ext
19800echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19801echo "${ECHO_T}$ac_header_preproc" >&6
19802
19803# So?  What about this header?
19804case $ac_header_compiler:$ac_header_preproc in
19805  yes:no )
19806    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19807echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19808    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19809echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19810    (
19811      cat <<\_ASBOX
19812## ------------------------------------ ##
19813## Report this to bug-autoconf@gnu.org. ##
19814## ------------------------------------ ##
19815_ASBOX
19816    ) |
19817      sed "s/^/$as_me: WARNING:     /" >&2
19818    ;;
19819  no:yes )
19820    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19821echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19822    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19823echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19824    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19825echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19826    (
19827      cat <<\_ASBOX
19828## ------------------------------------ ##
19829## Report this to bug-autoconf@gnu.org. ##
19830## ------------------------------------ ##
19831_ASBOX
19832    ) |
19833      sed "s/^/$as_me: WARNING:     /" >&2
19834    ;;
19835esac
19836echo "$as_me:$LINENO: checking for $ac_header" >&5
19837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19838if eval "test \"\${$as_ac_Header+set}\" = set"; then
19839  echo $ECHO_N "(cached) $ECHO_C" >&6
19840else
19841  eval "$as_ac_Header=$ac_header_preproc"
19842fi
19843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19844echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19845
19846fi
19847if test `eval echo '${'$as_ac_Header'}'` = yes; then
19848  cat >>confdefs.h <<_ACEOF
19849#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19850_ACEOF
19851
19852fi
19853
19854done
19855
19856
19857
19858
19859for ac_header in dlfcn.h link.h
19860do
19861as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19862if eval "test \"\${$as_ac_Header+set}\" = set"; then
19863  echo "$as_me:$LINENO: checking for $ac_header" >&5
19864echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19865if eval "test \"\${$as_ac_Header+set}\" = set"; then
19866  echo $ECHO_N "(cached) $ECHO_C" >&6
19867fi
19868echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19869echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19870else
19871  # Is the header compilable?
19872echo "$as_me:$LINENO: checking $ac_header usability" >&5
19873echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19874cat >conftest.$ac_ext <<_ACEOF
19875#line $LINENO "configure"
19876/* confdefs.h.  */
19877_ACEOF
19878cat confdefs.h >>conftest.$ac_ext
19879cat >>conftest.$ac_ext <<_ACEOF
19880/* end confdefs.h.  */
19881$ac_includes_default
19882#include <$ac_header>
19883_ACEOF
19884rm -f conftest.$ac_objext
19885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19886  (eval $ac_compile) 2>&5
19887  ac_status=$?
19888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889  (exit $ac_status); } &&
19890         { ac_try='test -s conftest.$ac_objext'
19891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19892  (eval $ac_try) 2>&5
19893  ac_status=$?
19894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895  (exit $ac_status); }; }; then
19896  ac_header_compiler=yes
19897else
19898  echo "$as_me: failed program was:" >&5
19899sed 's/^/| /' conftest.$ac_ext >&5
19900
19901ac_header_compiler=no
19902fi
19903rm -f conftest.$ac_objext conftest.$ac_ext
19904echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19905echo "${ECHO_T}$ac_header_compiler" >&6
19906
19907# Is the header present?
19908echo "$as_me:$LINENO: checking $ac_header presence" >&5
19909echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19910cat >conftest.$ac_ext <<_ACEOF
19911#line $LINENO "configure"
19912/* confdefs.h.  */
19913_ACEOF
19914cat confdefs.h >>conftest.$ac_ext
19915cat >>conftest.$ac_ext <<_ACEOF
19916/* end confdefs.h.  */
19917#include <$ac_header>
19918_ACEOF
19919if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19920  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19921  ac_status=$?
19922  grep -v '^ *+' conftest.er1 >conftest.err
19923  rm -f conftest.er1
19924  cat conftest.err >&5
19925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926  (exit $ac_status); } >/dev/null; then
19927  if test -s conftest.err; then
19928    ac_cpp_err=$ac_c_preproc_warn_flag
19929  else
19930    ac_cpp_err=
19931  fi
19932else
19933  ac_cpp_err=yes
19934fi
19935if test -z "$ac_cpp_err"; then
19936  ac_header_preproc=yes
19937else
19938  echo "$as_me: failed program was:" >&5
19939sed 's/^/| /' conftest.$ac_ext >&5
19940
19941  ac_header_preproc=no
19942fi
19943rm -f conftest.err conftest.$ac_ext
19944echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19945echo "${ECHO_T}$ac_header_preproc" >&6
19946
19947# So?  What about this header?
19948case $ac_header_compiler:$ac_header_preproc in
19949  yes:no )
19950    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19951echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19952    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19953echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19954    (
19955      cat <<\_ASBOX
19956## ------------------------------------ ##
19957## Report this to bug-autoconf@gnu.org. ##
19958## ------------------------------------ ##
19959_ASBOX
19960    ) |
19961      sed "s/^/$as_me: WARNING:     /" >&2
19962    ;;
19963  no:yes )
19964    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19965echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19966    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19967echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19968    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19969echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19970    (
19971      cat <<\_ASBOX
19972## ------------------------------------ ##
19973## Report this to bug-autoconf@gnu.org. ##
19974## ------------------------------------ ##
19975_ASBOX
19976    ) |
19977      sed "s/^/$as_me: WARNING:     /" >&2
19978    ;;
19979esac
19980echo "$as_me:$LINENO: checking for $ac_header" >&5
19981echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19982if eval "test \"\${$as_ac_Header+set}\" = set"; then
19983  echo $ECHO_N "(cached) $ECHO_C" >&6
19984else
19985  eval "$as_ac_Header=$ac_header_preproc"
19986fi
19987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19988echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19989
19990fi
19991if test `eval echo '${'$as_ac_Header'}'` = yes; then
19992  cat >>confdefs.h <<_ACEOF
19993#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19994_ACEOF
19995
19996fi
19997
19998done
19999
20000
20001
20002echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20003echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20004if test "${ac_cv_c_const+set}" = set; then
20005  echo $ECHO_N "(cached) $ECHO_C" >&6
20006else
20007  cat >conftest.$ac_ext <<_ACEOF
20008#line $LINENO "configure"
20009/* confdefs.h.  */
20010_ACEOF
20011cat confdefs.h >>conftest.$ac_ext
20012cat >>conftest.$ac_ext <<_ACEOF
20013/* end confdefs.h.  */
20014
20015int
20016main ()
20017{
20018/* FIXME: Include the comments suggested by Paul. */
20019#ifndef __cplusplus
20020  /* Ultrix mips cc rejects this.  */
20021  typedef int charset[2];
20022  const charset x;
20023  /* SunOS 4.1.1 cc rejects this.  */
20024  char const *const *ccp;
20025  char **p;
20026  /* NEC SVR4.0.2 mips cc rejects this.  */
20027  struct point {int x, y;};
20028  static struct point const zero = {0,0};
20029  /* AIX XL C 1.02.0.0 rejects this.
20030     It does not let you subtract one const X* pointer from another in
20031     an arm of an if-expression whose if-part is not a constant
20032     expression */
20033  const char *g = "string";
20034  ccp = &g + (g ? g-g : 0);
20035  /* HPUX 7.0 cc rejects these. */
20036  ++ccp;
20037  p = (char**) ccp;
20038  ccp = (char const *const *) p;
20039  { /* SCO 3.2v4 cc rejects this.  */
20040    char *t;
20041    char const *s = 0 ? (char *) 0 : (char const *) 0;
20042
20043    *t++ = 0;
20044  }
20045  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20046    int x[] = {25, 17};
20047    const int *foo = &x[0];
20048    ++foo;
20049  }
20050  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20051    typedef const int *iptr;
20052    iptr p = 0;
20053    ++p;
20054  }
20055  { /* AIX XL C 1.02.0.0 rejects this saying
20056       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20057    struct s { int j; const int *ap[3]; };
20058    struct s *b; b->j = 5;
20059  }
20060  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20061    const int foo = 10;
20062  }
20063#endif
20064
20065  ;
20066  return 0;
20067}
20068_ACEOF
20069rm -f conftest.$ac_objext
20070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20071  (eval $ac_compile) 2>&5
20072  ac_status=$?
20073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074  (exit $ac_status); } &&
20075         { ac_try='test -s conftest.$ac_objext'
20076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20077  (eval $ac_try) 2>&5
20078  ac_status=$?
20079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080  (exit $ac_status); }; }; then
20081  ac_cv_c_const=yes
20082else
20083  echo "$as_me: failed program was:" >&5
20084sed 's/^/| /' conftest.$ac_ext >&5
20085
20086ac_cv_c_const=no
20087fi
20088rm -f conftest.$ac_objext conftest.$ac_ext
20089fi
20090echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20091echo "${ECHO_T}$ac_cv_c_const" >&6
20092if test $ac_cv_c_const = no; then
20093
20094cat >>confdefs.h <<\_ACEOF
20095#define const
20096_ACEOF
20097
20098fi
20099
20100echo "$as_me:$LINENO: checking for inline" >&5
20101echo $ECHO_N "checking for inline... $ECHO_C" >&6
20102if test "${ac_cv_c_inline+set}" = set; then
20103  echo $ECHO_N "(cached) $ECHO_C" >&6
20104else
20105  ac_cv_c_inline=no
20106for ac_kw in inline __inline__ __inline; do
20107  cat >conftest.$ac_ext <<_ACEOF
20108#line $LINENO "configure"
20109/* confdefs.h.  */
20110_ACEOF
20111cat confdefs.h >>conftest.$ac_ext
20112cat >>conftest.$ac_ext <<_ACEOF
20113/* end confdefs.h.  */
20114#ifndef __cplusplus
20115typedef int foo_t;
20116static $ac_kw foo_t static_foo () {return 0; }
20117$ac_kw foo_t foo () {return 0; }
20118#endif
20119
20120_ACEOF
20121rm -f conftest.$ac_objext
20122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20123  (eval $ac_compile) 2>&5
20124  ac_status=$?
20125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126  (exit $ac_status); } &&
20127         { ac_try='test -s conftest.$ac_objext'
20128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129  (eval $ac_try) 2>&5
20130  ac_status=$?
20131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132  (exit $ac_status); }; }; then
20133  ac_cv_c_inline=$ac_kw; break
20134else
20135  echo "$as_me: failed program was:" >&5
20136sed 's/^/| /' conftest.$ac_ext >&5
20137
20138fi
20139rm -f conftest.$ac_objext conftest.$ac_ext
20140done
20141
20142fi
20143echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20144echo "${ECHO_T}$ac_cv_c_inline" >&6
20145case $ac_cv_c_inline in
20146  inline | yes) ;;
20147  no)
20148cat >>confdefs.h <<\_ACEOF
20149#define inline
20150_ACEOF
20151 ;;
20152  *)  cat >>confdefs.h <<_ACEOF
20153#define inline $ac_cv_c_inline
20154_ACEOF
20155 ;;
20156esac
20157
20158
20159echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20160echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20161if test "${ac_cv_c_bigendian+set}" = set; then
20162  echo $ECHO_N "(cached) $ECHO_C" >&6
20163else
20164  # See if sys/param.h defines the BYTE_ORDER macro.
20165cat >conftest.$ac_ext <<_ACEOF
20166#line $LINENO "configure"
20167/* confdefs.h.  */
20168_ACEOF
20169cat confdefs.h >>conftest.$ac_ext
20170cat >>conftest.$ac_ext <<_ACEOF
20171/* end confdefs.h.  */
20172#include <sys/types.h>
20173#include <sys/param.h>
20174
20175int
20176main ()
20177{
20178#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20179 bogus endian macros
20180#endif
20181
20182  ;
20183  return 0;
20184}
20185_ACEOF
20186rm -f conftest.$ac_objext
20187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20188  (eval $ac_compile) 2>&5
20189  ac_status=$?
20190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191  (exit $ac_status); } &&
20192         { ac_try='test -s conftest.$ac_objext'
20193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20194  (eval $ac_try) 2>&5
20195  ac_status=$?
20196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197  (exit $ac_status); }; }; then
20198  # It does; now see whether it defined to BIG_ENDIAN or not.
20199cat >conftest.$ac_ext <<_ACEOF
20200#line $LINENO "configure"
20201/* confdefs.h.  */
20202_ACEOF
20203cat confdefs.h >>conftest.$ac_ext
20204cat >>conftest.$ac_ext <<_ACEOF
20205/* end confdefs.h.  */
20206#include <sys/types.h>
20207#include <sys/param.h>
20208
20209int
20210main ()
20211{
20212#if BYTE_ORDER != BIG_ENDIAN
20213 not big endian
20214#endif
20215
20216  ;
20217  return 0;
20218}
20219_ACEOF
20220rm -f conftest.$ac_objext
20221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20222  (eval $ac_compile) 2>&5
20223  ac_status=$?
20224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225  (exit $ac_status); } &&
20226         { ac_try='test -s conftest.$ac_objext'
20227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20228  (eval $ac_try) 2>&5
20229  ac_status=$?
20230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231  (exit $ac_status); }; }; then
20232  ac_cv_c_bigendian=yes
20233else
20234  echo "$as_me: failed program was:" >&5
20235sed 's/^/| /' conftest.$ac_ext >&5
20236
20237ac_cv_c_bigendian=no
20238fi
20239rm -f conftest.$ac_objext conftest.$ac_ext
20240else
20241  echo "$as_me: failed program was:" >&5
20242sed 's/^/| /' conftest.$ac_ext >&5
20243
20244# It does not; compile a test program.
20245if test "$cross_compiling" = yes; then
20246  # try to guess the endianness by grepping values into an object file
20247  ac_cv_c_bigendian=unknown
20248  cat >conftest.$ac_ext <<_ACEOF
20249#line $LINENO "configure"
20250/* confdefs.h.  */
20251_ACEOF
20252cat confdefs.h >>conftest.$ac_ext
20253cat >>conftest.$ac_ext <<_ACEOF
20254/* end confdefs.h.  */
20255short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20256short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20257void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20258short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20259short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20260void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20261int
20262main ()
20263{
20264 _ascii (); _ebcdic ();
20265  ;
20266  return 0;
20267}
20268_ACEOF
20269rm -f conftest.$ac_objext
20270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20271  (eval $ac_compile) 2>&5
20272  ac_status=$?
20273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274  (exit $ac_status); } &&
20275         { ac_try='test -s conftest.$ac_objext'
20276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20277  (eval $ac_try) 2>&5
20278  ac_status=$?
20279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280  (exit $ac_status); }; }; then
20281  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20282  ac_cv_c_bigendian=yes
20283fi
20284if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20285  if test "$ac_cv_c_bigendian" = unknown; then
20286    ac_cv_c_bigendian=no
20287  else
20288    # finding both strings is unlikely to happen, but who knows?
20289    ac_cv_c_bigendian=unknown
20290  fi
20291fi
20292else
20293  echo "$as_me: failed program was:" >&5
20294sed 's/^/| /' conftest.$ac_ext >&5
20295
20296fi
20297rm -f conftest.$ac_objext conftest.$ac_ext
20298else
20299  cat >conftest.$ac_ext <<_ACEOF
20300#line $LINENO "configure"
20301/* confdefs.h.  */
20302_ACEOF
20303cat confdefs.h >>conftest.$ac_ext
20304cat >>conftest.$ac_ext <<_ACEOF
20305/* end confdefs.h.  */
20306int
20307main ()
20308{
20309  /* Are we little or big endian?  From Harbison&Steele.  */
20310  union
20311  {
20312    long l;
20313    char c[sizeof (long)];
20314  } u;
20315  u.l = 1;
20316  exit (u.c[sizeof (long) - 1] == 1);
20317}
20318_ACEOF
20319rm -f conftest$ac_exeext
20320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20321  (eval $ac_link) 2>&5
20322  ac_status=$?
20323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20326  (eval $ac_try) 2>&5
20327  ac_status=$?
20328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329  (exit $ac_status); }; }; then
20330  ac_cv_c_bigendian=no
20331else
20332  echo "$as_me: program exited with status $ac_status" >&5
20333echo "$as_me: failed program was:" >&5
20334sed 's/^/| /' conftest.$ac_ext >&5
20335
20336( exit $ac_status )
20337ac_cv_c_bigendian=yes
20338fi
20339rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20340fi
20341fi
20342rm -f conftest.$ac_objext conftest.$ac_ext
20343fi
20344echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20345echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20346case $ac_cv_c_bigendian in
20347  yes)
20348    cat >>confdefs.h <<\_ACEOF
20349#define ENDIAN_BIG 1
20350_ACEOF
20351 ;;
20352  no)
20353    cat >>confdefs.h <<\_ACEOF
20354#define ENDIAN_LITTLE 1
20355_ACEOF
20356 ;;
20357  *)
20358    { { echo "$as_me:$LINENO: error: unknown endianness
20359presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20360echo "$as_me: error: unknown endianness
20361presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20362   { (exit 1); exit 1; }; } ;;
20363esac
20364
20365
20366echo "$as_me:$LINENO: checking for pid_t" >&5
20367echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20368if test "${ac_cv_type_pid_t+set}" = set; then
20369  echo $ECHO_N "(cached) $ECHO_C" >&6
20370else
20371  cat >conftest.$ac_ext <<_ACEOF
20372#line $LINENO "configure"
20373/* confdefs.h.  */
20374_ACEOF
20375cat confdefs.h >>conftest.$ac_ext
20376cat >>conftest.$ac_ext <<_ACEOF
20377/* end confdefs.h.  */
20378$ac_includes_default
20379int
20380main ()
20381{
20382if ((pid_t *) 0)
20383  return 0;
20384if (sizeof (pid_t))
20385  return 0;
20386  ;
20387  return 0;
20388}
20389_ACEOF
20390rm -f conftest.$ac_objext
20391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20392  (eval $ac_compile) 2>&5
20393  ac_status=$?
20394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395  (exit $ac_status); } &&
20396         { ac_try='test -s conftest.$ac_objext'
20397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20398  (eval $ac_try) 2>&5
20399  ac_status=$?
20400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401  (exit $ac_status); }; }; then
20402  ac_cv_type_pid_t=yes
20403else
20404  echo "$as_me: failed program was:" >&5
20405sed 's/^/| /' conftest.$ac_ext >&5
20406
20407ac_cv_type_pid_t=no
20408fi
20409rm -f conftest.$ac_objext conftest.$ac_ext
20410fi
20411echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20412echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20413if test $ac_cv_type_pid_t = yes; then
20414  :
20415else
20416
20417cat >>confdefs.h <<_ACEOF
20418#define pid_t int
20419_ACEOF
20420
20421fi
20422
20423echo "$as_me:$LINENO: checking for size_t" >&5
20424echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20425if test "${ac_cv_type_size_t+set}" = set; then
20426  echo $ECHO_N "(cached) $ECHO_C" >&6
20427else
20428  cat >conftest.$ac_ext <<_ACEOF
20429#line $LINENO "configure"
20430/* confdefs.h.  */
20431_ACEOF
20432cat confdefs.h >>conftest.$ac_ext
20433cat >>conftest.$ac_ext <<_ACEOF
20434/* end confdefs.h.  */
20435$ac_includes_default
20436int
20437main ()
20438{
20439if ((size_t *) 0)
20440  return 0;
20441if (sizeof (size_t))
20442  return 0;
20443  ;
20444  return 0;
20445}
20446_ACEOF
20447rm -f conftest.$ac_objext
20448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20449  (eval $ac_compile) 2>&5
20450  ac_status=$?
20451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452  (exit $ac_status); } &&
20453         { ac_try='test -s conftest.$ac_objext'
20454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20455  (eval $ac_try) 2>&5
20456  ac_status=$?
20457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458  (exit $ac_status); }; }; then
20459  ac_cv_type_size_t=yes
20460else
20461  echo "$as_me: failed program was:" >&5
20462sed 's/^/| /' conftest.$ac_ext >&5
20463
20464ac_cv_type_size_t=no
20465fi
20466rm -f conftest.$ac_objext conftest.$ac_ext
20467fi
20468echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20469echo "${ECHO_T}$ac_cv_type_size_t" >&6
20470if test $ac_cv_type_size_t = yes; then
20471  :
20472else
20473
20474cat >>confdefs.h <<_ACEOF
20475#define size_t unsigned
20476_ACEOF
20477
20478fi
20479
20480echo "$as_me:$LINENO: checking for int64_t" >&5
20481echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20482if test "${ac_cv_type_int64_t+set}" = set; then
20483  echo $ECHO_N "(cached) $ECHO_C" >&6
20484else
20485  cat >conftest.$ac_ext <<_ACEOF
20486#line $LINENO "configure"
20487/* confdefs.h.  */
20488_ACEOF
20489cat confdefs.h >>conftest.$ac_ext
20490cat >>conftest.$ac_ext <<_ACEOF
20491/* end confdefs.h.  */
20492$ac_includes_default
20493int
20494main ()
20495{
20496if ((int64_t *) 0)
20497  return 0;
20498if (sizeof (int64_t))
20499  return 0;
20500  ;
20501  return 0;
20502}
20503_ACEOF
20504rm -f conftest.$ac_objext
20505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20506  (eval $ac_compile) 2>&5
20507  ac_status=$?
20508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509  (exit $ac_status); } &&
20510         { ac_try='test -s conftest.$ac_objext'
20511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20512  (eval $ac_try) 2>&5
20513  ac_status=$?
20514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515  (exit $ac_status); }; }; then
20516  ac_cv_type_int64_t=yes
20517else
20518  echo "$as_me: failed program was:" >&5
20519sed 's/^/| /' conftest.$ac_ext >&5
20520
20521ac_cv_type_int64_t=no
20522fi
20523rm -f conftest.$ac_objext conftest.$ac_ext
20524fi
20525echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20526echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20527if test $ac_cv_type_int64_t = yes; then
20528
20529cat >>confdefs.h <<_ACEOF
20530#define HAVE_INT64_T 1
20531_ACEOF
20532
20533
20534else
20535  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20536echo "$as_me: error: Type int64_t required but not found" >&2;}
20537   { (exit 1); exit 1; }; }
20538fi
20539
20540echo "$as_me:$LINENO: checking for uint64_t" >&5
20541echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20542if test "${ac_cv_type_uint64_t+set}" = set; then
20543  echo $ECHO_N "(cached) $ECHO_C" >&6
20544else
20545  cat >conftest.$ac_ext <<_ACEOF
20546#line $LINENO "configure"
20547/* confdefs.h.  */
20548_ACEOF
20549cat confdefs.h >>conftest.$ac_ext
20550cat >>conftest.$ac_ext <<_ACEOF
20551/* end confdefs.h.  */
20552$ac_includes_default
20553int
20554main ()
20555{
20556if ((uint64_t *) 0)
20557  return 0;
20558if (sizeof (uint64_t))
20559  return 0;
20560  ;
20561  return 0;
20562}
20563_ACEOF
20564rm -f conftest.$ac_objext
20565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20566  (eval $ac_compile) 2>&5
20567  ac_status=$?
20568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569  (exit $ac_status); } &&
20570         { ac_try='test -s conftest.$ac_objext'
20571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20572  (eval $ac_try) 2>&5
20573  ac_status=$?
20574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575  (exit $ac_status); }; }; then
20576  ac_cv_type_uint64_t=yes
20577else
20578  echo "$as_me: failed program was:" >&5
20579sed 's/^/| /' conftest.$ac_ext >&5
20580
20581ac_cv_type_uint64_t=no
20582fi
20583rm -f conftest.$ac_objext conftest.$ac_ext
20584fi
20585echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20586echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20587if test $ac_cv_type_uint64_t = yes; then
20588
20589cat >>confdefs.h <<_ACEOF
20590#define HAVE_UINT64_T 1
20591_ACEOF
20592
20593
20594else
20595  { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20596echo "$as_me: error: Type uint64_t required but not found" >&2;}
20597   { (exit 1); exit 1; }; }
20598fi
20599
20600echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20601echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20602if test "${ac_cv_header_time+set}" = set; then
20603  echo $ECHO_N "(cached) $ECHO_C" >&6
20604else
20605  cat >conftest.$ac_ext <<_ACEOF
20606#line $LINENO "configure"
20607/* confdefs.h.  */
20608_ACEOF
20609cat confdefs.h >>conftest.$ac_ext
20610cat >>conftest.$ac_ext <<_ACEOF
20611/* end confdefs.h.  */
20612#include <sys/types.h>
20613#include <sys/time.h>
20614#include <time.h>
20615
20616int
20617main ()
20618{
20619if ((struct tm *) 0)
20620return 0;
20621  ;
20622  return 0;
20623}
20624_ACEOF
20625rm -f conftest.$ac_objext
20626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20627  (eval $ac_compile) 2>&5
20628  ac_status=$?
20629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630  (exit $ac_status); } &&
20631         { ac_try='test -s conftest.$ac_objext'
20632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20633  (eval $ac_try) 2>&5
20634  ac_status=$?
20635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636  (exit $ac_status); }; }; then
20637  ac_cv_header_time=yes
20638else
20639  echo "$as_me: failed program was:" >&5
20640sed 's/^/| /' conftest.$ac_ext >&5
20641
20642ac_cv_header_time=no
20643fi
20644rm -f conftest.$ac_objext conftest.$ac_ext
20645fi
20646echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20647echo "${ECHO_T}$ac_cv_header_time" >&6
20648if test $ac_cv_header_time = yes; then
20649
20650cat >>confdefs.h <<\_ACEOF
20651#define TIME_WITH_SYS_TIME 1
20652_ACEOF
20653
20654fi
20655
20656echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20657echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20658if test "${ac_cv_struct_tm+set}" = set; then
20659  echo $ECHO_N "(cached) $ECHO_C" >&6
20660else
20661  cat >conftest.$ac_ext <<_ACEOF
20662#line $LINENO "configure"
20663/* confdefs.h.  */
20664_ACEOF
20665cat confdefs.h >>conftest.$ac_ext
20666cat >>conftest.$ac_ext <<_ACEOF
20667/* end confdefs.h.  */
20668#include <sys/types.h>
20669#include <time.h>
20670
20671int
20672main ()
20673{
20674struct tm *tp; tp->tm_sec;
20675  ;
20676  return 0;
20677}
20678_ACEOF
20679rm -f conftest.$ac_objext
20680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20681  (eval $ac_compile) 2>&5
20682  ac_status=$?
20683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684  (exit $ac_status); } &&
20685         { ac_try='test -s conftest.$ac_objext'
20686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20687  (eval $ac_try) 2>&5
20688  ac_status=$?
20689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690  (exit $ac_status); }; }; then
20691  ac_cv_struct_tm=time.h
20692else
20693  echo "$as_me: failed program was:" >&5
20694sed 's/^/| /' conftest.$ac_ext >&5
20695
20696ac_cv_struct_tm=sys/time.h
20697fi
20698rm -f conftest.$ac_objext conftest.$ac_ext
20699fi
20700echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20701echo "${ECHO_T}$ac_cv_struct_tm" >&6
20702if test $ac_cv_struct_tm = sys/time.h; then
20703
20704cat >>confdefs.h <<\_ACEOF
20705#define TM_IN_SYS_TIME 1
20706_ACEOF
20707
20708fi
20709
20710
20711echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20712echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20713if test "${ac_cv_cxx_namespaces+set}" = set; then
20714  echo $ECHO_N "(cached) $ECHO_C" >&6
20715else
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.  */
20731namespace Outer { namespace Inner { int i = 0; }}
20732int
20733main ()
20734{
20735using namespace Outer::Inner; return i;
20736  ;
20737  return 0;
20738}
20739_ACEOF
20740rm -f conftest.$ac_objext
20741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20742  (eval $ac_compile) 2>&5
20743  ac_status=$?
20744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745  (exit $ac_status); } &&
20746         { ac_try='test -s conftest.$ac_objext'
20747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20748  (eval $ac_try) 2>&5
20749  ac_status=$?
20750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751  (exit $ac_status); }; }; then
20752  ac_cv_cxx_namespaces=yes
20753else
20754  echo "$as_me: failed program was:" >&5
20755sed 's/^/| /' conftest.$ac_ext >&5
20756
20757ac_cv_cxx_namespaces=no
20758fi
20759rm -f conftest.$ac_objext conftest.$ac_ext
20760 ac_ext=c
20761ac_cpp='$CPP $CPPFLAGS'
20762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20764ac_compiler_gnu=$ac_cv_c_compiler_gnu
20765
20766
20767fi
20768echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20769echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20770if test "$ac_cv_cxx_namespaces" = yes; then
20771
20772cat >>confdefs.h <<\_ACEOF
20773#define HAVE_NAMESPACES
20774_ACEOF
20775
20776fi
20777
20778echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20779echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20780if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20781  echo $ECHO_N "(cached) $ECHO_C" >&6
20782else
20783
20784
20785
20786  ac_ext=cc
20787ac_cpp='$CXXCPP $CPPFLAGS'
20788ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20789ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20790ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20791
20792  cat >conftest.$ac_ext <<_ACEOF
20793#line $LINENO "configure"
20794/* confdefs.h.  */
20795_ACEOF
20796cat confdefs.h >>conftest.$ac_ext
20797cat >>conftest.$ac_ext <<_ACEOF
20798/* end confdefs.h.  */
20799#include <ext/hash_map>
20800#ifdef HAVE_NAMESPACES
20801using namespace std;
20802#endif
20803int
20804main ()
20805{
20806hash_map<int, int> t; return 0;
20807  ;
20808  return 0;
20809}
20810_ACEOF
20811rm -f conftest.$ac_objext
20812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20813  (eval $ac_compile) 2>&5
20814  ac_status=$?
20815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816  (exit $ac_status); } &&
20817         { ac_try='test -s conftest.$ac_objext'
20818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20819  (eval $ac_try) 2>&5
20820  ac_status=$?
20821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822  (exit $ac_status); }; }; then
20823  ac_cv_cxx_have_ext_hash_map=std
20824else
20825  echo "$as_me: failed program was:" >&5
20826sed 's/^/| /' conftest.$ac_ext >&5
20827
20828ac_cv_cxx_have_ext_hash_map=no
20829fi
20830rm -f conftest.$ac_objext conftest.$ac_ext
20831  cat >conftest.$ac_ext <<_ACEOF
20832#line $LINENO "configure"
20833/* confdefs.h.  */
20834_ACEOF
20835cat confdefs.h >>conftest.$ac_ext
20836cat >>conftest.$ac_ext <<_ACEOF
20837/* end confdefs.h.  */
20838#include <ext/hash_map>
20839#ifdef HAVE_NAMESPACES
20840using namespace __gnu_cxx;
20841#endif
20842int
20843main ()
20844{
20845hash_map<int, int> t; return 0;
20846  ;
20847  return 0;
20848}
20849_ACEOF
20850rm -f conftest.$ac_objext
20851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20852  (eval $ac_compile) 2>&5
20853  ac_status=$?
20854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855  (exit $ac_status); } &&
20856         { ac_try='test -s conftest.$ac_objext'
20857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20858  (eval $ac_try) 2>&5
20859  ac_status=$?
20860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861  (exit $ac_status); }; }; then
20862  ac_cv_cxx_have_ext_hash_map=gnu
20863else
20864  echo "$as_me: failed program was:" >&5
20865sed 's/^/| /' conftest.$ac_ext >&5
20866
20867ac_cv_cxx_have_ext_hash_map=no
20868fi
20869rm -f conftest.$ac_objext conftest.$ac_ext
20870  ac_ext=c
20871ac_cpp='$CPP $CPPFLAGS'
20872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20874ac_compiler_gnu=$ac_cv_c_compiler_gnu
20875
20876
20877fi
20878echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20879echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20880if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20881
20882cat >>confdefs.h <<\_ACEOF
20883#define HAVE_STD_EXT_HASH_MAP
20884_ACEOF
20885
20886fi
20887if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20888
20889cat >>confdefs.h <<\_ACEOF
20890#define HAVE_GNU_EXT_HASH_MAP
20891_ACEOF
20892
20893fi
20894
20895echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20896echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20897if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20898  echo $ECHO_N "(cached) $ECHO_C" >&6
20899else
20900
20901
20902
20903  ac_ext=cc
20904ac_cpp='$CXXCPP $CPPFLAGS'
20905ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20906ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20907ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20908
20909  cat >conftest.$ac_ext <<_ACEOF
20910#line $LINENO "configure"
20911/* confdefs.h.  */
20912_ACEOF
20913cat confdefs.h >>conftest.$ac_ext
20914cat >>conftest.$ac_ext <<_ACEOF
20915/* end confdefs.h.  */
20916#include <ext/hash_set>
20917#ifdef HAVE_NAMESPACES
20918using namespace std;
20919#endif
20920int
20921main ()
20922{
20923hash_set<int> t; return 0;
20924  ;
20925  return 0;
20926}
20927_ACEOF
20928rm -f conftest.$ac_objext
20929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20930  (eval $ac_compile) 2>&5
20931  ac_status=$?
20932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933  (exit $ac_status); } &&
20934         { ac_try='test -s conftest.$ac_objext'
20935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20936  (eval $ac_try) 2>&5
20937  ac_status=$?
20938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939  (exit $ac_status); }; }; then
20940  ac_cv_cxx_have_ext_hash_set=std
20941else
20942  echo "$as_me: failed program was:" >&5
20943sed 's/^/| /' conftest.$ac_ext >&5
20944
20945ac_cv_cxx_have_ext_hash_set=no
20946fi
20947rm -f conftest.$ac_objext conftest.$ac_ext
20948  cat >conftest.$ac_ext <<_ACEOF
20949#line $LINENO "configure"
20950/* confdefs.h.  */
20951_ACEOF
20952cat confdefs.h >>conftest.$ac_ext
20953cat >>conftest.$ac_ext <<_ACEOF
20954/* end confdefs.h.  */
20955#include <ext/hash_set>
20956#ifdef HAVE_NAMESPACES
20957using namespace __gnu_cxx;
20958#endif
20959int
20960main ()
20961{
20962hash_set<int> t; return 0;
20963  ;
20964  return 0;
20965}
20966_ACEOF
20967rm -f conftest.$ac_objext
20968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20969  (eval $ac_compile) 2>&5
20970  ac_status=$?
20971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972  (exit $ac_status); } &&
20973         { ac_try='test -s conftest.$ac_objext'
20974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20975  (eval $ac_try) 2>&5
20976  ac_status=$?
20977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978  (exit $ac_status); }; }; then
20979  ac_cv_cxx_have_ext_hash_set=gnu
20980else
20981  echo "$as_me: failed program was:" >&5
20982sed 's/^/| /' conftest.$ac_ext >&5
20983
20984ac_cv_cxx_have_ext_hash_set=no
20985fi
20986rm -f conftest.$ac_objext conftest.$ac_ext
20987  ac_ext=c
20988ac_cpp='$CPP $CPPFLAGS'
20989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20991ac_compiler_gnu=$ac_cv_c_compiler_gnu
20992
20993
20994fi
20995echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20996echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20997if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20998
20999cat >>confdefs.h <<\_ACEOF
21000#define HAVE_STD_EXT_HASH_SET
21001_ACEOF
21002
21003fi
21004if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21005
21006cat >>confdefs.h <<\_ACEOF
21007#define HAVE_GNU_EXT_HASH_SET
21008_ACEOF
21009
21010fi
21011
21012echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21013echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21014if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21015  echo $ECHO_N "(cached) $ECHO_C" >&6
21016else
21017
21018
21019
21020  ac_ext=cc
21021ac_cpp='$CXXCPP $CPPFLAGS'
21022ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21023ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21024ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21025
21026  cat >conftest.$ac_ext <<_ACEOF
21027#line $LINENO "configure"
21028/* confdefs.h.  */
21029_ACEOF
21030cat confdefs.h >>conftest.$ac_ext
21031cat >>conftest.$ac_ext <<_ACEOF
21032/* end confdefs.h.  */
21033#include <ext/slist>
21034#ifdef HAVE_NAMESPACES
21035using namespace std;
21036#endif
21037int
21038main ()
21039{
21040slist<int> s; return 0;
21041  ;
21042  return 0;
21043}
21044_ACEOF
21045rm -f conftest.$ac_objext
21046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21047  (eval $ac_compile) 2>&5
21048  ac_status=$?
21049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050  (exit $ac_status); } &&
21051         { ac_try='test -s conftest.$ac_objext'
21052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21053  (eval $ac_try) 2>&5
21054  ac_status=$?
21055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056  (exit $ac_status); }; }; then
21057  ac_cv_cxx_have_ext_slist=std
21058else
21059  echo "$as_me: failed program was:" >&5
21060sed 's/^/| /' conftest.$ac_ext >&5
21061
21062ac_cv_cxx_have_ext_slist=no
21063fi
21064rm -f conftest.$ac_objext conftest.$ac_ext
21065  cat >conftest.$ac_ext <<_ACEOF
21066#line $LINENO "configure"
21067/* confdefs.h.  */
21068_ACEOF
21069cat confdefs.h >>conftest.$ac_ext
21070cat >>conftest.$ac_ext <<_ACEOF
21071/* end confdefs.h.  */
21072#include <ext/slist>
21073#ifdef HAVE_NAMESPACES
21074using namespace __gnu_cxx;
21075#endif
21076int
21077main ()
21078{
21079slist<int> s; return 0;
21080  ;
21081  return 0;
21082}
21083_ACEOF
21084rm -f conftest.$ac_objext
21085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21086  (eval $ac_compile) 2>&5
21087  ac_status=$?
21088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089  (exit $ac_status); } &&
21090         { ac_try='test -s conftest.$ac_objext'
21091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21092  (eval $ac_try) 2>&5
21093  ac_status=$?
21094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095  (exit $ac_status); }; }; then
21096  ac_cv_cxx_have_ext_slist=gnu
21097else
21098  echo "$as_me: failed program was:" >&5
21099sed 's/^/| /' conftest.$ac_ext >&5
21100
21101ac_cv_cxx_have_ext_slist=no
21102fi
21103rm -f conftest.$ac_objext conftest.$ac_ext
21104
21105  ac_ext=c
21106ac_cpp='$CPP $CPPFLAGS'
21107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21109ac_compiler_gnu=$ac_cv_c_compiler_gnu
21110
21111
21112fi
21113echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21114echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21115if test "$ac_cv_cxx_have_ext_slist" = std; then
21116
21117cat >>confdefs.h <<\_ACEOF
21118#define HAVE_EXT_SLIST std
21119_ACEOF
21120
21121fi
21122if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21123
21124cat >>confdefs.h <<\_ACEOF
21125#define HAVE_EXT_SLIST gnu
21126_ACEOF
21127
21128fi
21129
21130echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21131echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21132if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21133  echo $ECHO_N "(cached) $ECHO_C" >&6
21134else
21135
21136
21137
21138  ac_ext=cc
21139ac_cpp='$CXXCPP $CPPFLAGS'
21140ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21141ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21142ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21143
21144  cat >conftest.$ac_ext <<_ACEOF
21145#line $LINENO "configure"
21146/* confdefs.h.  */
21147_ACEOF
21148cat confdefs.h >>conftest.$ac_ext
21149cat >>conftest.$ac_ext <<_ACEOF
21150/* end confdefs.h.  */
21151#include <iterator>
21152#ifdef HAVE_NAMESPACES
21153using namespace std;
21154#endif
21155int
21156main ()
21157{
21158iterator<int,int,int> t; return 0;
21159  ;
21160  return 0;
21161}
21162_ACEOF
21163rm -f conftest.$ac_objext
21164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21165  (eval $ac_compile) 2>&5
21166  ac_status=$?
21167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168  (exit $ac_status); } &&
21169         { ac_try='test -s conftest.$ac_objext'
21170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21171  (eval $ac_try) 2>&5
21172  ac_status=$?
21173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174  (exit $ac_status); }; }; then
21175  ac_cv_cxx_have_std_iterator=yes
21176else
21177  echo "$as_me: failed program was:" >&5
21178sed 's/^/| /' conftest.$ac_ext >&5
21179
21180ac_cv_cxx_have_std_iterator=no
21181fi
21182rm -f conftest.$ac_objext conftest.$ac_ext
21183  ac_ext=c
21184ac_cpp='$CPP $CPPFLAGS'
21185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21187ac_compiler_gnu=$ac_cv_c_compiler_gnu
21188
21189
21190fi
21191echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21192echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21193if test "$ac_cv_cxx_have_std_iterator" = yes; then
21194
21195cat >>confdefs.h <<\_ACEOF
21196#define HAVE_STD_ITERATOR
21197_ACEOF
21198
21199fi
21200
21201echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21202echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21203if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21204  echo $ECHO_N "(cached) $ECHO_C" >&6
21205else
21206
21207
21208
21209  ac_ext=cc
21210ac_cpp='$CXXCPP $CPPFLAGS'
21211ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21212ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21213ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21214
21215  cat >conftest.$ac_ext <<_ACEOF
21216#line $LINENO "configure"
21217/* confdefs.h.  */
21218_ACEOF
21219cat confdefs.h >>conftest.$ac_ext
21220cat >>conftest.$ac_ext <<_ACEOF
21221/* end confdefs.h.  */
21222#include <iterator>
21223#ifdef HAVE_NAMESPACES
21224using namespace std;
21225#endif
21226int
21227main ()
21228{
21229bidirectional_iterator<int,int> t; return 0;
21230  ;
21231  return 0;
21232}
21233_ACEOF
21234rm -f conftest.$ac_objext
21235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21236  (eval $ac_compile) 2>&5
21237  ac_status=$?
21238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239  (exit $ac_status); } &&
21240         { ac_try='test -s conftest.$ac_objext'
21241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21242  (eval $ac_try) 2>&5
21243  ac_status=$?
21244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245  (exit $ac_status); }; }; then
21246  ac_cv_cxx_have_bi_iterator=yes
21247else
21248  echo "$as_me: failed program was:" >&5
21249sed 's/^/| /' conftest.$ac_ext >&5
21250
21251ac_cv_cxx_have_bi_iterator=no
21252fi
21253rm -f conftest.$ac_objext conftest.$ac_ext
21254  ac_ext=c
21255ac_cpp='$CPP $CPPFLAGS'
21256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21258ac_compiler_gnu=$ac_cv_c_compiler_gnu
21259
21260
21261fi
21262echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21263echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21264if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21265
21266cat >>confdefs.h <<\_ACEOF
21267#define HAVE_BI_ITERATOR
21268_ACEOF
21269
21270fi
21271
21272echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21273echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21274if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21275  echo $ECHO_N "(cached) $ECHO_C" >&6
21276else
21277
21278
21279
21280  ac_ext=cc
21281ac_cpp='$CXXCPP $CPPFLAGS'
21282ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21283ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21284ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21285
21286  cat >conftest.$ac_ext <<_ACEOF
21287#line $LINENO "configure"
21288/* confdefs.h.  */
21289_ACEOF
21290cat confdefs.h >>conftest.$ac_ext
21291cat >>conftest.$ac_ext <<_ACEOF
21292/* end confdefs.h.  */
21293#include <iterator>
21294#ifdef HAVE_NAMESPACES
21295using namespace std;
21296#endif
21297int
21298main ()
21299{
21300forward_iterator<int,int> t; return 0;
21301  ;
21302  return 0;
21303}
21304_ACEOF
21305rm -f conftest.$ac_objext
21306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21307  (eval $ac_compile) 2>&5
21308  ac_status=$?
21309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310  (exit $ac_status); } &&
21311         { ac_try='test -s conftest.$ac_objext'
21312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21313  (eval $ac_try) 2>&5
21314  ac_status=$?
21315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316  (exit $ac_status); }; }; then
21317  ac_cv_cxx_have_fwd_iterator=yes
21318else
21319  echo "$as_me: failed program was:" >&5
21320sed 's/^/| /' conftest.$ac_ext >&5
21321
21322ac_cv_cxx_have_fwd_iterator=no
21323fi
21324rm -f conftest.$ac_objext conftest.$ac_ext
21325  ac_ext=c
21326ac_cpp='$CPP $CPPFLAGS'
21327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21329ac_compiler_gnu=$ac_cv_c_compiler_gnu
21330
21331
21332fi
21333echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21334echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21335if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21336
21337cat >>confdefs.h <<\_ACEOF
21338#define HAVE_FWD_ITERATOR
21339_ACEOF
21340
21341fi
21342
21343
21344# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21345# for constant arguments.  Useless!
21346echo "$as_me:$LINENO: checking for working alloca.h" >&5
21347echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21348if test "${ac_cv_working_alloca_h+set}" = set; then
21349  echo $ECHO_N "(cached) $ECHO_C" >&6
21350else
21351  cat >conftest.$ac_ext <<_ACEOF
21352#line $LINENO "configure"
21353/* confdefs.h.  */
21354_ACEOF
21355cat confdefs.h >>conftest.$ac_ext
21356cat >>conftest.$ac_ext <<_ACEOF
21357/* end confdefs.h.  */
21358#include <alloca.h>
21359int
21360main ()
21361{
21362char *p = (char *) alloca (2 * sizeof (int));
21363  ;
21364  return 0;
21365}
21366_ACEOF
21367rm -f conftest.$ac_objext conftest$ac_exeext
21368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21369  (eval $ac_link) 2>&5
21370  ac_status=$?
21371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372  (exit $ac_status); } &&
21373         { ac_try='test -s conftest$ac_exeext'
21374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21375  (eval $ac_try) 2>&5
21376  ac_status=$?
21377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378  (exit $ac_status); }; }; then
21379  ac_cv_working_alloca_h=yes
21380else
21381  echo "$as_me: failed program was:" >&5
21382sed 's/^/| /' conftest.$ac_ext >&5
21383
21384ac_cv_working_alloca_h=no
21385fi
21386rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21387fi
21388echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21389echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21390if test $ac_cv_working_alloca_h = yes; then
21391
21392cat >>confdefs.h <<\_ACEOF
21393#define HAVE_ALLOCA_H 1
21394_ACEOF
21395
21396fi
21397
21398echo "$as_me:$LINENO: checking for alloca" >&5
21399echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21400if test "${ac_cv_func_alloca_works+set}" = set; then
21401  echo $ECHO_N "(cached) $ECHO_C" >&6
21402else
21403  cat >conftest.$ac_ext <<_ACEOF
21404#line $LINENO "configure"
21405/* confdefs.h.  */
21406_ACEOF
21407cat confdefs.h >>conftest.$ac_ext
21408cat >>conftest.$ac_ext <<_ACEOF
21409/* end confdefs.h.  */
21410#ifdef __GNUC__
21411# define alloca __builtin_alloca
21412#else
21413# ifdef _MSC_VER
21414#  include <malloc.h>
21415#  define alloca _alloca
21416# else
21417#  if HAVE_ALLOCA_H
21418#   include <alloca.h>
21419#  else
21420#   ifdef _AIX
21421 #pragma alloca
21422#   else
21423#    ifndef alloca /* predefined by HP cc +Olibcalls */
21424char *alloca ();
21425#    endif
21426#   endif
21427#  endif
21428# endif
21429#endif
21430
21431int
21432main ()
21433{
21434char *p = (char *) alloca (1);
21435  ;
21436  return 0;
21437}
21438_ACEOF
21439rm -f conftest.$ac_objext conftest$ac_exeext
21440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21441  (eval $ac_link) 2>&5
21442  ac_status=$?
21443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444  (exit $ac_status); } &&
21445         { ac_try='test -s conftest$ac_exeext'
21446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21447  (eval $ac_try) 2>&5
21448  ac_status=$?
21449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450  (exit $ac_status); }; }; then
21451  ac_cv_func_alloca_works=yes
21452else
21453  echo "$as_me: failed program was:" >&5
21454sed 's/^/| /' conftest.$ac_ext >&5
21455
21456ac_cv_func_alloca_works=no
21457fi
21458rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21459fi
21460echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21461echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21462
21463if test $ac_cv_func_alloca_works = yes; then
21464
21465cat >>confdefs.h <<\_ACEOF
21466#define HAVE_ALLOCA 1
21467_ACEOF
21468
21469else
21470  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21471# that cause trouble.  Some versions do not even contain alloca or
21472# contain a buggy version.  If you still want to use their alloca,
21473# use ar to extract alloca.o from them instead of compiling alloca.c.
21474
21475ALLOCA=alloca.$ac_objext
21476
21477cat >>confdefs.h <<\_ACEOF
21478#define C_ALLOCA 1
21479_ACEOF
21480
21481
21482echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21483echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21484if test "${ac_cv_os_cray+set}" = set; then
21485  echo $ECHO_N "(cached) $ECHO_C" >&6
21486else
21487  cat >conftest.$ac_ext <<_ACEOF
21488#line $LINENO "configure"
21489/* confdefs.h.  */
21490_ACEOF
21491cat confdefs.h >>conftest.$ac_ext
21492cat >>conftest.$ac_ext <<_ACEOF
21493/* end confdefs.h.  */
21494#if defined(CRAY) && ! defined(CRAY2)
21495webecray
21496#else
21497wenotbecray
21498#endif
21499
21500_ACEOF
21501if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21502  $EGREP "webecray" >/dev/null 2>&1; then
21503  ac_cv_os_cray=yes
21504else
21505  ac_cv_os_cray=no
21506fi
21507rm -f conftest*
21508
21509fi
21510echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21511echo "${ECHO_T}$ac_cv_os_cray" >&6
21512if test $ac_cv_os_cray = yes; then
21513  for ac_func in _getb67 GETB67 getb67; do
21514    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21515echo "$as_me:$LINENO: checking for $ac_func" >&5
21516echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21517if eval "test \"\${$as_ac_var+set}\" = set"; then
21518  echo $ECHO_N "(cached) $ECHO_C" >&6
21519else
21520  cat >conftest.$ac_ext <<_ACEOF
21521#line $LINENO "configure"
21522/* confdefs.h.  */
21523_ACEOF
21524cat confdefs.h >>conftest.$ac_ext
21525cat >>conftest.$ac_ext <<_ACEOF
21526/* end confdefs.h.  */
21527/* System header to define __stub macros and hopefully few prototypes,
21528    which can conflict with char $ac_func (); below.
21529    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21530    <limits.h> exists even on freestanding compilers.  */
21531#ifdef __STDC__
21532# include <limits.h>
21533#else
21534# include <assert.h>
21535#endif
21536/* Override any gcc2 internal prototype to avoid an error.  */
21537#ifdef __cplusplus
21538extern "C"
21539{
21540#endif
21541/* We use char because int might match the return type of a gcc2
21542   builtin and then its argument prototype would still apply.  */
21543char $ac_func ();
21544/* The GNU C library defines this for functions which it implements
21545    to always fail with ENOSYS.  Some functions are actually named
21546    something starting with __ and the normal name is an alias.  */
21547#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21548choke me
21549#else
21550char (*f) () = $ac_func;
21551#endif
21552#ifdef __cplusplus
21553}
21554#endif
21555
21556int
21557main ()
21558{
21559return f != $ac_func;
21560  ;
21561  return 0;
21562}
21563_ACEOF
21564rm -f conftest.$ac_objext conftest$ac_exeext
21565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21566  (eval $ac_link) 2>&5
21567  ac_status=$?
21568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569  (exit $ac_status); } &&
21570         { ac_try='test -s conftest$ac_exeext'
21571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21572  (eval $ac_try) 2>&5
21573  ac_status=$?
21574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575  (exit $ac_status); }; }; then
21576  eval "$as_ac_var=yes"
21577else
21578  echo "$as_me: failed program was:" >&5
21579sed 's/^/| /' conftest.$ac_ext >&5
21580
21581eval "$as_ac_var=no"
21582fi
21583rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21584fi
21585echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21586echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21587if test `eval echo '${'$as_ac_var'}'` = yes; then
21588
21589cat >>confdefs.h <<_ACEOF
21590#define CRAY_STACKSEG_END $ac_func
21591_ACEOF
21592
21593    break
21594fi
21595
21596  done
21597fi
21598
21599echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21600echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21601if test "${ac_cv_c_stack_direction+set}" = set; then
21602  echo $ECHO_N "(cached) $ECHO_C" >&6
21603else
21604  if test "$cross_compiling" = yes; then
21605  ac_cv_c_stack_direction=0
21606else
21607  cat >conftest.$ac_ext <<_ACEOF
21608#line $LINENO "configure"
21609/* confdefs.h.  */
21610_ACEOF
21611cat confdefs.h >>conftest.$ac_ext
21612cat >>conftest.$ac_ext <<_ACEOF
21613/* end confdefs.h.  */
21614int
21615find_stack_direction ()
21616{
21617  static char *addr = 0;
21618  auto char dummy;
21619  if (addr == 0)
21620    {
21621      addr = &dummy;
21622      return find_stack_direction ();
21623    }
21624  else
21625    return (&dummy > addr) ? 1 : -1;
21626}
21627
21628int
21629main ()
21630{
21631  exit (find_stack_direction () < 0);
21632}
21633_ACEOF
21634rm -f conftest$ac_exeext
21635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21636  (eval $ac_link) 2>&5
21637  ac_status=$?
21638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21641  (eval $ac_try) 2>&5
21642  ac_status=$?
21643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644  (exit $ac_status); }; }; then
21645  ac_cv_c_stack_direction=1
21646else
21647  echo "$as_me: program exited with status $ac_status" >&5
21648echo "$as_me: failed program was:" >&5
21649sed 's/^/| /' conftest.$ac_ext >&5
21650
21651( exit $ac_status )
21652ac_cv_c_stack_direction=-1
21653fi
21654rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21655fi
21656fi
21657echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21658echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21659
21660cat >>confdefs.h <<_ACEOF
21661#define STACK_DIRECTION $ac_cv_c_stack_direction
21662_ACEOF
21663
21664
21665fi
21666
21667if test $ac_cv_c_compiler_gnu = yes; then
21668    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21669echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21670if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21671  echo $ECHO_N "(cached) $ECHO_C" >&6
21672else
21673    ac_pattern="Autoconf.*'x'"
21674  cat >conftest.$ac_ext <<_ACEOF
21675#line $LINENO "configure"
21676/* confdefs.h.  */
21677_ACEOF
21678cat confdefs.h >>conftest.$ac_ext
21679cat >>conftest.$ac_ext <<_ACEOF
21680/* end confdefs.h.  */
21681#include <sgtty.h>
21682Autoconf TIOCGETP
21683_ACEOF
21684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21685  $EGREP "$ac_pattern" >/dev/null 2>&1; then
21686  ac_cv_prog_gcc_traditional=yes
21687else
21688  ac_cv_prog_gcc_traditional=no
21689fi
21690rm -f conftest*
21691
21692
21693  if test $ac_cv_prog_gcc_traditional = no; then
21694    cat >conftest.$ac_ext <<_ACEOF
21695#line $LINENO "configure"
21696/* confdefs.h.  */
21697_ACEOF
21698cat confdefs.h >>conftest.$ac_ext
21699cat >>conftest.$ac_ext <<_ACEOF
21700/* end confdefs.h.  */
21701#include <termio.h>
21702Autoconf TCGETA
21703_ACEOF
21704if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21705  $EGREP "$ac_pattern" >/dev/null 2>&1; then
21706  ac_cv_prog_gcc_traditional=yes
21707fi
21708rm -f conftest*
21709
21710  fi
21711fi
21712echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21713echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21714  if test $ac_cv_prog_gcc_traditional = yes; then
21715    CC="$CC -traditional"
21716  fi
21717fi
21718
21719echo "$as_me:$LINENO: checking for working memcmp" >&5
21720echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21721if test "${ac_cv_func_memcmp_working+set}" = set; then
21722  echo $ECHO_N "(cached) $ECHO_C" >&6
21723else
21724  if test "$cross_compiling" = yes; then
21725  ac_cv_func_memcmp_working=no
21726else
21727  cat >conftest.$ac_ext <<_ACEOF
21728#line $LINENO "configure"
21729/* confdefs.h.  */
21730_ACEOF
21731cat confdefs.h >>conftest.$ac_ext
21732cat >>conftest.$ac_ext <<_ACEOF
21733/* end confdefs.h.  */
21734
21735int
21736main ()
21737{
21738
21739  /* Some versions of memcmp are not 8-bit clean.  */
21740  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21741  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21742    exit (1);
21743
21744  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21745     or more and with at least one buffer not starting on a 4-byte boundary.
21746     William Lewis provided this test program.   */
21747  {
21748    char foo[21];
21749    char bar[21];
21750    int i;
21751    for (i = 0; i < 4; i++)
21752      {
21753        char *a = foo + i;
21754        char *b = bar + i;
21755        strcpy (a, "--------01111111");
21756        strcpy (b, "--------10000000");
21757        if (memcmp (a, b, 16) >= 0)
21758          exit (1);
21759      }
21760    exit (0);
21761  }
21762
21763  ;
21764  return 0;
21765}
21766_ACEOF
21767rm -f conftest$ac_exeext
21768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21769  (eval $ac_link) 2>&5
21770  ac_status=$?
21771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21774  (eval $ac_try) 2>&5
21775  ac_status=$?
21776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777  (exit $ac_status); }; }; then
21778  ac_cv_func_memcmp_working=yes
21779else
21780  echo "$as_me: program exited with status $ac_status" >&5
21781echo "$as_me: failed program was:" >&5
21782sed 's/^/| /' conftest.$ac_ext >&5
21783
21784( exit $ac_status )
21785ac_cv_func_memcmp_working=no
21786fi
21787rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21788fi
21789fi
21790echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21791echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21792test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21793
21794
21795
21796for ac_header in stdlib.h unistd.h
21797do
21798as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21799if eval "test \"\${$as_ac_Header+set}\" = set"; then
21800  echo "$as_me:$LINENO: checking for $ac_header" >&5
21801echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21802if eval "test \"\${$as_ac_Header+set}\" = set"; then
21803  echo $ECHO_N "(cached) $ECHO_C" >&6
21804fi
21805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21806echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21807else
21808  # Is the header compilable?
21809echo "$as_me:$LINENO: checking $ac_header usability" >&5
21810echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21811cat >conftest.$ac_ext <<_ACEOF
21812#line $LINENO "configure"
21813/* confdefs.h.  */
21814_ACEOF
21815cat confdefs.h >>conftest.$ac_ext
21816cat >>conftest.$ac_ext <<_ACEOF
21817/* end confdefs.h.  */
21818$ac_includes_default
21819#include <$ac_header>
21820_ACEOF
21821rm -f conftest.$ac_objext
21822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21823  (eval $ac_compile) 2>&5
21824  ac_status=$?
21825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826  (exit $ac_status); } &&
21827         { ac_try='test -s conftest.$ac_objext'
21828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829  (eval $ac_try) 2>&5
21830  ac_status=$?
21831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832  (exit $ac_status); }; }; then
21833  ac_header_compiler=yes
21834else
21835  echo "$as_me: failed program was:" >&5
21836sed 's/^/| /' conftest.$ac_ext >&5
21837
21838ac_header_compiler=no
21839fi
21840rm -f conftest.$ac_objext conftest.$ac_ext
21841echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21842echo "${ECHO_T}$ac_header_compiler" >&6
21843
21844# Is the header present?
21845echo "$as_me:$LINENO: checking $ac_header presence" >&5
21846echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21847cat >conftest.$ac_ext <<_ACEOF
21848#line $LINENO "configure"
21849/* confdefs.h.  */
21850_ACEOF
21851cat confdefs.h >>conftest.$ac_ext
21852cat >>conftest.$ac_ext <<_ACEOF
21853/* end confdefs.h.  */
21854#include <$ac_header>
21855_ACEOF
21856if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21857  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21858  ac_status=$?
21859  grep -v '^ *+' conftest.er1 >conftest.err
21860  rm -f conftest.er1
21861  cat conftest.err >&5
21862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863  (exit $ac_status); } >/dev/null; then
21864  if test -s conftest.err; then
21865    ac_cpp_err=$ac_c_preproc_warn_flag
21866  else
21867    ac_cpp_err=
21868  fi
21869else
21870  ac_cpp_err=yes
21871fi
21872if test -z "$ac_cpp_err"; then
21873  ac_header_preproc=yes
21874else
21875  echo "$as_me: failed program was:" >&5
21876sed 's/^/| /' conftest.$ac_ext >&5
21877
21878  ac_header_preproc=no
21879fi
21880rm -f conftest.err conftest.$ac_ext
21881echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21882echo "${ECHO_T}$ac_header_preproc" >&6
21883
21884# So?  What about this header?
21885case $ac_header_compiler:$ac_header_preproc in
21886  yes:no )
21887    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21888echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21889    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21890echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21891    (
21892      cat <<\_ASBOX
21893## ------------------------------------ ##
21894## Report this to bug-autoconf@gnu.org. ##
21895## ------------------------------------ ##
21896_ASBOX
21897    ) |
21898      sed "s/^/$as_me: WARNING:     /" >&2
21899    ;;
21900  no:yes )
21901    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21902echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21903    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21904echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21905    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21906echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21907    (
21908      cat <<\_ASBOX
21909## ------------------------------------ ##
21910## Report this to bug-autoconf@gnu.org. ##
21911## ------------------------------------ ##
21912_ASBOX
21913    ) |
21914      sed "s/^/$as_me: WARNING:     /" >&2
21915    ;;
21916esac
21917echo "$as_me:$LINENO: checking for $ac_header" >&5
21918echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21919if eval "test \"\${$as_ac_Header+set}\" = set"; then
21920  echo $ECHO_N "(cached) $ECHO_C" >&6
21921else
21922  eval "$as_ac_Header=$ac_header_preproc"
21923fi
21924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21925echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21926
21927fi
21928if test `eval echo '${'$as_ac_Header'}'` = yes; then
21929  cat >>confdefs.h <<_ACEOF
21930#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21931_ACEOF
21932
21933fi
21934
21935done
21936
21937
21938for ac_func in getpagesize
21939do
21940as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21941echo "$as_me:$LINENO: checking for $ac_func" >&5
21942echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21943if eval "test \"\${$as_ac_var+set}\" = set"; then
21944  echo $ECHO_N "(cached) $ECHO_C" >&6
21945else
21946  cat >conftest.$ac_ext <<_ACEOF
21947#line $LINENO "configure"
21948/* confdefs.h.  */
21949_ACEOF
21950cat confdefs.h >>conftest.$ac_ext
21951cat >>conftest.$ac_ext <<_ACEOF
21952/* end confdefs.h.  */
21953/* System header to define __stub macros and hopefully few prototypes,
21954    which can conflict with char $ac_func (); below.
21955    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21956    <limits.h> exists even on freestanding compilers.  */
21957#ifdef __STDC__
21958# include <limits.h>
21959#else
21960# include <assert.h>
21961#endif
21962/* Override any gcc2 internal prototype to avoid an error.  */
21963#ifdef __cplusplus
21964extern "C"
21965{
21966#endif
21967/* We use char because int might match the return type of a gcc2
21968   builtin and then its argument prototype would still apply.  */
21969char $ac_func ();
21970/* The GNU C library defines this for functions which it implements
21971    to always fail with ENOSYS.  Some functions are actually named
21972    something starting with __ and the normal name is an alias.  */
21973#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21974choke me
21975#else
21976char (*f) () = $ac_func;
21977#endif
21978#ifdef __cplusplus
21979}
21980#endif
21981
21982int
21983main ()
21984{
21985return f != $ac_func;
21986  ;
21987  return 0;
21988}
21989_ACEOF
21990rm -f conftest.$ac_objext conftest$ac_exeext
21991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21992  (eval $ac_link) 2>&5
21993  ac_status=$?
21994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995  (exit $ac_status); } &&
21996         { ac_try='test -s conftest$ac_exeext'
21997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21998  (eval $ac_try) 2>&5
21999  ac_status=$?
22000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001  (exit $ac_status); }; }; then
22002  eval "$as_ac_var=yes"
22003else
22004  echo "$as_me: failed program was:" >&5
22005sed 's/^/| /' conftest.$ac_ext >&5
22006
22007eval "$as_ac_var=no"
22008fi
22009rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22010fi
22011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22012echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22013if test `eval echo '${'$as_ac_var'}'` = yes; then
22014  cat >>confdefs.h <<_ACEOF
22015#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22016_ACEOF
22017
22018fi
22019done
22020
22021echo "$as_me:$LINENO: checking for working mmap" >&5
22022echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22023if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22024  echo $ECHO_N "(cached) $ECHO_C" >&6
22025else
22026  if test "$cross_compiling" = yes; then
22027  ac_cv_func_mmap_fixed_mapped=no
22028else
22029  cat >conftest.$ac_ext <<_ACEOF
22030#line $LINENO "configure"
22031/* confdefs.h.  */
22032_ACEOF
22033cat confdefs.h >>conftest.$ac_ext
22034cat >>conftest.$ac_ext <<_ACEOF
22035/* end confdefs.h.  */
22036$ac_includes_default
22037/* malloc might have been renamed as rpl_malloc. */
22038#undef malloc
22039
22040/* Thanks to Mike Haertel and Jim Avera for this test.
22041   Here is a matrix of mmap possibilities:
22042	mmap private not fixed
22043	mmap private fixed at somewhere currently unmapped
22044	mmap private fixed at somewhere already mapped
22045	mmap shared not fixed
22046	mmap shared fixed at somewhere currently unmapped
22047	mmap shared fixed at somewhere already mapped
22048   For private mappings, we should verify that changes cannot be read()
22049   back from the file, nor mmap's back from the file at a different
22050   address.  (There have been systems where private was not correctly
22051   implemented like the infamous i386 svr4.0, and systems where the
22052   VM page cache was not coherent with the file system buffer cache
22053   like early versions of FreeBSD and possibly contemporary NetBSD.)
22054   For shared mappings, we should conversely verify that changes get
22055   propagated back to all the places they're supposed to be.
22056
22057   Grep wants private fixed already mapped.
22058   The main things grep needs to know about mmap are:
22059   * does it exist and is it safe to write into the mmap'd area
22060   * how to use it (BSD variants)  */
22061
22062#include <fcntl.h>
22063#include <sys/mman.h>
22064
22065#if !STDC_HEADERS && !HAVE_STDLIB_H
22066char *malloc ();
22067#endif
22068
22069/* This mess was copied from the GNU getpagesize.h.  */
22070#if !HAVE_GETPAGESIZE
22071/* Assume that all systems that can run configure have sys/param.h.  */
22072# if !HAVE_SYS_PARAM_H
22073#  define HAVE_SYS_PARAM_H 1
22074# endif
22075
22076# ifdef _SC_PAGESIZE
22077#  define getpagesize() sysconf(_SC_PAGESIZE)
22078# else /* no _SC_PAGESIZE */
22079#  if HAVE_SYS_PARAM_H
22080#   include <sys/param.h>
22081#   ifdef EXEC_PAGESIZE
22082#    define getpagesize() EXEC_PAGESIZE
22083#   else /* no EXEC_PAGESIZE */
22084#    ifdef NBPG
22085#     define getpagesize() NBPG * CLSIZE
22086#     ifndef CLSIZE
22087#      define CLSIZE 1
22088#     endif /* no CLSIZE */
22089#    else /* no NBPG */
22090#     ifdef NBPC
22091#      define getpagesize() NBPC
22092#     else /* no NBPC */
22093#      ifdef PAGESIZE
22094#       define getpagesize() PAGESIZE
22095#      endif /* PAGESIZE */
22096#     endif /* no NBPC */
22097#    endif /* no NBPG */
22098#   endif /* no EXEC_PAGESIZE */
22099#  else /* no HAVE_SYS_PARAM_H */
22100#   define getpagesize() 8192	/* punt totally */
22101#  endif /* no HAVE_SYS_PARAM_H */
22102# endif /* no _SC_PAGESIZE */
22103
22104#endif /* no HAVE_GETPAGESIZE */
22105
22106int
22107main ()
22108{
22109  char *data, *data2, *data3;
22110  int i, pagesize;
22111  int fd;
22112
22113  pagesize = getpagesize ();
22114
22115  /* First, make a file with some known garbage in it. */
22116  data = (char *) malloc (pagesize);
22117  if (!data)
22118    exit (1);
22119  for (i = 0; i < pagesize; ++i)
22120    *(data + i) = rand ();
22121  umask (0);
22122  fd = creat ("conftest.mmap", 0600);
22123  if (fd < 0)
22124    exit (1);
22125  if (write (fd, data, pagesize) != pagesize)
22126    exit (1);
22127  close (fd);
22128
22129  /* Next, try to mmap the file at a fixed address which already has
22130     something else allocated at it.  If we can, also make sure that
22131     we see the same garbage.  */
22132  fd = open ("conftest.mmap", O_RDWR);
22133  if (fd < 0)
22134    exit (1);
22135  data2 = (char *) malloc (2 * pagesize);
22136  if (!data2)
22137    exit (1);
22138  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22139  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22140                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
22141    exit (1);
22142  for (i = 0; i < pagesize; ++i)
22143    if (*(data + i) != *(data2 + i))
22144      exit (1);
22145
22146  /* Finally, make sure that changes to the mapped area do not
22147     percolate back to the file as seen by read().  (This is a bug on
22148     some variants of i386 svr4.0.)  */
22149  for (i = 0; i < pagesize; ++i)
22150    *(data2 + i) = *(data2 + i) + 1;
22151  data3 = (char *) malloc (pagesize);
22152  if (!data3)
22153    exit (1);
22154  if (read (fd, data3, pagesize) != pagesize)
22155    exit (1);
22156  for (i = 0; i < pagesize; ++i)
22157    if (*(data + i) != *(data3 + i))
22158      exit (1);
22159  close (fd);
22160  exit (0);
22161}
22162_ACEOF
22163rm -f conftest$ac_exeext
22164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22165  (eval $ac_link) 2>&5
22166  ac_status=$?
22167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22170  (eval $ac_try) 2>&5
22171  ac_status=$?
22172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173  (exit $ac_status); }; }; then
22174  ac_cv_func_mmap_fixed_mapped=yes
22175else
22176  echo "$as_me: program exited with status $ac_status" >&5
22177echo "$as_me: failed program was:" >&5
22178sed 's/^/| /' conftest.$ac_ext >&5
22179
22180( exit $ac_status )
22181ac_cv_func_mmap_fixed_mapped=no
22182fi
22183rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22184fi
22185fi
22186echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22187echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22188if test $ac_cv_func_mmap_fixed_mapped = yes; then
22189
22190cat >>confdefs.h <<\_ACEOF
22191#define HAVE_MMAP 1
22192_ACEOF
22193
22194fi
22195rm -f conftest.mmap
22196
22197echo "$as_me:$LINENO: checking for mmap of files" >&5
22198echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22199if test "${ac_cv_func_mmap_file+set}" = set; then
22200  echo $ECHO_N "(cached) $ECHO_C" >&6
22201else
22202
22203
22204  ac_ext=c
22205ac_cpp='$CPP $CPPFLAGS'
22206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22208ac_compiler_gnu=$ac_cv_c_compiler_gnu
22209
22210  if test "$cross_compiling" = yes; then
22211  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22212See \`config.log' for more details." >&5
22213echo "$as_me: error: cannot run test program while cross compiling
22214See \`config.log' for more details." >&2;}
22215   { (exit 1); exit 1; }; }
22216else
22217  cat >conftest.$ac_ext <<_ACEOF
22218#line $LINENO "configure"
22219/* confdefs.h.  */
22220_ACEOF
22221cat confdefs.h >>conftest.$ac_ext
22222cat >>conftest.$ac_ext <<_ACEOF
22223/* end confdefs.h.  */
22224
22225#ifdef HAVE_SYS_MMAN_H
22226#include <sys/mman.h>
22227#endif
22228
22229#ifdef HAVE_SYS_TYPES_H
22230#include <sys/types.h>
22231#endif
22232
22233#ifdef HAVE_FCNTL_H
22234#include <fcntl.h>
22235#endif
22236
22237  int fd;
22238  int main () {
22239  fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22240_ACEOF
22241rm -f conftest$ac_exeext
22242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22243  (eval $ac_link) 2>&5
22244  ac_status=$?
22245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22248  (eval $ac_try) 2>&5
22249  ac_status=$?
22250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251  (exit $ac_status); }; }; then
22252  ac_cv_func_mmap_file=yes
22253else
22254  echo "$as_me: program exited with status $ac_status" >&5
22255echo "$as_me: failed program was:" >&5
22256sed 's/^/| /' conftest.$ac_ext >&5
22257
22258( exit $ac_status )
22259ac_cv_func_mmap_file=no
22260fi
22261rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22262fi
22263  ac_ext=c
22264ac_cpp='$CPP $CPPFLAGS'
22265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22267ac_compiler_gnu=$ac_cv_c_compiler_gnu
22268
22269
22270fi
22271echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22272echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22273if test "$ac_cv_func_mmap_file" = yes; then
22274   cat >>confdefs.h <<\_ACEOF
22275#define HAVE_MMAP_FILE 1
22276_ACEOF
22277
22278   MMAP_FILE=yes
22279
22280fi
22281
22282if test ${ac_cv_func_mmap_file} = "no"
22283then
22284	{ { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22285echo "$as_me: error: mmap() of files required but not found" >&2;}
22286   { (exit 1); exit 1; }; }
22287fi
22288echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22289echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22290if test "${ac_cv_header_mmap_anon+set}" = set; then
22291  echo $ECHO_N "(cached) $ECHO_C" >&6
22292else
22293
22294
22295  ac_ext=c
22296ac_cpp='$CPP $CPPFLAGS'
22297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22299ac_compiler_gnu=$ac_cv_c_compiler_gnu
22300
22301  cat >conftest.$ac_ext <<_ACEOF
22302#line $LINENO "configure"
22303/* confdefs.h.  */
22304_ACEOF
22305cat confdefs.h >>conftest.$ac_ext
22306cat >>conftest.$ac_ext <<_ACEOF
22307/* end confdefs.h.  */
22308#include <sys/mman.h>
22309  #include <unistd.h>
22310  #include <fcntl.h>
22311int
22312main ()
22313{
22314mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
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_header_mmap_anon=yes
22332else
22333  echo "$as_me: failed program was:" >&5
22334sed 's/^/| /' conftest.$ac_ext >&5
22335
22336ac_cv_header_mmap_anon=no
22337fi
22338rm -f conftest.$ac_objext conftest.$ac_ext
22339  ac_ext=c
22340ac_cpp='$CPP $CPPFLAGS'
22341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22343ac_compiler_gnu=$ac_cv_c_compiler_gnu
22344
22345
22346fi
22347echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22348echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22349if test "$ac_cv_header_mmap_anon" = yes; then
22350   cat >>confdefs.h <<\_ACEOF
22351#define HAVE_MMAP_ANONYMOUS 1
22352_ACEOF
22353
22354fi
22355
22356echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22357echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22358if test "${ac_cv_type_signal+set}" = set; then
22359  echo $ECHO_N "(cached) $ECHO_C" >&6
22360else
22361  cat >conftest.$ac_ext <<_ACEOF
22362#line $LINENO "configure"
22363/* confdefs.h.  */
22364_ACEOF
22365cat confdefs.h >>conftest.$ac_ext
22366cat >>conftest.$ac_ext <<_ACEOF
22367/* end confdefs.h.  */
22368#include <sys/types.h>
22369#include <signal.h>
22370#ifdef signal
22371# undef signal
22372#endif
22373#ifdef __cplusplus
22374extern "C" void (*signal (int, void (*)(int)))(int);
22375#else
22376void (*signal ()) ();
22377#endif
22378
22379int
22380main ()
22381{
22382int i;
22383  ;
22384  return 0;
22385}
22386_ACEOF
22387rm -f conftest.$ac_objext
22388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22389  (eval $ac_compile) 2>&5
22390  ac_status=$?
22391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392  (exit $ac_status); } &&
22393         { ac_try='test -s conftest.$ac_objext'
22394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22395  (eval $ac_try) 2>&5
22396  ac_status=$?
22397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398  (exit $ac_status); }; }; then
22399  ac_cv_type_signal=void
22400else
22401  echo "$as_me: failed program was:" >&5
22402sed 's/^/| /' conftest.$ac_ext >&5
22403
22404ac_cv_type_signal=int
22405fi
22406rm -f conftest.$ac_objext conftest.$ac_ext
22407fi
22408echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22409echo "${ECHO_T}$ac_cv_type_signal" >&6
22410
22411cat >>confdefs.h <<_ACEOF
22412#define RETSIGTYPE $ac_cv_type_signal
22413_ACEOF
22414
22415
22416
22417
22418
22419
22420
22421
22422
22423
22424
22425
22426
22427for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll
22428do
22429as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22430echo "$as_me:$LINENO: checking for $ac_func" >&5
22431echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22432if eval "test \"\${$as_ac_var+set}\" = set"; then
22433  echo $ECHO_N "(cached) $ECHO_C" >&6
22434else
22435  cat >conftest.$ac_ext <<_ACEOF
22436#line $LINENO "configure"
22437/* confdefs.h.  */
22438_ACEOF
22439cat confdefs.h >>conftest.$ac_ext
22440cat >>conftest.$ac_ext <<_ACEOF
22441/* end confdefs.h.  */
22442/* System header to define __stub macros and hopefully few prototypes,
22443    which can conflict with char $ac_func (); below.
22444    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22445    <limits.h> exists even on freestanding compilers.  */
22446#ifdef __STDC__
22447# include <limits.h>
22448#else
22449# include <assert.h>
22450#endif
22451/* Override any gcc2 internal prototype to avoid an error.  */
22452#ifdef __cplusplus
22453extern "C"
22454{
22455#endif
22456/* We use char because int might match the return type of a gcc2
22457   builtin and then its argument prototype would still apply.  */
22458char $ac_func ();
22459/* The GNU C library defines this for functions which it implements
22460    to always fail with ENOSYS.  Some functions are actually named
22461    something starting with __ and the normal name is an alias.  */
22462#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22463choke me
22464#else
22465char (*f) () = $ac_func;
22466#endif
22467#ifdef __cplusplus
22468}
22469#endif
22470
22471int
22472main ()
22473{
22474return f != $ac_func;
22475  ;
22476  return 0;
22477}
22478_ACEOF
22479rm -f conftest.$ac_objext conftest$ac_exeext
22480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22481  (eval $ac_link) 2>&5
22482  ac_status=$?
22483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484  (exit $ac_status); } &&
22485         { ac_try='test -s conftest$ac_exeext'
22486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22487  (eval $ac_try) 2>&5
22488  ac_status=$?
22489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490  (exit $ac_status); }; }; then
22491  eval "$as_ac_var=yes"
22492else
22493  echo "$as_me: failed program was:" >&5
22494sed 's/^/| /' conftest.$ac_ext >&5
22495
22496eval "$as_ac_var=no"
22497fi
22498rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22499fi
22500echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22501echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22502if test `eval echo '${'$as_ac_var'}'` = yes; then
22503  cat >>confdefs.h <<_ACEOF
22504#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22505_ACEOF
22506
22507fi
22508done
22509
22510
22511
22512echo "$as_me:$LINENO: checking for mmap" >&5
22513echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22514if test "${ac_cv_func_mmap+set}" = set; then
22515  echo $ECHO_N "(cached) $ECHO_C" >&6
22516else
22517  cat >conftest.$ac_ext <<_ACEOF
22518#line $LINENO "configure"
22519/* confdefs.h.  */
22520_ACEOF
22521cat confdefs.h >>conftest.$ac_ext
22522cat >>conftest.$ac_ext <<_ACEOF
22523/* end confdefs.h.  */
22524/* System header to define __stub macros and hopefully few prototypes,
22525    which can conflict with char mmap (); below.
22526    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22527    <limits.h> exists even on freestanding compilers.  */
22528#ifdef __STDC__
22529# include <limits.h>
22530#else
22531# include <assert.h>
22532#endif
22533/* Override any gcc2 internal prototype to avoid an error.  */
22534#ifdef __cplusplus
22535extern "C"
22536{
22537#endif
22538/* We use char because int might match the return type of a gcc2
22539   builtin and then its argument prototype would still apply.  */
22540char mmap ();
22541/* The GNU C library defines this for functions which it implements
22542    to always fail with ENOSYS.  Some functions are actually named
22543    something starting with __ and the normal name is an alias.  */
22544#if defined (__stub_mmap) || defined (__stub___mmap)
22545choke me
22546#else
22547char (*f) () = mmap;
22548#endif
22549#ifdef __cplusplus
22550}
22551#endif
22552
22553int
22554main ()
22555{
22556return f != mmap;
22557  ;
22558  return 0;
22559}
22560_ACEOF
22561rm -f conftest.$ac_objext conftest$ac_exeext
22562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22563  (eval $ac_link) 2>&5
22564  ac_status=$?
22565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566  (exit $ac_status); } &&
22567         { ac_try='test -s conftest$ac_exeext'
22568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22569  (eval $ac_try) 2>&5
22570  ac_status=$?
22571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572  (exit $ac_status); }; }; then
22573  ac_cv_func_mmap=yes
22574else
22575  echo "$as_me: failed program was:" >&5
22576sed 's/^/| /' conftest.$ac_ext >&5
22577
22578ac_cv_func_mmap=no
22579fi
22580rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22581fi
22582echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22583echo "${ECHO_T}$ac_cv_func_mmap" >&6
22584if test $ac_cv_func_mmap = yes; then
22585  :
22586else
22587  { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22588echo "$as_me: error: Function mmap() required but not found" >&2;}
22589   { (exit 1); exit 1; }; }
22590fi
22591
22592echo "$as_me:$LINENO: checking for mprotect" >&5
22593echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22594if test "${ac_cv_func_mprotect+set}" = set; then
22595  echo $ECHO_N "(cached) $ECHO_C" >&6
22596else
22597  cat >conftest.$ac_ext <<_ACEOF
22598#line $LINENO "configure"
22599/* confdefs.h.  */
22600_ACEOF
22601cat confdefs.h >>conftest.$ac_ext
22602cat >>conftest.$ac_ext <<_ACEOF
22603/* end confdefs.h.  */
22604/* System header to define __stub macros and hopefully few prototypes,
22605    which can conflict with char mprotect (); below.
22606    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22607    <limits.h> exists even on freestanding compilers.  */
22608#ifdef __STDC__
22609# include <limits.h>
22610#else
22611# include <assert.h>
22612#endif
22613/* Override any gcc2 internal prototype to avoid an error.  */
22614#ifdef __cplusplus
22615extern "C"
22616{
22617#endif
22618/* We use char because int might match the return type of a gcc2
22619   builtin and then its argument prototype would still apply.  */
22620char mprotect ();
22621/* The GNU C library defines this for functions which it implements
22622    to always fail with ENOSYS.  Some functions are actually named
22623    something starting with __ and the normal name is an alias.  */
22624#if defined (__stub_mprotect) || defined (__stub___mprotect)
22625choke me
22626#else
22627char (*f) () = mprotect;
22628#endif
22629#ifdef __cplusplus
22630}
22631#endif
22632
22633int
22634main ()
22635{
22636return f != mprotect;
22637  ;
22638  return 0;
22639}
22640_ACEOF
22641rm -f conftest.$ac_objext conftest$ac_exeext
22642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22643  (eval $ac_link) 2>&5
22644  ac_status=$?
22645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22646  (exit $ac_status); } &&
22647         { ac_try='test -s conftest$ac_exeext'
22648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22649  (eval $ac_try) 2>&5
22650  ac_status=$?
22651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22652  (exit $ac_status); }; }; then
22653  ac_cv_func_mprotect=yes
22654else
22655  echo "$as_me: failed program was:" >&5
22656sed 's/^/| /' conftest.$ac_ext >&5
22657
22658ac_cv_func_mprotect=no
22659fi
22660rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22661fi
22662echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22663echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22664if test $ac_cv_func_mprotect = yes; then
22665  :
22666else
22667  { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22668echo "$as_me: error: Function mprotect() required but not found" >&2;}
22669   { (exit 1); exit 1; }; }
22670fi
22671
22672
22673
22674# Check whether --enable-purify or --disable-purify was given.
22675if test "${enable_purify+set}" = set; then
22676  enableval="$enable_purify"
22677
22678else
22679  enableval="no"
22680fi;
22681if test ${enableval} = "no"
22682then
22683	ENABLE_PURIFY=
22684
22685else
22686	ENABLE_PURIFY=ENABLE_PURIFY=1
22687
22688fi
22689
22690# Check whether --enable-optimized or --disable-optimized was given.
22691if test "${enable_optimized+set}" = set; then
22692  enableval="$enable_optimized"
22693
22694else
22695  enableval=no
22696fi;
22697if test ${enableval} = "no"
22698then
22699	ENABLE_OPTIMIZED=
22700
22701else
22702	ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22703
22704fi
22705
22706# Check whether --enable-spec or --disable-spec was given.
22707if test "${enable_spec+set}" = set; then
22708  enableval="$enable_spec"
22709
22710else
22711  enableval=no
22712fi;
22713if test ${enableval} = "no"
22714then
22715	USE_SPEC=
22716
22717else
22718	USE_SPEC=USE_SPEC=1
22719
22720fi
22721
22722# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22723if test "${enable_precompiled_bytecode+set}" = set; then
22724  enableval="$enable_precompiled_bytecode"
22725
22726else
22727  enableval=no
22728fi;
22729if test ${enableval} = "no"
22730then
22731	UPB=
22732
22733else
22734	UPB=USE_PRECOMPILED_BYTECODE=1
22735
22736fi
22737
22738
22739# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22740if test "${enable_llc_diffs+set}" = set; then
22741  enableval="$enable_llc_diffs"
22742
22743else
22744  enableval=yes
22745fi;
22746if test ${enableval} = "no"
22747then
22748	DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22749
22750else
22751	DISABLE_LLC_DIFFS=
22752
22753fi
22754
22755# Check whether --enable-jit or --disable-jit was given.
22756if test "${enable_jit+set}" = set; then
22757  enableval="$enable_jit"
22758
22759else
22760  enableval=default
22761fi;
22762
22763if test ${enableval} = "no"
22764then
22765	JIT=
22766
22767else
22768	case $target in
22769		*i*86*)
22770			JIT=TARGET_HAS_JIT=1
22771
22772			;;
22773		*sparc*)
22774			JIT=TARGET_HAS_JIT=1
22775
22776			;;
22777		*)
22778			JIT=
22779
22780			;;
22781	esac
22782fi
22783
22784
22785
22786# Check whether --with-spec or --without-spec was given.
22787if test "${with_spec+set}" = set; then
22788  withval="$with_spec"
22789  SPEC_ROOT=$withval
22790
22791else
22792  SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22793
22794fi;
22795
22796
22797# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22798if test "${with_llvmgccdir+set}" = set; then
22799  withval="$with_llvmgccdir"
22800  LLVMGCCDIR=$withval
22801
22802fi;
22803
22804
22805# Check whether --with-bcrepos or --without-bcrepos was given.
22806if test "${with_bcrepos+set}" = set; then
22807  withval="$with_bcrepos"
22808  BCR=$withval
22809
22810else
22811  BCR=/home/vadve/lattner/LLVMPrograms
22812
22813fi;
22814
22815
22816# Check whether --with-papi or --without-papi was given.
22817if test "${with_papi+set}" = set; then
22818  withval="$with_papi"
22819  PAPIDIR=$withval
22820
22821else
22822  PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22823
22824fi;
22825
22826
22827# Check whether --with-purify or --without-purify was given.
22828if test "${with_purify+set}" = set; then
22829  withval="$with_purify"
22830  PURIFY=$withval
22831
22832fi;
22833
22834
22835          ac_config_files="$ac_config_files Makefile.config"
22836cat >confcache <<\_ACEOF
22837# This file is a shell script that caches the results of configure
22838# tests run on this system so they can be shared between configure
22839# scripts and configure runs, see configure's option --config-cache.
22840# It is not useful on other systems.  If it contains results you don't
22841# want to keep, you may remove or edit it.
22842#
22843# config.status only pays attention to the cache file if you give it
22844# the --recheck option to rerun configure.
22845#
22846# `ac_cv_env_foo' variables (set or unset) will be overridden when
22847# loading this file, other *unset* `ac_cv_foo' will be assigned the
22848# following values.
22849
22850_ACEOF
22851
22852# The following way of writing the cache mishandles newlines in values,
22853# but we know of no workaround that is simple, portable, and efficient.
22854# So, don't put newlines in cache variables' values.
22855# Ultrix sh set writes to stderr and can't be redirected directly,
22856# and sets the high bit in the cache file unless we assign to the vars.
22857{
22858  (set) 2>&1 |
22859    case `(ac_space=' '; set | grep ac_space) 2>&1` in
22860    *ac_space=\ *)
22861      # `set' does not quote correctly, so add quotes (double-quote
22862      # substitution turns \\\\ into \\, and sed turns \\ into \).
22863      sed -n \
22864        "s/'/'\\\\''/g;
22865    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22866      ;;
22867    *)
22868      # `set' quotes correctly as required by POSIX, so do not add quotes.
22869      sed -n \
22870        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22871      ;;
22872    esac;
22873} |
22874  sed '
22875     t clear
22876     : clear
22877     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22878     t end
22879     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22880     : end' >>confcache
22881if diff $cache_file confcache >/dev/null 2>&1; then :; else
22882  if test -w $cache_file; then
22883    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22884    cat confcache >$cache_file
22885  else
22886    echo "not updating unwritable cache $cache_file"
22887  fi
22888fi
22889rm -f confcache
22890
22891test "x$prefix" = xNONE && prefix=$ac_default_prefix
22892# Let make expand exec_prefix.
22893test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22894
22895# VPATH may cause trouble with some makes, so we remove $(srcdir),
22896# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22897# trailing colons and then remove the whole line if VPATH becomes empty
22898# (actually we leave an empty line to preserve line numbers).
22899if test "x$srcdir" = x.; then
22900  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
22901s/:*\$(srcdir):*/:/;
22902s/:*\${srcdir}:*/:/;
22903s/:*@srcdir@:*/:/;
22904s/^\([^=]*=[ 	]*\):*/\1/;
22905s/:*$//;
22906s/^[^=]*=[ 	]*$//;
22907}'
22908fi
22909
22910DEFS=-DHAVE_CONFIG_H
22911
22912ac_libobjs=
22913ac_ltlibobjs=
22914for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22915  # 1. Remove the extension, and $U if already installed.
22916  ac_i=`echo "$ac_i" |
22917         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22918  # 2. Add them.
22919  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22920  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22921done
22922LIBOBJS=$ac_libobjs
22923
22924LTLIBOBJS=$ac_ltlibobjs
22925
22926
22927
22928: ${CONFIG_STATUS=./config.status}
22929ac_clean_files_save=$ac_clean_files
22930ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22931{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22932echo "$as_me: creating $CONFIG_STATUS" >&6;}
22933cat >$CONFIG_STATUS <<_ACEOF
22934#! $SHELL
22935# Generated by $as_me.
22936# Run this file to recreate the current configuration.
22937# Compiler output produced by configure, useful for debugging
22938# configure, is in config.log if it exists.
22939
22940debug=false
22941ac_cs_recheck=false
22942ac_cs_silent=false
22943SHELL=\${CONFIG_SHELL-$SHELL}
22944_ACEOF
22945
22946cat >>$CONFIG_STATUS <<\_ACEOF
22947## --------------------- ##
22948## M4sh Initialization.  ##
22949## --------------------- ##
22950
22951# Be Bourne compatible
22952if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22953  emulate sh
22954  NULLCMD=:
22955  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22956  # is contrary to our usage.  Disable this feature.
22957  alias -g '${1+"$@"}'='"$@"'
22958elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22959  set -o posix
22960fi
22961
22962# Support unset when possible.
22963if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22964  as_unset=unset
22965else
22966  as_unset=false
22967fi
22968
22969
22970# Work around bugs in pre-3.0 UWIN ksh.
22971$as_unset ENV MAIL MAILPATH
22972PS1='$ '
22973PS2='> '
22974PS4='+ '
22975
22976# NLS nuisances.
22977for as_var in \
22978  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22979  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22980  LC_TELEPHONE LC_TIME
22981do
22982  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22983    eval $as_var=C; export $as_var
22984  else
22985    $as_unset $as_var
22986  fi
22987done
22988
22989# Required to use basename.
22990if expr a : '\(a\)' >/dev/null 2>&1; then
22991  as_expr=expr
22992else
22993  as_expr=false
22994fi
22995
22996if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22997  as_basename=basename
22998else
22999  as_basename=false
23000fi
23001
23002
23003# Name of the executable.
23004as_me=`$as_basename "$0" ||
23005$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23006	 X"$0" : 'X\(//\)$' \| \
23007	 X"$0" : 'X\(/\)$' \| \
23008	 .     : '\(.\)' 2>/dev/null ||
23009echo X/"$0" |
23010    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23011  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
23012  	  /^X\/\(\/\).*/{ s//\1/; q; }
23013  	  s/.*/./; q'`
23014
23015
23016# PATH needs CR, and LINENO needs CR and PATH.
23017# Avoid depending upon Character Ranges.
23018as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23019as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23020as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23021as_cr_digits='0123456789'
23022as_cr_alnum=$as_cr_Letters$as_cr_digits
23023
23024# The user is always right.
23025if test "${PATH_SEPARATOR+set}" != set; then
23026  echo "#! /bin/sh" >conf$$.sh
23027  echo  "exit 0"   >>conf$$.sh
23028  chmod +x conf$$.sh
23029  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23030    PATH_SEPARATOR=';'
23031  else
23032    PATH_SEPARATOR=:
23033  fi
23034  rm -f conf$$.sh
23035fi
23036
23037
23038  as_lineno_1=$LINENO
23039  as_lineno_2=$LINENO
23040  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23041  test "x$as_lineno_1" != "x$as_lineno_2" &&
23042  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23043  # Find who we are.  Look in the path if we contain no path at all
23044  # relative or not.
23045  case $0 in
23046    *[\\/]* ) as_myself=$0 ;;
23047    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23048for as_dir in $PATH
23049do
23050  IFS=$as_save_IFS
23051  test -z "$as_dir" && as_dir=.
23052  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23053done
23054
23055       ;;
23056  esac
23057  # We did not find ourselves, most probably we were run as `sh COMMAND'
23058  # in which case we are not to be found in the path.
23059  if test "x$as_myself" = x; then
23060    as_myself=$0
23061  fi
23062  if test ! -f "$as_myself"; then
23063    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23064echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23065   { (exit 1); exit 1; }; }
23066  fi
23067  case $CONFIG_SHELL in
23068  '')
23069    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23070for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23071do
23072  IFS=$as_save_IFS
23073  test -z "$as_dir" && as_dir=.
23074  for as_base in sh bash ksh sh5; do
23075	 case $as_dir in
23076	 /*)
23077	   if ("$as_dir/$as_base" -c '
23078  as_lineno_1=$LINENO
23079  as_lineno_2=$LINENO
23080  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23081  test "x$as_lineno_1" != "x$as_lineno_2" &&
23082  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23083	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23084	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23085	     CONFIG_SHELL=$as_dir/$as_base
23086	     export CONFIG_SHELL
23087	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23088	   fi;;
23089	 esac
23090       done
23091done
23092;;
23093  esac
23094
23095  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23096  # uniformly replaced by the line number.  The first 'sed' inserts a
23097  # line-number line before each line; the second 'sed' does the real
23098  # work.  The second script uses 'N' to pair each line-number line
23099  # with the numbered line, and appends trailing '-' during
23100  # substitution so that $LINENO is not a special case at line end.
23101  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23102  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23103  sed '=' <$as_myself |
23104    sed '
23105      N
23106      s,$,-,
23107      : loop
23108      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23109      t loop
23110      s,-$,,
23111      s,^['$as_cr_digits']*\n,,
23112    ' >$as_me.lineno &&
23113  chmod +x $as_me.lineno ||
23114    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23115echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23116   { (exit 1); exit 1; }; }
23117
23118  # Don't try to exec as it changes $[0], causing all sort of problems
23119  # (the dirname of $[0] is not the place where we might find the
23120  # original and so on.  Autoconf is especially sensible to this).
23121  . ./$as_me.lineno
23122  # Exit status is that of the last command.
23123  exit
23124}
23125
23126
23127case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23128  *c*,-n*) ECHO_N= ECHO_C='
23129' ECHO_T='	' ;;
23130  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23131  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23132esac
23133
23134if expr a : '\(a\)' >/dev/null 2>&1; then
23135  as_expr=expr
23136else
23137  as_expr=false
23138fi
23139
23140rm -f conf$$ conf$$.exe conf$$.file
23141echo >conf$$.file
23142if ln -s conf$$.file conf$$ 2>/dev/null; then
23143  # We could just check for DJGPP; but this test a) works b) is more generic
23144  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23145  if test -f conf$$.exe; then
23146    # Don't use ln at all; we don't have any links
23147    as_ln_s='cp -p'
23148  else
23149    as_ln_s='ln -s'
23150  fi
23151elif ln conf$$.file conf$$ 2>/dev/null; then
23152  as_ln_s=ln
23153else
23154  as_ln_s='cp -p'
23155fi
23156rm -f conf$$ conf$$.exe conf$$.file
23157
23158if mkdir -p . 2>/dev/null; then
23159  as_mkdir_p=:
23160else
23161  as_mkdir_p=false
23162fi
23163
23164as_executable_p="test -f"
23165
23166# Sed expression to map a string onto a valid CPP name.
23167as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23168
23169# Sed expression to map a string onto a valid variable name.
23170as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23171
23172
23173# IFS
23174# We need space, tab and new line, in precisely that order.
23175as_nl='
23176'
23177IFS=" 	$as_nl"
23178
23179# CDPATH.
23180$as_unset CDPATH
23181
23182exec 6>&1
23183
23184# Open the log real soon, to keep \$[0] and so on meaningful, and to
23185# report actual input values of CONFIG_FILES etc. instead of their
23186# values after options handling.  Logging --version etc. is OK.
23187exec 5>>config.log
23188{
23189  echo
23190  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23191## Running $as_me. ##
23192_ASBOX
23193} >&5
23194cat >&5 <<_CSEOF
23195
23196This file was extended by [LLVM] $as_me [1.0], which was
23197generated by GNU Autoconf 2.57.  Invocation command line was
23198
23199  CONFIG_FILES    = $CONFIG_FILES
23200  CONFIG_HEADERS  = $CONFIG_HEADERS
23201  CONFIG_LINKS    = $CONFIG_LINKS
23202  CONFIG_COMMANDS = $CONFIG_COMMANDS
23203  $ $0 $@
23204
23205_CSEOF
23206echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23207echo >&5
23208_ACEOF
23209
23210# Files that config.status was made for.
23211if test -n "$ac_config_files"; then
23212  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23213fi
23214
23215if test -n "$ac_config_headers"; then
23216  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23217fi
23218
23219if test -n "$ac_config_links"; then
23220  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23221fi
23222
23223if test -n "$ac_config_commands"; then
23224  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23225fi
23226
23227cat >>$CONFIG_STATUS <<\_ACEOF
23228
23229ac_cs_usage="\
23230\`$as_me' instantiates files from templates according to the
23231current configuration.
23232
23233Usage: $0 [OPTIONS] [FILE]...
23234
23235  -h, --help       print this help, then exit
23236  -V, --version    print version number, then exit
23237  -q, --quiet      do not print progress messages
23238  -d, --debug      don't remove temporary files
23239      --recheck    update $as_me by reconfiguring in the same conditions
23240  --file=FILE[:TEMPLATE]
23241                   instantiate the configuration file FILE
23242  --header=FILE[:TEMPLATE]
23243                   instantiate the configuration header FILE
23244
23245Configuration files:
23246$config_files
23247
23248Configuration headers:
23249$config_headers
23250
23251Configuration commands:
23252$config_commands
23253
23254Report bugs to <bug-autoconf@gnu.org>."
23255_ACEOF
23256
23257cat >>$CONFIG_STATUS <<_ACEOF
23258ac_cs_version="\\
23259[LLVM] config.status [1.0]
23260configured by $0, generated by GNU Autoconf 2.57,
23261  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23262
23263Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23264Free Software Foundation, Inc.
23265This config.status script is free software; the Free Software Foundation
23266gives unlimited permission to copy, distribute and modify it."
23267srcdir=$srcdir
23268INSTALL="$INSTALL"
23269_ACEOF
23270
23271cat >>$CONFIG_STATUS <<\_ACEOF
23272# If no file are specified by the user, then we need to provide default
23273# value.  By we need to know if files were specified by the user.
23274ac_need_defaults=:
23275while test $# != 0
23276do
23277  case $1 in
23278  --*=*)
23279    ac_option=`expr "x$1" : 'x\([^=]*\)='`
23280    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23281    ac_shift=:
23282    ;;
23283  -*)
23284    ac_option=$1
23285    ac_optarg=$2
23286    ac_shift=shift
23287    ;;
23288  *) # This is not an option, so the user has probably given explicit
23289     # arguments.
23290     ac_option=$1
23291     ac_need_defaults=false;;
23292  esac
23293
23294  case $ac_option in
23295  # Handling of the options.
23296_ACEOF
23297cat >>$CONFIG_STATUS <<\_ACEOF
23298  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23299    ac_cs_recheck=: ;;
23300  --version | --vers* | -V )
23301    echo "$ac_cs_version"; exit 0 ;;
23302  --he | --h)
23303    # Conflict between --help and --header
23304    { { echo "$as_me:$LINENO: error: ambiguous option: $1
23305Try \`$0 --help' for more information." >&5
23306echo "$as_me: error: ambiguous option: $1
23307Try \`$0 --help' for more information." >&2;}
23308   { (exit 1); exit 1; }; };;
23309  --help | --hel | -h )
23310    echo "$ac_cs_usage"; exit 0 ;;
23311  --debug | --d* | -d )
23312    debug=: ;;
23313  --file | --fil | --fi | --f )
23314    $ac_shift
23315    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23316    ac_need_defaults=false;;
23317  --header | --heade | --head | --hea )
23318    $ac_shift
23319    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23320    ac_need_defaults=false;;
23321  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23322  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23323    ac_cs_silent=: ;;
23324
23325  # This is an error.
23326  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23327Try \`$0 --help' for more information." >&5
23328echo "$as_me: error: unrecognized option: $1
23329Try \`$0 --help' for more information." >&2;}
23330   { (exit 1); exit 1; }; } ;;
23331
23332  *) ac_config_targets="$ac_config_targets $1" ;;
23333
23334  esac
23335  shift
23336done
23337
23338ac_configure_extra_args=
23339
23340if $ac_cs_silent; then
23341  exec 6>/dev/null
23342  ac_configure_extra_args="$ac_configure_extra_args --silent"
23343fi
23344
23345_ACEOF
23346cat >>$CONFIG_STATUS <<_ACEOF
23347if \$ac_cs_recheck; then
23348  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23349  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23350fi
23351
23352_ACEOF
23353
23354cat >>$CONFIG_STATUS <<_ACEOF
23355#
23356# INIT-COMMANDS section.
23357#
23358
23359${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23360${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23361${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23362${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23363${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23364${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23365${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23366${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23367${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23368${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23369${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23370${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23371${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23372${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23373${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23374${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23375${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23376${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23377${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23378${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23379${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23380${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23381${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23382${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23383${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23384${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23385${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23386${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23387${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23388${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23389${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23390${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23391${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23392${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23393${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23394${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23395${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23396${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23397${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23398${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23399${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23400${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23401${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23402${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
23403${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23404${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23405${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
23406${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23407${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23408${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23409${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23410${srcdir}/autoconf/mkinstalldirs `dirname test/QMTestDB/QMTest/llvm.py`
23411${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23412${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23413${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23414${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23415${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23416${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23417${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23418${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23419${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23420${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23421${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23422${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23423${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23424${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23425${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23426${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23427${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23428${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23429${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23430${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23431${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23432${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23433${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23434${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23435${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23436${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23437${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23438${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23439${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23440${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23441${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23442${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23443${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23444${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23445${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23446${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23447${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23448${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23449${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
23450${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23451${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
23452${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23453${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23454${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23455${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23456${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23457${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23458${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23459${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23460${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23461${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23462${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23463${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23464${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23465${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23466${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23467${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23468${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23469${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23470${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23471${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23472${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23473${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23474${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23475${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
23476${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
23477${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23478${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23479${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23480${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23481${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23482${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
23483${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
23484${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
23485${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23486${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23487${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23488${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23489${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
23490${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23491${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23492${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23493${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23494${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23495${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23496${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23497${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23498${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
23499${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23500${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23501${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23502${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
23503${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23504${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
23505${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
23506${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23507${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23508${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23509${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23510${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23511${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23512${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23513${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23514${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23515${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
23516${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23517${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23518${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23519${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23520${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23521${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23522${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23523${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23524${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23525${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23526${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23527${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23528${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23529${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23530${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23531${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23532${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23533${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23534${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23535${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23536${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23537
23538_ACEOF
23539
23540
23541
23542cat >>$CONFIG_STATUS <<\_ACEOF
23543for ac_config_target in $ac_config_targets
23544do
23545  case "$ac_config_target" in
23546  # Handling of arguments.
23547  "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23548  "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23549  "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23550  "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23551  "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23552  "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23553  "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23554  "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23555  "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23556  "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23557  "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23558  "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23559  "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23560  "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23561  "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23562  "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23563  "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23564  "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23565  "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23566  "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23567  "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23568  "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23569  "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23570  "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23571  "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23572  "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23573  "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23574  "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23575  "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23576  "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23577  "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23578  "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23579  "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23580  "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23581  "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23582  "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23583  "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23584  "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23585  "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23586  "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23587  "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23588  "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23589  "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23590  "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23591  "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
23592  "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23593  "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23594  "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
23595  "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23596  "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23597  "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23598  "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23599  "test/QMTestDB/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTestDB/QMTest/llvm.py" ;;
23600  "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23601  "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23602  "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23603  "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23604  "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23605  "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23606  "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23607  "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23608  "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23609  "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23610  "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23611  "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23612  "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23613  "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23614  "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23615  "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23616  "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23617  "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23618  "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23619  "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23620  "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23621  "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23622  "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23623  "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23624  "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23625  "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23626  "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23627  "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23628  "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23629  "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23630  "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23631  "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23632  "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23633  "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23634  "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23635  "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23636  "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23637  "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23638  "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
23639  "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23640  "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
23641  "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23642  "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23643  "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23644  "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23645  "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23646  "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23647  "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23648  "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23649  "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23650  "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23651  "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23652  "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23653  "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23654  "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23655  "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23656  "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23657  "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23658  "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23659  "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23660  "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23661  "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23662  "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23663  "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23664  "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
23665  "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
23666  "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23667  "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23668  "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23669  "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23670  "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23671  "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
23672  "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
23673  "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
23674  "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23675  "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23676  "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23677  "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23678  "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
23679  "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23680  "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23681  "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23682  "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23683  "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23684  "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23685  "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23686  "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23687  "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
23688  "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23689  "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23690  "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23691  "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
23692  "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23693  "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
23694  "test/Programs/SingleSource/Regression/C++/EH/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/EH/Makefile" ;;
23695  "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23696  "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23697  "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23698  "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23699  "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23700  "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23701  "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23702  "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23703  "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23704  "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
23705  "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23706  "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23707  "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23708  "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23709  "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23710  "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23711  "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23712  "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23713  "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23714  "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23715  "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23716  "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23717  "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23718  "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23719  "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23720  "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23721  "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23722  "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23723  "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23724  "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23725  "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23726  "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23727  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23728echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23729   { (exit 1); exit 1; }; };;
23730  esac
23731done
23732
23733# If the user did not use the arguments to specify the items to instantiate,
23734# then the envvar interface is used.  Set only those that are not.
23735# We use the long form for the default assignment because of an extremely
23736# bizarre bug on SunOS 4.1.3.
23737if $ac_need_defaults; then
23738  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23739  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23740  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23741fi
23742
23743# Have a temporary directory for convenience.  Make it in the build tree
23744# simply because there is no reason to put it here, and in addition,
23745# creating and moving files from /tmp can sometimes cause problems.
23746# Create a temporary directory, and hook for its removal unless debugging.
23747$debug ||
23748{
23749  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23750  trap '{ (exit 1); exit 1; }' 1 2 13 15
23751}
23752
23753# Create a (secure) tmp directory for tmp files.
23754
23755{
23756  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23757  test -n "$tmp" && test -d "$tmp"
23758}  ||
23759{
23760  tmp=./confstat$$-$RANDOM
23761  (umask 077 && mkdir $tmp)
23762} ||
23763{
23764   echo "$me: cannot create a temporary directory in ." >&2
23765   { (exit 1); exit 1; }
23766}
23767
23768_ACEOF
23769
23770cat >>$CONFIG_STATUS <<_ACEOF
23771
23772#
23773# CONFIG_FILES section.
23774#
23775
23776# No need to generate the scripts if there are no CONFIG_FILES.
23777# This happens for instance when ./config.status config.h
23778if test -n "\$CONFIG_FILES"; then
23779  # Protect against being on the right side of a sed subst in config.status.
23780  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23781   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23782s,@SHELL@,$SHELL,;t t
23783s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23784s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23785s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23786s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23787s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23788s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23789s,@exec_prefix@,$exec_prefix,;t t
23790s,@prefix@,$prefix,;t t
23791s,@program_transform_name@,$program_transform_name,;t t
23792s,@bindir@,$bindir,;t t
23793s,@sbindir@,$sbindir,;t t
23794s,@libexecdir@,$libexecdir,;t t
23795s,@datadir@,$datadir,;t t
23796s,@sysconfdir@,$sysconfdir,;t t
23797s,@sharedstatedir@,$sharedstatedir,;t t
23798s,@localstatedir@,$localstatedir,;t t
23799s,@libdir@,$libdir,;t t
23800s,@includedir@,$includedir,;t t
23801s,@oldincludedir@,$oldincludedir,;t t
23802s,@infodir@,$infodir,;t t
23803s,@mandir@,$mandir,;t t
23804s,@build_alias@,$build_alias,;t t
23805s,@host_alias@,$host_alias,;t t
23806s,@target_alias@,$target_alias,;t t
23807s,@DEFS@,$DEFS,;t t
23808s,@ECHO_C@,$ECHO_C,;t t
23809s,@ECHO_N@,$ECHO_N,;t t
23810s,@ECHO_T@,$ECHO_T,;t t
23811s,@LIBS@,$LIBS,;t t
23812s,@subdirs@,$subdirs,;t t
23813s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23814s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23815s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23816s,@build@,$build,;t t
23817s,@build_cpu@,$build_cpu,;t t
23818s,@build_vendor@,$build_vendor,;t t
23819s,@build_os@,$build_os,;t t
23820s,@host@,$host,;t t
23821s,@host_cpu@,$host_cpu,;t t
23822s,@host_vendor@,$host_vendor,;t t
23823s,@host_os@,$host_os,;t t
23824s,@target@,$target,;t t
23825s,@target_cpu@,$target_cpu,;t t
23826s,@target_vendor@,$target_vendor,;t t
23827s,@target_os@,$target_os,;t t
23828s,@OS@,$OS,;t t
23829s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23830s,@ARCH@,$ARCH,;t t
23831s,@CXX@,$CXX,;t t
23832s,@CXXFLAGS@,$CXXFLAGS,;t t
23833s,@LDFLAGS@,$LDFLAGS,;t t
23834s,@CPPFLAGS@,$CPPFLAGS,;t t
23835s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23836s,@EXEEXT@,$EXEEXT,;t t
23837s,@OBJEXT@,$OBJEXT,;t t
23838s,@CC@,$CC,;t t
23839s,@CFLAGS@,$CFLAGS,;t t
23840s,@ac_ct_CC@,$ac_ct_CC,;t t
23841s,@CPP@,$CPP,;t t
23842s,@ifGNUmake@,$ifGNUmake,;t t
23843s,@LEX@,$LEX,;t t
23844s,@LEXLIB@,$LEXLIB,;t t
23845s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23846s,@YACC@,$YACC,;t t
23847s,@EGREP@,$EGREP,;t t
23848s,@LN_S@,$LN_S,;t t
23849s,@ECHO@,$ECHO,;t t
23850s,@AR@,$AR,;t t
23851s,@ac_ct_AR@,$ac_ct_AR,;t t
23852s,@RANLIB@,$RANLIB,;t t
23853s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23854s,@STRIP@,$STRIP,;t t
23855s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23856s,@CXXCPP@,$CXXCPP,;t t
23857s,@F77@,$F77,;t t
23858s,@FFLAGS@,$FFLAGS,;t t
23859s,@ac_ct_F77@,$ac_ct_F77,;t t
23860s,@LIBTOOL@,$LIBTOOL,;t t
23861s,@RPWD@,$RPWD,;t t
23862s,@SED@,$SED,;t t
23863s,@RM@,$RM,;t t
23864s,@MKDIR@,$MKDIR,;t t
23865s,@DATE@,$DATE,;t t
23866s,@MV@,$MV,;t t
23867s,@DOT@,$DOT,;t t
23868s,@ETAGS@,$ETAGS,;t t
23869s,@PYTHON@,$PYTHON,;t t
23870s,@QMTEST@,$QMTEST,;t t
23871s,@ALLOCA@,$ALLOCA,;t t
23872s,@LIBOBJS@,$LIBOBJS,;t t
23873s,@MMAP_FILE@,$MMAP_FILE,;t t
23874s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23875s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23876s,@USE_SPEC@,$USE_SPEC,;t t
23877s,@UPB@,$UPB,;t t
23878s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23879s,@JIT@,$JIT,;t t
23880s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23881s,@BCR@,$BCR,;t t
23882s,@PAPIDIR@,$PAPIDIR,;t t
23883s,@PURIFY@,$PURIFY,;t t
23884s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23885CEOF
23886
23887_ACEOF
23888
23889  cat >>$CONFIG_STATUS <<\_ACEOF
23890  # Split the substitutions into bite-sized pieces for seds with
23891  # small command number limits, like on Digital OSF/1 and HP-UX.
23892  ac_max_sed_lines=48
23893  ac_sed_frag=1 # Number of current file.
23894  ac_beg=1 # First line for current file.
23895  ac_end=$ac_max_sed_lines # Line after last line for current file.
23896  ac_more_lines=:
23897  ac_sed_cmds=
23898  while $ac_more_lines; do
23899    if test $ac_beg -gt 1; then
23900      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23901    else
23902      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23903    fi
23904    if test ! -s $tmp/subs.frag; then
23905      ac_more_lines=false
23906    else
23907      # The purpose of the label and of the branching condition is to
23908      # speed up the sed processing (if there are no `@' at all, there
23909      # is no need to browse any of the substitutions).
23910      # These are the two extra sed commands mentioned above.
23911      (echo ':t
23912  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23913      if test -z "$ac_sed_cmds"; then
23914  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23915      else
23916  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23917      fi
23918      ac_sed_frag=`expr $ac_sed_frag + 1`
23919      ac_beg=$ac_end
23920      ac_end=`expr $ac_end + $ac_max_sed_lines`
23921    fi
23922  done
23923  if test -z "$ac_sed_cmds"; then
23924    ac_sed_cmds=cat
23925  fi
23926fi # test -n "$CONFIG_FILES"
23927
23928_ACEOF
23929cat >>$CONFIG_STATUS <<\_ACEOF
23930for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23931  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23932  case $ac_file in
23933  - | *:- | *:-:* ) # input from stdin
23934        cat >$tmp/stdin
23935        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23936        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23937  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23938        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23939  * )   ac_file_in=$ac_file.in ;;
23940  esac
23941
23942  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23943  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23944$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23945         X"$ac_file" : 'X\(//\)[^/]' \| \
23946         X"$ac_file" : 'X\(//\)$' \| \
23947         X"$ac_file" : 'X\(/\)' \| \
23948         .     : '\(.\)' 2>/dev/null ||
23949echo X"$ac_file" |
23950    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23951  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23952  	  /^X\(\/\/\)$/{ s//\1/; q; }
23953  	  /^X\(\/\).*/{ s//\1/; q; }
23954  	  s/.*/./; q'`
23955  { if $as_mkdir_p; then
23956    mkdir -p "$ac_dir"
23957  else
23958    as_dir="$ac_dir"
23959    as_dirs=
23960    while test ! -d "$as_dir"; do
23961      as_dirs="$as_dir $as_dirs"
23962      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23963$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23964         X"$as_dir" : 'X\(//\)[^/]' \| \
23965         X"$as_dir" : 'X\(//\)$' \| \
23966         X"$as_dir" : 'X\(/\)' \| \
23967         .     : '\(.\)' 2>/dev/null ||
23968echo X"$as_dir" |
23969    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23970  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23971  	  /^X\(\/\/\)$/{ s//\1/; q; }
23972  	  /^X\(\/\).*/{ s//\1/; q; }
23973  	  s/.*/./; q'`
23974    done
23975    test ! -n "$as_dirs" || mkdir $as_dirs
23976  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23977echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23978   { (exit 1); exit 1; }; }; }
23979
23980  ac_builddir=.
23981
23982if test "$ac_dir" != .; then
23983  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23984  # A "../" for each directory in $ac_dir_suffix.
23985  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23986else
23987  ac_dir_suffix= ac_top_builddir=
23988fi
23989
23990case $srcdir in
23991  .)  # No --srcdir option.  We are building in place.
23992    ac_srcdir=.
23993    if test -z "$ac_top_builddir"; then
23994       ac_top_srcdir=.
23995    else
23996       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23997    fi ;;
23998  [\\/]* | ?:[\\/]* )  # Absolute path.
23999    ac_srcdir=$srcdir$ac_dir_suffix;
24000    ac_top_srcdir=$srcdir ;;
24001  *) # Relative path.
24002    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24003    ac_top_srcdir=$ac_top_builddir$srcdir ;;
24004esac
24005# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24006# absolute.
24007ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24008ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24009ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24010ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24011
24012
24013  case $INSTALL in
24014  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24015  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24016  esac
24017
24018  if test x"$ac_file" != x-; then
24019    { echo "$as_me:$LINENO: creating $ac_file" >&5
24020echo "$as_me: creating $ac_file" >&6;}
24021    rm -f "$ac_file"
24022  fi
24023  # Let's still pretend it is `configure' which instantiates (i.e., don't
24024  # use $as_me), people would be surprised to read:
24025  #    /* config.h.  Generated by config.status.  */
24026  if test x"$ac_file" = x-; then
24027    configure_input=
24028  else
24029    configure_input="$ac_file.  "
24030  fi
24031  configure_input=$configure_input"Generated from `echo $ac_file_in |
24032                                     sed 's,.*/,,'` by configure."
24033
24034  # First look for the input files in the build tree, otherwise in the
24035  # src tree.
24036  ac_file_inputs=`IFS=:
24037    for f in $ac_file_in; do
24038      case $f in
24039      -) echo $tmp/stdin ;;
24040      [\\/$]*)
24041         # Absolute (can't be DOS-style, as IFS=:)
24042         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24043echo "$as_me: error: cannot find input file: $f" >&2;}
24044   { (exit 1); exit 1; }; }
24045         echo $f;;
24046      *) # Relative
24047         if test -f "$f"; then
24048           # Build tree
24049           echo $f
24050         elif test -f "$srcdir/$f"; then
24051           # Source tree
24052           echo $srcdir/$f
24053         else
24054           # /dev/null tree
24055           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24056echo "$as_me: error: cannot find input file: $f" >&2;}
24057   { (exit 1); exit 1; }; }
24058         fi;;
24059      esac
24060    done` || { (exit 1); exit 1; }
24061_ACEOF
24062cat >>$CONFIG_STATUS <<_ACEOF
24063  sed "$ac_vpsub
24064$extrasub
24065_ACEOF
24066cat >>$CONFIG_STATUS <<\_ACEOF
24067:t
24068/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24069s,@configure_input@,$configure_input,;t t
24070s,@srcdir@,$ac_srcdir,;t t
24071s,@abs_srcdir@,$ac_abs_srcdir,;t t
24072s,@top_srcdir@,$ac_top_srcdir,;t t
24073s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24074s,@builddir@,$ac_builddir,;t t
24075s,@abs_builddir@,$ac_abs_builddir,;t t
24076s,@top_builddir@,$ac_top_builddir,;t t
24077s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24078s,@INSTALL@,$ac_INSTALL,;t t
24079" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24080  rm -f $tmp/stdin
24081  if test x"$ac_file" != x-; then
24082    mv $tmp/out $ac_file
24083  else
24084    cat $tmp/out
24085    rm -f $tmp/out
24086  fi
24087
24088done
24089_ACEOF
24090cat >>$CONFIG_STATUS <<\_ACEOF
24091
24092#
24093# CONFIG_HEADER section.
24094#
24095
24096# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24097# NAME is the cpp macro being defined and VALUE is the value it is being given.
24098#
24099# ac_d sets the value in "#define NAME VALUE" lines.
24100ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
24101ac_dB='[ 	].*$,\1#\2'
24102ac_dC=' '
24103ac_dD=',;t'
24104# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24105ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
24106ac_uB='$,\1#\2define\3'
24107ac_uC=' '
24108ac_uD=',;t'
24109
24110for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24111  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24112  case $ac_file in
24113  - | *:- | *:-:* ) # input from stdin
24114        cat >$tmp/stdin
24115        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24116        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24117  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24118        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24119  * )   ac_file_in=$ac_file.in ;;
24120  esac
24121
24122  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24123echo "$as_me: creating $ac_file" >&6;}
24124
24125  # First look for the input files in the build tree, otherwise in the
24126  # src tree.
24127  ac_file_inputs=`IFS=:
24128    for f in $ac_file_in; do
24129      case $f in
24130      -) echo $tmp/stdin ;;
24131      [\\/$]*)
24132         # Absolute (can't be DOS-style, as IFS=:)
24133         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24134echo "$as_me: error: cannot find input file: $f" >&2;}
24135   { (exit 1); exit 1; }; }
24136         echo $f;;
24137      *) # Relative
24138         if test -f "$f"; then
24139           # Build tree
24140           echo $f
24141         elif test -f "$srcdir/$f"; then
24142           # Source tree
24143           echo $srcdir/$f
24144         else
24145           # /dev/null tree
24146           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24147echo "$as_me: error: cannot find input file: $f" >&2;}
24148   { (exit 1); exit 1; }; }
24149         fi;;
24150      esac
24151    done` || { (exit 1); exit 1; }
24152  # Remove the trailing spaces.
24153  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
24154
24155_ACEOF
24156
24157# Transform confdefs.h into two sed scripts, `conftest.defines' and
24158# `conftest.undefs', that substitutes the proper values into
24159# config.h.in to produce config.h.  The first handles `#define'
24160# templates, and the second `#undef' templates.
24161# And first: Protect against being on the right side of a sed subst in
24162# config.status.  Protect against being in an unquoted here document
24163# in config.status.
24164rm -f conftest.defines conftest.undefs
24165# Using a here document instead of a string reduces the quoting nightmare.
24166# Putting comments in sed scripts is not portable.
24167#
24168# `end' is used to avoid that the second main sed command (meant for
24169# 0-ary CPP macros) applies to n-ary macro definitions.
24170# See the Autoconf documentation for `clear'.
24171cat >confdef2sed.sed <<\_ACEOF
24172s/[\\&,]/\\&/g
24173s,[\\$`],\\&,g
24174t clear
24175: clear
24176s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24177t end
24178s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24179: end
24180_ACEOF
24181# If some macros were called several times there might be several times
24182# the same #defines, which is useless.  Nevertheless, we may not want to
24183# sort them, since we want the *last* AC-DEFINE to be honored.
24184uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24185sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24186rm -f confdef2sed.sed
24187
24188# This sed command replaces #undef with comments.  This is necessary, for
24189# example, in the case of _POSIX_SOURCE, which is predefined and required
24190# on some systems where configure will not decide to define it.
24191cat >>conftest.undefs <<\_ACEOF
24192s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24193_ACEOF
24194
24195# Break up conftest.defines because some shells have a limit on the size
24196# of here documents, and old seds have small limits too (100 cmds).
24197echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24198echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24199echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24200echo '  :' >>$CONFIG_STATUS
24201rm -f conftest.tail
24202while grep . conftest.defines >/dev/null
24203do
24204  # Write a limited-size here document to $tmp/defines.sed.
24205  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24206  # Speed up: don't consider the non `#define' lines.
24207  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
24208  # Work around the forget-to-reset-the-flag bug.
24209  echo 't clr' >>$CONFIG_STATUS
24210  echo ': clr' >>$CONFIG_STATUS
24211  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24212  echo 'CEOF
24213  sed -f $tmp/defines.sed $tmp/in >$tmp/out
24214  rm -f $tmp/in
24215  mv $tmp/out $tmp/in
24216' >>$CONFIG_STATUS
24217  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24218  rm -f conftest.defines
24219  mv conftest.tail conftest.defines
24220done
24221rm -f conftest.defines
24222echo '  fi # grep' >>$CONFIG_STATUS
24223echo >>$CONFIG_STATUS
24224
24225# Break up conftest.undefs because some shells have a limit on the size
24226# of here documents, and old seds have small limits too (100 cmds).
24227echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24228rm -f conftest.tail
24229while grep . conftest.undefs >/dev/null
24230do
24231  # Write a limited-size here document to $tmp/undefs.sed.
24232  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24233  # Speed up: don't consider the non `#undef'
24234  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
24235  # Work around the forget-to-reset-the-flag bug.
24236  echo 't clr' >>$CONFIG_STATUS
24237  echo ': clr' >>$CONFIG_STATUS
24238  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24239  echo 'CEOF
24240  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24241  rm -f $tmp/in
24242  mv $tmp/out $tmp/in
24243' >>$CONFIG_STATUS
24244  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24245  rm -f conftest.undefs
24246  mv conftest.tail conftest.undefs
24247done
24248rm -f conftest.undefs
24249
24250cat >>$CONFIG_STATUS <<\_ACEOF
24251  # Let's still pretend it is `configure' which instantiates (i.e., don't
24252  # use $as_me), people would be surprised to read:
24253  #    /* config.h.  Generated by config.status.  */
24254  if test x"$ac_file" = x-; then
24255    echo "/* Generated by configure.  */" >$tmp/config.h
24256  else
24257    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24258  fi
24259  cat $tmp/in >>$tmp/config.h
24260  rm -f $tmp/in
24261  if test x"$ac_file" != x-; then
24262    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24263      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24264echo "$as_me: $ac_file is unchanged" >&6;}
24265    else
24266      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24267$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24268         X"$ac_file" : 'X\(//\)[^/]' \| \
24269         X"$ac_file" : 'X\(//\)$' \| \
24270         X"$ac_file" : 'X\(/\)' \| \
24271         .     : '\(.\)' 2>/dev/null ||
24272echo X"$ac_file" |
24273    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24274  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24275  	  /^X\(\/\/\)$/{ s//\1/; q; }
24276  	  /^X\(\/\).*/{ s//\1/; q; }
24277  	  s/.*/./; q'`
24278      { if $as_mkdir_p; then
24279    mkdir -p "$ac_dir"
24280  else
24281    as_dir="$ac_dir"
24282    as_dirs=
24283    while test ! -d "$as_dir"; do
24284      as_dirs="$as_dir $as_dirs"
24285      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24286$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24287         X"$as_dir" : 'X\(//\)[^/]' \| \
24288         X"$as_dir" : 'X\(//\)$' \| \
24289         X"$as_dir" : 'X\(/\)' \| \
24290         .     : '\(.\)' 2>/dev/null ||
24291echo X"$as_dir" |
24292    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24293  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24294  	  /^X\(\/\/\)$/{ s//\1/; q; }
24295  	  /^X\(\/\).*/{ s//\1/; q; }
24296  	  s/.*/./; q'`
24297    done
24298    test ! -n "$as_dirs" || mkdir $as_dirs
24299  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24300echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24301   { (exit 1); exit 1; }; }; }
24302
24303      rm -f $ac_file
24304      mv $tmp/config.h $ac_file
24305    fi
24306  else
24307    cat $tmp/config.h
24308    rm -f $tmp/config.h
24309  fi
24310done
24311_ACEOF
24312cat >>$CONFIG_STATUS <<\_ACEOF
24313
24314#
24315# CONFIG_COMMANDS section.
24316#
24317for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24318  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24319  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24320  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24321$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24322         X"$ac_dest" : 'X\(//\)[^/]' \| \
24323         X"$ac_dest" : 'X\(//\)$' \| \
24324         X"$ac_dest" : 'X\(/\)' \| \
24325         .     : '\(.\)' 2>/dev/null ||
24326echo X"$ac_dest" |
24327    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24328  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24329  	  /^X\(\/\/\)$/{ s//\1/; q; }
24330  	  /^X\(\/\).*/{ s//\1/; q; }
24331  	  s/.*/./; q'`
24332  ac_builddir=.
24333
24334if test "$ac_dir" != .; then
24335  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24336  # A "../" for each directory in $ac_dir_suffix.
24337  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24338else
24339  ac_dir_suffix= ac_top_builddir=
24340fi
24341
24342case $srcdir in
24343  .)  # No --srcdir option.  We are building in place.
24344    ac_srcdir=.
24345    if test -z "$ac_top_builddir"; then
24346       ac_top_srcdir=.
24347    else
24348       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24349    fi ;;
24350  [\\/]* | ?:[\\/]* )  # Absolute path.
24351    ac_srcdir=$srcdir$ac_dir_suffix;
24352    ac_top_srcdir=$srcdir ;;
24353  *) # Relative path.
24354    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24355    ac_top_srcdir=$ac_top_builddir$srcdir ;;
24356esac
24357# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24358# absolute.
24359ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24360ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24361ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24362ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24363
24364
24365  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24366echo "$as_me: executing $ac_dest commands" >&6;}
24367  case $ac_dest in
24368    Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24369    Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24370    Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24371    lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24372    lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24373    lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24374    lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24375    lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24376    lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24377    lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24378    lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24379    lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24380    lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24381    lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24382    lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24383    lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24384    lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24385    lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24386    lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24387    lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24388    lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24389    lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24390    lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24391    lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24392    lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24393    lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24394    lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24395    lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24396    lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24397    lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24398    lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24399    lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24400    lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24401    lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24402    runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24403    runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24404    runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24405    runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24406    runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24407    runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24408    runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24409    runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24410    runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24411    runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
24412    runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24413    runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24414    runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
24415    runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24416    runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24417    test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24418    test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24419    test/QMTestDB/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTestDB/QMTest/llvm.py test/QMTestDB/QMTest/llvm.py ;;
24420    test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24421    test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24422    test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24423    test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24424    test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24425    test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24426    test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24427    test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24428    test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24429    test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24430    test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24431    test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24432    test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24433    test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24434    test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24435    test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24436    test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24437    test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24438    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 ;;
24439    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 ;;
24440    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 ;;
24441    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 ;;
24442    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 ;;
24443    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 ;;
24444    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 ;;
24445    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 ;;
24446    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 ;;
24447    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 ;;
24448    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 ;;
24449    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 ;;
24450    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 ;;
24451    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 ;;
24452    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 ;;
24453    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 ;;
24454    test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24455    test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24456    test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24457    test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24458    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 ;;
24459    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 ;;
24460    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 ;;
24461    test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24462    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 ;;
24463    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 ;;
24464    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 ;;
24465    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 ;;
24466    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 ;;
24467    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 ;;
24468    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 ;;
24469    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 ;;
24470    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 ;;
24471    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 ;;
24472    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 ;;
24473    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 ;;
24474    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 ;;
24475    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 ;;
24476    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 ;;
24477    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 ;;
24478    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 ;;
24479    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 ;;
24480    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 ;;
24481    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 ;;
24482    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 ;;
24483    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 ;;
24484    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 ;;
24485    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 ;;
24486    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 ;;
24487    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 ;;
24488    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 ;;
24489    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 ;;
24490    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 ;;
24491    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 ;;
24492    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 ;;
24493    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 ;;
24494    test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24495    test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24496    test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24497    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 ;;
24498    test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
24499    test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24500    test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24501    test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24502    test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24503    test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24504    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 ;;
24505    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 ;;
24506    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 ;;
24507    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 ;;
24508    test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24509    test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24510    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 ;;
24511    test/Programs/SingleSource/Regression/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/Makefile test/Programs/SingleSource/Regression/Makefile ;;
24512    test/Programs/SingleSource/Regression/C/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C/Makefile test/Programs/SingleSource/Regression/C/Makefile ;;
24513    test/Programs/SingleSource/Regression/C++/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/Makefile test/Programs/SingleSource/Regression/C++/Makefile ;;
24514    test/Programs/SingleSource/Regression/C++/EH/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/EH/Makefile test/Programs/SingleSource/Regression/C++/EH/Makefile ;;
24515    tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24516    tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24517    tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24518    tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24519    tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24520    tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24521    tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24522    tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24523    tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24524    tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
24525    tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24526    tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24527    tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24528    tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24529    utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24530    utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24531    utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24532    utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24533    www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24534    projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24535    projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24536    projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24537    projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24538    projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24539    projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24540    projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24541    projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24542    projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24543    projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24544    projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24545    projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24546  esac
24547done
24548_ACEOF
24549
24550cat >>$CONFIG_STATUS <<\_ACEOF
24551
24552{ (exit 0); exit 0; }
24553_ACEOF
24554chmod +x $CONFIG_STATUS
24555ac_clean_files=$ac_clean_files_save
24556
24557
24558# configure is writing to config.log, and then calls config.status.
24559# config.status does its own redirection, appending to config.log.
24560# Unfortunately, on DOS this fails, as config.log is still kept open
24561# by configure, so config.status won't be able to write to it; its
24562# output is simply discarded.  So we exec the FD to /dev/null,
24563# effectively closing config.log, so it can be properly (re)opened and
24564# appended to by config.status.  When coming back to configure, we
24565# need to make the FD available again.
24566if test "$no_create" != yes; then
24567  ac_cs_success=:
24568  ac_config_status_args=
24569  test "$silent" = yes &&
24570    ac_config_status_args="$ac_config_status_args --quiet"
24571  exec 5>/dev/null
24572  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24573  exec 5>>config.log
24574  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24575  # would make configure fail if this is the last instruction.
24576  $ac_cs_success || { (exit 1); exit 1; }
24577fi
24578
24579#
24580# CONFIG_SUBDIRS section.
24581#
24582if test "$no_recursion" != yes; then
24583
24584  # Remove --cache-file and --srcdir arguments so they do not pile up.
24585  ac_sub_configure_args=
24586  ac_prev=
24587  for ac_arg in $ac_configure_args; do
24588    if test -n "$ac_prev"; then
24589      ac_prev=
24590      continue
24591    fi
24592    case $ac_arg in
24593    -cache-file | --cache-file | --cache-fil | --cache-fi \
24594    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24595      ac_prev=cache_file ;;
24596    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24597    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24598    | --c=*)
24599      ;;
24600    --config-cache | -C)
24601      ;;
24602    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24603      ac_prev=srcdir ;;
24604    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24605      ;;
24606    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24607      ac_prev=prefix ;;
24608    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24609      ;;
24610    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24611    esac
24612  done
24613
24614  # Always prepend --prefix to ensure using the same prefix
24615  # in subdir configurations.
24616  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24617
24618  ac_popdir=`pwd`
24619  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24620
24621    # Do not complain, so a configure script can configure whichever
24622    # parts of a large source tree are present.
24623    test -d $srcdir/$ac_dir || continue
24624
24625    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24626echo "$as_me: configuring in $ac_dir" >&6;}
24627    { if $as_mkdir_p; then
24628    mkdir -p "$ac_dir"
24629  else
24630    as_dir="$ac_dir"
24631    as_dirs=
24632    while test ! -d "$as_dir"; do
24633      as_dirs="$as_dir $as_dirs"
24634      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24635$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24636         X"$as_dir" : 'X\(//\)[^/]' \| \
24637         X"$as_dir" : 'X\(//\)$' \| \
24638         X"$as_dir" : 'X\(/\)' \| \
24639         .     : '\(.\)' 2>/dev/null ||
24640echo X"$as_dir" |
24641    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24642  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24643  	  /^X\(\/\/\)$/{ s//\1/; q; }
24644  	  /^X\(\/\).*/{ s//\1/; q; }
24645  	  s/.*/./; q'`
24646    done
24647    test ! -n "$as_dirs" || mkdir $as_dirs
24648  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24649echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24650   { (exit 1); exit 1; }; }; }
24651
24652    ac_builddir=.
24653
24654if test "$ac_dir" != .; then
24655  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24656  # A "../" for each directory in $ac_dir_suffix.
24657  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24658else
24659  ac_dir_suffix= ac_top_builddir=
24660fi
24661
24662case $srcdir in
24663  .)  # No --srcdir option.  We are building in place.
24664    ac_srcdir=.
24665    if test -z "$ac_top_builddir"; then
24666       ac_top_srcdir=.
24667    else
24668       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24669    fi ;;
24670  [\\/]* | ?:[\\/]* )  # Absolute path.
24671    ac_srcdir=$srcdir$ac_dir_suffix;
24672    ac_top_srcdir=$srcdir ;;
24673  *) # Relative path.
24674    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24675    ac_top_srcdir=$ac_top_builddir$srcdir ;;
24676esac
24677# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24678# absolute.
24679ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24680ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24681ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24682ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24683
24684
24685    cd $ac_dir
24686
24687    # Check for guested configure; otherwise get Cygnus style configure.
24688    if test -f $ac_srcdir/configure.gnu; then
24689      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24690    elif test -f $ac_srcdir/configure; then
24691      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24692    elif test -f $ac_srcdir/configure.in; then
24693      ac_sub_configure=$ac_configure
24694    else
24695      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24696echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24697      ac_sub_configure=
24698    fi
24699
24700    # The recursion is here.
24701    if test -n "$ac_sub_configure"; then
24702      # Make the cache file name correct relative to the subdirectory.
24703      case $cache_file in
24704      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24705      *) # Relative path.
24706        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24707      esac
24708
24709      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24710echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24711      # The eval makes quoting arguments work.
24712      eval $ac_sub_configure $ac_sub_configure_args \
24713           --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24714        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24715echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24716   { (exit 1); exit 1; }; }
24717    fi
24718
24719    cd $ac_popdir
24720  done
24721fi
24722
24723