configure revision 0550256c3185f58faef04812a40824f6721a2ddf
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.57 for [LLVM] [1.1].
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.1]'
426PACKAGE_STRING='[LLVM] [1.1]'
427PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429ac_subdirs_all="$ac_subdirs_all projects/${i}"
430# Factoring default headers for most tests.
431ac_includes_default="\
432#include <stdio.h>
433#if HAVE_SYS_TYPES_H
434# include <sys/types.h>
435#endif
436#if HAVE_SYS_STAT_H
437# include <sys/stat.h>
438#endif
439#if STDC_HEADERS
440# include <stdlib.h>
441# include <stddef.h>
442#else
443# if HAVE_STDLIB_H
444#  include <stdlib.h>
445# endif
446#endif
447#if HAVE_STRING_H
448# if !STDC_HEADERS && HAVE_MEMORY_H
449#  include <memory.h>
450# endif
451# include <string.h>
452#endif
453#if HAVE_STRINGS_H
454# include <strings.h>
455#endif
456#if HAVE_INTTYPES_H
457# include <inttypes.h>
458#else
459# if HAVE_STDINT_H
460#  include <stdint.h>
461# endif
462#endif
463#if HAVE_UNISTD_H
464# include <unistd.h>
465#endif"
466
467ac_unique_file=""Makefile.config.in""
468ac_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 BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_PTHREAD_MUTEX_LOCK INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC2000_ROOT USE_SPEC2000 SPEC95_ROOT USE_SPEC95 POVRAY_ROOT USE_POVRAY UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT LIBOBJS LTLIBOBJS'
469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512  # If the previous option needs an argument, assign it.
513  if test -n "$ac_prev"; then
514    eval "$ac_prev=\$ac_option"
515    ac_prev=
516    continue
517  fi
518
519  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521  # Accept the important Cygnus configure options, so we can diagnose typos.
522
523  case $ac_option in
524
525  -bindir | --bindir | --bindi | --bind | --bin | --bi)
526    ac_prev=bindir ;;
527  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528    bindir=$ac_optarg ;;
529
530  -build | --build | --buil | --bui | --bu)
531    ac_prev=build_alias ;;
532  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533    build_alias=$ac_optarg ;;
534
535  -cache-file | --cache-file | --cache-fil | --cache-fi \
536  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537    ac_prev=cache_file ;;
538  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540    cache_file=$ac_optarg ;;
541
542  --config-cache | -C)
543    cache_file=config.cache ;;
544
545  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546    ac_prev=datadir ;;
547  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548  | --da=*)
549    datadir=$ac_optarg ;;
550
551  -disable-* | --disable-*)
552    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553    # Reject names that are not valid shell variable names.
554    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556   { (exit 1); exit 1; }; }
557    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558    eval "enable_$ac_feature=no" ;;
559
560  -enable-* | --enable-*)
561    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562    # Reject names that are not valid shell variable names.
563    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565   { (exit 1); exit 1; }; }
566    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567    case $ac_option in
568      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569      *) ac_optarg=yes ;;
570    esac
571    eval "enable_$ac_feature='$ac_optarg'" ;;
572
573  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575  | --exec | --exe | --ex)
576    ac_prev=exec_prefix ;;
577  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579  | --exec=* | --exe=* | --ex=*)
580    exec_prefix=$ac_optarg ;;
581
582  -gas | --gas | --ga | --g)
583    # Obsolete; use --with-gas.
584    with_gas=yes ;;
585
586  -help | --help | --hel | --he | -h)
587    ac_init_help=long ;;
588  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589    ac_init_help=recursive ;;
590  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591    ac_init_help=short ;;
592
593  -host | --host | --hos | --ho)
594    ac_prev=host_alias ;;
595  -host=* | --host=* | --hos=* | --ho=*)
596    host_alias=$ac_optarg ;;
597
598  -includedir | --includedir | --includedi | --included | --include \
599  | --includ | --inclu | --incl | --inc)
600    ac_prev=includedir ;;
601  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602  | --includ=* | --inclu=* | --incl=* | --inc=*)
603    includedir=$ac_optarg ;;
604
605  -infodir | --infodir | --infodi | --infod | --info | --inf)
606    ac_prev=infodir ;;
607  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608    infodir=$ac_optarg ;;
609
610  -libdir | --libdir | --libdi | --libd)
611    ac_prev=libdir ;;
612  -libdir=* | --libdir=* | --libdi=* | --libd=*)
613    libdir=$ac_optarg ;;
614
615  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616  | --libexe | --libex | --libe)
617    ac_prev=libexecdir ;;
618  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619  | --libexe=* | --libex=* | --libe=*)
620    libexecdir=$ac_optarg ;;
621
622  -localstatedir | --localstatedir | --localstatedi | --localstated \
623  | --localstate | --localstat | --localsta | --localst \
624  | --locals | --local | --loca | --loc | --lo)
625    ac_prev=localstatedir ;;
626  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629    localstatedir=$ac_optarg ;;
630
631  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632    ac_prev=mandir ;;
633  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634    mandir=$ac_optarg ;;
635
636  -nfp | --nfp | --nf)
637    # Obsolete; use --without-fp.
638    with_fp=no ;;
639
640  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641  | --no-cr | --no-c | -n)
642    no_create=yes ;;
643
644  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646    no_recursion=yes ;;
647
648  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650  | --oldin | --oldi | --old | --ol | --o)
651    ac_prev=oldincludedir ;;
652  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655    oldincludedir=$ac_optarg ;;
656
657  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658    ac_prev=prefix ;;
659  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660    prefix=$ac_optarg ;;
661
662  -program-prefix | --program-prefix | --program-prefi | --program-pref \
663  | --program-pre | --program-pr | --program-p)
664    ac_prev=program_prefix ;;
665  -program-prefix=* | --program-prefix=* | --program-prefi=* \
666  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667    program_prefix=$ac_optarg ;;
668
669  -program-suffix | --program-suffix | --program-suffi | --program-suff \
670  | --program-suf | --program-su | --program-s)
671    ac_prev=program_suffix ;;
672  -program-suffix=* | --program-suffix=* | --program-suffi=* \
673  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674    program_suffix=$ac_optarg ;;
675
676  -program-transform-name | --program-transform-name \
677  | --program-transform-nam | --program-transform-na \
678  | --program-transform-n | --program-transform- \
679  | --program-transform | --program-transfor \
680  | --program-transfo | --program-transf \
681  | --program-trans | --program-tran \
682  | --progr-tra | --program-tr | --program-t)
683    ac_prev=program_transform_name ;;
684  -program-transform-name=* | --program-transform-name=* \
685  | --program-transform-nam=* | --program-transform-na=* \
686  | --program-transform-n=* | --program-transform-=* \
687  | --program-transform=* | --program-transfor=* \
688  | --program-transfo=* | --program-transf=* \
689  | --program-trans=* | --program-tran=* \
690  | --progr-tra=* | --program-tr=* | --program-t=*)
691    program_transform_name=$ac_optarg ;;
692
693  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694  | -silent | --silent | --silen | --sile | --sil)
695    silent=yes ;;
696
697  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698    ac_prev=sbindir ;;
699  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700  | --sbi=* | --sb=*)
701    sbindir=$ac_optarg ;;
702
703  -sharedstatedir | --sharedstatedir | --sharedstatedi \
704  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705  | --sharedst | --shareds | --shared | --share | --shar \
706  | --sha | --sh)
707    ac_prev=sharedstatedir ;;
708  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711  | --sha=* | --sh=*)
712    sharedstatedir=$ac_optarg ;;
713
714  -site | --site | --sit)
715    ac_prev=site ;;
716  -site=* | --site=* | --sit=*)
717    site=$ac_optarg ;;
718
719  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720    ac_prev=srcdir ;;
721  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722    srcdir=$ac_optarg ;;
723
724  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725  | --syscon | --sysco | --sysc | --sys | --sy)
726    ac_prev=sysconfdir ;;
727  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729    sysconfdir=$ac_optarg ;;
730
731  -target | --target | --targe | --targ | --tar | --ta | --t)
732    ac_prev=target_alias ;;
733  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734    target_alias=$ac_optarg ;;
735
736  -v | -verbose | --verbose | --verbos | --verbo | --verb)
737    verbose=yes ;;
738
739  -version | --version | --versio | --versi | --vers | -V)
740    ac_init_version=: ;;
741
742  -with-* | --with-*)
743    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744    # Reject names that are not valid shell variable names.
745    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746      { echo "$as_me: error: invalid package name: $ac_package" >&2
747   { (exit 1); exit 1; }; }
748    ac_package=`echo $ac_package| sed 's/-/_/g'`
749    case $ac_option in
750      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751      *) ac_optarg=yes ;;
752    esac
753    eval "with_$ac_package='$ac_optarg'" ;;
754
755  -without-* | --without-*)
756    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757    # Reject names that are not valid shell variable names.
758    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759      { echo "$as_me: error: invalid package name: $ac_package" >&2
760   { (exit 1); exit 1; }; }
761    ac_package=`echo $ac_package | sed 's/-/_/g'`
762    eval "with_$ac_package=no" ;;
763
764  --x)
765    # Obsolete; use --with-x.
766    with_x=yes ;;
767
768  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769  | --x-incl | --x-inc | --x-in | --x-i)
770    ac_prev=x_includes ;;
771  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773    x_includes=$ac_optarg ;;
774
775  -x-libraries | --x-libraries | --x-librarie | --x-librari \
776  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777    ac_prev=x_libraries ;;
778  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780    x_libraries=$ac_optarg ;;
781
782  -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784   { (exit 1); exit 1; }; }
785    ;;
786
787  *=*)
788    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789    # Reject names that are not valid shell variable names.
790    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792   { (exit 1); exit 1; }; }
793    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794    eval "$ac_envvar='$ac_optarg'"
795    export $ac_envvar ;;
796
797  *)
798    # FIXME: should be removed in autoconf 3.0.
799    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803    ;;
804
805  esac
806done
807
808if test -n "$ac_prev"; then
809  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810  { echo "$as_me: error: missing argument to $ac_option" >&2
811   { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817  eval ac_val=$`echo $ac_var`
818  case $ac_val in
819    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821   { (exit 1); exit 1; }; };;
822  esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827              localstatedir libdir includedir oldincludedir infodir mandir
828do
829  eval ac_val=$`echo $ac_var`
830  case $ac_val in
831    [\\/$]* | ?:[\\/]* ) ;;
832    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833   { (exit 1); exit 1; }; };;
834  esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846  if test "x$build_alias" = x; then
847    cross_compiling=maybe
848    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849    If a cross compiler is detected then cross compile mode will be used." >&2
850  elif test "x$build_alias" != "x$host_alias"; then
851    cross_compiling=yes
852  fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863  ac_srcdir_defaulted=yes
864  # Try the directory containing this script, then its parent.
865  ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867         X"$0" : 'X\(//\)[^/]' \| \
868         X"$0" : 'X\(//\)$' \| \
869         X"$0" : 'X\(/\)' \| \
870         .     : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874  	  /^X\(\/\/\)$/{ s//\1/; q; }
875  	  /^X\(\/\).*/{ s//\1/; q; }
876  	  s/.*/./; q'`
877  srcdir=$ac_confdir
878  if test ! -r $srcdir/$ac_unique_file; then
879    srcdir=..
880  fi
881else
882  ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885  if test "$ac_srcdir_defaulted" = yes; then
886    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887   { (exit 1); exit 1; }; }
888  else
889    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890   { (exit 1); exit 1; }; }
891  fi
892fi
893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895   { (exit 1); exit 1; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CXX_set=${CXX+set}
910ac_env_CXX_value=$CXX
911ac_cv_env_CXX_set=${CXX+set}
912ac_cv_env_CXX_value=$CXX
913ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914ac_env_CXXFLAGS_value=$CXXFLAGS
915ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CC_set=${CC+set}
926ac_env_CC_value=$CC
927ac_cv_env_CC_set=${CC+set}
928ac_cv_env_CC_value=$CC
929ac_env_CFLAGS_set=${CFLAGS+set}
930ac_env_CFLAGS_value=$CFLAGS
931ac_cv_env_CFLAGS_set=${CFLAGS+set}
932ac_cv_env_CFLAGS_value=$CFLAGS
933ac_env_CPP_set=${CPP+set}
934ac_env_CPP_value=$CPP
935ac_cv_env_CPP_set=${CPP+set}
936ac_cv_env_CPP_value=$CPP
937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954  # Omit some internal or obsolete options to make the list less imposing.
955  # This message is too long to be a string in the A/UX 3.1 sh.
956  cat <<_ACEOF
957\`configure' configures [LLVM] [1.1] to adapt to many kinds of systems.
958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967  -h, --help              display this help and exit
968      --help=short        display options specific to this package
969      --help=recursive    display the short help of all the included packages
970  -V, --version           display version information and exit
971  -q, --quiet, --silent   do not print \`checking...' messages
972      --cache-file=FILE   cache test results in FILE [disabled]
973  -C, --config-cache      alias for \`--cache-file=config.cache'
974  -n, --no-create         do not create output files
975      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979  cat <<_ACEOF
980Installation directories:
981  --prefix=PREFIX         install architecture-independent files in PREFIX
982                          [$ac_default_prefix]
983  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984                          [PREFIX]
985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994  --bindir=DIR           user executables [EPREFIX/bin]
995  --sbindir=DIR          system admin executables [EPREFIX/sbin]
996  --libexecdir=DIR       program executables [EPREFIX/libexec]
997  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001  --libdir=DIR           object code libraries [EPREFIX/lib]
1002  --includedir=DIR       C header files [PREFIX/include]
1003  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004  --infodir=DIR          info documentation [PREFIX/info]
1005  --mandir=DIR           man documentation [PREFIX/man]
1006_ACEOF
1007
1008  cat <<\_ACEOF
1009
1010System types:
1011  --build=BUILD     configure for building on BUILD [guessed]
1012  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1013  --target=TARGET   configure for building compilers for TARGET [HOST]
1014_ACEOF
1015fi
1016
1017if test -n "$ac_init_help"; then
1018  case $ac_init_help in
1019     short | recursive ) echo "Configuration of [LLVM] [1.1]:";;
1020   esac
1021  cat <<\_ACEOF
1022
1023Optional Features:
1024  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026  --enable-shared[=PKGS]
1027                          build shared libraries [default=yes]
1028  --enable-static[=PKGS]
1029                          build static libraries [default=yes]
1030  --enable-fast-install[=PKGS]
1031                          optimize for fast installation [default=yes]
1032  --disable-libtool-lock  avoid locking (might break parallel builds)
1033  --enable-optimized      Compile with optimizations enabled (default is NO)
1034  --enable-spec2000       Compile SPEC 2000 benchmarks (default is NO)
1035  --enable-spec95         Compile SPEC 95 benchmarks (default is NO)
1036  --enable-povray         Compile Povray benchmark (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-llvmgccdir       Location of LLVM GCC front-end
1051  --with-bcrepos          Location of Bytecode Repository
1052  --with-papi             Location of PAPI
1053
1054Some influential environment variables:
1055  CXX         C++ compiler command
1056  CXXFLAGS    C++ compiler flags
1057  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1058              nonstandard directory <lib dir>
1059  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060              headers in a nonstandard directory <include dir>
1061  CC          C compiler command
1062  CFLAGS      C compiler flags
1063  CPP         C preprocessor
1064  CXXCPP      C++ preprocessor
1065  F77         Fortran 77 compiler command
1066  FFLAGS      Fortran 77 compiler flags
1067
1068Use these variables to override the choices made by `configure' or to help
1069it to find libraries and programs with nonstandard names/locations.
1070
1071Report bugs to <llvmbugs@cs.uiuc.edu>.
1072_ACEOF
1073fi
1074
1075if test "$ac_init_help" = "recursive"; then
1076  # If there are subdirs, report their specific --help.
1077  ac_popdir=`pwd`
1078  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079    test -d $ac_dir || continue
1080    ac_builddir=.
1081
1082if test "$ac_dir" != .; then
1083  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084  # A "../" for each directory in $ac_dir_suffix.
1085  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086else
1087  ac_dir_suffix= ac_top_builddir=
1088fi
1089
1090case $srcdir in
1091  .)  # No --srcdir option.  We are building in place.
1092    ac_srcdir=.
1093    if test -z "$ac_top_builddir"; then
1094       ac_top_srcdir=.
1095    else
1096       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097    fi ;;
1098  [\\/]* | ?:[\\/]* )  # Absolute path.
1099    ac_srcdir=$srcdir$ac_dir_suffix;
1100    ac_top_srcdir=$srcdir ;;
1101  *) # Relative path.
1102    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104esac
1105# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106# absolute.
1107ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112    cd $ac_dir
1113    # Check for guested configure; otherwise get Cygnus style configure.
1114    if test -f $ac_srcdir/configure.gnu; then
1115      echo
1116      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1117    elif test -f $ac_srcdir/configure; then
1118      echo
1119      $SHELL $ac_srcdir/configure  --help=recursive
1120    elif test -f $ac_srcdir/configure.ac ||
1121           test -f $ac_srcdir/configure.in; then
1122      echo
1123      $ac_configure --help
1124    else
1125      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126    fi
1127    cd $ac_popdir
1128  done
1129fi
1130
1131test -n "$ac_init_help" && exit 0
1132if $ac_init_version; then
1133  cat <<\_ACEOF
1134[LLVM] configure [1.1]
1135generated by GNU Autoconf 2.57
1136
1137Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138Free Software Foundation, Inc.
1139This configure script is free software; the Free Software Foundation
1140gives unlimited permission to copy, distribute and modify it.
1141_ACEOF
1142  exit 0
1143fi
1144exec 5>config.log
1145cat >&5 <<_ACEOF
1146This file contains any messages produced by compilers while
1147running configure, to aid debugging if configure makes a mistake.
1148
1149It was created by [LLVM] $as_me [1.1], which was
1150generated by GNU Autoconf 2.57.  Invocation command line was
1151
1152  $ $0 $@
1153
1154_ACEOF
1155{
1156cat <<_ASUNAME
1157## --------- ##
1158## Platform. ##
1159## --------- ##
1160
1161hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1169
1170/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1171/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1172/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1174/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1175/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1176/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1177
1178_ASUNAME
1179
1180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181for as_dir in $PATH
1182do
1183  IFS=$as_save_IFS
1184  test -z "$as_dir" && as_dir=.
1185  echo "PATH: $as_dir"
1186done
1187
1188} >&5
1189
1190cat >&5 <<_ACEOF
1191
1192
1193## ----------- ##
1194## Core tests. ##
1195## ----------- ##
1196
1197_ACEOF
1198
1199
1200# Keep a trace of the command line.
1201# Strip out --no-create and --no-recursion so they do not pile up.
1202# Strip out --silent because we don't want to record it for future runs.
1203# Also quote any args containing shell meta-characters.
1204# Make two passes to allow for proper duplicate-argument suppression.
1205ac_configure_args=
1206ac_configure_args0=
1207ac_configure_args1=
1208ac_sep=
1209ac_must_keep_next=false
1210for ac_pass in 1 2
1211do
1212  for ac_arg
1213  do
1214    case $ac_arg in
1215    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217    | -silent | --silent | --silen | --sile | --sil)
1218      continue ;;
1219    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221    esac
1222    case $ac_pass in
1223    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224    2)
1225      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226      if test $ac_must_keep_next = true; then
1227        ac_must_keep_next=false # Got value, back to normal.
1228      else
1229        case $ac_arg in
1230          *=* | --config-cache | -C | -disable-* | --disable-* \
1231          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233          | -with-* | --with-* | -without-* | --without-* | --x)
1234            case "$ac_configure_args0 " in
1235              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236            esac
1237            ;;
1238          -* ) ac_must_keep_next=true ;;
1239        esac
1240      fi
1241      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242      # Get rid of the leading space.
1243      ac_sep=" "
1244      ;;
1245    esac
1246  done
1247done
1248$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
1251# When interrupted or exit'd, cleanup temporary files, and complete
1252# config.log.  We remove comments because anyway the quotes in there
1253# would cause problems or look ugly.
1254# WARNING: Be sure not to use single quotes in there, as some shells,
1255# such as our DU 5.0 friend, will then `close' the trap.
1256trap 'exit_status=$?
1257  # Save into config.log some information that might help in debugging.
1258  {
1259    echo
1260
1261    cat <<\_ASBOX
1262## ---------------- ##
1263## Cache variables. ##
1264## ---------------- ##
1265_ASBOX
1266    echo
1267    # The following way of writing the cache mishandles newlines in values,
1268{
1269  (set) 2>&1 |
1270    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271    *ac_space=\ *)
1272      sed -n \
1273        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275      ;;
1276    *)
1277      sed -n \
1278        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279      ;;
1280    esac;
1281}
1282    echo
1283
1284    cat <<\_ASBOX
1285## ----------------- ##
1286## Output variables. ##
1287## ----------------- ##
1288_ASBOX
1289    echo
1290    for ac_var in $ac_subst_vars
1291    do
1292      eval ac_val=$`echo $ac_var`
1293      echo "$ac_var='"'"'$ac_val'"'"'"
1294    done | sort
1295    echo
1296
1297    if test -n "$ac_subst_files"; then
1298      cat <<\_ASBOX
1299## ------------- ##
1300## Output files. ##
1301## ------------- ##
1302_ASBOX
1303      echo
1304      for ac_var in $ac_subst_files
1305      do
1306	eval ac_val=$`echo $ac_var`
1307        echo "$ac_var='"'"'$ac_val'"'"'"
1308      done | sort
1309      echo
1310    fi
1311
1312    if test -s confdefs.h; then
1313      cat <<\_ASBOX
1314## ----------- ##
1315## confdefs.h. ##
1316## ----------- ##
1317_ASBOX
1318      echo
1319      sed "/^$/d" confdefs.h | sort
1320      echo
1321    fi
1322    test "$ac_signal" != 0 &&
1323      echo "$as_me: caught signal $ac_signal"
1324    echo "$as_me: exit $exit_status"
1325  } >&5
1326  rm -f core core.* *.core &&
1327  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328    exit $exit_status
1329     ' 0
1330for ac_signal in 1 2 13 15; do
1331  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332done
1333ac_signal=0
1334
1335# confdefs.h avoids OS command line length limits that DEFS can exceed.
1336rm -rf conftest* confdefs.h
1337# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338echo >confdefs.h
1339
1340# Predefined preprocessor variables.
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_NAME "$PACKAGE_NAME"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_VERSION "$PACKAGE_VERSION"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_STRING "$PACKAGE_STRING"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364_ACEOF
1365
1366
1367# Let the site file select an alternate cache file if it wants to.
1368# Prefer explicitly selected file to automatically selected ones.
1369if test -z "$CONFIG_SITE"; then
1370  if test "x$prefix" != xNONE; then
1371    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372  else
1373    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374  fi
1375fi
1376for ac_site_file in $CONFIG_SITE; do
1377  if test -r "$ac_site_file"; then
1378    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379echo "$as_me: loading site script $ac_site_file" >&6;}
1380    sed 's/^/| /' "$ac_site_file" >&5
1381    . "$ac_site_file"
1382  fi
1383done
1384
1385if test -r "$cache_file"; then
1386  # Some versions of bash will fail to source /dev/null (special
1387  # files actually), so we avoid doing that.
1388  if test -f "$cache_file"; then
1389    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390echo "$as_me: loading cache $cache_file" >&6;}
1391    case $cache_file in
1392      [\\/]* | ?:[\\/]* ) . $cache_file;;
1393      *)                      . ./$cache_file;;
1394    esac
1395  fi
1396else
1397  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398echo "$as_me: creating cache $cache_file" >&6;}
1399  >$cache_file
1400fi
1401
1402# Check that the precious variables saved in the cache have kept the same
1403# value.
1404ac_cache_corrupted=false
1405for ac_var in `(set) 2>&1 |
1406               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408  eval ac_new_set=\$ac_env_${ac_var}_set
1409  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410  eval ac_new_val="\$ac_env_${ac_var}_value"
1411  case $ac_old_set,$ac_new_set in
1412    set,)
1413      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415      ac_cache_corrupted=: ;;
1416    ,set)
1417      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419      ac_cache_corrupted=: ;;
1420    ,);;
1421    *)
1422      if test "x$ac_old_val" != "x$ac_new_val"; then
1423        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1426echo "$as_me:   former value:  $ac_old_val" >&2;}
1427        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1428echo "$as_me:   current value: $ac_new_val" >&2;}
1429        ac_cache_corrupted=:
1430      fi;;
1431  esac
1432  # Pass precious variables to config.status.
1433  if test "$ac_new_set" = set; then
1434    case $ac_new_val in
1435    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437    *) ac_arg=$ac_var=$ac_new_val ;;
1438    esac
1439    case " $ac_configure_args " in
1440      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1441      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442    esac
1443  fi
1444done
1445if $ac_cache_corrupted; then
1446  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450   { (exit 1); exit 1; }; }
1451fi
1452
1453ac_ext=c
1454ac_cpp='$CPP $CPPFLAGS'
1455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486ac_aux_dir=
1487for ac_dir in autoconf $srcdir/autoconf; do
1488  if test -f $ac_dir/install-sh; then
1489    ac_aux_dir=$ac_dir
1490    ac_install_sh="$ac_aux_dir/install-sh -c"
1491    break
1492  elif test -f $ac_dir/install.sh; then
1493    ac_aux_dir=$ac_dir
1494    ac_install_sh="$ac_aux_dir/install.sh -c"
1495    break
1496  elif test -f $ac_dir/shtool; then
1497    ac_aux_dir=$ac_dir
1498    ac_install_sh="$ac_aux_dir/shtool install -c"
1499    break
1500  fi
1501done
1502if test -z "$ac_aux_dir"; then
1503  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1505   { (exit 1); exit 1; }; }
1506fi
1507ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
1511
1512if test ${srcdir} != "."
1513then
1514	if test -f ${srcdir}/include/Config/config.h
1515	then
1516		{ { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1517echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518   { (exit 1); exit 1; }; }
1519	fi
1520fi
1521
1522for i in `ls ${srcdir}/projects`
1523do
1524  if test ${i} != "CVS"
1525  then
1526    if test -f ${srcdir}/projects/${i}/configure
1527    then
1528
1529
1530subdirs="$subdirs projects/${i}"
1531
1532    fi
1533  fi
1534done
1535
1536          ac_config_headers="$ac_config_headers include/Config/config.h"
1537
1538          ac_config_commands="$ac_config_commands Makefile"
1539
1540
1541          ac_config_commands="$ac_config_commands Makefile.common"
1542
1543
1544          ac_config_commands="$ac_config_commands lib/Makefile"
1545
1546
1547          ac_config_commands="$ac_config_commands runtime/Makefile"
1548
1549
1550          ac_config_commands="$ac_config_commands test/Makefile"
1551
1552
1553          ac_config_commands="$ac_config_commands test/Makefile.tests"
1554
1555
1556          ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1557
1558
1559          ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1560
1561
1562          ac_config_commands="$ac_config_commands test/Programs/Makefile"
1563
1564
1565          ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1566
1567
1568          ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1569
1570
1571          ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1572
1573
1574          ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1575
1576
1577          ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1578
1579
1580          ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1581
1582
1583          ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1584
1585
1586          ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1587
1588
1589          ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1590
1591
1592          ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1593
1594
1595          ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1596
1597
1598          ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1599
1600
1601          ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1602
1603
1604          ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile"
1605
1606
1607          ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1608
1609
1610          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1611
1612
1613          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1614
1615
1616          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000"
1617
1618
1619          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1620
1621
1622          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1623
1624
1625          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1626
1627
1628          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1629
1630
1631          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1632
1633
1634          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1635
1636
1637          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1638
1639
1640          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1641
1642
1643          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1644
1645
1646          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1647
1648
1649          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1650
1651
1652          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1653
1654
1655          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1656
1657
1658          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1659
1660
1661          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1662
1663
1664          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1665
1666
1667          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1668
1669
1670          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1671
1672
1673          ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1674
1675
1676          ac_config_commands="$ac_config_commands tools/Makefile"
1677
1678
1679          ac_config_commands="$ac_config_commands utils/Makefile"
1680
1681
1682          ac_config_commands="$ac_config_commands projects/Makefile"
1683
1684
1685
1686# Find a good install program.  We prefer a C program (faster),
1687# so one script is as good as another.  But avoid the broken or
1688# incompatible versions:
1689# SysV /etc/install, /usr/sbin/install
1690# SunOS /usr/etc/install
1691# IRIX /sbin/install
1692# AIX /bin/install
1693# AmigaOS /C/install, which installs bootblocks on floppy discs
1694# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1695# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1696# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1697# ./install, which can be erroneously created by make from ./install.sh.
1698echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1699echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1700if test -z "$INSTALL"; then
1701if test "${ac_cv_path_install+set}" = set; then
1702  echo $ECHO_N "(cached) $ECHO_C" >&6
1703else
1704  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705for as_dir in $PATH
1706do
1707  IFS=$as_save_IFS
1708  test -z "$as_dir" && as_dir=.
1709  # Account for people who put trailing slashes in PATH elements.
1710case $as_dir/ in
1711  ./ | .// | /cC/* | \
1712  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1713  /usr/ucb/* ) ;;
1714  *)
1715    # OSF1 and SCO ODT 3.0 have their own names for install.
1716    # Don't use installbsd from OSF since it installs stuff as root
1717    # by default.
1718    for ac_prog in ginstall scoinst install; do
1719      for ac_exec_ext in '' $ac_executable_extensions; do
1720        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1721          if test $ac_prog = install &&
1722            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1723            # AIX install.  It has an incompatible calling convention.
1724            :
1725          elif test $ac_prog = install &&
1726            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1727            # program-specific install script used by HP pwplus--don't use.
1728            :
1729          else
1730            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1731            break 3
1732          fi
1733        fi
1734      done
1735    done
1736    ;;
1737esac
1738done
1739
1740
1741fi
1742  if test "${ac_cv_path_install+set}" = set; then
1743    INSTALL=$ac_cv_path_install
1744  else
1745    # As a last resort, use the slow shell script.  We don't cache a
1746    # path for INSTALL within a source directory, because that will
1747    # break other packages using the cache if that directory is
1748    # removed, or if the path is relative.
1749    INSTALL=$ac_install_sh
1750  fi
1751fi
1752echo "$as_me:$LINENO: result: $INSTALL" >&5
1753echo "${ECHO_T}$INSTALL" >&6
1754
1755# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1756# It thinks the first close brace ends the variable substitution.
1757test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1758
1759test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1760
1761test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1762
1763
1764# Make sure we can run config.sub.
1765$ac_config_sub sun4 >/dev/null 2>&1 ||
1766  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1767echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1768   { (exit 1); exit 1; }; }
1769
1770echo "$as_me:$LINENO: checking build system type" >&5
1771echo $ECHO_N "checking build system type... $ECHO_C" >&6
1772if test "${ac_cv_build+set}" = set; then
1773  echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775  ac_cv_build_alias=$build_alias
1776test -z "$ac_cv_build_alias" &&
1777  ac_cv_build_alias=`$ac_config_guess`
1778test -z "$ac_cv_build_alias" &&
1779  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1780echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1781   { (exit 1); exit 1; }; }
1782ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1783  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1784echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1785   { (exit 1); exit 1; }; }
1786
1787fi
1788echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1789echo "${ECHO_T}$ac_cv_build" >&6
1790build=$ac_cv_build
1791build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1792build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1793build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1794
1795
1796echo "$as_me:$LINENO: checking host system type" >&5
1797echo $ECHO_N "checking host system type... $ECHO_C" >&6
1798if test "${ac_cv_host+set}" = set; then
1799  echo $ECHO_N "(cached) $ECHO_C" >&6
1800else
1801  ac_cv_host_alias=$host_alias
1802test -z "$ac_cv_host_alias" &&
1803  ac_cv_host_alias=$ac_cv_build_alias
1804ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1805  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1806echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1807   { (exit 1); exit 1; }; }
1808
1809fi
1810echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1811echo "${ECHO_T}$ac_cv_host" >&6
1812host=$ac_cv_host
1813host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1814host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1815host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1816
1817
1818echo "$as_me:$LINENO: checking target system type" >&5
1819echo $ECHO_N "checking target system type... $ECHO_C" >&6
1820if test "${ac_cv_target+set}" = set; then
1821  echo $ECHO_N "(cached) $ECHO_C" >&6
1822else
1823  ac_cv_target_alias=$target_alias
1824test "x$ac_cv_target_alias" = "x" &&
1825  ac_cv_target_alias=$ac_cv_host_alias
1826ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1827  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1828echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1829   { (exit 1); exit 1; }; }
1830
1831fi
1832echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1833echo "${ECHO_T}$ac_cv_target" >&6
1834target=$ac_cv_target
1835target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1836target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1837target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1838
1839
1840# The aliases save the names the user supplied, while $host etc.
1841# will get canonicalized.
1842test -n "$target_alias" &&
1843  test "$program_prefix$program_suffix$program_transform_name" = \
1844    NONENONEs,x,x, &&
1845  program_prefix=${target_alias}-
1846
1847case $build in
1848	*-*-linux*)
1849             OS=Linux
1850
1851			 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1852			 then
1853			   LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1854
1855			 fi
1856	         ;;
1857
1858	*-*-solaris*)
1859             OS=SunOS
1860
1861			 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1862			 then
1863	           LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1864
1865			 fi
1866	         ;;
1867
1868	*-*-darwin*)
1869             OS=Darwin
1870
1871	         ;;
1872
1873	*)       OS=Unknown
1874
1875	         ;;
1876esac
1877
1878case $target in
1879	sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1880
1881	                    ;;
1882esac
1883
1884case $target in
1885	i*86-*)           ARCH=x86
1886
1887	                  ;;
1888	sparc*-*)         ARCH=Sparc
1889
1890	                  ;;
1891	powerpc*-*)       ARCH=PowerPC
1892
1893	                  ;;
1894	*)                ARCH=Unknown
1895
1896	                  ;;
1897esac
1898
1899ac_ext=cc
1900ac_cpp='$CXXCPP $CPPFLAGS'
1901ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1904if test -n "$ac_tool_prefix"; then
1905  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1906  do
1907    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1908set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1909echo "$as_me:$LINENO: checking for $ac_word" >&5
1910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1911if test "${ac_cv_prog_CXX+set}" = set; then
1912  echo $ECHO_N "(cached) $ECHO_C" >&6
1913else
1914  if test -n "$CXX"; then
1915  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1916else
1917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918for as_dir in $PATH
1919do
1920  IFS=$as_save_IFS
1921  test -z "$as_dir" && as_dir=.
1922  for ac_exec_ext in '' $ac_executable_extensions; do
1923  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1924    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1925    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926    break 2
1927  fi
1928done
1929done
1930
1931fi
1932fi
1933CXX=$ac_cv_prog_CXX
1934if test -n "$CXX"; then
1935  echo "$as_me:$LINENO: result: $CXX" >&5
1936echo "${ECHO_T}$CXX" >&6
1937else
1938  echo "$as_me:$LINENO: result: no" >&5
1939echo "${ECHO_T}no" >&6
1940fi
1941
1942    test -n "$CXX" && break
1943  done
1944fi
1945if test -z "$CXX"; then
1946  ac_ct_CXX=$CXX
1947  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1948do
1949  # Extract the first word of "$ac_prog", so it can be a program name with args.
1950set dummy $ac_prog; ac_word=$2
1951echo "$as_me:$LINENO: checking for $ac_word" >&5
1952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1953if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1954  echo $ECHO_N "(cached) $ECHO_C" >&6
1955else
1956  if test -n "$ac_ct_CXX"; then
1957  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1958else
1959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960for as_dir in $PATH
1961do
1962  IFS=$as_save_IFS
1963  test -z "$as_dir" && as_dir=.
1964  for ac_exec_ext in '' $ac_executable_extensions; do
1965  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1966    ac_cv_prog_ac_ct_CXX="$ac_prog"
1967    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1968    break 2
1969  fi
1970done
1971done
1972
1973fi
1974fi
1975ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1976if test -n "$ac_ct_CXX"; then
1977  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1978echo "${ECHO_T}$ac_ct_CXX" >&6
1979else
1980  echo "$as_me:$LINENO: result: no" >&5
1981echo "${ECHO_T}no" >&6
1982fi
1983
1984  test -n "$ac_ct_CXX" && break
1985done
1986test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1987
1988  CXX=$ac_ct_CXX
1989fi
1990
1991
1992# Provide some information about the compiler.
1993echo "$as_me:$LINENO:" \
1994     "checking for C++ compiler version" >&5
1995ac_compiler=`set X $ac_compile; echo $2`
1996{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1997  (eval $ac_compiler --version </dev/null >&5) 2>&5
1998  ac_status=$?
1999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000  (exit $ac_status); }
2001{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2002  (eval $ac_compiler -v </dev/null >&5) 2>&5
2003  ac_status=$?
2004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005  (exit $ac_status); }
2006{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2007  (eval $ac_compiler -V </dev/null >&5) 2>&5
2008  ac_status=$?
2009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010  (exit $ac_status); }
2011
2012cat >conftest.$ac_ext <<_ACEOF
2013#line $LINENO "configure"
2014/* confdefs.h.  */
2015_ACEOF
2016cat confdefs.h >>conftest.$ac_ext
2017cat >>conftest.$ac_ext <<_ACEOF
2018/* end confdefs.h.  */
2019
2020int
2021main ()
2022{
2023
2024  ;
2025  return 0;
2026}
2027_ACEOF
2028ac_clean_files_save=$ac_clean_files
2029ac_clean_files="$ac_clean_files a.out a.exe b.out"
2030# Try to create an executable without -o first, disregard a.out.
2031# It will help us diagnose broken compilers, and finding out an intuition
2032# of exeext.
2033echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2034echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2035ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2036if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2037  (eval $ac_link_default) 2>&5
2038  ac_status=$?
2039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040  (exit $ac_status); }; then
2041  # Find the output, starting from the most likely.  This scheme is
2042# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2043# resort.
2044
2045# Be careful to initialize this variable, since it used to be cached.
2046# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2047ac_cv_exeext=
2048# b.out is created by i960 compilers.
2049for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2050do
2051  test -f "$ac_file" || continue
2052  case $ac_file in
2053    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2054        ;;
2055    conftest.$ac_ext )
2056        # This is the source file.
2057        ;;
2058    [ab].out )
2059        # We found the default executable, but exeext='' is most
2060        # certainly right.
2061        break;;
2062    *.* )
2063        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2064        # FIXME: I believe we export ac_cv_exeext for Libtool,
2065        # but it would be cool to find out if it's true.  Does anybody
2066        # maintain Libtool? --akim.
2067        export ac_cv_exeext
2068        break;;
2069    * )
2070        break;;
2071  esac
2072done
2073else
2074  echo "$as_me: failed program was:" >&5
2075sed 's/^/| /' conftest.$ac_ext >&5
2076
2077{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2078See \`config.log' for more details." >&5
2079echo "$as_me: error: C++ compiler cannot create executables
2080See \`config.log' for more details." >&2;}
2081   { (exit 77); exit 77; }; }
2082fi
2083
2084ac_exeext=$ac_cv_exeext
2085echo "$as_me:$LINENO: result: $ac_file" >&5
2086echo "${ECHO_T}$ac_file" >&6
2087
2088# Check the compiler produces executables we can run.  If not, either
2089# the compiler is broken, or we cross compile.
2090echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2091echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2092# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2093# If not cross compiling, check that we can run a simple program.
2094if test "$cross_compiling" != yes; then
2095  if { ac_try='./$ac_file'
2096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2097  (eval $ac_try) 2>&5
2098  ac_status=$?
2099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100  (exit $ac_status); }; }; then
2101    cross_compiling=no
2102  else
2103    if test "$cross_compiling" = maybe; then
2104	cross_compiling=yes
2105    else
2106	{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2107If you meant to cross compile, use \`--host'.
2108See \`config.log' for more details." >&5
2109echo "$as_me: error: cannot run C++ compiled programs.
2110If you meant to cross compile, use \`--host'.
2111See \`config.log' for more details." >&2;}
2112   { (exit 1); exit 1; }; }
2113    fi
2114  fi
2115fi
2116echo "$as_me:$LINENO: result: yes" >&5
2117echo "${ECHO_T}yes" >&6
2118
2119rm -f a.out a.exe conftest$ac_cv_exeext b.out
2120ac_clean_files=$ac_clean_files_save
2121# Check the compiler produces executables we can run.  If not, either
2122# the compiler is broken, or we cross compile.
2123echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2124echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2125echo "$as_me:$LINENO: result: $cross_compiling" >&5
2126echo "${ECHO_T}$cross_compiling" >&6
2127
2128echo "$as_me:$LINENO: checking for suffix of executables" >&5
2129echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2131  (eval $ac_link) 2>&5
2132  ac_status=$?
2133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134  (exit $ac_status); }; then
2135  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2136# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2137# work properly (i.e., refer to `conftest.exe'), while it won't with
2138# `rm'.
2139for ac_file in conftest.exe conftest conftest.*; do
2140  test -f "$ac_file" || continue
2141  case $ac_file in
2142    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2143    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2144          export ac_cv_exeext
2145          break;;
2146    * ) break;;
2147  esac
2148done
2149else
2150  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2151See \`config.log' for more details." >&5
2152echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2153See \`config.log' for more details." >&2;}
2154   { (exit 1); exit 1; }; }
2155fi
2156
2157rm -f conftest$ac_cv_exeext
2158echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2159echo "${ECHO_T}$ac_cv_exeext" >&6
2160
2161rm -f conftest.$ac_ext
2162EXEEXT=$ac_cv_exeext
2163ac_exeext=$EXEEXT
2164echo "$as_me:$LINENO: checking for suffix of object files" >&5
2165echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2166if test "${ac_cv_objext+set}" = set; then
2167  echo $ECHO_N "(cached) $ECHO_C" >&6
2168else
2169  cat >conftest.$ac_ext <<_ACEOF
2170#line $LINENO "configure"
2171/* confdefs.h.  */
2172_ACEOF
2173cat confdefs.h >>conftest.$ac_ext
2174cat >>conftest.$ac_ext <<_ACEOF
2175/* end confdefs.h.  */
2176
2177int
2178main ()
2179{
2180
2181  ;
2182  return 0;
2183}
2184_ACEOF
2185rm -f conftest.o conftest.obj
2186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2187  (eval $ac_compile) 2>&5
2188  ac_status=$?
2189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190  (exit $ac_status); }; then
2191  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2192  case $ac_file in
2193    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2194    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2195       break;;
2196  esac
2197done
2198else
2199  echo "$as_me: failed program was:" >&5
2200sed 's/^/| /' conftest.$ac_ext >&5
2201
2202{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2203See \`config.log' for more details." >&5
2204echo "$as_me: error: cannot compute suffix of object files: cannot compile
2205See \`config.log' for more details." >&2;}
2206   { (exit 1); exit 1; }; }
2207fi
2208
2209rm -f conftest.$ac_cv_objext conftest.$ac_ext
2210fi
2211echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2212echo "${ECHO_T}$ac_cv_objext" >&6
2213OBJEXT=$ac_cv_objext
2214ac_objext=$OBJEXT
2215echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2216echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2217if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2218  echo $ECHO_N "(cached) $ECHO_C" >&6
2219else
2220  cat >conftest.$ac_ext <<_ACEOF
2221#line $LINENO "configure"
2222/* confdefs.h.  */
2223_ACEOF
2224cat confdefs.h >>conftest.$ac_ext
2225cat >>conftest.$ac_ext <<_ACEOF
2226/* end confdefs.h.  */
2227
2228int
2229main ()
2230{
2231#ifndef __GNUC__
2232       choke me
2233#endif
2234
2235  ;
2236  return 0;
2237}
2238_ACEOF
2239rm -f conftest.$ac_objext
2240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2241  (eval $ac_compile) 2>&5
2242  ac_status=$?
2243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244  (exit $ac_status); } &&
2245         { ac_try='test -s conftest.$ac_objext'
2246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247  (eval $ac_try) 2>&5
2248  ac_status=$?
2249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250  (exit $ac_status); }; }; then
2251  ac_compiler_gnu=yes
2252else
2253  echo "$as_me: failed program was:" >&5
2254sed 's/^/| /' conftest.$ac_ext >&5
2255
2256ac_compiler_gnu=no
2257fi
2258rm -f conftest.$ac_objext conftest.$ac_ext
2259ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2260
2261fi
2262echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2263echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2264GXX=`test $ac_compiler_gnu = yes && echo yes`
2265ac_test_CXXFLAGS=${CXXFLAGS+set}
2266ac_save_CXXFLAGS=$CXXFLAGS
2267CXXFLAGS="-g"
2268echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2269echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2270if test "${ac_cv_prog_cxx_g+set}" = set; then
2271  echo $ECHO_N "(cached) $ECHO_C" >&6
2272else
2273  cat >conftest.$ac_ext <<_ACEOF
2274#line $LINENO "configure"
2275/* confdefs.h.  */
2276_ACEOF
2277cat confdefs.h >>conftest.$ac_ext
2278cat >>conftest.$ac_ext <<_ACEOF
2279/* end confdefs.h.  */
2280
2281int
2282main ()
2283{
2284
2285  ;
2286  return 0;
2287}
2288_ACEOF
2289rm -f conftest.$ac_objext
2290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2291  (eval $ac_compile) 2>&5
2292  ac_status=$?
2293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294  (exit $ac_status); } &&
2295         { ac_try='test -s conftest.$ac_objext'
2296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297  (eval $ac_try) 2>&5
2298  ac_status=$?
2299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300  (exit $ac_status); }; }; then
2301  ac_cv_prog_cxx_g=yes
2302else
2303  echo "$as_me: failed program was:" >&5
2304sed 's/^/| /' conftest.$ac_ext >&5
2305
2306ac_cv_prog_cxx_g=no
2307fi
2308rm -f conftest.$ac_objext conftest.$ac_ext
2309fi
2310echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2311echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2312if test "$ac_test_CXXFLAGS" = set; then
2313  CXXFLAGS=$ac_save_CXXFLAGS
2314elif test $ac_cv_prog_cxx_g = yes; then
2315  if test "$GXX" = yes; then
2316    CXXFLAGS="-g -O2"
2317  else
2318    CXXFLAGS="-g"
2319  fi
2320else
2321  if test "$GXX" = yes; then
2322    CXXFLAGS="-O2"
2323  else
2324    CXXFLAGS=
2325  fi
2326fi
2327for ac_declaration in \
2328   ''\
2329   '#include <stdlib.h>' \
2330   'extern "C" void std::exit (int) throw (); using std::exit;' \
2331   'extern "C" void std::exit (int); using std::exit;' \
2332   'extern "C" void exit (int) throw ();' \
2333   'extern "C" void exit (int);' \
2334   'void exit (int);'
2335do
2336  cat >conftest.$ac_ext <<_ACEOF
2337#line $LINENO "configure"
2338/* confdefs.h.  */
2339_ACEOF
2340cat confdefs.h >>conftest.$ac_ext
2341cat >>conftest.$ac_ext <<_ACEOF
2342/* end confdefs.h.  */
2343#include <stdlib.h>
2344$ac_declaration
2345int
2346main ()
2347{
2348exit (42);
2349  ;
2350  return 0;
2351}
2352_ACEOF
2353rm -f conftest.$ac_objext
2354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355  (eval $ac_compile) 2>&5
2356  ac_status=$?
2357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358  (exit $ac_status); } &&
2359         { ac_try='test -s conftest.$ac_objext'
2360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361  (eval $ac_try) 2>&5
2362  ac_status=$?
2363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364  (exit $ac_status); }; }; then
2365  :
2366else
2367  echo "$as_me: failed program was:" >&5
2368sed 's/^/| /' conftest.$ac_ext >&5
2369
2370continue
2371fi
2372rm -f conftest.$ac_objext conftest.$ac_ext
2373  cat >conftest.$ac_ext <<_ACEOF
2374#line $LINENO "configure"
2375/* confdefs.h.  */
2376_ACEOF
2377cat confdefs.h >>conftest.$ac_ext
2378cat >>conftest.$ac_ext <<_ACEOF
2379/* end confdefs.h.  */
2380$ac_declaration
2381int
2382main ()
2383{
2384exit (42);
2385  ;
2386  return 0;
2387}
2388_ACEOF
2389rm -f conftest.$ac_objext
2390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391  (eval $ac_compile) 2>&5
2392  ac_status=$?
2393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394  (exit $ac_status); } &&
2395         { ac_try='test -s conftest.$ac_objext'
2396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397  (eval $ac_try) 2>&5
2398  ac_status=$?
2399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400  (exit $ac_status); }; }; then
2401  break
2402else
2403  echo "$as_me: failed program was:" >&5
2404sed 's/^/| /' conftest.$ac_ext >&5
2405
2406fi
2407rm -f conftest.$ac_objext conftest.$ac_ext
2408done
2409rm -f conftest*
2410if test -n "$ac_declaration"; then
2411  echo '#ifdef __cplusplus' >>confdefs.h
2412  echo $ac_declaration      >>confdefs.h
2413  echo '#endif'             >>confdefs.h
2414fi
2415
2416ac_ext=c
2417ac_cpp='$CPP $CPPFLAGS'
2418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2420ac_compiler_gnu=$ac_cv_c_compiler_gnu
2421
2422ac_ext=c
2423ac_cpp='$CPP $CPPFLAGS'
2424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2426ac_compiler_gnu=$ac_cv_c_compiler_gnu
2427if test -n "$ac_tool_prefix"; then
2428  for ac_prog in gcc
2429  do
2430    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2431set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2432echo "$as_me:$LINENO: checking for $ac_word" >&5
2433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2434if test "${ac_cv_prog_CC+set}" = set; then
2435  echo $ECHO_N "(cached) $ECHO_C" >&6
2436else
2437  if test -n "$CC"; then
2438  ac_cv_prog_CC="$CC" # Let the user override the test.
2439else
2440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441for as_dir in $PATH
2442do
2443  IFS=$as_save_IFS
2444  test -z "$as_dir" && as_dir=.
2445  for ac_exec_ext in '' $ac_executable_extensions; do
2446  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2448    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449    break 2
2450  fi
2451done
2452done
2453
2454fi
2455fi
2456CC=$ac_cv_prog_CC
2457if test -n "$CC"; then
2458  echo "$as_me:$LINENO: result: $CC" >&5
2459echo "${ECHO_T}$CC" >&6
2460else
2461  echo "$as_me:$LINENO: result: no" >&5
2462echo "${ECHO_T}no" >&6
2463fi
2464
2465    test -n "$CC" && break
2466  done
2467fi
2468if test -z "$CC"; then
2469  ac_ct_CC=$CC
2470  for ac_prog in gcc
2471do
2472  # Extract the first word of "$ac_prog", so it can be a program name with args.
2473set dummy $ac_prog; ac_word=$2
2474echo "$as_me:$LINENO: checking for $ac_word" >&5
2475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2476if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2477  echo $ECHO_N "(cached) $ECHO_C" >&6
2478else
2479  if test -n "$ac_ct_CC"; then
2480  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2481else
2482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483for as_dir in $PATH
2484do
2485  IFS=$as_save_IFS
2486  test -z "$as_dir" && as_dir=.
2487  for ac_exec_ext in '' $ac_executable_extensions; do
2488  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2489    ac_cv_prog_ac_ct_CC="$ac_prog"
2490    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491    break 2
2492  fi
2493done
2494done
2495
2496fi
2497fi
2498ac_ct_CC=$ac_cv_prog_ac_ct_CC
2499if test -n "$ac_ct_CC"; then
2500  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2501echo "${ECHO_T}$ac_ct_CC" >&6
2502else
2503  echo "$as_me:$LINENO: result: no" >&5
2504echo "${ECHO_T}no" >&6
2505fi
2506
2507  test -n "$ac_ct_CC" && break
2508done
2509
2510  CC=$ac_ct_CC
2511fi
2512
2513
2514test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2515See \`config.log' for more details." >&5
2516echo "$as_me: error: no acceptable C compiler found in \$PATH
2517See \`config.log' for more details." >&2;}
2518   { (exit 1); exit 1; }; }
2519
2520# Provide some information about the compiler.
2521echo "$as_me:$LINENO:" \
2522     "checking for C compiler version" >&5
2523ac_compiler=`set X $ac_compile; echo $2`
2524{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2525  (eval $ac_compiler --version </dev/null >&5) 2>&5
2526  ac_status=$?
2527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528  (exit $ac_status); }
2529{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2530  (eval $ac_compiler -v </dev/null >&5) 2>&5
2531  ac_status=$?
2532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533  (exit $ac_status); }
2534{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2535  (eval $ac_compiler -V </dev/null >&5) 2>&5
2536  ac_status=$?
2537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538  (exit $ac_status); }
2539
2540echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2541echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2542if test "${ac_cv_c_compiler_gnu+set}" = set; then
2543  echo $ECHO_N "(cached) $ECHO_C" >&6
2544else
2545  cat >conftest.$ac_ext <<_ACEOF
2546#line $LINENO "configure"
2547/* confdefs.h.  */
2548_ACEOF
2549cat confdefs.h >>conftest.$ac_ext
2550cat >>conftest.$ac_ext <<_ACEOF
2551/* end confdefs.h.  */
2552
2553int
2554main ()
2555{
2556#ifndef __GNUC__
2557       choke me
2558#endif
2559
2560  ;
2561  return 0;
2562}
2563_ACEOF
2564rm -f conftest.$ac_objext
2565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566  (eval $ac_compile) 2>&5
2567  ac_status=$?
2568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569  (exit $ac_status); } &&
2570         { ac_try='test -s conftest.$ac_objext'
2571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572  (eval $ac_try) 2>&5
2573  ac_status=$?
2574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575  (exit $ac_status); }; }; then
2576  ac_compiler_gnu=yes
2577else
2578  echo "$as_me: failed program was:" >&5
2579sed 's/^/| /' conftest.$ac_ext >&5
2580
2581ac_compiler_gnu=no
2582fi
2583rm -f conftest.$ac_objext conftest.$ac_ext
2584ac_cv_c_compiler_gnu=$ac_compiler_gnu
2585
2586fi
2587echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2588echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2589GCC=`test $ac_compiler_gnu = yes && echo yes`
2590ac_test_CFLAGS=${CFLAGS+set}
2591ac_save_CFLAGS=$CFLAGS
2592CFLAGS="-g"
2593echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2594echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2595if test "${ac_cv_prog_cc_g+set}" = set; then
2596  echo $ECHO_N "(cached) $ECHO_C" >&6
2597else
2598  cat >conftest.$ac_ext <<_ACEOF
2599#line $LINENO "configure"
2600/* confdefs.h.  */
2601_ACEOF
2602cat confdefs.h >>conftest.$ac_ext
2603cat >>conftest.$ac_ext <<_ACEOF
2604/* end confdefs.h.  */
2605
2606int
2607main ()
2608{
2609
2610  ;
2611  return 0;
2612}
2613_ACEOF
2614rm -f conftest.$ac_objext
2615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616  (eval $ac_compile) 2>&5
2617  ac_status=$?
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); } &&
2620         { ac_try='test -s conftest.$ac_objext'
2621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622  (eval $ac_try) 2>&5
2623  ac_status=$?
2624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625  (exit $ac_status); }; }; then
2626  ac_cv_prog_cc_g=yes
2627else
2628  echo "$as_me: failed program was:" >&5
2629sed 's/^/| /' conftest.$ac_ext >&5
2630
2631ac_cv_prog_cc_g=no
2632fi
2633rm -f conftest.$ac_objext conftest.$ac_ext
2634fi
2635echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2636echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2637if test "$ac_test_CFLAGS" = set; then
2638  CFLAGS=$ac_save_CFLAGS
2639elif test $ac_cv_prog_cc_g = yes; then
2640  if test "$GCC" = yes; then
2641    CFLAGS="-g -O2"
2642  else
2643    CFLAGS="-g"
2644  fi
2645else
2646  if test "$GCC" = yes; then
2647    CFLAGS="-O2"
2648  else
2649    CFLAGS=
2650  fi
2651fi
2652echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2653echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2654if test "${ac_cv_prog_cc_stdc+set}" = set; then
2655  echo $ECHO_N "(cached) $ECHO_C" >&6
2656else
2657  ac_cv_prog_cc_stdc=no
2658ac_save_CC=$CC
2659cat >conftest.$ac_ext <<_ACEOF
2660#line $LINENO "configure"
2661/* confdefs.h.  */
2662_ACEOF
2663cat confdefs.h >>conftest.$ac_ext
2664cat >>conftest.$ac_ext <<_ACEOF
2665/* end confdefs.h.  */
2666#include <stdarg.h>
2667#include <stdio.h>
2668#include <sys/types.h>
2669#include <sys/stat.h>
2670/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2671struct buf { int x; };
2672FILE * (*rcsopen) (struct buf *, struct stat *, int);
2673static char *e (p, i)
2674     char **p;
2675     int i;
2676{
2677  return p[i];
2678}
2679static char *f (char * (*g) (char **, int), char **p, ...)
2680{
2681  char *s;
2682  va_list v;
2683  va_start (v,p);
2684  s = g (p, va_arg (v,int));
2685  va_end (v);
2686  return s;
2687}
2688int test (int i, double x);
2689struct s1 {int (*f) (int a);};
2690struct s2 {int (*f) (double a);};
2691int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2692int argc;
2693char **argv;
2694int
2695main ()
2696{
2697return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2698  ;
2699  return 0;
2700}
2701_ACEOF
2702# Don't try gcc -ansi; that turns off useful extensions and
2703# breaks some systems' header files.
2704# AIX			-qlanglvl=ansi
2705# Ultrix and OSF/1	-std1
2706# HP-UX 10.20 and later	-Ae
2707# HP-UX older versions	-Aa -D_HPUX_SOURCE
2708# SVR4			-Xc -D__EXTENSIONS__
2709for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2710do
2711  CC="$ac_save_CC $ac_arg"
2712  rm -f conftest.$ac_objext
2713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714  (eval $ac_compile) 2>&5
2715  ac_status=$?
2716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717  (exit $ac_status); } &&
2718         { ac_try='test -s conftest.$ac_objext'
2719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720  (eval $ac_try) 2>&5
2721  ac_status=$?
2722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723  (exit $ac_status); }; }; then
2724  ac_cv_prog_cc_stdc=$ac_arg
2725break
2726else
2727  echo "$as_me: failed program was:" >&5
2728sed 's/^/| /' conftest.$ac_ext >&5
2729
2730fi
2731rm -f conftest.$ac_objext
2732done
2733rm -f conftest.$ac_ext conftest.$ac_objext
2734CC=$ac_save_CC
2735
2736fi
2737
2738case "x$ac_cv_prog_cc_stdc" in
2739  x|xno)
2740    echo "$as_me:$LINENO: result: none needed" >&5
2741echo "${ECHO_T}none needed" >&6 ;;
2742  *)
2743    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2744echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2745    CC="$CC $ac_cv_prog_cc_stdc" ;;
2746esac
2747
2748# Some people use a C++ compiler to compile C.  Since we use `exit',
2749# in C++ we need to declare it.  In case someone uses the same compiler
2750# for both compiling C and C++ we need to have the C++ compiler decide
2751# the declaration of exit, since it's the most demanding environment.
2752cat >conftest.$ac_ext <<_ACEOF
2753#ifndef __cplusplus
2754  choke me
2755#endif
2756_ACEOF
2757rm -f conftest.$ac_objext
2758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2759  (eval $ac_compile) 2>&5
2760  ac_status=$?
2761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762  (exit $ac_status); } &&
2763         { ac_try='test -s conftest.$ac_objext'
2764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765  (eval $ac_try) 2>&5
2766  ac_status=$?
2767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768  (exit $ac_status); }; }; then
2769  for ac_declaration in \
2770   ''\
2771   '#include <stdlib.h>' \
2772   'extern "C" void std::exit (int) throw (); using std::exit;' \
2773   'extern "C" void std::exit (int); using std::exit;' \
2774   'extern "C" void exit (int) throw ();' \
2775   'extern "C" void exit (int);' \
2776   'void exit (int);'
2777do
2778  cat >conftest.$ac_ext <<_ACEOF
2779#line $LINENO "configure"
2780/* confdefs.h.  */
2781_ACEOF
2782cat confdefs.h >>conftest.$ac_ext
2783cat >>conftest.$ac_ext <<_ACEOF
2784/* end confdefs.h.  */
2785#include <stdlib.h>
2786$ac_declaration
2787int
2788main ()
2789{
2790exit (42);
2791  ;
2792  return 0;
2793}
2794_ACEOF
2795rm -f conftest.$ac_objext
2796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2797  (eval $ac_compile) 2>&5
2798  ac_status=$?
2799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800  (exit $ac_status); } &&
2801         { ac_try='test -s conftest.$ac_objext'
2802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803  (eval $ac_try) 2>&5
2804  ac_status=$?
2805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806  (exit $ac_status); }; }; then
2807  :
2808else
2809  echo "$as_me: failed program was:" >&5
2810sed 's/^/| /' conftest.$ac_ext >&5
2811
2812continue
2813fi
2814rm -f conftest.$ac_objext conftest.$ac_ext
2815  cat >conftest.$ac_ext <<_ACEOF
2816#line $LINENO "configure"
2817/* confdefs.h.  */
2818_ACEOF
2819cat confdefs.h >>conftest.$ac_ext
2820cat >>conftest.$ac_ext <<_ACEOF
2821/* end confdefs.h.  */
2822$ac_declaration
2823int
2824main ()
2825{
2826exit (42);
2827  ;
2828  return 0;
2829}
2830_ACEOF
2831rm -f conftest.$ac_objext
2832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2833  (eval $ac_compile) 2>&5
2834  ac_status=$?
2835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836  (exit $ac_status); } &&
2837         { ac_try='test -s conftest.$ac_objext'
2838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839  (eval $ac_try) 2>&5
2840  ac_status=$?
2841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842  (exit $ac_status); }; }; then
2843  break
2844else
2845  echo "$as_me: failed program was:" >&5
2846sed 's/^/| /' conftest.$ac_ext >&5
2847
2848fi
2849rm -f conftest.$ac_objext conftest.$ac_ext
2850done
2851rm -f conftest*
2852if test -n "$ac_declaration"; then
2853  echo '#ifdef __cplusplus' >>confdefs.h
2854  echo $ac_declaration      >>confdefs.h
2855  echo '#endif'             >>confdefs.h
2856fi
2857
2858else
2859  echo "$as_me: failed program was:" >&5
2860sed 's/^/| /' conftest.$ac_ext >&5
2861
2862fi
2863rm -f conftest.$ac_objext conftest.$ac_ext
2864ac_ext=c
2865ac_cpp='$CPP $CPPFLAGS'
2866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2868ac_compiler_gnu=$ac_cv_c_compiler_gnu
2869
2870ac_ext=c
2871ac_cpp='$CPP $CPPFLAGS'
2872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2874ac_compiler_gnu=$ac_cv_c_compiler_gnu
2875echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2876echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2877# On Suns, sometimes $CPP names a directory.
2878if test -n "$CPP" && test -d "$CPP"; then
2879  CPP=
2880fi
2881if test -z "$CPP"; then
2882  if test "${ac_cv_prog_CPP+set}" = set; then
2883  echo $ECHO_N "(cached) $ECHO_C" >&6
2884else
2885      # Double quotes because CPP needs to be expanded
2886    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2887    do
2888      ac_preproc_ok=false
2889for ac_c_preproc_warn_flag in '' yes
2890do
2891  # Use a header file that comes with gcc, so configuring glibc
2892  # with a fresh cross-compiler works.
2893  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2894  # <limits.h> exists even on freestanding compilers.
2895  # On the NeXT, cc -E runs the code through the compiler's parser,
2896  # not just through cpp. "Syntax error" is here to catch this case.
2897  cat >conftest.$ac_ext <<_ACEOF
2898#line $LINENO "configure"
2899/* confdefs.h.  */
2900_ACEOF
2901cat confdefs.h >>conftest.$ac_ext
2902cat >>conftest.$ac_ext <<_ACEOF
2903/* end confdefs.h.  */
2904#ifdef __STDC__
2905# include <limits.h>
2906#else
2907# include <assert.h>
2908#endif
2909                     Syntax error
2910_ACEOF
2911if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2912  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2913  ac_status=$?
2914  grep -v '^ *+' conftest.er1 >conftest.err
2915  rm -f conftest.er1
2916  cat conftest.err >&5
2917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918  (exit $ac_status); } >/dev/null; then
2919  if test -s conftest.err; then
2920    ac_cpp_err=$ac_c_preproc_warn_flag
2921  else
2922    ac_cpp_err=
2923  fi
2924else
2925  ac_cpp_err=yes
2926fi
2927if test -z "$ac_cpp_err"; then
2928  :
2929else
2930  echo "$as_me: failed program was:" >&5
2931sed 's/^/| /' conftest.$ac_ext >&5
2932
2933  # Broken: fails on valid input.
2934continue
2935fi
2936rm -f conftest.err conftest.$ac_ext
2937
2938  # OK, works on sane cases.  Now check whether non-existent headers
2939  # can be detected and how.
2940  cat >conftest.$ac_ext <<_ACEOF
2941#line $LINENO "configure"
2942/* confdefs.h.  */
2943_ACEOF
2944cat confdefs.h >>conftest.$ac_ext
2945cat >>conftest.$ac_ext <<_ACEOF
2946/* end confdefs.h.  */
2947#include <ac_nonexistent.h>
2948_ACEOF
2949if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2951  ac_status=$?
2952  grep -v '^ *+' conftest.er1 >conftest.err
2953  rm -f conftest.er1
2954  cat conftest.err >&5
2955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956  (exit $ac_status); } >/dev/null; then
2957  if test -s conftest.err; then
2958    ac_cpp_err=$ac_c_preproc_warn_flag
2959  else
2960    ac_cpp_err=
2961  fi
2962else
2963  ac_cpp_err=yes
2964fi
2965if test -z "$ac_cpp_err"; then
2966  # Broken: success on invalid input.
2967continue
2968else
2969  echo "$as_me: failed program was:" >&5
2970sed 's/^/| /' conftest.$ac_ext >&5
2971
2972  # Passes both tests.
2973ac_preproc_ok=:
2974break
2975fi
2976rm -f conftest.err conftest.$ac_ext
2977
2978done
2979# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2980rm -f conftest.err conftest.$ac_ext
2981if $ac_preproc_ok; then
2982  break
2983fi
2984
2985    done
2986    ac_cv_prog_CPP=$CPP
2987
2988fi
2989  CPP=$ac_cv_prog_CPP
2990else
2991  ac_cv_prog_CPP=$CPP
2992fi
2993echo "$as_me:$LINENO: result: $CPP" >&5
2994echo "${ECHO_T}$CPP" >&6
2995ac_preproc_ok=false
2996for ac_c_preproc_warn_flag in '' yes
2997do
2998  # Use a header file that comes with gcc, so configuring glibc
2999  # with a fresh cross-compiler works.
3000  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3001  # <limits.h> exists even on freestanding compilers.
3002  # On the NeXT, cc -E runs the code through the compiler's parser,
3003  # not just through cpp. "Syntax error" is here to catch this case.
3004  cat >conftest.$ac_ext <<_ACEOF
3005#line $LINENO "configure"
3006/* confdefs.h.  */
3007_ACEOF
3008cat confdefs.h >>conftest.$ac_ext
3009cat >>conftest.$ac_ext <<_ACEOF
3010/* end confdefs.h.  */
3011#ifdef __STDC__
3012# include <limits.h>
3013#else
3014# include <assert.h>
3015#endif
3016                     Syntax error
3017_ACEOF
3018if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3019  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3020  ac_status=$?
3021  grep -v '^ *+' conftest.er1 >conftest.err
3022  rm -f conftest.er1
3023  cat conftest.err >&5
3024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025  (exit $ac_status); } >/dev/null; then
3026  if test -s conftest.err; then
3027    ac_cpp_err=$ac_c_preproc_warn_flag
3028  else
3029    ac_cpp_err=
3030  fi
3031else
3032  ac_cpp_err=yes
3033fi
3034if test -z "$ac_cpp_err"; then
3035  :
3036else
3037  echo "$as_me: failed program was:" >&5
3038sed 's/^/| /' conftest.$ac_ext >&5
3039
3040  # Broken: fails on valid input.
3041continue
3042fi
3043rm -f conftest.err conftest.$ac_ext
3044
3045  # OK, works on sane cases.  Now check whether non-existent headers
3046  # can be detected and how.
3047  cat >conftest.$ac_ext <<_ACEOF
3048#line $LINENO "configure"
3049/* confdefs.h.  */
3050_ACEOF
3051cat confdefs.h >>conftest.$ac_ext
3052cat >>conftest.$ac_ext <<_ACEOF
3053/* end confdefs.h.  */
3054#include <ac_nonexistent.h>
3055_ACEOF
3056if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3057  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3058  ac_status=$?
3059  grep -v '^ *+' conftest.er1 >conftest.err
3060  rm -f conftest.er1
3061  cat conftest.err >&5
3062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063  (exit $ac_status); } >/dev/null; then
3064  if test -s conftest.err; then
3065    ac_cpp_err=$ac_c_preproc_warn_flag
3066  else
3067    ac_cpp_err=
3068  fi
3069else
3070  ac_cpp_err=yes
3071fi
3072if test -z "$ac_cpp_err"; then
3073  # Broken: success on invalid input.
3074continue
3075else
3076  echo "$as_me: failed program was:" >&5
3077sed 's/^/| /' conftest.$ac_ext >&5
3078
3079  # Passes both tests.
3080ac_preproc_ok=:
3081break
3082fi
3083rm -f conftest.err conftest.$ac_ext
3084
3085done
3086# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3087rm -f conftest.err conftest.$ac_ext
3088if $ac_preproc_ok; then
3089  :
3090else
3091  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3092See \`config.log' for more details." >&5
3093echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3094See \`config.log' for more details." >&2;}
3095   { (exit 1); exit 1; }; }
3096fi
3097
3098ac_ext=c
3099ac_cpp='$CPP $CPPFLAGS'
3100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103
3104
3105if test "$GCC" != "yes"
3106then
3107	{ { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3108echo "$as_me: error: gcc required but not found" >&2;}
3109   { (exit 1); exit 1; }; }
3110fi
3111if test "$GXX" != "yes"
3112then
3113	{ { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3114echo "$as_me: error: g++ required but not found" >&2;}
3115   { (exit 1); exit 1; }; }
3116fi
3117
3118gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3119if test "$gccmajor" -lt "3"
3120then
3121	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3122echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3123   { (exit 1); exit 1; }; }
3124fi
3125
3126 echo "$as_me:$LINENO: checking for GNU make" >&5
3127echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3128if test "${_cv_gnu_make_command+set}" = set; then
3129  echo $ECHO_N "(cached) $ECHO_C" >&6
3130else
3131  _cv_gnu_make_command='' ;
3132                for a in "$MAKE" make gmake gnumake ; do
3133                        if test -z "$a" ; then continue ; fi ;
3134                        if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3135                                _cv_gnu_make_command=$a ;
3136                                break;
3137                        fi
3138                done ;
3139
3140fi
3141echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3142echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3143        if test  "x$_cv_gnu_make_command" != "x"  ; then
3144                ifGNUmake='' ;
3145        else
3146                ifGNUmake='#' ;
3147                echo "$as_me:$LINENO: result: \"Not found\"" >&5
3148echo "${ECHO_T}\"Not found\"" >&6;
3149        fi
3150
3151
3152if test -z "$_cv_gnu_make_command"
3153then
3154	{ { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3155echo "$as_me: error: GNU Make required but not found" >&2;}
3156   { (exit 1); exit 1; }; }
3157fi
3158
3159
3160echo "$as_me:$LINENO: checking " >&5
3161echo $ECHO_N "checking ... $ECHO_C" >&6
3162if test "${ac_cv_has_flex+set}" = set; then
3163  echo $ECHO_N "(cached) $ECHO_C" >&6
3164else
3165  for ac_prog in flex lex
3166do
3167  # Extract the first word of "$ac_prog", so it can be a program name with args.
3168set dummy $ac_prog; ac_word=$2
3169echo "$as_me:$LINENO: checking for $ac_word" >&5
3170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3171if test "${ac_cv_prog_LEX+set}" = set; then
3172  echo $ECHO_N "(cached) $ECHO_C" >&6
3173else
3174  if test -n "$LEX"; then
3175  ac_cv_prog_LEX="$LEX" # Let the user override the test.
3176else
3177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178for as_dir in $PATH
3179do
3180  IFS=$as_save_IFS
3181  test -z "$as_dir" && as_dir=.
3182  for ac_exec_ext in '' $ac_executable_extensions; do
3183  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184    ac_cv_prog_LEX="$ac_prog"
3185    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3186    break 2
3187  fi
3188done
3189done
3190
3191fi
3192fi
3193LEX=$ac_cv_prog_LEX
3194if test -n "$LEX"; then
3195  echo "$as_me:$LINENO: result: $LEX" >&5
3196echo "${ECHO_T}$LEX" >&6
3197else
3198  echo "$as_me:$LINENO: result: no" >&5
3199echo "${ECHO_T}no" >&6
3200fi
3201
3202  test -n "$LEX" && break
3203done
3204test -n "$LEX" || LEX=":"
3205
3206if test -z "$LEXLIB"
3207then
3208  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3209echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3210if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3211  echo $ECHO_N "(cached) $ECHO_C" >&6
3212else
3213  ac_check_lib_save_LIBS=$LIBS
3214LIBS="-lfl  $LIBS"
3215cat >conftest.$ac_ext <<_ACEOF
3216#line $LINENO "configure"
3217/* confdefs.h.  */
3218_ACEOF
3219cat confdefs.h >>conftest.$ac_ext
3220cat >>conftest.$ac_ext <<_ACEOF
3221/* end confdefs.h.  */
3222
3223/* Override any gcc2 internal prototype to avoid an error.  */
3224#ifdef __cplusplus
3225extern "C"
3226#endif
3227/* We use char because int might match the return type of a gcc2
3228   builtin and then its argument prototype would still apply.  */
3229char yywrap ();
3230int
3231main ()
3232{
3233yywrap ();
3234  ;
3235  return 0;
3236}
3237_ACEOF
3238rm -f conftest.$ac_objext conftest$ac_exeext
3239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3240  (eval $ac_link) 2>&5
3241  ac_status=$?
3242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243  (exit $ac_status); } &&
3244         { ac_try='test -s conftest$ac_exeext'
3245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246  (eval $ac_try) 2>&5
3247  ac_status=$?
3248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249  (exit $ac_status); }; }; then
3250  ac_cv_lib_fl_yywrap=yes
3251else
3252  echo "$as_me: failed program was:" >&5
3253sed 's/^/| /' conftest.$ac_ext >&5
3254
3255ac_cv_lib_fl_yywrap=no
3256fi
3257rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3258LIBS=$ac_check_lib_save_LIBS
3259fi
3260echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3261echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3262if test $ac_cv_lib_fl_yywrap = yes; then
3263  LEXLIB="-lfl"
3264else
3265  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3266echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3267if test "${ac_cv_lib_l_yywrap+set}" = set; then
3268  echo $ECHO_N "(cached) $ECHO_C" >&6
3269else
3270  ac_check_lib_save_LIBS=$LIBS
3271LIBS="-ll  $LIBS"
3272cat >conftest.$ac_ext <<_ACEOF
3273#line $LINENO "configure"
3274/* confdefs.h.  */
3275_ACEOF
3276cat confdefs.h >>conftest.$ac_ext
3277cat >>conftest.$ac_ext <<_ACEOF
3278/* end confdefs.h.  */
3279
3280/* Override any gcc2 internal prototype to avoid an error.  */
3281#ifdef __cplusplus
3282extern "C"
3283#endif
3284/* We use char because int might match the return type of a gcc2
3285   builtin and then its argument prototype would still apply.  */
3286char yywrap ();
3287int
3288main ()
3289{
3290yywrap ();
3291  ;
3292  return 0;
3293}
3294_ACEOF
3295rm -f conftest.$ac_objext conftest$ac_exeext
3296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3297  (eval $ac_link) 2>&5
3298  ac_status=$?
3299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300  (exit $ac_status); } &&
3301         { ac_try='test -s conftest$ac_exeext'
3302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303  (eval $ac_try) 2>&5
3304  ac_status=$?
3305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306  (exit $ac_status); }; }; then
3307  ac_cv_lib_l_yywrap=yes
3308else
3309  echo "$as_me: failed program was:" >&5
3310sed 's/^/| /' conftest.$ac_ext >&5
3311
3312ac_cv_lib_l_yywrap=no
3313fi
3314rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3315LIBS=$ac_check_lib_save_LIBS
3316fi
3317echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3318echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3319if test $ac_cv_lib_l_yywrap = yes; then
3320  LEXLIB="-ll"
3321fi
3322
3323fi
3324
3325fi
3326
3327if test "x$LEX" != "x:"; then
3328  echo "$as_me:$LINENO: checking lex output file root" >&5
3329echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3330if test "${ac_cv_prog_lex_root+set}" = set; then
3331  echo $ECHO_N "(cached) $ECHO_C" >&6
3332else
3333  # The minimal lex program is just a single line: %%.  But some broken lexes
3334# (Solaris, I think it was) want two %% lines, so accommodate them.
3335cat >conftest.l <<_ACEOF
3336%%
3337%%
3338_ACEOF
3339{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3340  (eval $LEX conftest.l) 2>&5
3341  ac_status=$?
3342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343  (exit $ac_status); }
3344if test -f lex.yy.c; then
3345  ac_cv_prog_lex_root=lex.yy
3346elif test -f lexyy.c; then
3347  ac_cv_prog_lex_root=lexyy
3348else
3349  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3350echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3351   { (exit 1); exit 1; }; }
3352fi
3353fi
3354echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3355echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3356rm -f conftest.l
3357LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3358
3359echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3360echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3361if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3362  echo $ECHO_N "(cached) $ECHO_C" >&6
3363else
3364  # POSIX says lex can declare yytext either as a pointer or an array; the
3365# default is implementation-dependent. Figure out which it is, since
3366# not all implementations provide the %pointer and %array declarations.
3367ac_cv_prog_lex_yytext_pointer=no
3368echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3369ac_save_LIBS=$LIBS
3370LIBS="$LIBS $LEXLIB"
3371cat >conftest.$ac_ext <<_ACEOF
3372`cat $LEX_OUTPUT_ROOT.c`
3373_ACEOF
3374rm -f conftest.$ac_objext conftest$ac_exeext
3375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3376  (eval $ac_link) 2>&5
3377  ac_status=$?
3378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379  (exit $ac_status); } &&
3380         { ac_try='test -s conftest$ac_exeext'
3381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382  (eval $ac_try) 2>&5
3383  ac_status=$?
3384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385  (exit $ac_status); }; }; then
3386  ac_cv_prog_lex_yytext_pointer=yes
3387else
3388  echo "$as_me: failed program was:" >&5
3389sed 's/^/| /' conftest.$ac_ext >&5
3390
3391fi
3392rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3393LIBS=$ac_save_LIBS
3394rm -f "${LEX_OUTPUT_ROOT}.c"
3395
3396fi
3397echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3398echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3399if test $ac_cv_prog_lex_yytext_pointer = yes; then
3400
3401cat >>confdefs.h <<\_ACEOF
3402#define YYTEXT_POINTER 1
3403_ACEOF
3404
3405fi
3406
3407fi
3408
3409fi
3410echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3411echo "${ECHO_T}$ac_cv_has_flex" >&6
3412if test "$LEX" != "flex"; then
3413  { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3414echo "$as_me: error: flex not found but required" >&2;}
3415   { (exit 1); exit 1; }; }
3416fi
3417
3418echo "$as_me:$LINENO: checking " >&5
3419echo $ECHO_N "checking ... $ECHO_C" >&6
3420if test "${ac_cv_has_bison+set}" = set; then
3421  echo $ECHO_N "(cached) $ECHO_C" >&6
3422else
3423  for ac_prog in 'bison -y' byacc
3424do
3425  # Extract the first word of "$ac_prog", so it can be a program name with args.
3426set dummy $ac_prog; ac_word=$2
3427echo "$as_me:$LINENO: checking for $ac_word" >&5
3428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3429if test "${ac_cv_prog_YACC+set}" = set; then
3430  echo $ECHO_N "(cached) $ECHO_C" >&6
3431else
3432  if test -n "$YACC"; then
3433  ac_cv_prog_YACC="$YACC" # Let the user override the test.
3434else
3435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436for as_dir in $PATH
3437do
3438  IFS=$as_save_IFS
3439  test -z "$as_dir" && as_dir=.
3440  for ac_exec_ext in '' $ac_executable_extensions; do
3441  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3442    ac_cv_prog_YACC="$ac_prog"
3443    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444    break 2
3445  fi
3446done
3447done
3448
3449fi
3450fi
3451YACC=$ac_cv_prog_YACC
3452if test -n "$YACC"; then
3453  echo "$as_me:$LINENO: result: $YACC" >&5
3454echo "${ECHO_T}$YACC" >&6
3455else
3456  echo "$as_me:$LINENO: result: no" >&5
3457echo "${ECHO_T}no" >&6
3458fi
3459
3460  test -n "$YACC" && break
3461done
3462test -n "$YACC" || YACC="yacc"
3463
3464
3465fi
3466echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3467echo "${ECHO_T}$ac_cv_has_bison" >&6
3468if test "$YACC" != "bison -y"; then
3469  { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3470echo "$as_me: error: bison not found but required" >&2;}
3471   { (exit 1); exit 1; }; }
3472else
3473  BISON=bison
3474
3475fi
3476
3477# Check whether --enable-shared or --disable-shared was given.
3478if test "${enable_shared+set}" = set; then
3479  enableval="$enable_shared"
3480  p=${PACKAGE-default}
3481    case $enableval in
3482    yes) enable_shared=yes ;;
3483    no) enable_shared=no ;;
3484    *)
3485      enable_shared=no
3486      # Look at the argument we got.  We use all the common list separators.
3487      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3488      for pkg in $enableval; do
3489	IFS="$lt_save_ifs"
3490	if test "X$pkg" = "X$p"; then
3491	  enable_shared=yes
3492	fi
3493      done
3494      IFS="$lt_save_ifs"
3495      ;;
3496    esac
3497else
3498  enable_shared=yes
3499fi;
3500
3501# Check whether --enable-static or --disable-static was given.
3502if test "${enable_static+set}" = set; then
3503  enableval="$enable_static"
3504  p=${PACKAGE-default}
3505    case $enableval in
3506    yes) enable_static=yes ;;
3507    no) enable_static=no ;;
3508    *)
3509     enable_static=no
3510      # Look at the argument we got.  We use all the common list separators.
3511      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3512      for pkg in $enableval; do
3513	IFS="$lt_save_ifs"
3514	if test "X$pkg" = "X$p"; then
3515	  enable_static=yes
3516	fi
3517      done
3518      IFS="$lt_save_ifs"
3519      ;;
3520    esac
3521else
3522  enable_static=yes
3523fi;
3524
3525# Check whether --enable-fast-install or --disable-fast-install was given.
3526if test "${enable_fast_install+set}" = set; then
3527  enableval="$enable_fast_install"
3528  p=${PACKAGE-default}
3529    case $enableval in
3530    yes) enable_fast_install=yes ;;
3531    no) enable_fast_install=no ;;
3532    *)
3533      enable_fast_install=no
3534      # Look at the argument we got.  We use all the common list separators.
3535      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3536      for pkg in $enableval; do
3537	IFS="$lt_save_ifs"
3538	if test "X$pkg" = "X$p"; then
3539	  enable_fast_install=yes
3540	fi
3541      done
3542      IFS="$lt_save_ifs"
3543      ;;
3544    esac
3545else
3546  enable_fast_install=yes
3547fi;
3548
3549echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3550echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3551if test "${lt_cv_path_SED+set}" = set; then
3552  echo $ECHO_N "(cached) $ECHO_C" >&6
3553else
3554  # Loop through the user's path and test for sed and gsed.
3555# Then use that list of sed's as ones to test for truncation.
3556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557for as_dir in $PATH
3558do
3559  IFS=$as_save_IFS
3560  test -z "$as_dir" && as_dir=.
3561  for lt_ac_prog in sed gsed; do
3562    for ac_exec_ext in '' $ac_executable_extensions; do
3563      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3564        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3565      fi
3566    done
3567  done
3568done
3569lt_ac_max=0
3570lt_ac_count=0
3571# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3572# along with /bin/sed that truncates output.
3573for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3574  test ! -f $lt_ac_sed && break
3575  cat /dev/null > conftest.in
3576  lt_ac_count=0
3577  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3578  # Check for GNU sed and select it if it is found.
3579  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3580    lt_cv_path_SED=$lt_ac_sed
3581    break
3582  fi
3583  while true; do
3584    cat conftest.in conftest.in >conftest.tmp
3585    mv conftest.tmp conftest.in
3586    cp conftest.in conftest.nl
3587    echo >>conftest.nl
3588    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3589    cmp -s conftest.out conftest.nl || break
3590    # 10000 chars as input seems more than enough
3591    test $lt_ac_count -gt 10 && break
3592    lt_ac_count=`expr $lt_ac_count + 1`
3593    if test $lt_ac_count -gt $lt_ac_max; then
3594      lt_ac_max=$lt_ac_count
3595      lt_cv_path_SED=$lt_ac_sed
3596    fi
3597  done
3598done
3599SED=$lt_cv_path_SED
3600
3601fi
3602
3603echo "$as_me:$LINENO: result: $SED" >&5
3604echo "${ECHO_T}$SED" >&6
3605
3606echo "$as_me:$LINENO: checking for egrep" >&5
3607echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3608if test "${ac_cv_prog_egrep+set}" = set; then
3609  echo $ECHO_N "(cached) $ECHO_C" >&6
3610else
3611  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3612    then ac_cv_prog_egrep='grep -E'
3613    else ac_cv_prog_egrep='egrep'
3614    fi
3615fi
3616echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3617echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3618 EGREP=$ac_cv_prog_egrep
3619
3620
3621
3622# Check whether --with-gnu-ld or --without-gnu-ld was given.
3623if test "${with_gnu_ld+set}" = set; then
3624  withval="$with_gnu_ld"
3625  test "$withval" = no || with_gnu_ld=yes
3626else
3627  with_gnu_ld=no
3628fi;
3629ac_prog=ld
3630if test "$GCC" = yes; then
3631  # Check if gcc -print-prog-name=ld gives a path.
3632  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3633echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3634  case $host in
3635  *-*-mingw*)
3636    # gcc leaves a trailing carriage return which upsets mingw
3637    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3638  *)
3639    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3640  esac
3641  case $ac_prog in
3642    # Accept absolute paths.
3643    [\\/]* | ?:[\\/]*)
3644      re_direlt='/[^/][^/]*/\.\./'
3645      # Canonicalize the path of ld
3646      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3647      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3648	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3649      done
3650      test -z "$LD" && LD="$ac_prog"
3651      ;;
3652  "")
3653    # If it fails, then pretend we aren't using GCC.
3654    ac_prog=ld
3655    ;;
3656  *)
3657    # If it is relative, then search for the first ld in PATH.
3658    with_gnu_ld=unknown
3659    ;;
3660  esac
3661elif test "$with_gnu_ld" = yes; then
3662  echo "$as_me:$LINENO: checking for GNU ld" >&5
3663echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3664else
3665  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3666echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3667fi
3668if test "${lt_cv_path_LD+set}" = set; then
3669  echo $ECHO_N "(cached) $ECHO_C" >&6
3670else
3671  if test -z "$LD"; then
3672  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3673  for ac_dir in $PATH; do
3674    IFS="$lt_save_ifs"
3675    test -z "$ac_dir" && ac_dir=.
3676    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3677      lt_cv_path_LD="$ac_dir/$ac_prog"
3678      # Check to see if the program is GNU ld.  I'd rather use --version,
3679      # but apparently some GNU ld's only accept -v.
3680      # Break only if it was the GNU/non-GNU ld that we prefer.
3681      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3682      *GNU* | *'with BFD'*)
3683	test "$with_gnu_ld" != no && break
3684	;;
3685      *)
3686	test "$with_gnu_ld" != yes && break
3687	;;
3688      esac
3689    fi
3690  done
3691  IFS="$lt_save_ifs"
3692else
3693  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3694fi
3695fi
3696
3697LD="$lt_cv_path_LD"
3698if test -n "$LD"; then
3699  echo "$as_me:$LINENO: result: $LD" >&5
3700echo "${ECHO_T}$LD" >&6
3701else
3702  echo "$as_me:$LINENO: result: no" >&5
3703echo "${ECHO_T}no" >&6
3704fi
3705test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3706echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3707   { (exit 1); exit 1; }; }
3708echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3709echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3710if test "${lt_cv_prog_gnu_ld+set}" = set; then
3711  echo $ECHO_N "(cached) $ECHO_C" >&6
3712else
3713  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3714case `"$LD" -v 2>&1 </dev/null` in
3715*GNU* | *'with BFD'*)
3716  lt_cv_prog_gnu_ld=yes
3717  ;;
3718*)
3719  lt_cv_prog_gnu_ld=no
3720  ;;
3721esac
3722fi
3723echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3724echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3725with_gnu_ld=$lt_cv_prog_gnu_ld
3726
3727
3728echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3729echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3730if test "${lt_cv_ld_reload_flag+set}" = set; then
3731  echo $ECHO_N "(cached) $ECHO_C" >&6
3732else
3733  lt_cv_ld_reload_flag='-r'
3734fi
3735echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3736echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3737reload_flag=$lt_cv_ld_reload_flag
3738case $reload_flag in
3739"" | " "*) ;;
3740*) reload_flag=" $reload_flag" ;;
3741esac
3742reload_cmds='$LD$reload_flag -o $output$reload_objs'
3743
3744echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3745echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3746if test "${lt_cv_path_NM+set}" = set; then
3747  echo $ECHO_N "(cached) $ECHO_C" >&6
3748else
3749  if test -n "$NM"; then
3750  # Let the user override the test.
3751  lt_cv_path_NM="$NM"
3752else
3753  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3754  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3755    IFS="$lt_save_ifs"
3756    test -z "$ac_dir" && ac_dir=.
3757    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3758    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3759      # Check to see if the nm accepts a BSD-compat flag.
3760      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3761      #   nm: unknown option "B" ignored
3762      # Tru64's nm complains that /dev/null is an invalid object file
3763      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3764      */dev/null* | *'Invalid file or object type'*)
3765	lt_cv_path_NM="$tmp_nm -B"
3766	break
3767        ;;
3768      *)
3769	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3770	*/dev/null*)
3771	  lt_cv_path_NM="$tmp_nm -p"
3772	  break
3773	  ;;
3774	*)
3775	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3776	  continue # so that we can try to find one that supports BSD flags
3777	  ;;
3778	esac
3779      esac
3780    fi
3781  done
3782  IFS="$lt_save_ifs"
3783  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3784fi
3785fi
3786echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3787echo "${ECHO_T}$lt_cv_path_NM" >&6
3788NM="$lt_cv_path_NM"
3789
3790echo "$as_me:$LINENO: checking whether ln -s works" >&5
3791echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3792LN_S=$as_ln_s
3793if test "$LN_S" = "ln -s"; then
3794  echo "$as_me:$LINENO: result: yes" >&5
3795echo "${ECHO_T}yes" >&6
3796else
3797  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3798echo "${ECHO_T}no, using $LN_S" >&6
3799fi
3800
3801echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3802echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3803if test "${lt_cv_deplibs_check_method+set}" = set; then
3804  echo $ECHO_N "(cached) $ECHO_C" >&6
3805else
3806  lt_cv_file_magic_cmd='$MAGIC_CMD'
3807lt_cv_file_magic_test_file=
3808lt_cv_deplibs_check_method='unknown'
3809# Need to set the preceding variable on all platforms that support
3810# interlibrary dependencies.
3811# 'none' -- dependencies not supported.
3812# `unknown' -- same as none, but documents that we really don't know.
3813# 'pass_all' -- all dependencies passed with no checks.
3814# 'test_compile' -- check by making test program.
3815# 'file_magic [[regex]]' -- check by looking for files in library path
3816# which responds to the $file_magic_cmd with a given extended regex.
3817# If you have `file' or equivalent on your system and you're not sure
3818# whether `pass_all' will *always* work, you probably want this one.
3819
3820case $host_os in
3821aix4* | aix5*)
3822  lt_cv_deplibs_check_method=pass_all
3823  ;;
3824
3825beos*)
3826  lt_cv_deplibs_check_method=pass_all
3827  ;;
3828
3829bsdi4*)
3830  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3831  lt_cv_file_magic_cmd='/usr/bin/file -L'
3832  lt_cv_file_magic_test_file=/shlib/libc.so
3833  ;;
3834
3835cygwin* | mingw* | pw32*)
3836  # win32_libid is a shell function defined in ltmain.sh
3837  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3838  lt_cv_file_magic_cmd='win32_libid'
3839  ;;
3840
3841darwin* | rhapsody*)
3842  # this will be overwritten by pass_all, but leave it in just in case
3843  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3844  lt_cv_file_magic_cmd='/usr/bin/file -L'
3845  case "$host_os" in
3846  rhapsody* | darwin1.[012])
3847    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3848    ;;
3849  *) # Darwin 1.3 on
3850    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3851    ;;
3852  esac
3853  lt_cv_deplibs_check_method=pass_all
3854  ;;
3855
3856freebsd*)
3857  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3858    case $host_cpu in
3859    i*86 )
3860      # Not sure whether the presence of OpenBSD here was a mistake.
3861      # Let's accept both of them until this is cleared up.
3862      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3863      lt_cv_file_magic_cmd=/usr/bin/file
3864      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3865      ;;
3866    esac
3867  else
3868    lt_cv_deplibs_check_method=pass_all
3869  fi
3870  ;;
3871
3872gnu*)
3873  lt_cv_deplibs_check_method=pass_all
3874  ;;
3875
3876hpux10.20* | hpux11*)
3877  lt_cv_file_magic_cmd=/usr/bin/file
3878  case "$host_cpu" in
3879  ia64*)
3880    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3881    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3882    ;;
3883  hppa*64*)
3884    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]'
3885    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3886    ;;
3887  *)
3888    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3889    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3890    ;;
3891  esac
3892  ;;
3893
3894irix5* | irix6* | nonstopux*)
3895  case $host_os in
3896  irix5* | nonstopux*)
3897    # this will be overridden with pass_all, but let us keep it just in case
3898    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3899    ;;
3900  *)
3901    case $LD in
3902    *-32|*"-32 ") libmagic=32-bit;;
3903    *-n32|*"-n32 ") libmagic=N32;;
3904    *-64|*"-64 ") libmagic=64-bit;;
3905    *) libmagic=never-match;;
3906    esac
3907    # this will be overridden with pass_all, but let us keep it just in case
3908    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3909    ;;
3910  esac
3911  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3912  lt_cv_deplibs_check_method=pass_all
3913  ;;
3914
3915# This must be Linux ELF.
3916linux*)
3917  case $host_cpu in
3918  alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3919    lt_cv_deplibs_check_method=pass_all ;;
3920  *)
3921    # glibc up to 2.1.1 does not perform some relocations on ARM
3922    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3923  esac
3924  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3925  ;;
3926
3927netbsd*)
3928  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3929    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3930  else
3931    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3932  fi
3933  ;;
3934
3935newos6*)
3936  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3937  lt_cv_file_magic_cmd=/usr/bin/file
3938  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3939  ;;
3940
3941nto-qnx)
3942  lt_cv_deplibs_check_method=unknown
3943  ;;
3944
3945openbsd*)
3946  lt_cv_file_magic_cmd=/usr/bin/file
3947  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3948  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3949    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3950  else
3951    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3952  fi
3953  ;;
3954
3955osf3* | osf4* | osf5*)
3956  # this will be overridden with pass_all, but let us keep it just in case
3957  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3958  lt_cv_file_magic_test_file=/shlib/libc.so
3959  lt_cv_deplibs_check_method=pass_all
3960  ;;
3961
3962sco3.2v5*)
3963  lt_cv_deplibs_check_method=pass_all
3964  ;;
3965
3966solaris*)
3967  lt_cv_deplibs_check_method=pass_all
3968  lt_cv_file_magic_test_file=/lib/libc.so
3969  ;;
3970
3971sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3972  case $host_vendor in
3973  motorola)
3974    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]'
3975    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3976    ;;
3977  ncr)
3978    lt_cv_deplibs_check_method=pass_all
3979    ;;
3980  sequent)
3981    lt_cv_file_magic_cmd='/bin/file'
3982    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3983    ;;
3984  sni)
3985    lt_cv_file_magic_cmd='/bin/file'
3986    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3987    lt_cv_file_magic_test_file=/lib/libc.so
3988    ;;
3989  siemens)
3990    lt_cv_deplibs_check_method=pass_all
3991    ;;
3992  esac
3993  ;;
3994
3995sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3996  lt_cv_deplibs_check_method=pass_all
3997  ;;
3998esac
3999
4000fi
4001echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4002echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4003file_magic_cmd=$lt_cv_file_magic_cmd
4004deplibs_check_method=$lt_cv_deplibs_check_method
4005test -z "$deplibs_check_method" && deplibs_check_method=unknown
4006
4007
4008
4009
4010# If no C compiler was specified, use CC.
4011LTCC=${LTCC-"$CC"}
4012
4013# Allow CC to be a program name with arguments.
4014compiler=$CC
4015
4016# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4017if test "${enable_libtool_lock+set}" = set; then
4018  enableval="$enable_libtool_lock"
4019
4020fi;
4021test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4022
4023# Some flags need to be propagated to the compiler or linker for good
4024# libtool support.
4025case $host in
4026ia64-*-hpux*)
4027  # Find out which ABI we are using.
4028  echo 'int i;' > conftest.$ac_ext
4029  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4030  (eval $ac_compile) 2>&5
4031  ac_status=$?
4032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033  (exit $ac_status); }; then
4034    case `/usr/bin/file conftest.$ac_objext` in
4035    *ELF-32*)
4036      HPUX_IA64_MODE="32"
4037      ;;
4038    *ELF-64*)
4039      HPUX_IA64_MODE="64"
4040      ;;
4041    esac
4042  fi
4043  rm -rf conftest*
4044  ;;
4045*-*-irix6*)
4046  # Find out which ABI we are using.
4047  echo '#line 4047 "configure"' > conftest.$ac_ext
4048  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4049  (eval $ac_compile) 2>&5
4050  ac_status=$?
4051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052  (exit $ac_status); }; then
4053   if test "$lt_cv_prog_gnu_ld" = yes; then
4054    case `/usr/bin/file conftest.$ac_objext` in
4055    *32-bit*)
4056      LD="${LD-ld} -melf32bsmip"
4057      ;;
4058    *N32*)
4059      LD="${LD-ld} -melf32bmipn32"
4060      ;;
4061    *64-bit*)
4062      LD="${LD-ld} -melf64bmip"
4063      ;;
4064    esac
4065   else
4066    case `/usr/bin/file conftest.$ac_objext` in
4067    *32-bit*)
4068      LD="${LD-ld} -32"
4069      ;;
4070    *N32*)
4071      LD="${LD-ld} -n32"
4072      ;;
4073    *64-bit*)
4074      LD="${LD-ld} -64"
4075      ;;
4076    esac
4077   fi
4078  fi
4079  rm -rf conftest*
4080  ;;
4081
4082x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4083  # Find out which ABI we are using.
4084  echo 'int i;' > conftest.$ac_ext
4085  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4086  (eval $ac_compile) 2>&5
4087  ac_status=$?
4088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089  (exit $ac_status); }; then
4090    case "`/usr/bin/file conftest.o`" in
4091    *32-bit*)
4092      case $host in
4093        x86_64-*linux*)
4094          LD="${LD-ld} -m elf_i386"
4095          ;;
4096        ppc64-*linux*)
4097          LD="${LD-ld} -m elf32ppclinux"
4098          ;;
4099        s390x-*linux*)
4100          LD="${LD-ld} -m elf_s390"
4101          ;;
4102        sparc64-*linux*)
4103          LD="${LD-ld} -m elf32_sparc"
4104          ;;
4105      esac
4106      ;;
4107    *64-bit*)
4108      case $host in
4109        x86_64-*linux*)
4110          LD="${LD-ld} -m elf_x86_64"
4111          ;;
4112        ppc*-*linux*|powerpc*-*linux*)
4113          LD="${LD-ld} -m elf64ppc"
4114          ;;
4115        s390*-*linux*)
4116          LD="${LD-ld} -m elf64_s390"
4117          ;;
4118        sparc*-*linux*)
4119          LD="${LD-ld} -m elf64_sparc"
4120          ;;
4121      esac
4122      ;;
4123    esac
4124  fi
4125  rm -rf conftest*
4126  ;;
4127
4128*-*-sco3.2v5*)
4129  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4130  SAVE_CFLAGS="$CFLAGS"
4131  CFLAGS="$CFLAGS -belf"
4132  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4133echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4134if test "${lt_cv_cc_needs_belf+set}" = set; then
4135  echo $ECHO_N "(cached) $ECHO_C" >&6
4136else
4137  ac_ext=c
4138ac_cpp='$CPP $CPPFLAGS'
4139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4141ac_compiler_gnu=$ac_cv_c_compiler_gnu
4142
4143     cat >conftest.$ac_ext <<_ACEOF
4144#line $LINENO "configure"
4145/* confdefs.h.  */
4146_ACEOF
4147cat confdefs.h >>conftest.$ac_ext
4148cat >>conftest.$ac_ext <<_ACEOF
4149/* end confdefs.h.  */
4150
4151int
4152main ()
4153{
4154
4155  ;
4156  return 0;
4157}
4158_ACEOF
4159rm -f conftest.$ac_objext conftest$ac_exeext
4160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4161  (eval $ac_link) 2>&5
4162  ac_status=$?
4163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164  (exit $ac_status); } &&
4165         { ac_try='test -s conftest$ac_exeext'
4166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167  (eval $ac_try) 2>&5
4168  ac_status=$?
4169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170  (exit $ac_status); }; }; then
4171  lt_cv_cc_needs_belf=yes
4172else
4173  echo "$as_me: failed program was:" >&5
4174sed 's/^/| /' conftest.$ac_ext >&5
4175
4176lt_cv_cc_needs_belf=no
4177fi
4178rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4179     ac_ext=c
4180ac_cpp='$CPP $CPPFLAGS'
4181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184
4185fi
4186echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4187echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4188  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4189    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4190    CFLAGS="$SAVE_CFLAGS"
4191  fi
4192  ;;
4193
4194esac
4195
4196need_locks="$enable_libtool_lock"
4197
4198
4199
4200echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4201echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4202if test "${ac_cv_header_stdc+set}" = set; then
4203  echo $ECHO_N "(cached) $ECHO_C" >&6
4204else
4205  cat >conftest.$ac_ext <<_ACEOF
4206#line $LINENO "configure"
4207/* confdefs.h.  */
4208_ACEOF
4209cat confdefs.h >>conftest.$ac_ext
4210cat >>conftest.$ac_ext <<_ACEOF
4211/* end confdefs.h.  */
4212#include <stdlib.h>
4213#include <stdarg.h>
4214#include <string.h>
4215#include <float.h>
4216
4217int
4218main ()
4219{
4220
4221  ;
4222  return 0;
4223}
4224_ACEOF
4225rm -f conftest.$ac_objext
4226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4227  (eval $ac_compile) 2>&5
4228  ac_status=$?
4229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230  (exit $ac_status); } &&
4231         { ac_try='test -s conftest.$ac_objext'
4232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233  (eval $ac_try) 2>&5
4234  ac_status=$?
4235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236  (exit $ac_status); }; }; then
4237  ac_cv_header_stdc=yes
4238else
4239  echo "$as_me: failed program was:" >&5
4240sed 's/^/| /' conftest.$ac_ext >&5
4241
4242ac_cv_header_stdc=no
4243fi
4244rm -f conftest.$ac_objext conftest.$ac_ext
4245
4246if test $ac_cv_header_stdc = yes; then
4247  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4248  cat >conftest.$ac_ext <<_ACEOF
4249#line $LINENO "configure"
4250/* confdefs.h.  */
4251_ACEOF
4252cat confdefs.h >>conftest.$ac_ext
4253cat >>conftest.$ac_ext <<_ACEOF
4254/* end confdefs.h.  */
4255#include <string.h>
4256
4257_ACEOF
4258if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4259  $EGREP "memchr" >/dev/null 2>&1; then
4260  :
4261else
4262  ac_cv_header_stdc=no
4263fi
4264rm -f conftest*
4265
4266fi
4267
4268if test $ac_cv_header_stdc = yes; then
4269  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4270  cat >conftest.$ac_ext <<_ACEOF
4271#line $LINENO "configure"
4272/* confdefs.h.  */
4273_ACEOF
4274cat confdefs.h >>conftest.$ac_ext
4275cat >>conftest.$ac_ext <<_ACEOF
4276/* end confdefs.h.  */
4277#include <stdlib.h>
4278
4279_ACEOF
4280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4281  $EGREP "free" >/dev/null 2>&1; then
4282  :
4283else
4284  ac_cv_header_stdc=no
4285fi
4286rm -f conftest*
4287
4288fi
4289
4290if test $ac_cv_header_stdc = yes; then
4291  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4292  if test "$cross_compiling" = yes; then
4293  :
4294else
4295  cat >conftest.$ac_ext <<_ACEOF
4296#line $LINENO "configure"
4297/* confdefs.h.  */
4298_ACEOF
4299cat confdefs.h >>conftest.$ac_ext
4300cat >>conftest.$ac_ext <<_ACEOF
4301/* end confdefs.h.  */
4302#include <ctype.h>
4303#if ((' ' & 0x0FF) == 0x020)
4304# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4305# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4306#else
4307# define ISLOWER(c) \
4308                   (('a' <= (c) && (c) <= 'i') \
4309                     || ('j' <= (c) && (c) <= 'r') \
4310                     || ('s' <= (c) && (c) <= 'z'))
4311# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4312#endif
4313
4314#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4315int
4316main ()
4317{
4318  int i;
4319  for (i = 0; i < 256; i++)
4320    if (XOR (islower (i), ISLOWER (i))
4321        || toupper (i) != TOUPPER (i))
4322      exit(2);
4323  exit (0);
4324}
4325_ACEOF
4326rm -f conftest$ac_exeext
4327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4328  (eval $ac_link) 2>&5
4329  ac_status=$?
4330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333  (eval $ac_try) 2>&5
4334  ac_status=$?
4335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336  (exit $ac_status); }; }; then
4337  :
4338else
4339  echo "$as_me: program exited with status $ac_status" >&5
4340echo "$as_me: failed program was:" >&5
4341sed 's/^/| /' conftest.$ac_ext >&5
4342
4343( exit $ac_status )
4344ac_cv_header_stdc=no
4345fi
4346rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4347fi
4348fi
4349fi
4350echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4351echo "${ECHO_T}$ac_cv_header_stdc" >&6
4352if test $ac_cv_header_stdc = yes; then
4353
4354cat >>confdefs.h <<\_ACEOF
4355#define STDC_HEADERS 1
4356_ACEOF
4357
4358fi
4359
4360# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4371                  inttypes.h stdint.h unistd.h
4372do
4373as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4374echo "$as_me:$LINENO: checking for $ac_header" >&5
4375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4376if eval "test \"\${$as_ac_Header+set}\" = set"; then
4377  echo $ECHO_N "(cached) $ECHO_C" >&6
4378else
4379  cat >conftest.$ac_ext <<_ACEOF
4380#line $LINENO "configure"
4381/* confdefs.h.  */
4382_ACEOF
4383cat confdefs.h >>conftest.$ac_ext
4384cat >>conftest.$ac_ext <<_ACEOF
4385/* end confdefs.h.  */
4386$ac_includes_default
4387
4388#include <$ac_header>
4389_ACEOF
4390rm -f conftest.$ac_objext
4391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4392  (eval $ac_compile) 2>&5
4393  ac_status=$?
4394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395  (exit $ac_status); } &&
4396         { ac_try='test -s conftest.$ac_objext'
4397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398  (eval $ac_try) 2>&5
4399  ac_status=$?
4400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401  (exit $ac_status); }; }; then
4402  eval "$as_ac_Header=yes"
4403else
4404  echo "$as_me: failed program was:" >&5
4405sed 's/^/| /' conftest.$ac_ext >&5
4406
4407eval "$as_ac_Header=no"
4408fi
4409rm -f conftest.$ac_objext conftest.$ac_ext
4410fi
4411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4412echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4413if test `eval echo '${'$as_ac_Header'}'` = yes; then
4414  cat >>confdefs.h <<_ACEOF
4415#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4416_ACEOF
4417
4418fi
4419
4420done
4421
4422
4423
4424for ac_header in dlfcn.h
4425do
4426as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4427if eval "test \"\${$as_ac_Header+set}\" = set"; then
4428  echo "$as_me:$LINENO: checking for $ac_header" >&5
4429echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4430if eval "test \"\${$as_ac_Header+set}\" = set"; then
4431  echo $ECHO_N "(cached) $ECHO_C" >&6
4432fi
4433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4434echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4435else
4436  # Is the header compilable?
4437echo "$as_me:$LINENO: checking $ac_header usability" >&5
4438echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4439cat >conftest.$ac_ext <<_ACEOF
4440#line $LINENO "configure"
4441/* confdefs.h.  */
4442_ACEOF
4443cat confdefs.h >>conftest.$ac_ext
4444cat >>conftest.$ac_ext <<_ACEOF
4445/* end confdefs.h.  */
4446$ac_includes_default
4447#include <$ac_header>
4448_ACEOF
4449rm -f conftest.$ac_objext
4450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4451  (eval $ac_compile) 2>&5
4452  ac_status=$?
4453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454  (exit $ac_status); } &&
4455         { ac_try='test -s conftest.$ac_objext'
4456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457  (eval $ac_try) 2>&5
4458  ac_status=$?
4459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460  (exit $ac_status); }; }; then
4461  ac_header_compiler=yes
4462else
4463  echo "$as_me: failed program was:" >&5
4464sed 's/^/| /' conftest.$ac_ext >&5
4465
4466ac_header_compiler=no
4467fi
4468rm -f conftest.$ac_objext conftest.$ac_ext
4469echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4470echo "${ECHO_T}$ac_header_compiler" >&6
4471
4472# Is the header present?
4473echo "$as_me:$LINENO: checking $ac_header presence" >&5
4474echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4475cat >conftest.$ac_ext <<_ACEOF
4476#line $LINENO "configure"
4477/* confdefs.h.  */
4478_ACEOF
4479cat confdefs.h >>conftest.$ac_ext
4480cat >>conftest.$ac_ext <<_ACEOF
4481/* end confdefs.h.  */
4482#include <$ac_header>
4483_ACEOF
4484if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4485  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4486  ac_status=$?
4487  grep -v '^ *+' conftest.er1 >conftest.err
4488  rm -f conftest.er1
4489  cat conftest.err >&5
4490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491  (exit $ac_status); } >/dev/null; then
4492  if test -s conftest.err; then
4493    ac_cpp_err=$ac_c_preproc_warn_flag
4494  else
4495    ac_cpp_err=
4496  fi
4497else
4498  ac_cpp_err=yes
4499fi
4500if test -z "$ac_cpp_err"; then
4501  ac_header_preproc=yes
4502else
4503  echo "$as_me: failed program was:" >&5
4504sed 's/^/| /' conftest.$ac_ext >&5
4505
4506  ac_header_preproc=no
4507fi
4508rm -f conftest.err conftest.$ac_ext
4509echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4510echo "${ECHO_T}$ac_header_preproc" >&6
4511
4512# So?  What about this header?
4513case $ac_header_compiler:$ac_header_preproc in
4514  yes:no )
4515    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4516echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4517    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4518echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4519    (
4520      cat <<\_ASBOX
4521## ------------------------------------ ##
4522## Report this to bug-autoconf@gnu.org. ##
4523## ------------------------------------ ##
4524_ASBOX
4525    ) |
4526      sed "s/^/$as_me: WARNING:     /" >&2
4527    ;;
4528  no:yes )
4529    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4530echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4531    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4532echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4533    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4534echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4535    (
4536      cat <<\_ASBOX
4537## ------------------------------------ ##
4538## Report this to bug-autoconf@gnu.org. ##
4539## ------------------------------------ ##
4540_ASBOX
4541    ) |
4542      sed "s/^/$as_me: WARNING:     /" >&2
4543    ;;
4544esac
4545echo "$as_me:$LINENO: checking for $ac_header" >&5
4546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4547if eval "test \"\${$as_ac_Header+set}\" = set"; then
4548  echo $ECHO_N "(cached) $ECHO_C" >&6
4549else
4550  eval "$as_ac_Header=$ac_header_preproc"
4551fi
4552echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4553echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4554
4555fi
4556if test `eval echo '${'$as_ac_Header'}'` = yes; then
4557  cat >>confdefs.h <<_ACEOF
4558#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4559_ACEOF
4560
4561fi
4562
4563done
4564
4565ac_ext=cc
4566ac_cpp='$CXXCPP $CPPFLAGS'
4567ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4568ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4569ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4570echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4571echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4572if test -z "$CXXCPP"; then
4573  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4574  echo $ECHO_N "(cached) $ECHO_C" >&6
4575else
4576      # Double quotes because CXXCPP needs to be expanded
4577    for CXXCPP in "$CXX -E" "/lib/cpp"
4578    do
4579      ac_preproc_ok=false
4580for ac_cxx_preproc_warn_flag in '' yes
4581do
4582  # Use a header file that comes with gcc, so configuring glibc
4583  # with a fresh cross-compiler works.
4584  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4585  # <limits.h> exists even on freestanding compilers.
4586  # On the NeXT, cc -E runs the code through the compiler's parser,
4587  # not just through cpp. "Syntax error" is here to catch this case.
4588  cat >conftest.$ac_ext <<_ACEOF
4589#line $LINENO "configure"
4590/* confdefs.h.  */
4591_ACEOF
4592cat confdefs.h >>conftest.$ac_ext
4593cat >>conftest.$ac_ext <<_ACEOF
4594/* end confdefs.h.  */
4595#ifdef __STDC__
4596# include <limits.h>
4597#else
4598# include <assert.h>
4599#endif
4600                     Syntax error
4601_ACEOF
4602if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4603  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4604  ac_status=$?
4605  grep -v '^ *+' conftest.er1 >conftest.err
4606  rm -f conftest.er1
4607  cat conftest.err >&5
4608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609  (exit $ac_status); } >/dev/null; then
4610  if test -s conftest.err; then
4611    ac_cpp_err=$ac_cxx_preproc_warn_flag
4612  else
4613    ac_cpp_err=
4614  fi
4615else
4616  ac_cpp_err=yes
4617fi
4618if test -z "$ac_cpp_err"; then
4619  :
4620else
4621  echo "$as_me: failed program was:" >&5
4622sed 's/^/| /' conftest.$ac_ext >&5
4623
4624  # Broken: fails on valid input.
4625continue
4626fi
4627rm -f conftest.err conftest.$ac_ext
4628
4629  # OK, works on sane cases.  Now check whether non-existent headers
4630  # can be detected and how.
4631  cat >conftest.$ac_ext <<_ACEOF
4632#line $LINENO "configure"
4633/* confdefs.h.  */
4634_ACEOF
4635cat confdefs.h >>conftest.$ac_ext
4636cat >>conftest.$ac_ext <<_ACEOF
4637/* end confdefs.h.  */
4638#include <ac_nonexistent.h>
4639_ACEOF
4640if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4641  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4642  ac_status=$?
4643  grep -v '^ *+' conftest.er1 >conftest.err
4644  rm -f conftest.er1
4645  cat conftest.err >&5
4646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647  (exit $ac_status); } >/dev/null; then
4648  if test -s conftest.err; then
4649    ac_cpp_err=$ac_cxx_preproc_warn_flag
4650  else
4651    ac_cpp_err=
4652  fi
4653else
4654  ac_cpp_err=yes
4655fi
4656if test -z "$ac_cpp_err"; then
4657  # Broken: success on invalid input.
4658continue
4659else
4660  echo "$as_me: failed program was:" >&5
4661sed 's/^/| /' conftest.$ac_ext >&5
4662
4663  # Passes both tests.
4664ac_preproc_ok=:
4665break
4666fi
4667rm -f conftest.err conftest.$ac_ext
4668
4669done
4670# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4671rm -f conftest.err conftest.$ac_ext
4672if $ac_preproc_ok; then
4673  break
4674fi
4675
4676    done
4677    ac_cv_prog_CXXCPP=$CXXCPP
4678
4679fi
4680  CXXCPP=$ac_cv_prog_CXXCPP
4681else
4682  ac_cv_prog_CXXCPP=$CXXCPP
4683fi
4684echo "$as_me:$LINENO: result: $CXXCPP" >&5
4685echo "${ECHO_T}$CXXCPP" >&6
4686ac_preproc_ok=false
4687for ac_cxx_preproc_warn_flag in '' yes
4688do
4689  # Use a header file that comes with gcc, so configuring glibc
4690  # with a fresh cross-compiler works.
4691  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4692  # <limits.h> exists even on freestanding compilers.
4693  # On the NeXT, cc -E runs the code through the compiler's parser,
4694  # not just through cpp. "Syntax error" is here to catch this case.
4695  cat >conftest.$ac_ext <<_ACEOF
4696#line $LINENO "configure"
4697/* confdefs.h.  */
4698_ACEOF
4699cat confdefs.h >>conftest.$ac_ext
4700cat >>conftest.$ac_ext <<_ACEOF
4701/* end confdefs.h.  */
4702#ifdef __STDC__
4703# include <limits.h>
4704#else
4705# include <assert.h>
4706#endif
4707                     Syntax error
4708_ACEOF
4709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4710  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4711  ac_status=$?
4712  grep -v '^ *+' conftest.er1 >conftest.err
4713  rm -f conftest.er1
4714  cat conftest.err >&5
4715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716  (exit $ac_status); } >/dev/null; then
4717  if test -s conftest.err; then
4718    ac_cpp_err=$ac_cxx_preproc_warn_flag
4719  else
4720    ac_cpp_err=
4721  fi
4722else
4723  ac_cpp_err=yes
4724fi
4725if test -z "$ac_cpp_err"; then
4726  :
4727else
4728  echo "$as_me: failed program was:" >&5
4729sed 's/^/| /' conftest.$ac_ext >&5
4730
4731  # Broken: fails on valid input.
4732continue
4733fi
4734rm -f conftest.err conftest.$ac_ext
4735
4736  # OK, works on sane cases.  Now check whether non-existent headers
4737  # can be detected and how.
4738  cat >conftest.$ac_ext <<_ACEOF
4739#line $LINENO "configure"
4740/* confdefs.h.  */
4741_ACEOF
4742cat confdefs.h >>conftest.$ac_ext
4743cat >>conftest.$ac_ext <<_ACEOF
4744/* end confdefs.h.  */
4745#include <ac_nonexistent.h>
4746_ACEOF
4747if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4748  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4749  ac_status=$?
4750  grep -v '^ *+' conftest.er1 >conftest.err
4751  rm -f conftest.er1
4752  cat conftest.err >&5
4753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754  (exit $ac_status); } >/dev/null; then
4755  if test -s conftest.err; then
4756    ac_cpp_err=$ac_cxx_preproc_warn_flag
4757  else
4758    ac_cpp_err=
4759  fi
4760else
4761  ac_cpp_err=yes
4762fi
4763if test -z "$ac_cpp_err"; then
4764  # Broken: success on invalid input.
4765continue
4766else
4767  echo "$as_me: failed program was:" >&5
4768sed 's/^/| /' conftest.$ac_ext >&5
4769
4770  # Passes both tests.
4771ac_preproc_ok=:
4772break
4773fi
4774rm -f conftest.err conftest.$ac_ext
4775
4776done
4777# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4778rm -f conftest.err conftest.$ac_ext
4779if $ac_preproc_ok; then
4780  :
4781else
4782  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4783See \`config.log' for more details." >&5
4784echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4785See \`config.log' for more details." >&2;}
4786   { (exit 1); exit 1; }; }
4787fi
4788
4789ac_ext=cc
4790ac_cpp='$CXXCPP $CPPFLAGS'
4791ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4792ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4793ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4794
4795
4796ac_ext=f
4797ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4798ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4799ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4800if test -n "$ac_tool_prefix"; then
4801  for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4802  do
4803    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4804set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4805echo "$as_me:$LINENO: checking for $ac_word" >&5
4806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4807if test "${ac_cv_prog_F77+set}" = set; then
4808  echo $ECHO_N "(cached) $ECHO_C" >&6
4809else
4810  if test -n "$F77"; then
4811  ac_cv_prog_F77="$F77" # Let the user override the test.
4812else
4813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814for as_dir in $PATH
4815do
4816  IFS=$as_save_IFS
4817  test -z "$as_dir" && as_dir=.
4818  for ac_exec_ext in '' $ac_executable_extensions; do
4819  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4820    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4821    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4822    break 2
4823  fi
4824done
4825done
4826
4827fi
4828fi
4829F77=$ac_cv_prog_F77
4830if test -n "$F77"; then
4831  echo "$as_me:$LINENO: result: $F77" >&5
4832echo "${ECHO_T}$F77" >&6
4833else
4834  echo "$as_me:$LINENO: result: no" >&5
4835echo "${ECHO_T}no" >&6
4836fi
4837
4838    test -n "$F77" && break
4839  done
4840fi
4841if test -z "$F77"; then
4842  ac_ct_F77=$F77
4843  for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4844do
4845  # Extract the first word of "$ac_prog", so it can be a program name with args.
4846set dummy $ac_prog; ac_word=$2
4847echo "$as_me:$LINENO: checking for $ac_word" >&5
4848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4849if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4850  echo $ECHO_N "(cached) $ECHO_C" >&6
4851else
4852  if test -n "$ac_ct_F77"; then
4853  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4854else
4855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856for as_dir in $PATH
4857do
4858  IFS=$as_save_IFS
4859  test -z "$as_dir" && as_dir=.
4860  for ac_exec_ext in '' $ac_executable_extensions; do
4861  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4862    ac_cv_prog_ac_ct_F77="$ac_prog"
4863    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4864    break 2
4865  fi
4866done
4867done
4868
4869fi
4870fi
4871ac_ct_F77=$ac_cv_prog_ac_ct_F77
4872if test -n "$ac_ct_F77"; then
4873  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4874echo "${ECHO_T}$ac_ct_F77" >&6
4875else
4876  echo "$as_me:$LINENO: result: no" >&5
4877echo "${ECHO_T}no" >&6
4878fi
4879
4880  test -n "$ac_ct_F77" && break
4881done
4882
4883  F77=$ac_ct_F77
4884fi
4885
4886
4887# Provide some information about the compiler.
4888echo "$as_me:4888:" \
4889     "checking for Fortran 77 compiler version" >&5
4890ac_compiler=`set X $ac_compile; echo $2`
4891{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4892  (eval $ac_compiler --version </dev/null >&5) 2>&5
4893  ac_status=$?
4894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895  (exit $ac_status); }
4896{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4897  (eval $ac_compiler -v </dev/null >&5) 2>&5
4898  ac_status=$?
4899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900  (exit $ac_status); }
4901{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4902  (eval $ac_compiler -V </dev/null >&5) 2>&5
4903  ac_status=$?
4904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905  (exit $ac_status); }
4906
4907# If we don't use `.F' as extension, the preprocessor is not run on the
4908# input file.
4909ac_save_ext=$ac_ext
4910ac_ext=F
4911echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4912echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4913if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4914  echo $ECHO_N "(cached) $ECHO_C" >&6
4915else
4916  cat >conftest.$ac_ext <<_ACEOF
4917      program main
4918#ifndef __GNUC__
4919       choke me
4920#endif
4921
4922      end
4923_ACEOF
4924rm -f conftest.$ac_objext
4925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4926  (eval $ac_compile) 2>&5
4927  ac_status=$?
4928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929  (exit $ac_status); } &&
4930         { ac_try='test -s conftest.$ac_objext'
4931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932  (eval $ac_try) 2>&5
4933  ac_status=$?
4934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935  (exit $ac_status); }; }; then
4936  ac_compiler_gnu=yes
4937else
4938  echo "$as_me: failed program was:" >&5
4939sed 's/^/| /' conftest.$ac_ext >&5
4940
4941ac_compiler_gnu=no
4942fi
4943rm -f conftest.$ac_objext conftest.$ac_ext
4944ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4945
4946fi
4947echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4948echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4949ac_ext=$ac_save_ext
4950G77=`test $ac_compiler_gnu = yes && echo yes`
4951ac_test_FFLAGS=${FFLAGS+set}
4952ac_save_FFLAGS=$FFLAGS
4953FFLAGS=
4954echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4955echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4956if test "${ac_cv_prog_f77_g+set}" = set; then
4957  echo $ECHO_N "(cached) $ECHO_C" >&6
4958else
4959  FFLAGS=-g
4960cat >conftest.$ac_ext <<_ACEOF
4961      program main
4962
4963      end
4964_ACEOF
4965rm -f conftest.$ac_objext
4966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4967  (eval $ac_compile) 2>&5
4968  ac_status=$?
4969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970  (exit $ac_status); } &&
4971         { ac_try='test -s conftest.$ac_objext'
4972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973  (eval $ac_try) 2>&5
4974  ac_status=$?
4975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976  (exit $ac_status); }; }; then
4977  ac_cv_prog_f77_g=yes
4978else
4979  echo "$as_me: failed program was:" >&5
4980sed 's/^/| /' conftest.$ac_ext >&5
4981
4982ac_cv_prog_f77_g=no
4983fi
4984rm -f conftest.$ac_objext conftest.$ac_ext
4985
4986fi
4987echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4988echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4989if test "$ac_test_FFLAGS" = set; then
4990  FFLAGS=$ac_save_FFLAGS
4991elif test $ac_cv_prog_f77_g = yes; then
4992  if test "$G77" = yes; then
4993    FFLAGS="-g -O2"
4994  else
4995    FFLAGS="-g"
4996  fi
4997else
4998  if test "$G77" = yes; then
4999    FFLAGS="-O2"
5000  else
5001    FFLAGS=
5002  fi
5003fi
5004ac_ext=c
5005ac_cpp='$CPP $CPPFLAGS'
5006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008ac_compiler_gnu=$ac_cv_c_compiler_gnu
5009
5010
5011
5012# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5013
5014# find the maximum length of command line arguments
5015echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5016echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5017if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5018  echo $ECHO_N "(cached) $ECHO_C" >&6
5019else
5020    i=0
5021  testring="ABCD"
5022
5023  case $build_os in
5024  msdosdjgpp*)
5025    # On DJGPP, this test can blow up pretty badly due to problems in libc
5026    # (any single argument exceeding 2000 bytes causes a buffer overrun
5027    # during glob expansion).  Even if it were fixed, the result of this
5028    # check would be larger than it should be.
5029    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5030    ;;
5031
5032  gnu*)
5033    # Under GNU Hurd, this test is not required because there is
5034    # no limit to the length of command line arguments.
5035    # Libtool will interpret -1 as no limit whatsoever
5036    lt_cv_sys_max_cmd_len=-1;
5037    ;;
5038
5039  cygwin* | mingw*)
5040    # On Win9x/ME, this test blows up -- it succeeds, but takes
5041    # about 5 minutes as the teststring grows exponentially.
5042    # Worse, since 9x/ME are not pre-emptively multitasking,
5043    # you end up with a "frozen" computer, even though with patience
5044    # the test eventually succeeds (with a max line length of 256k).
5045    # Instead, let's just punt: use the minimum linelength reported by
5046    # all of the supported platforms: 8192 (on NT/2K/XP).
5047    lt_cv_sys_max_cmd_len=8192;
5048    ;;
5049
5050 *)
5051    # If test is not a shell built-in, we'll probably end up computing a
5052    # maximum length that is only half of the actual maximum length, but
5053    # we can't tell.
5054    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5055	       = "XX$testring") >/dev/null 2>&1 &&
5056	    new_result=`expr "X$testring" : ".*" 2>&1` &&
5057	    lt_cv_sys_max_cmd_len=$new_result &&
5058	    test $i != 17 # 1/2 MB should be enough
5059    do
5060      i=`expr $i + 1`
5061      testring=$testring$testring
5062    done
5063    testring=
5064    # Add a significant safety factor because C++ compilers can tack on massive
5065    # amounts of additional arguments before passing them to the linker.
5066    # It appears as though 1/2 is a usable value.
5067    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5068    ;;
5069  esac
5070
5071fi
5072
5073if test -n $lt_cv_sys_max_cmd_len ; then
5074  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5075echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5076else
5077  echo "$as_me:$LINENO: result: none" >&5
5078echo "${ECHO_T}none" >&6
5079fi
5080
5081
5082
5083
5084# Check for command to grab the raw symbol name followed by C symbol from nm.
5085echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5086echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5087if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5088  echo $ECHO_N "(cached) $ECHO_C" >&6
5089else
5090
5091# These are sane defaults that work on at least a few old systems.
5092# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5093
5094# Character class describing NM global symbol codes.
5095symcode='[BCDEGRST]'
5096
5097# Regexp to match symbols that can be accessed directly from C.
5098sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5099
5100# Transform the above into a raw symbol and a C symbol.
5101symxfrm='\1 \2\3 \3'
5102
5103# Transform an extracted symbol line into a proper C declaration
5104lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5105
5106# Transform an extracted symbol line into symbol name and symbol address
5107lt_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'"
5108
5109# Define system-specific variables.
5110case $host_os in
5111aix*)
5112  symcode='[BCDT]'
5113  ;;
5114cygwin* | mingw* | pw32*)
5115  symcode='[ABCDGISTW]'
5116  ;;
5117hpux*) # Its linker distinguishes data from code symbols
5118  if test "$host_cpu" = ia64; then
5119    symcode='[ABCDEGRST]'
5120  fi
5121  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5122  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'"
5123  ;;
5124irix* | nonstopux*)
5125  symcode='[BCDEGRST]'
5126  ;;
5127osf*)
5128  symcode='[BCDEGQRST]'
5129  ;;
5130solaris* | sysv5*)
5131  symcode='[BDT]'
5132  ;;
5133sysv4)
5134  symcode='[DFNSTU]'
5135  ;;
5136esac
5137
5138# Handle CRLF in mingw tool chain
5139opt_cr=
5140case $build_os in
5141mingw*)
5142  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5143  ;;
5144esac
5145
5146# If we're using GNU nm, then use its standard symbol codes.
5147case `$NM -V 2>&1` in
5148*GNU* | *'with BFD'*)
5149  symcode='[ABCDGISTW]' ;;
5150esac
5151
5152# Try without a prefix undercore, then with it.
5153for ac_symprfx in "" "_"; do
5154
5155  # Write the raw and C identifiers.
5156  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5157
5158  # Check to see that the pipe works correctly.
5159  pipe_works=no
5160
5161  rm -f conftest*
5162  cat > conftest.$ac_ext <<EOF
5163#ifdef __cplusplus
5164extern "C" {
5165#endif
5166char nm_test_var;
5167void nm_test_func(){}
5168#ifdef __cplusplus
5169}
5170#endif
5171int main(){nm_test_var='a';nm_test_func();return(0);}
5172EOF
5173
5174  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5175  (eval $ac_compile) 2>&5
5176  ac_status=$?
5177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178  (exit $ac_status); }; then
5179    # Now try to grab the symbols.
5180    nlist=conftest.nm
5181    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5182  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5183  ac_status=$?
5184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185  (exit $ac_status); } && test -s "$nlist"; then
5186      # Try sorting and uniquifying the output.
5187      if sort "$nlist" | uniq > "$nlist"T; then
5188	mv -f "$nlist"T "$nlist"
5189      else
5190	rm -f "$nlist"T
5191      fi
5192
5193      # Make sure that we snagged all the symbols we need.
5194      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5195	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5196	  cat <<EOF > conftest.$ac_ext
5197#ifdef __cplusplus
5198extern "C" {
5199#endif
5200
5201EOF
5202	  # Now generate the symbol file.
5203	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5204
5205	  cat <<EOF >> conftest.$ac_ext
5206#if defined (__STDC__) && __STDC__
5207# define lt_ptr_t void *
5208#else
5209# define lt_ptr_t char *
5210# define const
5211#endif
5212
5213/* The mapping between symbol names and symbols. */
5214const struct {
5215  const char *name;
5216  lt_ptr_t address;
5217}
5218lt_preloaded_symbols[] =
5219{
5220EOF
5221	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5222	  cat <<\EOF >> conftest.$ac_ext
5223  {0, (lt_ptr_t) 0}
5224};
5225
5226#ifdef __cplusplus
5227}
5228#endif
5229EOF
5230	  # Now try linking the two files.
5231	  mv conftest.$ac_objext conftstm.$ac_objext
5232	  lt_save_LIBS="$LIBS"
5233	  lt_save_CFLAGS="$CFLAGS"
5234	  LIBS="conftstm.$ac_objext"
5235	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5236	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5237  (eval $ac_link) 2>&5
5238  ac_status=$?
5239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5241	    pipe_works=yes
5242	  fi
5243	  LIBS="$lt_save_LIBS"
5244	  CFLAGS="$lt_save_CFLAGS"
5245	else
5246	  echo "cannot find nm_test_func in $nlist" >&5
5247	fi
5248      else
5249	echo "cannot find nm_test_var in $nlist" >&5
5250      fi
5251    else
5252      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5253    fi
5254  else
5255    echo "$progname: failed program was:" >&5
5256    cat conftest.$ac_ext >&5
5257  fi
5258  rm -f conftest* conftst*
5259
5260  # Do not use the global_symbol_pipe unless it works.
5261  if test "$pipe_works" = yes; then
5262    break
5263  else
5264    lt_cv_sys_global_symbol_pipe=
5265  fi
5266done
5267
5268fi
5269
5270if test -z "$lt_cv_sys_global_symbol_pipe"; then
5271  lt_cv_sys_global_symbol_to_cdecl=
5272fi
5273if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5274  echo "$as_me:$LINENO: result: failed" >&5
5275echo "${ECHO_T}failed" >&6
5276else
5277  echo "$as_me:$LINENO: result: ok" >&5
5278echo "${ECHO_T}ok" >&6
5279fi
5280
5281echo "$as_me:$LINENO: checking for objdir" >&5
5282echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5283if test "${lt_cv_objdir+set}" = set; then
5284  echo $ECHO_N "(cached) $ECHO_C" >&6
5285else
5286  rm -f .libs 2>/dev/null
5287mkdir .libs 2>/dev/null
5288if test -d .libs; then
5289  lt_cv_objdir=.libs
5290else
5291  # MS-DOS does not allow filenames that begin with a dot.
5292  lt_cv_objdir=_libs
5293fi
5294rmdir .libs 2>/dev/null
5295fi
5296echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5297echo "${ECHO_T}$lt_cv_objdir" >&6
5298objdir=$lt_cv_objdir
5299
5300
5301
5302
5303
5304case $host_os in
5305aix3*)
5306  # AIX sometimes has problems with the GCC collect2 program.  For some
5307  # reason, if we set the COLLECT_NAMES environment variable, the problems
5308  # vanish in a puff of smoke.
5309  if test "X${COLLECT_NAMES+set}" != Xset; then
5310    COLLECT_NAMES=
5311    export COLLECT_NAMES
5312  fi
5313  ;;
5314esac
5315
5316# Sed substitution that helps us do robust quoting.  It backslashifies
5317# metacharacters that are still active within double-quoted strings.
5318Xsed='sed -e s/^X//'
5319sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5320
5321# Same as above, but do not quote variable references.
5322double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5323
5324# Sed substitution to delay expansion of an escaped shell variable in a
5325# double_quote_subst'ed string.
5326delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5327
5328# Sed substitution to avoid accidental globbing in evaled expressions
5329no_glob_subst='s/\*/\\\*/g'
5330
5331# Constants:
5332rm="rm -f"
5333
5334# Global variables:
5335default_ofile=mklib
5336can_build_shared=yes
5337
5338# All known linkers require a `.a' archive for static linking (except M$VC,
5339# which needs '.lib').
5340libext=a
5341ltmain="$ac_aux_dir/ltmain.sh"
5342ofile="$default_ofile"
5343with_gnu_ld="$lt_cv_prog_gnu_ld"
5344
5345if test -n "$ac_tool_prefix"; then
5346  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5347set dummy ${ac_tool_prefix}ar; ac_word=$2
5348echo "$as_me:$LINENO: checking for $ac_word" >&5
5349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5350if test "${ac_cv_prog_AR+set}" = set; then
5351  echo $ECHO_N "(cached) $ECHO_C" >&6
5352else
5353  if test -n "$AR"; then
5354  ac_cv_prog_AR="$AR" # Let the user override the test.
5355else
5356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357for as_dir in $PATH
5358do
5359  IFS=$as_save_IFS
5360  test -z "$as_dir" && as_dir=.
5361  for ac_exec_ext in '' $ac_executable_extensions; do
5362  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5363    ac_cv_prog_AR="${ac_tool_prefix}ar"
5364    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5365    break 2
5366  fi
5367done
5368done
5369
5370fi
5371fi
5372AR=$ac_cv_prog_AR
5373if test -n "$AR"; then
5374  echo "$as_me:$LINENO: result: $AR" >&5
5375echo "${ECHO_T}$AR" >&6
5376else
5377  echo "$as_me:$LINENO: result: no" >&5
5378echo "${ECHO_T}no" >&6
5379fi
5380
5381fi
5382if test -z "$ac_cv_prog_AR"; then
5383  ac_ct_AR=$AR
5384  # Extract the first word of "ar", so it can be a program name with args.
5385set dummy ar; ac_word=$2
5386echo "$as_me:$LINENO: checking for $ac_word" >&5
5387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5388if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5389  echo $ECHO_N "(cached) $ECHO_C" >&6
5390else
5391  if test -n "$ac_ct_AR"; then
5392  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5393else
5394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395for as_dir in $PATH
5396do
5397  IFS=$as_save_IFS
5398  test -z "$as_dir" && as_dir=.
5399  for ac_exec_ext in '' $ac_executable_extensions; do
5400  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5401    ac_cv_prog_ac_ct_AR="ar"
5402    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5403    break 2
5404  fi
5405done
5406done
5407
5408  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5409fi
5410fi
5411ac_ct_AR=$ac_cv_prog_ac_ct_AR
5412if test -n "$ac_ct_AR"; then
5413  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5414echo "${ECHO_T}$ac_ct_AR" >&6
5415else
5416  echo "$as_me:$LINENO: result: no" >&5
5417echo "${ECHO_T}no" >&6
5418fi
5419
5420  AR=$ac_ct_AR
5421else
5422  AR="$ac_cv_prog_AR"
5423fi
5424
5425if test -n "$ac_tool_prefix"; then
5426  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5427set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5428echo "$as_me:$LINENO: checking for $ac_word" >&5
5429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5430if test "${ac_cv_prog_RANLIB+set}" = set; then
5431  echo $ECHO_N "(cached) $ECHO_C" >&6
5432else
5433  if test -n "$RANLIB"; then
5434  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5435else
5436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437for as_dir in $PATH
5438do
5439  IFS=$as_save_IFS
5440  test -z "$as_dir" && as_dir=.
5441  for ac_exec_ext in '' $ac_executable_extensions; do
5442  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5443    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5444    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5445    break 2
5446  fi
5447done
5448done
5449
5450fi
5451fi
5452RANLIB=$ac_cv_prog_RANLIB
5453if test -n "$RANLIB"; then
5454  echo "$as_me:$LINENO: result: $RANLIB" >&5
5455echo "${ECHO_T}$RANLIB" >&6
5456else
5457  echo "$as_me:$LINENO: result: no" >&5
5458echo "${ECHO_T}no" >&6
5459fi
5460
5461fi
5462if test -z "$ac_cv_prog_RANLIB"; then
5463  ac_ct_RANLIB=$RANLIB
5464  # Extract the first word of "ranlib", so it can be a program name with args.
5465set dummy ranlib; ac_word=$2
5466echo "$as_me:$LINENO: checking for $ac_word" >&5
5467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5468if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5469  echo $ECHO_N "(cached) $ECHO_C" >&6
5470else
5471  if test -n "$ac_ct_RANLIB"; then
5472  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5473else
5474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475for as_dir in $PATH
5476do
5477  IFS=$as_save_IFS
5478  test -z "$as_dir" && as_dir=.
5479  for ac_exec_ext in '' $ac_executable_extensions; do
5480  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5481    ac_cv_prog_ac_ct_RANLIB="ranlib"
5482    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5483    break 2
5484  fi
5485done
5486done
5487
5488  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5489fi
5490fi
5491ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5492if test -n "$ac_ct_RANLIB"; then
5493  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5494echo "${ECHO_T}$ac_ct_RANLIB" >&6
5495else
5496  echo "$as_me:$LINENO: result: no" >&5
5497echo "${ECHO_T}no" >&6
5498fi
5499
5500  RANLIB=$ac_ct_RANLIB
5501else
5502  RANLIB="$ac_cv_prog_RANLIB"
5503fi
5504
5505if test -n "$ac_tool_prefix"; then
5506  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5507set dummy ${ac_tool_prefix}strip; ac_word=$2
5508echo "$as_me:$LINENO: checking for $ac_word" >&5
5509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5510if test "${ac_cv_prog_STRIP+set}" = set; then
5511  echo $ECHO_N "(cached) $ECHO_C" >&6
5512else
5513  if test -n "$STRIP"; then
5514  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5515else
5516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517for as_dir in $PATH
5518do
5519  IFS=$as_save_IFS
5520  test -z "$as_dir" && as_dir=.
5521  for ac_exec_ext in '' $ac_executable_extensions; do
5522  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5523    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5524    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5525    break 2
5526  fi
5527done
5528done
5529
5530fi
5531fi
5532STRIP=$ac_cv_prog_STRIP
5533if test -n "$STRIP"; then
5534  echo "$as_me:$LINENO: result: $STRIP" >&5
5535echo "${ECHO_T}$STRIP" >&6
5536else
5537  echo "$as_me:$LINENO: result: no" >&5
5538echo "${ECHO_T}no" >&6
5539fi
5540
5541fi
5542if test -z "$ac_cv_prog_STRIP"; then
5543  ac_ct_STRIP=$STRIP
5544  # Extract the first word of "strip", so it can be a program name with args.
5545set dummy strip; ac_word=$2
5546echo "$as_me:$LINENO: checking for $ac_word" >&5
5547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5548if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5549  echo $ECHO_N "(cached) $ECHO_C" >&6
5550else
5551  if test -n "$ac_ct_STRIP"; then
5552  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5553else
5554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555for as_dir in $PATH
5556do
5557  IFS=$as_save_IFS
5558  test -z "$as_dir" && as_dir=.
5559  for ac_exec_ext in '' $ac_executable_extensions; do
5560  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5561    ac_cv_prog_ac_ct_STRIP="strip"
5562    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5563    break 2
5564  fi
5565done
5566done
5567
5568  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5569fi
5570fi
5571ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5572if test -n "$ac_ct_STRIP"; then
5573  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5574echo "${ECHO_T}$ac_ct_STRIP" >&6
5575else
5576  echo "$as_me:$LINENO: result: no" >&5
5577echo "${ECHO_T}no" >&6
5578fi
5579
5580  STRIP=$ac_ct_STRIP
5581else
5582  STRIP="$ac_cv_prog_STRIP"
5583fi
5584
5585
5586old_CC="$CC"
5587old_CFLAGS="$CFLAGS"
5588
5589# Set sane defaults for various variables
5590test -z "$AR" && AR=ar
5591test -z "$AR_FLAGS" && AR_FLAGS=cru
5592test -z "$AS" && AS=as
5593test -z "$CC" && CC=cc
5594test -z "$LTCC" && LTCC=$CC
5595test -z "$DLLTOOL" && DLLTOOL=dlltool
5596test -z "$LD" && LD=ld
5597test -z "$LN_S" && LN_S="ln -s"
5598test -z "$MAGIC_CMD" && MAGIC_CMD=file
5599test -z "$NM" && NM=nm
5600test -z "$SED" && SED=sed
5601test -z "$OBJDUMP" && OBJDUMP=objdump
5602test -z "$RANLIB" && RANLIB=:
5603test -z "$STRIP" && STRIP=:
5604test -z "$ac_objext" && ac_objext=o
5605
5606# Determine commands to create old-style static archives.
5607old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5608old_postinstall_cmds='chmod 644 $oldlib'
5609old_postuninstall_cmds=
5610
5611if test -n "$RANLIB"; then
5612  case $host_os in
5613  openbsd*)
5614    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5615    ;;
5616  *)
5617    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5618    ;;
5619  esac
5620  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5621fi
5622
5623# Only perform the check for file, if the check method requires it
5624case $deplibs_check_method in
5625file_magic*)
5626  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5627    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5628echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5629if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5630  echo $ECHO_N "(cached) $ECHO_C" >&6
5631else
5632  case $MAGIC_CMD in
5633[\\/*] |  ?:[\\/]*)
5634  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5635  ;;
5636*)
5637  lt_save_MAGIC_CMD="$MAGIC_CMD"
5638  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5639  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5640  for ac_dir in $ac_dummy; do
5641    IFS="$lt_save_ifs"
5642    test -z "$ac_dir" && ac_dir=.
5643    if test -f $ac_dir/${ac_tool_prefix}file; then
5644      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5645      if test -n "$file_magic_test_file"; then
5646	case $deplibs_check_method in
5647	"file_magic "*)
5648	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5649	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5650	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5651	    $EGREP "$file_magic_regex" > /dev/null; then
5652	    :
5653	  else
5654	    cat <<EOF 1>&2
5655
5656*** Warning: the command libtool uses to detect shared libraries,
5657*** $file_magic_cmd, produces output that libtool cannot recognize.
5658*** The result is that libtool may fail to recognize shared libraries
5659*** as such.  This will affect the creation of libtool libraries that
5660*** depend on shared libraries, but programs linked with such libtool
5661*** libraries will work regardless of this problem.  Nevertheless, you
5662*** may want to report the problem to your system manager and/or to
5663*** bug-libtool@gnu.org
5664
5665EOF
5666	  fi ;;
5667	esac
5668      fi
5669      break
5670    fi
5671  done
5672  IFS="$lt_save_ifs"
5673  MAGIC_CMD="$lt_save_MAGIC_CMD"
5674  ;;
5675esac
5676fi
5677
5678MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5679if test -n "$MAGIC_CMD"; then
5680  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5681echo "${ECHO_T}$MAGIC_CMD" >&6
5682else
5683  echo "$as_me:$LINENO: result: no" >&5
5684echo "${ECHO_T}no" >&6
5685fi
5686
5687if test -z "$lt_cv_path_MAGIC_CMD"; then
5688  if test -n "$ac_tool_prefix"; then
5689    echo "$as_me:$LINENO: checking for file" >&5
5690echo $ECHO_N "checking for file... $ECHO_C" >&6
5691if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5692  echo $ECHO_N "(cached) $ECHO_C" >&6
5693else
5694  case $MAGIC_CMD in
5695[\\/*] |  ?:[\\/]*)
5696  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5697  ;;
5698*)
5699  lt_save_MAGIC_CMD="$MAGIC_CMD"
5700  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5701  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5702  for ac_dir in $ac_dummy; do
5703    IFS="$lt_save_ifs"
5704    test -z "$ac_dir" && ac_dir=.
5705    if test -f $ac_dir/file; then
5706      lt_cv_path_MAGIC_CMD="$ac_dir/file"
5707      if test -n "$file_magic_test_file"; then
5708	case $deplibs_check_method in
5709	"file_magic "*)
5710	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5711	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5712	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5713	    $EGREP "$file_magic_regex" > /dev/null; then
5714	    :
5715	  else
5716	    cat <<EOF 1>&2
5717
5718*** Warning: the command libtool uses to detect shared libraries,
5719*** $file_magic_cmd, produces output that libtool cannot recognize.
5720*** The result is that libtool may fail to recognize shared libraries
5721*** as such.  This will affect the creation of libtool libraries that
5722*** depend on shared libraries, but programs linked with such libtool
5723*** libraries will work regardless of this problem.  Nevertheless, you
5724*** may want to report the problem to your system manager and/or to
5725*** bug-libtool@gnu.org
5726
5727EOF
5728	  fi ;;
5729	esac
5730      fi
5731      break
5732    fi
5733  done
5734  IFS="$lt_save_ifs"
5735  MAGIC_CMD="$lt_save_MAGIC_CMD"
5736  ;;
5737esac
5738fi
5739
5740MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5741if test -n "$MAGIC_CMD"; then
5742  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5743echo "${ECHO_T}$MAGIC_CMD" >&6
5744else
5745  echo "$as_me:$LINENO: result: no" >&5
5746echo "${ECHO_T}no" >&6
5747fi
5748
5749  else
5750    MAGIC_CMD=:
5751  fi
5752fi
5753
5754  fi
5755  ;;
5756esac
5757
5758enable_dlopen=no
5759enable_win32_dll=no
5760
5761# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5762if test "${enable_libtool_lock+set}" = set; then
5763  enableval="$enable_libtool_lock"
5764
5765fi;
5766test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5767
5768
5769# Check whether --with-pic or --without-pic was given.
5770if test "${with_pic+set}" = set; then
5771  withval="$with_pic"
5772  pic_mode="$withval"
5773else
5774  pic_mode=default
5775fi;
5776test -z "$pic_mode" && pic_mode=default
5777
5778# Use C for the default configuration in the libtool script
5779tagname=
5780lt_save_CC="$CC"
5781ac_ext=c
5782ac_cpp='$CPP $CPPFLAGS'
5783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785ac_compiler_gnu=$ac_cv_c_compiler_gnu
5786
5787
5788# Source file extension for C test sources.
5789ac_ext=c
5790
5791# Object file extension for compiled C test sources.
5792objext=o
5793objext=$objext
5794
5795# Code to be used in simple compile tests
5796lt_simple_compile_test_code="int some_variable = 0;\n"
5797
5798# Code to be used in simple link tests
5799lt_simple_link_test_code='int main(){return(0);}\n'
5800
5801
5802# If no C compiler was specified, use CC.
5803LTCC=${LTCC-"$CC"}
5804
5805# Allow CC to be a program name with arguments.
5806compiler=$CC
5807
5808
5809#
5810# Check for any special shared library compilation flags.
5811#
5812lt_prog_cc_shlib=
5813if test "$GCC" = no; then
5814  case $host_os in
5815  sco3.2v5*)
5816    lt_prog_cc_shlib='-belf'
5817    ;;
5818  esac
5819fi
5820if test -n "$lt_prog_cc_shlib"; then
5821  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5822echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5823  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
5824  else
5825    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5826echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5827    lt_cv_prog_cc_can_build_shared=no
5828  fi
5829fi
5830
5831
5832#
5833# Check to make sure the static flag actually works.
5834#
5835echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5836echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5837if test "${lt_prog_compiler_static_works+set}" = set; then
5838  echo $ECHO_N "(cached) $ECHO_C" >&6
5839else
5840  lt_prog_compiler_static_works=no
5841   save_LDFLAGS="$LDFLAGS"
5842   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5843   printf "$lt_simple_link_test_code" > conftest.$ac_ext
5844   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5845     # The compiler can only warn and ignore the option if not recognized
5846     # So say no if there are warnings
5847     if test -s conftest.err; then
5848       # Append any errors to the config.log.
5849       cat conftest.err 1>&5
5850     else
5851       lt_prog_compiler_static_works=yes
5852     fi
5853   fi
5854   $rm conftest*
5855   LDFLAGS="$save_LDFLAGS"
5856
5857fi
5858echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5859echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5860
5861if test x"$lt_prog_compiler_static_works" = xyes; then
5862    :
5863else
5864    lt_prog_compiler_static=
5865fi
5866
5867
5868
5869
5870lt_prog_compiler_no_builtin_flag=
5871
5872if test "$GCC" = yes; then
5873  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5874
5875  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5876echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5877if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5878  echo $ECHO_N "(cached) $ECHO_C" >&6
5879else
5880  lt_cv_prog_compiler_rtti_exceptions=no
5881  ac_outfile=conftest.$ac_objext
5882   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5883   lt_compiler_flag="-fno-rtti -fno-exceptions"
5884   # Insert the option either (1) after the last *FLAGS variable, or
5885   # (2) before a word containing "conftest.", or (3) at the end.
5886   # Note that $ac_compile itself does not contain backslashes and begins
5887   # with a dollar sign (not a hyphen), so the echo should work correctly.
5888   # The option is referenced via a variable to avoid confusing sed.
5889   lt_compile=`echo "$ac_compile" | $SED \
5890   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5891   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5892   -e 's:$: $lt_compiler_flag:'`
5893   (eval echo "\"\$as_me:5893: $lt_compile\"" >&5)
5894   (eval "$lt_compile" 2>conftest.err)
5895   ac_status=$?
5896   cat conftest.err >&5
5897   echo "$as_me:5897: \$? = $ac_status" >&5
5898   if (exit $ac_status) && test -s "$ac_outfile"; then
5899     # The compiler can only warn and ignore the option if not recognized
5900     # So say no if there are warnings
5901     if test ! -s conftest.err; then
5902       lt_cv_prog_compiler_rtti_exceptions=yes
5903     fi
5904   fi
5905   $rm conftest*
5906
5907fi
5908echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5909echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5910
5911if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5912    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5913else
5914    :
5915fi
5916
5917fi
5918
5919lt_prog_compiler_wl=
5920lt_prog_compiler_pic=
5921lt_prog_compiler_static=
5922
5923echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5924echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5925
5926  if test "$GCC" = yes; then
5927    lt_prog_compiler_wl='-Wl,'
5928    lt_prog_compiler_static='-static'
5929
5930    case $host_os in
5931      aix*)
5932      # All AIX code is PIC.
5933      if test "$host_cpu" = ia64; then
5934	# AIX 5 now supports IA64 processor
5935	lt_prog_compiler_static='-Bstatic'
5936      fi
5937      ;;
5938
5939    amigaos*)
5940      # FIXME: we need at least 68020 code to build shared libraries, but
5941      # adding the `-m68020' flag to GCC prevents building anything better,
5942      # like `-m68040'.
5943      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5944      ;;
5945
5946    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5947      # PIC is the default for these OSes.
5948      ;;
5949
5950    mingw* | pw32* | os2*)
5951      # This hack is so that the source file can tell whether it is being
5952      # built for inclusion in a dll (and should export symbols for example).
5953      lt_prog_compiler_pic='-DDLL_EXPORT'
5954      ;;
5955
5956    darwin* | rhapsody*)
5957      # PIC is the default on this platform
5958      # Common symbols not allowed in MH_DYLIB files
5959      lt_prog_compiler_pic='-fno-common'
5960      ;;
5961
5962    msdosdjgpp*)
5963      # Just because we use GCC doesn't mean we suddenly get shared libraries
5964      # on systems that don't support them.
5965      lt_prog_compiler_can_build_shared=no
5966      enable_shared=no
5967      ;;
5968
5969    sysv4*MP*)
5970      if test -d /usr/nec; then
5971	lt_prog_compiler_pic=-Kconform_pic
5972      fi
5973      ;;
5974
5975    hpux*)
5976      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5977      # not for PA HP-UX.
5978      case "$host_cpu" in
5979      hppa*64*|ia64*)
5980	# +Z the default
5981	;;
5982      *)
5983	lt_prog_compiler_pic='-fPIC'
5984	;;
5985      esac
5986      ;;
5987
5988    *)
5989      lt_prog_compiler_pic='-fPIC'
5990      ;;
5991    esac
5992  else
5993    # PORTME Check for flag to pass linker flags through the system compiler.
5994    case $host_os in
5995    aix*)
5996      lt_prog_compiler_wl='-Wl,'
5997      if test "$host_cpu" = ia64; then
5998	# AIX 5 now supports IA64 processor
5999	lt_prog_compiler_static='-Bstatic'
6000      else
6001	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6002      fi
6003      ;;
6004
6005    mingw* | pw32* | os2*)
6006      # This hack is so that the source file can tell whether it is being
6007      # built for inclusion in a dll (and should export symbols for example).
6008      lt_prog_compiler_pic='-DDLL_EXPORT'
6009      ;;
6010
6011    hpux9* | hpux10* | hpux11*)
6012      lt_prog_compiler_wl='-Wl,'
6013      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6014      # not for PA HP-UX.
6015      case "$host_cpu" in
6016      hppa*64*|ia64*)
6017	# +Z the default
6018	;;
6019      *)
6020	lt_prog_compiler_pic='+Z'
6021	;;
6022      esac
6023      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6024      lt_prog_compiler_static='${wl}-a ${wl}archive'
6025      ;;
6026
6027    irix5* | irix6* | nonstopux*)
6028      lt_prog_compiler_wl='-Wl,'
6029      # PIC (with -KPIC) is the default.
6030      lt_prog_compiler_static='-non_shared'
6031      ;;
6032
6033    newsos6)
6034      lt_prog_compiler_pic='-KPIC'
6035      lt_prog_compiler_static='-Bstatic'
6036      ;;
6037
6038    linux*)
6039      case $CC in
6040      icc|ecc)
6041	lt_prog_compiler_wl='-Wl,'
6042	lt_prog_compiler_pic='-KPIC'
6043	lt_prog_compiler_static='-static'
6044        ;;
6045      ccc)
6046        lt_prog_compiler_wl='-Wl,'
6047        # All Alpha code is PIC.
6048        lt_prog_compiler_static='-non_shared'
6049        ;;
6050      esac
6051      ;;
6052
6053    osf3* | osf4* | osf5*)
6054      lt_prog_compiler_wl='-Wl,'
6055      # All OSF/1 code is PIC.
6056      lt_prog_compiler_static='-non_shared'
6057      ;;
6058
6059    sco3.2v5*)
6060      lt_prog_compiler_pic='-Kpic'
6061      lt_prog_compiler_static='-dn'
6062      ;;
6063
6064    solaris*)
6065      lt_prog_compiler_wl='-Wl,'
6066      lt_prog_compiler_pic='-KPIC'
6067      lt_prog_compiler_static='-Bstatic'
6068      ;;
6069
6070    sunos4*)
6071      lt_prog_compiler_wl='-Qoption ld '
6072      lt_prog_compiler_pic='-PIC'
6073      lt_prog_compiler_static='-Bstatic'
6074      ;;
6075
6076    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6077      lt_prog_compiler_wl='-Wl,'
6078      lt_prog_compiler_pic='-KPIC'
6079      lt_prog_compiler_static='-Bstatic'
6080      ;;
6081
6082    sysv4*MP*)
6083      if test -d /usr/nec ;then
6084	lt_prog_compiler_pic='-Kconform_pic'
6085	lt_prog_compiler_static='-Bstatic'
6086      fi
6087      ;;
6088
6089    uts4*)
6090      lt_prog_compiler_pic='-pic'
6091      lt_prog_compiler_static='-Bstatic'
6092      ;;
6093
6094    *)
6095      lt_prog_compiler_can_build_shared=no
6096      ;;
6097    esac
6098  fi
6099
6100echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6101echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6102
6103#
6104# Check to make sure the PIC flag actually works.
6105#
6106if test -n "$lt_prog_compiler_pic"; then
6107  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6108echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6109if test "${lt_prog_compiler_pic_works+set}" = set; then
6110  echo $ECHO_N "(cached) $ECHO_C" >&6
6111else
6112  lt_prog_compiler_pic_works=no
6113  ac_outfile=conftest.$ac_objext
6114   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6115   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6116   # Insert the option either (1) after the last *FLAGS variable, or
6117   # (2) before a word containing "conftest.", or (3) at the end.
6118   # Note that $ac_compile itself does not contain backslashes and begins
6119   # with a dollar sign (not a hyphen), so the echo should work correctly.
6120   # The option is referenced via a variable to avoid confusing sed.
6121   lt_compile=`echo "$ac_compile" | $SED \
6122   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6123   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6124   -e 's:$: $lt_compiler_flag:'`
6125   (eval echo "\"\$as_me:6125: $lt_compile\"" >&5)
6126   (eval "$lt_compile" 2>conftest.err)
6127   ac_status=$?
6128   cat conftest.err >&5
6129   echo "$as_me:6129: \$? = $ac_status" >&5
6130   if (exit $ac_status) && test -s "$ac_outfile"; then
6131     # The compiler can only warn and ignore the option if not recognized
6132     # So say no if there are warnings
6133     if test ! -s conftest.err; then
6134       lt_prog_compiler_pic_works=yes
6135     fi
6136   fi
6137   $rm conftest*
6138
6139fi
6140echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6141echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6142
6143if test x"$lt_prog_compiler_pic_works" = xyes; then
6144    case $lt_prog_compiler_pic in
6145     "" | " "*) ;;
6146     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6147     esac
6148else
6149    lt_prog_compiler_pic=
6150     lt_prog_compiler_can_build_shared=no
6151fi
6152
6153fi
6154case "$host_os" in
6155  # For platforms which do not support PIC, -DPIC is meaningless:
6156  *djgpp*)
6157    lt_prog_compiler_pic=
6158    ;;
6159  *)
6160    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6161    ;;
6162esac
6163
6164echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6165echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6166if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6167  echo $ECHO_N "(cached) $ECHO_C" >&6
6168else
6169  lt_cv_prog_compiler_c_o=no
6170   $rm -r conftest 2>/dev/null
6171   mkdir conftest
6172   cd conftest
6173   mkdir out
6174   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6175
6176   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6177   # that will create temporary files in the current directory regardless of
6178   # the output directory.  Thus, making CWD read-only will cause this test
6179   # to fail, enabling locking or at least warning the user not to do parallel
6180   # builds.
6181   chmod -w .
6182
6183   lt_compiler_flag="-o out/conftest2.$ac_objext"
6184   # Insert the option either (1) after the last *FLAGS variable, or
6185   # (2) before a word containing "conftest.", or (3) at the end.
6186   # Note that $ac_compile itself does not contain backslashes and begins
6187   # with a dollar sign (not a hyphen), so the echo should work correctly.
6188   lt_compile=`echo "$ac_compile" | $SED \
6189   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6190   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6191   -e 's:$: $lt_compiler_flag:'`
6192   (eval echo "\"\$as_me:6192: $lt_compile\"" >&5)
6193   (eval "$lt_compile" 2>out/conftest.err)
6194   ac_status=$?
6195   cat out/conftest.err >&5
6196   echo "$as_me:6196: \$? = $ac_status" >&5
6197   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6198   then
6199     # The compiler can only warn and ignore the option if not recognized
6200     # So say no if there are warnings
6201     if test ! -s out/conftest.err; then
6202       lt_cv_prog_compiler_c_o=yes
6203     fi
6204   fi
6205   chmod u+w .
6206   $rm conftest* out/*
6207   rmdir out
6208   cd ..
6209   rmdir conftest
6210   $rm conftest*
6211
6212fi
6213echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6214echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6215
6216
6217hard_links="nottested"
6218if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6219  # do not overwrite the value of need_locks provided by the user
6220  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6221echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6222  hard_links=yes
6223  $rm conftest*
6224  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6225  touch conftest.a
6226  ln conftest.a conftest.b 2>&5 || hard_links=no
6227  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6228  echo "$as_me:$LINENO: result: $hard_links" >&5
6229echo "${ECHO_T}$hard_links" >&6
6230  if test "$hard_links" = no; then
6231    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6232echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6233    need_locks=warn
6234  fi
6235else
6236  need_locks=no
6237fi
6238
6239echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6240echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6241
6242  runpath_var=
6243  allow_undefined_flag=
6244  enable_shared_with_static_runtimes=no
6245  archive_cmds=
6246  archive_expsym_cmds=
6247  old_archive_From_new_cmds=
6248  old_archive_from_expsyms_cmds=
6249  export_dynamic_flag_spec=
6250  whole_archive_flag_spec=
6251  thread_safe_flag_spec=
6252  hardcode_libdir_flag_spec=
6253  hardcode_libdir_flag_spec_ld=
6254  hardcode_libdir_separator=
6255  hardcode_direct=no
6256  hardcode_minus_L=no
6257  hardcode_shlibpath_var=unsupported
6258  link_all_deplibs=unknown
6259  hardcode_automatic=no
6260  module_cmds=
6261  module_expsym_cmds=
6262  always_export_symbols=no
6263  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6264  # include_expsyms should be a list of space-separated symbols to be *always*
6265  # included in the symbol list
6266  include_expsyms=
6267  # exclude_expsyms can be an extended regexp of symbols to exclude
6268  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6269  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6270  # as well as any symbol that contains `d'.
6271  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6272  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6273  # platforms (ab)use it in PIC code, but their linkers get confused if
6274  # the symbol is explicitly referenced.  Since portable code cannot
6275  # rely on this symbol name, it's probably fine to never include it in
6276  # preloaded symbol tables.
6277  extract_expsyms_cmds=
6278
6279  case $host_os in
6280  cygwin* | mingw* | pw32*)
6281    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6282    # When not using gcc, we currently assume that we are using
6283    # Microsoft Visual C++.
6284    if test "$GCC" != yes; then
6285      with_gnu_ld=no
6286    fi
6287    ;;
6288  openbsd*)
6289    with_gnu_ld=no
6290    ;;
6291  esac
6292
6293  ld_shlibs=yes
6294  if test "$with_gnu_ld" = yes; then
6295    # If archive_cmds runs LD, not CC, wlarc should be empty
6296    wlarc='${wl}'
6297
6298    # See if GNU ld supports shared libraries.
6299    case $host_os in
6300    aix3* | aix4* | aix5*)
6301      # On AIX/PPC, the GNU linker is very broken
6302      if test "$host_cpu" != ia64; then
6303	ld_shlibs=no
6304	cat <<EOF 1>&2
6305
6306*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6307*** to be unable to reliably create shared libraries on AIX.
6308*** Therefore, libtool is disabling shared libraries support.  If you
6309*** really care for shared libraries, you may want to modify your PATH
6310*** so that a non-GNU linker is found, and then restart.
6311
6312EOF
6313      fi
6314      ;;
6315
6316    amigaos*)
6317      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)'
6318      hardcode_libdir_flag_spec='-L$libdir'
6319      hardcode_minus_L=yes
6320
6321      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6322      # that the semantics of dynamic libraries on AmigaOS, at least up
6323      # to version 4, is to share data among multiple programs linked
6324      # with the same dynamic library.  Since this doesn't match the
6325      # behavior of shared libraries on other platforms, we can't use
6326      # them.
6327      ld_shlibs=no
6328      ;;
6329
6330    beos*)
6331      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6332	allow_undefined_flag=unsupported
6333	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6334	# support --undefined.  This deserves some investigation.  FIXME
6335	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6336      else
6337	ld_shlibs=no
6338      fi
6339      ;;
6340
6341    cygwin* | mingw* | pw32*)
6342      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6343      # as there is no search path for DLLs.
6344      hardcode_libdir_flag_spec='-L$libdir'
6345      allow_undefined_flag=unsupported
6346      always_export_symbols=no
6347      enable_shared_with_static_runtimes=yes
6348      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6349
6350      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6351        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6352	# If the export-symbols file already is a .def file (1st line
6353	# is EXPORTS), use it as is; otherwise, prepend...
6354	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6355	  cp $export_symbols $output_objdir/$soname.def;
6356	else
6357	  echo EXPORTS > $output_objdir/$soname.def;
6358	  cat $export_symbols >> $output_objdir/$soname.def;
6359	fi~
6360	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6361      else
6362	ld_shlibs=no
6363      fi
6364      ;;
6365
6366    netbsd*)
6367      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6368	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6369	wlarc=
6370      else
6371	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6372	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6373      fi
6374      ;;
6375
6376    solaris* | sysv5*)
6377      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6378	ld_shlibs=no
6379	cat <<EOF 1>&2
6380
6381*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6382*** create shared libraries on Solaris systems.  Therefore, libtool
6383*** is disabling shared libraries support.  We urge you to upgrade GNU
6384*** binutils to release 2.9.1 or newer.  Another option is to modify
6385*** your PATH or compiler configuration so that the native linker is
6386*** used, and then restart.
6387
6388EOF
6389      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6390	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6391	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6392      else
6393	ld_shlibs=no
6394      fi
6395      ;;
6396
6397    sunos4*)
6398      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6399      wlarc=
6400      hardcode_direct=yes
6401      hardcode_shlibpath_var=no
6402      ;;
6403
6404    *)
6405      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6406	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6407	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6408      else
6409	ld_shlibs=no
6410      fi
6411      ;;
6412    esac
6413
6414    if test "$ld_shlibs" = yes; then
6415      runpath_var=LD_RUN_PATH
6416      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6417      export_dynamic_flag_spec='${wl}--export-dynamic'
6418      # ancient GNU ld didn't support --whole-archive et. al.
6419      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6420 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6421      else
6422  	whole_archive_flag_spec=
6423      fi
6424    fi
6425  else
6426    # PORTME fill in a description of your system's linker (not GNU ld)
6427    case $host_os in
6428    aix3*)
6429      allow_undefined_flag=unsupported
6430      always_export_symbols=yes
6431      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'
6432      # Note: this linker hardcodes the directories in LIBPATH if there
6433      # are no directories specified by -L.
6434      hardcode_minus_L=yes
6435      if test "$GCC" = yes && test -z "$link_static_flag"; then
6436	# Neither direct hardcoding nor static linking is supported with a
6437	# broken collect2.
6438	hardcode_direct=unsupported
6439      fi
6440      ;;
6441
6442    aix4* | aix5*)
6443      if test "$host_cpu" = ia64; then
6444	# On IA64, the linker does run time linking by default, so we don't
6445	# have to do anything special.
6446	aix_use_runtimelinking=no
6447	exp_sym_flag='-Bexport'
6448	no_entry_flag=""
6449      else
6450	# If we're using GNU nm, then we don't want the "-C" option.
6451	# -C means demangle to AIX nm, but means don't demangle with GNU nm
6452	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6453	  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'
6454	else
6455	  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'
6456	fi
6457	aix_use_runtimelinking=no
6458
6459	# Test if we are trying to use run time linking or normal
6460	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6461	# need to do runtime linking.
6462	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6463	  for ld_flag in $LDFLAGS; do
6464  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6465  	    aix_use_runtimelinking=yes
6466  	    break
6467  	  fi
6468	  done
6469	esac
6470
6471	exp_sym_flag='-bexport'
6472	no_entry_flag='-bnoentry'
6473      fi
6474
6475      # When large executables or shared objects are built, AIX ld can
6476      # have problems creating the table of contents.  If linking a library
6477      # or program results in "error TOC overflow" add -mminimal-toc to
6478      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6479      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6480
6481      archive_cmds=''
6482      hardcode_direct=yes
6483      hardcode_libdir_separator=':'
6484      link_all_deplibs=yes
6485
6486      if test "$GCC" = yes; then
6487	case $host_os in aix4.012|aix4.012.*)
6488	# We only want to do this on AIX 4.2 and lower, the check
6489	# below for broken collect2 doesn't work under 4.3+
6490	  collect2name=`${CC} -print-prog-name=collect2`
6491	  if test -f "$collect2name" && \
6492  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
6493	  then
6494  	  # We have reworked collect2
6495  	  hardcode_direct=yes
6496	  else
6497  	  # We have old collect2
6498  	  hardcode_direct=unsupported
6499  	  # It fails to find uninstalled libraries when the uninstalled
6500  	  # path is not listed in the libpath.  Setting hardcode_minus_L
6501  	  # to unsupported forces relinking
6502  	  hardcode_minus_L=yes
6503  	  hardcode_libdir_flag_spec='-L$libdir'
6504  	  hardcode_libdir_separator=
6505	  fi
6506	esac
6507	shared_flag='-shared'
6508      else
6509	# not using gcc
6510	if test "$host_cpu" = ia64; then
6511  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6512  	# chokes on -Wl,-G. The following line is correct:
6513	  shared_flag='-G'
6514	else
6515  	if test "$aix_use_runtimelinking" = yes; then
6516	    shared_flag='${wl}-G'
6517	  else
6518	    shared_flag='${wl}-bM:SRE'
6519  	fi
6520	fi
6521      fi
6522
6523      # It seems that -bexpall does not export symbols beginning with
6524      # underscore (_), so it is better to generate a list of symbols to export.
6525      always_export_symbols=yes
6526      if test "$aix_use_runtimelinking" = yes; then
6527	# Warning - without using the other runtime loading flags (-brtl),
6528	# -berok will link without error, but may produce a broken library.
6529	allow_undefined_flag='-berok'
6530       # Determine the default libpath from the value encoded in an empty executable.
6531       cat >conftest.$ac_ext <<_ACEOF
6532#line $LINENO "configure"
6533/* confdefs.h.  */
6534_ACEOF
6535cat confdefs.h >>conftest.$ac_ext
6536cat >>conftest.$ac_ext <<_ACEOF
6537/* end confdefs.h.  */
6538
6539int
6540main ()
6541{
6542
6543  ;
6544  return 0;
6545}
6546_ACEOF
6547rm -f conftest.$ac_objext conftest$ac_exeext
6548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6549  (eval $ac_link) 2>&5
6550  ac_status=$?
6551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552  (exit $ac_status); } &&
6553         { ac_try='test -s conftest$ac_exeext'
6554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555  (eval $ac_try) 2>&5
6556  ac_status=$?
6557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558  (exit $ac_status); }; }; then
6559
6560aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6561}'`
6562# Check for a 64-bit object if we didn't find anything.
6563if 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; }
6564}'`; fi
6565else
6566  echo "$as_me: failed program was:" >&5
6567sed 's/^/| /' conftest.$ac_ext >&5
6568
6569fi
6570rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6571if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6572
6573       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6574	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"
6575       else
6576	if test "$host_cpu" = ia64; then
6577	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6578	  allow_undefined_flag="-z nodefs"
6579	  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"
6580	else
6581	 # Determine the default libpath from the value encoded in an empty executable.
6582	 cat >conftest.$ac_ext <<_ACEOF
6583#line $LINENO "configure"
6584/* confdefs.h.  */
6585_ACEOF
6586cat confdefs.h >>conftest.$ac_ext
6587cat >>conftest.$ac_ext <<_ACEOF
6588/* end confdefs.h.  */
6589
6590int
6591main ()
6592{
6593
6594  ;
6595  return 0;
6596}
6597_ACEOF
6598rm -f conftest.$ac_objext conftest$ac_exeext
6599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6600  (eval $ac_link) 2>&5
6601  ac_status=$?
6602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603  (exit $ac_status); } &&
6604         { ac_try='test -s conftest$ac_exeext'
6605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606  (eval $ac_try) 2>&5
6607  ac_status=$?
6608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609  (exit $ac_status); }; }; then
6610
6611aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6612}'`
6613# Check for a 64-bit object if we didn't find anything.
6614if 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; }
6615}'`; fi
6616else
6617  echo "$as_me: failed program was:" >&5
6618sed 's/^/| /' conftest.$ac_ext >&5
6619
6620fi
6621rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6622if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6623
6624	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6625	  # Warning - without using the other run time loading flags,
6626	  # -berok will link without error, but may produce a broken library.
6627	  no_undefined_flag=' ${wl}-bernotok'
6628	  allow_undefined_flag=' ${wl}-berok'
6629	  # -bexpall does not export symbols beginning with underscore (_)
6630	  always_export_symbols=yes
6631	  # Exported symbols can be pulled into shared objects from archives
6632	  whole_archive_flag_spec=' '
6633	  archive_cmds_need_lc=yes
6634	  # This is similar to how AIX traditionally builds it's shared libraries.
6635	  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'
6636	fi
6637      fi
6638      ;;
6639
6640    amigaos*)
6641      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)'
6642      hardcode_libdir_flag_spec='-L$libdir'
6643      hardcode_minus_L=yes
6644      # see comment about different semantics on the GNU ld section
6645      ld_shlibs=no
6646      ;;
6647
6648    bsdi4*)
6649      export_dynamic_flag_spec=-rdynamic
6650      ;;
6651
6652    cygwin* | mingw* | pw32*)
6653      # When not using gcc, we currently assume that we are using
6654      # Microsoft Visual C++.
6655      # hardcode_libdir_flag_spec is actually meaningless, as there is
6656      # no search path for DLLs.
6657      hardcode_libdir_flag_spec=' '
6658      allow_undefined_flag=unsupported
6659      # Tell ltmain to make .lib files, not .a files.
6660      libext=lib
6661      # Tell ltmain to make .dll files, not .so files.
6662      shrext=".dll"
6663      # FIXME: Setting linknames here is a bad hack.
6664      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6665      # The linker will automatically build a .lib file if we build a DLL.
6666      old_archive_From_new_cmds='true'
6667      # FIXME: Should let the user specify the lib program.
6668      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6669      fix_srcfile_path='`cygpath -w "$srcfile"`'
6670      enable_shared_with_static_runtimes=yes
6671      ;;
6672
6673    darwin* | rhapsody*)
6674    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6675      archive_cmds_need_lc=no
6676      case "$host_os" in
6677      rhapsody* | darwin1.[012])
6678	allow_undefined_flag='-undefined suppress'
6679	;;
6680      *) # Darwin 1.3 on
6681	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6682	;;
6683      esac
6684      # FIXME: Relying on posixy $() will cause problems for
6685      #        cross-compilation, but unfortunately the echo tests do not
6686      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6687      #	       `"' quotes if we put them in here... so don't!
6688    	lt_int_apple_cc_single_mod=no
6689    	output_verbose_link_cmd='echo'
6690    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6691    	  lt_int_apple_cc_single_mod=yes
6692    	fi
6693    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6694    	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6695    	else
6696        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'
6697      fi
6698      module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6699      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6700        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6701          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}'
6702        else
6703          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}'
6704        fi
6705          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}'
6706      hardcode_direct=no
6707      hardcode_automatic=yes
6708      hardcode_shlibpath_var=unsupported
6709      whole_archive_flag_spec='-all_load $convenience'
6710      link_all_deplibs=yes
6711    fi
6712      ;;
6713
6714    dgux*)
6715      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6716      hardcode_libdir_flag_spec='-L$libdir'
6717      hardcode_shlibpath_var=no
6718      ;;
6719
6720    freebsd1*)
6721      ld_shlibs=no
6722      ;;
6723
6724    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6725    # support.  Future versions do this automatically, but an explicit c++rt0.o
6726    # does not break anything, and helps significantly (at the cost of a little
6727    # extra space).
6728    freebsd2.2*)
6729      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6730      hardcode_libdir_flag_spec='-R$libdir'
6731      hardcode_direct=yes
6732      hardcode_shlibpath_var=no
6733      ;;
6734
6735    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6736    freebsd2*)
6737      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6738      hardcode_direct=yes
6739      hardcode_minus_L=yes
6740      hardcode_shlibpath_var=no
6741      ;;
6742
6743    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6744    freebsd*)
6745      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6746      hardcode_libdir_flag_spec='-R$libdir'
6747      hardcode_direct=yes
6748      hardcode_shlibpath_var=no
6749      ;;
6750
6751    hpux9*)
6752      if test "$GCC" = yes; then
6753	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'
6754      else
6755	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'
6756      fi
6757      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6758      hardcode_libdir_separator=:
6759      hardcode_direct=yes
6760
6761      # hardcode_minus_L: Not really in the search PATH,
6762      # but as the default location of the library.
6763      hardcode_minus_L=yes
6764      export_dynamic_flag_spec='${wl}-E'
6765      ;;
6766
6767    hpux10* | hpux11*)
6768      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6769	case "$host_cpu" in
6770	hppa*64*|ia64*)
6771	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6772	  ;;
6773	*)
6774	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6775	  ;;
6776	esac
6777      else
6778	case "$host_cpu" in
6779	hppa*64*|ia64*)
6780	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6781	  ;;
6782	*)
6783	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6784	  ;;
6785	esac
6786      fi
6787      if test "$with_gnu_ld" = no; then
6788	case "$host_cpu" in
6789	hppa*64*)
6790	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6791	  hardcode_libdir_flag_spec_ld='+b $libdir'
6792	  hardcode_libdir_separator=:
6793	  hardcode_direct=no
6794	  hardcode_shlibpath_var=no
6795	  ;;
6796	ia64*)
6797	  hardcode_libdir_flag_spec='-L$libdir'
6798	  hardcode_direct=no
6799	  hardcode_shlibpath_var=no
6800
6801	  # hardcode_minus_L: Not really in the search PATH,
6802	  # but as the default location of the library.
6803	  hardcode_minus_L=yes
6804	  ;;
6805	*)
6806	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6807	  hardcode_libdir_separator=:
6808	  hardcode_direct=yes
6809	  export_dynamic_flag_spec='${wl}-E'
6810
6811	  # hardcode_minus_L: Not really in the search PATH,
6812	  # but as the default location of the library.
6813	  hardcode_minus_L=yes
6814	  ;;
6815	esac
6816      fi
6817      ;;
6818
6819    irix5* | irix6* | nonstopux*)
6820      if test "$GCC" = yes; then
6821	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'
6822      else
6823	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'
6824	hardcode_libdir_flag_spec_ld='-rpath $libdir'
6825      fi
6826      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6827      hardcode_libdir_separator=:
6828      link_all_deplibs=yes
6829      ;;
6830
6831    netbsd*)
6832      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6833	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6834      else
6835	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6836      fi
6837      hardcode_libdir_flag_spec='-R$libdir'
6838      hardcode_direct=yes
6839      hardcode_shlibpath_var=no
6840      ;;
6841
6842    newsos6)
6843      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6844      hardcode_direct=yes
6845      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6846      hardcode_libdir_separator=:
6847      hardcode_shlibpath_var=no
6848      ;;
6849
6850    openbsd*)
6851      hardcode_direct=yes
6852      hardcode_shlibpath_var=no
6853      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6854	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6855	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6856	export_dynamic_flag_spec='${wl}-E'
6857      else
6858       case $host_os in
6859	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6860	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6861	   hardcode_libdir_flag_spec='-R$libdir'
6862	   ;;
6863	 *)
6864	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6865	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6866	   ;;
6867       esac
6868      fi
6869      ;;
6870
6871    os2*)
6872      hardcode_libdir_flag_spec='-L$libdir'
6873      hardcode_minus_L=yes
6874      allow_undefined_flag=unsupported
6875      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'
6876      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6877      ;;
6878
6879    osf3*)
6880      if test "$GCC" = yes; then
6881	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6882	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'
6883      else
6884	allow_undefined_flag=' -expect_unresolved \*'
6885	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'
6886      fi
6887      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6888      hardcode_libdir_separator=:
6889      ;;
6890
6891    osf4* | osf5*)	# as osf3* with the addition of -msym flag
6892      if test "$GCC" = yes; then
6893	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6894	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'
6895	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6896      else
6897	allow_undefined_flag=' -expect_unresolved \*'
6898	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'
6899	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6900	$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'
6901
6902	# Both c and cxx compiler support -rpath directly
6903	hardcode_libdir_flag_spec='-rpath $libdir'
6904      fi
6905      hardcode_libdir_separator=:
6906      ;;
6907
6908    sco3.2v5*)
6909      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6910      hardcode_shlibpath_var=no
6911      export_dynamic_flag_spec='${wl}-Bexport'
6912      runpath_var=LD_RUN_PATH
6913      hardcode_runpath_var=yes
6914      ;;
6915
6916    solaris*)
6917      no_undefined_flag=' -z text'
6918      if test "$GCC" = yes; then
6919	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6920	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6921	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6922      else
6923	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6924	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6925  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6926      fi
6927      hardcode_libdir_flag_spec='-R$libdir'
6928      hardcode_shlibpath_var=no
6929      case $host_os in
6930      solaris2.[0-5] | solaris2.[0-5].*) ;;
6931      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6932	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6933      esac
6934      link_all_deplibs=yes
6935      ;;
6936
6937    sunos4*)
6938      if test "x$host_vendor" = xsequent; then
6939	# Use $CC to link under sequent, because it throws in some extra .o
6940	# files that make .init and .fini sections work.
6941	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6942      else
6943	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6944      fi
6945      hardcode_libdir_flag_spec='-L$libdir'
6946      hardcode_direct=yes
6947      hardcode_minus_L=yes
6948      hardcode_shlibpath_var=no
6949      ;;
6950
6951    sysv4)
6952      case $host_vendor in
6953	sni)
6954	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6955	  hardcode_direct=yes # is this really true???
6956	;;
6957	siemens)
6958	  ## LD is ld it makes a PLAMLIB
6959	  ## CC just makes a GrossModule.
6960	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6961	  reload_cmds='$CC -r -o $output$reload_objs'
6962	  hardcode_direct=no
6963        ;;
6964	motorola)
6965	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6966	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6967	;;
6968      esac
6969      runpath_var='LD_RUN_PATH'
6970      hardcode_shlibpath_var=no
6971      ;;
6972
6973    sysv4.3*)
6974      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6975      hardcode_shlibpath_var=no
6976      export_dynamic_flag_spec='-Bexport'
6977      ;;
6978
6979    sysv4*MP*)
6980      if test -d /usr/nec; then
6981	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6982	hardcode_shlibpath_var=no
6983	runpath_var=LD_RUN_PATH
6984	hardcode_runpath_var=yes
6985	ld_shlibs=yes
6986      fi
6987      ;;
6988
6989    sysv4.2uw2*)
6990      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6991      hardcode_direct=yes
6992      hardcode_minus_L=no
6993      hardcode_shlibpath_var=no
6994      hardcode_runpath_var=yes
6995      runpath_var=LD_RUN_PATH
6996      ;;
6997
6998   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
6999      no_undefined_flag='${wl}-z ${wl}text'
7000      if test "$GCC" = yes; then
7001	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7002      else
7003	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7004      fi
7005      runpath_var='LD_RUN_PATH'
7006      hardcode_shlibpath_var=no
7007      ;;
7008
7009    sysv5*)
7010      no_undefined_flag=' -z text'
7011      # $CC -shared without GNU ld will not create a library from C++
7012      # object files and a static libstdc++, better avoid it by now
7013      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7014      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7015  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7016      hardcode_libdir_flag_spec=
7017      hardcode_shlibpath_var=no
7018      runpath_var='LD_RUN_PATH'
7019      ;;
7020
7021    uts4*)
7022      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7023      hardcode_libdir_flag_spec='-L$libdir'
7024      hardcode_shlibpath_var=no
7025      ;;
7026
7027    *)
7028      ld_shlibs=no
7029      ;;
7030    esac
7031  fi
7032
7033echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7034echo "${ECHO_T}$ld_shlibs" >&6
7035test "$ld_shlibs" = no && can_build_shared=no
7036
7037variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7038if test "$GCC" = yes; then
7039  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7040fi
7041
7042#
7043# Do we need to explicitly link libc?
7044#
7045case "x$archive_cmds_need_lc" in
7046x|xyes)
7047  # Assume -lc should be added
7048  archive_cmds_need_lc=yes
7049
7050  if test "$enable_shared" = yes && test "$GCC" = yes; then
7051    case $archive_cmds in
7052    *'~'*)
7053      # FIXME: we may have to deal with multi-command sequences.
7054      ;;
7055    '$CC '*)
7056      # Test whether the compiler implicitly links with -lc since on some
7057      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7058      # to ld, don't add -lc before -lgcc.
7059      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7060echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7061      $rm conftest*
7062      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7063
7064      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7065  (eval $ac_compile) 2>&5
7066  ac_status=$?
7067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068  (exit $ac_status); } 2>conftest.err; then
7069        soname=conftest
7070        lib=conftest
7071        libobjs=conftest.$ac_objext
7072        deplibs=
7073        wl=$lt_prog_compiler_wl
7074        compiler_flags=-v
7075        linker_flags=-v
7076        verstring=
7077        output_objdir=.
7078        libname=conftest
7079        lt_save_allow_undefined_flag=$allow_undefined_flag
7080        allow_undefined_flag=
7081        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7082  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7083  ac_status=$?
7084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085  (exit $ac_status); }
7086        then
7087	  archive_cmds_need_lc=no
7088        else
7089	  archive_cmds_need_lc=yes
7090        fi
7091        allow_undefined_flag=$lt_save_allow_undefined_flag
7092      else
7093        cat conftest.err 1>&5
7094      fi
7095      $rm conftest*
7096      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7097echo "${ECHO_T}$archive_cmds_need_lc" >&6
7098      ;;
7099    esac
7100  fi
7101  ;;
7102esac
7103
7104echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7105echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7106hardcode_action=
7107if test -n "$hardcode_libdir_flag_spec" || \
7108   test -n "$runpath_var " || \
7109   test "X$hardcode_automatic"="Xyes" ; then
7110
7111  # We can hardcode non-existant directories.
7112  if test "$hardcode_direct" != no &&
7113     # If the only mechanism to avoid hardcoding is shlibpath_var, we
7114     # have to relink, otherwise we might link with an installed library
7115     # when we should be linking with a yet-to-be-installed one
7116     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7117     test "$hardcode_minus_L" != no; then
7118    # Linking always hardcodes the temporary library directory.
7119    hardcode_action=relink
7120  else
7121    # We can link without hardcoding, and we can hardcode nonexisting dirs.
7122    hardcode_action=immediate
7123  fi
7124else
7125  # We cannot hardcode anything, or else we can only hardcode existing
7126  # directories.
7127  hardcode_action=unsupported
7128fi
7129echo "$as_me:$LINENO: result: $hardcode_action" >&5
7130echo "${ECHO_T}$hardcode_action" >&6
7131
7132if test "$hardcode_action" = relink; then
7133  # Fast installation is not supported
7134  enable_fast_install=no
7135elif test "$shlibpath_overrides_runpath" = yes ||
7136     test "$enable_shared" = no; then
7137  # Fast installation is not necessary
7138  enable_fast_install=needless
7139fi
7140
7141striplib=
7142old_striplib=
7143echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7144echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7145if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7146  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7147  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7148  echo "$as_me:$LINENO: result: yes" >&5
7149echo "${ECHO_T}yes" >&6
7150else
7151# FIXME - insert some real tests, host_os isn't really good enough
7152  case $host_os in
7153   darwin*)
7154       if test -n "$STRIP" ; then
7155         striplib="$STRIP -x"
7156         echo "$as_me:$LINENO: result: yes" >&5
7157echo "${ECHO_T}yes" >&6
7158       else
7159  echo "$as_me:$LINENO: result: no" >&5
7160echo "${ECHO_T}no" >&6
7161fi
7162       ;;
7163   *)
7164  echo "$as_me:$LINENO: result: no" >&5
7165echo "${ECHO_T}no" >&6
7166    ;;
7167  esac
7168fi
7169
7170echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7171echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7172library_names_spec=
7173libname_spec='lib$name'
7174soname_spec=
7175shrext=".so"
7176postinstall_cmds=
7177postuninstall_cmds=
7178finish_cmds=
7179finish_eval=
7180shlibpath_var=
7181shlibpath_overrides_runpath=unknown
7182version_type=none
7183dynamic_linker="$host_os ld.so"
7184sys_lib_dlsearch_path_spec="/lib /usr/lib"
7185if test "$GCC" = yes; then
7186  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7187  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7188    # if the path contains ";" then we assume it to be the separator
7189    # otherwise default to the standard path separator (i.e. ":") - it is
7190    # assumed that no part of a normal pathname contains ";" but that should
7191    # okay in the real world where ";" in dirpaths is itself problematic.
7192    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7193  else
7194    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7195  fi
7196else
7197  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7198fi
7199need_lib_prefix=unknown
7200hardcode_into_libs=no
7201
7202# when you set need_version to no, make sure it does not cause -set_version
7203# flags to be left without arguments
7204need_version=unknown
7205
7206case $host_os in
7207aix3*)
7208  version_type=linux
7209  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7210  shlibpath_var=LIBPATH
7211
7212  # AIX 3 has no versioning support, so we append a major version to the name.
7213  soname_spec='${libname}${release}${shared_ext}$major'
7214  ;;
7215
7216aix4* | aix5*)
7217  version_type=linux
7218  need_lib_prefix=no
7219  need_version=no
7220  hardcode_into_libs=yes
7221  if test "$host_cpu" = ia64; then
7222    # AIX 5 supports IA64
7223    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7224    shlibpath_var=LD_LIBRARY_PATH
7225  else
7226    # With GCC up to 2.95.x, collect2 would create an import file
7227    # for dependence libraries.  The import file would start with
7228    # the line `#! .'.  This would cause the generated library to
7229    # depend on `.', always an invalid library.  This was fixed in
7230    # development snapshots of GCC prior to 3.0.
7231    case $host_os in
7232      aix4 | aix4.[01] | aix4.[01].*)
7233      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7234	   echo ' yes '
7235	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7236	:
7237      else
7238	can_build_shared=no
7239      fi
7240      ;;
7241    esac
7242    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7243    # soname into executable. Probably we can add versioning support to
7244    # collect2, so additional links can be useful in future.
7245    if test "$aix_use_runtimelinking" = yes; then
7246      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7247      # instead of lib<name>.a to let people know that these are not
7248      # typical AIX shared libraries.
7249      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7250    else
7251      # We preserve .a as extension for shared libraries through AIX4.2
7252      # and later when we are not doing run time linking.
7253      library_names_spec='${libname}${release}.a $libname.a'
7254      soname_spec='${libname}${release}${shared_ext}$major'
7255    fi
7256    shlibpath_var=LIBPATH
7257  fi
7258  ;;
7259
7260amigaos*)
7261  library_names_spec='$libname.ixlibrary $libname.a'
7262  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7263  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'
7264  ;;
7265
7266beos*)
7267  library_names_spec='${libname}${shared_ext}'
7268  dynamic_linker="$host_os ld.so"
7269  shlibpath_var=LIBRARY_PATH
7270  ;;
7271
7272bsdi4*)
7273  version_type=linux
7274  need_version=no
7275  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7276  soname_spec='${libname}${release}${shared_ext}$major'
7277  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7278  shlibpath_var=LD_LIBRARY_PATH
7279  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7280  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7281  # the default ld.so.conf also contains /usr/contrib/lib and
7282  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7283  # libtool to hard-code these into programs
7284  ;;
7285
7286cygwin* | mingw* | pw32*)
7287  version_type=windows
7288  shrext=".dll"
7289  need_version=no
7290  need_lib_prefix=no
7291
7292  case $GCC,$host_os in
7293  yes,cygwin* | yes,mingw* | yes,pw32*)
7294    library_names_spec='$libname.dll.a'
7295    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7296    postinstall_cmds='base_file=`basename \${file}`~
7297      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7298      dldir=$destdir/`dirname \$dlpath`~
7299      test -d \$dldir || mkdir -p \$dldir~
7300      $install_prog $dir/$dlname \$dldir/$dlname'
7301    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7302      dlpath=$dir/\$dldll~
7303       $rm \$dlpath'
7304    shlibpath_overrides_runpath=yes
7305
7306    case $host_os in
7307    cygwin*)
7308      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7309      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7310      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7311      ;;
7312    mingw*)
7313      # MinGW DLLs use traditional 'lib' prefix
7314      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7315      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7316      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7317        # It is most probably a Windows format PATH printed by
7318        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7319        # path with ; separators, and with drive letters. We can handle the
7320        # drive letters (cygwin fileutils understands them), so leave them,
7321        # especially as we might pass files found there to a mingw objdump,
7322        # which wouldn't understand a cygwinified path. Ahh.
7323        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7324      else
7325        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7326      fi
7327      ;;
7328    pw32*)
7329      # pw32 DLLs use 'pw' prefix rather than 'lib'
7330      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7331      ;;
7332    esac
7333    ;;
7334
7335  *)
7336    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7337    ;;
7338  esac
7339  dynamic_linker='Win32 ld.exe'
7340  # FIXME: first we should search . and the directory the executable is in
7341  shlibpath_var=PATH
7342  ;;
7343
7344darwin* | rhapsody*)
7345  dynamic_linker="$host_os dyld"
7346  version_type=darwin
7347  need_lib_prefix=no
7348  need_version=no
7349  # FIXME: Relying on posixy $() will cause problems for
7350  #        cross-compilation, but unfortunately the echo tests do not
7351  #        yet detect zsh echo's removal of \ escapes.
7352  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7353  soname_spec='${libname}${release}${major}$shared_ext'
7354  shlibpath_overrides_runpath=yes
7355  shlibpath_var=DYLD_LIBRARY_PATH
7356  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7357  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7358  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7359  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"`
7360  fi
7361  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7362  ;;
7363
7364dgux*)
7365  version_type=linux
7366  need_lib_prefix=no
7367  need_version=no
7368  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7369  soname_spec='${libname}${release}${shared_ext}$major'
7370  shlibpath_var=LD_LIBRARY_PATH
7371  ;;
7372
7373freebsd1*)
7374  dynamic_linker=no
7375  ;;
7376
7377freebsd*)
7378  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7379  version_type=freebsd-$objformat
7380  case $version_type in
7381    freebsd-elf*)
7382      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7383      need_version=no
7384      need_lib_prefix=no
7385      ;;
7386    freebsd-*)
7387      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7388      need_version=yes
7389      ;;
7390  esac
7391  shlibpath_var=LD_LIBRARY_PATH
7392  case $host_os in
7393  freebsd2*)
7394    shlibpath_overrides_runpath=yes
7395    ;;
7396  freebsd3.01* | freebsdelf3.01*)
7397    shlibpath_overrides_runpath=yes
7398    hardcode_into_libs=yes
7399    ;;
7400  *) # from 3.2 on
7401    shlibpath_overrides_runpath=no
7402    hardcode_into_libs=yes
7403    ;;
7404  esac
7405  ;;
7406
7407gnu*)
7408  version_type=linux
7409  need_lib_prefix=no
7410  need_version=no
7411  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7412  soname_spec='${libname}${release}${shared_ext}$major'
7413  shlibpath_var=LD_LIBRARY_PATH
7414  hardcode_into_libs=yes
7415  ;;
7416
7417hpux9* | hpux10* | hpux11*)
7418  # Give a soname corresponding to the major version so that dld.sl refuses to
7419  # link against other versions.
7420  version_type=sunos
7421  need_lib_prefix=no
7422  need_version=no
7423  case "$host_cpu" in
7424  ia64*)
7425    shrext='.so'
7426    hardcode_into_libs=yes
7427    dynamic_linker="$host_os dld.so"
7428    shlibpath_var=LD_LIBRARY_PATH
7429    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7430    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7431    soname_spec='${libname}${release}${shared_ext}$major'
7432    if test "X$HPUX_IA64_MODE" = X32; then
7433      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7434    else
7435      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7436    fi
7437    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7438    ;;
7439   hppa*64*)
7440     shrext='.sl'
7441     hardcode_into_libs=yes
7442     dynamic_linker="$host_os dld.sl"
7443     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7444     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7445     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7446     soname_spec='${libname}${release}${shared_ext}$major'
7447     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7448     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7449     ;;
7450   *)
7451    shrext='.sl'
7452    dynamic_linker="$host_os dld.sl"
7453    shlibpath_var=SHLIB_PATH
7454    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7455    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7456    soname_spec='${libname}${release}${shared_ext}$major'
7457    ;;
7458  esac
7459  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7460  postinstall_cmds='chmod 555 $lib'
7461  ;;
7462
7463irix5* | irix6* | nonstopux*)
7464  case $host_os in
7465    nonstopux*) version_type=nonstopux ;;
7466    *)
7467	if test "$lt_cv_prog_gnu_ld" = yes; then
7468		version_type=linux
7469	else
7470		version_type=irix
7471	fi ;;
7472  esac
7473  need_lib_prefix=no
7474  need_version=no
7475  soname_spec='${libname}${release}${shared_ext}$major'
7476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7477  case $host_os in
7478  irix5* | nonstopux*)
7479    libsuff= shlibsuff=
7480    ;;
7481  *)
7482    case $LD in # libtool.m4 will add one of these switches to LD
7483    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7484      libsuff= shlibsuff= libmagic=32-bit;;
7485    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7486      libsuff=32 shlibsuff=N32 libmagic=N32;;
7487    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7488      libsuff=64 shlibsuff=64 libmagic=64-bit;;
7489    *) libsuff= shlibsuff= libmagic=never-match;;
7490    esac
7491    ;;
7492  esac
7493  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7494  shlibpath_overrides_runpath=no
7495  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7496  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7497  hardcode_into_libs=yes
7498  ;;
7499
7500# No shared lib support for Linux oldld, aout, or coff.
7501linux*oldld* | linux*aout* | linux*coff*)
7502  dynamic_linker=no
7503  ;;
7504
7505# This must be Linux ELF.
7506linux*)
7507  version_type=linux
7508  need_lib_prefix=no
7509  need_version=no
7510  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7511  soname_spec='${libname}${release}${shared_ext}$major'
7512  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7513  shlibpath_var=LD_LIBRARY_PATH
7514  shlibpath_overrides_runpath=no
7515  # This implies no fast_install, which is unacceptable.
7516  # Some rework will be needed to allow for fast_install
7517  # before this can be enabled.
7518  hardcode_into_libs=yes
7519
7520  # We used to test for /lib/ld.so.1 and disable shared libraries on
7521  # powerpc, because MkLinux only supported shared libraries with the
7522  # GNU dynamic linker.  Since this was broken with cross compilers,
7523  # most powerpc-linux boxes support dynamic linking these days and
7524  # people can always --disable-shared, the test was removed, and we
7525  # assume the GNU/Linux dynamic linker is in use.
7526  dynamic_linker='GNU/Linux ld.so'
7527  ;;
7528
7529netbsd*)
7530  version_type=sunos
7531  need_lib_prefix=no
7532  need_version=no
7533  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7534    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7535    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7536    dynamic_linker='NetBSD (a.out) ld.so'
7537  else
7538    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7539    soname_spec='${libname}${release}${shared_ext}$major'
7540    dynamic_linker='NetBSD ld.elf_so'
7541  fi
7542  shlibpath_var=LD_LIBRARY_PATH
7543  shlibpath_overrides_runpath=yes
7544  hardcode_into_libs=yes
7545  ;;
7546
7547newsos6)
7548  version_type=linux
7549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7550  shlibpath_var=LD_LIBRARY_PATH
7551  shlibpath_overrides_runpath=yes
7552  ;;
7553
7554nto-qnx)
7555  version_type=linux
7556  need_lib_prefix=no
7557  need_version=no
7558  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7559  soname_spec='${libname}${release}${shared_ext}$major'
7560  shlibpath_var=LD_LIBRARY_PATH
7561  shlibpath_overrides_runpath=yes
7562  ;;
7563
7564openbsd*)
7565  version_type=sunos
7566  need_lib_prefix=no
7567  need_version=no
7568  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7569  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7570  shlibpath_var=LD_LIBRARY_PATH
7571  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7572    case $host_os in
7573      openbsd2.[89] | openbsd2.[89].*)
7574	shlibpath_overrides_runpath=no
7575	;;
7576      *)
7577	shlibpath_overrides_runpath=yes
7578	;;
7579      esac
7580  else
7581    shlibpath_overrides_runpath=yes
7582  fi
7583  ;;
7584
7585os2*)
7586  libname_spec='$name'
7587  shrext=".dll"
7588  need_lib_prefix=no
7589  library_names_spec='$libname${shared_ext} $libname.a'
7590  dynamic_linker='OS/2 ld.exe'
7591  shlibpath_var=LIBPATH
7592  ;;
7593
7594osf3* | osf4* | osf5*)
7595  version_type=osf
7596  need_lib_prefix=no
7597  need_version=no
7598  soname_spec='${libname}${release}${shared_ext}$major'
7599  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7600  shlibpath_var=LD_LIBRARY_PATH
7601  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7602  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7603  ;;
7604
7605sco3.2v5*)
7606  version_type=osf
7607  soname_spec='${libname}${release}${shared_ext}$major'
7608  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7609  shlibpath_var=LD_LIBRARY_PATH
7610  ;;
7611
7612solaris*)
7613  version_type=linux
7614  need_lib_prefix=no
7615  need_version=no
7616  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7617  soname_spec='${libname}${release}${shared_ext}$major'
7618  shlibpath_var=LD_LIBRARY_PATH
7619  shlibpath_overrides_runpath=yes
7620  hardcode_into_libs=yes
7621  # ldd complains unless libraries are executable
7622  postinstall_cmds='chmod +x $lib'
7623  ;;
7624
7625sunos4*)
7626  version_type=sunos
7627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7628  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7629  shlibpath_var=LD_LIBRARY_PATH
7630  shlibpath_overrides_runpath=yes
7631  if test "$with_gnu_ld" = yes; then
7632    need_lib_prefix=no
7633  fi
7634  need_version=yes
7635  ;;
7636
7637sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7638  version_type=linux
7639  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7640  soname_spec='${libname}${release}${shared_ext}$major'
7641  shlibpath_var=LD_LIBRARY_PATH
7642  case $host_vendor in
7643    sni)
7644      shlibpath_overrides_runpath=no
7645      need_lib_prefix=no
7646      export_dynamic_flag_spec='${wl}-Blargedynsym'
7647      runpath_var=LD_RUN_PATH
7648      ;;
7649    siemens)
7650      need_lib_prefix=no
7651      ;;
7652    motorola)
7653      need_lib_prefix=no
7654      need_version=no
7655      shlibpath_overrides_runpath=no
7656      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7657      ;;
7658  esac
7659  ;;
7660
7661sysv4*MP*)
7662  if test -d /usr/nec ;then
7663    version_type=linux
7664    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7665    soname_spec='$libname${shared_ext}.$major'
7666    shlibpath_var=LD_LIBRARY_PATH
7667  fi
7668  ;;
7669
7670uts4*)
7671  version_type=linux
7672  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7673  soname_spec='${libname}${release}${shared_ext}$major'
7674  shlibpath_var=LD_LIBRARY_PATH
7675  ;;
7676
7677*)
7678  dynamic_linker=no
7679  ;;
7680esac
7681echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7682echo "${ECHO_T}$dynamic_linker" >&6
7683test "$dynamic_linker" = no && can_build_shared=no
7684
7685if test "x$enable_dlopen" != xyes; then
7686  enable_dlopen=unknown
7687  enable_dlopen_self=unknown
7688  enable_dlopen_self_static=unknown
7689else
7690  lt_cv_dlopen=no
7691  lt_cv_dlopen_libs=
7692
7693  case $host_os in
7694  beos*)
7695    lt_cv_dlopen="load_add_on"
7696    lt_cv_dlopen_libs=
7697    lt_cv_dlopen_self=yes
7698    ;;
7699
7700  mingw* | pw32*)
7701    lt_cv_dlopen="LoadLibrary"
7702    lt_cv_dlopen_libs=
7703   ;;
7704
7705  cygwin*)
7706    lt_cv_dlopen="dlopen"
7707    lt_cv_dlopen_libs=
7708   ;;
7709
7710  darwin*)
7711  # if libdl is installed we need to link against it
7712    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7713echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7714if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7715  echo $ECHO_N "(cached) $ECHO_C" >&6
7716else
7717  ac_check_lib_save_LIBS=$LIBS
7718LIBS="-ldl  $LIBS"
7719cat >conftest.$ac_ext <<_ACEOF
7720#line $LINENO "configure"
7721/* confdefs.h.  */
7722_ACEOF
7723cat confdefs.h >>conftest.$ac_ext
7724cat >>conftest.$ac_ext <<_ACEOF
7725/* end confdefs.h.  */
7726
7727/* Override any gcc2 internal prototype to avoid an error.  */
7728#ifdef __cplusplus
7729extern "C"
7730#endif
7731/* We use char because int might match the return type of a gcc2
7732   builtin and then its argument prototype would still apply.  */
7733char dlopen ();
7734int
7735main ()
7736{
7737dlopen ();
7738  ;
7739  return 0;
7740}
7741_ACEOF
7742rm -f conftest.$ac_objext conftest$ac_exeext
7743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7744  (eval $ac_link) 2>&5
7745  ac_status=$?
7746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747  (exit $ac_status); } &&
7748         { ac_try='test -s conftest$ac_exeext'
7749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7750  (eval $ac_try) 2>&5
7751  ac_status=$?
7752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753  (exit $ac_status); }; }; then
7754  ac_cv_lib_dl_dlopen=yes
7755else
7756  echo "$as_me: failed program was:" >&5
7757sed 's/^/| /' conftest.$ac_ext >&5
7758
7759ac_cv_lib_dl_dlopen=no
7760fi
7761rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7762LIBS=$ac_check_lib_save_LIBS
7763fi
7764echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7765echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7766if test $ac_cv_lib_dl_dlopen = yes; then
7767  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7768else
7769
7770    lt_cv_dlopen="dyld"
7771    lt_cv_dlopen_libs=
7772    lt_cv_dlopen_self=yes
7773
7774fi
7775
7776   ;;
7777
7778  *)
7779    echo "$as_me:$LINENO: checking for shl_load" >&5
7780echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7781if test "${ac_cv_func_shl_load+set}" = set; then
7782  echo $ECHO_N "(cached) $ECHO_C" >&6
7783else
7784  cat >conftest.$ac_ext <<_ACEOF
7785#line $LINENO "configure"
7786/* confdefs.h.  */
7787_ACEOF
7788cat confdefs.h >>conftest.$ac_ext
7789cat >>conftest.$ac_ext <<_ACEOF
7790/* end confdefs.h.  */
7791/* System header to define __stub macros and hopefully few prototypes,
7792    which can conflict with char shl_load (); below.
7793    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7794    <limits.h> exists even on freestanding compilers.  */
7795#ifdef __STDC__
7796# include <limits.h>
7797#else
7798# include <assert.h>
7799#endif
7800/* Override any gcc2 internal prototype to avoid an error.  */
7801#ifdef __cplusplus
7802extern "C"
7803{
7804#endif
7805/* We use char because int might match the return type of a gcc2
7806   builtin and then its argument prototype would still apply.  */
7807char shl_load ();
7808/* The GNU C library defines this for functions which it implements
7809    to always fail with ENOSYS.  Some functions are actually named
7810    something starting with __ and the normal name is an alias.  */
7811#if defined (__stub_shl_load) || defined (__stub___shl_load)
7812choke me
7813#else
7814char (*f) () = shl_load;
7815#endif
7816#ifdef __cplusplus
7817}
7818#endif
7819
7820int
7821main ()
7822{
7823return f != shl_load;
7824  ;
7825  return 0;
7826}
7827_ACEOF
7828rm -f conftest.$ac_objext conftest$ac_exeext
7829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7830  (eval $ac_link) 2>&5
7831  ac_status=$?
7832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833  (exit $ac_status); } &&
7834         { ac_try='test -s conftest$ac_exeext'
7835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836  (eval $ac_try) 2>&5
7837  ac_status=$?
7838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839  (exit $ac_status); }; }; then
7840  ac_cv_func_shl_load=yes
7841else
7842  echo "$as_me: failed program was:" >&5
7843sed 's/^/| /' conftest.$ac_ext >&5
7844
7845ac_cv_func_shl_load=no
7846fi
7847rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7848fi
7849echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7850echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7851if test $ac_cv_func_shl_load = yes; then
7852  lt_cv_dlopen="shl_load"
7853else
7854  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7855echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7856if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7857  echo $ECHO_N "(cached) $ECHO_C" >&6
7858else
7859  ac_check_lib_save_LIBS=$LIBS
7860LIBS="-ldld  $LIBS"
7861cat >conftest.$ac_ext <<_ACEOF
7862#line $LINENO "configure"
7863/* confdefs.h.  */
7864_ACEOF
7865cat confdefs.h >>conftest.$ac_ext
7866cat >>conftest.$ac_ext <<_ACEOF
7867/* end confdefs.h.  */
7868
7869/* Override any gcc2 internal prototype to avoid an error.  */
7870#ifdef __cplusplus
7871extern "C"
7872#endif
7873/* We use char because int might match the return type of a gcc2
7874   builtin and then its argument prototype would still apply.  */
7875char shl_load ();
7876int
7877main ()
7878{
7879shl_load ();
7880  ;
7881  return 0;
7882}
7883_ACEOF
7884rm -f conftest.$ac_objext conftest$ac_exeext
7885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7886  (eval $ac_link) 2>&5
7887  ac_status=$?
7888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889  (exit $ac_status); } &&
7890         { ac_try='test -s conftest$ac_exeext'
7891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892  (eval $ac_try) 2>&5
7893  ac_status=$?
7894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895  (exit $ac_status); }; }; then
7896  ac_cv_lib_dld_shl_load=yes
7897else
7898  echo "$as_me: failed program was:" >&5
7899sed 's/^/| /' conftest.$ac_ext >&5
7900
7901ac_cv_lib_dld_shl_load=no
7902fi
7903rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7904LIBS=$ac_check_lib_save_LIBS
7905fi
7906echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7907echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7908if test $ac_cv_lib_dld_shl_load = yes; then
7909  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7910else
7911  echo "$as_me:$LINENO: checking for dlopen" >&5
7912echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7913if test "${ac_cv_func_dlopen+set}" = set; then
7914  echo $ECHO_N "(cached) $ECHO_C" >&6
7915else
7916  cat >conftest.$ac_ext <<_ACEOF
7917#line $LINENO "configure"
7918/* confdefs.h.  */
7919_ACEOF
7920cat confdefs.h >>conftest.$ac_ext
7921cat >>conftest.$ac_ext <<_ACEOF
7922/* end confdefs.h.  */
7923/* System header to define __stub macros and hopefully few prototypes,
7924    which can conflict with char dlopen (); below.
7925    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7926    <limits.h> exists even on freestanding compilers.  */
7927#ifdef __STDC__
7928# include <limits.h>
7929#else
7930# include <assert.h>
7931#endif
7932/* Override any gcc2 internal prototype to avoid an error.  */
7933#ifdef __cplusplus
7934extern "C"
7935{
7936#endif
7937/* We use char because int might match the return type of a gcc2
7938   builtin and then its argument prototype would still apply.  */
7939char dlopen ();
7940/* The GNU C library defines this for functions which it implements
7941    to always fail with ENOSYS.  Some functions are actually named
7942    something starting with __ and the normal name is an alias.  */
7943#if defined (__stub_dlopen) || defined (__stub___dlopen)
7944choke me
7945#else
7946char (*f) () = dlopen;
7947#endif
7948#ifdef __cplusplus
7949}
7950#endif
7951
7952int
7953main ()
7954{
7955return f != dlopen;
7956  ;
7957  return 0;
7958}
7959_ACEOF
7960rm -f conftest.$ac_objext conftest$ac_exeext
7961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7962  (eval $ac_link) 2>&5
7963  ac_status=$?
7964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965  (exit $ac_status); } &&
7966         { ac_try='test -s conftest$ac_exeext'
7967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968  (eval $ac_try) 2>&5
7969  ac_status=$?
7970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971  (exit $ac_status); }; }; then
7972  ac_cv_func_dlopen=yes
7973else
7974  echo "$as_me: failed program was:" >&5
7975sed 's/^/| /' conftest.$ac_ext >&5
7976
7977ac_cv_func_dlopen=no
7978fi
7979rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7980fi
7981echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7982echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7983if test $ac_cv_func_dlopen = yes; then
7984  lt_cv_dlopen="dlopen"
7985else
7986  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7987echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7988if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7989  echo $ECHO_N "(cached) $ECHO_C" >&6
7990else
7991  ac_check_lib_save_LIBS=$LIBS
7992LIBS="-ldl  $LIBS"
7993cat >conftest.$ac_ext <<_ACEOF
7994#line $LINENO "configure"
7995/* confdefs.h.  */
7996_ACEOF
7997cat confdefs.h >>conftest.$ac_ext
7998cat >>conftest.$ac_ext <<_ACEOF
7999/* end confdefs.h.  */
8000
8001/* Override any gcc2 internal prototype to avoid an error.  */
8002#ifdef __cplusplus
8003extern "C"
8004#endif
8005/* We use char because int might match the return type of a gcc2
8006   builtin and then its argument prototype would still apply.  */
8007char dlopen ();
8008int
8009main ()
8010{
8011dlopen ();
8012  ;
8013  return 0;
8014}
8015_ACEOF
8016rm -f conftest.$ac_objext conftest$ac_exeext
8017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8018  (eval $ac_link) 2>&5
8019  ac_status=$?
8020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021  (exit $ac_status); } &&
8022         { ac_try='test -s conftest$ac_exeext'
8023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024  (eval $ac_try) 2>&5
8025  ac_status=$?
8026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027  (exit $ac_status); }; }; then
8028  ac_cv_lib_dl_dlopen=yes
8029else
8030  echo "$as_me: failed program was:" >&5
8031sed 's/^/| /' conftest.$ac_ext >&5
8032
8033ac_cv_lib_dl_dlopen=no
8034fi
8035rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8036LIBS=$ac_check_lib_save_LIBS
8037fi
8038echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8039echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8040if test $ac_cv_lib_dl_dlopen = yes; then
8041  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8042else
8043  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8044echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8045if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8046  echo $ECHO_N "(cached) $ECHO_C" >&6
8047else
8048  ac_check_lib_save_LIBS=$LIBS
8049LIBS="-lsvld  $LIBS"
8050cat >conftest.$ac_ext <<_ACEOF
8051#line $LINENO "configure"
8052/* confdefs.h.  */
8053_ACEOF
8054cat confdefs.h >>conftest.$ac_ext
8055cat >>conftest.$ac_ext <<_ACEOF
8056/* end confdefs.h.  */
8057
8058/* Override any gcc2 internal prototype to avoid an error.  */
8059#ifdef __cplusplus
8060extern "C"
8061#endif
8062/* We use char because int might match the return type of a gcc2
8063   builtin and then its argument prototype would still apply.  */
8064char dlopen ();
8065int
8066main ()
8067{
8068dlopen ();
8069  ;
8070  return 0;
8071}
8072_ACEOF
8073rm -f conftest.$ac_objext conftest$ac_exeext
8074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8075  (eval $ac_link) 2>&5
8076  ac_status=$?
8077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078  (exit $ac_status); } &&
8079         { ac_try='test -s conftest$ac_exeext'
8080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8081  (eval $ac_try) 2>&5
8082  ac_status=$?
8083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084  (exit $ac_status); }; }; then
8085  ac_cv_lib_svld_dlopen=yes
8086else
8087  echo "$as_me: failed program was:" >&5
8088sed 's/^/| /' conftest.$ac_ext >&5
8089
8090ac_cv_lib_svld_dlopen=no
8091fi
8092rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8093LIBS=$ac_check_lib_save_LIBS
8094fi
8095echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8096echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8097if test $ac_cv_lib_svld_dlopen = yes; then
8098  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8099else
8100  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8101echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8102if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8103  echo $ECHO_N "(cached) $ECHO_C" >&6
8104else
8105  ac_check_lib_save_LIBS=$LIBS
8106LIBS="-ldld  $LIBS"
8107cat >conftest.$ac_ext <<_ACEOF
8108#line $LINENO "configure"
8109/* confdefs.h.  */
8110_ACEOF
8111cat confdefs.h >>conftest.$ac_ext
8112cat >>conftest.$ac_ext <<_ACEOF
8113/* end confdefs.h.  */
8114
8115/* Override any gcc2 internal prototype to avoid an error.  */
8116#ifdef __cplusplus
8117extern "C"
8118#endif
8119/* We use char because int might match the return type of a gcc2
8120   builtin and then its argument prototype would still apply.  */
8121char dld_link ();
8122int
8123main ()
8124{
8125dld_link ();
8126  ;
8127  return 0;
8128}
8129_ACEOF
8130rm -f conftest.$ac_objext conftest$ac_exeext
8131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8132  (eval $ac_link) 2>&5
8133  ac_status=$?
8134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135  (exit $ac_status); } &&
8136         { ac_try='test -s conftest$ac_exeext'
8137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138  (eval $ac_try) 2>&5
8139  ac_status=$?
8140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141  (exit $ac_status); }; }; then
8142  ac_cv_lib_dld_dld_link=yes
8143else
8144  echo "$as_me: failed program was:" >&5
8145sed 's/^/| /' conftest.$ac_ext >&5
8146
8147ac_cv_lib_dld_dld_link=no
8148fi
8149rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8150LIBS=$ac_check_lib_save_LIBS
8151fi
8152echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8153echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8154if test $ac_cv_lib_dld_dld_link = yes; then
8155  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8156fi
8157
8158
8159fi
8160
8161
8162fi
8163
8164
8165fi
8166
8167
8168fi
8169
8170
8171fi
8172
8173    ;;
8174  esac
8175
8176  if test "x$lt_cv_dlopen" != xno; then
8177    enable_dlopen=yes
8178  else
8179    enable_dlopen=no
8180  fi
8181
8182  case $lt_cv_dlopen in
8183  dlopen)
8184    save_CPPFLAGS="$CPPFLAGS"
8185    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8186
8187    save_LDFLAGS="$LDFLAGS"
8188    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8189
8190    save_LIBS="$LIBS"
8191    LIBS="$lt_cv_dlopen_libs $LIBS"
8192
8193    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8194echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8195if test "${lt_cv_dlopen_self+set}" = set; then
8196  echo $ECHO_N "(cached) $ECHO_C" >&6
8197else
8198  	  if test "$cross_compiling" = yes; then :
8199  lt_cv_dlopen_self=cross
8200else
8201  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8202  lt_status=$lt_dlunknown
8203  cat > conftest.$ac_ext <<EOF
8204#line 8204 "configure"
8205#include "confdefs.h"
8206
8207#if HAVE_DLFCN_H
8208#include <dlfcn.h>
8209#endif
8210
8211#include <stdio.h>
8212
8213#ifdef RTLD_GLOBAL
8214#  define LT_DLGLOBAL		RTLD_GLOBAL
8215#else
8216#  ifdef DL_GLOBAL
8217#    define LT_DLGLOBAL		DL_GLOBAL
8218#  else
8219#    define LT_DLGLOBAL		0
8220#  endif
8221#endif
8222
8223/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8224   find out it does not work in some platform. */
8225#ifndef LT_DLLAZY_OR_NOW
8226#  ifdef RTLD_LAZY
8227#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8228#  else
8229#    ifdef DL_LAZY
8230#      define LT_DLLAZY_OR_NOW		DL_LAZY
8231#    else
8232#      ifdef RTLD_NOW
8233#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8234#      else
8235#        ifdef DL_NOW
8236#          define LT_DLLAZY_OR_NOW	DL_NOW
8237#        else
8238#          define LT_DLLAZY_OR_NOW	0
8239#        endif
8240#      endif
8241#    endif
8242#  endif
8243#endif
8244
8245#ifdef __cplusplus
8246extern "C" void exit (int);
8247#endif
8248
8249void fnord() { int i=42;}
8250int main ()
8251{
8252  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8253  int status = $lt_dlunknown;
8254
8255  if (self)
8256    {
8257      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8258      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8259      /* dlclose (self); */
8260    }
8261
8262    exit (status);
8263}
8264EOF
8265  if { (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); } && test -s conftest${ac_exeext} 2>/dev/null; then
8270    (./conftest; exit; ) 2>/dev/null
8271    lt_status=$?
8272    case x$lt_status in
8273      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8274      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8275      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8276    esac
8277  else :
8278    # compilation failed
8279    lt_cv_dlopen_self=no
8280  fi
8281fi
8282rm -fr conftest*
8283
8284
8285fi
8286echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8287echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8288
8289    if test "x$lt_cv_dlopen_self" = xyes; then
8290      LDFLAGS="$LDFLAGS $link_static_flag"
8291      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8292echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8293if test "${lt_cv_dlopen_self_static+set}" = set; then
8294  echo $ECHO_N "(cached) $ECHO_C" >&6
8295else
8296  	  if test "$cross_compiling" = yes; then :
8297  lt_cv_dlopen_self_static=cross
8298else
8299  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8300  lt_status=$lt_dlunknown
8301  cat > conftest.$ac_ext <<EOF
8302#line 8302 "configure"
8303#include "confdefs.h"
8304
8305#if HAVE_DLFCN_H
8306#include <dlfcn.h>
8307#endif
8308
8309#include <stdio.h>
8310
8311#ifdef RTLD_GLOBAL
8312#  define LT_DLGLOBAL		RTLD_GLOBAL
8313#else
8314#  ifdef DL_GLOBAL
8315#    define LT_DLGLOBAL		DL_GLOBAL
8316#  else
8317#    define LT_DLGLOBAL		0
8318#  endif
8319#endif
8320
8321/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8322   find out it does not work in some platform. */
8323#ifndef LT_DLLAZY_OR_NOW
8324#  ifdef RTLD_LAZY
8325#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8326#  else
8327#    ifdef DL_LAZY
8328#      define LT_DLLAZY_OR_NOW		DL_LAZY
8329#    else
8330#      ifdef RTLD_NOW
8331#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8332#      else
8333#        ifdef DL_NOW
8334#          define LT_DLLAZY_OR_NOW	DL_NOW
8335#        else
8336#          define LT_DLLAZY_OR_NOW	0
8337#        endif
8338#      endif
8339#    endif
8340#  endif
8341#endif
8342
8343#ifdef __cplusplus
8344extern "C" void exit (int);
8345#endif
8346
8347void fnord() { int i=42;}
8348int main ()
8349{
8350  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8351  int status = $lt_dlunknown;
8352
8353  if (self)
8354    {
8355      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8356      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8357      /* dlclose (self); */
8358    }
8359
8360    exit (status);
8361}
8362EOF
8363  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8364  (eval $ac_link) 2>&5
8365  ac_status=$?
8366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8368    (./conftest; exit; ) 2>/dev/null
8369    lt_status=$?
8370    case x$lt_status in
8371      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8372      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8373      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8374    esac
8375  else :
8376    # compilation failed
8377    lt_cv_dlopen_self_static=no
8378  fi
8379fi
8380rm -fr conftest*
8381
8382
8383fi
8384echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8385echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8386    fi
8387
8388    CPPFLAGS="$save_CPPFLAGS"
8389    LDFLAGS="$save_LDFLAGS"
8390    LIBS="$save_LIBS"
8391    ;;
8392  esac
8393
8394  case $lt_cv_dlopen_self in
8395  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8396  *) enable_dlopen_self=unknown ;;
8397  esac
8398
8399  case $lt_cv_dlopen_self_static in
8400  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8401  *) enable_dlopen_self_static=unknown ;;
8402  esac
8403fi
8404
8405
8406# Report which librarie types wil actually be built
8407echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8408echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8409echo "$as_me:$LINENO: result: $can_build_shared" >&5
8410echo "${ECHO_T}$can_build_shared" >&6
8411
8412echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8413echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8414test "$can_build_shared" = "no" && enable_shared=no
8415
8416# On AIX, shared libraries and static libraries use the same namespace, and
8417# are all built from PIC.
8418case "$host_os" in
8419aix3*)
8420  test "$enable_shared" = yes && enable_static=no
8421  if test -n "$RANLIB"; then
8422    archive_cmds="$archive_cmds~\$RANLIB \$lib"
8423    postinstall_cmds='$RANLIB $lib'
8424  fi
8425  ;;
8426
8427aix4*)
8428  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8429    test "$enable_shared" = yes && enable_static=no
8430  fi
8431  ;;
8432  darwin* | rhapsody*)
8433  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8434    archive_cmds_need_lc=no
8435    case "$host_os" in
8436    rhapsody* | darwin1.[012])
8437      allow_undefined_flag='-undefined suppress'
8438      ;;
8439    *) # Darwin 1.3 on
8440      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8441      ;;
8442    esac
8443    # FIXME: Relying on posixy $() will cause problems for
8444    #        cross-compilation, but unfortunately the echo tests do not
8445    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8446    #	       `"' quotes if we put them in here... so don't!
8447		output_verbose_link_cmd='echo'
8448    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8449    module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8450    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8451		  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}'
8452		  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}'
8453    hardcode_direct=no
8454    hardcode_automatic=yes
8455    hardcode_shlibpath_var=unsupported
8456    whole_archive_flag_spec='-all_load $convenience'
8457    link_all_deplibs=yes
8458    fi
8459    ;;
8460esac
8461echo "$as_me:$LINENO: result: $enable_shared" >&5
8462echo "${ECHO_T}$enable_shared" >&6
8463
8464echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8465echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8466# Make sure either enable_shared or enable_static is yes.
8467test "$enable_shared" = yes || enable_static=yes
8468echo "$as_me:$LINENO: result: $enable_static" >&5
8469echo "${ECHO_T}$enable_static" >&6
8470
8471# The else clause should only fire when bootstrapping the
8472# libtool distribution, otherwise you forgot to ship ltmain.sh
8473# with your package, and you will get complaints that there are
8474# no rules to generate ltmain.sh.
8475if test -f "$ltmain"; then
8476  # See if we are running on zsh, and set the options which allow our commands through
8477  # without removal of \ escapes.
8478  if test -n "${ZSH_VERSION+set}" ; then
8479    setopt NO_GLOB_SUBST
8480  fi
8481  # Now quote all the things that may contain metacharacters while being
8482  # careful not to overquote the AC_SUBSTed values.  We take copies of the
8483  # variables and quote the copies for generation of the libtool script.
8484  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8485    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8486    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8487    deplibs_check_method reload_flag reload_cmds need_locks \
8488    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8489    lt_cv_sys_global_symbol_to_c_name_address \
8490    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8491    old_postinstall_cmds old_postuninstall_cmds \
8492    compiler \
8493    CC \
8494    LD \
8495    lt_prog_compiler_wl \
8496    lt_prog_compiler_pic \
8497    lt_prog_compiler_static \
8498    lt_prog_compiler_no_builtin_flag \
8499    export_dynamic_flag_spec \
8500    thread_safe_flag_spec \
8501    whole_archive_flag_spec \
8502    enable_shared_with_static_runtimes \
8503    old_archive_cmds \
8504    old_archive_from_new_cmds \
8505    predep_objects \
8506    postdep_objects \
8507    predeps \
8508    postdeps \
8509    compiler_lib_search_path \
8510    archive_cmds \
8511    archive_expsym_cmds \
8512    postinstall_cmds \
8513    postuninstall_cmds \
8514    old_archive_from_expsyms_cmds \
8515    allow_undefined_flag \
8516    no_undefined_flag \
8517    export_symbols_cmds \
8518    hardcode_libdir_flag_spec \
8519    hardcode_libdir_flag_spec_ld \
8520    hardcode_libdir_separator \
8521    hardcode_automatic \
8522    module_cmds \
8523    module_expsym_cmds \
8524    lt_cv_prog_compiler_c_o \
8525    exclude_expsyms \
8526    include_expsyms; do
8527
8528    case $var in
8529    old_archive_cmds | \
8530    old_archive_from_new_cmds | \
8531    archive_cmds | \
8532    archive_expsym_cmds | \
8533    module_cmds | \
8534    module_expsym_cmds | \
8535    old_archive_from_expsyms_cmds | \
8536    export_symbols_cmds | \
8537    extract_expsyms_cmds | reload_cmds | finish_cmds | \
8538    postinstall_cmds | postuninstall_cmds | \
8539    old_postinstall_cmds | old_postuninstall_cmds | \
8540    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8541      # Double-quote double-evaled strings.
8542      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8543      ;;
8544    *)
8545      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8546      ;;
8547    esac
8548  done
8549
8550  case $lt_echo in
8551  *'\$0 --fallback-echo"')
8552    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8553    ;;
8554  esac
8555
8556cfgfile="${ofile}T"
8557  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8558  $rm -f "$cfgfile"
8559  { echo "$as_me:$LINENO: creating $ofile" >&5
8560echo "$as_me: creating $ofile" >&6;}
8561
8562  cat <<__EOF__ >> "$cfgfile"
8563#! $SHELL
8564
8565# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8566# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8567# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8568#
8569# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8570# Free Software Foundation, Inc.
8571#
8572# This file is part of GNU Libtool:
8573# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8574#
8575# This program is free software; you can redistribute it and/or modify
8576# it under the terms of the GNU General Public License as published by
8577# the Free Software Foundation; either version 2 of the License, or
8578# (at your option) any later version.
8579#
8580# This program is distributed in the hope that it will be useful, but
8581# WITHOUT ANY WARRANTY; without even the implied warranty of
8582# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8583# General Public License for more details.
8584#
8585# You should have received a copy of the GNU General Public License
8586# along with this program; if not, write to the Free Software
8587# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8588#
8589# As a special exception to the GNU General Public License, if you
8590# distribute this file as part of a program that contains a
8591# configuration script generated by Autoconf, you may include it under
8592# the same distribution terms that you use for the rest of that program.
8593
8594# A sed program that does not truncate output.
8595SED=$lt_SED
8596
8597# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8598Xsed="$SED -e s/^X//"
8599
8600# The HP-UX ksh and POSIX shell print the target directory to stdout
8601# if CDPATH is set.
8602if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8603
8604# The names of the tagged configurations supported by this script.
8605available_tags=
8606
8607# ### BEGIN LIBTOOL CONFIG
8608
8609# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8610
8611# Shell to use when invoking shell scripts.
8612SHELL=$lt_SHELL
8613
8614# Whether or not to build shared libraries.
8615build_libtool_libs=$enable_shared
8616
8617# Whether or not to build static libraries.
8618build_old_libs=$enable_static
8619
8620# Whether or not to add -lc for building shared libraries.
8621build_libtool_need_lc=$archive_cmds_need_lc
8622
8623# Whether or not to disallow shared libs when runtime libs are static
8624allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8625
8626# Whether or not to optimize for fast installation.
8627fast_install=$enable_fast_install
8628
8629# The host system.
8630host_alias=$host_alias
8631host=$host
8632
8633# An echo program that does not interpret backslashes.
8634echo=$lt_echo
8635
8636# The archiver.
8637AR=$lt_AR
8638AR_FLAGS=$lt_AR_FLAGS
8639
8640# A C compiler.
8641LTCC=$lt_LTCC
8642
8643# A language-specific compiler.
8644CC=$lt_compiler
8645
8646# Is the compiler the GNU C compiler?
8647with_gcc=$GCC
8648
8649# An ERE matcher.
8650EGREP=$lt_EGREP
8651
8652# The linker used to build libraries.
8653LD=$lt_LD
8654
8655# Whether we need hard or soft links.
8656LN_S=$lt_LN_S
8657
8658# A BSD-compatible nm program.
8659NM=$lt_NM
8660
8661# A symbol stripping program
8662STRIP=$STRIP
8663
8664# Used to examine libraries when file_magic_cmd begins "file"
8665MAGIC_CMD=$MAGIC_CMD
8666
8667# Used on cygwin: DLL creation program.
8668DLLTOOL="$DLLTOOL"
8669
8670# Used on cygwin: object dumper.
8671OBJDUMP="$OBJDUMP"
8672
8673# Used on cygwin: assembler.
8674AS="$AS"
8675
8676# The name of the directory that contains temporary libtool files.
8677objdir=$objdir
8678
8679# How to create reloadable object files.
8680reload_flag=$lt_reload_flag
8681reload_cmds=$lt_reload_cmds
8682
8683# How to pass a linker flag through the compiler.
8684wl=$lt_lt_prog_compiler_wl
8685
8686# Object file suffix (normally "o").
8687objext="$ac_objext"
8688
8689# Old archive suffix (normally "a").
8690libext="$libext"
8691
8692# Shared library suffix (normally ".so").
8693shrext='$shrext'
8694
8695# Executable file suffix (normally "").
8696exeext="$exeext"
8697
8698# Additional compiler flags for building library objects.
8699pic_flag=$lt_lt_prog_compiler_pic
8700pic_mode=$pic_mode
8701
8702# What is the maximum length of a command?
8703max_cmd_len=$lt_cv_sys_max_cmd_len
8704
8705# Does compiler simultaneously support -c and -o options?
8706compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8707
8708# Must we lock files when doing compilation ?
8709need_locks=$lt_need_locks
8710
8711# Do we need the lib prefix for modules?
8712need_lib_prefix=$need_lib_prefix
8713
8714# Do we need a version for libraries?
8715need_version=$need_version
8716
8717# Whether dlopen is supported.
8718dlopen_support=$enable_dlopen
8719
8720# Whether dlopen of programs is supported.
8721dlopen_self=$enable_dlopen_self
8722
8723# Whether dlopen of statically linked programs is supported.
8724dlopen_self_static=$enable_dlopen_self_static
8725
8726# Compiler flag to prevent dynamic linking.
8727link_static_flag=$lt_lt_prog_compiler_static
8728
8729# Compiler flag to turn off builtin functions.
8730no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8731
8732# Compiler flag to allow reflexive dlopens.
8733export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8734
8735# Compiler flag to generate shared objects directly from archives.
8736whole_archive_flag_spec=$lt_whole_archive_flag_spec
8737
8738# Compiler flag to generate thread-safe objects.
8739thread_safe_flag_spec=$lt_thread_safe_flag_spec
8740
8741# Library versioning type.
8742version_type=$version_type
8743
8744# Format of library name prefix.
8745libname_spec=$lt_libname_spec
8746
8747# List of archive names.  First name is the real one, the rest are links.
8748# The last name is the one that the linker finds with -lNAME.
8749library_names_spec=$lt_library_names_spec
8750
8751# The coded name of the library, if different from the real name.
8752soname_spec=$lt_soname_spec
8753
8754# Commands used to build and install an old-style archive.
8755RANLIB=$lt_RANLIB
8756old_archive_cmds=$lt_old_archive_cmds
8757old_postinstall_cmds=$lt_old_postinstall_cmds
8758old_postuninstall_cmds=$lt_old_postuninstall_cmds
8759
8760# Create an old-style archive from a shared archive.
8761old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8762
8763# Create a temporary old-style archive to link instead of a shared archive.
8764old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8765
8766# Commands used to build and install a shared archive.
8767archive_cmds=$lt_archive_cmds
8768archive_expsym_cmds=$lt_archive_expsym_cmds
8769postinstall_cmds=$lt_postinstall_cmds
8770postuninstall_cmds=$lt_postuninstall_cmds
8771
8772# Commands used to build a loadable module (assumed same as above if empty)
8773module_cmds=$lt_module_cmds
8774module_expsym_cmds=$lt_module_expsym_cmds
8775
8776# Commands to strip libraries.
8777old_striplib=$lt_old_striplib
8778striplib=$lt_striplib
8779
8780# Dependencies to place before the objects being linked to create a
8781# shared library.
8782predep_objects=$lt_predep_objects
8783
8784# Dependencies to place after the objects being linked to create a
8785# shared library.
8786postdep_objects=$lt_postdep_objects
8787
8788# Dependencies to place before the objects being linked to create a
8789# shared library.
8790predeps=$lt_predeps
8791
8792# Dependencies to place after the objects being linked to create a
8793# shared library.
8794postdeps=$lt_postdeps
8795
8796# The library search path used internally by the compiler when linking
8797# a shared library.
8798compiler_lib_search_path=$lt_compiler_lib_search_path
8799
8800# Method to check whether dependent libraries are shared objects.
8801deplibs_check_method=$lt_deplibs_check_method
8802
8803# Command to use when deplibs_check_method == file_magic.
8804file_magic_cmd=$lt_file_magic_cmd
8805
8806# Flag that allows shared libraries with undefined symbols to be built.
8807allow_undefined_flag=$lt_allow_undefined_flag
8808
8809# Flag that forces no undefined symbols.
8810no_undefined_flag=$lt_no_undefined_flag
8811
8812# Commands used to finish a libtool library installation in a directory.
8813finish_cmds=$lt_finish_cmds
8814
8815# Same as above, but a single script fragment to be evaled but not shown.
8816finish_eval=$lt_finish_eval
8817
8818# Take the output of nm and produce a listing of raw symbols and C names.
8819global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8820
8821# Transform the output of nm in a proper C declaration
8822global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8823
8824# Transform the output of nm in a C name address pair
8825global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8826
8827# This is the shared library runtime path variable.
8828runpath_var=$runpath_var
8829
8830# This is the shared library path variable.
8831shlibpath_var=$shlibpath_var
8832
8833# Is shlibpath searched before the hard-coded library search path?
8834shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8835
8836# How to hardcode a shared library path into an executable.
8837hardcode_action=$hardcode_action
8838
8839# Whether we should hardcode library paths into libraries.
8840hardcode_into_libs=$hardcode_into_libs
8841
8842# Flag to hardcode \$libdir into a binary during linking.
8843# This must work even if \$libdir does not exist.
8844hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8845
8846# If ld is used when linking, flag to hardcode \$libdir into
8847# a binary during linking. This must work even if \$libdir does
8848# not exist.
8849hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8850
8851# Whether we need a single -rpath flag with a separated argument.
8852hardcode_libdir_separator=$lt_hardcode_libdir_separator
8853
8854# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8855# resulting binary.
8856hardcode_direct=$hardcode_direct
8857
8858# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8859# resulting binary.
8860hardcode_minus_L=$hardcode_minus_L
8861
8862# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8863# the resulting binary.
8864hardcode_shlibpath_var=$hardcode_shlibpath_var
8865
8866# Set to yes if building a shared library automatically hardcodes DIR into the library
8867# and all subsequent libraries and executables linked against it.
8868hardcode_automatic=$hardcode_automatic
8869
8870# Variables whose values should be saved in libtool wrapper scripts and
8871# restored at relink time.
8872variables_saved_for_relink="$variables_saved_for_relink"
8873
8874# Whether libtool must link a program against all its dependency libraries.
8875link_all_deplibs=$link_all_deplibs
8876
8877# Compile-time system search path for libraries
8878sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8879
8880# Run-time system search path for libraries
8881sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8882
8883# Fix the shell variable \$srcfile for the compiler.
8884fix_srcfile_path="$fix_srcfile_path"
8885
8886# Set to yes if exported symbols are required.
8887always_export_symbols=$always_export_symbols
8888
8889# The commands to list exported symbols.
8890export_symbols_cmds=$lt_export_symbols_cmds
8891
8892# The commands to extract the exported symbol list from a shared archive.
8893extract_expsyms_cmds=$lt_extract_expsyms_cmds
8894
8895# Symbols that should not be listed in the preloaded symbols.
8896exclude_expsyms=$lt_exclude_expsyms
8897
8898# Symbols that must always be exported.
8899include_expsyms=$lt_include_expsyms
8900
8901# ### END LIBTOOL CONFIG
8902
8903__EOF__
8904
8905
8906  case $host_os in
8907  aix3*)
8908    cat <<\EOF >> "$cfgfile"
8909
8910# AIX sometimes has problems with the GCC collect2 program.  For some
8911# reason, if we set the COLLECT_NAMES environment variable, the problems
8912# vanish in a puff of smoke.
8913if test "X${COLLECT_NAMES+set}" != Xset; then
8914  COLLECT_NAMES=
8915  export COLLECT_NAMES
8916fi
8917EOF
8918    ;;
8919  esac
8920
8921  # We use sed instead of cat because bash on DJGPP gets confused if
8922  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8923  # text mode, it properly converts lines to CR/LF.  This bash problem
8924  # is reportedly fixed, but why not run on old versions too?
8925  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8926
8927  mv -f "$cfgfile" "$ofile" || \
8928    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8929  chmod +x "$ofile"
8930
8931else
8932  # If there is no Makefile yet, we rely on a make rule to execute
8933  # `config.status --recheck' to rerun these tests and create the
8934  # libtool script then.
8935  test -f Makefile && make "$ltmain"
8936fi
8937
8938
8939ac_ext=c
8940ac_cpp='$CPP $CPPFLAGS'
8941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8943ac_compiler_gnu=$ac_cv_c_compiler_gnu
8944
8945CC="$lt_save_CC"
8946
8947
8948# Check whether --with-tags or --without-tags was given.
8949if test "${with_tags+set}" = set; then
8950  withval="$with_tags"
8951  tagnames="$withval"
8952fi;
8953
8954if test -f "$ltmain" && test -n "$tagnames"; then
8955  if test ! -f "${ofile}"; then
8956    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8957echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8958  fi
8959
8960  if test -z "$LTCC"; then
8961    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8962    if test -z "$LTCC"; then
8963      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8964echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8965    else
8966      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8967echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8968    fi
8969  fi
8970
8971  # Extract list of available tagged configurations in $ofile.
8972  # Note that this assumes the entire list is on one line.
8973  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8974
8975  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8976  for tagname in $tagnames; do
8977    IFS="$lt_save_ifs"
8978    # Check whether tagname contains only valid characters
8979    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8980    "") ;;
8981    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8982echo "$as_me: error: invalid tag name: $tagname" >&2;}
8983   { (exit 1); exit 1; }; }
8984	;;
8985    esac
8986
8987    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8988    then
8989      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8990echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8991   { (exit 1); exit 1; }; }
8992    fi
8993
8994    # Update the list of available tags.
8995    if test -n "$tagname"; then
8996      echo appending configuration tag \"$tagname\" to $ofile
8997
8998      case $tagname in
8999      CXX)
9000	if test -n "$CXX" && test "X$CXX" != "Xno"; then
9001	  ac_ext=cc
9002ac_cpp='$CXXCPP $CPPFLAGS'
9003ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9004ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9005ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9006
9007
9008
9009
9010archive_cmds_need_lc_CXX=no
9011allow_undefined_flag_CXX=
9012always_export_symbols_CXX=no
9013archive_expsym_cmds_CXX=
9014export_dynamic_flag_spec_CXX=
9015hardcode_direct_CXX=no
9016hardcode_libdir_flag_spec_CXX=
9017hardcode_libdir_flag_spec_ld_CXX=
9018hardcode_libdir_separator_CXX=
9019hardcode_minus_L_CXX=no
9020hardcode_automatic_CXX=no
9021module_cmds_CXX=
9022module_expsym_cmds_CXX=
9023link_all_deplibs_CXX=unknown
9024old_archive_cmds_CXX=$old_archive_cmds
9025no_undefined_flag_CXX=
9026whole_archive_flag_spec_CXX=
9027enable_shared_with_static_runtimes_CXX=no
9028
9029# Dependencies to place before and after the object being linked:
9030predep_objects_CXX=
9031postdep_objects_CXX=
9032predeps_CXX=
9033postdeps_CXX=
9034compiler_lib_search_path_CXX=
9035
9036# Source file extension for C++ test sources.
9037ac_ext=cc
9038
9039# Object file extension for compiled C++ test sources.
9040objext=o
9041objext_CXX=$objext
9042
9043# Code to be used in simple compile tests
9044lt_simple_compile_test_code="int some_variable = 0;\n"
9045
9046# Code to be used in simple link tests
9047lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9048
9049# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9050
9051# If no C compiler was specified, use CC.
9052LTCC=${LTCC-"$CC"}
9053
9054# Allow CC to be a program name with arguments.
9055compiler=$CC
9056
9057
9058# Allow CC to be a program name with arguments.
9059lt_save_CC=$CC
9060lt_save_LD=$LD
9061lt_save_GCC=$GCC
9062GCC=$GXX
9063lt_save_with_gnu_ld=$with_gnu_ld
9064lt_save_path_LD=$lt_cv_path_LD
9065if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9066  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9067else
9068  unset lt_cv_prog_gnu_ld
9069fi
9070if test -n "${lt_cv_path_LDCXX+set}"; then
9071  lt_cv_path_LD=$lt_cv_path_LDCXX
9072else
9073  unset lt_cv_path_LD
9074fi
9075test -z "${LDCXX+set}" || LD=$LDCXX
9076CC=${CXX-"c++"}
9077compiler=$CC
9078compiler_CXX=$CC
9079cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9080
9081# We don't want -fno-exception wen compiling C++ code, so set the
9082# no_builtin_flag separately
9083if test "$GXX" = yes; then
9084  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9085else
9086  lt_prog_compiler_no_builtin_flag_CXX=
9087fi
9088
9089if test "$GXX" = yes; then
9090  # Set up default GNU C++ configuration
9091
9092
9093# Check whether --with-gnu-ld or --without-gnu-ld was given.
9094if test "${with_gnu_ld+set}" = set; then
9095  withval="$with_gnu_ld"
9096  test "$withval" = no || with_gnu_ld=yes
9097else
9098  with_gnu_ld=no
9099fi;
9100ac_prog=ld
9101if test "$GCC" = yes; then
9102  # Check if gcc -print-prog-name=ld gives a path.
9103  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9104echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9105  case $host in
9106  *-*-mingw*)
9107    # gcc leaves a trailing carriage return which upsets mingw
9108    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9109  *)
9110    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9111  esac
9112  case $ac_prog in
9113    # Accept absolute paths.
9114    [\\/]* | ?:[\\/]*)
9115      re_direlt='/[^/][^/]*/\.\./'
9116      # Canonicalize the path of ld
9117      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9118      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9119	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9120      done
9121      test -z "$LD" && LD="$ac_prog"
9122      ;;
9123  "")
9124    # If it fails, then pretend we aren't using GCC.
9125    ac_prog=ld
9126    ;;
9127  *)
9128    # If it is relative, then search for the first ld in PATH.
9129    with_gnu_ld=unknown
9130    ;;
9131  esac
9132elif test "$with_gnu_ld" = yes; then
9133  echo "$as_me:$LINENO: checking for GNU ld" >&5
9134echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9135else
9136  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9137echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9138fi
9139if test "${lt_cv_path_LD+set}" = set; then
9140  echo $ECHO_N "(cached) $ECHO_C" >&6
9141else
9142  if test -z "$LD"; then
9143  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9144  for ac_dir in $PATH; do
9145    IFS="$lt_save_ifs"
9146    test -z "$ac_dir" && ac_dir=.
9147    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9148      lt_cv_path_LD="$ac_dir/$ac_prog"
9149      # Check to see if the program is GNU ld.  I'd rather use --version,
9150      # but apparently some GNU ld's only accept -v.
9151      # Break only if it was the GNU/non-GNU ld that we prefer.
9152      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9153      *GNU* | *'with BFD'*)
9154	test "$with_gnu_ld" != no && break
9155	;;
9156      *)
9157	test "$with_gnu_ld" != yes && break
9158	;;
9159      esac
9160    fi
9161  done
9162  IFS="$lt_save_ifs"
9163else
9164  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9165fi
9166fi
9167
9168LD="$lt_cv_path_LD"
9169if test -n "$LD"; then
9170  echo "$as_me:$LINENO: result: $LD" >&5
9171echo "${ECHO_T}$LD" >&6
9172else
9173  echo "$as_me:$LINENO: result: no" >&5
9174echo "${ECHO_T}no" >&6
9175fi
9176test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9177echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9178   { (exit 1); exit 1; }; }
9179echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9180echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9181if test "${lt_cv_prog_gnu_ld+set}" = set; then
9182  echo $ECHO_N "(cached) $ECHO_C" >&6
9183else
9184  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9185case `"$LD" -v 2>&1 </dev/null` in
9186*GNU* | *'with BFD'*)
9187  lt_cv_prog_gnu_ld=yes
9188  ;;
9189*)
9190  lt_cv_prog_gnu_ld=no
9191  ;;
9192esac
9193fi
9194echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9195echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9196with_gnu_ld=$lt_cv_prog_gnu_ld
9197
9198
9199
9200  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9201  # archiving commands below assume that GNU ld is being used.
9202  if test "$with_gnu_ld" = yes; then
9203    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9204    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'
9205
9206    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9207    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9208
9209    # If archive_cmds runs LD, not CC, wlarc should be empty
9210    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9211    #     investigate it a little bit more. (MM)
9212    wlarc='${wl}'
9213
9214    # ancient GNU ld didn't support --whole-archive et. al.
9215    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9216	grep 'no-whole-archive' > /dev/null; then
9217      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9218    else
9219      whole_archive_flag_spec_CXX=
9220    fi
9221  else
9222    with_gnu_ld=no
9223    wlarc=
9224
9225    # A generic and very simple default shared library creation
9226    # command for GNU C++ for the case where it uses the native
9227    # linker, instead of GNU ld.  If possible, this setting should
9228    # overridden to take advantage of the native linker features on
9229    # the platform it is being used on.
9230    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9231  fi
9232
9233  # Commands to make compiler produce verbose output that lists
9234  # what "hidden" libraries, object files and flags are used when
9235  # linking a shared library.
9236  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9237
9238else
9239  GXX=no
9240  with_gnu_ld=no
9241  wlarc=
9242fi
9243
9244# PORTME: fill in a description of your system's C++ link characteristics
9245echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9246echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9247ld_shlibs_CXX=yes
9248case $host_os in
9249  aix3*)
9250    # FIXME: insert proper C++ library support
9251    ld_shlibs_CXX=no
9252    ;;
9253  aix4* | aix5*)
9254    if test "$host_cpu" = ia64; then
9255      # On IA64, the linker does run time linking by default, so we don't
9256      # have to do anything special.
9257      aix_use_runtimelinking=no
9258      exp_sym_flag='-Bexport'
9259      no_entry_flag=""
9260    else
9261      aix_use_runtimelinking=no
9262
9263      # Test if we are trying to use run time linking or normal
9264      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9265      # need to do runtime linking.
9266      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9267	for ld_flag in $LDFLAGS; do
9268	  case $ld_flag in
9269	  *-brtl*)
9270	    aix_use_runtimelinking=yes
9271	    break
9272	    ;;
9273	  esac
9274	done
9275      esac
9276
9277      exp_sym_flag='-bexport'
9278      no_entry_flag='-bnoentry'
9279    fi
9280
9281    # When large executables or shared objects are built, AIX ld can
9282    # have problems creating the table of contents.  If linking a library
9283    # or program results in "error TOC overflow" add -mminimal-toc to
9284    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9285    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9286
9287    archive_cmds_CXX=''
9288    hardcode_direct_CXX=yes
9289    hardcode_libdir_separator_CXX=':'
9290    link_all_deplibs_CXX=yes
9291
9292    if test "$GXX" = yes; then
9293      case $host_os in aix4.012|aix4.012.*)
9294      # We only want to do this on AIX 4.2 and lower, the check
9295      # below for broken collect2 doesn't work under 4.3+
9296	collect2name=`${CC} -print-prog-name=collect2`
9297	if test -f "$collect2name" && \
9298	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9299	then
9300	  # We have reworked collect2
9301	  hardcode_direct_CXX=yes
9302	else
9303	  # We have old collect2
9304	  hardcode_direct_CXX=unsupported
9305	  # It fails to find uninstalled libraries when the uninstalled
9306	  # path is not listed in the libpath.  Setting hardcode_minus_L
9307	  # to unsupported forces relinking
9308	  hardcode_minus_L_CXX=yes
9309	  hardcode_libdir_flag_spec_CXX='-L$libdir'
9310	  hardcode_libdir_separator_CXX=
9311	fi
9312      esac
9313      shared_flag='-shared'
9314    else
9315      # not using gcc
9316      if test "$host_cpu" = ia64; then
9317	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9318	# chokes on -Wl,-G. The following line is correct:
9319	shared_flag='-G'
9320      else
9321	if test "$aix_use_runtimelinking" = yes; then
9322	  shared_flag='${wl}-G'
9323	else
9324	  shared_flag='${wl}-bM:SRE'
9325	fi
9326      fi
9327    fi
9328
9329    # It seems that -bexpall does not export symbols beginning with
9330    # underscore (_), so it is better to generate a list of symbols to export.
9331    always_export_symbols_CXX=yes
9332    if test "$aix_use_runtimelinking" = yes; then
9333      # Warning - without using the other runtime loading flags (-brtl),
9334      # -berok will link without error, but may produce a broken library.
9335      allow_undefined_flag_CXX='-berok'
9336      # Determine the default libpath from the value encoded in an empty executable.
9337      cat >conftest.$ac_ext <<_ACEOF
9338#line $LINENO "configure"
9339/* confdefs.h.  */
9340_ACEOF
9341cat confdefs.h >>conftest.$ac_ext
9342cat >>conftest.$ac_ext <<_ACEOF
9343/* end confdefs.h.  */
9344
9345int
9346main ()
9347{
9348
9349  ;
9350  return 0;
9351}
9352_ACEOF
9353rm -f conftest.$ac_objext conftest$ac_exeext
9354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9355  (eval $ac_link) 2>&5
9356  ac_status=$?
9357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358  (exit $ac_status); } &&
9359         { ac_try='test -s conftest$ac_exeext'
9360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361  (eval $ac_try) 2>&5
9362  ac_status=$?
9363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364  (exit $ac_status); }; }; then
9365
9366aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9367}'`
9368# Check for a 64-bit object if we didn't find anything.
9369if 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; }
9370}'`; fi
9371else
9372  echo "$as_me: failed program was:" >&5
9373sed 's/^/| /' conftest.$ac_ext >&5
9374
9375fi
9376rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9377if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9378
9379      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9380
9381      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"
9382     else
9383      if test "$host_cpu" = ia64; then
9384	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9385	allow_undefined_flag_CXX="-z nodefs"
9386	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"
9387      else
9388	# Determine the default libpath from the value encoded in an empty executable.
9389	cat >conftest.$ac_ext <<_ACEOF
9390#line $LINENO "configure"
9391/* confdefs.h.  */
9392_ACEOF
9393cat confdefs.h >>conftest.$ac_ext
9394cat >>conftest.$ac_ext <<_ACEOF
9395/* end confdefs.h.  */
9396
9397int
9398main ()
9399{
9400
9401  ;
9402  return 0;
9403}
9404_ACEOF
9405rm -f conftest.$ac_objext conftest$ac_exeext
9406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9407  (eval $ac_link) 2>&5
9408  ac_status=$?
9409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410  (exit $ac_status); } &&
9411         { ac_try='test -s conftest$ac_exeext'
9412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413  (eval $ac_try) 2>&5
9414  ac_status=$?
9415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416  (exit $ac_status); }; }; then
9417
9418aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9419}'`
9420# Check for a 64-bit object if we didn't find anything.
9421if 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; }
9422}'`; fi
9423else
9424  echo "$as_me: failed program was:" >&5
9425sed 's/^/| /' conftest.$ac_ext >&5
9426
9427fi
9428rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9429if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9430
9431	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9432	# Warning - without using the other run time loading flags,
9433	# -berok will link without error, but may produce a broken library.
9434	no_undefined_flag_CXX=' ${wl}-bernotok'
9435	allow_undefined_flag_CXX=' ${wl}-berok'
9436	# -bexpall does not export symbols beginning with underscore (_)
9437	always_export_symbols_CXX=yes
9438	# Exported symbols can be pulled into shared objects from archives
9439	whole_archive_flag_spec_CXX=' '
9440	archive_cmds_need_lc_CXX=yes
9441	# This is similar to how AIX traditionally builds it's shared libraries.
9442	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'
9443      fi
9444    fi
9445    ;;
9446  chorus*)
9447    case $cc_basename in
9448      *)
9449	# FIXME: insert proper C++ library support
9450	ld_shlibs_CXX=no
9451	;;
9452    esac
9453    ;;
9454
9455  cygwin* | mingw* | pw32*)
9456    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9457    # as there is no search path for DLLs.
9458    hardcode_libdir_flag_spec_CXX='-L$libdir'
9459    allow_undefined_flag_CXX=unsupported
9460    always_export_symbols_CXX=no
9461    enable_shared_with_static_runtimes_CXX=yes
9462
9463    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9464      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'
9465      # If the export-symbols file already is a .def file (1st line
9466      # is EXPORTS), use it as is; otherwise, prepend...
9467      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9468	cp $export_symbols $output_objdir/$soname.def;
9469      else
9470	echo EXPORTS > $output_objdir/$soname.def;
9471	cat $export_symbols >> $output_objdir/$soname.def;
9472      fi~
9473      $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'
9474    else
9475      ld_shlibs_CXX=no
9476    fi
9477  ;;
9478
9479  darwin* | rhapsody*)
9480   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9481    archive_cmds_need_lc_CXX=no
9482    case "$host_os" in
9483    rhapsody* | darwin1.[012])
9484      allow_undefined_flag_CXX='-undefined suppress'
9485      ;;
9486    *) # Darwin 1.3 on
9487      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9488      ;;
9489    esac
9490    	lt_int_apple_cc_single_mod=no
9491    	output_verbose_link_cmd='echo'
9492    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9493    	  lt_int_apple_cc_single_mod=yes
9494    	fi
9495    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9496    	  archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9497    	else
9498        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'
9499      fi
9500      module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9501
9502    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9503      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9504        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}'
9505      else
9506        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}'
9507      fi
9508        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}'
9509    hardcode_direct_CXX=no
9510    hardcode_automatic_CXX=yes
9511    hardcode_shlibpath_var_CXX=unsupported
9512    whole_archive_flag_spec_CXX='-all_load $convenience'
9513    link_all_deplibs_CXX=yes
9514   fi
9515    ;;
9516
9517  dgux*)
9518    case $cc_basename in
9519      ec++)
9520	# FIXME: insert proper C++ library support
9521	ld_shlibs_CXX=no
9522	;;
9523      ghcx)
9524	# Green Hills C++ Compiler
9525	# FIXME: insert proper C++ library support
9526	ld_shlibs_CXX=no
9527	;;
9528      *)
9529	# FIXME: insert proper C++ library support
9530	ld_shlibs_CXX=no
9531	;;
9532    esac
9533    ;;
9534  freebsd12*)
9535    # C++ shared libraries reported to be fairly broken before switch to ELF
9536    ld_shlibs_CXX=no
9537    ;;
9538  freebsd-elf*)
9539    archive_cmds_need_lc_CXX=no
9540    ;;
9541  freebsd*)
9542    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9543    # conventions
9544    ld_shlibs_CXX=yes
9545    ;;
9546  gnu*)
9547    ;;
9548  hpux9*)
9549    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9550    hardcode_libdir_separator_CXX=:
9551    export_dynamic_flag_spec_CXX='${wl}-E'
9552    hardcode_direct_CXX=yes
9553    hardcode_minus_L_CXX=yes # Not in the search PATH,
9554				# but as the default
9555				# location of the library.
9556
9557    case $cc_basename in
9558    CC)
9559      # FIXME: insert proper C++ library support
9560      ld_shlibs_CXX=no
9561      ;;
9562    aCC)
9563      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'
9564      # Commands to make compiler produce verbose output that lists
9565      # what "hidden" libraries, object files and flags are used when
9566      # linking a shared library.
9567      #
9568      # There doesn't appear to be a way to prevent this compiler from
9569      # explicitly linking system object files so we need to strip them
9570      # from the output so that they don't get included in the library
9571      # dependencies.
9572      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'
9573      ;;
9574    *)
9575      if test "$GXX" = yes; then
9576        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'
9577      else
9578        # FIXME: insert proper C++ library support
9579        ld_shlibs_CXX=no
9580      fi
9581      ;;
9582    esac
9583    ;;
9584  hpux10*|hpux11*)
9585    if test $with_gnu_ld = no; then
9586      case "$host_cpu" in
9587      hppa*64*)
9588	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9589	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9590	hardcode_libdir_separator_CXX=:
9591        ;;
9592      ia64*)
9593	hardcode_libdir_flag_spec_CXX='-L$libdir'
9594        ;;
9595      *)
9596	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9597	hardcode_libdir_separator_CXX=:
9598	export_dynamic_flag_spec_CXX='${wl}-E'
9599        ;;
9600      esac
9601    fi
9602    case "$host_cpu" in
9603    hppa*64*)
9604      hardcode_direct_CXX=no
9605      hardcode_shlibpath_var_CXX=no
9606      ;;
9607    ia64*)
9608      hardcode_direct_CXX=no
9609      hardcode_shlibpath_var_CXX=no
9610      hardcode_minus_L_CXX=yes # Not in the search PATH,
9611					      # but as the default
9612					      # location of the library.
9613      ;;
9614    *)
9615      hardcode_direct_CXX=yes
9616      hardcode_minus_L_CXX=yes # Not in the search PATH,
9617					      # but as the default
9618					      # location of the library.
9619      ;;
9620    esac
9621
9622    case $cc_basename in
9623      CC)
9624	# FIXME: insert proper C++ library support
9625	ld_shlibs_CXX=no
9626	;;
9627      aCC)
9628	case "$host_cpu" in
9629	hppa*64*|ia64*)
9630	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9631	  ;;
9632	*)
9633	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9634	  ;;
9635	esac
9636	# Commands to make compiler produce verbose output that lists
9637	# what "hidden" libraries, object files and flags are used when
9638	# linking a shared library.
9639	#
9640	# There doesn't appear to be a way to prevent this compiler from
9641	# explicitly linking system object files so we need to strip them
9642	# from the output so that they don't get included in the library
9643	# dependencies.
9644	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'
9645	;;
9646      *)
9647	if test "$GXX" = yes; then
9648	  if test $with_gnu_ld = no; then
9649	    case "$host_cpu" in
9650	    ia64*|hppa*64*)
9651	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9652	      ;;
9653	    *)
9654	      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'
9655	      ;;
9656	    esac
9657	  fi
9658	else
9659	  # FIXME: insert proper C++ library support
9660	  ld_shlibs_CXX=no
9661	fi
9662	;;
9663    esac
9664    ;;
9665  irix5* | irix6*)
9666    case $cc_basename in
9667      CC)
9668	# SGI C++
9669	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'
9670
9671	# Archives containing C++ object files must be created using
9672	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9673	# necessary to make sure instantiated templates are included
9674	# in the archive.
9675	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9676	;;
9677      *)
9678	if test "$GXX" = yes; then
9679	  if test "$with_gnu_ld" = no; then
9680	    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'
9681	  else
9682	    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'
9683	  fi
9684	fi
9685	link_all_deplibs_CXX=yes
9686	;;
9687    esac
9688    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9689    hardcode_libdir_separator_CXX=:
9690    ;;
9691  linux*)
9692    case $cc_basename in
9693      KCC)
9694	# Kuck and Associates, Inc. (KAI) C++ Compiler
9695
9696	# KCC will only create a shared library if the output file
9697	# ends with ".so" (or ".sl" for HP-UX), so rename the library
9698	# to its proper name (with version) after linking.
9699	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'
9700	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'
9701	# Commands to make compiler produce verbose output that lists
9702	# what "hidden" libraries, object files and flags are used when
9703	# linking a shared library.
9704	#
9705	# There doesn't appear to be a way to prevent this compiler from
9706	# explicitly linking system object files so we need to strip them
9707	# from the output so that they don't get included in the library
9708	# dependencies.
9709	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'
9710
9711	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9712	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9713
9714	# Archives containing C++ object files must be created using
9715	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
9716	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9717	;;
9718      icpc)
9719	# Intel C++
9720	with_gnu_ld=yes
9721	archive_cmds_need_lc_CXX=no
9722	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9723	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'
9724	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9725	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9726	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9727	;;
9728      cxx)
9729	# Compaq C++
9730	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9731	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'
9732
9733	runpath_var=LD_RUN_PATH
9734	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9735	hardcode_libdir_separator_CXX=:
9736
9737	# Commands to make compiler produce verbose output that lists
9738	# what "hidden" libraries, object files and flags are used when
9739	# linking a shared library.
9740	#
9741	# There doesn't appear to be a way to prevent this compiler from
9742	# explicitly linking system object files so we need to strip them
9743	# from the output so that they don't get included in the library
9744	# dependencies.
9745	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'
9746	;;
9747    esac
9748    ;;
9749  lynxos*)
9750    # FIXME: insert proper C++ library support
9751    ld_shlibs_CXX=no
9752    ;;
9753  m88k*)
9754    # FIXME: insert proper C++ library support
9755    ld_shlibs_CXX=no
9756    ;;
9757  mvs*)
9758    case $cc_basename in
9759      cxx)
9760	# FIXME: insert proper C++ library support
9761	ld_shlibs_CXX=no
9762	;;
9763      *)
9764	# FIXME: insert proper C++ library support
9765	ld_shlibs_CXX=no
9766	;;
9767    esac
9768    ;;
9769  netbsd*)
9770    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9771      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9772      wlarc=
9773      hardcode_libdir_flag_spec_CXX='-R$libdir'
9774      hardcode_direct_CXX=yes
9775      hardcode_shlibpath_var_CXX=no
9776    fi
9777    # Workaround some broken pre-1.5 toolchains
9778    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9779    ;;
9780  osf3*)
9781    case $cc_basename in
9782      KCC)
9783	# Kuck and Associates, Inc. (KAI) C++ Compiler
9784
9785	# KCC will only create a shared library if the output file
9786	# ends with ".so" (or ".sl" for HP-UX), so rename the library
9787	# to its proper name (with version) after linking.
9788	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'
9789
9790	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9791	hardcode_libdir_separator_CXX=:
9792
9793	# Archives containing C++ object files must be created using
9794	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
9795	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9796
9797	;;
9798      RCC)
9799	# Rational C++ 2.4.1
9800	# FIXME: insert proper C++ library support
9801	ld_shlibs_CXX=no
9802	;;
9803      cxx)
9804	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9805	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'
9806
9807	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9808	hardcode_libdir_separator_CXX=:
9809
9810	# Commands to make compiler produce verbose output that lists
9811	# what "hidden" libraries, object files and flags are used when
9812	# linking a shared library.
9813	#
9814	# There doesn't appear to be a way to prevent this compiler from
9815	# explicitly linking system object files so we need to strip them
9816	# from the output so that they don't get included in the library
9817	# dependencies.
9818	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'
9819	;;
9820      *)
9821	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9822	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9823	  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'
9824
9825	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9826	  hardcode_libdir_separator_CXX=:
9827
9828	  # Commands to make compiler produce verbose output that lists
9829	  # what "hidden" libraries, object files and flags are used when
9830	  # linking a shared library.
9831	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9832
9833	else
9834	  # FIXME: insert proper C++ library support
9835	  ld_shlibs_CXX=no
9836	fi
9837	;;
9838    esac
9839    ;;
9840  osf4* | osf5*)
9841    case $cc_basename in
9842      KCC)
9843	# Kuck and Associates, Inc. (KAI) C++ Compiler
9844
9845	# KCC will only create a shared library if the output file
9846	# ends with ".so" (or ".sl" for HP-UX), so rename the library
9847	# to its proper name (with version) after linking.
9848	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'
9849
9850	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9851	hardcode_libdir_separator_CXX=:
9852
9853	# Archives containing C++ object files must be created using
9854	# the KAI C++ compiler.
9855	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9856	;;
9857      RCC)
9858	# Rational C++ 2.4.1
9859	# FIXME: insert proper C++ library support
9860	ld_shlibs_CXX=no
9861	;;
9862      cxx)
9863	allow_undefined_flag_CXX=' -expect_unresolved \*'
9864	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'
9865	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9866	  echo "-hidden">> $lib.exp~
9867	  $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~
9868	  $rm $lib.exp'
9869
9870	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9871	hardcode_libdir_separator_CXX=:
9872
9873	# Commands to make compiler produce verbose output that lists
9874	# what "hidden" libraries, object files and flags are used when
9875	# linking a shared library.
9876	#
9877	# There doesn't appear to be a way to prevent this compiler from
9878	# explicitly linking system object files so we need to strip them
9879	# from the output so that they don't get included in the library
9880	# dependencies.
9881	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'
9882	;;
9883      *)
9884	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9885	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9886	 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'
9887
9888	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9889	  hardcode_libdir_separator_CXX=:
9890
9891	  # Commands to make compiler produce verbose output that lists
9892	  # what "hidden" libraries, object files and flags are used when
9893	  # linking a shared library.
9894	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9895
9896	else
9897	  # FIXME: insert proper C++ library support
9898	  ld_shlibs_CXX=no
9899	fi
9900	;;
9901    esac
9902    ;;
9903  psos*)
9904    # FIXME: insert proper C++ library support
9905    ld_shlibs_CXX=no
9906    ;;
9907  sco*)
9908    archive_cmds_need_lc_CXX=no
9909    case $cc_basename in
9910      CC)
9911	# FIXME: insert proper C++ library support
9912	ld_shlibs_CXX=no
9913	;;
9914      *)
9915	# FIXME: insert proper C++ library support
9916	ld_shlibs_CXX=no
9917	;;
9918    esac
9919    ;;
9920  sunos4*)
9921    case $cc_basename in
9922      CC)
9923	# Sun C++ 4.x
9924	# FIXME: insert proper C++ library support
9925	ld_shlibs_CXX=no
9926	;;
9927      lcc)
9928	# Lucid
9929	# FIXME: insert proper C++ library support
9930	ld_shlibs_CXX=no
9931	;;
9932      *)
9933	# FIXME: insert proper C++ library support
9934	ld_shlibs_CXX=no
9935	;;
9936    esac
9937    ;;
9938  solaris*)
9939    case $cc_basename in
9940      CC)
9941	# Sun C++ 4.2, 5.x and Centerline C++
9942	no_undefined_flag_CXX=' -zdefs'
9943	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9944	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9945	$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'
9946
9947	hardcode_libdir_flag_spec_CXX='-R$libdir'
9948	hardcode_shlibpath_var_CXX=no
9949	case $host_os in
9950	  solaris2.0-5 | solaris2.0-5.*) ;;
9951	  *)
9952	    # The C++ compiler is used as linker so we must use $wl
9953	    # flag to pass the commands to the underlying system
9954	    # linker.
9955	    # Supported since Solaris 2.6 (maybe 2.5.1?)
9956	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9957	    ;;
9958	esac
9959	link_all_deplibs_CXX=yes
9960
9961	# Commands to make compiler produce verbose output that lists
9962	# what "hidden" libraries, object files and flags are used when
9963	# linking a shared library.
9964	#
9965	# There doesn't appear to be a way to prevent this compiler from
9966	# explicitly linking system object files so we need to strip them
9967	# from the output so that they don't get included in the library
9968	# dependencies.
9969	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'
9970
9971	# Archives containing C++ object files must be created using
9972	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
9973	# necessary to make sure instantiated templates are included
9974	# in the archive.
9975	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9976	;;
9977      gcx)
9978	# Green Hills C++ Compiler
9979	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9980
9981	# The C++ compiler must be used to create the archive.
9982	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9983	;;
9984      *)
9985	# GNU C++ compiler with Solaris linker
9986	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9987	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9988	  if $CC --version | grep -v '^2\.7' > /dev/null; then
9989	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9990	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9991		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9992
9993	    # Commands to make compiler produce verbose output that lists
9994	    # what "hidden" libraries, object files and flags are used when
9995	    # linking a shared library.
9996	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9997	  else
9998	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
9999	    # platform.
10000	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10001	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10002		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10003
10004	    # Commands to make compiler produce verbose output that lists
10005	    # what "hidden" libraries, object files and flags are used when
10006	    # linking a shared library.
10007	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10008	  fi
10009
10010	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10011	fi
10012	;;
10013    esac
10014    ;;
10015  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10016    archive_cmds_need_lc_CXX=no
10017    ;;
10018  tandem*)
10019    case $cc_basename in
10020      NCC)
10021	# NonStop-UX NCC 3.20
10022	# FIXME: insert proper C++ library support
10023	ld_shlibs_CXX=no
10024	;;
10025      *)
10026	# FIXME: insert proper C++ library support
10027	ld_shlibs_CXX=no
10028	;;
10029    esac
10030    ;;
10031  vxworks*)
10032    # FIXME: insert proper C++ library support
10033    ld_shlibs_CXX=no
10034    ;;
10035  *)
10036    # FIXME: insert proper C++ library support
10037    ld_shlibs_CXX=no
10038    ;;
10039esac
10040echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10041echo "${ECHO_T}$ld_shlibs_CXX" >&6
10042test "$ld_shlibs_CXX" = no && can_build_shared=no
10043
10044GCC_CXX="$GXX"
10045LD_CXX="$LD"
10046
10047
10048cat > conftest.$ac_ext <<EOF
10049class Foo
10050{
10051public:
10052  Foo (void) { a = 0; }
10053private:
10054  int a;
10055};
10056EOF
10057
10058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10059  (eval $ac_compile) 2>&5
10060  ac_status=$?
10061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062  (exit $ac_status); }; then
10063  # Parse the compiler output and extract the necessary
10064  # objects, libraries and library flags.
10065
10066  # Sentinel used to keep track of whether or not we are before
10067  # the conftest object file.
10068  pre_test_object_deps_done=no
10069
10070  # The `*' in the case matches for architectures that use `case' in
10071  # $output_verbose_cmd can trigger glob expansion during the loop
10072  # eval without this substitution.
10073  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10074
10075  for p in `eval $output_verbose_link_cmd`; do
10076    case $p in
10077
10078    -L* | -R* | -l*)
10079       # Some compilers place space between "-{L,R}" and the path.
10080       # Remove the space.
10081       if test $p = "-L" \
10082	  || test $p = "-R"; then
10083	 prev=$p
10084	 continue
10085       else
10086	 prev=
10087       fi
10088
10089       if test "$pre_test_object_deps_done" = no; then
10090	 case $p in
10091	 -L* | -R*)
10092	   # Internal compiler library paths should come after those
10093	   # provided the user.  The postdeps already come after the
10094	   # user supplied libs so there is no need to process them.
10095	   if test -z "$compiler_lib_search_path_CXX"; then
10096	     compiler_lib_search_path_CXX="${prev}${p}"
10097	   else
10098	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10099	   fi
10100	   ;;
10101	 # The "-l" case would never come before the object being
10102	 # linked, so don't bother handling this case.
10103	 esac
10104       else
10105	 if test -z "$postdeps_CXX"; then
10106	   postdeps_CXX="${prev}${p}"
10107	 else
10108	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10109	 fi
10110       fi
10111       ;;
10112
10113    *.$objext)
10114       # This assumes that the test object file only shows up
10115       # once in the compiler output.
10116       if test "$p" = "conftest.$objext"; then
10117	 pre_test_object_deps_done=yes
10118	 continue
10119       fi
10120
10121       if test "$pre_test_object_deps_done" = no; then
10122	 if test -z "$predep_objects_CXX"; then
10123	   predep_objects_CXX="$p"
10124	 else
10125	   predep_objects_CXX="$predep_objects_CXX $p"
10126	 fi
10127       else
10128	 if test -z "$postdep_objects_CXX"; then
10129	   postdep_objects_CXX="$p"
10130	 else
10131	   postdep_objects_CXX="$postdep_objects_CXX $p"
10132	 fi
10133       fi
10134       ;;
10135
10136    *) ;; # Ignore the rest.
10137
10138    esac
10139  done
10140
10141  # Clean up.
10142  rm -f a.out a.exe
10143else
10144  echo "libtool.m4: error: problem compiling CXX test program"
10145fi
10146
10147$rm -f confest.$objext
10148
10149case " $postdeps_CXX " in
10150*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10151esac
10152
10153lt_prog_compiler_wl_CXX=
10154lt_prog_compiler_pic_CXX=
10155lt_prog_compiler_static_CXX=
10156
10157echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10158echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10159
10160  # C++ specific cases for pic, static, wl, etc.
10161  if test "$GXX" = yes; then
10162    lt_prog_compiler_wl_CXX='-Wl,'
10163    lt_prog_compiler_static_CXX='-static'
10164
10165    case $host_os in
10166    aix*)
10167      # All AIX code is PIC.
10168      if test "$host_cpu" = ia64; then
10169	# AIX 5 now supports IA64 processor
10170	lt_prog_compiler_static_CXX='-Bstatic'
10171      fi
10172      ;;
10173    amigaos*)
10174      # FIXME: we need at least 68020 code to build shared libraries, but
10175      # adding the `-m68020' flag to GCC prevents building anything better,
10176      # like `-m68040'.
10177      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10178      ;;
10179    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10180      # PIC is the default for these OSes.
10181      ;;
10182    mingw* | os2* | pw32*)
10183      # This hack is so that the source file can tell whether it is being
10184      # built for inclusion in a dll (and should export symbols for example).
10185      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10186      ;;
10187    darwin* | rhapsody*)
10188      # PIC is the default on this platform
10189      # Common symbols not allowed in MH_DYLIB files
10190      lt_prog_compiler_pic_CXX='-fno-common'
10191      ;;
10192    *djgpp*)
10193      # DJGPP does not support shared libraries at all
10194      lt_prog_compiler_pic_CXX=
10195      ;;
10196    sysv4*MP*)
10197      if test -d /usr/nec; then
10198	lt_prog_compiler_pic_CXX=-Kconform_pic
10199      fi
10200      ;;
10201    hpux*)
10202      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10203      # not for PA HP-UX.
10204      case "$host_cpu" in
10205      hppa*64*|ia64*)
10206	;;
10207      *)
10208	lt_prog_compiler_pic_CXX='-fPIC'
10209	;;
10210      esac
10211      ;;
10212    *)
10213      lt_prog_compiler_pic_CXX='-fPIC'
10214      ;;
10215    esac
10216  else
10217    case $host_os in
10218      aix4* | aix5*)
10219	# All AIX code is PIC.
10220	if test "$host_cpu" = ia64; then
10221	  # AIX 5 now supports IA64 processor
10222	  lt_prog_compiler_static_CXX='-Bstatic'
10223	else
10224	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10225	fi
10226	;;
10227      chorus*)
10228	case $cc_basename in
10229	cxch68)
10230	  # Green Hills C++ Compiler
10231	  # _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"
10232	  ;;
10233	esac
10234	;;
10235      dgux*)
10236	case $cc_basename in
10237	  ec++)
10238	    lt_prog_compiler_pic_CXX='-KPIC'
10239	    ;;
10240	  ghcx)
10241	    # Green Hills C++ Compiler
10242	    lt_prog_compiler_pic_CXX='-pic'
10243	    ;;
10244	  *)
10245	    ;;
10246	esac
10247	;;
10248      freebsd*)
10249	# FreeBSD uses GNU C++
10250	;;
10251      hpux9* | hpux10* | hpux11*)
10252	case $cc_basename in
10253	  CC)
10254	    lt_prog_compiler_wl_CXX='-Wl,'
10255	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10256	    if test "$host_cpu" != ia64; then
10257	      lt_prog_compiler_pic_CXX='+Z'
10258	    fi
10259	    ;;
10260	  aCC)
10261	    lt_prog_compiler_wl_CXX='-Wl,'
10262	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10263	    case "$host_cpu" in
10264	    hppa*64*|ia64*)
10265	      # +Z the default
10266	      ;;
10267	    *)
10268	      lt_prog_compiler_pic_CXX='+Z'
10269	      ;;
10270	    esac
10271	    ;;
10272	  *)
10273	    ;;
10274	esac
10275	;;
10276      irix5* | irix6* | nonstopux*)
10277	case $cc_basename in
10278	  CC)
10279	    lt_prog_compiler_wl_CXX='-Wl,'
10280	    lt_prog_compiler_static_CXX='-non_shared'
10281	    # CC pic flag -KPIC is the default.
10282	    ;;
10283	  *)
10284	    ;;
10285	esac
10286	;;
10287      linux*)
10288	case $cc_basename in
10289	  KCC)
10290	    # KAI C++ Compiler
10291	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10292	    lt_prog_compiler_pic_CXX='-fPIC'
10293	    ;;
10294	  icpc)
10295	    # Intel C++
10296	    lt_prog_compiler_wl_CXX='-Wl,'
10297	    lt_prog_compiler_pic_CXX='-KPIC'
10298	    lt_prog_compiler_static_CXX='-static'
10299	    ;;
10300	  cxx)
10301	    # Compaq C++
10302	    # Make sure the PIC flag is empty.  It appears that all Alpha
10303	    # Linux and Compaq Tru64 Unix objects are PIC.
10304	    lt_prog_compiler_pic_CXX=
10305	    lt_prog_compiler_static_CXX='-non_shared'
10306	    ;;
10307	  *)
10308	    ;;
10309	esac
10310	;;
10311      lynxos*)
10312	;;
10313      m88k*)
10314	;;
10315      mvs*)
10316	case $cc_basename in
10317	  cxx)
10318	    lt_prog_compiler_pic_CXX='-W c,exportall'
10319	    ;;
10320	  *)
10321	    ;;
10322	esac
10323	;;
10324      netbsd*)
10325	;;
10326      osf3* | osf4* | osf5*)
10327	case $cc_basename in
10328	  KCC)
10329	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10330	    ;;
10331	  RCC)
10332	    # Rational C++ 2.4.1
10333	    lt_prog_compiler_pic_CXX='-pic'
10334	    ;;
10335	  cxx)
10336	    # Digital/Compaq C++
10337	    lt_prog_compiler_wl_CXX='-Wl,'
10338	    # Make sure the PIC flag is empty.  It appears that all Alpha
10339	    # Linux and Compaq Tru64 Unix objects are PIC.
10340	    lt_prog_compiler_pic_CXX=
10341	    lt_prog_compiler_static_CXX='-non_shared'
10342	    ;;
10343	  *)
10344	    ;;
10345	esac
10346	;;
10347      psos*)
10348	;;
10349      sco*)
10350	case $cc_basename in
10351	  CC)
10352	    lt_prog_compiler_pic_CXX='-fPIC'
10353	    ;;
10354	  *)
10355	    ;;
10356	esac
10357	;;
10358      solaris*)
10359	case $cc_basename in
10360	  CC)
10361	    # Sun C++ 4.2, 5.x and Centerline C++
10362	    lt_prog_compiler_pic_CXX='-KPIC'
10363	    lt_prog_compiler_static_CXX='-Bstatic'
10364	    lt_prog_compiler_wl_CXX='-Qoption ld '
10365	    ;;
10366	  gcx)
10367	    # Green Hills C++ Compiler
10368	    lt_prog_compiler_pic_CXX='-PIC'
10369	    ;;
10370	  *)
10371	    ;;
10372	esac
10373	;;
10374      sunos4*)
10375	case $cc_basename in
10376	  CC)
10377	    # Sun C++ 4.x
10378	    lt_prog_compiler_pic_CXX='-pic'
10379	    lt_prog_compiler_static_CXX='-Bstatic'
10380	    ;;
10381	  lcc)
10382	    # Lucid
10383	    lt_prog_compiler_pic_CXX='-pic'
10384	    ;;
10385	  *)
10386	    ;;
10387	esac
10388	;;
10389      tandem*)
10390	case $cc_basename in
10391	  NCC)
10392	    # NonStop-UX NCC 3.20
10393	    lt_prog_compiler_pic_CXX='-KPIC'
10394	    ;;
10395	  *)
10396	    ;;
10397	esac
10398	;;
10399      unixware*)
10400	;;
10401      vxworks*)
10402	;;
10403      *)
10404	lt_prog_compiler_can_build_shared_CXX=no
10405	;;
10406    esac
10407  fi
10408
10409echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10410echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10411
10412#
10413# Check to make sure the PIC flag actually works.
10414#
10415if test -n "$lt_prog_compiler_pic_CXX"; then
10416  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10417echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10418if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10419  echo $ECHO_N "(cached) $ECHO_C" >&6
10420else
10421  lt_prog_compiler_pic_works_CXX=no
10422  ac_outfile=conftest.$ac_objext
10423   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10424   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10425   # Insert the option either (1) after the last *FLAGS variable, or
10426   # (2) before a word containing "conftest.", or (3) at the end.
10427   # Note that $ac_compile itself does not contain backslashes and begins
10428   # with a dollar sign (not a hyphen), so the echo should work correctly.
10429   # The option is referenced via a variable to avoid confusing sed.
10430   lt_compile=`echo "$ac_compile" | $SED \
10431   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10432   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10433   -e 's:$: $lt_compiler_flag:'`
10434   (eval echo "\"\$as_me:10434: $lt_compile\"" >&5)
10435   (eval "$lt_compile" 2>conftest.err)
10436   ac_status=$?
10437   cat conftest.err >&5
10438   echo "$as_me:10438: \$? = $ac_status" >&5
10439   if (exit $ac_status) && test -s "$ac_outfile"; then
10440     # The compiler can only warn and ignore the option if not recognized
10441     # So say no if there are warnings
10442     if test ! -s conftest.err; then
10443       lt_prog_compiler_pic_works_CXX=yes
10444     fi
10445   fi
10446   $rm conftest*
10447
10448fi
10449echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10450echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10451
10452if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10453    case $lt_prog_compiler_pic_CXX in
10454     "" | " "*) ;;
10455     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10456     esac
10457else
10458    lt_prog_compiler_pic_CXX=
10459     lt_prog_compiler_can_build_shared_CXX=no
10460fi
10461
10462fi
10463case "$host_os" in
10464  # For platforms which do not support PIC, -DPIC is meaningless:
10465  *djgpp*)
10466    lt_prog_compiler_pic_CXX=
10467    ;;
10468  *)
10469    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10470    ;;
10471esac
10472
10473echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10474echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10475if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10476  echo $ECHO_N "(cached) $ECHO_C" >&6
10477else
10478  lt_cv_prog_compiler_c_o_CXX=no
10479   $rm -r conftest 2>/dev/null
10480   mkdir conftest
10481   cd conftest
10482   mkdir out
10483   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10484
10485   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10486   # that will create temporary files in the current directory regardless of
10487   # the output directory.  Thus, making CWD read-only will cause this test
10488   # to fail, enabling locking or at least warning the user not to do parallel
10489   # builds.
10490   chmod -w .
10491
10492   lt_compiler_flag="-o out/conftest2.$ac_objext"
10493   # Insert the option either (1) after the last *FLAGS variable, or
10494   # (2) before a word containing "conftest.", or (3) at the end.
10495   # Note that $ac_compile itself does not contain backslashes and begins
10496   # with a dollar sign (not a hyphen), so the echo should work correctly.
10497   lt_compile=`echo "$ac_compile" | $SED \
10498   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10499   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10500   -e 's:$: $lt_compiler_flag:'`
10501   (eval echo "\"\$as_me:10501: $lt_compile\"" >&5)
10502   (eval "$lt_compile" 2>out/conftest.err)
10503   ac_status=$?
10504   cat out/conftest.err >&5
10505   echo "$as_me:10505: \$? = $ac_status" >&5
10506   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10507   then
10508     # The compiler can only warn and ignore the option if not recognized
10509     # So say no if there are warnings
10510     if test ! -s out/conftest.err; then
10511       lt_cv_prog_compiler_c_o_CXX=yes
10512     fi
10513   fi
10514   chmod u+w .
10515   $rm conftest* out/*
10516   rmdir out
10517   cd ..
10518   rmdir conftest
10519   $rm conftest*
10520
10521fi
10522echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10523echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10524
10525
10526hard_links="nottested"
10527if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10528  # do not overwrite the value of need_locks provided by the user
10529  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10530echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10531  hard_links=yes
10532  $rm conftest*
10533  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10534  touch conftest.a
10535  ln conftest.a conftest.b 2>&5 || hard_links=no
10536  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10537  echo "$as_me:$LINENO: result: $hard_links" >&5
10538echo "${ECHO_T}$hard_links" >&6
10539  if test "$hard_links" = no; then
10540    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10541echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10542    need_locks=warn
10543  fi
10544else
10545  need_locks=no
10546fi
10547
10548echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10549echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10550
10551  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10552  case $host_os in
10553  aix4* | aix5*)
10554    # If we're using GNU nm, then we don't want the "-C" option.
10555    # -C means demangle to AIX nm, but means don't demangle with GNU nm
10556    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10557      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'
10558    else
10559      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'
10560    fi
10561    ;;
10562  pw32*)
10563    export_symbols_cmds_CXX="$ltdll_cmds"
10564  ;;
10565  cygwin* | mingw*)
10566    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10567  ;;
10568  *)
10569    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10570  ;;
10571  esac
10572
10573echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10574echo "${ECHO_T}$ld_shlibs_CXX" >&6
10575test "$ld_shlibs_CXX" = no && can_build_shared=no
10576
10577variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10578if test "$GCC" = yes; then
10579  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10580fi
10581
10582#
10583# Do we need to explicitly link libc?
10584#
10585case "x$archive_cmds_need_lc_CXX" in
10586x|xyes)
10587  # Assume -lc should be added
10588  archive_cmds_need_lc_CXX=yes
10589
10590  if test "$enable_shared" = yes && test "$GCC" = yes; then
10591    case $archive_cmds_CXX in
10592    *'~'*)
10593      # FIXME: we may have to deal with multi-command sequences.
10594      ;;
10595    '$CC '*)
10596      # Test whether the compiler implicitly links with -lc since on some
10597      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10598      # to ld, don't add -lc before -lgcc.
10599      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10600echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10601      $rm conftest*
10602      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10603
10604      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10605  (eval $ac_compile) 2>&5
10606  ac_status=$?
10607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608  (exit $ac_status); } 2>conftest.err; then
10609        soname=conftest
10610        lib=conftest
10611        libobjs=conftest.$ac_objext
10612        deplibs=
10613        wl=$lt_prog_compiler_wl_CXX
10614        compiler_flags=-v
10615        linker_flags=-v
10616        verstring=
10617        output_objdir=.
10618        libname=conftest
10619        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10620        allow_undefined_flag_CXX=
10621        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10622  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10623  ac_status=$?
10624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625  (exit $ac_status); }
10626        then
10627	  archive_cmds_need_lc_CXX=no
10628        else
10629	  archive_cmds_need_lc_CXX=yes
10630        fi
10631        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10632      else
10633        cat conftest.err 1>&5
10634      fi
10635      $rm conftest*
10636      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10637echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10638      ;;
10639    esac
10640  fi
10641  ;;
10642esac
10643
10644echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10645echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10646hardcode_action_CXX=
10647if test -n "$hardcode_libdir_flag_spec_CXX" || \
10648   test -n "$runpath_var CXX" || \
10649   test "X$hardcode_automatic_CXX"="Xyes" ; then
10650
10651  # We can hardcode non-existant directories.
10652  if test "$hardcode_direct_CXX" != no &&
10653     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10654     # have to relink, otherwise we might link with an installed library
10655     # when we should be linking with a yet-to-be-installed one
10656     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10657     test "$hardcode_minus_L_CXX" != no; then
10658    # Linking always hardcodes the temporary library directory.
10659    hardcode_action_CXX=relink
10660  else
10661    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10662    hardcode_action_CXX=immediate
10663  fi
10664else
10665  # We cannot hardcode anything, or else we can only hardcode existing
10666  # directories.
10667  hardcode_action_CXX=unsupported
10668fi
10669echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10670echo "${ECHO_T}$hardcode_action_CXX" >&6
10671
10672if test "$hardcode_action_CXX" = relink; then
10673  # Fast installation is not supported
10674  enable_fast_install=no
10675elif test "$shlibpath_overrides_runpath" = yes ||
10676     test "$enable_shared" = no; then
10677  # Fast installation is not necessary
10678  enable_fast_install=needless
10679fi
10680
10681striplib=
10682old_striplib=
10683echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10684echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10685if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10686  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10687  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10688  echo "$as_me:$LINENO: result: yes" >&5
10689echo "${ECHO_T}yes" >&6
10690else
10691# FIXME - insert some real tests, host_os isn't really good enough
10692  case $host_os in
10693   darwin*)
10694       if test -n "$STRIP" ; then
10695         striplib="$STRIP -x"
10696         echo "$as_me:$LINENO: result: yes" >&5
10697echo "${ECHO_T}yes" >&6
10698       else
10699  echo "$as_me:$LINENO: result: no" >&5
10700echo "${ECHO_T}no" >&6
10701fi
10702       ;;
10703   *)
10704  echo "$as_me:$LINENO: result: no" >&5
10705echo "${ECHO_T}no" >&6
10706    ;;
10707  esac
10708fi
10709
10710echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10711echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10712library_names_spec=
10713libname_spec='lib$name'
10714soname_spec=
10715shrext=".so"
10716postinstall_cmds=
10717postuninstall_cmds=
10718finish_cmds=
10719finish_eval=
10720shlibpath_var=
10721shlibpath_overrides_runpath=unknown
10722version_type=none
10723dynamic_linker="$host_os ld.so"
10724sys_lib_dlsearch_path_spec="/lib /usr/lib"
10725if test "$GCC" = yes; then
10726  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10727  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10728    # if the path contains ";" then we assume it to be the separator
10729    # otherwise default to the standard path separator (i.e. ":") - it is
10730    # assumed that no part of a normal pathname contains ";" but that should
10731    # okay in the real world where ";" in dirpaths is itself problematic.
10732    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10733  else
10734    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10735  fi
10736else
10737  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10738fi
10739need_lib_prefix=unknown
10740hardcode_into_libs=no
10741
10742# when you set need_version to no, make sure it does not cause -set_version
10743# flags to be left without arguments
10744need_version=unknown
10745
10746case $host_os in
10747aix3*)
10748  version_type=linux
10749  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10750  shlibpath_var=LIBPATH
10751
10752  # AIX 3 has no versioning support, so we append a major version to the name.
10753  soname_spec='${libname}${release}${shared_ext}$major'
10754  ;;
10755
10756aix4* | aix5*)
10757  version_type=linux
10758  need_lib_prefix=no
10759  need_version=no
10760  hardcode_into_libs=yes
10761  if test "$host_cpu" = ia64; then
10762    # AIX 5 supports IA64
10763    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10764    shlibpath_var=LD_LIBRARY_PATH
10765  else
10766    # With GCC up to 2.95.x, collect2 would create an import file
10767    # for dependence libraries.  The import file would start with
10768    # the line `#! .'.  This would cause the generated library to
10769    # depend on `.', always an invalid library.  This was fixed in
10770    # development snapshots of GCC prior to 3.0.
10771    case $host_os in
10772      aix4 | aix4.[01] | aix4.[01].*)
10773      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10774	   echo ' yes '
10775	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10776	:
10777      else
10778	can_build_shared=no
10779      fi
10780      ;;
10781    esac
10782    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10783    # soname into executable. Probably we can add versioning support to
10784    # collect2, so additional links can be useful in future.
10785    if test "$aix_use_runtimelinking" = yes; then
10786      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10787      # instead of lib<name>.a to let people know that these are not
10788      # typical AIX shared libraries.
10789      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10790    else
10791      # We preserve .a as extension for shared libraries through AIX4.2
10792      # and later when we are not doing run time linking.
10793      library_names_spec='${libname}${release}.a $libname.a'
10794      soname_spec='${libname}${release}${shared_ext}$major'
10795    fi
10796    shlibpath_var=LIBPATH
10797  fi
10798  ;;
10799
10800amigaos*)
10801  library_names_spec='$libname.ixlibrary $libname.a'
10802  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10803  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'
10804  ;;
10805
10806beos*)
10807  library_names_spec='${libname}${shared_ext}'
10808  dynamic_linker="$host_os ld.so"
10809  shlibpath_var=LIBRARY_PATH
10810  ;;
10811
10812bsdi4*)
10813  version_type=linux
10814  need_version=no
10815  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10816  soname_spec='${libname}${release}${shared_ext}$major'
10817  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10818  shlibpath_var=LD_LIBRARY_PATH
10819  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10820  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10821  # the default ld.so.conf also contains /usr/contrib/lib and
10822  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10823  # libtool to hard-code these into programs
10824  ;;
10825
10826cygwin* | mingw* | pw32*)
10827  version_type=windows
10828  shrext=".dll"
10829  need_version=no
10830  need_lib_prefix=no
10831
10832  case $GCC,$host_os in
10833  yes,cygwin* | yes,mingw* | yes,pw32*)
10834    library_names_spec='$libname.dll.a'
10835    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10836    postinstall_cmds='base_file=`basename \${file}`~
10837      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10838      dldir=$destdir/`dirname \$dlpath`~
10839      test -d \$dldir || mkdir -p \$dldir~
10840      $install_prog $dir/$dlname \$dldir/$dlname'
10841    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10842      dlpath=$dir/\$dldll~
10843       $rm \$dlpath'
10844    shlibpath_overrides_runpath=yes
10845
10846    case $host_os in
10847    cygwin*)
10848      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10849      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10850      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10851      ;;
10852    mingw*)
10853      # MinGW DLLs use traditional 'lib' prefix
10854      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10855      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10856      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10857        # It is most probably a Windows format PATH printed by
10858        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10859        # path with ; separators, and with drive letters. We can handle the
10860        # drive letters (cygwin fileutils understands them), so leave them,
10861        # especially as we might pass files found there to a mingw objdump,
10862        # which wouldn't understand a cygwinified path. Ahh.
10863        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10864      else
10865        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10866      fi
10867      ;;
10868    pw32*)
10869      # pw32 DLLs use 'pw' prefix rather than 'lib'
10870      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10871      ;;
10872    esac
10873    ;;
10874
10875  *)
10876    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10877    ;;
10878  esac
10879  dynamic_linker='Win32 ld.exe'
10880  # FIXME: first we should search . and the directory the executable is in
10881  shlibpath_var=PATH
10882  ;;
10883
10884darwin* | rhapsody*)
10885  dynamic_linker="$host_os dyld"
10886  version_type=darwin
10887  need_lib_prefix=no
10888  need_version=no
10889  # FIXME: Relying on posixy $() will cause problems for
10890  #        cross-compilation, but unfortunately the echo tests do not
10891  #        yet detect zsh echo's removal of \ escapes.
10892  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10893  soname_spec='${libname}${release}${major}$shared_ext'
10894  shlibpath_overrides_runpath=yes
10895  shlibpath_var=DYLD_LIBRARY_PATH
10896  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10897  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10898  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10899  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"`
10900  fi
10901  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10902  ;;
10903
10904dgux*)
10905  version_type=linux
10906  need_lib_prefix=no
10907  need_version=no
10908  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10909  soname_spec='${libname}${release}${shared_ext}$major'
10910  shlibpath_var=LD_LIBRARY_PATH
10911  ;;
10912
10913freebsd1*)
10914  dynamic_linker=no
10915  ;;
10916
10917freebsd*)
10918  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10919  version_type=freebsd-$objformat
10920  case $version_type in
10921    freebsd-elf*)
10922      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10923      need_version=no
10924      need_lib_prefix=no
10925      ;;
10926    freebsd-*)
10927      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10928      need_version=yes
10929      ;;
10930  esac
10931  shlibpath_var=LD_LIBRARY_PATH
10932  case $host_os in
10933  freebsd2*)
10934    shlibpath_overrides_runpath=yes
10935    ;;
10936  freebsd3.01* | freebsdelf3.01*)
10937    shlibpath_overrides_runpath=yes
10938    hardcode_into_libs=yes
10939    ;;
10940  *) # from 3.2 on
10941    shlibpath_overrides_runpath=no
10942    hardcode_into_libs=yes
10943    ;;
10944  esac
10945  ;;
10946
10947gnu*)
10948  version_type=linux
10949  need_lib_prefix=no
10950  need_version=no
10951  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10952  soname_spec='${libname}${release}${shared_ext}$major'
10953  shlibpath_var=LD_LIBRARY_PATH
10954  hardcode_into_libs=yes
10955  ;;
10956
10957hpux9* | hpux10* | hpux11*)
10958  # Give a soname corresponding to the major version so that dld.sl refuses to
10959  # link against other versions.
10960  version_type=sunos
10961  need_lib_prefix=no
10962  need_version=no
10963  case "$host_cpu" in
10964  ia64*)
10965    shrext='.so'
10966    hardcode_into_libs=yes
10967    dynamic_linker="$host_os dld.so"
10968    shlibpath_var=LD_LIBRARY_PATH
10969    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10970    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10971    soname_spec='${libname}${release}${shared_ext}$major'
10972    if test "X$HPUX_IA64_MODE" = X32; then
10973      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10974    else
10975      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10976    fi
10977    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10978    ;;
10979   hppa*64*)
10980     shrext='.sl'
10981     hardcode_into_libs=yes
10982     dynamic_linker="$host_os dld.sl"
10983     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10984     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10985     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10986     soname_spec='${libname}${release}${shared_ext}$major'
10987     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10988     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10989     ;;
10990   *)
10991    shrext='.sl'
10992    dynamic_linker="$host_os dld.sl"
10993    shlibpath_var=SHLIB_PATH
10994    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10995    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10996    soname_spec='${libname}${release}${shared_ext}$major'
10997    ;;
10998  esac
10999  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11000  postinstall_cmds='chmod 555 $lib'
11001  ;;
11002
11003irix5* | irix6* | nonstopux*)
11004  case $host_os in
11005    nonstopux*) version_type=nonstopux ;;
11006    *)
11007	if test "$lt_cv_prog_gnu_ld" = yes; then
11008		version_type=linux
11009	else
11010		version_type=irix
11011	fi ;;
11012  esac
11013  need_lib_prefix=no
11014  need_version=no
11015  soname_spec='${libname}${release}${shared_ext}$major'
11016  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11017  case $host_os in
11018  irix5* | nonstopux*)
11019    libsuff= shlibsuff=
11020    ;;
11021  *)
11022    case $LD in # libtool.m4 will add one of these switches to LD
11023    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11024      libsuff= shlibsuff= libmagic=32-bit;;
11025    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11026      libsuff=32 shlibsuff=N32 libmagic=N32;;
11027    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11028      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11029    *) libsuff= shlibsuff= libmagic=never-match;;
11030    esac
11031    ;;
11032  esac
11033  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11034  shlibpath_overrides_runpath=no
11035  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11036  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11037  hardcode_into_libs=yes
11038  ;;
11039
11040# No shared lib support for Linux oldld, aout, or coff.
11041linux*oldld* | linux*aout* | linux*coff*)
11042  dynamic_linker=no
11043  ;;
11044
11045# This must be Linux ELF.
11046linux*)
11047  version_type=linux
11048  need_lib_prefix=no
11049  need_version=no
11050  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11051  soname_spec='${libname}${release}${shared_ext}$major'
11052  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11053  shlibpath_var=LD_LIBRARY_PATH
11054  shlibpath_overrides_runpath=no
11055  # This implies no fast_install, which is unacceptable.
11056  # Some rework will be needed to allow for fast_install
11057  # before this can be enabled.
11058  hardcode_into_libs=yes
11059
11060  # We used to test for /lib/ld.so.1 and disable shared libraries on
11061  # powerpc, because MkLinux only supported shared libraries with the
11062  # GNU dynamic linker.  Since this was broken with cross compilers,
11063  # most powerpc-linux boxes support dynamic linking these days and
11064  # people can always --disable-shared, the test was removed, and we
11065  # assume the GNU/Linux dynamic linker is in use.
11066  dynamic_linker='GNU/Linux ld.so'
11067  ;;
11068
11069netbsd*)
11070  version_type=sunos
11071  need_lib_prefix=no
11072  need_version=no
11073  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11074    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11075    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11076    dynamic_linker='NetBSD (a.out) ld.so'
11077  else
11078    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11079    soname_spec='${libname}${release}${shared_ext}$major'
11080    dynamic_linker='NetBSD ld.elf_so'
11081  fi
11082  shlibpath_var=LD_LIBRARY_PATH
11083  shlibpath_overrides_runpath=yes
11084  hardcode_into_libs=yes
11085  ;;
11086
11087newsos6)
11088  version_type=linux
11089  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11090  shlibpath_var=LD_LIBRARY_PATH
11091  shlibpath_overrides_runpath=yes
11092  ;;
11093
11094nto-qnx)
11095  version_type=linux
11096  need_lib_prefix=no
11097  need_version=no
11098  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11099  soname_spec='${libname}${release}${shared_ext}$major'
11100  shlibpath_var=LD_LIBRARY_PATH
11101  shlibpath_overrides_runpath=yes
11102  ;;
11103
11104openbsd*)
11105  version_type=sunos
11106  need_lib_prefix=no
11107  need_version=no
11108  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11109  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11110  shlibpath_var=LD_LIBRARY_PATH
11111  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11112    case $host_os in
11113      openbsd2.[89] | openbsd2.[89].*)
11114	shlibpath_overrides_runpath=no
11115	;;
11116      *)
11117	shlibpath_overrides_runpath=yes
11118	;;
11119      esac
11120  else
11121    shlibpath_overrides_runpath=yes
11122  fi
11123  ;;
11124
11125os2*)
11126  libname_spec='$name'
11127  shrext=".dll"
11128  need_lib_prefix=no
11129  library_names_spec='$libname${shared_ext} $libname.a'
11130  dynamic_linker='OS/2 ld.exe'
11131  shlibpath_var=LIBPATH
11132  ;;
11133
11134osf3* | osf4* | osf5*)
11135  version_type=osf
11136  need_lib_prefix=no
11137  need_version=no
11138  soname_spec='${libname}${release}${shared_ext}$major'
11139  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11140  shlibpath_var=LD_LIBRARY_PATH
11141  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11142  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11143  ;;
11144
11145sco3.2v5*)
11146  version_type=osf
11147  soname_spec='${libname}${release}${shared_ext}$major'
11148  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11149  shlibpath_var=LD_LIBRARY_PATH
11150  ;;
11151
11152solaris*)
11153  version_type=linux
11154  need_lib_prefix=no
11155  need_version=no
11156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11157  soname_spec='${libname}${release}${shared_ext}$major'
11158  shlibpath_var=LD_LIBRARY_PATH
11159  shlibpath_overrides_runpath=yes
11160  hardcode_into_libs=yes
11161  # ldd complains unless libraries are executable
11162  postinstall_cmds='chmod +x $lib'
11163  ;;
11164
11165sunos4*)
11166  version_type=sunos
11167  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11168  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11169  shlibpath_var=LD_LIBRARY_PATH
11170  shlibpath_overrides_runpath=yes
11171  if test "$with_gnu_ld" = yes; then
11172    need_lib_prefix=no
11173  fi
11174  need_version=yes
11175  ;;
11176
11177sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11178  version_type=linux
11179  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11180  soname_spec='${libname}${release}${shared_ext}$major'
11181  shlibpath_var=LD_LIBRARY_PATH
11182  case $host_vendor in
11183    sni)
11184      shlibpath_overrides_runpath=no
11185      need_lib_prefix=no
11186      export_dynamic_flag_spec='${wl}-Blargedynsym'
11187      runpath_var=LD_RUN_PATH
11188      ;;
11189    siemens)
11190      need_lib_prefix=no
11191      ;;
11192    motorola)
11193      need_lib_prefix=no
11194      need_version=no
11195      shlibpath_overrides_runpath=no
11196      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11197      ;;
11198  esac
11199  ;;
11200
11201sysv4*MP*)
11202  if test -d /usr/nec ;then
11203    version_type=linux
11204    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11205    soname_spec='$libname${shared_ext}.$major'
11206    shlibpath_var=LD_LIBRARY_PATH
11207  fi
11208  ;;
11209
11210uts4*)
11211  version_type=linux
11212  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11213  soname_spec='${libname}${release}${shared_ext}$major'
11214  shlibpath_var=LD_LIBRARY_PATH
11215  ;;
11216
11217*)
11218  dynamic_linker=no
11219  ;;
11220esac
11221echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11222echo "${ECHO_T}$dynamic_linker" >&6
11223test "$dynamic_linker" = no && can_build_shared=no
11224
11225if test "x$enable_dlopen" != xyes; then
11226  enable_dlopen=unknown
11227  enable_dlopen_self=unknown
11228  enable_dlopen_self_static=unknown
11229else
11230  lt_cv_dlopen=no
11231  lt_cv_dlopen_libs=
11232
11233  case $host_os in
11234  beos*)
11235    lt_cv_dlopen="load_add_on"
11236    lt_cv_dlopen_libs=
11237    lt_cv_dlopen_self=yes
11238    ;;
11239
11240  mingw* | pw32*)
11241    lt_cv_dlopen="LoadLibrary"
11242    lt_cv_dlopen_libs=
11243   ;;
11244
11245  cygwin*)
11246    lt_cv_dlopen="dlopen"
11247    lt_cv_dlopen_libs=
11248   ;;
11249
11250  darwin*)
11251  # if libdl is installed we need to link against it
11252    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11253echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11254if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11255  echo $ECHO_N "(cached) $ECHO_C" >&6
11256else
11257  ac_check_lib_save_LIBS=$LIBS
11258LIBS="-ldl  $LIBS"
11259cat >conftest.$ac_ext <<_ACEOF
11260#line $LINENO "configure"
11261/* confdefs.h.  */
11262_ACEOF
11263cat confdefs.h >>conftest.$ac_ext
11264cat >>conftest.$ac_ext <<_ACEOF
11265/* end confdefs.h.  */
11266
11267/* Override any gcc2 internal prototype to avoid an error.  */
11268#ifdef __cplusplus
11269extern "C"
11270#endif
11271/* We use char because int might match the return type of a gcc2
11272   builtin and then its argument prototype would still apply.  */
11273char dlopen ();
11274int
11275main ()
11276{
11277dlopen ();
11278  ;
11279  return 0;
11280}
11281_ACEOF
11282rm -f conftest.$ac_objext conftest$ac_exeext
11283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11284  (eval $ac_link) 2>&5
11285  ac_status=$?
11286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287  (exit $ac_status); } &&
11288         { ac_try='test -s conftest$ac_exeext'
11289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290  (eval $ac_try) 2>&5
11291  ac_status=$?
11292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293  (exit $ac_status); }; }; then
11294  ac_cv_lib_dl_dlopen=yes
11295else
11296  echo "$as_me: failed program was:" >&5
11297sed 's/^/| /' conftest.$ac_ext >&5
11298
11299ac_cv_lib_dl_dlopen=no
11300fi
11301rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11302LIBS=$ac_check_lib_save_LIBS
11303fi
11304echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11305echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11306if test $ac_cv_lib_dl_dlopen = yes; then
11307  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11308else
11309
11310    lt_cv_dlopen="dyld"
11311    lt_cv_dlopen_libs=
11312    lt_cv_dlopen_self=yes
11313
11314fi
11315
11316   ;;
11317
11318  *)
11319    echo "$as_me:$LINENO: checking for shl_load" >&5
11320echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11321if test "${ac_cv_func_shl_load+set}" = set; then
11322  echo $ECHO_N "(cached) $ECHO_C" >&6
11323else
11324  cat >conftest.$ac_ext <<_ACEOF
11325#line $LINENO "configure"
11326/* confdefs.h.  */
11327_ACEOF
11328cat confdefs.h >>conftest.$ac_ext
11329cat >>conftest.$ac_ext <<_ACEOF
11330/* end confdefs.h.  */
11331/* System header to define __stub macros and hopefully few prototypes,
11332    which can conflict with char shl_load (); below.
11333    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11334    <limits.h> exists even on freestanding compilers.  */
11335#ifdef __STDC__
11336# include <limits.h>
11337#else
11338# include <assert.h>
11339#endif
11340/* Override any gcc2 internal prototype to avoid an error.  */
11341#ifdef __cplusplus
11342extern "C"
11343{
11344#endif
11345/* We use char because int might match the return type of a gcc2
11346   builtin and then its argument prototype would still apply.  */
11347char shl_load ();
11348/* The GNU C library defines this for functions which it implements
11349    to always fail with ENOSYS.  Some functions are actually named
11350    something starting with __ and the normal name is an alias.  */
11351#if defined (__stub_shl_load) || defined (__stub___shl_load)
11352choke me
11353#else
11354char (*f) () = shl_load;
11355#endif
11356#ifdef __cplusplus
11357}
11358#endif
11359
11360int
11361main ()
11362{
11363return f != shl_load;
11364  ;
11365  return 0;
11366}
11367_ACEOF
11368rm -f conftest.$ac_objext conftest$ac_exeext
11369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11370  (eval $ac_link) 2>&5
11371  ac_status=$?
11372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373  (exit $ac_status); } &&
11374         { ac_try='test -s conftest$ac_exeext'
11375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376  (eval $ac_try) 2>&5
11377  ac_status=$?
11378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379  (exit $ac_status); }; }; then
11380  ac_cv_func_shl_load=yes
11381else
11382  echo "$as_me: failed program was:" >&5
11383sed 's/^/| /' conftest.$ac_ext >&5
11384
11385ac_cv_func_shl_load=no
11386fi
11387rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11388fi
11389echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11390echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11391if test $ac_cv_func_shl_load = yes; then
11392  lt_cv_dlopen="shl_load"
11393else
11394  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11395echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11396if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11397  echo $ECHO_N "(cached) $ECHO_C" >&6
11398else
11399  ac_check_lib_save_LIBS=$LIBS
11400LIBS="-ldld  $LIBS"
11401cat >conftest.$ac_ext <<_ACEOF
11402#line $LINENO "configure"
11403/* confdefs.h.  */
11404_ACEOF
11405cat confdefs.h >>conftest.$ac_ext
11406cat >>conftest.$ac_ext <<_ACEOF
11407/* end confdefs.h.  */
11408
11409/* Override any gcc2 internal prototype to avoid an error.  */
11410#ifdef __cplusplus
11411extern "C"
11412#endif
11413/* We use char because int might match the return type of a gcc2
11414   builtin and then its argument prototype would still apply.  */
11415char shl_load ();
11416int
11417main ()
11418{
11419shl_load ();
11420  ;
11421  return 0;
11422}
11423_ACEOF
11424rm -f conftest.$ac_objext conftest$ac_exeext
11425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11426  (eval $ac_link) 2>&5
11427  ac_status=$?
11428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429  (exit $ac_status); } &&
11430         { ac_try='test -s conftest$ac_exeext'
11431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432  (eval $ac_try) 2>&5
11433  ac_status=$?
11434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435  (exit $ac_status); }; }; then
11436  ac_cv_lib_dld_shl_load=yes
11437else
11438  echo "$as_me: failed program was:" >&5
11439sed 's/^/| /' conftest.$ac_ext >&5
11440
11441ac_cv_lib_dld_shl_load=no
11442fi
11443rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11444LIBS=$ac_check_lib_save_LIBS
11445fi
11446echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11447echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11448if test $ac_cv_lib_dld_shl_load = yes; then
11449  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11450else
11451  echo "$as_me:$LINENO: checking for dlopen" >&5
11452echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11453if test "${ac_cv_func_dlopen+set}" = set; then
11454  echo $ECHO_N "(cached) $ECHO_C" >&6
11455else
11456  cat >conftest.$ac_ext <<_ACEOF
11457#line $LINENO "configure"
11458/* confdefs.h.  */
11459_ACEOF
11460cat confdefs.h >>conftest.$ac_ext
11461cat >>conftest.$ac_ext <<_ACEOF
11462/* end confdefs.h.  */
11463/* System header to define __stub macros and hopefully few prototypes,
11464    which can conflict with char dlopen (); below.
11465    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11466    <limits.h> exists even on freestanding compilers.  */
11467#ifdef __STDC__
11468# include <limits.h>
11469#else
11470# include <assert.h>
11471#endif
11472/* Override any gcc2 internal prototype to avoid an error.  */
11473#ifdef __cplusplus
11474extern "C"
11475{
11476#endif
11477/* We use char because int might match the return type of a gcc2
11478   builtin and then its argument prototype would still apply.  */
11479char dlopen ();
11480/* The GNU C library defines this for functions which it implements
11481    to always fail with ENOSYS.  Some functions are actually named
11482    something starting with __ and the normal name is an alias.  */
11483#if defined (__stub_dlopen) || defined (__stub___dlopen)
11484choke me
11485#else
11486char (*f) () = dlopen;
11487#endif
11488#ifdef __cplusplus
11489}
11490#endif
11491
11492int
11493main ()
11494{
11495return f != dlopen;
11496  ;
11497  return 0;
11498}
11499_ACEOF
11500rm -f conftest.$ac_objext conftest$ac_exeext
11501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11502  (eval $ac_link) 2>&5
11503  ac_status=$?
11504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505  (exit $ac_status); } &&
11506         { ac_try='test -s conftest$ac_exeext'
11507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508  (eval $ac_try) 2>&5
11509  ac_status=$?
11510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511  (exit $ac_status); }; }; then
11512  ac_cv_func_dlopen=yes
11513else
11514  echo "$as_me: failed program was:" >&5
11515sed 's/^/| /' conftest.$ac_ext >&5
11516
11517ac_cv_func_dlopen=no
11518fi
11519rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11520fi
11521echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11522echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11523if test $ac_cv_func_dlopen = yes; then
11524  lt_cv_dlopen="dlopen"
11525else
11526  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11527echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11528if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11529  echo $ECHO_N "(cached) $ECHO_C" >&6
11530else
11531  ac_check_lib_save_LIBS=$LIBS
11532LIBS="-ldl  $LIBS"
11533cat >conftest.$ac_ext <<_ACEOF
11534#line $LINENO "configure"
11535/* confdefs.h.  */
11536_ACEOF
11537cat confdefs.h >>conftest.$ac_ext
11538cat >>conftest.$ac_ext <<_ACEOF
11539/* end confdefs.h.  */
11540
11541/* Override any gcc2 internal prototype to avoid an error.  */
11542#ifdef __cplusplus
11543extern "C"
11544#endif
11545/* We use char because int might match the return type of a gcc2
11546   builtin and then its argument prototype would still apply.  */
11547char dlopen ();
11548int
11549main ()
11550{
11551dlopen ();
11552  ;
11553  return 0;
11554}
11555_ACEOF
11556rm -f conftest.$ac_objext conftest$ac_exeext
11557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11558  (eval $ac_link) 2>&5
11559  ac_status=$?
11560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561  (exit $ac_status); } &&
11562         { ac_try='test -s conftest$ac_exeext'
11563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564  (eval $ac_try) 2>&5
11565  ac_status=$?
11566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567  (exit $ac_status); }; }; then
11568  ac_cv_lib_dl_dlopen=yes
11569else
11570  echo "$as_me: failed program was:" >&5
11571sed 's/^/| /' conftest.$ac_ext >&5
11572
11573ac_cv_lib_dl_dlopen=no
11574fi
11575rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11576LIBS=$ac_check_lib_save_LIBS
11577fi
11578echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11579echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11580if test $ac_cv_lib_dl_dlopen = yes; then
11581  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11582else
11583  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11584echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11585if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11586  echo $ECHO_N "(cached) $ECHO_C" >&6
11587else
11588  ac_check_lib_save_LIBS=$LIBS
11589LIBS="-lsvld  $LIBS"
11590cat >conftest.$ac_ext <<_ACEOF
11591#line $LINENO "configure"
11592/* confdefs.h.  */
11593_ACEOF
11594cat confdefs.h >>conftest.$ac_ext
11595cat >>conftest.$ac_ext <<_ACEOF
11596/* end confdefs.h.  */
11597
11598/* Override any gcc2 internal prototype to avoid an error.  */
11599#ifdef __cplusplus
11600extern "C"
11601#endif
11602/* We use char because int might match the return type of a gcc2
11603   builtin and then its argument prototype would still apply.  */
11604char dlopen ();
11605int
11606main ()
11607{
11608dlopen ();
11609  ;
11610  return 0;
11611}
11612_ACEOF
11613rm -f conftest.$ac_objext conftest$ac_exeext
11614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11615  (eval $ac_link) 2>&5
11616  ac_status=$?
11617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618  (exit $ac_status); } &&
11619         { ac_try='test -s conftest$ac_exeext'
11620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621  (eval $ac_try) 2>&5
11622  ac_status=$?
11623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624  (exit $ac_status); }; }; then
11625  ac_cv_lib_svld_dlopen=yes
11626else
11627  echo "$as_me: failed program was:" >&5
11628sed 's/^/| /' conftest.$ac_ext >&5
11629
11630ac_cv_lib_svld_dlopen=no
11631fi
11632rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11633LIBS=$ac_check_lib_save_LIBS
11634fi
11635echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11636echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11637if test $ac_cv_lib_svld_dlopen = yes; then
11638  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11639else
11640  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11641echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11642if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11643  echo $ECHO_N "(cached) $ECHO_C" >&6
11644else
11645  ac_check_lib_save_LIBS=$LIBS
11646LIBS="-ldld  $LIBS"
11647cat >conftest.$ac_ext <<_ACEOF
11648#line $LINENO "configure"
11649/* confdefs.h.  */
11650_ACEOF
11651cat confdefs.h >>conftest.$ac_ext
11652cat >>conftest.$ac_ext <<_ACEOF
11653/* end confdefs.h.  */
11654
11655/* Override any gcc2 internal prototype to avoid an error.  */
11656#ifdef __cplusplus
11657extern "C"
11658#endif
11659/* We use char because int might match the return type of a gcc2
11660   builtin and then its argument prototype would still apply.  */
11661char dld_link ();
11662int
11663main ()
11664{
11665dld_link ();
11666  ;
11667  return 0;
11668}
11669_ACEOF
11670rm -f conftest.$ac_objext conftest$ac_exeext
11671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11672  (eval $ac_link) 2>&5
11673  ac_status=$?
11674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675  (exit $ac_status); } &&
11676         { ac_try='test -s conftest$ac_exeext'
11677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678  (eval $ac_try) 2>&5
11679  ac_status=$?
11680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681  (exit $ac_status); }; }; then
11682  ac_cv_lib_dld_dld_link=yes
11683else
11684  echo "$as_me: failed program was:" >&5
11685sed 's/^/| /' conftest.$ac_ext >&5
11686
11687ac_cv_lib_dld_dld_link=no
11688fi
11689rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11690LIBS=$ac_check_lib_save_LIBS
11691fi
11692echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11693echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11694if test $ac_cv_lib_dld_dld_link = yes; then
11695  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11696fi
11697
11698
11699fi
11700
11701
11702fi
11703
11704
11705fi
11706
11707
11708fi
11709
11710
11711fi
11712
11713    ;;
11714  esac
11715
11716  if test "x$lt_cv_dlopen" != xno; then
11717    enable_dlopen=yes
11718  else
11719    enable_dlopen=no
11720  fi
11721
11722  case $lt_cv_dlopen in
11723  dlopen)
11724    save_CPPFLAGS="$CPPFLAGS"
11725    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11726
11727    save_LDFLAGS="$LDFLAGS"
11728    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11729
11730    save_LIBS="$LIBS"
11731    LIBS="$lt_cv_dlopen_libs $LIBS"
11732
11733    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11734echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11735if test "${lt_cv_dlopen_self+set}" = set; then
11736  echo $ECHO_N "(cached) $ECHO_C" >&6
11737else
11738  	  if test "$cross_compiling" = yes; then :
11739  lt_cv_dlopen_self=cross
11740else
11741  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11742  lt_status=$lt_dlunknown
11743  cat > conftest.$ac_ext <<EOF
11744#line 11744 "configure"
11745#include "confdefs.h"
11746
11747#if HAVE_DLFCN_H
11748#include <dlfcn.h>
11749#endif
11750
11751#include <stdio.h>
11752
11753#ifdef RTLD_GLOBAL
11754#  define LT_DLGLOBAL		RTLD_GLOBAL
11755#else
11756#  ifdef DL_GLOBAL
11757#    define LT_DLGLOBAL		DL_GLOBAL
11758#  else
11759#    define LT_DLGLOBAL		0
11760#  endif
11761#endif
11762
11763/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11764   find out it does not work in some platform. */
11765#ifndef LT_DLLAZY_OR_NOW
11766#  ifdef RTLD_LAZY
11767#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11768#  else
11769#    ifdef DL_LAZY
11770#      define LT_DLLAZY_OR_NOW		DL_LAZY
11771#    else
11772#      ifdef RTLD_NOW
11773#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11774#      else
11775#        ifdef DL_NOW
11776#          define LT_DLLAZY_OR_NOW	DL_NOW
11777#        else
11778#          define LT_DLLAZY_OR_NOW	0
11779#        endif
11780#      endif
11781#    endif
11782#  endif
11783#endif
11784
11785#ifdef __cplusplus
11786extern "C" void exit (int);
11787#endif
11788
11789void fnord() { int i=42;}
11790int main ()
11791{
11792  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11793  int status = $lt_dlunknown;
11794
11795  if (self)
11796    {
11797      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11798      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11799      /* dlclose (self); */
11800    }
11801
11802    exit (status);
11803}
11804EOF
11805  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11806  (eval $ac_link) 2>&5
11807  ac_status=$?
11808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11810    (./conftest; exit; ) 2>/dev/null
11811    lt_status=$?
11812    case x$lt_status in
11813      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11814      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11815      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11816    esac
11817  else :
11818    # compilation failed
11819    lt_cv_dlopen_self=no
11820  fi
11821fi
11822rm -fr conftest*
11823
11824
11825fi
11826echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11827echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11828
11829    if test "x$lt_cv_dlopen_self" = xyes; then
11830      LDFLAGS="$LDFLAGS $link_static_flag"
11831      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11832echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11833if test "${lt_cv_dlopen_self_static+set}" = set; then
11834  echo $ECHO_N "(cached) $ECHO_C" >&6
11835else
11836  	  if test "$cross_compiling" = yes; then :
11837  lt_cv_dlopen_self_static=cross
11838else
11839  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11840  lt_status=$lt_dlunknown
11841  cat > conftest.$ac_ext <<EOF
11842#line 11842 "configure"
11843#include "confdefs.h"
11844
11845#if HAVE_DLFCN_H
11846#include <dlfcn.h>
11847#endif
11848
11849#include <stdio.h>
11850
11851#ifdef RTLD_GLOBAL
11852#  define LT_DLGLOBAL		RTLD_GLOBAL
11853#else
11854#  ifdef DL_GLOBAL
11855#    define LT_DLGLOBAL		DL_GLOBAL
11856#  else
11857#    define LT_DLGLOBAL		0
11858#  endif
11859#endif
11860
11861/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11862   find out it does not work in some platform. */
11863#ifndef LT_DLLAZY_OR_NOW
11864#  ifdef RTLD_LAZY
11865#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11866#  else
11867#    ifdef DL_LAZY
11868#      define LT_DLLAZY_OR_NOW		DL_LAZY
11869#    else
11870#      ifdef RTLD_NOW
11871#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11872#      else
11873#        ifdef DL_NOW
11874#          define LT_DLLAZY_OR_NOW	DL_NOW
11875#        else
11876#          define LT_DLLAZY_OR_NOW	0
11877#        endif
11878#      endif
11879#    endif
11880#  endif
11881#endif
11882
11883#ifdef __cplusplus
11884extern "C" void exit (int);
11885#endif
11886
11887void fnord() { int i=42;}
11888int main ()
11889{
11890  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11891  int status = $lt_dlunknown;
11892
11893  if (self)
11894    {
11895      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11896      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11897      /* dlclose (self); */
11898    }
11899
11900    exit (status);
11901}
11902EOF
11903  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11904  (eval $ac_link) 2>&5
11905  ac_status=$?
11906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11908    (./conftest; exit; ) 2>/dev/null
11909    lt_status=$?
11910    case x$lt_status in
11911      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11912      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11913      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11914    esac
11915  else :
11916    # compilation failed
11917    lt_cv_dlopen_self_static=no
11918  fi
11919fi
11920rm -fr conftest*
11921
11922
11923fi
11924echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11925echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11926    fi
11927
11928    CPPFLAGS="$save_CPPFLAGS"
11929    LDFLAGS="$save_LDFLAGS"
11930    LIBS="$save_LIBS"
11931    ;;
11932  esac
11933
11934  case $lt_cv_dlopen_self in
11935  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11936  *) enable_dlopen_self=unknown ;;
11937  esac
11938
11939  case $lt_cv_dlopen_self_static in
11940  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11941  *) enable_dlopen_self_static=unknown ;;
11942  esac
11943fi
11944
11945
11946# The else clause should only fire when bootstrapping the
11947# libtool distribution, otherwise you forgot to ship ltmain.sh
11948# with your package, and you will get complaints that there are
11949# no rules to generate ltmain.sh.
11950if test -f "$ltmain"; then
11951  # See if we are running on zsh, and set the options which allow our commands through
11952  # without removal of \ escapes.
11953  if test -n "${ZSH_VERSION+set}" ; then
11954    setopt NO_GLOB_SUBST
11955  fi
11956  # Now quote all the things that may contain metacharacters while being
11957  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11958  # variables and quote the copies for generation of the libtool script.
11959  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11960    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11961    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11962    deplibs_check_method reload_flag reload_cmds need_locks \
11963    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11964    lt_cv_sys_global_symbol_to_c_name_address \
11965    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11966    old_postinstall_cmds old_postuninstall_cmds \
11967    compiler_CXX \
11968    CC_CXX \
11969    LD_CXX \
11970    lt_prog_compiler_wl_CXX \
11971    lt_prog_compiler_pic_CXX \
11972    lt_prog_compiler_static_CXX \
11973    lt_prog_compiler_no_builtin_flag_CXX \
11974    export_dynamic_flag_spec_CXX \
11975    thread_safe_flag_spec_CXX \
11976    whole_archive_flag_spec_CXX \
11977    enable_shared_with_static_runtimes_CXX \
11978    old_archive_cmds_CXX \
11979    old_archive_from_new_cmds_CXX \
11980    predep_objects_CXX \
11981    postdep_objects_CXX \
11982    predeps_CXX \
11983    postdeps_CXX \
11984    compiler_lib_search_path_CXX \
11985    archive_cmds_CXX \
11986    archive_expsym_cmds_CXX \
11987    postinstall_cmds_CXX \
11988    postuninstall_cmds_CXX \
11989    old_archive_from_expsyms_cmds_CXX \
11990    allow_undefined_flag_CXX \
11991    no_undefined_flag_CXX \
11992    export_symbols_cmds_CXX \
11993    hardcode_libdir_flag_spec_CXX \
11994    hardcode_libdir_flag_spec_ld_CXX \
11995    hardcode_libdir_separator_CXX \
11996    hardcode_automatic_CXX \
11997    module_cmds_CXX \
11998    module_expsym_cmds_CXX \
11999    lt_cv_prog_compiler_c_o_CXX \
12000    exclude_expsyms_CXX \
12001    include_expsyms_CXX; do
12002
12003    case $var in
12004    old_archive_cmds_CXX | \
12005    old_archive_from_new_cmds_CXX | \
12006    archive_cmds_CXX | \
12007    archive_expsym_cmds_CXX | \
12008    module_cmds_CXX | \
12009    module_expsym_cmds_CXX | \
12010    old_archive_from_expsyms_cmds_CXX | \
12011    export_symbols_cmds_CXX | \
12012    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12013    postinstall_cmds | postuninstall_cmds | \
12014    old_postinstall_cmds | old_postuninstall_cmds | \
12015    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12016      # Double-quote double-evaled strings.
12017      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12018      ;;
12019    *)
12020      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12021      ;;
12022    esac
12023  done
12024
12025  case $lt_echo in
12026  *'\$0 --fallback-echo"')
12027    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12028    ;;
12029  esac
12030
12031cfgfile="$ofile"
12032
12033  cat <<__EOF__ >> "$cfgfile"
12034# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12035
12036# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12037
12038# Shell to use when invoking shell scripts.
12039SHELL=$lt_SHELL
12040
12041# Whether or not to build shared libraries.
12042build_libtool_libs=$enable_shared
12043
12044# Whether or not to build static libraries.
12045build_old_libs=$enable_static
12046
12047# Whether or not to add -lc for building shared libraries.
12048build_libtool_need_lc=$archive_cmds_need_lc_CXX
12049
12050# Whether or not to disallow shared libs when runtime libs are static
12051allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12052
12053# Whether or not to optimize for fast installation.
12054fast_install=$enable_fast_install
12055
12056# The host system.
12057host_alias=$host_alias
12058host=$host
12059
12060# An echo program that does not interpret backslashes.
12061echo=$lt_echo
12062
12063# The archiver.
12064AR=$lt_AR
12065AR_FLAGS=$lt_AR_FLAGS
12066
12067# A C compiler.
12068LTCC=$lt_LTCC
12069
12070# A language-specific compiler.
12071CC=$lt_compiler_CXX
12072
12073# Is the compiler the GNU C compiler?
12074with_gcc=$GCC_CXX
12075
12076# An ERE matcher.
12077EGREP=$lt_EGREP
12078
12079# The linker used to build libraries.
12080LD=$lt_LD_CXX
12081
12082# Whether we need hard or soft links.
12083LN_S=$lt_LN_S
12084
12085# A BSD-compatible nm program.
12086NM=$lt_NM
12087
12088# A symbol stripping program
12089STRIP=$STRIP
12090
12091# Used to examine libraries when file_magic_cmd begins "file"
12092MAGIC_CMD=$MAGIC_CMD
12093
12094# Used on cygwin: DLL creation program.
12095DLLTOOL="$DLLTOOL"
12096
12097# Used on cygwin: object dumper.
12098OBJDUMP="$OBJDUMP"
12099
12100# Used on cygwin: assembler.
12101AS="$AS"
12102
12103# The name of the directory that contains temporary libtool files.
12104objdir=$objdir
12105
12106# How to create reloadable object files.
12107reload_flag=$lt_reload_flag
12108reload_cmds=$lt_reload_cmds
12109
12110# How to pass a linker flag through the compiler.
12111wl=$lt_lt_prog_compiler_wl_CXX
12112
12113# Object file suffix (normally "o").
12114objext="$ac_objext"
12115
12116# Old archive suffix (normally "a").
12117libext="$libext"
12118
12119# Shared library suffix (normally ".so").
12120shrext='$shrext'
12121
12122# Executable file suffix (normally "").
12123exeext="$exeext"
12124
12125# Additional compiler flags for building library objects.
12126pic_flag=$lt_lt_prog_compiler_pic_CXX
12127pic_mode=$pic_mode
12128
12129# What is the maximum length of a command?
12130max_cmd_len=$lt_cv_sys_max_cmd_len
12131
12132# Does compiler simultaneously support -c and -o options?
12133compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12134
12135# Must we lock files when doing compilation ?
12136need_locks=$lt_need_locks
12137
12138# Do we need the lib prefix for modules?
12139need_lib_prefix=$need_lib_prefix
12140
12141# Do we need a version for libraries?
12142need_version=$need_version
12143
12144# Whether dlopen is supported.
12145dlopen_support=$enable_dlopen
12146
12147# Whether dlopen of programs is supported.
12148dlopen_self=$enable_dlopen_self
12149
12150# Whether dlopen of statically linked programs is supported.
12151dlopen_self_static=$enable_dlopen_self_static
12152
12153# Compiler flag to prevent dynamic linking.
12154link_static_flag=$lt_lt_prog_compiler_static_CXX
12155
12156# Compiler flag to turn off builtin functions.
12157no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12158
12159# Compiler flag to allow reflexive dlopens.
12160export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12161
12162# Compiler flag to generate shared objects directly from archives.
12163whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12164
12165# Compiler flag to generate thread-safe objects.
12166thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12167
12168# Library versioning type.
12169version_type=$version_type
12170
12171# Format of library name prefix.
12172libname_spec=$lt_libname_spec
12173
12174# List of archive names.  First name is the real one, the rest are links.
12175# The last name is the one that the linker finds with -lNAME.
12176library_names_spec=$lt_library_names_spec
12177
12178# The coded name of the library, if different from the real name.
12179soname_spec=$lt_soname_spec
12180
12181# Commands used to build and install an old-style archive.
12182RANLIB=$lt_RANLIB
12183old_archive_cmds=$lt_old_archive_cmds_CXX
12184old_postinstall_cmds=$lt_old_postinstall_cmds
12185old_postuninstall_cmds=$lt_old_postuninstall_cmds
12186
12187# Create an old-style archive from a shared archive.
12188old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12189
12190# Create a temporary old-style archive to link instead of a shared archive.
12191old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12192
12193# Commands used to build and install a shared archive.
12194archive_cmds=$lt_archive_cmds_CXX
12195archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12196postinstall_cmds=$lt_postinstall_cmds
12197postuninstall_cmds=$lt_postuninstall_cmds
12198
12199# Commands used to build a loadable module (assumed same as above if empty)
12200module_cmds=$lt_module_cmds_CXX
12201module_expsym_cmds=$lt_module_expsym_cmds_CXX
12202
12203# Commands to strip libraries.
12204old_striplib=$lt_old_striplib
12205striplib=$lt_striplib
12206
12207# Dependencies to place before the objects being linked to create a
12208# shared library.
12209predep_objects=$lt_predep_objects_CXX
12210
12211# Dependencies to place after the objects being linked to create a
12212# shared library.
12213postdep_objects=$lt_postdep_objects_CXX
12214
12215# Dependencies to place before the objects being linked to create a
12216# shared library.
12217predeps=$lt_predeps_CXX
12218
12219# Dependencies to place after the objects being linked to create a
12220# shared library.
12221postdeps=$lt_postdeps_CXX
12222
12223# The library search path used internally by the compiler when linking
12224# a shared library.
12225compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12226
12227# Method to check whether dependent libraries are shared objects.
12228deplibs_check_method=$lt_deplibs_check_method
12229
12230# Command to use when deplibs_check_method == file_magic.
12231file_magic_cmd=$lt_file_magic_cmd
12232
12233# Flag that allows shared libraries with undefined symbols to be built.
12234allow_undefined_flag=$lt_allow_undefined_flag_CXX
12235
12236# Flag that forces no undefined symbols.
12237no_undefined_flag=$lt_no_undefined_flag_CXX
12238
12239# Commands used to finish a libtool library installation in a directory.
12240finish_cmds=$lt_finish_cmds
12241
12242# Same as above, but a single script fragment to be evaled but not shown.
12243finish_eval=$lt_finish_eval
12244
12245# Take the output of nm and produce a listing of raw symbols and C names.
12246global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12247
12248# Transform the output of nm in a proper C declaration
12249global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12250
12251# Transform the output of nm in a C name address pair
12252global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12253
12254# This is the shared library runtime path variable.
12255runpath_var=$runpath_var
12256
12257# This is the shared library path variable.
12258shlibpath_var=$shlibpath_var
12259
12260# Is shlibpath searched before the hard-coded library search path?
12261shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12262
12263# How to hardcode a shared library path into an executable.
12264hardcode_action=$hardcode_action_CXX
12265
12266# Whether we should hardcode library paths into libraries.
12267hardcode_into_libs=$hardcode_into_libs
12268
12269# Flag to hardcode \$libdir into a binary during linking.
12270# This must work even if \$libdir does not exist.
12271hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12272
12273# If ld is used when linking, flag to hardcode \$libdir into
12274# a binary during linking. This must work even if \$libdir does
12275# not exist.
12276hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12277
12278# Whether we need a single -rpath flag with a separated argument.
12279hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12280
12281# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12282# resulting binary.
12283hardcode_direct=$hardcode_direct_CXX
12284
12285# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12286# resulting binary.
12287hardcode_minus_L=$hardcode_minus_L_CXX
12288
12289# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12290# the resulting binary.
12291hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12292
12293# Set to yes if building a shared library automatically hardcodes DIR into the library
12294# and all subsequent libraries and executables linked against it.
12295hardcode_automatic=$hardcode_automatic_CXX
12296
12297# Variables whose values should be saved in libtool wrapper scripts and
12298# restored at relink time.
12299variables_saved_for_relink="$variables_saved_for_relink"
12300
12301# Whether libtool must link a program against all its dependency libraries.
12302link_all_deplibs=$link_all_deplibs_CXX
12303
12304# Compile-time system search path for libraries
12305sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12306
12307# Run-time system search path for libraries
12308sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12309
12310# Fix the shell variable \$srcfile for the compiler.
12311fix_srcfile_path="$fix_srcfile_path_CXX"
12312
12313# Set to yes if exported symbols are required.
12314always_export_symbols=$always_export_symbols_CXX
12315
12316# The commands to list exported symbols.
12317export_symbols_cmds=$lt_export_symbols_cmds_CXX
12318
12319# The commands to extract the exported symbol list from a shared archive.
12320extract_expsyms_cmds=$lt_extract_expsyms_cmds
12321
12322# Symbols that should not be listed in the preloaded symbols.
12323exclude_expsyms=$lt_exclude_expsyms_CXX
12324
12325# Symbols that must always be exported.
12326include_expsyms=$lt_include_expsyms_CXX
12327
12328# ### END LIBTOOL TAG CONFIG: $tagname
12329
12330__EOF__
12331
12332
12333else
12334  # If there is no Makefile yet, we rely on a make rule to execute
12335  # `config.status --recheck' to rerun these tests and create the
12336  # libtool script then.
12337  test -f Makefile && make "$ltmain"
12338fi
12339
12340
12341ac_ext=c
12342ac_cpp='$CPP $CPPFLAGS'
12343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12345ac_compiler_gnu=$ac_cv_c_compiler_gnu
12346
12347CC=$lt_save_CC
12348LDCXX=$LD
12349LD=$lt_save_LD
12350GCC=$lt_save_GCC
12351with_gnu_ldcxx=$with_gnu_ld
12352with_gnu_ld=$lt_save_with_gnu_ld
12353lt_cv_path_LDCXX=$lt_cv_path_LD
12354lt_cv_path_LD=$lt_save_path_LD
12355lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12356lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12357
12358	else
12359	  tagname=""
12360	fi
12361	;;
12362
12363      F77)
12364	if test -n "$F77" && test "X$F77" != "Xno"; then
12365
12366ac_ext=f
12367ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12368ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12369ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12370
12371
12372archive_cmds_need_lc_F77=no
12373allow_undefined_flag_F77=
12374always_export_symbols_F77=no
12375archive_expsym_cmds_F77=
12376export_dynamic_flag_spec_F77=
12377hardcode_direct_F77=no
12378hardcode_libdir_flag_spec_F77=
12379hardcode_libdir_flag_spec_ld_F77=
12380hardcode_libdir_separator_F77=
12381hardcode_minus_L_F77=no
12382hardcode_automatic_F77=no
12383module_cmds_F77=
12384module_expsym_cmds_F77=
12385link_all_deplibs_F77=unknown
12386old_archive_cmds_F77=$old_archive_cmds
12387no_undefined_flag_F77=
12388whole_archive_flag_spec_F77=
12389enable_shared_with_static_runtimes_F77=no
12390
12391# Source file extension for f77 test sources.
12392ac_ext=f
12393
12394# Object file extension for compiled f77 test sources.
12395objext=o
12396objext_F77=$objext
12397
12398# Code to be used in simple compile tests
12399lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12400
12401# Code to be used in simple link tests
12402lt_simple_link_test_code="      program t\n      end\n"
12403
12404# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12405
12406# If no C compiler was specified, use CC.
12407LTCC=${LTCC-"$CC"}
12408
12409# Allow CC to be a program name with arguments.
12410compiler=$CC
12411
12412
12413# Allow CC to be a program name with arguments.
12414lt_save_CC="$CC"
12415CC=${F77-"f77"}
12416compiler=$CC
12417compiler_F77=$CC
12418cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12419
12420echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12421echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12422echo "$as_me:$LINENO: result: $can_build_shared" >&5
12423echo "${ECHO_T}$can_build_shared" >&6
12424
12425echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12426echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12427test "$can_build_shared" = "no" && enable_shared=no
12428
12429# On AIX, shared libraries and static libraries use the same namespace, and
12430# are all built from PIC.
12431case "$host_os" in
12432aix3*)
12433  test "$enable_shared" = yes && enable_static=no
12434  if test -n "$RANLIB"; then
12435    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12436    postinstall_cmds='$RANLIB $lib'
12437  fi
12438  ;;
12439aix4*)
12440  test "$enable_shared" = yes && enable_static=no
12441  ;;
12442esac
12443echo "$as_me:$LINENO: result: $enable_shared" >&5
12444echo "${ECHO_T}$enable_shared" >&6
12445
12446echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12447echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12448# Make sure either enable_shared or enable_static is yes.
12449test "$enable_shared" = yes || enable_static=yes
12450echo "$as_me:$LINENO: result: $enable_static" >&5
12451echo "${ECHO_T}$enable_static" >&6
12452
12453test "$ld_shlibs_F77" = no && can_build_shared=no
12454
12455GCC_F77="$G77"
12456LD_F77="$LD"
12457
12458lt_prog_compiler_wl_F77=
12459lt_prog_compiler_pic_F77=
12460lt_prog_compiler_static_F77=
12461
12462echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12463echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12464
12465  if test "$GCC" = yes; then
12466    lt_prog_compiler_wl_F77='-Wl,'
12467    lt_prog_compiler_static_F77='-static'
12468
12469    case $host_os in
12470      aix*)
12471      # All AIX code is PIC.
12472      if test "$host_cpu" = ia64; then
12473	# AIX 5 now supports IA64 processor
12474	lt_prog_compiler_static_F77='-Bstatic'
12475      fi
12476      ;;
12477
12478    amigaos*)
12479      # FIXME: we need at least 68020 code to build shared libraries, but
12480      # adding the `-m68020' flag to GCC prevents building anything better,
12481      # like `-m68040'.
12482      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12483      ;;
12484
12485    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12486      # PIC is the default for these OSes.
12487      ;;
12488
12489    mingw* | pw32* | os2*)
12490      # This hack is so that the source file can tell whether it is being
12491      # built for inclusion in a dll (and should export symbols for example).
12492      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12493      ;;
12494
12495    darwin* | rhapsody*)
12496      # PIC is the default on this platform
12497      # Common symbols not allowed in MH_DYLIB files
12498      lt_prog_compiler_pic_F77='-fno-common'
12499      ;;
12500
12501    msdosdjgpp*)
12502      # Just because we use GCC doesn't mean we suddenly get shared libraries
12503      # on systems that don't support them.
12504      lt_prog_compiler_can_build_shared_F77=no
12505      enable_shared=no
12506      ;;
12507
12508    sysv4*MP*)
12509      if test -d /usr/nec; then
12510	lt_prog_compiler_pic_F77=-Kconform_pic
12511      fi
12512      ;;
12513
12514    hpux*)
12515      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12516      # not for PA HP-UX.
12517      case "$host_cpu" in
12518      hppa*64*|ia64*)
12519	# +Z the default
12520	;;
12521      *)
12522	lt_prog_compiler_pic_F77='-fPIC'
12523	;;
12524      esac
12525      ;;
12526
12527    *)
12528      lt_prog_compiler_pic_F77='-fPIC'
12529      ;;
12530    esac
12531  else
12532    # PORTME Check for flag to pass linker flags through the system compiler.
12533    case $host_os in
12534    aix*)
12535      lt_prog_compiler_wl_F77='-Wl,'
12536      if test "$host_cpu" = ia64; then
12537	# AIX 5 now supports IA64 processor
12538	lt_prog_compiler_static_F77='-Bstatic'
12539      else
12540	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12541      fi
12542      ;;
12543
12544    mingw* | pw32* | os2*)
12545      # This hack is so that the source file can tell whether it is being
12546      # built for inclusion in a dll (and should export symbols for example).
12547      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12548      ;;
12549
12550    hpux9* | hpux10* | hpux11*)
12551      lt_prog_compiler_wl_F77='-Wl,'
12552      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12553      # not for PA HP-UX.
12554      case "$host_cpu" in
12555      hppa*64*|ia64*)
12556	# +Z the default
12557	;;
12558      *)
12559	lt_prog_compiler_pic_F77='+Z'
12560	;;
12561      esac
12562      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12563      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12564      ;;
12565
12566    irix5* | irix6* | nonstopux*)
12567      lt_prog_compiler_wl_F77='-Wl,'
12568      # PIC (with -KPIC) is the default.
12569      lt_prog_compiler_static_F77='-non_shared'
12570      ;;
12571
12572    newsos6)
12573      lt_prog_compiler_pic_F77='-KPIC'
12574      lt_prog_compiler_static_F77='-Bstatic'
12575      ;;
12576
12577    linux*)
12578      case $CC in
12579      icc|ecc)
12580	lt_prog_compiler_wl_F77='-Wl,'
12581	lt_prog_compiler_pic_F77='-KPIC'
12582	lt_prog_compiler_static_F77='-static'
12583        ;;
12584      ccc)
12585        lt_prog_compiler_wl_F77='-Wl,'
12586        # All Alpha code is PIC.
12587        lt_prog_compiler_static_F77='-non_shared'
12588        ;;
12589      esac
12590      ;;
12591
12592    osf3* | osf4* | osf5*)
12593      lt_prog_compiler_wl_F77='-Wl,'
12594      # All OSF/1 code is PIC.
12595      lt_prog_compiler_static_F77='-non_shared'
12596      ;;
12597
12598    sco3.2v5*)
12599      lt_prog_compiler_pic_F77='-Kpic'
12600      lt_prog_compiler_static_F77='-dn'
12601      ;;
12602
12603    solaris*)
12604      lt_prog_compiler_wl_F77='-Wl,'
12605      lt_prog_compiler_pic_F77='-KPIC'
12606      lt_prog_compiler_static_F77='-Bstatic'
12607      ;;
12608
12609    sunos4*)
12610      lt_prog_compiler_wl_F77='-Qoption ld '
12611      lt_prog_compiler_pic_F77='-PIC'
12612      lt_prog_compiler_static_F77='-Bstatic'
12613      ;;
12614
12615    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12616      lt_prog_compiler_wl_F77='-Wl,'
12617      lt_prog_compiler_pic_F77='-KPIC'
12618      lt_prog_compiler_static_F77='-Bstatic'
12619      ;;
12620
12621    sysv4*MP*)
12622      if test -d /usr/nec ;then
12623	lt_prog_compiler_pic_F77='-Kconform_pic'
12624	lt_prog_compiler_static_F77='-Bstatic'
12625      fi
12626      ;;
12627
12628    uts4*)
12629      lt_prog_compiler_pic_F77='-pic'
12630      lt_prog_compiler_static_F77='-Bstatic'
12631      ;;
12632
12633    *)
12634      lt_prog_compiler_can_build_shared_F77=no
12635      ;;
12636    esac
12637  fi
12638
12639echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12640echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12641
12642#
12643# Check to make sure the PIC flag actually works.
12644#
12645if test -n "$lt_prog_compiler_pic_F77"; then
12646  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12647echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12648if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12649  echo $ECHO_N "(cached) $ECHO_C" >&6
12650else
12651  lt_prog_compiler_pic_works_F77=no
12652  ac_outfile=conftest.$ac_objext
12653   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12654   lt_compiler_flag="$lt_prog_compiler_pic_F77"
12655   # Insert the option either (1) after the last *FLAGS variable, or
12656   # (2) before a word containing "conftest.", or (3) at the end.
12657   # Note that $ac_compile itself does not contain backslashes and begins
12658   # with a dollar sign (not a hyphen), so the echo should work correctly.
12659   # The option is referenced via a variable to avoid confusing sed.
12660   lt_compile=`echo "$ac_compile" | $SED \
12661   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12662   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12663   -e 's:$: $lt_compiler_flag:'`
12664   (eval echo "\"\$as_me:12664: $lt_compile\"" >&5)
12665   (eval "$lt_compile" 2>conftest.err)
12666   ac_status=$?
12667   cat conftest.err >&5
12668   echo "$as_me:12668: \$? = $ac_status" >&5
12669   if (exit $ac_status) && test -s "$ac_outfile"; then
12670     # The compiler can only warn and ignore the option if not recognized
12671     # So say no if there are warnings
12672     if test ! -s conftest.err; then
12673       lt_prog_compiler_pic_works_F77=yes
12674     fi
12675   fi
12676   $rm conftest*
12677
12678fi
12679echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12680echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12681
12682if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12683    case $lt_prog_compiler_pic_F77 in
12684     "" | " "*) ;;
12685     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12686     esac
12687else
12688    lt_prog_compiler_pic_F77=
12689     lt_prog_compiler_can_build_shared_F77=no
12690fi
12691
12692fi
12693case "$host_os" in
12694  # For platforms which do not support PIC, -DPIC is meaningless:
12695  *djgpp*)
12696    lt_prog_compiler_pic_F77=
12697    ;;
12698  *)
12699    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12700    ;;
12701esac
12702
12703echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12704echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12705if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12706  echo $ECHO_N "(cached) $ECHO_C" >&6
12707else
12708  lt_cv_prog_compiler_c_o_F77=no
12709   $rm -r conftest 2>/dev/null
12710   mkdir conftest
12711   cd conftest
12712   mkdir out
12713   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12714
12715   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12716   # that will create temporary files in the current directory regardless of
12717   # the output directory.  Thus, making CWD read-only will cause this test
12718   # to fail, enabling locking or at least warning the user not to do parallel
12719   # builds.
12720   chmod -w .
12721
12722   lt_compiler_flag="-o out/conftest2.$ac_objext"
12723   # Insert the option either (1) after the last *FLAGS variable, or
12724   # (2) before a word containing "conftest.", or (3) at the end.
12725   # Note that $ac_compile itself does not contain backslashes and begins
12726   # with a dollar sign (not a hyphen), so the echo should work correctly.
12727   lt_compile=`echo "$ac_compile" | $SED \
12728   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12729   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12730   -e 's:$: $lt_compiler_flag:'`
12731   (eval echo "\"\$as_me:12731: $lt_compile\"" >&5)
12732   (eval "$lt_compile" 2>out/conftest.err)
12733   ac_status=$?
12734   cat out/conftest.err >&5
12735   echo "$as_me:12735: \$? = $ac_status" >&5
12736   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12737   then
12738     # The compiler can only warn and ignore the option if not recognized
12739     # So say no if there are warnings
12740     if test ! -s out/conftest.err; then
12741       lt_cv_prog_compiler_c_o_F77=yes
12742     fi
12743   fi
12744   chmod u+w .
12745   $rm conftest* out/*
12746   rmdir out
12747   cd ..
12748   rmdir conftest
12749   $rm conftest*
12750
12751fi
12752echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12753echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12754
12755
12756hard_links="nottested"
12757if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12758  # do not overwrite the value of need_locks provided by the user
12759  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12760echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12761  hard_links=yes
12762  $rm conftest*
12763  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12764  touch conftest.a
12765  ln conftest.a conftest.b 2>&5 || hard_links=no
12766  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12767  echo "$as_me:$LINENO: result: $hard_links" >&5
12768echo "${ECHO_T}$hard_links" >&6
12769  if test "$hard_links" = no; then
12770    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12771echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12772    need_locks=warn
12773  fi
12774else
12775  need_locks=no
12776fi
12777
12778echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12779echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12780
12781  runpath_var=
12782  allow_undefined_flag_F77=
12783  enable_shared_with_static_runtimes_F77=no
12784  archive_cmds_F77=
12785  archive_expsym_cmds_F77=
12786  old_archive_From_new_cmds_F77=
12787  old_archive_from_expsyms_cmds_F77=
12788  export_dynamic_flag_spec_F77=
12789  whole_archive_flag_spec_F77=
12790  thread_safe_flag_spec_F77=
12791  hardcode_libdir_flag_spec_F77=
12792  hardcode_libdir_flag_spec_ld_F77=
12793  hardcode_libdir_separator_F77=
12794  hardcode_direct_F77=no
12795  hardcode_minus_L_F77=no
12796  hardcode_shlibpath_var_F77=unsupported
12797  link_all_deplibs_F77=unknown
12798  hardcode_automatic_F77=no
12799  module_cmds_F77=
12800  module_expsym_cmds_F77=
12801  always_export_symbols_F77=no
12802  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12803  # include_expsyms should be a list of space-separated symbols to be *always*
12804  # included in the symbol list
12805  include_expsyms_F77=
12806  # exclude_expsyms can be an extended regexp of symbols to exclude
12807  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12808  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12809  # as well as any symbol that contains `d'.
12810  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12811  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12812  # platforms (ab)use it in PIC code, but their linkers get confused if
12813  # the symbol is explicitly referenced.  Since portable code cannot
12814  # rely on this symbol name, it's probably fine to never include it in
12815  # preloaded symbol tables.
12816  extract_expsyms_cmds=
12817
12818  case $host_os in
12819  cygwin* | mingw* | pw32*)
12820    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12821    # When not using gcc, we currently assume that we are using
12822    # Microsoft Visual C++.
12823    if test "$GCC" != yes; then
12824      with_gnu_ld=no
12825    fi
12826    ;;
12827  openbsd*)
12828    with_gnu_ld=no
12829    ;;
12830  esac
12831
12832  ld_shlibs_F77=yes
12833  if test "$with_gnu_ld" = yes; then
12834    # If archive_cmds runs LD, not CC, wlarc should be empty
12835    wlarc='${wl}'
12836
12837    # See if GNU ld supports shared libraries.
12838    case $host_os in
12839    aix3* | aix4* | aix5*)
12840      # On AIX/PPC, the GNU linker is very broken
12841      if test "$host_cpu" != ia64; then
12842	ld_shlibs_F77=no
12843	cat <<EOF 1>&2
12844
12845*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12846*** to be unable to reliably create shared libraries on AIX.
12847*** Therefore, libtool is disabling shared libraries support.  If you
12848*** really care for shared libraries, you may want to modify your PATH
12849*** so that a non-GNU linker is found, and then restart.
12850
12851EOF
12852      fi
12853      ;;
12854
12855    amigaos*)
12856      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)'
12857      hardcode_libdir_flag_spec_F77='-L$libdir'
12858      hardcode_minus_L_F77=yes
12859
12860      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12861      # that the semantics of dynamic libraries on AmigaOS, at least up
12862      # to version 4, is to share data among multiple programs linked
12863      # with the same dynamic library.  Since this doesn't match the
12864      # behavior of shared libraries on other platforms, we can't use
12865      # them.
12866      ld_shlibs_F77=no
12867      ;;
12868
12869    beos*)
12870      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12871	allow_undefined_flag_F77=unsupported
12872	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12873	# support --undefined.  This deserves some investigation.  FIXME
12874	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12875      else
12876	ld_shlibs_F77=no
12877      fi
12878      ;;
12879
12880    cygwin* | mingw* | pw32*)
12881      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12882      # as there is no search path for DLLs.
12883      hardcode_libdir_flag_spec_F77='-L$libdir'
12884      allow_undefined_flag_F77=unsupported
12885      always_export_symbols_F77=no
12886      enable_shared_with_static_runtimes_F77=yes
12887      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12888
12889      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12890        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12891	# If the export-symbols file already is a .def file (1st line
12892	# is EXPORTS), use it as is; otherwise, prepend...
12893	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12894	  cp $export_symbols $output_objdir/$soname.def;
12895	else
12896	  echo EXPORTS > $output_objdir/$soname.def;
12897	  cat $export_symbols >> $output_objdir/$soname.def;
12898	fi~
12899	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12900      else
12901	ld_shlibs=no
12902      fi
12903      ;;
12904
12905    netbsd*)
12906      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12907	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12908	wlarc=
12909      else
12910	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12911	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12912      fi
12913      ;;
12914
12915    solaris* | sysv5*)
12916      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12917	ld_shlibs_F77=no
12918	cat <<EOF 1>&2
12919
12920*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12921*** create shared libraries on Solaris systems.  Therefore, libtool
12922*** is disabling shared libraries support.  We urge you to upgrade GNU
12923*** binutils to release 2.9.1 or newer.  Another option is to modify
12924*** your PATH or compiler configuration so that the native linker is
12925*** used, and then restart.
12926
12927EOF
12928      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12929	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12930	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12931      else
12932	ld_shlibs_F77=no
12933      fi
12934      ;;
12935
12936    sunos4*)
12937      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12938      wlarc=
12939      hardcode_direct_F77=yes
12940      hardcode_shlibpath_var_F77=no
12941      ;;
12942
12943    *)
12944      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12945	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12946	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12947      else
12948	ld_shlibs_F77=no
12949      fi
12950      ;;
12951    esac
12952
12953    if test "$ld_shlibs_F77" = yes; then
12954      runpath_var=LD_RUN_PATH
12955      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12956      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12957      # ancient GNU ld didn't support --whole-archive et. al.
12958      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12959 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12960      else
12961  	whole_archive_flag_spec_F77=
12962      fi
12963    fi
12964  else
12965    # PORTME fill in a description of your system's linker (not GNU ld)
12966    case $host_os in
12967    aix3*)
12968      allow_undefined_flag_F77=unsupported
12969      always_export_symbols_F77=yes
12970      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'
12971      # Note: this linker hardcodes the directories in LIBPATH if there
12972      # are no directories specified by -L.
12973      hardcode_minus_L_F77=yes
12974      if test "$GCC" = yes && test -z "$link_static_flag"; then
12975	# Neither direct hardcoding nor static linking is supported with a
12976	# broken collect2.
12977	hardcode_direct_F77=unsupported
12978      fi
12979      ;;
12980
12981    aix4* | aix5*)
12982      if test "$host_cpu" = ia64; then
12983	# On IA64, the linker does run time linking by default, so we don't
12984	# have to do anything special.
12985	aix_use_runtimelinking=no
12986	exp_sym_flag='-Bexport'
12987	no_entry_flag=""
12988      else
12989	# If we're using GNU nm, then we don't want the "-C" option.
12990	# -C means demangle to AIX nm, but means don't demangle with GNU nm
12991	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12992	  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'
12993	else
12994	  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'
12995	fi
12996	aix_use_runtimelinking=no
12997
12998	# Test if we are trying to use run time linking or normal
12999	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13000	# need to do runtime linking.
13001	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13002	  for ld_flag in $LDFLAGS; do
13003  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13004  	    aix_use_runtimelinking=yes
13005  	    break
13006  	  fi
13007	  done
13008	esac
13009
13010	exp_sym_flag='-bexport'
13011	no_entry_flag='-bnoentry'
13012      fi
13013
13014      # When large executables or shared objects are built, AIX ld can
13015      # have problems creating the table of contents.  If linking a library
13016      # or program results in "error TOC overflow" add -mminimal-toc to
13017      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13018      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13019
13020      archive_cmds_F77=''
13021      hardcode_direct_F77=yes
13022      hardcode_libdir_separator_F77=':'
13023      link_all_deplibs_F77=yes
13024
13025      if test "$GCC" = yes; then
13026	case $host_os in aix4.012|aix4.012.*)
13027	# We only want to do this on AIX 4.2 and lower, the check
13028	# below for broken collect2 doesn't work under 4.3+
13029	  collect2name=`${CC} -print-prog-name=collect2`
13030	  if test -f "$collect2name" && \
13031  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13032	  then
13033  	  # We have reworked collect2
13034  	  hardcode_direct_F77=yes
13035	  else
13036  	  # We have old collect2
13037  	  hardcode_direct_F77=unsupported
13038  	  # It fails to find uninstalled libraries when the uninstalled
13039  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13040  	  # to unsupported forces relinking
13041  	  hardcode_minus_L_F77=yes
13042  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13043  	  hardcode_libdir_separator_F77=
13044	  fi
13045	esac
13046	shared_flag='-shared'
13047      else
13048	# not using gcc
13049	if test "$host_cpu" = ia64; then
13050  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13051  	# chokes on -Wl,-G. The following line is correct:
13052	  shared_flag='-G'
13053	else
13054  	if test "$aix_use_runtimelinking" = yes; then
13055	    shared_flag='${wl}-G'
13056	  else
13057	    shared_flag='${wl}-bM:SRE'
13058  	fi
13059	fi
13060      fi
13061
13062      # It seems that -bexpall does not export symbols beginning with
13063      # underscore (_), so it is better to generate a list of symbols to export.
13064      always_export_symbols_F77=yes
13065      if test "$aix_use_runtimelinking" = yes; then
13066	# Warning - without using the other runtime loading flags (-brtl),
13067	# -berok will link without error, but may produce a broken library.
13068	allow_undefined_flag_F77='-berok'
13069       # Determine the default libpath from the value encoded in an empty executable.
13070       cat >conftest.$ac_ext <<_ACEOF
13071      program main
13072
13073      end
13074_ACEOF
13075rm -f conftest.$ac_objext conftest$ac_exeext
13076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13077  (eval $ac_link) 2>&5
13078  ac_status=$?
13079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080  (exit $ac_status); } &&
13081         { ac_try='test -s conftest$ac_exeext'
13082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083  (eval $ac_try) 2>&5
13084  ac_status=$?
13085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086  (exit $ac_status); }; }; then
13087
13088aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13089}'`
13090# Check for a 64-bit object if we didn't find anything.
13091if 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; }
13092}'`; fi
13093else
13094  echo "$as_me: failed program was:" >&5
13095sed 's/^/| /' conftest.$ac_ext >&5
13096
13097fi
13098rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13099if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13100
13101       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13102	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"
13103       else
13104	if test "$host_cpu" = ia64; then
13105	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13106	  allow_undefined_flag_F77="-z nodefs"
13107	  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"
13108	else
13109	 # Determine the default libpath from the value encoded in an empty executable.
13110	 cat >conftest.$ac_ext <<_ACEOF
13111      program main
13112
13113      end
13114_ACEOF
13115rm -f conftest.$ac_objext conftest$ac_exeext
13116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13117  (eval $ac_link) 2>&5
13118  ac_status=$?
13119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120  (exit $ac_status); } &&
13121         { ac_try='test -s conftest$ac_exeext'
13122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123  (eval $ac_try) 2>&5
13124  ac_status=$?
13125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126  (exit $ac_status); }; }; then
13127
13128aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13129}'`
13130# Check for a 64-bit object if we didn't find anything.
13131if 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; }
13132}'`; fi
13133else
13134  echo "$as_me: failed program was:" >&5
13135sed 's/^/| /' conftest.$ac_ext >&5
13136
13137fi
13138rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13139if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13140
13141	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13142	  # Warning - without using the other run time loading flags,
13143	  # -berok will link without error, but may produce a broken library.
13144	  no_undefined_flag_F77=' ${wl}-bernotok'
13145	  allow_undefined_flag_F77=' ${wl}-berok'
13146	  # -bexpall does not export symbols beginning with underscore (_)
13147	  always_export_symbols_F77=yes
13148	  # Exported symbols can be pulled into shared objects from archives
13149	  whole_archive_flag_spec_F77=' '
13150	  archive_cmds_need_lc_F77=yes
13151	  # This is similar to how AIX traditionally builds it's shared libraries.
13152	  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'
13153	fi
13154      fi
13155      ;;
13156
13157    amigaos*)
13158      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)'
13159      hardcode_libdir_flag_spec_F77='-L$libdir'
13160      hardcode_minus_L_F77=yes
13161      # see comment about different semantics on the GNU ld section
13162      ld_shlibs_F77=no
13163      ;;
13164
13165    bsdi4*)
13166      export_dynamic_flag_spec_F77=-rdynamic
13167      ;;
13168
13169    cygwin* | mingw* | pw32*)
13170      # When not using gcc, we currently assume that we are using
13171      # Microsoft Visual C++.
13172      # hardcode_libdir_flag_spec is actually meaningless, as there is
13173      # no search path for DLLs.
13174      hardcode_libdir_flag_spec_F77=' '
13175      allow_undefined_flag_F77=unsupported
13176      # Tell ltmain to make .lib files, not .a files.
13177      libext=lib
13178      # Tell ltmain to make .dll files, not .so files.
13179      shrext=".dll"
13180      # FIXME: Setting linknames here is a bad hack.
13181      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13182      # The linker will automatically build a .lib file if we build a DLL.
13183      old_archive_From_new_cmds_F77='true'
13184      # FIXME: Should let the user specify the lib program.
13185      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13186      fix_srcfile_path='`cygpath -w "$srcfile"`'
13187      enable_shared_with_static_runtimes_F77=yes
13188      ;;
13189
13190    darwin* | rhapsody*)
13191    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13192      archive_cmds_need_lc_F77=no
13193      case "$host_os" in
13194      rhapsody* | darwin1.[012])
13195	allow_undefined_flag_F77='-undefined suppress'
13196	;;
13197      *) # Darwin 1.3 on
13198	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13199	;;
13200      esac
13201      # FIXME: Relying on posixy $() will cause problems for
13202      #        cross-compilation, but unfortunately the echo tests do not
13203      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13204      #	       `"' quotes if we put them in here... so don't!
13205    	lt_int_apple_cc_single_mod=no
13206    	output_verbose_link_cmd='echo'
13207    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13208    	  lt_int_apple_cc_single_mod=yes
13209    	fi
13210    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13211    	  archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13212    	else
13213        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'
13214      fi
13215      module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13216      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13217        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13218          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}'
13219        else
13220          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}'
13221        fi
13222          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}'
13223      hardcode_direct_F77=no
13224      hardcode_automatic_F77=yes
13225      hardcode_shlibpath_var_F77=unsupported
13226      whole_archive_flag_spec_F77='-all_load $convenience'
13227      link_all_deplibs_F77=yes
13228    fi
13229      ;;
13230
13231    dgux*)
13232      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13233      hardcode_libdir_flag_spec_F77='-L$libdir'
13234      hardcode_shlibpath_var_F77=no
13235      ;;
13236
13237    freebsd1*)
13238      ld_shlibs_F77=no
13239      ;;
13240
13241    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13242    # support.  Future versions do this automatically, but an explicit c++rt0.o
13243    # does not break anything, and helps significantly (at the cost of a little
13244    # extra space).
13245    freebsd2.2*)
13246      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13247      hardcode_libdir_flag_spec_F77='-R$libdir'
13248      hardcode_direct_F77=yes
13249      hardcode_shlibpath_var_F77=no
13250      ;;
13251
13252    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13253    freebsd2*)
13254      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13255      hardcode_direct_F77=yes
13256      hardcode_minus_L_F77=yes
13257      hardcode_shlibpath_var_F77=no
13258      ;;
13259
13260    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13261    freebsd*)
13262      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13263      hardcode_libdir_flag_spec_F77='-R$libdir'
13264      hardcode_direct_F77=yes
13265      hardcode_shlibpath_var_F77=no
13266      ;;
13267
13268    hpux9*)
13269      if test "$GCC" = yes; then
13270	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'
13271      else
13272	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'
13273      fi
13274      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13275      hardcode_libdir_separator_F77=:
13276      hardcode_direct_F77=yes
13277
13278      # hardcode_minus_L: Not really in the search PATH,
13279      # but as the default location of the library.
13280      hardcode_minus_L_F77=yes
13281      export_dynamic_flag_spec_F77='${wl}-E'
13282      ;;
13283
13284    hpux10* | hpux11*)
13285      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13286	case "$host_cpu" in
13287	hppa*64*|ia64*)
13288	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13289	  ;;
13290	*)
13291	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13292	  ;;
13293	esac
13294      else
13295	case "$host_cpu" in
13296	hppa*64*|ia64*)
13297	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13298	  ;;
13299	*)
13300	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13301	  ;;
13302	esac
13303      fi
13304      if test "$with_gnu_ld" = no; then
13305	case "$host_cpu" in
13306	hppa*64*)
13307	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13308	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13309	  hardcode_libdir_separator_F77=:
13310	  hardcode_direct_F77=no
13311	  hardcode_shlibpath_var_F77=no
13312	  ;;
13313	ia64*)
13314	  hardcode_libdir_flag_spec_F77='-L$libdir'
13315	  hardcode_direct_F77=no
13316	  hardcode_shlibpath_var_F77=no
13317
13318	  # hardcode_minus_L: Not really in the search PATH,
13319	  # but as the default location of the library.
13320	  hardcode_minus_L_F77=yes
13321	  ;;
13322	*)
13323	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13324	  hardcode_libdir_separator_F77=:
13325	  hardcode_direct_F77=yes
13326	  export_dynamic_flag_spec_F77='${wl}-E'
13327
13328	  # hardcode_minus_L: Not really in the search PATH,
13329	  # but as the default location of the library.
13330	  hardcode_minus_L_F77=yes
13331	  ;;
13332	esac
13333      fi
13334      ;;
13335
13336    irix5* | irix6* | nonstopux*)
13337      if test "$GCC" = yes; then
13338	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'
13339      else
13340	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'
13341	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13342      fi
13343      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13344      hardcode_libdir_separator_F77=:
13345      link_all_deplibs_F77=yes
13346      ;;
13347
13348    netbsd*)
13349      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13350	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13351      else
13352	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13353      fi
13354      hardcode_libdir_flag_spec_F77='-R$libdir'
13355      hardcode_direct_F77=yes
13356      hardcode_shlibpath_var_F77=no
13357      ;;
13358
13359    newsos6)
13360      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13361      hardcode_direct_F77=yes
13362      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13363      hardcode_libdir_separator_F77=:
13364      hardcode_shlibpath_var_F77=no
13365      ;;
13366
13367    openbsd*)
13368      hardcode_direct_F77=yes
13369      hardcode_shlibpath_var_F77=no
13370      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13371	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13372	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13373	export_dynamic_flag_spec_F77='${wl}-E'
13374      else
13375       case $host_os in
13376	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13377	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13378	   hardcode_libdir_flag_spec_F77='-R$libdir'
13379	   ;;
13380	 *)
13381	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13382	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13383	   ;;
13384       esac
13385      fi
13386      ;;
13387
13388    os2*)
13389      hardcode_libdir_flag_spec_F77='-L$libdir'
13390      hardcode_minus_L_F77=yes
13391      allow_undefined_flag_F77=unsupported
13392      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'
13393      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13394      ;;
13395
13396    osf3*)
13397      if test "$GCC" = yes; then
13398	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13399	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'
13400      else
13401	allow_undefined_flag_F77=' -expect_unresolved \*'
13402	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'
13403      fi
13404      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13405      hardcode_libdir_separator_F77=:
13406      ;;
13407
13408    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13409      if test "$GCC" = yes; then
13410	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13411	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'
13412	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13413      else
13414	allow_undefined_flag_F77=' -expect_unresolved \*'
13415	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'
13416	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~
13417	$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'
13418
13419	# Both c and cxx compiler support -rpath directly
13420	hardcode_libdir_flag_spec_F77='-rpath $libdir'
13421      fi
13422      hardcode_libdir_separator_F77=:
13423      ;;
13424
13425    sco3.2v5*)
13426      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13427      hardcode_shlibpath_var_F77=no
13428      export_dynamic_flag_spec_F77='${wl}-Bexport'
13429      runpath_var=LD_RUN_PATH
13430      hardcode_runpath_var=yes
13431      ;;
13432
13433    solaris*)
13434      no_undefined_flag_F77=' -z text'
13435      if test "$GCC" = yes; then
13436	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13437	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13438	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13439      else
13440	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13441	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13442  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13443      fi
13444      hardcode_libdir_flag_spec_F77='-R$libdir'
13445      hardcode_shlibpath_var_F77=no
13446      case $host_os in
13447      solaris2.[0-5] | solaris2.[0-5].*) ;;
13448      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13449	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13450      esac
13451      link_all_deplibs_F77=yes
13452      ;;
13453
13454    sunos4*)
13455      if test "x$host_vendor" = xsequent; then
13456	# Use $CC to link under sequent, because it throws in some extra .o
13457	# files that make .init and .fini sections work.
13458	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13459      else
13460	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13461      fi
13462      hardcode_libdir_flag_spec_F77='-L$libdir'
13463      hardcode_direct_F77=yes
13464      hardcode_minus_L_F77=yes
13465      hardcode_shlibpath_var_F77=no
13466      ;;
13467
13468    sysv4)
13469      case $host_vendor in
13470	sni)
13471	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13472	  hardcode_direct_F77=yes # is this really true???
13473	;;
13474	siemens)
13475	  ## LD is ld it makes a PLAMLIB
13476	  ## CC just makes a GrossModule.
13477	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13478	  reload_cmds_F77='$CC -r -o $output$reload_objs'
13479	  hardcode_direct_F77=no
13480        ;;
13481	motorola)
13482	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13483	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13484	;;
13485      esac
13486      runpath_var='LD_RUN_PATH'
13487      hardcode_shlibpath_var_F77=no
13488      ;;
13489
13490    sysv4.3*)
13491      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13492      hardcode_shlibpath_var_F77=no
13493      export_dynamic_flag_spec_F77='-Bexport'
13494      ;;
13495
13496    sysv4*MP*)
13497      if test -d /usr/nec; then
13498	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13499	hardcode_shlibpath_var_F77=no
13500	runpath_var=LD_RUN_PATH
13501	hardcode_runpath_var=yes
13502	ld_shlibs_F77=yes
13503      fi
13504      ;;
13505
13506    sysv4.2uw2*)
13507      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13508      hardcode_direct_F77=yes
13509      hardcode_minus_L_F77=no
13510      hardcode_shlibpath_var_F77=no
13511      hardcode_runpath_var=yes
13512      runpath_var=LD_RUN_PATH
13513      ;;
13514
13515   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13516      no_undefined_flag_F77='${wl}-z ${wl}text'
13517      if test "$GCC" = yes; then
13518	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13519      else
13520	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13521      fi
13522      runpath_var='LD_RUN_PATH'
13523      hardcode_shlibpath_var_F77=no
13524      ;;
13525
13526    sysv5*)
13527      no_undefined_flag_F77=' -z text'
13528      # $CC -shared without GNU ld will not create a library from C++
13529      # object files and a static libstdc++, better avoid it by now
13530      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13531      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13532  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13533      hardcode_libdir_flag_spec_F77=
13534      hardcode_shlibpath_var_F77=no
13535      runpath_var='LD_RUN_PATH'
13536      ;;
13537
13538    uts4*)
13539      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13540      hardcode_libdir_flag_spec_F77='-L$libdir'
13541      hardcode_shlibpath_var_F77=no
13542      ;;
13543
13544    *)
13545      ld_shlibs_F77=no
13546      ;;
13547    esac
13548  fi
13549
13550echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13551echo "${ECHO_T}$ld_shlibs_F77" >&6
13552test "$ld_shlibs_F77" = no && can_build_shared=no
13553
13554variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13555if test "$GCC" = yes; then
13556  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13557fi
13558
13559#
13560# Do we need to explicitly link libc?
13561#
13562case "x$archive_cmds_need_lc_F77" in
13563x|xyes)
13564  # Assume -lc should be added
13565  archive_cmds_need_lc_F77=yes
13566
13567  if test "$enable_shared" = yes && test "$GCC" = yes; then
13568    case $archive_cmds_F77 in
13569    *'~'*)
13570      # FIXME: we may have to deal with multi-command sequences.
13571      ;;
13572    '$CC '*)
13573      # Test whether the compiler implicitly links with -lc since on some
13574      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13575      # to ld, don't add -lc before -lgcc.
13576      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13577echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13578      $rm conftest*
13579      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13580
13581      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13582  (eval $ac_compile) 2>&5
13583  ac_status=$?
13584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585  (exit $ac_status); } 2>conftest.err; then
13586        soname=conftest
13587        lib=conftest
13588        libobjs=conftest.$ac_objext
13589        deplibs=
13590        wl=$lt_prog_compiler_wl_F77
13591        compiler_flags=-v
13592        linker_flags=-v
13593        verstring=
13594        output_objdir=.
13595        libname=conftest
13596        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13597        allow_undefined_flag_F77=
13598        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13599  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13600  ac_status=$?
13601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602  (exit $ac_status); }
13603        then
13604	  archive_cmds_need_lc_F77=no
13605        else
13606	  archive_cmds_need_lc_F77=yes
13607        fi
13608        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13609      else
13610        cat conftest.err 1>&5
13611      fi
13612      $rm conftest*
13613      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13614echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13615      ;;
13616    esac
13617  fi
13618  ;;
13619esac
13620
13621echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13622echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13623hardcode_action_F77=
13624if test -n "$hardcode_libdir_flag_spec_F77" || \
13625   test -n "$runpath_var F77" || \
13626   test "X$hardcode_automatic_F77"="Xyes" ; then
13627
13628  # We can hardcode non-existant directories.
13629  if test "$hardcode_direct_F77" != no &&
13630     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13631     # have to relink, otherwise we might link with an installed library
13632     # when we should be linking with a yet-to-be-installed one
13633     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13634     test "$hardcode_minus_L_F77" != no; then
13635    # Linking always hardcodes the temporary library directory.
13636    hardcode_action_F77=relink
13637  else
13638    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13639    hardcode_action_F77=immediate
13640  fi
13641else
13642  # We cannot hardcode anything, or else we can only hardcode existing
13643  # directories.
13644  hardcode_action_F77=unsupported
13645fi
13646echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13647echo "${ECHO_T}$hardcode_action_F77" >&6
13648
13649if test "$hardcode_action_F77" = relink; then
13650  # Fast installation is not supported
13651  enable_fast_install=no
13652elif test "$shlibpath_overrides_runpath" = yes ||
13653     test "$enable_shared" = no; then
13654  # Fast installation is not necessary
13655  enable_fast_install=needless
13656fi
13657
13658striplib=
13659old_striplib=
13660echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13661echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13662if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13663  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13664  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13665  echo "$as_me:$LINENO: result: yes" >&5
13666echo "${ECHO_T}yes" >&6
13667else
13668# FIXME - insert some real tests, host_os isn't really good enough
13669  case $host_os in
13670   darwin*)
13671       if test -n "$STRIP" ; then
13672         striplib="$STRIP -x"
13673         echo "$as_me:$LINENO: result: yes" >&5
13674echo "${ECHO_T}yes" >&6
13675       else
13676  echo "$as_me:$LINENO: result: no" >&5
13677echo "${ECHO_T}no" >&6
13678fi
13679       ;;
13680   *)
13681  echo "$as_me:$LINENO: result: no" >&5
13682echo "${ECHO_T}no" >&6
13683    ;;
13684  esac
13685fi
13686
13687echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13688echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13689library_names_spec=
13690libname_spec='lib$name'
13691soname_spec=
13692shrext=".so"
13693postinstall_cmds=
13694postuninstall_cmds=
13695finish_cmds=
13696finish_eval=
13697shlibpath_var=
13698shlibpath_overrides_runpath=unknown
13699version_type=none
13700dynamic_linker="$host_os ld.so"
13701sys_lib_dlsearch_path_spec="/lib /usr/lib"
13702if test "$GCC" = yes; then
13703  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13704  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13705    # if the path contains ";" then we assume it to be the separator
13706    # otherwise default to the standard path separator (i.e. ":") - it is
13707    # assumed that no part of a normal pathname contains ";" but that should
13708    # okay in the real world where ";" in dirpaths is itself problematic.
13709    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13710  else
13711    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13712  fi
13713else
13714  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13715fi
13716need_lib_prefix=unknown
13717hardcode_into_libs=no
13718
13719# when you set need_version to no, make sure it does not cause -set_version
13720# flags to be left without arguments
13721need_version=unknown
13722
13723case $host_os in
13724aix3*)
13725  version_type=linux
13726  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13727  shlibpath_var=LIBPATH
13728
13729  # AIX 3 has no versioning support, so we append a major version to the name.
13730  soname_spec='${libname}${release}${shared_ext}$major'
13731  ;;
13732
13733aix4* | aix5*)
13734  version_type=linux
13735  need_lib_prefix=no
13736  need_version=no
13737  hardcode_into_libs=yes
13738  if test "$host_cpu" = ia64; then
13739    # AIX 5 supports IA64
13740    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13741    shlibpath_var=LD_LIBRARY_PATH
13742  else
13743    # With GCC up to 2.95.x, collect2 would create an import file
13744    # for dependence libraries.  The import file would start with
13745    # the line `#! .'.  This would cause the generated library to
13746    # depend on `.', always an invalid library.  This was fixed in
13747    # development snapshots of GCC prior to 3.0.
13748    case $host_os in
13749      aix4 | aix4.[01] | aix4.[01].*)
13750      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13751	   echo ' yes '
13752	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13753	:
13754      else
13755	can_build_shared=no
13756      fi
13757      ;;
13758    esac
13759    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13760    # soname into executable. Probably we can add versioning support to
13761    # collect2, so additional links can be useful in future.
13762    if test "$aix_use_runtimelinking" = yes; then
13763      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13764      # instead of lib<name>.a to let people know that these are not
13765      # typical AIX shared libraries.
13766      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13767    else
13768      # We preserve .a as extension for shared libraries through AIX4.2
13769      # and later when we are not doing run time linking.
13770      library_names_spec='${libname}${release}.a $libname.a'
13771      soname_spec='${libname}${release}${shared_ext}$major'
13772    fi
13773    shlibpath_var=LIBPATH
13774  fi
13775  ;;
13776
13777amigaos*)
13778  library_names_spec='$libname.ixlibrary $libname.a'
13779  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13780  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'
13781  ;;
13782
13783beos*)
13784  library_names_spec='${libname}${shared_ext}'
13785  dynamic_linker="$host_os ld.so"
13786  shlibpath_var=LIBRARY_PATH
13787  ;;
13788
13789bsdi4*)
13790  version_type=linux
13791  need_version=no
13792  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13793  soname_spec='${libname}${release}${shared_ext}$major'
13794  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13795  shlibpath_var=LD_LIBRARY_PATH
13796  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13797  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13798  # the default ld.so.conf also contains /usr/contrib/lib and
13799  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13800  # libtool to hard-code these into programs
13801  ;;
13802
13803cygwin* | mingw* | pw32*)
13804  version_type=windows
13805  shrext=".dll"
13806  need_version=no
13807  need_lib_prefix=no
13808
13809  case $GCC,$host_os in
13810  yes,cygwin* | yes,mingw* | yes,pw32*)
13811    library_names_spec='$libname.dll.a'
13812    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13813    postinstall_cmds='base_file=`basename \${file}`~
13814      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13815      dldir=$destdir/`dirname \$dlpath`~
13816      test -d \$dldir || mkdir -p \$dldir~
13817      $install_prog $dir/$dlname \$dldir/$dlname'
13818    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13819      dlpath=$dir/\$dldll~
13820       $rm \$dlpath'
13821    shlibpath_overrides_runpath=yes
13822
13823    case $host_os in
13824    cygwin*)
13825      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13826      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13827      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13828      ;;
13829    mingw*)
13830      # MinGW DLLs use traditional 'lib' prefix
13831      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13832      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13833      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13834        # It is most probably a Windows format PATH printed by
13835        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13836        # path with ; separators, and with drive letters. We can handle the
13837        # drive letters (cygwin fileutils understands them), so leave them,
13838        # especially as we might pass files found there to a mingw objdump,
13839        # which wouldn't understand a cygwinified path. Ahh.
13840        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13841      else
13842        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13843      fi
13844      ;;
13845    pw32*)
13846      # pw32 DLLs use 'pw' prefix rather than 'lib'
13847      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13848      ;;
13849    esac
13850    ;;
13851
13852  *)
13853    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13854    ;;
13855  esac
13856  dynamic_linker='Win32 ld.exe'
13857  # FIXME: first we should search . and the directory the executable is in
13858  shlibpath_var=PATH
13859  ;;
13860
13861darwin* | rhapsody*)
13862  dynamic_linker="$host_os dyld"
13863  version_type=darwin
13864  need_lib_prefix=no
13865  need_version=no
13866  # FIXME: Relying on posixy $() will cause problems for
13867  #        cross-compilation, but unfortunately the echo tests do not
13868  #        yet detect zsh echo's removal of \ escapes.
13869  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13870  soname_spec='${libname}${release}${major}$shared_ext'
13871  shlibpath_overrides_runpath=yes
13872  shlibpath_var=DYLD_LIBRARY_PATH
13873  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13874  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13875  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13876  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"`
13877  fi
13878  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13879  ;;
13880
13881dgux*)
13882  version_type=linux
13883  need_lib_prefix=no
13884  need_version=no
13885  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13886  soname_spec='${libname}${release}${shared_ext}$major'
13887  shlibpath_var=LD_LIBRARY_PATH
13888  ;;
13889
13890freebsd1*)
13891  dynamic_linker=no
13892  ;;
13893
13894freebsd*)
13895  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13896  version_type=freebsd-$objformat
13897  case $version_type in
13898    freebsd-elf*)
13899      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13900      need_version=no
13901      need_lib_prefix=no
13902      ;;
13903    freebsd-*)
13904      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13905      need_version=yes
13906      ;;
13907  esac
13908  shlibpath_var=LD_LIBRARY_PATH
13909  case $host_os in
13910  freebsd2*)
13911    shlibpath_overrides_runpath=yes
13912    ;;
13913  freebsd3.01* | freebsdelf3.01*)
13914    shlibpath_overrides_runpath=yes
13915    hardcode_into_libs=yes
13916    ;;
13917  *) # from 3.2 on
13918    shlibpath_overrides_runpath=no
13919    hardcode_into_libs=yes
13920    ;;
13921  esac
13922  ;;
13923
13924gnu*)
13925  version_type=linux
13926  need_lib_prefix=no
13927  need_version=no
13928  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13929  soname_spec='${libname}${release}${shared_ext}$major'
13930  shlibpath_var=LD_LIBRARY_PATH
13931  hardcode_into_libs=yes
13932  ;;
13933
13934hpux9* | hpux10* | hpux11*)
13935  # Give a soname corresponding to the major version so that dld.sl refuses to
13936  # link against other versions.
13937  version_type=sunos
13938  need_lib_prefix=no
13939  need_version=no
13940  case "$host_cpu" in
13941  ia64*)
13942    shrext='.so'
13943    hardcode_into_libs=yes
13944    dynamic_linker="$host_os dld.so"
13945    shlibpath_var=LD_LIBRARY_PATH
13946    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13947    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13948    soname_spec='${libname}${release}${shared_ext}$major'
13949    if test "X$HPUX_IA64_MODE" = X32; then
13950      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13951    else
13952      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13953    fi
13954    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13955    ;;
13956   hppa*64*)
13957     shrext='.sl'
13958     hardcode_into_libs=yes
13959     dynamic_linker="$host_os dld.sl"
13960     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13961     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13962     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13963     soname_spec='${libname}${release}${shared_ext}$major'
13964     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13965     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13966     ;;
13967   *)
13968    shrext='.sl'
13969    dynamic_linker="$host_os dld.sl"
13970    shlibpath_var=SHLIB_PATH
13971    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13972    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13973    soname_spec='${libname}${release}${shared_ext}$major'
13974    ;;
13975  esac
13976  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13977  postinstall_cmds='chmod 555 $lib'
13978  ;;
13979
13980irix5* | irix6* | nonstopux*)
13981  case $host_os in
13982    nonstopux*) version_type=nonstopux ;;
13983    *)
13984	if test "$lt_cv_prog_gnu_ld" = yes; then
13985		version_type=linux
13986	else
13987		version_type=irix
13988	fi ;;
13989  esac
13990  need_lib_prefix=no
13991  need_version=no
13992  soname_spec='${libname}${release}${shared_ext}$major'
13993  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13994  case $host_os in
13995  irix5* | nonstopux*)
13996    libsuff= shlibsuff=
13997    ;;
13998  *)
13999    case $LD in # libtool.m4 will add one of these switches to LD
14000    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14001      libsuff= shlibsuff= libmagic=32-bit;;
14002    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14003      libsuff=32 shlibsuff=N32 libmagic=N32;;
14004    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14005      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14006    *) libsuff= shlibsuff= libmagic=never-match;;
14007    esac
14008    ;;
14009  esac
14010  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14011  shlibpath_overrides_runpath=no
14012  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14013  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14014  hardcode_into_libs=yes
14015  ;;
14016
14017# No shared lib support for Linux oldld, aout, or coff.
14018linux*oldld* | linux*aout* | linux*coff*)
14019  dynamic_linker=no
14020  ;;
14021
14022# This must be Linux ELF.
14023linux*)
14024  version_type=linux
14025  need_lib_prefix=no
14026  need_version=no
14027  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14028  soname_spec='${libname}${release}${shared_ext}$major'
14029  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14030  shlibpath_var=LD_LIBRARY_PATH
14031  shlibpath_overrides_runpath=no
14032  # This implies no fast_install, which is unacceptable.
14033  # Some rework will be needed to allow for fast_install
14034  # before this can be enabled.
14035  hardcode_into_libs=yes
14036
14037  # We used to test for /lib/ld.so.1 and disable shared libraries on
14038  # powerpc, because MkLinux only supported shared libraries with the
14039  # GNU dynamic linker.  Since this was broken with cross compilers,
14040  # most powerpc-linux boxes support dynamic linking these days and
14041  # people can always --disable-shared, the test was removed, and we
14042  # assume the GNU/Linux dynamic linker is in use.
14043  dynamic_linker='GNU/Linux ld.so'
14044  ;;
14045
14046netbsd*)
14047  version_type=sunos
14048  need_lib_prefix=no
14049  need_version=no
14050  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14051    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14052    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14053    dynamic_linker='NetBSD (a.out) ld.so'
14054  else
14055    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14056    soname_spec='${libname}${release}${shared_ext}$major'
14057    dynamic_linker='NetBSD ld.elf_so'
14058  fi
14059  shlibpath_var=LD_LIBRARY_PATH
14060  shlibpath_overrides_runpath=yes
14061  hardcode_into_libs=yes
14062  ;;
14063
14064newsos6)
14065  version_type=linux
14066  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14067  shlibpath_var=LD_LIBRARY_PATH
14068  shlibpath_overrides_runpath=yes
14069  ;;
14070
14071nto-qnx)
14072  version_type=linux
14073  need_lib_prefix=no
14074  need_version=no
14075  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14076  soname_spec='${libname}${release}${shared_ext}$major'
14077  shlibpath_var=LD_LIBRARY_PATH
14078  shlibpath_overrides_runpath=yes
14079  ;;
14080
14081openbsd*)
14082  version_type=sunos
14083  need_lib_prefix=no
14084  need_version=no
14085  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14086  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14087  shlibpath_var=LD_LIBRARY_PATH
14088  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14089    case $host_os in
14090      openbsd2.[89] | openbsd2.[89].*)
14091	shlibpath_overrides_runpath=no
14092	;;
14093      *)
14094	shlibpath_overrides_runpath=yes
14095	;;
14096      esac
14097  else
14098    shlibpath_overrides_runpath=yes
14099  fi
14100  ;;
14101
14102os2*)
14103  libname_spec='$name'
14104  shrext=".dll"
14105  need_lib_prefix=no
14106  library_names_spec='$libname${shared_ext} $libname.a'
14107  dynamic_linker='OS/2 ld.exe'
14108  shlibpath_var=LIBPATH
14109  ;;
14110
14111osf3* | osf4* | osf5*)
14112  version_type=osf
14113  need_lib_prefix=no
14114  need_version=no
14115  soname_spec='${libname}${release}${shared_ext}$major'
14116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14117  shlibpath_var=LD_LIBRARY_PATH
14118  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14119  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14120  ;;
14121
14122sco3.2v5*)
14123  version_type=osf
14124  soname_spec='${libname}${release}${shared_ext}$major'
14125  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14126  shlibpath_var=LD_LIBRARY_PATH
14127  ;;
14128
14129solaris*)
14130  version_type=linux
14131  need_lib_prefix=no
14132  need_version=no
14133  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14134  soname_spec='${libname}${release}${shared_ext}$major'
14135  shlibpath_var=LD_LIBRARY_PATH
14136  shlibpath_overrides_runpath=yes
14137  hardcode_into_libs=yes
14138  # ldd complains unless libraries are executable
14139  postinstall_cmds='chmod +x $lib'
14140  ;;
14141
14142sunos4*)
14143  version_type=sunos
14144  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14145  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14146  shlibpath_var=LD_LIBRARY_PATH
14147  shlibpath_overrides_runpath=yes
14148  if test "$with_gnu_ld" = yes; then
14149    need_lib_prefix=no
14150  fi
14151  need_version=yes
14152  ;;
14153
14154sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14155  version_type=linux
14156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14157  soname_spec='${libname}${release}${shared_ext}$major'
14158  shlibpath_var=LD_LIBRARY_PATH
14159  case $host_vendor in
14160    sni)
14161      shlibpath_overrides_runpath=no
14162      need_lib_prefix=no
14163      export_dynamic_flag_spec='${wl}-Blargedynsym'
14164      runpath_var=LD_RUN_PATH
14165      ;;
14166    siemens)
14167      need_lib_prefix=no
14168      ;;
14169    motorola)
14170      need_lib_prefix=no
14171      need_version=no
14172      shlibpath_overrides_runpath=no
14173      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14174      ;;
14175  esac
14176  ;;
14177
14178sysv4*MP*)
14179  if test -d /usr/nec ;then
14180    version_type=linux
14181    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14182    soname_spec='$libname${shared_ext}.$major'
14183    shlibpath_var=LD_LIBRARY_PATH
14184  fi
14185  ;;
14186
14187uts4*)
14188  version_type=linux
14189  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14190  soname_spec='${libname}${release}${shared_ext}$major'
14191  shlibpath_var=LD_LIBRARY_PATH
14192  ;;
14193
14194*)
14195  dynamic_linker=no
14196  ;;
14197esac
14198echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14199echo "${ECHO_T}$dynamic_linker" >&6
14200test "$dynamic_linker" = no && can_build_shared=no
14201
14202
14203# The else clause should only fire when bootstrapping the
14204# libtool distribution, otherwise you forgot to ship ltmain.sh
14205# with your package, and you will get complaints that there are
14206# no rules to generate ltmain.sh.
14207if test -f "$ltmain"; then
14208  # See if we are running on zsh, and set the options which allow our commands through
14209  # without removal of \ escapes.
14210  if test -n "${ZSH_VERSION+set}" ; then
14211    setopt NO_GLOB_SUBST
14212  fi
14213  # Now quote all the things that may contain metacharacters while being
14214  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14215  # variables and quote the copies for generation of the libtool script.
14216  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14217    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14218    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14219    deplibs_check_method reload_flag reload_cmds need_locks \
14220    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14221    lt_cv_sys_global_symbol_to_c_name_address \
14222    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14223    old_postinstall_cmds old_postuninstall_cmds \
14224    compiler_F77 \
14225    CC_F77 \
14226    LD_F77 \
14227    lt_prog_compiler_wl_F77 \
14228    lt_prog_compiler_pic_F77 \
14229    lt_prog_compiler_static_F77 \
14230    lt_prog_compiler_no_builtin_flag_F77 \
14231    export_dynamic_flag_spec_F77 \
14232    thread_safe_flag_spec_F77 \
14233    whole_archive_flag_spec_F77 \
14234    enable_shared_with_static_runtimes_F77 \
14235    old_archive_cmds_F77 \
14236    old_archive_from_new_cmds_F77 \
14237    predep_objects_F77 \
14238    postdep_objects_F77 \
14239    predeps_F77 \
14240    postdeps_F77 \
14241    compiler_lib_search_path_F77 \
14242    archive_cmds_F77 \
14243    archive_expsym_cmds_F77 \
14244    postinstall_cmds_F77 \
14245    postuninstall_cmds_F77 \
14246    old_archive_from_expsyms_cmds_F77 \
14247    allow_undefined_flag_F77 \
14248    no_undefined_flag_F77 \
14249    export_symbols_cmds_F77 \
14250    hardcode_libdir_flag_spec_F77 \
14251    hardcode_libdir_flag_spec_ld_F77 \
14252    hardcode_libdir_separator_F77 \
14253    hardcode_automatic_F77 \
14254    module_cmds_F77 \
14255    module_expsym_cmds_F77 \
14256    lt_cv_prog_compiler_c_o_F77 \
14257    exclude_expsyms_F77 \
14258    include_expsyms_F77; do
14259
14260    case $var in
14261    old_archive_cmds_F77 | \
14262    old_archive_from_new_cmds_F77 | \
14263    archive_cmds_F77 | \
14264    archive_expsym_cmds_F77 | \
14265    module_cmds_F77 | \
14266    module_expsym_cmds_F77 | \
14267    old_archive_from_expsyms_cmds_F77 | \
14268    export_symbols_cmds_F77 | \
14269    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14270    postinstall_cmds | postuninstall_cmds | \
14271    old_postinstall_cmds | old_postuninstall_cmds | \
14272    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14273      # Double-quote double-evaled strings.
14274      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14275      ;;
14276    *)
14277      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14278      ;;
14279    esac
14280  done
14281
14282  case $lt_echo in
14283  *'\$0 --fallback-echo"')
14284    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14285    ;;
14286  esac
14287
14288cfgfile="$ofile"
14289
14290  cat <<__EOF__ >> "$cfgfile"
14291# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14292
14293# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14294
14295# Shell to use when invoking shell scripts.
14296SHELL=$lt_SHELL
14297
14298# Whether or not to build shared libraries.
14299build_libtool_libs=$enable_shared
14300
14301# Whether or not to build static libraries.
14302build_old_libs=$enable_static
14303
14304# Whether or not to add -lc for building shared libraries.
14305build_libtool_need_lc=$archive_cmds_need_lc_F77
14306
14307# Whether or not to disallow shared libs when runtime libs are static
14308allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14309
14310# Whether or not to optimize for fast installation.
14311fast_install=$enable_fast_install
14312
14313# The host system.
14314host_alias=$host_alias
14315host=$host
14316
14317# An echo program that does not interpret backslashes.
14318echo=$lt_echo
14319
14320# The archiver.
14321AR=$lt_AR
14322AR_FLAGS=$lt_AR_FLAGS
14323
14324# A C compiler.
14325LTCC=$lt_LTCC
14326
14327# A language-specific compiler.
14328CC=$lt_compiler_F77
14329
14330# Is the compiler the GNU C compiler?
14331with_gcc=$GCC_F77
14332
14333# An ERE matcher.
14334EGREP=$lt_EGREP
14335
14336# The linker used to build libraries.
14337LD=$lt_LD_F77
14338
14339# Whether we need hard or soft links.
14340LN_S=$lt_LN_S
14341
14342# A BSD-compatible nm program.
14343NM=$lt_NM
14344
14345# A symbol stripping program
14346STRIP=$STRIP
14347
14348# Used to examine libraries when file_magic_cmd begins "file"
14349MAGIC_CMD=$MAGIC_CMD
14350
14351# Used on cygwin: DLL creation program.
14352DLLTOOL="$DLLTOOL"
14353
14354# Used on cygwin: object dumper.
14355OBJDUMP="$OBJDUMP"
14356
14357# Used on cygwin: assembler.
14358AS="$AS"
14359
14360# The name of the directory that contains temporary libtool files.
14361objdir=$objdir
14362
14363# How to create reloadable object files.
14364reload_flag=$lt_reload_flag
14365reload_cmds=$lt_reload_cmds
14366
14367# How to pass a linker flag through the compiler.
14368wl=$lt_lt_prog_compiler_wl_F77
14369
14370# Object file suffix (normally "o").
14371objext="$ac_objext"
14372
14373# Old archive suffix (normally "a").
14374libext="$libext"
14375
14376# Shared library suffix (normally ".so").
14377shrext='$shrext'
14378
14379# Executable file suffix (normally "").
14380exeext="$exeext"
14381
14382# Additional compiler flags for building library objects.
14383pic_flag=$lt_lt_prog_compiler_pic_F77
14384pic_mode=$pic_mode
14385
14386# What is the maximum length of a command?
14387max_cmd_len=$lt_cv_sys_max_cmd_len
14388
14389# Does compiler simultaneously support -c and -o options?
14390compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14391
14392# Must we lock files when doing compilation ?
14393need_locks=$lt_need_locks
14394
14395# Do we need the lib prefix for modules?
14396need_lib_prefix=$need_lib_prefix
14397
14398# Do we need a version for libraries?
14399need_version=$need_version
14400
14401# Whether dlopen is supported.
14402dlopen_support=$enable_dlopen
14403
14404# Whether dlopen of programs is supported.
14405dlopen_self=$enable_dlopen_self
14406
14407# Whether dlopen of statically linked programs is supported.
14408dlopen_self_static=$enable_dlopen_self_static
14409
14410# Compiler flag to prevent dynamic linking.
14411link_static_flag=$lt_lt_prog_compiler_static_F77
14412
14413# Compiler flag to turn off builtin functions.
14414no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14415
14416# Compiler flag to allow reflexive dlopens.
14417export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14418
14419# Compiler flag to generate shared objects directly from archives.
14420whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14421
14422# Compiler flag to generate thread-safe objects.
14423thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14424
14425# Library versioning type.
14426version_type=$version_type
14427
14428# Format of library name prefix.
14429libname_spec=$lt_libname_spec
14430
14431# List of archive names.  First name is the real one, the rest are links.
14432# The last name is the one that the linker finds with -lNAME.
14433library_names_spec=$lt_library_names_spec
14434
14435# The coded name of the library, if different from the real name.
14436soname_spec=$lt_soname_spec
14437
14438# Commands used to build and install an old-style archive.
14439RANLIB=$lt_RANLIB
14440old_archive_cmds=$lt_old_archive_cmds_F77
14441old_postinstall_cmds=$lt_old_postinstall_cmds
14442old_postuninstall_cmds=$lt_old_postuninstall_cmds
14443
14444# Create an old-style archive from a shared archive.
14445old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14446
14447# Create a temporary old-style archive to link instead of a shared archive.
14448old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14449
14450# Commands used to build and install a shared archive.
14451archive_cmds=$lt_archive_cmds_F77
14452archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14453postinstall_cmds=$lt_postinstall_cmds
14454postuninstall_cmds=$lt_postuninstall_cmds
14455
14456# Commands used to build a loadable module (assumed same as above if empty)
14457module_cmds=$lt_module_cmds_F77
14458module_expsym_cmds=$lt_module_expsym_cmds_F77
14459
14460# Commands to strip libraries.
14461old_striplib=$lt_old_striplib
14462striplib=$lt_striplib
14463
14464# Dependencies to place before the objects being linked to create a
14465# shared library.
14466predep_objects=$lt_predep_objects_F77
14467
14468# Dependencies to place after the objects being linked to create a
14469# shared library.
14470postdep_objects=$lt_postdep_objects_F77
14471
14472# Dependencies to place before the objects being linked to create a
14473# shared library.
14474predeps=$lt_predeps_F77
14475
14476# Dependencies to place after the objects being linked to create a
14477# shared library.
14478postdeps=$lt_postdeps_F77
14479
14480# The library search path used internally by the compiler when linking
14481# a shared library.
14482compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14483
14484# Method to check whether dependent libraries are shared objects.
14485deplibs_check_method=$lt_deplibs_check_method
14486
14487# Command to use when deplibs_check_method == file_magic.
14488file_magic_cmd=$lt_file_magic_cmd
14489
14490# Flag that allows shared libraries with undefined symbols to be built.
14491allow_undefined_flag=$lt_allow_undefined_flag_F77
14492
14493# Flag that forces no undefined symbols.
14494no_undefined_flag=$lt_no_undefined_flag_F77
14495
14496# Commands used to finish a libtool library installation in a directory.
14497finish_cmds=$lt_finish_cmds
14498
14499# Same as above, but a single script fragment to be evaled but not shown.
14500finish_eval=$lt_finish_eval
14501
14502# Take the output of nm and produce a listing of raw symbols and C names.
14503global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14504
14505# Transform the output of nm in a proper C declaration
14506global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14507
14508# Transform the output of nm in a C name address pair
14509global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14510
14511# This is the shared library runtime path variable.
14512runpath_var=$runpath_var
14513
14514# This is the shared library path variable.
14515shlibpath_var=$shlibpath_var
14516
14517# Is shlibpath searched before the hard-coded library search path?
14518shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14519
14520# How to hardcode a shared library path into an executable.
14521hardcode_action=$hardcode_action_F77
14522
14523# Whether we should hardcode library paths into libraries.
14524hardcode_into_libs=$hardcode_into_libs
14525
14526# Flag to hardcode \$libdir into a binary during linking.
14527# This must work even if \$libdir does not exist.
14528hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14529
14530# If ld is used when linking, flag to hardcode \$libdir into
14531# a binary during linking. This must work even if \$libdir does
14532# not exist.
14533hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14534
14535# Whether we need a single -rpath flag with a separated argument.
14536hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14537
14538# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14539# resulting binary.
14540hardcode_direct=$hardcode_direct_F77
14541
14542# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14543# resulting binary.
14544hardcode_minus_L=$hardcode_minus_L_F77
14545
14546# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14547# the resulting binary.
14548hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14549
14550# Set to yes if building a shared library automatically hardcodes DIR into the library
14551# and all subsequent libraries and executables linked against it.
14552hardcode_automatic=$hardcode_automatic_F77
14553
14554# Variables whose values should be saved in libtool wrapper scripts and
14555# restored at relink time.
14556variables_saved_for_relink="$variables_saved_for_relink"
14557
14558# Whether libtool must link a program against all its dependency libraries.
14559link_all_deplibs=$link_all_deplibs_F77
14560
14561# Compile-time system search path for libraries
14562sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14563
14564# Run-time system search path for libraries
14565sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14566
14567# Fix the shell variable \$srcfile for the compiler.
14568fix_srcfile_path="$fix_srcfile_path_F77"
14569
14570# Set to yes if exported symbols are required.
14571always_export_symbols=$always_export_symbols_F77
14572
14573# The commands to list exported symbols.
14574export_symbols_cmds=$lt_export_symbols_cmds_F77
14575
14576# The commands to extract the exported symbol list from a shared archive.
14577extract_expsyms_cmds=$lt_extract_expsyms_cmds
14578
14579# Symbols that should not be listed in the preloaded symbols.
14580exclude_expsyms=$lt_exclude_expsyms_F77
14581
14582# Symbols that must always be exported.
14583include_expsyms=$lt_include_expsyms_F77
14584
14585# ### END LIBTOOL TAG CONFIG: $tagname
14586
14587__EOF__
14588
14589
14590else
14591  # If there is no Makefile yet, we rely on a make rule to execute
14592  # `config.status --recheck' to rerun these tests and create the
14593  # libtool script then.
14594  test -f Makefile && make "$ltmain"
14595fi
14596
14597
14598ac_ext=c
14599ac_cpp='$CPP $CPPFLAGS'
14600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14602ac_compiler_gnu=$ac_cv_c_compiler_gnu
14603
14604CC="$lt_save_CC"
14605
14606	else
14607	  tagname=""
14608	fi
14609	;;
14610
14611      GCJ)
14612	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14613
14614
14615
14616# Source file extension for Java test sources.
14617ac_ext=java
14618
14619# Object file extension for compiled Java test sources.
14620objext=o
14621objext_GCJ=$objext
14622
14623# Code to be used in simple compile tests
14624lt_simple_compile_test_code="class foo {}\n"
14625
14626# Code to be used in simple link tests
14627lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14628
14629# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14630
14631# If no C compiler was specified, use CC.
14632LTCC=${LTCC-"$CC"}
14633
14634# Allow CC to be a program name with arguments.
14635compiler=$CC
14636
14637
14638# Allow CC to be a program name with arguments.
14639lt_save_CC="$CC"
14640CC=${GCJ-"gcj"}
14641compiler=$CC
14642compiler_GCJ=$CC
14643
14644# GCJ did not exist at the time GCC didn't implicitly link libc in.
14645archive_cmds_need_lc_GCJ=no
14646
14647
14648lt_prog_compiler_no_builtin_flag_GCJ=
14649
14650if test "$GCC" = yes; then
14651  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14652
14653  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14654echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14655if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14656  echo $ECHO_N "(cached) $ECHO_C" >&6
14657else
14658  lt_cv_prog_compiler_rtti_exceptions=no
14659  ac_outfile=conftest.$ac_objext
14660   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14661   lt_compiler_flag="-fno-rtti -fno-exceptions"
14662   # Insert the option either (1) after the last *FLAGS variable, or
14663   # (2) before a word containing "conftest.", or (3) at the end.
14664   # Note that $ac_compile itself does not contain backslashes and begins
14665   # with a dollar sign (not a hyphen), so the echo should work correctly.
14666   # The option is referenced via a variable to avoid confusing sed.
14667   lt_compile=`echo "$ac_compile" | $SED \
14668   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14669   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14670   -e 's:$: $lt_compiler_flag:'`
14671   (eval echo "\"\$as_me:14671: $lt_compile\"" >&5)
14672   (eval "$lt_compile" 2>conftest.err)
14673   ac_status=$?
14674   cat conftest.err >&5
14675   echo "$as_me:14675: \$? = $ac_status" >&5
14676   if (exit $ac_status) && test -s "$ac_outfile"; then
14677     # The compiler can only warn and ignore the option if not recognized
14678     # So say no if there are warnings
14679     if test ! -s conftest.err; then
14680       lt_cv_prog_compiler_rtti_exceptions=yes
14681     fi
14682   fi
14683   $rm conftest*
14684
14685fi
14686echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14687echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14688
14689if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14690    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14691else
14692    :
14693fi
14694
14695fi
14696
14697lt_prog_compiler_wl_GCJ=
14698lt_prog_compiler_pic_GCJ=
14699lt_prog_compiler_static_GCJ=
14700
14701echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14702echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14703
14704  if test "$GCC" = yes; then
14705    lt_prog_compiler_wl_GCJ='-Wl,'
14706    lt_prog_compiler_static_GCJ='-static'
14707
14708    case $host_os in
14709      aix*)
14710      # All AIX code is PIC.
14711      if test "$host_cpu" = ia64; then
14712	# AIX 5 now supports IA64 processor
14713	lt_prog_compiler_static_GCJ='-Bstatic'
14714      fi
14715      ;;
14716
14717    amigaos*)
14718      # FIXME: we need at least 68020 code to build shared libraries, but
14719      # adding the `-m68020' flag to GCC prevents building anything better,
14720      # like `-m68040'.
14721      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14722      ;;
14723
14724    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14725      # PIC is the default for these OSes.
14726      ;;
14727
14728    mingw* | pw32* | os2*)
14729      # This hack is so that the source file can tell whether it is being
14730      # built for inclusion in a dll (and should export symbols for example).
14731      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14732      ;;
14733
14734    darwin* | rhapsody*)
14735      # PIC is the default on this platform
14736      # Common symbols not allowed in MH_DYLIB files
14737      lt_prog_compiler_pic_GCJ='-fno-common'
14738      ;;
14739
14740    msdosdjgpp*)
14741      # Just because we use GCC doesn't mean we suddenly get shared libraries
14742      # on systems that don't support them.
14743      lt_prog_compiler_can_build_shared_GCJ=no
14744      enable_shared=no
14745      ;;
14746
14747    sysv4*MP*)
14748      if test -d /usr/nec; then
14749	lt_prog_compiler_pic_GCJ=-Kconform_pic
14750      fi
14751      ;;
14752
14753    hpux*)
14754      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14755      # not for PA HP-UX.
14756      case "$host_cpu" in
14757      hppa*64*|ia64*)
14758	# +Z the default
14759	;;
14760      *)
14761	lt_prog_compiler_pic_GCJ='-fPIC'
14762	;;
14763      esac
14764      ;;
14765
14766    *)
14767      lt_prog_compiler_pic_GCJ='-fPIC'
14768      ;;
14769    esac
14770  else
14771    # PORTME Check for flag to pass linker flags through the system compiler.
14772    case $host_os in
14773    aix*)
14774      lt_prog_compiler_wl_GCJ='-Wl,'
14775      if test "$host_cpu" = ia64; then
14776	# AIX 5 now supports IA64 processor
14777	lt_prog_compiler_static_GCJ='-Bstatic'
14778      else
14779	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14780      fi
14781      ;;
14782
14783    mingw* | pw32* | os2*)
14784      # This hack is so that the source file can tell whether it is being
14785      # built for inclusion in a dll (and should export symbols for example).
14786      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14787      ;;
14788
14789    hpux9* | hpux10* | hpux11*)
14790      lt_prog_compiler_wl_GCJ='-Wl,'
14791      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14792      # not for PA HP-UX.
14793      case "$host_cpu" in
14794      hppa*64*|ia64*)
14795	# +Z the default
14796	;;
14797      *)
14798	lt_prog_compiler_pic_GCJ='+Z'
14799	;;
14800      esac
14801      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14802      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14803      ;;
14804
14805    irix5* | irix6* | nonstopux*)
14806      lt_prog_compiler_wl_GCJ='-Wl,'
14807      # PIC (with -KPIC) is the default.
14808      lt_prog_compiler_static_GCJ='-non_shared'
14809      ;;
14810
14811    newsos6)
14812      lt_prog_compiler_pic_GCJ='-KPIC'
14813      lt_prog_compiler_static_GCJ='-Bstatic'
14814      ;;
14815
14816    linux*)
14817      case $CC in
14818      icc|ecc)
14819	lt_prog_compiler_wl_GCJ='-Wl,'
14820	lt_prog_compiler_pic_GCJ='-KPIC'
14821	lt_prog_compiler_static_GCJ='-static'
14822        ;;
14823      ccc)
14824        lt_prog_compiler_wl_GCJ='-Wl,'
14825        # All Alpha code is PIC.
14826        lt_prog_compiler_static_GCJ='-non_shared'
14827        ;;
14828      esac
14829      ;;
14830
14831    osf3* | osf4* | osf5*)
14832      lt_prog_compiler_wl_GCJ='-Wl,'
14833      # All OSF/1 code is PIC.
14834      lt_prog_compiler_static_GCJ='-non_shared'
14835      ;;
14836
14837    sco3.2v5*)
14838      lt_prog_compiler_pic_GCJ='-Kpic'
14839      lt_prog_compiler_static_GCJ='-dn'
14840      ;;
14841
14842    solaris*)
14843      lt_prog_compiler_wl_GCJ='-Wl,'
14844      lt_prog_compiler_pic_GCJ='-KPIC'
14845      lt_prog_compiler_static_GCJ='-Bstatic'
14846      ;;
14847
14848    sunos4*)
14849      lt_prog_compiler_wl_GCJ='-Qoption ld '
14850      lt_prog_compiler_pic_GCJ='-PIC'
14851      lt_prog_compiler_static_GCJ='-Bstatic'
14852      ;;
14853
14854    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14855      lt_prog_compiler_wl_GCJ='-Wl,'
14856      lt_prog_compiler_pic_GCJ='-KPIC'
14857      lt_prog_compiler_static_GCJ='-Bstatic'
14858      ;;
14859
14860    sysv4*MP*)
14861      if test -d /usr/nec ;then
14862	lt_prog_compiler_pic_GCJ='-Kconform_pic'
14863	lt_prog_compiler_static_GCJ='-Bstatic'
14864      fi
14865      ;;
14866
14867    uts4*)
14868      lt_prog_compiler_pic_GCJ='-pic'
14869      lt_prog_compiler_static_GCJ='-Bstatic'
14870      ;;
14871
14872    *)
14873      lt_prog_compiler_can_build_shared_GCJ=no
14874      ;;
14875    esac
14876  fi
14877
14878echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14879echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14880
14881#
14882# Check to make sure the PIC flag actually works.
14883#
14884if test -n "$lt_prog_compiler_pic_GCJ"; then
14885  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14886echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14887if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14888  echo $ECHO_N "(cached) $ECHO_C" >&6
14889else
14890  lt_prog_compiler_pic_works_GCJ=no
14891  ac_outfile=conftest.$ac_objext
14892   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14893   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14894   # Insert the option either (1) after the last *FLAGS variable, or
14895   # (2) before a word containing "conftest.", or (3) at the end.
14896   # Note that $ac_compile itself does not contain backslashes and begins
14897   # with a dollar sign (not a hyphen), so the echo should work correctly.
14898   # The option is referenced via a variable to avoid confusing sed.
14899   lt_compile=`echo "$ac_compile" | $SED \
14900   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14901   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14902   -e 's:$: $lt_compiler_flag:'`
14903   (eval echo "\"\$as_me:14903: $lt_compile\"" >&5)
14904   (eval "$lt_compile" 2>conftest.err)
14905   ac_status=$?
14906   cat conftest.err >&5
14907   echo "$as_me:14907: \$? = $ac_status" >&5
14908   if (exit $ac_status) && test -s "$ac_outfile"; then
14909     # The compiler can only warn and ignore the option if not recognized
14910     # So say no if there are warnings
14911     if test ! -s conftest.err; then
14912       lt_prog_compiler_pic_works_GCJ=yes
14913     fi
14914   fi
14915   $rm conftest*
14916
14917fi
14918echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14919echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14920
14921if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14922    case $lt_prog_compiler_pic_GCJ in
14923     "" | " "*) ;;
14924     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14925     esac
14926else
14927    lt_prog_compiler_pic_GCJ=
14928     lt_prog_compiler_can_build_shared_GCJ=no
14929fi
14930
14931fi
14932case "$host_os" in
14933  # For platforms which do not support PIC, -DPIC is meaningless:
14934  *djgpp*)
14935    lt_prog_compiler_pic_GCJ=
14936    ;;
14937  *)
14938    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14939    ;;
14940esac
14941
14942echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14943echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14944if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14945  echo $ECHO_N "(cached) $ECHO_C" >&6
14946else
14947  lt_cv_prog_compiler_c_o_GCJ=no
14948   $rm -r conftest 2>/dev/null
14949   mkdir conftest
14950   cd conftest
14951   mkdir out
14952   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14953
14954   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14955   # that will create temporary files in the current directory regardless of
14956   # the output directory.  Thus, making CWD read-only will cause this test
14957   # to fail, enabling locking or at least warning the user not to do parallel
14958   # builds.
14959   chmod -w .
14960
14961   lt_compiler_flag="-o out/conftest2.$ac_objext"
14962   # Insert the option either (1) after the last *FLAGS variable, or
14963   # (2) before a word containing "conftest.", or (3) at the end.
14964   # Note that $ac_compile itself does not contain backslashes and begins
14965   # with a dollar sign (not a hyphen), so the echo should work correctly.
14966   lt_compile=`echo "$ac_compile" | $SED \
14967   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14968   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14969   -e 's:$: $lt_compiler_flag:'`
14970   (eval echo "\"\$as_me:14970: $lt_compile\"" >&5)
14971   (eval "$lt_compile" 2>out/conftest.err)
14972   ac_status=$?
14973   cat out/conftest.err >&5
14974   echo "$as_me:14974: \$? = $ac_status" >&5
14975   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14976   then
14977     # The compiler can only warn and ignore the option if not recognized
14978     # So say no if there are warnings
14979     if test ! -s out/conftest.err; then
14980       lt_cv_prog_compiler_c_o_GCJ=yes
14981     fi
14982   fi
14983   chmod u+w .
14984   $rm conftest* out/*
14985   rmdir out
14986   cd ..
14987   rmdir conftest
14988   $rm conftest*
14989
14990fi
14991echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14992echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14993
14994
14995hard_links="nottested"
14996if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14997  # do not overwrite the value of need_locks provided by the user
14998  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14999echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15000  hard_links=yes
15001  $rm conftest*
15002  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15003  touch conftest.a
15004  ln conftest.a conftest.b 2>&5 || hard_links=no
15005  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15006  echo "$as_me:$LINENO: result: $hard_links" >&5
15007echo "${ECHO_T}$hard_links" >&6
15008  if test "$hard_links" = no; then
15009    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15010echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15011    need_locks=warn
15012  fi
15013else
15014  need_locks=no
15015fi
15016
15017echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15018echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15019
15020  runpath_var=
15021  allow_undefined_flag_GCJ=
15022  enable_shared_with_static_runtimes_GCJ=no
15023  archive_cmds_GCJ=
15024  archive_expsym_cmds_GCJ=
15025  old_archive_From_new_cmds_GCJ=
15026  old_archive_from_expsyms_cmds_GCJ=
15027  export_dynamic_flag_spec_GCJ=
15028  whole_archive_flag_spec_GCJ=
15029  thread_safe_flag_spec_GCJ=
15030  hardcode_libdir_flag_spec_GCJ=
15031  hardcode_libdir_flag_spec_ld_GCJ=
15032  hardcode_libdir_separator_GCJ=
15033  hardcode_direct_GCJ=no
15034  hardcode_minus_L_GCJ=no
15035  hardcode_shlibpath_var_GCJ=unsupported
15036  link_all_deplibs_GCJ=unknown
15037  hardcode_automatic_GCJ=no
15038  module_cmds_GCJ=
15039  module_expsym_cmds_GCJ=
15040  always_export_symbols_GCJ=no
15041  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15042  # include_expsyms should be a list of space-separated symbols to be *always*
15043  # included in the symbol list
15044  include_expsyms_GCJ=
15045  # exclude_expsyms can be an extended regexp of symbols to exclude
15046  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15047  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15048  # as well as any symbol that contains `d'.
15049  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15050  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15051  # platforms (ab)use it in PIC code, but their linkers get confused if
15052  # the symbol is explicitly referenced.  Since portable code cannot
15053  # rely on this symbol name, it's probably fine to never include it in
15054  # preloaded symbol tables.
15055  extract_expsyms_cmds=
15056
15057  case $host_os in
15058  cygwin* | mingw* | pw32*)
15059    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15060    # When not using gcc, we currently assume that we are using
15061    # Microsoft Visual C++.
15062    if test "$GCC" != yes; then
15063      with_gnu_ld=no
15064    fi
15065    ;;
15066  openbsd*)
15067    with_gnu_ld=no
15068    ;;
15069  esac
15070
15071  ld_shlibs_GCJ=yes
15072  if test "$with_gnu_ld" = yes; then
15073    # If archive_cmds runs LD, not CC, wlarc should be empty
15074    wlarc='${wl}'
15075
15076    # See if GNU ld supports shared libraries.
15077    case $host_os in
15078    aix3* | aix4* | aix5*)
15079      # On AIX/PPC, the GNU linker is very broken
15080      if test "$host_cpu" != ia64; then
15081	ld_shlibs_GCJ=no
15082	cat <<EOF 1>&2
15083
15084*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15085*** to be unable to reliably create shared libraries on AIX.
15086*** Therefore, libtool is disabling shared libraries support.  If you
15087*** really care for shared libraries, you may want to modify your PATH
15088*** so that a non-GNU linker is found, and then restart.
15089
15090EOF
15091      fi
15092      ;;
15093
15094    amigaos*)
15095      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)'
15096      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15097      hardcode_minus_L_GCJ=yes
15098
15099      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15100      # that the semantics of dynamic libraries on AmigaOS, at least up
15101      # to version 4, is to share data among multiple programs linked
15102      # with the same dynamic library.  Since this doesn't match the
15103      # behavior of shared libraries on other platforms, we can't use
15104      # them.
15105      ld_shlibs_GCJ=no
15106      ;;
15107
15108    beos*)
15109      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15110	allow_undefined_flag_GCJ=unsupported
15111	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15112	# support --undefined.  This deserves some investigation.  FIXME
15113	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15114      else
15115	ld_shlibs_GCJ=no
15116      fi
15117      ;;
15118
15119    cygwin* | mingw* | pw32*)
15120      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15121      # as there is no search path for DLLs.
15122      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15123      allow_undefined_flag_GCJ=unsupported
15124      always_export_symbols_GCJ=no
15125      enable_shared_with_static_runtimes_GCJ=yes
15126      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15127
15128      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15129        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15130	# If the export-symbols file already is a .def file (1st line
15131	# is EXPORTS), use it as is; otherwise, prepend...
15132	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15133	  cp $export_symbols $output_objdir/$soname.def;
15134	else
15135	  echo EXPORTS > $output_objdir/$soname.def;
15136	  cat $export_symbols >> $output_objdir/$soname.def;
15137	fi~
15138	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15139      else
15140	ld_shlibs=no
15141      fi
15142      ;;
15143
15144    netbsd*)
15145      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15146	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15147	wlarc=
15148      else
15149	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15150	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15151      fi
15152      ;;
15153
15154    solaris* | sysv5*)
15155      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15156	ld_shlibs_GCJ=no
15157	cat <<EOF 1>&2
15158
15159*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15160*** create shared libraries on Solaris systems.  Therefore, libtool
15161*** is disabling shared libraries support.  We urge you to upgrade GNU
15162*** binutils to release 2.9.1 or newer.  Another option is to modify
15163*** your PATH or compiler configuration so that the native linker is
15164*** used, and then restart.
15165
15166EOF
15167      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15168	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15169	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15170      else
15171	ld_shlibs_GCJ=no
15172      fi
15173      ;;
15174
15175    sunos4*)
15176      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15177      wlarc=
15178      hardcode_direct_GCJ=yes
15179      hardcode_shlibpath_var_GCJ=no
15180      ;;
15181
15182    *)
15183      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15184	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15185	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15186      else
15187	ld_shlibs_GCJ=no
15188      fi
15189      ;;
15190    esac
15191
15192    if test "$ld_shlibs_GCJ" = yes; then
15193      runpath_var=LD_RUN_PATH
15194      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15195      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15196      # ancient GNU ld didn't support --whole-archive et. al.
15197      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15198 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15199      else
15200  	whole_archive_flag_spec_GCJ=
15201      fi
15202    fi
15203  else
15204    # PORTME fill in a description of your system's linker (not GNU ld)
15205    case $host_os in
15206    aix3*)
15207      allow_undefined_flag_GCJ=unsupported
15208      always_export_symbols_GCJ=yes
15209      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'
15210      # Note: this linker hardcodes the directories in LIBPATH if there
15211      # are no directories specified by -L.
15212      hardcode_minus_L_GCJ=yes
15213      if test "$GCC" = yes && test -z "$link_static_flag"; then
15214	# Neither direct hardcoding nor static linking is supported with a
15215	# broken collect2.
15216	hardcode_direct_GCJ=unsupported
15217      fi
15218      ;;
15219
15220    aix4* | aix5*)
15221      if test "$host_cpu" = ia64; then
15222	# On IA64, the linker does run time linking by default, so we don't
15223	# have to do anything special.
15224	aix_use_runtimelinking=no
15225	exp_sym_flag='-Bexport'
15226	no_entry_flag=""
15227      else
15228	# If we're using GNU nm, then we don't want the "-C" option.
15229	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15230	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15231	  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'
15232	else
15233	  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'
15234	fi
15235	aix_use_runtimelinking=no
15236
15237	# Test if we are trying to use run time linking or normal
15238	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15239	# need to do runtime linking.
15240	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15241	  for ld_flag in $LDFLAGS; do
15242  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15243  	    aix_use_runtimelinking=yes
15244  	    break
15245  	  fi
15246	  done
15247	esac
15248
15249	exp_sym_flag='-bexport'
15250	no_entry_flag='-bnoentry'
15251      fi
15252
15253      # When large executables or shared objects are built, AIX ld can
15254      # have problems creating the table of contents.  If linking a library
15255      # or program results in "error TOC overflow" add -mminimal-toc to
15256      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15257      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15258
15259      archive_cmds_GCJ=''
15260      hardcode_direct_GCJ=yes
15261      hardcode_libdir_separator_GCJ=':'
15262      link_all_deplibs_GCJ=yes
15263
15264      if test "$GCC" = yes; then
15265	case $host_os in aix4.012|aix4.012.*)
15266	# We only want to do this on AIX 4.2 and lower, the check
15267	# below for broken collect2 doesn't work under 4.3+
15268	  collect2name=`${CC} -print-prog-name=collect2`
15269	  if test -f "$collect2name" && \
15270  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15271	  then
15272  	  # We have reworked collect2
15273  	  hardcode_direct_GCJ=yes
15274	  else
15275  	  # We have old collect2
15276  	  hardcode_direct_GCJ=unsupported
15277  	  # It fails to find uninstalled libraries when the uninstalled
15278  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15279  	  # to unsupported forces relinking
15280  	  hardcode_minus_L_GCJ=yes
15281  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
15282  	  hardcode_libdir_separator_GCJ=
15283	  fi
15284	esac
15285	shared_flag='-shared'
15286      else
15287	# not using gcc
15288	if test "$host_cpu" = ia64; then
15289  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15290  	# chokes on -Wl,-G. The following line is correct:
15291	  shared_flag='-G'
15292	else
15293  	if test "$aix_use_runtimelinking" = yes; then
15294	    shared_flag='${wl}-G'
15295	  else
15296	    shared_flag='${wl}-bM:SRE'
15297  	fi
15298	fi
15299      fi
15300
15301      # It seems that -bexpall does not export symbols beginning with
15302      # underscore (_), so it is better to generate a list of symbols to export.
15303      always_export_symbols_GCJ=yes
15304      if test "$aix_use_runtimelinking" = yes; then
15305	# Warning - without using the other runtime loading flags (-brtl),
15306	# -berok will link without error, but may produce a broken library.
15307	allow_undefined_flag_GCJ='-berok'
15308       # Determine the default libpath from the value encoded in an empty executable.
15309       cat >conftest.$ac_ext <<_ACEOF
15310#line $LINENO "configure"
15311/* confdefs.h.  */
15312_ACEOF
15313cat confdefs.h >>conftest.$ac_ext
15314cat >>conftest.$ac_ext <<_ACEOF
15315/* end confdefs.h.  */
15316
15317int
15318main ()
15319{
15320
15321  ;
15322  return 0;
15323}
15324_ACEOF
15325rm -f conftest.$ac_objext conftest$ac_exeext
15326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15327  (eval $ac_link) 2>&5
15328  ac_status=$?
15329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330  (exit $ac_status); } &&
15331         { ac_try='test -s conftest$ac_exeext'
15332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333  (eval $ac_try) 2>&5
15334  ac_status=$?
15335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336  (exit $ac_status); }; }; then
15337
15338aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15339}'`
15340# Check for a 64-bit object if we didn't find anything.
15341if 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; }
15342}'`; fi
15343else
15344  echo "$as_me: failed program was:" >&5
15345sed 's/^/| /' conftest.$ac_ext >&5
15346
15347fi
15348rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15349if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15350
15351       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15352	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"
15353       else
15354	if test "$host_cpu" = ia64; then
15355	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15356	  allow_undefined_flag_GCJ="-z nodefs"
15357	  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"
15358	else
15359	 # Determine the default libpath from the value encoded in an empty executable.
15360	 cat >conftest.$ac_ext <<_ACEOF
15361#line $LINENO "configure"
15362/* confdefs.h.  */
15363_ACEOF
15364cat confdefs.h >>conftest.$ac_ext
15365cat >>conftest.$ac_ext <<_ACEOF
15366/* end confdefs.h.  */
15367
15368int
15369main ()
15370{
15371
15372  ;
15373  return 0;
15374}
15375_ACEOF
15376rm -f conftest.$ac_objext conftest$ac_exeext
15377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15378  (eval $ac_link) 2>&5
15379  ac_status=$?
15380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381  (exit $ac_status); } &&
15382         { ac_try='test -s conftest$ac_exeext'
15383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15384  (eval $ac_try) 2>&5
15385  ac_status=$?
15386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387  (exit $ac_status); }; }; then
15388
15389aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15390}'`
15391# Check for a 64-bit object if we didn't find anything.
15392if 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; }
15393}'`; fi
15394else
15395  echo "$as_me: failed program was:" >&5
15396sed 's/^/| /' conftest.$ac_ext >&5
15397
15398fi
15399rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15400if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15401
15402	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15403	  # Warning - without using the other run time loading flags,
15404	  # -berok will link without error, but may produce a broken library.
15405	  no_undefined_flag_GCJ=' ${wl}-bernotok'
15406	  allow_undefined_flag_GCJ=' ${wl}-berok'
15407	  # -bexpall does not export symbols beginning with underscore (_)
15408	  always_export_symbols_GCJ=yes
15409	  # Exported symbols can be pulled into shared objects from archives
15410	  whole_archive_flag_spec_GCJ=' '
15411	  archive_cmds_need_lc_GCJ=yes
15412	  # This is similar to how AIX traditionally builds it's shared libraries.
15413	  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'
15414	fi
15415      fi
15416      ;;
15417
15418    amigaos*)
15419      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)'
15420      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15421      hardcode_minus_L_GCJ=yes
15422      # see comment about different semantics on the GNU ld section
15423      ld_shlibs_GCJ=no
15424      ;;
15425
15426    bsdi4*)
15427      export_dynamic_flag_spec_GCJ=-rdynamic
15428      ;;
15429
15430    cygwin* | mingw* | pw32*)
15431      # When not using gcc, we currently assume that we are using
15432      # Microsoft Visual C++.
15433      # hardcode_libdir_flag_spec is actually meaningless, as there is
15434      # no search path for DLLs.
15435      hardcode_libdir_flag_spec_GCJ=' '
15436      allow_undefined_flag_GCJ=unsupported
15437      # Tell ltmain to make .lib files, not .a files.
15438      libext=lib
15439      # Tell ltmain to make .dll files, not .so files.
15440      shrext=".dll"
15441      # FIXME: Setting linknames here is a bad hack.
15442      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15443      # The linker will automatically build a .lib file if we build a DLL.
15444      old_archive_From_new_cmds_GCJ='true'
15445      # FIXME: Should let the user specify the lib program.
15446      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15447      fix_srcfile_path='`cygpath -w "$srcfile"`'
15448      enable_shared_with_static_runtimes_GCJ=yes
15449      ;;
15450
15451    darwin* | rhapsody*)
15452    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15453      archive_cmds_need_lc_GCJ=no
15454      case "$host_os" in
15455      rhapsody* | darwin1.[012])
15456	allow_undefined_flag_GCJ='-undefined suppress'
15457	;;
15458      *) # Darwin 1.3 on
15459	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15460	;;
15461      esac
15462      # FIXME: Relying on posixy $() will cause problems for
15463      #        cross-compilation, but unfortunately the echo tests do not
15464      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15465      #	       `"' quotes if we put them in here... so don't!
15466    	lt_int_apple_cc_single_mod=no
15467    	output_verbose_link_cmd='echo'
15468    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15469    	  lt_int_apple_cc_single_mod=yes
15470    	fi
15471    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15472    	  archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15473    	else
15474        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'
15475      fi
15476      module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15477      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15478        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15479          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}'
15480        else
15481          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}'
15482        fi
15483          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}'
15484      hardcode_direct_GCJ=no
15485      hardcode_automatic_GCJ=yes
15486      hardcode_shlibpath_var_GCJ=unsupported
15487      whole_archive_flag_spec_GCJ='-all_load $convenience'
15488      link_all_deplibs_GCJ=yes
15489    fi
15490      ;;
15491
15492    dgux*)
15493      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15494      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15495      hardcode_shlibpath_var_GCJ=no
15496      ;;
15497
15498    freebsd1*)
15499      ld_shlibs_GCJ=no
15500      ;;
15501
15502    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15503    # support.  Future versions do this automatically, but an explicit c++rt0.o
15504    # does not break anything, and helps significantly (at the cost of a little
15505    # extra space).
15506    freebsd2.2*)
15507      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15508      hardcode_libdir_flag_spec_GCJ='-R$libdir'
15509      hardcode_direct_GCJ=yes
15510      hardcode_shlibpath_var_GCJ=no
15511      ;;
15512
15513    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15514    freebsd2*)
15515      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15516      hardcode_direct_GCJ=yes
15517      hardcode_minus_L_GCJ=yes
15518      hardcode_shlibpath_var_GCJ=no
15519      ;;
15520
15521    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15522    freebsd*)
15523      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15524      hardcode_libdir_flag_spec_GCJ='-R$libdir'
15525      hardcode_direct_GCJ=yes
15526      hardcode_shlibpath_var_GCJ=no
15527      ;;
15528
15529    hpux9*)
15530      if test "$GCC" = yes; then
15531	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'
15532      else
15533	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'
15534      fi
15535      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15536      hardcode_libdir_separator_GCJ=:
15537      hardcode_direct_GCJ=yes
15538
15539      # hardcode_minus_L: Not really in the search PATH,
15540      # but as the default location of the library.
15541      hardcode_minus_L_GCJ=yes
15542      export_dynamic_flag_spec_GCJ='${wl}-E'
15543      ;;
15544
15545    hpux10* | hpux11*)
15546      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15547	case "$host_cpu" in
15548	hppa*64*|ia64*)
15549	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15550	  ;;
15551	*)
15552	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15553	  ;;
15554	esac
15555      else
15556	case "$host_cpu" in
15557	hppa*64*|ia64*)
15558	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15559	  ;;
15560	*)
15561	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15562	  ;;
15563	esac
15564      fi
15565      if test "$with_gnu_ld" = no; then
15566	case "$host_cpu" in
15567	hppa*64*)
15568	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15569	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15570	  hardcode_libdir_separator_GCJ=:
15571	  hardcode_direct_GCJ=no
15572	  hardcode_shlibpath_var_GCJ=no
15573	  ;;
15574	ia64*)
15575	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
15576	  hardcode_direct_GCJ=no
15577	  hardcode_shlibpath_var_GCJ=no
15578
15579	  # hardcode_minus_L: Not really in the search PATH,
15580	  # but as the default location of the library.
15581	  hardcode_minus_L_GCJ=yes
15582	  ;;
15583	*)
15584	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15585	  hardcode_libdir_separator_GCJ=:
15586	  hardcode_direct_GCJ=yes
15587	  export_dynamic_flag_spec_GCJ='${wl}-E'
15588
15589	  # hardcode_minus_L: Not really in the search PATH,
15590	  # but as the default location of the library.
15591	  hardcode_minus_L_GCJ=yes
15592	  ;;
15593	esac
15594      fi
15595      ;;
15596
15597    irix5* | irix6* | nonstopux*)
15598      if test "$GCC" = yes; then
15599	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'
15600      else
15601	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'
15602	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15603      fi
15604      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15605      hardcode_libdir_separator_GCJ=:
15606      link_all_deplibs_GCJ=yes
15607      ;;
15608
15609    netbsd*)
15610      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15611	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15612      else
15613	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15614      fi
15615      hardcode_libdir_flag_spec_GCJ='-R$libdir'
15616      hardcode_direct_GCJ=yes
15617      hardcode_shlibpath_var_GCJ=no
15618      ;;
15619
15620    newsos6)
15621      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15622      hardcode_direct_GCJ=yes
15623      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15624      hardcode_libdir_separator_GCJ=:
15625      hardcode_shlibpath_var_GCJ=no
15626      ;;
15627
15628    openbsd*)
15629      hardcode_direct_GCJ=yes
15630      hardcode_shlibpath_var_GCJ=no
15631      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15632	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15633	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15634	export_dynamic_flag_spec_GCJ='${wl}-E'
15635      else
15636       case $host_os in
15637	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15638	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15639	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
15640	   ;;
15641	 *)
15642	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15643	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15644	   ;;
15645       esac
15646      fi
15647      ;;
15648
15649    os2*)
15650      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15651      hardcode_minus_L_GCJ=yes
15652      allow_undefined_flag_GCJ=unsupported
15653      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'
15654      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15655      ;;
15656
15657    osf3*)
15658      if test "$GCC" = yes; then
15659	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15660	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'
15661      else
15662	allow_undefined_flag_GCJ=' -expect_unresolved \*'
15663	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'
15664      fi
15665      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15666      hardcode_libdir_separator_GCJ=:
15667      ;;
15668
15669    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15670      if test "$GCC" = yes; then
15671	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15672	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'
15673	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15674      else
15675	allow_undefined_flag_GCJ=' -expect_unresolved \*'
15676	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'
15677	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~
15678	$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'
15679
15680	# Both c and cxx compiler support -rpath directly
15681	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15682      fi
15683      hardcode_libdir_separator_GCJ=:
15684      ;;
15685
15686    sco3.2v5*)
15687      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15688      hardcode_shlibpath_var_GCJ=no
15689      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15690      runpath_var=LD_RUN_PATH
15691      hardcode_runpath_var=yes
15692      ;;
15693
15694    solaris*)
15695      no_undefined_flag_GCJ=' -z text'
15696      if test "$GCC" = yes; then
15697	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15698	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15699	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15700      else
15701	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15702	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15703  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15704      fi
15705      hardcode_libdir_flag_spec_GCJ='-R$libdir'
15706      hardcode_shlibpath_var_GCJ=no
15707      case $host_os in
15708      solaris2.[0-5] | solaris2.[0-5].*) ;;
15709      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15710	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15711      esac
15712      link_all_deplibs_GCJ=yes
15713      ;;
15714
15715    sunos4*)
15716      if test "x$host_vendor" = xsequent; then
15717	# Use $CC to link under sequent, because it throws in some extra .o
15718	# files that make .init and .fini sections work.
15719	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15720      else
15721	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15722      fi
15723      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15724      hardcode_direct_GCJ=yes
15725      hardcode_minus_L_GCJ=yes
15726      hardcode_shlibpath_var_GCJ=no
15727      ;;
15728
15729    sysv4)
15730      case $host_vendor in
15731	sni)
15732	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15733	  hardcode_direct_GCJ=yes # is this really true???
15734	;;
15735	siemens)
15736	  ## LD is ld it makes a PLAMLIB
15737	  ## CC just makes a GrossModule.
15738	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15739	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15740	  hardcode_direct_GCJ=no
15741        ;;
15742	motorola)
15743	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15744	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15745	;;
15746      esac
15747      runpath_var='LD_RUN_PATH'
15748      hardcode_shlibpath_var_GCJ=no
15749      ;;
15750
15751    sysv4.3*)
15752      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15753      hardcode_shlibpath_var_GCJ=no
15754      export_dynamic_flag_spec_GCJ='-Bexport'
15755      ;;
15756
15757    sysv4*MP*)
15758      if test -d /usr/nec; then
15759	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15760	hardcode_shlibpath_var_GCJ=no
15761	runpath_var=LD_RUN_PATH
15762	hardcode_runpath_var=yes
15763	ld_shlibs_GCJ=yes
15764      fi
15765      ;;
15766
15767    sysv4.2uw2*)
15768      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15769      hardcode_direct_GCJ=yes
15770      hardcode_minus_L_GCJ=no
15771      hardcode_shlibpath_var_GCJ=no
15772      hardcode_runpath_var=yes
15773      runpath_var=LD_RUN_PATH
15774      ;;
15775
15776   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15777      no_undefined_flag_GCJ='${wl}-z ${wl}text'
15778      if test "$GCC" = yes; then
15779	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15780      else
15781	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15782      fi
15783      runpath_var='LD_RUN_PATH'
15784      hardcode_shlibpath_var_GCJ=no
15785      ;;
15786
15787    sysv5*)
15788      no_undefined_flag_GCJ=' -z text'
15789      # $CC -shared without GNU ld will not create a library from C++
15790      # object files and a static libstdc++, better avoid it by now
15791      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15792      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15793  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15794      hardcode_libdir_flag_spec_GCJ=
15795      hardcode_shlibpath_var_GCJ=no
15796      runpath_var='LD_RUN_PATH'
15797      ;;
15798
15799    uts4*)
15800      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15801      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15802      hardcode_shlibpath_var_GCJ=no
15803      ;;
15804
15805    *)
15806      ld_shlibs_GCJ=no
15807      ;;
15808    esac
15809  fi
15810
15811echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15812echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15813test "$ld_shlibs_GCJ" = no && can_build_shared=no
15814
15815variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15816if test "$GCC" = yes; then
15817  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15818fi
15819
15820#
15821# Do we need to explicitly link libc?
15822#
15823case "x$archive_cmds_need_lc_GCJ" in
15824x|xyes)
15825  # Assume -lc should be added
15826  archive_cmds_need_lc_GCJ=yes
15827
15828  if test "$enable_shared" = yes && test "$GCC" = yes; then
15829    case $archive_cmds_GCJ in
15830    *'~'*)
15831      # FIXME: we may have to deal with multi-command sequences.
15832      ;;
15833    '$CC '*)
15834      # Test whether the compiler implicitly links with -lc since on some
15835      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15836      # to ld, don't add -lc before -lgcc.
15837      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15838echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15839      $rm conftest*
15840      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15841
15842      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15843  (eval $ac_compile) 2>&5
15844  ac_status=$?
15845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846  (exit $ac_status); } 2>conftest.err; then
15847        soname=conftest
15848        lib=conftest
15849        libobjs=conftest.$ac_objext
15850        deplibs=
15851        wl=$lt_prog_compiler_wl_GCJ
15852        compiler_flags=-v
15853        linker_flags=-v
15854        verstring=
15855        output_objdir=.
15856        libname=conftest
15857        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15858        allow_undefined_flag_GCJ=
15859        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15860  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15861  ac_status=$?
15862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863  (exit $ac_status); }
15864        then
15865	  archive_cmds_need_lc_GCJ=no
15866        else
15867	  archive_cmds_need_lc_GCJ=yes
15868        fi
15869        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15870      else
15871        cat conftest.err 1>&5
15872      fi
15873      $rm conftest*
15874      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15875echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15876      ;;
15877    esac
15878  fi
15879  ;;
15880esac
15881
15882echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15883echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15884hardcode_action_GCJ=
15885if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15886   test -n "$runpath_var GCJ" || \
15887   test "X$hardcode_automatic_GCJ"="Xyes" ; then
15888
15889  # We can hardcode non-existant directories.
15890  if test "$hardcode_direct_GCJ" != no &&
15891     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15892     # have to relink, otherwise we might link with an installed library
15893     # when we should be linking with a yet-to-be-installed one
15894     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15895     test "$hardcode_minus_L_GCJ" != no; then
15896    # Linking always hardcodes the temporary library directory.
15897    hardcode_action_GCJ=relink
15898  else
15899    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15900    hardcode_action_GCJ=immediate
15901  fi
15902else
15903  # We cannot hardcode anything, or else we can only hardcode existing
15904  # directories.
15905  hardcode_action_GCJ=unsupported
15906fi
15907echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15908echo "${ECHO_T}$hardcode_action_GCJ" >&6
15909
15910if test "$hardcode_action_GCJ" = relink; then
15911  # Fast installation is not supported
15912  enable_fast_install=no
15913elif test "$shlibpath_overrides_runpath" = yes ||
15914     test "$enable_shared" = no; then
15915  # Fast installation is not necessary
15916  enable_fast_install=needless
15917fi
15918
15919striplib=
15920old_striplib=
15921echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15922echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15923if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15924  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15925  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15926  echo "$as_me:$LINENO: result: yes" >&5
15927echo "${ECHO_T}yes" >&6
15928else
15929# FIXME - insert some real tests, host_os isn't really good enough
15930  case $host_os in
15931   darwin*)
15932       if test -n "$STRIP" ; then
15933         striplib="$STRIP -x"
15934         echo "$as_me:$LINENO: result: yes" >&5
15935echo "${ECHO_T}yes" >&6
15936       else
15937  echo "$as_me:$LINENO: result: no" >&5
15938echo "${ECHO_T}no" >&6
15939fi
15940       ;;
15941   *)
15942  echo "$as_me:$LINENO: result: no" >&5
15943echo "${ECHO_T}no" >&6
15944    ;;
15945  esac
15946fi
15947
15948echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15949echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15950library_names_spec=
15951libname_spec='lib$name'
15952soname_spec=
15953shrext=".so"
15954postinstall_cmds=
15955postuninstall_cmds=
15956finish_cmds=
15957finish_eval=
15958shlibpath_var=
15959shlibpath_overrides_runpath=unknown
15960version_type=none
15961dynamic_linker="$host_os ld.so"
15962sys_lib_dlsearch_path_spec="/lib /usr/lib"
15963if test "$GCC" = yes; then
15964  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15965  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15966    # if the path contains ";" then we assume it to be the separator
15967    # otherwise default to the standard path separator (i.e. ":") - it is
15968    # assumed that no part of a normal pathname contains ";" but that should
15969    # okay in the real world where ";" in dirpaths is itself problematic.
15970    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15971  else
15972    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15973  fi
15974else
15975  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15976fi
15977need_lib_prefix=unknown
15978hardcode_into_libs=no
15979
15980# when you set need_version to no, make sure it does not cause -set_version
15981# flags to be left without arguments
15982need_version=unknown
15983
15984case $host_os in
15985aix3*)
15986  version_type=linux
15987  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15988  shlibpath_var=LIBPATH
15989
15990  # AIX 3 has no versioning support, so we append a major version to the name.
15991  soname_spec='${libname}${release}${shared_ext}$major'
15992  ;;
15993
15994aix4* | aix5*)
15995  version_type=linux
15996  need_lib_prefix=no
15997  need_version=no
15998  hardcode_into_libs=yes
15999  if test "$host_cpu" = ia64; then
16000    # AIX 5 supports IA64
16001    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16002    shlibpath_var=LD_LIBRARY_PATH
16003  else
16004    # With GCC up to 2.95.x, collect2 would create an import file
16005    # for dependence libraries.  The import file would start with
16006    # the line `#! .'.  This would cause the generated library to
16007    # depend on `.', always an invalid library.  This was fixed in
16008    # development snapshots of GCC prior to 3.0.
16009    case $host_os in
16010      aix4 | aix4.[01] | aix4.[01].*)
16011      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16012	   echo ' yes '
16013	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16014	:
16015      else
16016	can_build_shared=no
16017      fi
16018      ;;
16019    esac
16020    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16021    # soname into executable. Probably we can add versioning support to
16022    # collect2, so additional links can be useful in future.
16023    if test "$aix_use_runtimelinking" = yes; then
16024      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16025      # instead of lib<name>.a to let people know that these are not
16026      # typical AIX shared libraries.
16027      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16028    else
16029      # We preserve .a as extension for shared libraries through AIX4.2
16030      # and later when we are not doing run time linking.
16031      library_names_spec='${libname}${release}.a $libname.a'
16032      soname_spec='${libname}${release}${shared_ext}$major'
16033    fi
16034    shlibpath_var=LIBPATH
16035  fi
16036  ;;
16037
16038amigaos*)
16039  library_names_spec='$libname.ixlibrary $libname.a'
16040  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16041  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'
16042  ;;
16043
16044beos*)
16045  library_names_spec='${libname}${shared_ext}'
16046  dynamic_linker="$host_os ld.so"
16047  shlibpath_var=LIBRARY_PATH
16048  ;;
16049
16050bsdi4*)
16051  version_type=linux
16052  need_version=no
16053  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16054  soname_spec='${libname}${release}${shared_ext}$major'
16055  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16056  shlibpath_var=LD_LIBRARY_PATH
16057  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16058  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16059  # the default ld.so.conf also contains /usr/contrib/lib and
16060  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16061  # libtool to hard-code these into programs
16062  ;;
16063
16064cygwin* | mingw* | pw32*)
16065  version_type=windows
16066  shrext=".dll"
16067  need_version=no
16068  need_lib_prefix=no
16069
16070  case $GCC,$host_os in
16071  yes,cygwin* | yes,mingw* | yes,pw32*)
16072    library_names_spec='$libname.dll.a'
16073    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16074    postinstall_cmds='base_file=`basename \${file}`~
16075      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16076      dldir=$destdir/`dirname \$dlpath`~
16077      test -d \$dldir || mkdir -p \$dldir~
16078      $install_prog $dir/$dlname \$dldir/$dlname'
16079    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16080      dlpath=$dir/\$dldll~
16081       $rm \$dlpath'
16082    shlibpath_overrides_runpath=yes
16083
16084    case $host_os in
16085    cygwin*)
16086      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16087      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16088      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16089      ;;
16090    mingw*)
16091      # MinGW DLLs use traditional 'lib' prefix
16092      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16093      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16094      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16095        # It is most probably a Windows format PATH printed by
16096        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16097        # path with ; separators, and with drive letters. We can handle the
16098        # drive letters (cygwin fileutils understands them), so leave them,
16099        # especially as we might pass files found there to a mingw objdump,
16100        # which wouldn't understand a cygwinified path. Ahh.
16101        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16102      else
16103        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16104      fi
16105      ;;
16106    pw32*)
16107      # pw32 DLLs use 'pw' prefix rather than 'lib'
16108      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16109      ;;
16110    esac
16111    ;;
16112
16113  *)
16114    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16115    ;;
16116  esac
16117  dynamic_linker='Win32 ld.exe'
16118  # FIXME: first we should search . and the directory the executable is in
16119  shlibpath_var=PATH
16120  ;;
16121
16122darwin* | rhapsody*)
16123  dynamic_linker="$host_os dyld"
16124  version_type=darwin
16125  need_lib_prefix=no
16126  need_version=no
16127  # FIXME: Relying on posixy $() will cause problems for
16128  #        cross-compilation, but unfortunately the echo tests do not
16129  #        yet detect zsh echo's removal of \ escapes.
16130  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16131  soname_spec='${libname}${release}${major}$shared_ext'
16132  shlibpath_overrides_runpath=yes
16133  shlibpath_var=DYLD_LIBRARY_PATH
16134  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16135  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16136  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16137  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"`
16138  fi
16139  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16140  ;;
16141
16142dgux*)
16143  version_type=linux
16144  need_lib_prefix=no
16145  need_version=no
16146  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16147  soname_spec='${libname}${release}${shared_ext}$major'
16148  shlibpath_var=LD_LIBRARY_PATH
16149  ;;
16150
16151freebsd1*)
16152  dynamic_linker=no
16153  ;;
16154
16155freebsd*)
16156  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16157  version_type=freebsd-$objformat
16158  case $version_type in
16159    freebsd-elf*)
16160      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16161      need_version=no
16162      need_lib_prefix=no
16163      ;;
16164    freebsd-*)
16165      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16166      need_version=yes
16167      ;;
16168  esac
16169  shlibpath_var=LD_LIBRARY_PATH
16170  case $host_os in
16171  freebsd2*)
16172    shlibpath_overrides_runpath=yes
16173    ;;
16174  freebsd3.01* | freebsdelf3.01*)
16175    shlibpath_overrides_runpath=yes
16176    hardcode_into_libs=yes
16177    ;;
16178  *) # from 3.2 on
16179    shlibpath_overrides_runpath=no
16180    hardcode_into_libs=yes
16181    ;;
16182  esac
16183  ;;
16184
16185gnu*)
16186  version_type=linux
16187  need_lib_prefix=no
16188  need_version=no
16189  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16190  soname_spec='${libname}${release}${shared_ext}$major'
16191  shlibpath_var=LD_LIBRARY_PATH
16192  hardcode_into_libs=yes
16193  ;;
16194
16195hpux9* | hpux10* | hpux11*)
16196  # Give a soname corresponding to the major version so that dld.sl refuses to
16197  # link against other versions.
16198  version_type=sunos
16199  need_lib_prefix=no
16200  need_version=no
16201  case "$host_cpu" in
16202  ia64*)
16203    shrext='.so'
16204    hardcode_into_libs=yes
16205    dynamic_linker="$host_os dld.so"
16206    shlibpath_var=LD_LIBRARY_PATH
16207    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16208    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16209    soname_spec='${libname}${release}${shared_ext}$major'
16210    if test "X$HPUX_IA64_MODE" = X32; then
16211      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16212    else
16213      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16214    fi
16215    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16216    ;;
16217   hppa*64*)
16218     shrext='.sl'
16219     hardcode_into_libs=yes
16220     dynamic_linker="$host_os dld.sl"
16221     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16222     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16223     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16224     soname_spec='${libname}${release}${shared_ext}$major'
16225     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16226     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16227     ;;
16228   *)
16229    shrext='.sl'
16230    dynamic_linker="$host_os dld.sl"
16231    shlibpath_var=SHLIB_PATH
16232    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16233    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16234    soname_spec='${libname}${release}${shared_ext}$major'
16235    ;;
16236  esac
16237  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16238  postinstall_cmds='chmod 555 $lib'
16239  ;;
16240
16241irix5* | irix6* | nonstopux*)
16242  case $host_os in
16243    nonstopux*) version_type=nonstopux ;;
16244    *)
16245	if test "$lt_cv_prog_gnu_ld" = yes; then
16246		version_type=linux
16247	else
16248		version_type=irix
16249	fi ;;
16250  esac
16251  need_lib_prefix=no
16252  need_version=no
16253  soname_spec='${libname}${release}${shared_ext}$major'
16254  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16255  case $host_os in
16256  irix5* | nonstopux*)
16257    libsuff= shlibsuff=
16258    ;;
16259  *)
16260    case $LD in # libtool.m4 will add one of these switches to LD
16261    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16262      libsuff= shlibsuff= libmagic=32-bit;;
16263    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16264      libsuff=32 shlibsuff=N32 libmagic=N32;;
16265    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16266      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16267    *) libsuff= shlibsuff= libmagic=never-match;;
16268    esac
16269    ;;
16270  esac
16271  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16272  shlibpath_overrides_runpath=no
16273  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16274  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16275  hardcode_into_libs=yes
16276  ;;
16277
16278# No shared lib support for Linux oldld, aout, or coff.
16279linux*oldld* | linux*aout* | linux*coff*)
16280  dynamic_linker=no
16281  ;;
16282
16283# This must be Linux ELF.
16284linux*)
16285  version_type=linux
16286  need_lib_prefix=no
16287  need_version=no
16288  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16289  soname_spec='${libname}${release}${shared_ext}$major'
16290  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16291  shlibpath_var=LD_LIBRARY_PATH
16292  shlibpath_overrides_runpath=no
16293  # This implies no fast_install, which is unacceptable.
16294  # Some rework will be needed to allow for fast_install
16295  # before this can be enabled.
16296  hardcode_into_libs=yes
16297
16298  # We used to test for /lib/ld.so.1 and disable shared libraries on
16299  # powerpc, because MkLinux only supported shared libraries with the
16300  # GNU dynamic linker.  Since this was broken with cross compilers,
16301  # most powerpc-linux boxes support dynamic linking these days and
16302  # people can always --disable-shared, the test was removed, and we
16303  # assume the GNU/Linux dynamic linker is in use.
16304  dynamic_linker='GNU/Linux ld.so'
16305  ;;
16306
16307netbsd*)
16308  version_type=sunos
16309  need_lib_prefix=no
16310  need_version=no
16311  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16312    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16313    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16314    dynamic_linker='NetBSD (a.out) ld.so'
16315  else
16316    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16317    soname_spec='${libname}${release}${shared_ext}$major'
16318    dynamic_linker='NetBSD ld.elf_so'
16319  fi
16320  shlibpath_var=LD_LIBRARY_PATH
16321  shlibpath_overrides_runpath=yes
16322  hardcode_into_libs=yes
16323  ;;
16324
16325newsos6)
16326  version_type=linux
16327  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16328  shlibpath_var=LD_LIBRARY_PATH
16329  shlibpath_overrides_runpath=yes
16330  ;;
16331
16332nto-qnx)
16333  version_type=linux
16334  need_lib_prefix=no
16335  need_version=no
16336  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16337  soname_spec='${libname}${release}${shared_ext}$major'
16338  shlibpath_var=LD_LIBRARY_PATH
16339  shlibpath_overrides_runpath=yes
16340  ;;
16341
16342openbsd*)
16343  version_type=sunos
16344  need_lib_prefix=no
16345  need_version=no
16346  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16347  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16348  shlibpath_var=LD_LIBRARY_PATH
16349  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16350    case $host_os in
16351      openbsd2.[89] | openbsd2.[89].*)
16352	shlibpath_overrides_runpath=no
16353	;;
16354      *)
16355	shlibpath_overrides_runpath=yes
16356	;;
16357      esac
16358  else
16359    shlibpath_overrides_runpath=yes
16360  fi
16361  ;;
16362
16363os2*)
16364  libname_spec='$name'
16365  shrext=".dll"
16366  need_lib_prefix=no
16367  library_names_spec='$libname${shared_ext} $libname.a'
16368  dynamic_linker='OS/2 ld.exe'
16369  shlibpath_var=LIBPATH
16370  ;;
16371
16372osf3* | osf4* | osf5*)
16373  version_type=osf
16374  need_lib_prefix=no
16375  need_version=no
16376  soname_spec='${libname}${release}${shared_ext}$major'
16377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16378  shlibpath_var=LD_LIBRARY_PATH
16379  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16380  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16381  ;;
16382
16383sco3.2v5*)
16384  version_type=osf
16385  soname_spec='${libname}${release}${shared_ext}$major'
16386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16387  shlibpath_var=LD_LIBRARY_PATH
16388  ;;
16389
16390solaris*)
16391  version_type=linux
16392  need_lib_prefix=no
16393  need_version=no
16394  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16395  soname_spec='${libname}${release}${shared_ext}$major'
16396  shlibpath_var=LD_LIBRARY_PATH
16397  shlibpath_overrides_runpath=yes
16398  hardcode_into_libs=yes
16399  # ldd complains unless libraries are executable
16400  postinstall_cmds='chmod +x $lib'
16401  ;;
16402
16403sunos4*)
16404  version_type=sunos
16405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16406  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16407  shlibpath_var=LD_LIBRARY_PATH
16408  shlibpath_overrides_runpath=yes
16409  if test "$with_gnu_ld" = yes; then
16410    need_lib_prefix=no
16411  fi
16412  need_version=yes
16413  ;;
16414
16415sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16416  version_type=linux
16417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16418  soname_spec='${libname}${release}${shared_ext}$major'
16419  shlibpath_var=LD_LIBRARY_PATH
16420  case $host_vendor in
16421    sni)
16422      shlibpath_overrides_runpath=no
16423      need_lib_prefix=no
16424      export_dynamic_flag_spec='${wl}-Blargedynsym'
16425      runpath_var=LD_RUN_PATH
16426      ;;
16427    siemens)
16428      need_lib_prefix=no
16429      ;;
16430    motorola)
16431      need_lib_prefix=no
16432      need_version=no
16433      shlibpath_overrides_runpath=no
16434      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16435      ;;
16436  esac
16437  ;;
16438
16439sysv4*MP*)
16440  if test -d /usr/nec ;then
16441    version_type=linux
16442    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16443    soname_spec='$libname${shared_ext}.$major'
16444    shlibpath_var=LD_LIBRARY_PATH
16445  fi
16446  ;;
16447
16448uts4*)
16449  version_type=linux
16450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16451  soname_spec='${libname}${release}${shared_ext}$major'
16452  shlibpath_var=LD_LIBRARY_PATH
16453  ;;
16454
16455*)
16456  dynamic_linker=no
16457  ;;
16458esac
16459echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16460echo "${ECHO_T}$dynamic_linker" >&6
16461test "$dynamic_linker" = no && can_build_shared=no
16462
16463if test "x$enable_dlopen" != xyes; then
16464  enable_dlopen=unknown
16465  enable_dlopen_self=unknown
16466  enable_dlopen_self_static=unknown
16467else
16468  lt_cv_dlopen=no
16469  lt_cv_dlopen_libs=
16470
16471  case $host_os in
16472  beos*)
16473    lt_cv_dlopen="load_add_on"
16474    lt_cv_dlopen_libs=
16475    lt_cv_dlopen_self=yes
16476    ;;
16477
16478  mingw* | pw32*)
16479    lt_cv_dlopen="LoadLibrary"
16480    lt_cv_dlopen_libs=
16481   ;;
16482
16483  cygwin*)
16484    lt_cv_dlopen="dlopen"
16485    lt_cv_dlopen_libs=
16486   ;;
16487
16488  darwin*)
16489  # if libdl is installed we need to link against it
16490    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16491echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16492if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16493  echo $ECHO_N "(cached) $ECHO_C" >&6
16494else
16495  ac_check_lib_save_LIBS=$LIBS
16496LIBS="-ldl  $LIBS"
16497cat >conftest.$ac_ext <<_ACEOF
16498#line $LINENO "configure"
16499/* confdefs.h.  */
16500_ACEOF
16501cat confdefs.h >>conftest.$ac_ext
16502cat >>conftest.$ac_ext <<_ACEOF
16503/* end confdefs.h.  */
16504
16505/* Override any gcc2 internal prototype to avoid an error.  */
16506#ifdef __cplusplus
16507extern "C"
16508#endif
16509/* We use char because int might match the return type of a gcc2
16510   builtin and then its argument prototype would still apply.  */
16511char dlopen ();
16512int
16513main ()
16514{
16515dlopen ();
16516  ;
16517  return 0;
16518}
16519_ACEOF
16520rm -f conftest.$ac_objext conftest$ac_exeext
16521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16522  (eval $ac_link) 2>&5
16523  ac_status=$?
16524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525  (exit $ac_status); } &&
16526         { ac_try='test -s conftest$ac_exeext'
16527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528  (eval $ac_try) 2>&5
16529  ac_status=$?
16530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531  (exit $ac_status); }; }; then
16532  ac_cv_lib_dl_dlopen=yes
16533else
16534  echo "$as_me: failed program was:" >&5
16535sed 's/^/| /' conftest.$ac_ext >&5
16536
16537ac_cv_lib_dl_dlopen=no
16538fi
16539rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16540LIBS=$ac_check_lib_save_LIBS
16541fi
16542echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16543echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16544if test $ac_cv_lib_dl_dlopen = yes; then
16545  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16546else
16547
16548    lt_cv_dlopen="dyld"
16549    lt_cv_dlopen_libs=
16550    lt_cv_dlopen_self=yes
16551
16552fi
16553
16554   ;;
16555
16556  *)
16557    echo "$as_me:$LINENO: checking for shl_load" >&5
16558echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16559if test "${ac_cv_func_shl_load+set}" = set; then
16560  echo $ECHO_N "(cached) $ECHO_C" >&6
16561else
16562  cat >conftest.$ac_ext <<_ACEOF
16563#line $LINENO "configure"
16564/* confdefs.h.  */
16565_ACEOF
16566cat confdefs.h >>conftest.$ac_ext
16567cat >>conftest.$ac_ext <<_ACEOF
16568/* end confdefs.h.  */
16569/* System header to define __stub macros and hopefully few prototypes,
16570    which can conflict with char shl_load (); below.
16571    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16572    <limits.h> exists even on freestanding compilers.  */
16573#ifdef __STDC__
16574# include <limits.h>
16575#else
16576# include <assert.h>
16577#endif
16578/* Override any gcc2 internal prototype to avoid an error.  */
16579#ifdef __cplusplus
16580extern "C"
16581{
16582#endif
16583/* We use char because int might match the return type of a gcc2
16584   builtin and then its argument prototype would still apply.  */
16585char shl_load ();
16586/* The GNU C library defines this for functions which it implements
16587    to always fail with ENOSYS.  Some functions are actually named
16588    something starting with __ and the normal name is an alias.  */
16589#if defined (__stub_shl_load) || defined (__stub___shl_load)
16590choke me
16591#else
16592char (*f) () = shl_load;
16593#endif
16594#ifdef __cplusplus
16595}
16596#endif
16597
16598int
16599main ()
16600{
16601return f != shl_load;
16602  ;
16603  return 0;
16604}
16605_ACEOF
16606rm -f conftest.$ac_objext conftest$ac_exeext
16607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16608  (eval $ac_link) 2>&5
16609  ac_status=$?
16610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611  (exit $ac_status); } &&
16612         { ac_try='test -s conftest$ac_exeext'
16613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614  (eval $ac_try) 2>&5
16615  ac_status=$?
16616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617  (exit $ac_status); }; }; then
16618  ac_cv_func_shl_load=yes
16619else
16620  echo "$as_me: failed program was:" >&5
16621sed 's/^/| /' conftest.$ac_ext >&5
16622
16623ac_cv_func_shl_load=no
16624fi
16625rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16626fi
16627echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16628echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16629if test $ac_cv_func_shl_load = yes; then
16630  lt_cv_dlopen="shl_load"
16631else
16632  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16633echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16634if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16635  echo $ECHO_N "(cached) $ECHO_C" >&6
16636else
16637  ac_check_lib_save_LIBS=$LIBS
16638LIBS="-ldld  $LIBS"
16639cat >conftest.$ac_ext <<_ACEOF
16640#line $LINENO "configure"
16641/* confdefs.h.  */
16642_ACEOF
16643cat confdefs.h >>conftest.$ac_ext
16644cat >>conftest.$ac_ext <<_ACEOF
16645/* end confdefs.h.  */
16646
16647/* Override any gcc2 internal prototype to avoid an error.  */
16648#ifdef __cplusplus
16649extern "C"
16650#endif
16651/* We use char because int might match the return type of a gcc2
16652   builtin and then its argument prototype would still apply.  */
16653char shl_load ();
16654int
16655main ()
16656{
16657shl_load ();
16658  ;
16659  return 0;
16660}
16661_ACEOF
16662rm -f conftest.$ac_objext conftest$ac_exeext
16663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16664  (eval $ac_link) 2>&5
16665  ac_status=$?
16666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667  (exit $ac_status); } &&
16668         { ac_try='test -s conftest$ac_exeext'
16669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16670  (eval $ac_try) 2>&5
16671  ac_status=$?
16672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673  (exit $ac_status); }; }; then
16674  ac_cv_lib_dld_shl_load=yes
16675else
16676  echo "$as_me: failed program was:" >&5
16677sed 's/^/| /' conftest.$ac_ext >&5
16678
16679ac_cv_lib_dld_shl_load=no
16680fi
16681rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16682LIBS=$ac_check_lib_save_LIBS
16683fi
16684echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16685echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16686if test $ac_cv_lib_dld_shl_load = yes; then
16687  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16688else
16689  echo "$as_me:$LINENO: checking for dlopen" >&5
16690echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16691if test "${ac_cv_func_dlopen+set}" = set; then
16692  echo $ECHO_N "(cached) $ECHO_C" >&6
16693else
16694  cat >conftest.$ac_ext <<_ACEOF
16695#line $LINENO "configure"
16696/* confdefs.h.  */
16697_ACEOF
16698cat confdefs.h >>conftest.$ac_ext
16699cat >>conftest.$ac_ext <<_ACEOF
16700/* end confdefs.h.  */
16701/* System header to define __stub macros and hopefully few prototypes,
16702    which can conflict with char dlopen (); below.
16703    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16704    <limits.h> exists even on freestanding compilers.  */
16705#ifdef __STDC__
16706# include <limits.h>
16707#else
16708# include <assert.h>
16709#endif
16710/* Override any gcc2 internal prototype to avoid an error.  */
16711#ifdef __cplusplus
16712extern "C"
16713{
16714#endif
16715/* We use char because int might match the return type of a gcc2
16716   builtin and then its argument prototype would still apply.  */
16717char dlopen ();
16718/* The GNU C library defines this for functions which it implements
16719    to always fail with ENOSYS.  Some functions are actually named
16720    something starting with __ and the normal name is an alias.  */
16721#if defined (__stub_dlopen) || defined (__stub___dlopen)
16722choke me
16723#else
16724char (*f) () = dlopen;
16725#endif
16726#ifdef __cplusplus
16727}
16728#endif
16729
16730int
16731main ()
16732{
16733return f != dlopen;
16734  ;
16735  return 0;
16736}
16737_ACEOF
16738rm -f conftest.$ac_objext conftest$ac_exeext
16739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16740  (eval $ac_link) 2>&5
16741  ac_status=$?
16742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743  (exit $ac_status); } &&
16744         { ac_try='test -s conftest$ac_exeext'
16745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16746  (eval $ac_try) 2>&5
16747  ac_status=$?
16748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749  (exit $ac_status); }; }; then
16750  ac_cv_func_dlopen=yes
16751else
16752  echo "$as_me: failed program was:" >&5
16753sed 's/^/| /' conftest.$ac_ext >&5
16754
16755ac_cv_func_dlopen=no
16756fi
16757rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16758fi
16759echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16760echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16761if test $ac_cv_func_dlopen = yes; then
16762  lt_cv_dlopen="dlopen"
16763else
16764  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16765echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16766if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16767  echo $ECHO_N "(cached) $ECHO_C" >&6
16768else
16769  ac_check_lib_save_LIBS=$LIBS
16770LIBS="-ldl  $LIBS"
16771cat >conftest.$ac_ext <<_ACEOF
16772#line $LINENO "configure"
16773/* confdefs.h.  */
16774_ACEOF
16775cat confdefs.h >>conftest.$ac_ext
16776cat >>conftest.$ac_ext <<_ACEOF
16777/* end confdefs.h.  */
16778
16779/* Override any gcc2 internal prototype to avoid an error.  */
16780#ifdef __cplusplus
16781extern "C"
16782#endif
16783/* We use char because int might match the return type of a gcc2
16784   builtin and then its argument prototype would still apply.  */
16785char dlopen ();
16786int
16787main ()
16788{
16789dlopen ();
16790  ;
16791  return 0;
16792}
16793_ACEOF
16794rm -f conftest.$ac_objext conftest$ac_exeext
16795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16796  (eval $ac_link) 2>&5
16797  ac_status=$?
16798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799  (exit $ac_status); } &&
16800         { ac_try='test -s conftest$ac_exeext'
16801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16802  (eval $ac_try) 2>&5
16803  ac_status=$?
16804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805  (exit $ac_status); }; }; then
16806  ac_cv_lib_dl_dlopen=yes
16807else
16808  echo "$as_me: failed program was:" >&5
16809sed 's/^/| /' conftest.$ac_ext >&5
16810
16811ac_cv_lib_dl_dlopen=no
16812fi
16813rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16814LIBS=$ac_check_lib_save_LIBS
16815fi
16816echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16817echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16818if test $ac_cv_lib_dl_dlopen = yes; then
16819  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16820else
16821  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16822echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16823if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16824  echo $ECHO_N "(cached) $ECHO_C" >&6
16825else
16826  ac_check_lib_save_LIBS=$LIBS
16827LIBS="-lsvld  $LIBS"
16828cat >conftest.$ac_ext <<_ACEOF
16829#line $LINENO "configure"
16830/* confdefs.h.  */
16831_ACEOF
16832cat confdefs.h >>conftest.$ac_ext
16833cat >>conftest.$ac_ext <<_ACEOF
16834/* end confdefs.h.  */
16835
16836/* Override any gcc2 internal prototype to avoid an error.  */
16837#ifdef __cplusplus
16838extern "C"
16839#endif
16840/* We use char because int might match the return type of a gcc2
16841   builtin and then its argument prototype would still apply.  */
16842char dlopen ();
16843int
16844main ()
16845{
16846dlopen ();
16847  ;
16848  return 0;
16849}
16850_ACEOF
16851rm -f conftest.$ac_objext conftest$ac_exeext
16852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16853  (eval $ac_link) 2>&5
16854  ac_status=$?
16855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856  (exit $ac_status); } &&
16857         { ac_try='test -s conftest$ac_exeext'
16858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16859  (eval $ac_try) 2>&5
16860  ac_status=$?
16861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862  (exit $ac_status); }; }; then
16863  ac_cv_lib_svld_dlopen=yes
16864else
16865  echo "$as_me: failed program was:" >&5
16866sed 's/^/| /' conftest.$ac_ext >&5
16867
16868ac_cv_lib_svld_dlopen=no
16869fi
16870rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16871LIBS=$ac_check_lib_save_LIBS
16872fi
16873echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16874echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16875if test $ac_cv_lib_svld_dlopen = yes; then
16876  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16877else
16878  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16879echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16880if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16881  echo $ECHO_N "(cached) $ECHO_C" >&6
16882else
16883  ac_check_lib_save_LIBS=$LIBS
16884LIBS="-ldld  $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 dld_link ();
16900int
16901main ()
16902{
16903dld_link ();
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_dld_dld_link=yes
16921else
16922  echo "$as_me: failed program was:" >&5
16923sed 's/^/| /' conftest.$ac_ext >&5
16924
16925ac_cv_lib_dld_dld_link=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_dld_dld_link" >&5
16931echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16932if test $ac_cv_lib_dld_dld_link = yes; then
16933  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16934fi
16935
16936
16937fi
16938
16939
16940fi
16941
16942
16943fi
16944
16945
16946fi
16947
16948
16949fi
16950
16951    ;;
16952  esac
16953
16954  if test "x$lt_cv_dlopen" != xno; then
16955    enable_dlopen=yes
16956  else
16957    enable_dlopen=no
16958  fi
16959
16960  case $lt_cv_dlopen in
16961  dlopen)
16962    save_CPPFLAGS="$CPPFLAGS"
16963    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16964
16965    save_LDFLAGS="$LDFLAGS"
16966    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16967
16968    save_LIBS="$LIBS"
16969    LIBS="$lt_cv_dlopen_libs $LIBS"
16970
16971    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16972echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16973if test "${lt_cv_dlopen_self+set}" = set; then
16974  echo $ECHO_N "(cached) $ECHO_C" >&6
16975else
16976  	  if test "$cross_compiling" = yes; then :
16977  lt_cv_dlopen_self=cross
16978else
16979  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16980  lt_status=$lt_dlunknown
16981  cat > conftest.$ac_ext <<EOF
16982#line 16982 "configure"
16983#include "confdefs.h"
16984
16985#if HAVE_DLFCN_H
16986#include <dlfcn.h>
16987#endif
16988
16989#include <stdio.h>
16990
16991#ifdef RTLD_GLOBAL
16992#  define LT_DLGLOBAL		RTLD_GLOBAL
16993#else
16994#  ifdef DL_GLOBAL
16995#    define LT_DLGLOBAL		DL_GLOBAL
16996#  else
16997#    define LT_DLGLOBAL		0
16998#  endif
16999#endif
17000
17001/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17002   find out it does not work in some platform. */
17003#ifndef LT_DLLAZY_OR_NOW
17004#  ifdef RTLD_LAZY
17005#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17006#  else
17007#    ifdef DL_LAZY
17008#      define LT_DLLAZY_OR_NOW		DL_LAZY
17009#    else
17010#      ifdef RTLD_NOW
17011#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17012#      else
17013#        ifdef DL_NOW
17014#          define LT_DLLAZY_OR_NOW	DL_NOW
17015#        else
17016#          define LT_DLLAZY_OR_NOW	0
17017#        endif
17018#      endif
17019#    endif
17020#  endif
17021#endif
17022
17023#ifdef __cplusplus
17024extern "C" void exit (int);
17025#endif
17026
17027void fnord() { int i=42;}
17028int main ()
17029{
17030  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17031  int status = $lt_dlunknown;
17032
17033  if (self)
17034    {
17035      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17036      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17037      /* dlclose (self); */
17038    }
17039
17040    exit (status);
17041}
17042EOF
17043  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17044  (eval $ac_link) 2>&5
17045  ac_status=$?
17046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17048    (./conftest; exit; ) 2>/dev/null
17049    lt_status=$?
17050    case x$lt_status in
17051      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17052      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17053      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17054    esac
17055  else :
17056    # compilation failed
17057    lt_cv_dlopen_self=no
17058  fi
17059fi
17060rm -fr conftest*
17061
17062
17063fi
17064echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17065echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17066
17067    if test "x$lt_cv_dlopen_self" = xyes; then
17068      LDFLAGS="$LDFLAGS $link_static_flag"
17069      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17070echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17071if test "${lt_cv_dlopen_self_static+set}" = set; then
17072  echo $ECHO_N "(cached) $ECHO_C" >&6
17073else
17074  	  if test "$cross_compiling" = yes; then :
17075  lt_cv_dlopen_self_static=cross
17076else
17077  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17078  lt_status=$lt_dlunknown
17079  cat > conftest.$ac_ext <<EOF
17080#line 17080 "configure"
17081#include "confdefs.h"
17082
17083#if HAVE_DLFCN_H
17084#include <dlfcn.h>
17085#endif
17086
17087#include <stdio.h>
17088
17089#ifdef RTLD_GLOBAL
17090#  define LT_DLGLOBAL		RTLD_GLOBAL
17091#else
17092#  ifdef DL_GLOBAL
17093#    define LT_DLGLOBAL		DL_GLOBAL
17094#  else
17095#    define LT_DLGLOBAL		0
17096#  endif
17097#endif
17098
17099/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17100   find out it does not work in some platform. */
17101#ifndef LT_DLLAZY_OR_NOW
17102#  ifdef RTLD_LAZY
17103#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17104#  else
17105#    ifdef DL_LAZY
17106#      define LT_DLLAZY_OR_NOW		DL_LAZY
17107#    else
17108#      ifdef RTLD_NOW
17109#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17110#      else
17111#        ifdef DL_NOW
17112#          define LT_DLLAZY_OR_NOW	DL_NOW
17113#        else
17114#          define LT_DLLAZY_OR_NOW	0
17115#        endif
17116#      endif
17117#    endif
17118#  endif
17119#endif
17120
17121#ifdef __cplusplus
17122extern "C" void exit (int);
17123#endif
17124
17125void fnord() { int i=42;}
17126int main ()
17127{
17128  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17129  int status = $lt_dlunknown;
17130
17131  if (self)
17132    {
17133      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17134      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17135      /* dlclose (self); */
17136    }
17137
17138    exit (status);
17139}
17140EOF
17141  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17142  (eval $ac_link) 2>&5
17143  ac_status=$?
17144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17146    (./conftest; exit; ) 2>/dev/null
17147    lt_status=$?
17148    case x$lt_status in
17149      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17150      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17151      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17152    esac
17153  else :
17154    # compilation failed
17155    lt_cv_dlopen_self_static=no
17156  fi
17157fi
17158rm -fr conftest*
17159
17160
17161fi
17162echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17163echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17164    fi
17165
17166    CPPFLAGS="$save_CPPFLAGS"
17167    LDFLAGS="$save_LDFLAGS"
17168    LIBS="$save_LIBS"
17169    ;;
17170  esac
17171
17172  case $lt_cv_dlopen_self in
17173  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17174  *) enable_dlopen_self=unknown ;;
17175  esac
17176
17177  case $lt_cv_dlopen_self_static in
17178  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17179  *) enable_dlopen_self_static=unknown ;;
17180  esac
17181fi
17182
17183
17184# The else clause should only fire when bootstrapping the
17185# libtool distribution, otherwise you forgot to ship ltmain.sh
17186# with your package, and you will get complaints that there are
17187# no rules to generate ltmain.sh.
17188if test -f "$ltmain"; then
17189  # See if we are running on zsh, and set the options which allow our commands through
17190  # without removal of \ escapes.
17191  if test -n "${ZSH_VERSION+set}" ; then
17192    setopt NO_GLOB_SUBST
17193  fi
17194  # Now quote all the things that may contain metacharacters while being
17195  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17196  # variables and quote the copies for generation of the libtool script.
17197  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17198    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17199    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17200    deplibs_check_method reload_flag reload_cmds need_locks \
17201    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17202    lt_cv_sys_global_symbol_to_c_name_address \
17203    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17204    old_postinstall_cmds old_postuninstall_cmds \
17205    compiler_GCJ \
17206    CC_GCJ \
17207    LD_GCJ \
17208    lt_prog_compiler_wl_GCJ \
17209    lt_prog_compiler_pic_GCJ \
17210    lt_prog_compiler_static_GCJ \
17211    lt_prog_compiler_no_builtin_flag_GCJ \
17212    export_dynamic_flag_spec_GCJ \
17213    thread_safe_flag_spec_GCJ \
17214    whole_archive_flag_spec_GCJ \
17215    enable_shared_with_static_runtimes_GCJ \
17216    old_archive_cmds_GCJ \
17217    old_archive_from_new_cmds_GCJ \
17218    predep_objects_GCJ \
17219    postdep_objects_GCJ \
17220    predeps_GCJ \
17221    postdeps_GCJ \
17222    compiler_lib_search_path_GCJ \
17223    archive_cmds_GCJ \
17224    archive_expsym_cmds_GCJ \
17225    postinstall_cmds_GCJ \
17226    postuninstall_cmds_GCJ \
17227    old_archive_from_expsyms_cmds_GCJ \
17228    allow_undefined_flag_GCJ \
17229    no_undefined_flag_GCJ \
17230    export_symbols_cmds_GCJ \
17231    hardcode_libdir_flag_spec_GCJ \
17232    hardcode_libdir_flag_spec_ld_GCJ \
17233    hardcode_libdir_separator_GCJ \
17234    hardcode_automatic_GCJ \
17235    module_cmds_GCJ \
17236    module_expsym_cmds_GCJ \
17237    lt_cv_prog_compiler_c_o_GCJ \
17238    exclude_expsyms_GCJ \
17239    include_expsyms_GCJ; do
17240
17241    case $var in
17242    old_archive_cmds_GCJ | \
17243    old_archive_from_new_cmds_GCJ | \
17244    archive_cmds_GCJ | \
17245    archive_expsym_cmds_GCJ | \
17246    module_cmds_GCJ | \
17247    module_expsym_cmds_GCJ | \
17248    old_archive_from_expsyms_cmds_GCJ | \
17249    export_symbols_cmds_GCJ | \
17250    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17251    postinstall_cmds | postuninstall_cmds | \
17252    old_postinstall_cmds | old_postuninstall_cmds | \
17253    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17254      # Double-quote double-evaled strings.
17255      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17256      ;;
17257    *)
17258      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17259      ;;
17260    esac
17261  done
17262
17263  case $lt_echo in
17264  *'\$0 --fallback-echo"')
17265    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17266    ;;
17267  esac
17268
17269cfgfile="$ofile"
17270
17271  cat <<__EOF__ >> "$cfgfile"
17272# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17273
17274# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17275
17276# Shell to use when invoking shell scripts.
17277SHELL=$lt_SHELL
17278
17279# Whether or not to build shared libraries.
17280build_libtool_libs=$enable_shared
17281
17282# Whether or not to build static libraries.
17283build_old_libs=$enable_static
17284
17285# Whether or not to add -lc for building shared libraries.
17286build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17287
17288# Whether or not to disallow shared libs when runtime libs are static
17289allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17290
17291# Whether or not to optimize for fast installation.
17292fast_install=$enable_fast_install
17293
17294# The host system.
17295host_alias=$host_alias
17296host=$host
17297
17298# An echo program that does not interpret backslashes.
17299echo=$lt_echo
17300
17301# The archiver.
17302AR=$lt_AR
17303AR_FLAGS=$lt_AR_FLAGS
17304
17305# A C compiler.
17306LTCC=$lt_LTCC
17307
17308# A language-specific compiler.
17309CC=$lt_compiler_GCJ
17310
17311# Is the compiler the GNU C compiler?
17312with_gcc=$GCC_GCJ
17313
17314# An ERE matcher.
17315EGREP=$lt_EGREP
17316
17317# The linker used to build libraries.
17318LD=$lt_LD_GCJ
17319
17320# Whether we need hard or soft links.
17321LN_S=$lt_LN_S
17322
17323# A BSD-compatible nm program.
17324NM=$lt_NM
17325
17326# A symbol stripping program
17327STRIP=$STRIP
17328
17329# Used to examine libraries when file_magic_cmd begins "file"
17330MAGIC_CMD=$MAGIC_CMD
17331
17332# Used on cygwin: DLL creation program.
17333DLLTOOL="$DLLTOOL"
17334
17335# Used on cygwin: object dumper.
17336OBJDUMP="$OBJDUMP"
17337
17338# Used on cygwin: assembler.
17339AS="$AS"
17340
17341# The name of the directory that contains temporary libtool files.
17342objdir=$objdir
17343
17344# How to create reloadable object files.
17345reload_flag=$lt_reload_flag
17346reload_cmds=$lt_reload_cmds
17347
17348# How to pass a linker flag through the compiler.
17349wl=$lt_lt_prog_compiler_wl_GCJ
17350
17351# Object file suffix (normally "o").
17352objext="$ac_objext"
17353
17354# Old archive suffix (normally "a").
17355libext="$libext"
17356
17357# Shared library suffix (normally ".so").
17358shrext='$shrext'
17359
17360# Executable file suffix (normally "").
17361exeext="$exeext"
17362
17363# Additional compiler flags for building library objects.
17364pic_flag=$lt_lt_prog_compiler_pic_GCJ
17365pic_mode=$pic_mode
17366
17367# What is the maximum length of a command?
17368max_cmd_len=$lt_cv_sys_max_cmd_len
17369
17370# Does compiler simultaneously support -c and -o options?
17371compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17372
17373# Must we lock files when doing compilation ?
17374need_locks=$lt_need_locks
17375
17376# Do we need the lib prefix for modules?
17377need_lib_prefix=$need_lib_prefix
17378
17379# Do we need a version for libraries?
17380need_version=$need_version
17381
17382# Whether dlopen is supported.
17383dlopen_support=$enable_dlopen
17384
17385# Whether dlopen of programs is supported.
17386dlopen_self=$enable_dlopen_self
17387
17388# Whether dlopen of statically linked programs is supported.
17389dlopen_self_static=$enable_dlopen_self_static
17390
17391# Compiler flag to prevent dynamic linking.
17392link_static_flag=$lt_lt_prog_compiler_static_GCJ
17393
17394# Compiler flag to turn off builtin functions.
17395no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17396
17397# Compiler flag to allow reflexive dlopens.
17398export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17399
17400# Compiler flag to generate shared objects directly from archives.
17401whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17402
17403# Compiler flag to generate thread-safe objects.
17404thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17405
17406# Library versioning type.
17407version_type=$version_type
17408
17409# Format of library name prefix.
17410libname_spec=$lt_libname_spec
17411
17412# List of archive names.  First name is the real one, the rest are links.
17413# The last name is the one that the linker finds with -lNAME.
17414library_names_spec=$lt_library_names_spec
17415
17416# The coded name of the library, if different from the real name.
17417soname_spec=$lt_soname_spec
17418
17419# Commands used to build and install an old-style archive.
17420RANLIB=$lt_RANLIB
17421old_archive_cmds=$lt_old_archive_cmds_GCJ
17422old_postinstall_cmds=$lt_old_postinstall_cmds
17423old_postuninstall_cmds=$lt_old_postuninstall_cmds
17424
17425# Create an old-style archive from a shared archive.
17426old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17427
17428# Create a temporary old-style archive to link instead of a shared archive.
17429old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17430
17431# Commands used to build and install a shared archive.
17432archive_cmds=$lt_archive_cmds_GCJ
17433archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17434postinstall_cmds=$lt_postinstall_cmds
17435postuninstall_cmds=$lt_postuninstall_cmds
17436
17437# Commands used to build a loadable module (assumed same as above if empty)
17438module_cmds=$lt_module_cmds_GCJ
17439module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17440
17441# Commands to strip libraries.
17442old_striplib=$lt_old_striplib
17443striplib=$lt_striplib
17444
17445# Dependencies to place before the objects being linked to create a
17446# shared library.
17447predep_objects=$lt_predep_objects_GCJ
17448
17449# Dependencies to place after the objects being linked to create a
17450# shared library.
17451postdep_objects=$lt_postdep_objects_GCJ
17452
17453# Dependencies to place before the objects being linked to create a
17454# shared library.
17455predeps=$lt_predeps_GCJ
17456
17457# Dependencies to place after the objects being linked to create a
17458# shared library.
17459postdeps=$lt_postdeps_GCJ
17460
17461# The library search path used internally by the compiler when linking
17462# a shared library.
17463compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17464
17465# Method to check whether dependent libraries are shared objects.
17466deplibs_check_method=$lt_deplibs_check_method
17467
17468# Command to use when deplibs_check_method == file_magic.
17469file_magic_cmd=$lt_file_magic_cmd
17470
17471# Flag that allows shared libraries with undefined symbols to be built.
17472allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17473
17474# Flag that forces no undefined symbols.
17475no_undefined_flag=$lt_no_undefined_flag_GCJ
17476
17477# Commands used to finish a libtool library installation in a directory.
17478finish_cmds=$lt_finish_cmds
17479
17480# Same as above, but a single script fragment to be evaled but not shown.
17481finish_eval=$lt_finish_eval
17482
17483# Take the output of nm and produce a listing of raw symbols and C names.
17484global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17485
17486# Transform the output of nm in a proper C declaration
17487global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17488
17489# Transform the output of nm in a C name address pair
17490global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17491
17492# This is the shared library runtime path variable.
17493runpath_var=$runpath_var
17494
17495# This is the shared library path variable.
17496shlibpath_var=$shlibpath_var
17497
17498# Is shlibpath searched before the hard-coded library search path?
17499shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17500
17501# How to hardcode a shared library path into an executable.
17502hardcode_action=$hardcode_action_GCJ
17503
17504# Whether we should hardcode library paths into libraries.
17505hardcode_into_libs=$hardcode_into_libs
17506
17507# Flag to hardcode \$libdir into a binary during linking.
17508# This must work even if \$libdir does not exist.
17509hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17510
17511# If ld is used when linking, flag to hardcode \$libdir into
17512# a binary during linking. This must work even if \$libdir does
17513# not exist.
17514hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17515
17516# Whether we need a single -rpath flag with a separated argument.
17517hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17518
17519# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17520# resulting binary.
17521hardcode_direct=$hardcode_direct_GCJ
17522
17523# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17524# resulting binary.
17525hardcode_minus_L=$hardcode_minus_L_GCJ
17526
17527# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17528# the resulting binary.
17529hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17530
17531# Set to yes if building a shared library automatically hardcodes DIR into the library
17532# and all subsequent libraries and executables linked against it.
17533hardcode_automatic=$hardcode_automatic_GCJ
17534
17535# Variables whose values should be saved in libtool wrapper scripts and
17536# restored at relink time.
17537variables_saved_for_relink="$variables_saved_for_relink"
17538
17539# Whether libtool must link a program against all its dependency libraries.
17540link_all_deplibs=$link_all_deplibs_GCJ
17541
17542# Compile-time system search path for libraries
17543sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17544
17545# Run-time system search path for libraries
17546sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17547
17548# Fix the shell variable \$srcfile for the compiler.
17549fix_srcfile_path="$fix_srcfile_path_GCJ"
17550
17551# Set to yes if exported symbols are required.
17552always_export_symbols=$always_export_symbols_GCJ
17553
17554# The commands to list exported symbols.
17555export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17556
17557# The commands to extract the exported symbol list from a shared archive.
17558extract_expsyms_cmds=$lt_extract_expsyms_cmds
17559
17560# Symbols that should not be listed in the preloaded symbols.
17561exclude_expsyms=$lt_exclude_expsyms_GCJ
17562
17563# Symbols that must always be exported.
17564include_expsyms=$lt_include_expsyms_GCJ
17565
17566# ### END LIBTOOL TAG CONFIG: $tagname
17567
17568__EOF__
17569
17570
17571else
17572  # If there is no Makefile yet, we rely on a make rule to execute
17573  # `config.status --recheck' to rerun these tests and create the
17574  # libtool script then.
17575  test -f Makefile && make "$ltmain"
17576fi
17577
17578
17579ac_ext=c
17580ac_cpp='$CPP $CPPFLAGS'
17581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17583ac_compiler_gnu=$ac_cv_c_compiler_gnu
17584
17585CC="$lt_save_CC"
17586
17587	else
17588	  tagname=""
17589	fi
17590	;;
17591
17592      RC)
17593
17594
17595
17596# Source file extension for RC test sources.
17597ac_ext=rc
17598
17599# Object file extension for compiled RC test sources.
17600objext=o
17601objext_RC=$objext
17602
17603# Code to be used in simple compile tests
17604lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17605
17606# Code to be used in simple link tests
17607lt_simple_link_test_code="$lt_simple_compile_test_code"
17608
17609# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17610
17611# If no C compiler was specified, use CC.
17612LTCC=${LTCC-"$CC"}
17613
17614# Allow CC to be a program name with arguments.
17615compiler=$CC
17616
17617
17618# Allow CC to be a program name with arguments.
17619lt_save_CC="$CC"
17620CC=${RC-"windres"}
17621compiler=$CC
17622compiler_RC=$CC
17623lt_cv_prog_compiler_c_o_RC=yes
17624
17625# The else clause should only fire when bootstrapping the
17626# libtool distribution, otherwise you forgot to ship ltmain.sh
17627# with your package, and you will get complaints that there are
17628# no rules to generate ltmain.sh.
17629if test -f "$ltmain"; then
17630  # See if we are running on zsh, and set the options which allow our commands through
17631  # without removal of \ escapes.
17632  if test -n "${ZSH_VERSION+set}" ; then
17633    setopt NO_GLOB_SUBST
17634  fi
17635  # Now quote all the things that may contain metacharacters while being
17636  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17637  # variables and quote the copies for generation of the libtool script.
17638  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17639    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17640    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17641    deplibs_check_method reload_flag reload_cmds need_locks \
17642    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17643    lt_cv_sys_global_symbol_to_c_name_address \
17644    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17645    old_postinstall_cmds old_postuninstall_cmds \
17646    compiler_RC \
17647    CC_RC \
17648    LD_RC \
17649    lt_prog_compiler_wl_RC \
17650    lt_prog_compiler_pic_RC \
17651    lt_prog_compiler_static_RC \
17652    lt_prog_compiler_no_builtin_flag_RC \
17653    export_dynamic_flag_spec_RC \
17654    thread_safe_flag_spec_RC \
17655    whole_archive_flag_spec_RC \
17656    enable_shared_with_static_runtimes_RC \
17657    old_archive_cmds_RC \
17658    old_archive_from_new_cmds_RC \
17659    predep_objects_RC \
17660    postdep_objects_RC \
17661    predeps_RC \
17662    postdeps_RC \
17663    compiler_lib_search_path_RC \
17664    archive_cmds_RC \
17665    archive_expsym_cmds_RC \
17666    postinstall_cmds_RC \
17667    postuninstall_cmds_RC \
17668    old_archive_from_expsyms_cmds_RC \
17669    allow_undefined_flag_RC \
17670    no_undefined_flag_RC \
17671    export_symbols_cmds_RC \
17672    hardcode_libdir_flag_spec_RC \
17673    hardcode_libdir_flag_spec_ld_RC \
17674    hardcode_libdir_separator_RC \
17675    hardcode_automatic_RC \
17676    module_cmds_RC \
17677    module_expsym_cmds_RC \
17678    lt_cv_prog_compiler_c_o_RC \
17679    exclude_expsyms_RC \
17680    include_expsyms_RC; do
17681
17682    case $var in
17683    old_archive_cmds_RC | \
17684    old_archive_from_new_cmds_RC | \
17685    archive_cmds_RC | \
17686    archive_expsym_cmds_RC | \
17687    module_cmds_RC | \
17688    module_expsym_cmds_RC | \
17689    old_archive_from_expsyms_cmds_RC | \
17690    export_symbols_cmds_RC | \
17691    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17692    postinstall_cmds | postuninstall_cmds | \
17693    old_postinstall_cmds | old_postuninstall_cmds | \
17694    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17695      # Double-quote double-evaled strings.
17696      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17697      ;;
17698    *)
17699      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17700      ;;
17701    esac
17702  done
17703
17704  case $lt_echo in
17705  *'\$0 --fallback-echo"')
17706    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17707    ;;
17708  esac
17709
17710cfgfile="$ofile"
17711
17712  cat <<__EOF__ >> "$cfgfile"
17713# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17714
17715# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17716
17717# Shell to use when invoking shell scripts.
17718SHELL=$lt_SHELL
17719
17720# Whether or not to build shared libraries.
17721build_libtool_libs=$enable_shared
17722
17723# Whether or not to build static libraries.
17724build_old_libs=$enable_static
17725
17726# Whether or not to add -lc for building shared libraries.
17727build_libtool_need_lc=$archive_cmds_need_lc_RC
17728
17729# Whether or not to disallow shared libs when runtime libs are static
17730allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17731
17732# Whether or not to optimize for fast installation.
17733fast_install=$enable_fast_install
17734
17735# The host system.
17736host_alias=$host_alias
17737host=$host
17738
17739# An echo program that does not interpret backslashes.
17740echo=$lt_echo
17741
17742# The archiver.
17743AR=$lt_AR
17744AR_FLAGS=$lt_AR_FLAGS
17745
17746# A C compiler.
17747LTCC=$lt_LTCC
17748
17749# A language-specific compiler.
17750CC=$lt_compiler_RC
17751
17752# Is the compiler the GNU C compiler?
17753with_gcc=$GCC_RC
17754
17755# An ERE matcher.
17756EGREP=$lt_EGREP
17757
17758# The linker used to build libraries.
17759LD=$lt_LD_RC
17760
17761# Whether we need hard or soft links.
17762LN_S=$lt_LN_S
17763
17764# A BSD-compatible nm program.
17765NM=$lt_NM
17766
17767# A symbol stripping program
17768STRIP=$STRIP
17769
17770# Used to examine libraries when file_magic_cmd begins "file"
17771MAGIC_CMD=$MAGIC_CMD
17772
17773# Used on cygwin: DLL creation program.
17774DLLTOOL="$DLLTOOL"
17775
17776# Used on cygwin: object dumper.
17777OBJDUMP="$OBJDUMP"
17778
17779# Used on cygwin: assembler.
17780AS="$AS"
17781
17782# The name of the directory that contains temporary libtool files.
17783objdir=$objdir
17784
17785# How to create reloadable object files.
17786reload_flag=$lt_reload_flag
17787reload_cmds=$lt_reload_cmds
17788
17789# How to pass a linker flag through the compiler.
17790wl=$lt_lt_prog_compiler_wl_RC
17791
17792# Object file suffix (normally "o").
17793objext="$ac_objext"
17794
17795# Old archive suffix (normally "a").
17796libext="$libext"
17797
17798# Shared library suffix (normally ".so").
17799shrext='$shrext'
17800
17801# Executable file suffix (normally "").
17802exeext="$exeext"
17803
17804# Additional compiler flags for building library objects.
17805pic_flag=$lt_lt_prog_compiler_pic_RC
17806pic_mode=$pic_mode
17807
17808# What is the maximum length of a command?
17809max_cmd_len=$lt_cv_sys_max_cmd_len
17810
17811# Does compiler simultaneously support -c and -o options?
17812compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17813
17814# Must we lock files when doing compilation ?
17815need_locks=$lt_need_locks
17816
17817# Do we need the lib prefix for modules?
17818need_lib_prefix=$need_lib_prefix
17819
17820# Do we need a version for libraries?
17821need_version=$need_version
17822
17823# Whether dlopen is supported.
17824dlopen_support=$enable_dlopen
17825
17826# Whether dlopen of programs is supported.
17827dlopen_self=$enable_dlopen_self
17828
17829# Whether dlopen of statically linked programs is supported.
17830dlopen_self_static=$enable_dlopen_self_static
17831
17832# Compiler flag to prevent dynamic linking.
17833link_static_flag=$lt_lt_prog_compiler_static_RC
17834
17835# Compiler flag to turn off builtin functions.
17836no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17837
17838# Compiler flag to allow reflexive dlopens.
17839export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17840
17841# Compiler flag to generate shared objects directly from archives.
17842whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17843
17844# Compiler flag to generate thread-safe objects.
17845thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17846
17847# Library versioning type.
17848version_type=$version_type
17849
17850# Format of library name prefix.
17851libname_spec=$lt_libname_spec
17852
17853# List of archive names.  First name is the real one, the rest are links.
17854# The last name is the one that the linker finds with -lNAME.
17855library_names_spec=$lt_library_names_spec
17856
17857# The coded name of the library, if different from the real name.
17858soname_spec=$lt_soname_spec
17859
17860# Commands used to build and install an old-style archive.
17861RANLIB=$lt_RANLIB
17862old_archive_cmds=$lt_old_archive_cmds_RC
17863old_postinstall_cmds=$lt_old_postinstall_cmds
17864old_postuninstall_cmds=$lt_old_postuninstall_cmds
17865
17866# Create an old-style archive from a shared archive.
17867old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17868
17869# Create a temporary old-style archive to link instead of a shared archive.
17870old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17871
17872# Commands used to build and install a shared archive.
17873archive_cmds=$lt_archive_cmds_RC
17874archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17875postinstall_cmds=$lt_postinstall_cmds
17876postuninstall_cmds=$lt_postuninstall_cmds
17877
17878# Commands used to build a loadable module (assumed same as above if empty)
17879module_cmds=$lt_module_cmds_RC
17880module_expsym_cmds=$lt_module_expsym_cmds_RC
17881
17882# Commands to strip libraries.
17883old_striplib=$lt_old_striplib
17884striplib=$lt_striplib
17885
17886# Dependencies to place before the objects being linked to create a
17887# shared library.
17888predep_objects=$lt_predep_objects_RC
17889
17890# Dependencies to place after the objects being linked to create a
17891# shared library.
17892postdep_objects=$lt_postdep_objects_RC
17893
17894# Dependencies to place before the objects being linked to create a
17895# shared library.
17896predeps=$lt_predeps_RC
17897
17898# Dependencies to place after the objects being linked to create a
17899# shared library.
17900postdeps=$lt_postdeps_RC
17901
17902# The library search path used internally by the compiler when linking
17903# a shared library.
17904compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17905
17906# Method to check whether dependent libraries are shared objects.
17907deplibs_check_method=$lt_deplibs_check_method
17908
17909# Command to use when deplibs_check_method == file_magic.
17910file_magic_cmd=$lt_file_magic_cmd
17911
17912# Flag that allows shared libraries with undefined symbols to be built.
17913allow_undefined_flag=$lt_allow_undefined_flag_RC
17914
17915# Flag that forces no undefined symbols.
17916no_undefined_flag=$lt_no_undefined_flag_RC
17917
17918# Commands used to finish a libtool library installation in a directory.
17919finish_cmds=$lt_finish_cmds
17920
17921# Same as above, but a single script fragment to be evaled but not shown.
17922finish_eval=$lt_finish_eval
17923
17924# Take the output of nm and produce a listing of raw symbols and C names.
17925global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17926
17927# Transform the output of nm in a proper C declaration
17928global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17929
17930# Transform the output of nm in a C name address pair
17931global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17932
17933# This is the shared library runtime path variable.
17934runpath_var=$runpath_var
17935
17936# This is the shared library path variable.
17937shlibpath_var=$shlibpath_var
17938
17939# Is shlibpath searched before the hard-coded library search path?
17940shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17941
17942# How to hardcode a shared library path into an executable.
17943hardcode_action=$hardcode_action_RC
17944
17945# Whether we should hardcode library paths into libraries.
17946hardcode_into_libs=$hardcode_into_libs
17947
17948# Flag to hardcode \$libdir into a binary during linking.
17949# This must work even if \$libdir does not exist.
17950hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17951
17952# If ld is used when linking, flag to hardcode \$libdir into
17953# a binary during linking. This must work even if \$libdir does
17954# not exist.
17955hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17956
17957# Whether we need a single -rpath flag with a separated argument.
17958hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17959
17960# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17961# resulting binary.
17962hardcode_direct=$hardcode_direct_RC
17963
17964# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17965# resulting binary.
17966hardcode_minus_L=$hardcode_minus_L_RC
17967
17968# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17969# the resulting binary.
17970hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17971
17972# Set to yes if building a shared library automatically hardcodes DIR into the library
17973# and all subsequent libraries and executables linked against it.
17974hardcode_automatic=$hardcode_automatic_RC
17975
17976# Variables whose values should be saved in libtool wrapper scripts and
17977# restored at relink time.
17978variables_saved_for_relink="$variables_saved_for_relink"
17979
17980# Whether libtool must link a program against all its dependency libraries.
17981link_all_deplibs=$link_all_deplibs_RC
17982
17983# Compile-time system search path for libraries
17984sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17985
17986# Run-time system search path for libraries
17987sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17988
17989# Fix the shell variable \$srcfile for the compiler.
17990fix_srcfile_path="$fix_srcfile_path_RC"
17991
17992# Set to yes if exported symbols are required.
17993always_export_symbols=$always_export_symbols_RC
17994
17995# The commands to list exported symbols.
17996export_symbols_cmds=$lt_export_symbols_cmds_RC
17997
17998# The commands to extract the exported symbol list from a shared archive.
17999extract_expsyms_cmds=$lt_extract_expsyms_cmds
18000
18001# Symbols that should not be listed in the preloaded symbols.
18002exclude_expsyms=$lt_exclude_expsyms_RC
18003
18004# Symbols that must always be exported.
18005include_expsyms=$lt_include_expsyms_RC
18006
18007# ### END LIBTOOL TAG CONFIG: $tagname
18008
18009__EOF__
18010
18011
18012else
18013  # If there is no Makefile yet, we rely on a make rule to execute
18014  # `config.status --recheck' to rerun these tests and create the
18015  # libtool script then.
18016  test -f Makefile && make "$ltmain"
18017fi
18018
18019
18020ac_ext=c
18021ac_cpp='$CPP $CPPFLAGS'
18022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18024ac_compiler_gnu=$ac_cv_c_compiler_gnu
18025
18026CC="$lt_save_CC"
18027
18028	;;
18029
18030      *)
18031	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18032echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18033   { (exit 1); exit 1; }; }
18034	;;
18035      esac
18036
18037      # Append the new tag name to the list of available tags.
18038      if test -n "$tagname" ; then
18039      available_tags="$available_tags $tagname"
18040    fi
18041    fi
18042  done
18043  IFS="$lt_save_ifs"
18044
18045  # Now substitute the updated list of available tags.
18046  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18047    mv "${ofile}T" "$ofile"
18048    chmod +x "$ofile"
18049  else
18050    rm -f "${ofile}T"
18051    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18052echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18053   { (exit 1); exit 1; }; }
18054  fi
18055fi
18056
18057
18058
18059# This can be used to rebuild libtool when needed
18060LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18061
18062# Always use our own libtool.
18063LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18064
18065# Prevent multiple expansion
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087# Extract the first word of "dot", so it can be a program name with args.
18088set dummy dot; ac_word=$2
18089echo "$as_me:$LINENO: checking for $ac_word" >&5
18090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18091if test "${ac_cv_path_DOT+set}" = set; then
18092  echo $ECHO_N "(cached) $ECHO_C" >&6
18093else
18094  case $DOT in
18095  [\\/]* | ?:[\\/]*)
18096  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18097  ;;
18098  *)
18099  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18100for as_dir in $PATH
18101do
18102  IFS=$as_save_IFS
18103  test -z "$as_dir" && as_dir=.
18104  for ac_exec_ext in '' $ac_executable_extensions; do
18105  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18106    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18107    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18108    break 2
18109  fi
18110done
18111done
18112
18113  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18114  ;;
18115esac
18116fi
18117DOT=$ac_cv_path_DOT
18118
18119if test -n "$DOT"; then
18120  echo "$as_me:$LINENO: result: $DOT" >&5
18121echo "${ECHO_T}$DOT" >&6
18122else
18123  echo "$as_me:$LINENO: result: no" >&5
18124echo "${ECHO_T}no" >&6
18125fi
18126
18127# Extract the first word of "etags", so it can be a program name with args.
18128set dummy etags; ac_word=$2
18129echo "$as_me:$LINENO: checking for $ac_word" >&5
18130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18131if test "${ac_cv_path_ETAGS+set}" = set; then
18132  echo $ECHO_N "(cached) $ECHO_C" >&6
18133else
18134  case $ETAGS in
18135  [\\/]* | ?:[\\/]*)
18136  ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18137  ;;
18138  *)
18139  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18140for as_dir in $PATH
18141do
18142  IFS=$as_save_IFS
18143  test -z "$as_dir" && as_dir=.
18144  for ac_exec_ext in '' $ac_executable_extensions; do
18145  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18146    ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18147    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18148    break 2
18149  fi
18150done
18151done
18152
18153  test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18154  ;;
18155esac
18156fi
18157ETAGS=$ac_cv_path_ETAGS
18158
18159if test -n "$ETAGS"; then
18160  echo "$as_me:$LINENO: result: $ETAGS" >&5
18161echo "${ECHO_T}$ETAGS" >&6
18162else
18163  echo "$as_me:$LINENO: result: no" >&5
18164echo "${ECHO_T}no" >&6
18165fi
18166
18167etags_version=`$ETAGS --version 2>&1`
18168case "$etags_version" in
18169	*Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18170	*GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18171	*) ETAGSFLAGS="" ;;
18172esac
18173ETAGSFLAGS=$ETAGSFLAGS
18174
18175# Extract the first word of "python", so it can be a program name with args.
18176set dummy python; ac_word=$2
18177echo "$as_me:$LINENO: checking for $ac_word" >&5
18178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18179if test "${ac_cv_path_PYTHON+set}" = set; then
18180  echo $ECHO_N "(cached) $ECHO_C" >&6
18181else
18182  case $PYTHON in
18183  [\\/]* | ?:[\\/]*)
18184  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18185  ;;
18186  *)
18187  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18188for as_dir in $PATH
18189do
18190  IFS=$as_save_IFS
18191  test -z "$as_dir" && as_dir=.
18192  for ac_exec_ext in '' $ac_executable_extensions; do
18193  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18194    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18195    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18196    break 2
18197  fi
18198done
18199done
18200
18201  test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18202  ;;
18203esac
18204fi
18205PYTHON=$ac_cv_path_PYTHON
18206
18207if test -n "$PYTHON"; then
18208  echo "$as_me:$LINENO: result: $PYTHON" >&5
18209echo "${ECHO_T}$PYTHON" >&6
18210else
18211  echo "$as_me:$LINENO: result: no" >&5
18212echo "${ECHO_T}no" >&6
18213fi
18214
18215if test "$PYTHON" = "false"
18216then
18217	{ echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18218echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18219fi
18220# Extract the first word of "qmtest", so it can be a program name with args.
18221set dummy qmtest; ac_word=$2
18222echo "$as_me:$LINENO: checking for $ac_word" >&5
18223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18224if test "${ac_cv_path_QMTEST+set}" = set; then
18225  echo $ECHO_N "(cached) $ECHO_C" >&6
18226else
18227  case $QMTEST in
18228  [\\/]* | ?:[\\/]*)
18229  ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18230  ;;
18231  *)
18232  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18233for as_dir in $PATH
18234do
18235  IFS=$as_save_IFS
18236  test -z "$as_dir" && as_dir=.
18237  for ac_exec_ext in '' $ac_executable_extensions; do
18238  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18239    ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18240    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18241    break 2
18242  fi
18243done
18244done
18245
18246  test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18247  ;;
18248esac
18249fi
18250QMTEST=$ac_cv_path_QMTEST
18251
18252if test -n "$QMTEST"; then
18253  echo "$as_me:$LINENO: result: $QMTEST" >&5
18254echo "${ECHO_T}$QMTEST" >&6
18255else
18256  echo "$as_me:$LINENO: result: no" >&5
18257echo "${ECHO_T}no" >&6
18258fi
18259
18260if test "$QMTEST" = "false"
18261then
18262	{ echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18263echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18264fi
18265
18266pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18267pymajor=`echo $pyversion | cut -d. -f1`
18268pyminor=`echo $pyversion | cut -d. -f2`
18269
18270if test "$pymajor" -ge "2"
18271then
18272	if test "$pymajor" -eq "2"
18273	then
18274		if test "$pyminor" -lt "2"
18275		then
18276			{ echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18277echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18278		fi
18279	fi
18280else
18281	{ echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18282echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18283fi
18284
18285
18286
18287
18288echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18289echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18290if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18291  echo $ECHO_N "(cached) $ECHO_C" >&6
18292else
18293  ac_check_lib_save_LIBS=$LIBS
18294LIBS="-lelf  $LIBS"
18295cat >conftest.$ac_ext <<_ACEOF
18296#line $LINENO "configure"
18297/* confdefs.h.  */
18298_ACEOF
18299cat confdefs.h >>conftest.$ac_ext
18300cat >>conftest.$ac_ext <<_ACEOF
18301/* end confdefs.h.  */
18302
18303/* Override any gcc2 internal prototype to avoid an error.  */
18304#ifdef __cplusplus
18305extern "C"
18306#endif
18307/* We use char because int might match the return type of a gcc2
18308   builtin and then its argument prototype would still apply.  */
18309char elf_begin ();
18310int
18311main ()
18312{
18313elf_begin ();
18314  ;
18315  return 0;
18316}
18317_ACEOF
18318rm -f conftest.$ac_objext conftest$ac_exeext
18319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18320  (eval $ac_link) 2>&5
18321  ac_status=$?
18322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323  (exit $ac_status); } &&
18324         { ac_try='test -s conftest$ac_exeext'
18325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326  (eval $ac_try) 2>&5
18327  ac_status=$?
18328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329  (exit $ac_status); }; }; then
18330  ac_cv_lib_elf_elf_begin=yes
18331else
18332  echo "$as_me: failed program was:" >&5
18333sed 's/^/| /' conftest.$ac_ext >&5
18334
18335ac_cv_lib_elf_elf_begin=no
18336fi
18337rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18338LIBS=$ac_check_lib_save_LIBS
18339fi
18340echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18341echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18342if test $ac_cv_lib_elf_elf_begin = yes; then
18343  cat >>confdefs.h <<_ACEOF
18344#define HAVE_LIBELF 1
18345_ACEOF
18346
18347  LIBS="-lelf $LIBS"
18348
18349fi
18350
18351
18352echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18353echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18354if test "${ac_cv_search_dlopen+set}" = set; then
18355  echo $ECHO_N "(cached) $ECHO_C" >&6
18356else
18357  ac_func_search_save_LIBS=$LIBS
18358ac_cv_search_dlopen=no
18359cat >conftest.$ac_ext <<_ACEOF
18360#line $LINENO "configure"
18361/* confdefs.h.  */
18362_ACEOF
18363cat confdefs.h >>conftest.$ac_ext
18364cat >>conftest.$ac_ext <<_ACEOF
18365/* end confdefs.h.  */
18366
18367/* Override any gcc2 internal prototype to avoid an error.  */
18368#ifdef __cplusplus
18369extern "C"
18370#endif
18371/* We use char because int might match the return type of a gcc2
18372   builtin and then its argument prototype would still apply.  */
18373char dlopen ();
18374int
18375main ()
18376{
18377dlopen ();
18378  ;
18379  return 0;
18380}
18381_ACEOF
18382rm -f conftest.$ac_objext conftest$ac_exeext
18383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18384  (eval $ac_link) 2>&5
18385  ac_status=$?
18386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387  (exit $ac_status); } &&
18388         { ac_try='test -s conftest$ac_exeext'
18389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18390  (eval $ac_try) 2>&5
18391  ac_status=$?
18392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393  (exit $ac_status); }; }; then
18394  ac_cv_search_dlopen="none required"
18395else
18396  echo "$as_me: failed program was:" >&5
18397sed 's/^/| /' conftest.$ac_ext >&5
18398
18399fi
18400rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18401if test "$ac_cv_search_dlopen" = no; then
18402  for ac_lib in dl; do
18403    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18404    cat >conftest.$ac_ext <<_ACEOF
18405#line $LINENO "configure"
18406/* confdefs.h.  */
18407_ACEOF
18408cat confdefs.h >>conftest.$ac_ext
18409cat >>conftest.$ac_ext <<_ACEOF
18410/* end confdefs.h.  */
18411
18412/* Override any gcc2 internal prototype to avoid an error.  */
18413#ifdef __cplusplus
18414extern "C"
18415#endif
18416/* We use char because int might match the return type of a gcc2
18417   builtin and then its argument prototype would still apply.  */
18418char dlopen ();
18419int
18420main ()
18421{
18422dlopen ();
18423  ;
18424  return 0;
18425}
18426_ACEOF
18427rm -f conftest.$ac_objext conftest$ac_exeext
18428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18429  (eval $ac_link) 2>&5
18430  ac_status=$?
18431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432  (exit $ac_status); } &&
18433         { ac_try='test -s conftest$ac_exeext'
18434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435  (eval $ac_try) 2>&5
18436  ac_status=$?
18437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438  (exit $ac_status); }; }; then
18439  ac_cv_search_dlopen="-l$ac_lib"
18440break
18441else
18442  echo "$as_me: failed program was:" >&5
18443sed 's/^/| /' conftest.$ac_ext >&5
18444
18445fi
18446rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18447  done
18448fi
18449LIBS=$ac_func_search_save_LIBS
18450fi
18451echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18452echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18453if test "$ac_cv_search_dlopen" != no; then
18454  test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18455
18456cat >>confdefs.h <<\_ACEOF
18457#define HAVE_DLOPEN 1
18458_ACEOF
18459
18460else
18461  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18462echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18463fi
18464
18465
18466echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18467echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18468if test "${ac_cv_search_mallinfo+set}" = set; then
18469  echo $ECHO_N "(cached) $ECHO_C" >&6
18470else
18471  ac_func_search_save_LIBS=$LIBS
18472ac_cv_search_mallinfo=no
18473cat >conftest.$ac_ext <<_ACEOF
18474#line $LINENO "configure"
18475/* confdefs.h.  */
18476_ACEOF
18477cat confdefs.h >>conftest.$ac_ext
18478cat >>conftest.$ac_ext <<_ACEOF
18479/* end confdefs.h.  */
18480
18481/* Override any gcc2 internal prototype to avoid an error.  */
18482#ifdef __cplusplus
18483extern "C"
18484#endif
18485/* We use char because int might match the return type of a gcc2
18486   builtin and then its argument prototype would still apply.  */
18487char mallinfo ();
18488int
18489main ()
18490{
18491mallinfo ();
18492  ;
18493  return 0;
18494}
18495_ACEOF
18496rm -f conftest.$ac_objext conftest$ac_exeext
18497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18498  (eval $ac_link) 2>&5
18499  ac_status=$?
18500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501  (exit $ac_status); } &&
18502         { ac_try='test -s conftest$ac_exeext'
18503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18504  (eval $ac_try) 2>&5
18505  ac_status=$?
18506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507  (exit $ac_status); }; }; then
18508  ac_cv_search_mallinfo="none required"
18509else
18510  echo "$as_me: failed program was:" >&5
18511sed 's/^/| /' conftest.$ac_ext >&5
18512
18513fi
18514rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18515if test "$ac_cv_search_mallinfo" = no; then
18516  for ac_lib in malloc; do
18517    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18518    cat >conftest.$ac_ext <<_ACEOF
18519#line $LINENO "configure"
18520/* confdefs.h.  */
18521_ACEOF
18522cat confdefs.h >>conftest.$ac_ext
18523cat >>conftest.$ac_ext <<_ACEOF
18524/* end confdefs.h.  */
18525
18526/* Override any gcc2 internal prototype to avoid an error.  */
18527#ifdef __cplusplus
18528extern "C"
18529#endif
18530/* We use char because int might match the return type of a gcc2
18531   builtin and then its argument prototype would still apply.  */
18532char mallinfo ();
18533int
18534main ()
18535{
18536mallinfo ();
18537  ;
18538  return 0;
18539}
18540_ACEOF
18541rm -f conftest.$ac_objext conftest$ac_exeext
18542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18543  (eval $ac_link) 2>&5
18544  ac_status=$?
18545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546  (exit $ac_status); } &&
18547         { ac_try='test -s conftest$ac_exeext'
18548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549  (eval $ac_try) 2>&5
18550  ac_status=$?
18551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552  (exit $ac_status); }; }; then
18553  ac_cv_search_mallinfo="-l$ac_lib"
18554break
18555else
18556  echo "$as_me: failed program was:" >&5
18557sed 's/^/| /' conftest.$ac_ext >&5
18558
18559fi
18560rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18561  done
18562fi
18563LIBS=$ac_func_search_save_LIBS
18564fi
18565echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18566echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18567if test "$ac_cv_search_mallinfo" != no; then
18568  test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18569
18570cat >>confdefs.h <<\_ACEOF
18571#define HAVE_MALLINFO 1
18572_ACEOF
18573
18574fi
18575
18576
18577echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18578echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18579if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18580  echo $ECHO_N "(cached) $ECHO_C" >&6
18581else
18582  ac_func_search_save_LIBS=$LIBS
18583ac_cv_search_pthread_mutex_lock=no
18584cat >conftest.$ac_ext <<_ACEOF
18585#line $LINENO "configure"
18586/* confdefs.h.  */
18587_ACEOF
18588cat confdefs.h >>conftest.$ac_ext
18589cat >>conftest.$ac_ext <<_ACEOF
18590/* end confdefs.h.  */
18591
18592/* Override any gcc2 internal prototype to avoid an error.  */
18593#ifdef __cplusplus
18594extern "C"
18595#endif
18596/* We use char because int might match the return type of a gcc2
18597   builtin and then its argument prototype would still apply.  */
18598char pthread_mutex_lock ();
18599int
18600main ()
18601{
18602pthread_mutex_lock ();
18603  ;
18604  return 0;
18605}
18606_ACEOF
18607rm -f conftest.$ac_objext conftest$ac_exeext
18608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18609  (eval $ac_link) 2>&5
18610  ac_status=$?
18611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612  (exit $ac_status); } &&
18613         { ac_try='test -s conftest$ac_exeext'
18614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18615  (eval $ac_try) 2>&5
18616  ac_status=$?
18617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618  (exit $ac_status); }; }; then
18619  ac_cv_search_pthread_mutex_lock="none required"
18620else
18621  echo "$as_me: failed program was:" >&5
18622sed 's/^/| /' conftest.$ac_ext >&5
18623
18624fi
18625rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18626if test "$ac_cv_search_pthread_mutex_lock" = no; then
18627  for ac_lib in pthread; do
18628    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18629    cat >conftest.$ac_ext <<_ACEOF
18630#line $LINENO "configure"
18631/* confdefs.h.  */
18632_ACEOF
18633cat confdefs.h >>conftest.$ac_ext
18634cat >>conftest.$ac_ext <<_ACEOF
18635/* end confdefs.h.  */
18636
18637/* Override any gcc2 internal prototype to avoid an error.  */
18638#ifdef __cplusplus
18639extern "C"
18640#endif
18641/* We use char because int might match the return type of a gcc2
18642   builtin and then its argument prototype would still apply.  */
18643char pthread_mutex_lock ();
18644int
18645main ()
18646{
18647pthread_mutex_lock ();
18648  ;
18649  return 0;
18650}
18651_ACEOF
18652rm -f conftest.$ac_objext conftest$ac_exeext
18653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18654  (eval $ac_link) 2>&5
18655  ac_status=$?
18656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657  (exit $ac_status); } &&
18658         { ac_try='test -s conftest$ac_exeext'
18659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18660  (eval $ac_try) 2>&5
18661  ac_status=$?
18662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663  (exit $ac_status); }; }; then
18664  ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18665break
18666else
18667  echo "$as_me: failed program was:" >&5
18668sed 's/^/| /' conftest.$ac_ext >&5
18669
18670fi
18671rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18672  done
18673fi
18674LIBS=$ac_func_search_save_LIBS
18675fi
18676echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18677echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18678if test "$ac_cv_search_pthread_mutex_lock" != no; then
18679  test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
18680  HAVE_PTHREAD_MUTEX_LOCK=1
18681else
18682  HAVE_PTHREAD_MUTEX_LOCK=0
18683fi
18684
18685
18686
18687echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18688echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18689if test "${ac_cv_header_stdc+set}" = set; then
18690  echo $ECHO_N "(cached) $ECHO_C" >&6
18691else
18692  cat >conftest.$ac_ext <<_ACEOF
18693#line $LINENO "configure"
18694/* confdefs.h.  */
18695_ACEOF
18696cat confdefs.h >>conftest.$ac_ext
18697cat >>conftest.$ac_ext <<_ACEOF
18698/* end confdefs.h.  */
18699#include <stdlib.h>
18700#include <stdarg.h>
18701#include <string.h>
18702#include <float.h>
18703
18704int
18705main ()
18706{
18707
18708  ;
18709  return 0;
18710}
18711_ACEOF
18712rm -f conftest.$ac_objext
18713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18714  (eval $ac_compile) 2>&5
18715  ac_status=$?
18716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717  (exit $ac_status); } &&
18718         { ac_try='test -s conftest.$ac_objext'
18719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18720  (eval $ac_try) 2>&5
18721  ac_status=$?
18722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723  (exit $ac_status); }; }; then
18724  ac_cv_header_stdc=yes
18725else
18726  echo "$as_me: failed program was:" >&5
18727sed 's/^/| /' conftest.$ac_ext >&5
18728
18729ac_cv_header_stdc=no
18730fi
18731rm -f conftest.$ac_objext conftest.$ac_ext
18732
18733if test $ac_cv_header_stdc = yes; then
18734  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18735  cat >conftest.$ac_ext <<_ACEOF
18736#line $LINENO "configure"
18737/* confdefs.h.  */
18738_ACEOF
18739cat confdefs.h >>conftest.$ac_ext
18740cat >>conftest.$ac_ext <<_ACEOF
18741/* end confdefs.h.  */
18742#include <string.h>
18743
18744_ACEOF
18745if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18746  $EGREP "memchr" >/dev/null 2>&1; then
18747  :
18748else
18749  ac_cv_header_stdc=no
18750fi
18751rm -f conftest*
18752
18753fi
18754
18755if test $ac_cv_header_stdc = yes; then
18756  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18757  cat >conftest.$ac_ext <<_ACEOF
18758#line $LINENO "configure"
18759/* confdefs.h.  */
18760_ACEOF
18761cat confdefs.h >>conftest.$ac_ext
18762cat >>conftest.$ac_ext <<_ACEOF
18763/* end confdefs.h.  */
18764#include <stdlib.h>
18765
18766_ACEOF
18767if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18768  $EGREP "free" >/dev/null 2>&1; then
18769  :
18770else
18771  ac_cv_header_stdc=no
18772fi
18773rm -f conftest*
18774
18775fi
18776
18777if test $ac_cv_header_stdc = yes; then
18778  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18779  if test "$cross_compiling" = yes; then
18780  :
18781else
18782  cat >conftest.$ac_ext <<_ACEOF
18783#line $LINENO "configure"
18784/* confdefs.h.  */
18785_ACEOF
18786cat confdefs.h >>conftest.$ac_ext
18787cat >>conftest.$ac_ext <<_ACEOF
18788/* end confdefs.h.  */
18789#include <ctype.h>
18790#if ((' ' & 0x0FF) == 0x020)
18791# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18792# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18793#else
18794# define ISLOWER(c) \
18795                   (('a' <= (c) && (c) <= 'i') \
18796                     || ('j' <= (c) && (c) <= 'r') \
18797                     || ('s' <= (c) && (c) <= 'z'))
18798# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18799#endif
18800
18801#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18802int
18803main ()
18804{
18805  int i;
18806  for (i = 0; i < 256; i++)
18807    if (XOR (islower (i), ISLOWER (i))
18808        || toupper (i) != TOUPPER (i))
18809      exit(2);
18810  exit (0);
18811}
18812_ACEOF
18813rm -f conftest$ac_exeext
18814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18815  (eval $ac_link) 2>&5
18816  ac_status=$?
18817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820  (eval $ac_try) 2>&5
18821  ac_status=$?
18822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823  (exit $ac_status); }; }; then
18824  :
18825else
18826  echo "$as_me: program exited with status $ac_status" >&5
18827echo "$as_me: failed program was:" >&5
18828sed 's/^/| /' conftest.$ac_ext >&5
18829
18830( exit $ac_status )
18831ac_cv_header_stdc=no
18832fi
18833rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18834fi
18835fi
18836fi
18837echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18838echo "${ECHO_T}$ac_cv_header_stdc" >&6
18839if test $ac_cv_header_stdc = yes; then
18840
18841cat >>confdefs.h <<\_ACEOF
18842#define STDC_HEADERS 1
18843_ACEOF
18844
18845fi
18846
18847echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18848echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18849if test "${ac_cv_header_sys_wait_h+set}" = set; then
18850  echo $ECHO_N "(cached) $ECHO_C" >&6
18851else
18852  cat >conftest.$ac_ext <<_ACEOF
18853#line $LINENO "configure"
18854/* confdefs.h.  */
18855_ACEOF
18856cat confdefs.h >>conftest.$ac_ext
18857cat >>conftest.$ac_ext <<_ACEOF
18858/* end confdefs.h.  */
18859#include <sys/types.h>
18860#include <sys/wait.h>
18861#ifndef WEXITSTATUS
18862# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18863#endif
18864#ifndef WIFEXITED
18865# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18866#endif
18867
18868int
18869main ()
18870{
18871  int s;
18872  wait (&s);
18873  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18874  ;
18875  return 0;
18876}
18877_ACEOF
18878rm -f conftest.$ac_objext
18879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18880  (eval $ac_compile) 2>&5
18881  ac_status=$?
18882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883  (exit $ac_status); } &&
18884         { ac_try='test -s conftest.$ac_objext'
18885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18886  (eval $ac_try) 2>&5
18887  ac_status=$?
18888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889  (exit $ac_status); }; }; then
18890  ac_cv_header_sys_wait_h=yes
18891else
18892  echo "$as_me: failed program was:" >&5
18893sed 's/^/| /' conftest.$ac_ext >&5
18894
18895ac_cv_header_sys_wait_h=no
18896fi
18897rm -f conftest.$ac_objext conftest.$ac_ext
18898fi
18899echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18900echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18901if test $ac_cv_header_sys_wait_h = yes; then
18902
18903cat >>confdefs.h <<\_ACEOF
18904#define HAVE_SYS_WAIT_H 1
18905_ACEOF
18906
18907fi
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h
18921do
18922as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18923if eval "test \"\${$as_ac_Header+set}\" = set"; then
18924  echo "$as_me:$LINENO: checking for $ac_header" >&5
18925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18926if eval "test \"\${$as_ac_Header+set}\" = set"; then
18927  echo $ECHO_N "(cached) $ECHO_C" >&6
18928fi
18929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18931else
18932  # Is the header compilable?
18933echo "$as_me:$LINENO: checking $ac_header usability" >&5
18934echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18935cat >conftest.$ac_ext <<_ACEOF
18936#line $LINENO "configure"
18937/* confdefs.h.  */
18938_ACEOF
18939cat confdefs.h >>conftest.$ac_ext
18940cat >>conftest.$ac_ext <<_ACEOF
18941/* end confdefs.h.  */
18942$ac_includes_default
18943#include <$ac_header>
18944_ACEOF
18945rm -f conftest.$ac_objext
18946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18947  (eval $ac_compile) 2>&5
18948  ac_status=$?
18949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950  (exit $ac_status); } &&
18951         { ac_try='test -s conftest.$ac_objext'
18952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953  (eval $ac_try) 2>&5
18954  ac_status=$?
18955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956  (exit $ac_status); }; }; then
18957  ac_header_compiler=yes
18958else
18959  echo "$as_me: failed program was:" >&5
18960sed 's/^/| /' conftest.$ac_ext >&5
18961
18962ac_header_compiler=no
18963fi
18964rm -f conftest.$ac_objext conftest.$ac_ext
18965echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18966echo "${ECHO_T}$ac_header_compiler" >&6
18967
18968# Is the header present?
18969echo "$as_me:$LINENO: checking $ac_header presence" >&5
18970echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18971cat >conftest.$ac_ext <<_ACEOF
18972#line $LINENO "configure"
18973/* confdefs.h.  */
18974_ACEOF
18975cat confdefs.h >>conftest.$ac_ext
18976cat >>conftest.$ac_ext <<_ACEOF
18977/* end confdefs.h.  */
18978#include <$ac_header>
18979_ACEOF
18980if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18981  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18982  ac_status=$?
18983  grep -v '^ *+' conftest.er1 >conftest.err
18984  rm -f conftest.er1
18985  cat conftest.err >&5
18986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987  (exit $ac_status); } >/dev/null; then
18988  if test -s conftest.err; then
18989    ac_cpp_err=$ac_c_preproc_warn_flag
18990  else
18991    ac_cpp_err=
18992  fi
18993else
18994  ac_cpp_err=yes
18995fi
18996if test -z "$ac_cpp_err"; then
18997  ac_header_preproc=yes
18998else
18999  echo "$as_me: failed program was:" >&5
19000sed 's/^/| /' conftest.$ac_ext >&5
19001
19002  ac_header_preproc=no
19003fi
19004rm -f conftest.err conftest.$ac_ext
19005echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19006echo "${ECHO_T}$ac_header_preproc" >&6
19007
19008# So?  What about this header?
19009case $ac_header_compiler:$ac_header_preproc in
19010  yes:no )
19011    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19012echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19013    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19014echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19015    (
19016      cat <<\_ASBOX
19017## ------------------------------------ ##
19018## Report this to bug-autoconf@gnu.org. ##
19019## ------------------------------------ ##
19020_ASBOX
19021    ) |
19022      sed "s/^/$as_me: WARNING:     /" >&2
19023    ;;
19024  no:yes )
19025    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19026echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19027    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19028echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19029    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19030echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19031    (
19032      cat <<\_ASBOX
19033## ------------------------------------ ##
19034## Report this to bug-autoconf@gnu.org. ##
19035## ------------------------------------ ##
19036_ASBOX
19037    ) |
19038      sed "s/^/$as_me: WARNING:     /" >&2
19039    ;;
19040esac
19041echo "$as_me:$LINENO: checking for $ac_header" >&5
19042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19043if eval "test \"\${$as_ac_Header+set}\" = set"; then
19044  echo $ECHO_N "(cached) $ECHO_C" >&6
19045else
19046  eval "$as_ac_Header=$ac_header_preproc"
19047fi
19048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19049echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19050
19051fi
19052if test `eval echo '${'$as_ac_Header'}'` = yes; then
19053  cat >>confdefs.h <<_ACEOF
19054#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19055_ACEOF
19056
19057fi
19058
19059done
19060
19061
19062if test "${ac_cv_header_sys_types_h+set}" = set; then
19063  echo "$as_me:$LINENO: checking for sys/types.h" >&5
19064echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19065if test "${ac_cv_header_sys_types_h+set}" = set; then
19066  echo $ECHO_N "(cached) $ECHO_C" >&6
19067fi
19068echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19069echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19070else
19071  # Is the header compilable?
19072echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19073echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19074cat >conftest.$ac_ext <<_ACEOF
19075#line $LINENO "configure"
19076/* confdefs.h.  */
19077_ACEOF
19078cat confdefs.h >>conftest.$ac_ext
19079cat >>conftest.$ac_ext <<_ACEOF
19080/* end confdefs.h.  */
19081$ac_includes_default
19082#include <sys/types.h>
19083_ACEOF
19084rm -f conftest.$ac_objext
19085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19086  (eval $ac_compile) 2>&5
19087  ac_status=$?
19088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089  (exit $ac_status); } &&
19090         { ac_try='test -s conftest.$ac_objext'
19091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19092  (eval $ac_try) 2>&5
19093  ac_status=$?
19094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095  (exit $ac_status); }; }; then
19096  ac_header_compiler=yes
19097else
19098  echo "$as_me: failed program was:" >&5
19099sed 's/^/| /' conftest.$ac_ext >&5
19100
19101ac_header_compiler=no
19102fi
19103rm -f conftest.$ac_objext conftest.$ac_ext
19104echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19105echo "${ECHO_T}$ac_header_compiler" >&6
19106
19107# Is the header present?
19108echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19109echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19110cat >conftest.$ac_ext <<_ACEOF
19111#line $LINENO "configure"
19112/* confdefs.h.  */
19113_ACEOF
19114cat confdefs.h >>conftest.$ac_ext
19115cat >>conftest.$ac_ext <<_ACEOF
19116/* end confdefs.h.  */
19117#include <sys/types.h>
19118_ACEOF
19119if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19120  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19121  ac_status=$?
19122  grep -v '^ *+' conftest.er1 >conftest.err
19123  rm -f conftest.er1
19124  cat conftest.err >&5
19125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126  (exit $ac_status); } >/dev/null; then
19127  if test -s conftest.err; then
19128    ac_cpp_err=$ac_c_preproc_warn_flag
19129  else
19130    ac_cpp_err=
19131  fi
19132else
19133  ac_cpp_err=yes
19134fi
19135if test -z "$ac_cpp_err"; then
19136  ac_header_preproc=yes
19137else
19138  echo "$as_me: failed program was:" >&5
19139sed 's/^/| /' conftest.$ac_ext >&5
19140
19141  ac_header_preproc=no
19142fi
19143rm -f conftest.err conftest.$ac_ext
19144echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19145echo "${ECHO_T}$ac_header_preproc" >&6
19146
19147# So?  What about this header?
19148case $ac_header_compiler:$ac_header_preproc in
19149  yes:no )
19150    { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19151echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19152    { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19153echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19154    (
19155      cat <<\_ASBOX
19156## ------------------------------------ ##
19157## Report this to bug-autoconf@gnu.org. ##
19158## ------------------------------------ ##
19159_ASBOX
19160    ) |
19161      sed "s/^/$as_me: WARNING:     /" >&2
19162    ;;
19163  no:yes )
19164    { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19165echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19166    { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19167echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19168    { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19169echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19170    (
19171      cat <<\_ASBOX
19172## ------------------------------------ ##
19173## Report this to bug-autoconf@gnu.org. ##
19174## ------------------------------------ ##
19175_ASBOX
19176    ) |
19177      sed "s/^/$as_me: WARNING:     /" >&2
19178    ;;
19179esac
19180echo "$as_me:$LINENO: checking for sys/types.h" >&5
19181echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19182if test "${ac_cv_header_sys_types_h+set}" = set; then
19183  echo $ECHO_N "(cached) $ECHO_C" >&6
19184else
19185  ac_cv_header_sys_types_h=$ac_header_preproc
19186fi
19187echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19188echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19189
19190fi
19191if test $ac_cv_header_sys_types_h = yes; then
19192  INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19193else
19194  INCLUDE_SYS_TYPES_H=''
19195fi
19196
19197
19198
19199if test "${ac_cv_header_inttypes_h+set}" = set; then
19200  echo "$as_me:$LINENO: checking for inttypes.h" >&5
19201echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19202if test "${ac_cv_header_inttypes_h+set}" = set; then
19203  echo $ECHO_N "(cached) $ECHO_C" >&6
19204fi
19205echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19206echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19207else
19208  # Is the header compilable?
19209echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19210echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19211cat >conftest.$ac_ext <<_ACEOF
19212#line $LINENO "configure"
19213/* confdefs.h.  */
19214_ACEOF
19215cat confdefs.h >>conftest.$ac_ext
19216cat >>conftest.$ac_ext <<_ACEOF
19217/* end confdefs.h.  */
19218$ac_includes_default
19219#include <inttypes.h>
19220_ACEOF
19221rm -f conftest.$ac_objext
19222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19223  (eval $ac_compile) 2>&5
19224  ac_status=$?
19225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226  (exit $ac_status); } &&
19227         { ac_try='test -s conftest.$ac_objext'
19228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229  (eval $ac_try) 2>&5
19230  ac_status=$?
19231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232  (exit $ac_status); }; }; then
19233  ac_header_compiler=yes
19234else
19235  echo "$as_me: failed program was:" >&5
19236sed 's/^/| /' conftest.$ac_ext >&5
19237
19238ac_header_compiler=no
19239fi
19240rm -f conftest.$ac_objext conftest.$ac_ext
19241echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19242echo "${ECHO_T}$ac_header_compiler" >&6
19243
19244# Is the header present?
19245echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19246echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19247cat >conftest.$ac_ext <<_ACEOF
19248#line $LINENO "configure"
19249/* confdefs.h.  */
19250_ACEOF
19251cat confdefs.h >>conftest.$ac_ext
19252cat >>conftest.$ac_ext <<_ACEOF
19253/* end confdefs.h.  */
19254#include <inttypes.h>
19255_ACEOF
19256if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19257  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19258  ac_status=$?
19259  grep -v '^ *+' conftest.er1 >conftest.err
19260  rm -f conftest.er1
19261  cat conftest.err >&5
19262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263  (exit $ac_status); } >/dev/null; then
19264  if test -s conftest.err; then
19265    ac_cpp_err=$ac_c_preproc_warn_flag
19266  else
19267    ac_cpp_err=
19268  fi
19269else
19270  ac_cpp_err=yes
19271fi
19272if test -z "$ac_cpp_err"; then
19273  ac_header_preproc=yes
19274else
19275  echo "$as_me: failed program was:" >&5
19276sed 's/^/| /' conftest.$ac_ext >&5
19277
19278  ac_header_preproc=no
19279fi
19280rm -f conftest.err conftest.$ac_ext
19281echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19282echo "${ECHO_T}$ac_header_preproc" >&6
19283
19284# So?  What about this header?
19285case $ac_header_compiler:$ac_header_preproc in
19286  yes:no )
19287    { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19288echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19289    { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19290echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19291    (
19292      cat <<\_ASBOX
19293## ------------------------------------ ##
19294## Report this to bug-autoconf@gnu.org. ##
19295## ------------------------------------ ##
19296_ASBOX
19297    ) |
19298      sed "s/^/$as_me: WARNING:     /" >&2
19299    ;;
19300  no:yes )
19301    { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19302echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19303    { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19304echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19305    { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19306echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19307    (
19308      cat <<\_ASBOX
19309## ------------------------------------ ##
19310## Report this to bug-autoconf@gnu.org. ##
19311## ------------------------------------ ##
19312_ASBOX
19313    ) |
19314      sed "s/^/$as_me: WARNING:     /" >&2
19315    ;;
19316esac
19317echo "$as_me:$LINENO: checking for inttypes.h" >&5
19318echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19319if test "${ac_cv_header_inttypes_h+set}" = set; then
19320  echo $ECHO_N "(cached) $ECHO_C" >&6
19321else
19322  ac_cv_header_inttypes_h=$ac_header_preproc
19323fi
19324echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19325echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19326
19327fi
19328if test $ac_cv_header_inttypes_h = yes; then
19329  INCLUDE_INTTYPES_H='#include <inttypes.h>'
19330else
19331  INCLUDE_INTTYPES_H=''
19332fi
19333
19334
19335
19336
19337echo "$as_me:$LINENO: checking for pid_t" >&5
19338echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19339if test "${ac_cv_type_pid_t+set}" = set; then
19340  echo $ECHO_N "(cached) $ECHO_C" >&6
19341else
19342  cat >conftest.$ac_ext <<_ACEOF
19343#line $LINENO "configure"
19344/* confdefs.h.  */
19345_ACEOF
19346cat confdefs.h >>conftest.$ac_ext
19347cat >>conftest.$ac_ext <<_ACEOF
19348/* end confdefs.h.  */
19349$ac_includes_default
19350int
19351main ()
19352{
19353if ((pid_t *) 0)
19354  return 0;
19355if (sizeof (pid_t))
19356  return 0;
19357  ;
19358  return 0;
19359}
19360_ACEOF
19361rm -f conftest.$ac_objext
19362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19363  (eval $ac_compile) 2>&5
19364  ac_status=$?
19365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366  (exit $ac_status); } &&
19367         { ac_try='test -s conftest.$ac_objext'
19368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369  (eval $ac_try) 2>&5
19370  ac_status=$?
19371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372  (exit $ac_status); }; }; then
19373  ac_cv_type_pid_t=yes
19374else
19375  echo "$as_me: failed program was:" >&5
19376sed 's/^/| /' conftest.$ac_ext >&5
19377
19378ac_cv_type_pid_t=no
19379fi
19380rm -f conftest.$ac_objext conftest.$ac_ext
19381fi
19382echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19383echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19384if test $ac_cv_type_pid_t = yes; then
19385  :
19386else
19387
19388cat >>confdefs.h <<_ACEOF
19389#define pid_t int
19390_ACEOF
19391
19392fi
19393
19394echo "$as_me:$LINENO: checking for size_t" >&5
19395echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19396if test "${ac_cv_type_size_t+set}" = set; then
19397  echo $ECHO_N "(cached) $ECHO_C" >&6
19398else
19399  cat >conftest.$ac_ext <<_ACEOF
19400#line $LINENO "configure"
19401/* confdefs.h.  */
19402_ACEOF
19403cat confdefs.h >>conftest.$ac_ext
19404cat >>conftest.$ac_ext <<_ACEOF
19405/* end confdefs.h.  */
19406$ac_includes_default
19407int
19408main ()
19409{
19410if ((size_t *) 0)
19411  return 0;
19412if (sizeof (size_t))
19413  return 0;
19414  ;
19415  return 0;
19416}
19417_ACEOF
19418rm -f conftest.$ac_objext
19419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19420  (eval $ac_compile) 2>&5
19421  ac_status=$?
19422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423  (exit $ac_status); } &&
19424         { ac_try='test -s conftest.$ac_objext'
19425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19426  (eval $ac_try) 2>&5
19427  ac_status=$?
19428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429  (exit $ac_status); }; }; then
19430  ac_cv_type_size_t=yes
19431else
19432  echo "$as_me: failed program was:" >&5
19433sed 's/^/| /' conftest.$ac_ext >&5
19434
19435ac_cv_type_size_t=no
19436fi
19437rm -f conftest.$ac_objext conftest.$ac_ext
19438fi
19439echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19440echo "${ECHO_T}$ac_cv_type_size_t" >&6
19441if test $ac_cv_type_size_t = yes; then
19442  :
19443else
19444
19445cat >>confdefs.h <<_ACEOF
19446#define size_t unsigned
19447_ACEOF
19448
19449fi
19450
19451echo "$as_me:$LINENO: checking for int64_t" >&5
19452echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19453if test "${ac_cv_type_int64_t+set}" = set; then
19454  echo $ECHO_N "(cached) $ECHO_C" >&6
19455else
19456  cat >conftest.$ac_ext <<_ACEOF
19457#line $LINENO "configure"
19458/* confdefs.h.  */
19459_ACEOF
19460cat confdefs.h >>conftest.$ac_ext
19461cat >>conftest.$ac_ext <<_ACEOF
19462/* end confdefs.h.  */
19463$ac_includes_default
19464int
19465main ()
19466{
19467if ((int64_t *) 0)
19468  return 0;
19469if (sizeof (int64_t))
19470  return 0;
19471  ;
19472  return 0;
19473}
19474_ACEOF
19475rm -f conftest.$ac_objext
19476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19477  (eval $ac_compile) 2>&5
19478  ac_status=$?
19479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480  (exit $ac_status); } &&
19481         { ac_try='test -s conftest.$ac_objext'
19482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19483  (eval $ac_try) 2>&5
19484  ac_status=$?
19485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486  (exit $ac_status); }; }; then
19487  ac_cv_type_int64_t=yes
19488else
19489  echo "$as_me: failed program was:" >&5
19490sed 's/^/| /' conftest.$ac_ext >&5
19491
19492ac_cv_type_int64_t=no
19493fi
19494rm -f conftest.$ac_objext conftest.$ac_ext
19495fi
19496echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19497echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19498if test $ac_cv_type_int64_t = yes; then
19499
19500cat >>confdefs.h <<_ACEOF
19501#define HAVE_INT64_T 1
19502_ACEOF
19503
19504
19505else
19506  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19507echo "$as_me: error: Type int64_t required but not found" >&2;}
19508   { (exit 1); exit 1; }; }
19509fi
19510
19511echo "$as_me:$LINENO: checking for uint64_t" >&5
19512echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19513if test "${ac_cv_type_uint64_t+set}" = set; then
19514  echo $ECHO_N "(cached) $ECHO_C" >&6
19515else
19516  cat >conftest.$ac_ext <<_ACEOF
19517#line $LINENO "configure"
19518/* confdefs.h.  */
19519_ACEOF
19520cat confdefs.h >>conftest.$ac_ext
19521cat >>conftest.$ac_ext <<_ACEOF
19522/* end confdefs.h.  */
19523$ac_includes_default
19524int
19525main ()
19526{
19527if ((uint64_t *) 0)
19528  return 0;
19529if (sizeof (uint64_t))
19530  return 0;
19531  ;
19532  return 0;
19533}
19534_ACEOF
19535rm -f conftest.$ac_objext
19536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19537  (eval $ac_compile) 2>&5
19538  ac_status=$?
19539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540  (exit $ac_status); } &&
19541         { ac_try='test -s conftest.$ac_objext'
19542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19543  (eval $ac_try) 2>&5
19544  ac_status=$?
19545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546  (exit $ac_status); }; }; then
19547  ac_cv_type_uint64_t=yes
19548else
19549  echo "$as_me: failed program was:" >&5
19550sed 's/^/| /' conftest.$ac_ext >&5
19551
19552ac_cv_type_uint64_t=no
19553fi
19554rm -f conftest.$ac_objext conftest.$ac_ext
19555fi
19556echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19557echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19558if test $ac_cv_type_uint64_t = yes; then
19559
19560cat >>confdefs.h <<_ACEOF
19561#define HAVE_UINT64_T 1
19562_ACEOF
19563
19564
19565else
19566  { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19567echo "$as_me: error: Type uint64_t required but not found" >&2;}
19568   { (exit 1); exit 1; }; }
19569fi
19570
19571echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19572echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19573if test "${ac_cv_header_time+set}" = set; then
19574  echo $ECHO_N "(cached) $ECHO_C" >&6
19575else
19576  cat >conftest.$ac_ext <<_ACEOF
19577#line $LINENO "configure"
19578/* confdefs.h.  */
19579_ACEOF
19580cat confdefs.h >>conftest.$ac_ext
19581cat >>conftest.$ac_ext <<_ACEOF
19582/* end confdefs.h.  */
19583#include <sys/types.h>
19584#include <sys/time.h>
19585#include <time.h>
19586
19587int
19588main ()
19589{
19590if ((struct tm *) 0)
19591return 0;
19592  ;
19593  return 0;
19594}
19595_ACEOF
19596rm -f conftest.$ac_objext
19597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19598  (eval $ac_compile) 2>&5
19599  ac_status=$?
19600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601  (exit $ac_status); } &&
19602         { ac_try='test -s conftest.$ac_objext'
19603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604  (eval $ac_try) 2>&5
19605  ac_status=$?
19606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607  (exit $ac_status); }; }; then
19608  ac_cv_header_time=yes
19609else
19610  echo "$as_me: failed program was:" >&5
19611sed 's/^/| /' conftest.$ac_ext >&5
19612
19613ac_cv_header_time=no
19614fi
19615rm -f conftest.$ac_objext conftest.$ac_ext
19616fi
19617echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19618echo "${ECHO_T}$ac_cv_header_time" >&6
19619if test $ac_cv_header_time = yes; then
19620
19621cat >>confdefs.h <<\_ACEOF
19622#define TIME_WITH_SYS_TIME 1
19623_ACEOF
19624
19625fi
19626
19627echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19628echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19629if test "${ac_cv_struct_tm+set}" = set; then
19630  echo $ECHO_N "(cached) $ECHO_C" >&6
19631else
19632  cat >conftest.$ac_ext <<_ACEOF
19633#line $LINENO "configure"
19634/* confdefs.h.  */
19635_ACEOF
19636cat confdefs.h >>conftest.$ac_ext
19637cat >>conftest.$ac_ext <<_ACEOF
19638/* end confdefs.h.  */
19639#include <sys/types.h>
19640#include <time.h>
19641
19642int
19643main ()
19644{
19645struct tm *tp; tp->tm_sec;
19646  ;
19647  return 0;
19648}
19649_ACEOF
19650rm -f conftest.$ac_objext
19651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19652  (eval $ac_compile) 2>&5
19653  ac_status=$?
19654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655  (exit $ac_status); } &&
19656         { ac_try='test -s conftest.$ac_objext'
19657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19658  (eval $ac_try) 2>&5
19659  ac_status=$?
19660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661  (exit $ac_status); }; }; then
19662  ac_cv_struct_tm=time.h
19663else
19664  echo "$as_me: failed program was:" >&5
19665sed 's/^/| /' conftest.$ac_ext >&5
19666
19667ac_cv_struct_tm=sys/time.h
19668fi
19669rm -f conftest.$ac_objext conftest.$ac_ext
19670fi
19671echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19672echo "${ECHO_T}$ac_cv_struct_tm" >&6
19673if test $ac_cv_struct_tm = sys/time.h; then
19674
19675cat >>confdefs.h <<\_ACEOF
19676#define TM_IN_SYS_TIME 1
19677_ACEOF
19678
19679fi
19680
19681
19682
19683
19684
19685	ac_ext=c
19686ac_cpp='$CPP $CPPFLAGS'
19687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19689ac_compiler_gnu=$ac_cv_c_compiler_gnu
19690
19691	if test "$cross_compiling" = yes; then
19692  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19693See \`config.log' for more details." >&5
19694echo "$as_me: error: cannot run test program while cross compiling
19695See \`config.log' for more details." >&2;}
19696   { (exit 1); exit 1; }; }
19697else
19698  cat >conftest.$ac_ext <<_ACEOF
19699#line $LINENO "configure"
19700/* confdefs.h.  */
19701_ACEOF
19702cat confdefs.h >>conftest.$ac_ext
19703cat >>conftest.$ac_ext <<_ACEOF
19704/* end confdefs.h.  */
19705#include <stdio.h>
19706		                 #include <stdlib.h>
19707int
19708main ()
19709{
19710
19711		                 volatile double A, B;
19712		                 char Buffer[100];
19713		                 A = 1;
19714		                 A /= 10.0;
19715		                 sprintf(Buffer, "%a", A);
19716		                 B = atof(Buffer);
19717		                 if (A != B)
19718							 return (1);
19719		                 if (A != 0x1.999999999999ap-4)
19720							 return (1);
19721		                 return (0);
19722  ;
19723  return 0;
19724}
19725_ACEOF
19726rm -f conftest$ac_exeext
19727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19728  (eval $ac_link) 2>&5
19729  ac_status=$?
19730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19733  (eval $ac_try) 2>&5
19734  ac_status=$?
19735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736  (exit $ac_status); }; }; then
19737  ac_c_printf_a=yes
19738else
19739  echo "$as_me: program exited with status $ac_status" >&5
19740echo "$as_me: failed program was:" >&5
19741sed 's/^/| /' conftest.$ac_ext >&5
19742
19743( exit $ac_status )
19744ac_c_printf_a=no
19745fi
19746rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19747fi
19748	ac_ext=c
19749ac_cpp='$CPP $CPPFLAGS'
19750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19752ac_compiler_gnu=$ac_cv_c_compiler_gnu
19753
19754	if test "$ac_c_printf_a" = "yes"; then
19755
19756cat >>confdefs.h <<\_ACEOF
19757#define HAVE_PRINTF_A 1
19758_ACEOF
19759
19760	fi
19761
19762
19763echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19764echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19765if test "${ac_cv_c_bigendian+set}" = set; then
19766  echo $ECHO_N "(cached) $ECHO_C" >&6
19767else
19768  # See if sys/param.h defines the BYTE_ORDER macro.
19769cat >conftest.$ac_ext <<_ACEOF
19770#line $LINENO "configure"
19771/* confdefs.h.  */
19772_ACEOF
19773cat confdefs.h >>conftest.$ac_ext
19774cat >>conftest.$ac_ext <<_ACEOF
19775/* end confdefs.h.  */
19776#include <sys/types.h>
19777#include <sys/param.h>
19778
19779int
19780main ()
19781{
19782#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19783 bogus endian macros
19784#endif
19785
19786  ;
19787  return 0;
19788}
19789_ACEOF
19790rm -f conftest.$ac_objext
19791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19792  (eval $ac_compile) 2>&5
19793  ac_status=$?
19794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795  (exit $ac_status); } &&
19796         { ac_try='test -s conftest.$ac_objext'
19797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798  (eval $ac_try) 2>&5
19799  ac_status=$?
19800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801  (exit $ac_status); }; }; then
19802  # It does; now see whether it defined to BIG_ENDIAN or not.
19803cat >conftest.$ac_ext <<_ACEOF
19804#line $LINENO "configure"
19805/* confdefs.h.  */
19806_ACEOF
19807cat confdefs.h >>conftest.$ac_ext
19808cat >>conftest.$ac_ext <<_ACEOF
19809/* end confdefs.h.  */
19810#include <sys/types.h>
19811#include <sys/param.h>
19812
19813int
19814main ()
19815{
19816#if BYTE_ORDER != BIG_ENDIAN
19817 not big endian
19818#endif
19819
19820  ;
19821  return 0;
19822}
19823_ACEOF
19824rm -f conftest.$ac_objext
19825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19826  (eval $ac_compile) 2>&5
19827  ac_status=$?
19828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829  (exit $ac_status); } &&
19830         { ac_try='test -s conftest.$ac_objext'
19831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19832  (eval $ac_try) 2>&5
19833  ac_status=$?
19834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835  (exit $ac_status); }; }; then
19836  ac_cv_c_bigendian=yes
19837else
19838  echo "$as_me: failed program was:" >&5
19839sed 's/^/| /' conftest.$ac_ext >&5
19840
19841ac_cv_c_bigendian=no
19842fi
19843rm -f conftest.$ac_objext conftest.$ac_ext
19844else
19845  echo "$as_me: failed program was:" >&5
19846sed 's/^/| /' conftest.$ac_ext >&5
19847
19848# It does not; compile a test program.
19849if test "$cross_compiling" = yes; then
19850  # try to guess the endianness by grepping values into an object file
19851  ac_cv_c_bigendian=unknown
19852  cat >conftest.$ac_ext <<_ACEOF
19853#line $LINENO "configure"
19854/* confdefs.h.  */
19855_ACEOF
19856cat confdefs.h >>conftest.$ac_ext
19857cat >>conftest.$ac_ext <<_ACEOF
19858/* end confdefs.h.  */
19859short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19860short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19861void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19862short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19863short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19864void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19865int
19866main ()
19867{
19868 _ascii (); _ebcdic ();
19869  ;
19870  return 0;
19871}
19872_ACEOF
19873rm -f conftest.$ac_objext
19874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19875  (eval $ac_compile) 2>&5
19876  ac_status=$?
19877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878  (exit $ac_status); } &&
19879         { ac_try='test -s conftest.$ac_objext'
19880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881  (eval $ac_try) 2>&5
19882  ac_status=$?
19883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884  (exit $ac_status); }; }; then
19885  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19886  ac_cv_c_bigendian=yes
19887fi
19888if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19889  if test "$ac_cv_c_bigendian" = unknown; then
19890    ac_cv_c_bigendian=no
19891  else
19892    # finding both strings is unlikely to happen, but who knows?
19893    ac_cv_c_bigendian=unknown
19894  fi
19895fi
19896else
19897  echo "$as_me: failed program was:" >&5
19898sed 's/^/| /' conftest.$ac_ext >&5
19899
19900fi
19901rm -f conftest.$ac_objext conftest.$ac_ext
19902else
19903  cat >conftest.$ac_ext <<_ACEOF
19904#line $LINENO "configure"
19905/* confdefs.h.  */
19906_ACEOF
19907cat confdefs.h >>conftest.$ac_ext
19908cat >>conftest.$ac_ext <<_ACEOF
19909/* end confdefs.h.  */
19910int
19911main ()
19912{
19913  /* Are we little or big endian?  From Harbison&Steele.  */
19914  union
19915  {
19916    long l;
19917    char c[sizeof (long)];
19918  } u;
19919  u.l = 1;
19920  exit (u.c[sizeof (long) - 1] == 1);
19921}
19922_ACEOF
19923rm -f conftest$ac_exeext
19924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19925  (eval $ac_link) 2>&5
19926  ac_status=$?
19927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19930  (eval $ac_try) 2>&5
19931  ac_status=$?
19932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933  (exit $ac_status); }; }; then
19934  ac_cv_c_bigendian=no
19935else
19936  echo "$as_me: program exited with status $ac_status" >&5
19937echo "$as_me: failed program was:" >&5
19938sed 's/^/| /' conftest.$ac_ext >&5
19939
19940( exit $ac_status )
19941ac_cv_c_bigendian=yes
19942fi
19943rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19944fi
19945fi
19946rm -f conftest.$ac_objext conftest.$ac_ext
19947fi
19948echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19949echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19950case $ac_cv_c_bigendian in
19951  yes)
19952    ENDIAN=big
19953 ;;
19954  no)
19955    ENDIAN=little
19956 ;;
19957  *)
19958    { { echo "$as_me:$LINENO: error: unknown endianness
19959presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19960echo "$as_me: error: unknown endianness
19961presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19962   { (exit 1); exit 1; }; } ;;
19963esac
19964
19965
19966echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19967echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19968if test "${ac_cv_cxx_namespaces+set}" = set; then
19969  echo $ECHO_N "(cached) $ECHO_C" >&6
19970else
19971
19972
19973 ac_ext=cc
19974ac_cpp='$CXXCPP $CPPFLAGS'
19975ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19976ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19977ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19978
19979 cat >conftest.$ac_ext <<_ACEOF
19980#line $LINENO "configure"
19981/* confdefs.h.  */
19982_ACEOF
19983cat confdefs.h >>conftest.$ac_ext
19984cat >>conftest.$ac_ext <<_ACEOF
19985/* end confdefs.h.  */
19986namespace Outer { namespace Inner { int i = 0; }}
19987int
19988main ()
19989{
19990using namespace Outer::Inner; return i;
19991  ;
19992  return 0;
19993}
19994_ACEOF
19995rm -f conftest.$ac_objext
19996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19997  (eval $ac_compile) 2>&5
19998  ac_status=$?
19999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000  (exit $ac_status); } &&
20001         { ac_try='test -s conftest.$ac_objext'
20002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003  (eval $ac_try) 2>&5
20004  ac_status=$?
20005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006  (exit $ac_status); }; }; then
20007  ac_cv_cxx_namespaces=yes
20008else
20009  echo "$as_me: failed program was:" >&5
20010sed 's/^/| /' conftest.$ac_ext >&5
20011
20012ac_cv_cxx_namespaces=no
20013fi
20014rm -f conftest.$ac_objext conftest.$ac_ext
20015 ac_ext=c
20016ac_cpp='$CPP $CPPFLAGS'
20017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20019ac_compiler_gnu=$ac_cv_c_compiler_gnu
20020
20021
20022fi
20023echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20024echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20025if test "$ac_cv_cxx_namespaces" = yes; then
20026
20027cat >>confdefs.h <<\_ACEOF
20028#define HAVE_NAMESPACES
20029_ACEOF
20030
20031fi
20032
20033echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20034echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20035if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20036  echo $ECHO_N "(cached) $ECHO_C" >&6
20037else
20038
20039
20040
20041  ac_ext=cc
20042ac_cpp='$CXXCPP $CPPFLAGS'
20043ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20044ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20045ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20046
20047  cat >conftest.$ac_ext <<_ACEOF
20048#line $LINENO "configure"
20049/* confdefs.h.  */
20050_ACEOF
20051cat confdefs.h >>conftest.$ac_ext
20052cat >>conftest.$ac_ext <<_ACEOF
20053/* end confdefs.h.  */
20054#include <ext/hash_map>
20055#ifdef HAVE_NAMESPACES
20056using namespace std;
20057#endif
20058int
20059main ()
20060{
20061hash_map<int, int> t;
20062  ;
20063  return 0;
20064}
20065_ACEOF
20066rm -f conftest.$ac_objext
20067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20068  (eval $ac_compile) 2>&5
20069  ac_status=$?
20070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071  (exit $ac_status); } &&
20072         { ac_try='test -s conftest.$ac_objext'
20073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20074  (eval $ac_try) 2>&5
20075  ac_status=$?
20076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077  (exit $ac_status); }; }; then
20078  ac_cv_cxx_have_std_ext_hash_map=yes
20079else
20080  echo "$as_me: failed program was:" >&5
20081sed 's/^/| /' conftest.$ac_ext >&5
20082
20083ac_cv_cxx_have_std_ext_hash_map=no
20084fi
20085rm -f conftest.$ac_objext conftest.$ac_ext
20086  ac_ext=c
20087ac_cpp='$CPP $CPPFLAGS'
20088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20090ac_compiler_gnu=$ac_cv_c_compiler_gnu
20091
20092fi
20093echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20094echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20095 HAVE_STD_EXT_HASH_MAP=0
20096 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
20097 then
20098   HAVE_STD_EXT_HASH_MAP=1
20099 fi
20100
20101 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20102echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20103if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20104  echo $ECHO_N "(cached) $ECHO_C" >&6
20105else
20106
20107
20108
20109  ac_ext=cc
20110ac_cpp='$CXXCPP $CPPFLAGS'
20111ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20112ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20113ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20114
20115  cat >conftest.$ac_ext <<_ACEOF
20116#line $LINENO "configure"
20117/* confdefs.h.  */
20118_ACEOF
20119cat confdefs.h >>conftest.$ac_ext
20120cat >>conftest.$ac_ext <<_ACEOF
20121/* end confdefs.h.  */
20122#include <ext/hash_map>
20123#ifdef HAVE_NAMESPACES
20124using namespace __gnu_cxx;
20125#endif
20126int
20127main ()
20128{
20129hash_map<int,int> t;
20130  ;
20131  return 0;
20132}
20133_ACEOF
20134rm -f conftest.$ac_objext
20135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20136  (eval $ac_compile) 2>&5
20137  ac_status=$?
20138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139  (exit $ac_status); } &&
20140         { ac_try='test -s conftest.$ac_objext'
20141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20142  (eval $ac_try) 2>&5
20143  ac_status=$?
20144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145  (exit $ac_status); }; }; then
20146  ac_cv_cxx_have_gnu_ext_hash_map=yes
20147else
20148  echo "$as_me: failed program was:" >&5
20149sed 's/^/| /' conftest.$ac_ext >&5
20150
20151ac_cv_cxx_have_gnu_ext_hash_map=no
20152fi
20153rm -f conftest.$ac_objext conftest.$ac_ext
20154  ac_ext=c
20155ac_cpp='$CPP $CPPFLAGS'
20156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20158ac_compiler_gnu=$ac_cv_c_compiler_gnu
20159
20160fi
20161echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20162echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
20163 HAVE_GNU_EXT_HASH_MAP=0
20164 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
20165 then
20166   HAVE_GNU_EXT_HASH_MAP=1
20167 fi
20168
20169 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20170echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20171if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20172  echo $ECHO_N "(cached) $ECHO_C" >&6
20173else
20174
20175
20176
20177  ac_ext=cc
20178ac_cpp='$CXXCPP $CPPFLAGS'
20179ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20180ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20181ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20182
20183  cat >conftest.$ac_ext <<_ACEOF
20184#line $LINENO "configure"
20185/* confdefs.h.  */
20186_ACEOF
20187cat confdefs.h >>conftest.$ac_ext
20188cat >>conftest.$ac_ext <<_ACEOF
20189/* end confdefs.h.  */
20190#include <hash_map>
20191int
20192main ()
20193{
20194hash_map<int,int> t;
20195  ;
20196  return 0;
20197}
20198_ACEOF
20199rm -f conftest.$ac_objext
20200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20201  (eval $ac_compile) 2>&5
20202  ac_status=$?
20203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204  (exit $ac_status); } &&
20205         { ac_try='test -s conftest.$ac_objext'
20206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20207  (eval $ac_try) 2>&5
20208  ac_status=$?
20209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210  (exit $ac_status); }; }; then
20211  ac_cv_cxx_have_global_hash_map=yes
20212else
20213  echo "$as_me: failed program was:" >&5
20214sed 's/^/| /' conftest.$ac_ext >&5
20215
20216ac_cv_cxx_have_global_hash_map=no
20217fi
20218rm -f conftest.$ac_objext conftest.$ac_ext
20219  ac_ext=c
20220ac_cpp='$CPP $CPPFLAGS'
20221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20223ac_compiler_gnu=$ac_cv_c_compiler_gnu
20224
20225fi
20226echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20227echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
20228 HAVE_GLOBAL_HASH_MAP=0
20229 if test "$ac_cv_cxx_have_global_hash_map" = yes
20230 then
20231   HAVE_GLOBAL_HASH_MAP=1
20232 fi
20233
20234echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20235echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20236if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
20237  echo $ECHO_N "(cached) $ECHO_C" >&6
20238else
20239
20240
20241
20242  ac_ext=cc
20243ac_cpp='$CXXCPP $CPPFLAGS'
20244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20247
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.  */
20255#include <ext/hash_set>
20256#ifdef HAVE_NAMESPACES
20257using namespace std;
20258#endif
20259int
20260main ()
20261{
20262hash_set<int> t;
20263  ;
20264  return 0;
20265}
20266_ACEOF
20267rm -f conftest.$ac_objext
20268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20269  (eval $ac_compile) 2>&5
20270  ac_status=$?
20271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272  (exit $ac_status); } &&
20273         { ac_try='test -s conftest.$ac_objext'
20274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275  (eval $ac_try) 2>&5
20276  ac_status=$?
20277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278  (exit $ac_status); }; }; then
20279  ac_cv_cxx_have_std_ext_hash_set=yes
20280else
20281  echo "$as_me: failed program was:" >&5
20282sed 's/^/| /' conftest.$ac_ext >&5
20283
20284ac_cv_cxx_have_std_ext_hash_set=no
20285fi
20286rm -f conftest.$ac_objext conftest.$ac_ext
20287  ac_ext=c
20288ac_cpp='$CPP $CPPFLAGS'
20289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20291ac_compiler_gnu=$ac_cv_c_compiler_gnu
20292
20293fi
20294echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20295echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20296 HAVE_STD_EXT_HASH_SET=0
20297 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
20298 then
20299   HAVE_STD_EXT_HASH_SET=1
20300 fi
20301
20302 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20303echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20304if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20305  echo $ECHO_N "(cached) $ECHO_C" >&6
20306else
20307
20308
20309
20310  ac_ext=cc
20311ac_cpp='$CXXCPP $CPPFLAGS'
20312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20315
20316  cat >conftest.$ac_ext <<_ACEOF
20317#line $LINENO "configure"
20318/* confdefs.h.  */
20319_ACEOF
20320cat confdefs.h >>conftest.$ac_ext
20321cat >>conftest.$ac_ext <<_ACEOF
20322/* end confdefs.h.  */
20323#include <ext/hash_set>
20324#ifdef HAVE_NAMESPACES
20325using namespace __gnu_cxx;
20326#endif
20327int
20328main ()
20329{
20330hash_set<int> t;
20331  ;
20332  return 0;
20333}
20334_ACEOF
20335rm -f conftest.$ac_objext
20336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20337  (eval $ac_compile) 2>&5
20338  ac_status=$?
20339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340  (exit $ac_status); } &&
20341         { ac_try='test -s conftest.$ac_objext'
20342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20343  (eval $ac_try) 2>&5
20344  ac_status=$?
20345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346  (exit $ac_status); }; }; then
20347  ac_cv_cxx_have_gnu_ext_hash_set=yes
20348else
20349  echo "$as_me: failed program was:" >&5
20350sed 's/^/| /' conftest.$ac_ext >&5
20351
20352ac_cv_cxx_have_gnu_ext_hash_set=no
20353fi
20354rm -f conftest.$ac_objext conftest.$ac_ext
20355  ac_ext=c
20356ac_cpp='$CPP $CPPFLAGS'
20357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20359ac_compiler_gnu=$ac_cv_c_compiler_gnu
20360
20361fi
20362echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20363echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20364 HAVE_GNU_EXT_HASH_SET=0
20365 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
20366 then
20367   HAVE_GNU_EXT_HASH_SET=1
20368 fi
20369
20370 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20371echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20372if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20373  echo $ECHO_N "(cached) $ECHO_C" >&6
20374else
20375
20376
20377
20378  ac_ext=cc
20379ac_cpp='$CXXCPP $CPPFLAGS'
20380ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20381ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20382ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20383
20384  cat >conftest.$ac_ext <<_ACEOF
20385#line $LINENO "configure"
20386/* confdefs.h.  */
20387_ACEOF
20388cat confdefs.h >>conftest.$ac_ext
20389cat >>conftest.$ac_ext <<_ACEOF
20390/* end confdefs.h.  */
20391#include <hash_set>
20392int
20393main ()
20394{
20395hash_set<int> t; return 0;
20396  ;
20397  return 0;
20398}
20399_ACEOF
20400rm -f conftest.$ac_objext
20401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20402  (eval $ac_compile) 2>&5
20403  ac_status=$?
20404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405  (exit $ac_status); } &&
20406         { ac_try='test -s conftest.$ac_objext'
20407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20408  (eval $ac_try) 2>&5
20409  ac_status=$?
20410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411  (exit $ac_status); }; }; then
20412  ac_cv_cxx_have_global_hash_set=yes
20413else
20414  echo "$as_me: failed program was:" >&5
20415sed 's/^/| /' conftest.$ac_ext >&5
20416
20417ac_cv_cxx_have_global_hash_set=no
20418fi
20419rm -f conftest.$ac_objext conftest.$ac_ext
20420  ac_ext=c
20421ac_cpp='$CPP $CPPFLAGS'
20422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20424ac_compiler_gnu=$ac_cv_c_compiler_gnu
20425
20426fi
20427echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20428echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20429 HAVE_GLOBAL_HASH_SET=0
20430 if test "$ac_cv_cxx_have_global_hash_set" = yes
20431 then
20432   HAVE_GLOBAL_HASH_SET=1
20433 fi
20434
20435echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20436echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20437if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20438  echo $ECHO_N "(cached) $ECHO_C" >&6
20439else
20440
20441
20442
20443  ac_ext=cc
20444ac_cpp='$CXXCPP $CPPFLAGS'
20445ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20446ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20447ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20448
20449  cat >conftest.$ac_ext <<_ACEOF
20450#line $LINENO "configure"
20451/* confdefs.h.  */
20452_ACEOF
20453cat confdefs.h >>conftest.$ac_ext
20454cat >>conftest.$ac_ext <<_ACEOF
20455/* end confdefs.h.  */
20456#include <iterator>
20457#ifdef HAVE_NAMESPACES
20458using namespace std;
20459#endif
20460int
20461main ()
20462{
20463iterator<int,int,int> t; return 0;
20464  ;
20465  return 0;
20466}
20467_ACEOF
20468rm -f conftest.$ac_objext
20469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20470  (eval $ac_compile) 2>&5
20471  ac_status=$?
20472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473  (exit $ac_status); } &&
20474         { ac_try='test -s conftest.$ac_objext'
20475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20476  (eval $ac_try) 2>&5
20477  ac_status=$?
20478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479  (exit $ac_status); }; }; then
20480  ac_cv_cxx_have_std_iterator=yes
20481else
20482  echo "$as_me: failed program was:" >&5
20483sed 's/^/| /' conftest.$ac_ext >&5
20484
20485ac_cv_cxx_have_std_iterator=no
20486fi
20487rm -f conftest.$ac_objext conftest.$ac_ext
20488  ac_ext=c
20489ac_cpp='$CPP $CPPFLAGS'
20490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20492ac_compiler_gnu=$ac_cv_c_compiler_gnu
20493
20494
20495fi
20496echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20497echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20498HAVE_STD_ITERATOR=0
20499if test "$ac_cv_cxx_have_std_iterator" = yes
20500then
20501   HAVE_STD_ITERATOR=1
20502fi
20503
20504echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20505echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20506if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20507  echo $ECHO_N "(cached) $ECHO_C" >&6
20508else
20509
20510
20511
20512  ac_ext=cc
20513ac_cpp='$CXXCPP $CPPFLAGS'
20514ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20515ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20516ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20517
20518  cat >conftest.$ac_ext <<_ACEOF
20519#line $LINENO "configure"
20520/* confdefs.h.  */
20521_ACEOF
20522cat confdefs.h >>conftest.$ac_ext
20523cat >>conftest.$ac_ext <<_ACEOF
20524/* end confdefs.h.  */
20525#include <iterator>
20526#ifdef HAVE_NAMESPACES
20527using namespace std;
20528#endif
20529int
20530main ()
20531{
20532bidirectional_iterator<int,int> t; return 0;
20533  ;
20534  return 0;
20535}
20536_ACEOF
20537rm -f conftest.$ac_objext
20538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20539  (eval $ac_compile) 2>&5
20540  ac_status=$?
20541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542  (exit $ac_status); } &&
20543         { ac_try='test -s conftest.$ac_objext'
20544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20545  (eval $ac_try) 2>&5
20546  ac_status=$?
20547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548  (exit $ac_status); }; }; then
20549  ac_cv_cxx_have_bi_iterator=yes
20550else
20551  echo "$as_me: failed program was:" >&5
20552sed 's/^/| /' conftest.$ac_ext >&5
20553
20554ac_cv_cxx_have_bi_iterator=no
20555fi
20556rm -f conftest.$ac_objext conftest.$ac_ext
20557  ac_ext=c
20558ac_cpp='$CPP $CPPFLAGS'
20559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20561ac_compiler_gnu=$ac_cv_c_compiler_gnu
20562
20563
20564fi
20565echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20566echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20567HAVE_BI_ITERATOR=0
20568if test "$ac_cv_cxx_have_bi_iterator" = yes
20569then
20570   HAVE_BI_ITERATOR=1
20571fi
20572
20573echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20574echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20575if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20576  echo $ECHO_N "(cached) $ECHO_C" >&6
20577else
20578
20579
20580
20581  ac_ext=cc
20582ac_cpp='$CXXCPP $CPPFLAGS'
20583ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20584ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20585ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20586
20587  cat >conftest.$ac_ext <<_ACEOF
20588#line $LINENO "configure"
20589/* confdefs.h.  */
20590_ACEOF
20591cat confdefs.h >>conftest.$ac_ext
20592cat >>conftest.$ac_ext <<_ACEOF
20593/* end confdefs.h.  */
20594#include <iterator>
20595#ifdef HAVE_NAMESPACES
20596using namespace std;
20597#endif
20598int
20599main ()
20600{
20601forward_iterator<int,int> t; return 0;
20602  ;
20603  return 0;
20604}
20605_ACEOF
20606rm -f conftest.$ac_objext
20607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20608  (eval $ac_compile) 2>&5
20609  ac_status=$?
20610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611  (exit $ac_status); } &&
20612         { ac_try='test -s conftest.$ac_objext'
20613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614  (eval $ac_try) 2>&5
20615  ac_status=$?
20616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617  (exit $ac_status); }; }; then
20618  ac_cv_cxx_have_fwd_iterator=yes
20619else
20620  echo "$as_me: failed program was:" >&5
20621sed 's/^/| /' conftest.$ac_ext >&5
20622
20623ac_cv_cxx_have_fwd_iterator=no
20624fi
20625rm -f conftest.$ac_objext conftest.$ac_ext
20626  ac_ext=c
20627ac_cpp='$CPP $CPPFLAGS'
20628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20630ac_compiler_gnu=$ac_cv_c_compiler_gnu
20631
20632
20633fi
20634echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20635echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20636HAVE_FWD_ITERATOR=0
20637if test "$ac_cv_cxx_have_fwd_iterator" = yes
20638then
20639   HAVE_FWD_ITERATOR=1
20640fi
20641
20642
20643# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20644# for constant arguments.  Useless!
20645echo "$as_me:$LINENO: checking for working alloca.h" >&5
20646echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20647if test "${ac_cv_working_alloca_h+set}" = set; then
20648  echo $ECHO_N "(cached) $ECHO_C" >&6
20649else
20650  cat >conftest.$ac_ext <<_ACEOF
20651#line $LINENO "configure"
20652/* confdefs.h.  */
20653_ACEOF
20654cat confdefs.h >>conftest.$ac_ext
20655cat >>conftest.$ac_ext <<_ACEOF
20656/* end confdefs.h.  */
20657#include <alloca.h>
20658int
20659main ()
20660{
20661char *p = (char *) alloca (2 * sizeof (int));
20662  ;
20663  return 0;
20664}
20665_ACEOF
20666rm -f conftest.$ac_objext conftest$ac_exeext
20667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20668  (eval $ac_link) 2>&5
20669  ac_status=$?
20670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671  (exit $ac_status); } &&
20672         { ac_try='test -s conftest$ac_exeext'
20673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20674  (eval $ac_try) 2>&5
20675  ac_status=$?
20676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677  (exit $ac_status); }; }; then
20678  ac_cv_working_alloca_h=yes
20679else
20680  echo "$as_me: failed program was:" >&5
20681sed 's/^/| /' conftest.$ac_ext >&5
20682
20683ac_cv_working_alloca_h=no
20684fi
20685rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20686fi
20687echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20688echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20689if test $ac_cv_working_alloca_h = yes; then
20690
20691cat >>confdefs.h <<\_ACEOF
20692#define HAVE_ALLOCA_H 1
20693_ACEOF
20694
20695fi
20696
20697echo "$as_me:$LINENO: checking for alloca" >&5
20698echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20699if test "${ac_cv_func_alloca_works+set}" = set; then
20700  echo $ECHO_N "(cached) $ECHO_C" >&6
20701else
20702  cat >conftest.$ac_ext <<_ACEOF
20703#line $LINENO "configure"
20704/* confdefs.h.  */
20705_ACEOF
20706cat confdefs.h >>conftest.$ac_ext
20707cat >>conftest.$ac_ext <<_ACEOF
20708/* end confdefs.h.  */
20709#ifdef __GNUC__
20710# define alloca __builtin_alloca
20711#else
20712# ifdef _MSC_VER
20713#  include <malloc.h>
20714#  define alloca _alloca
20715# else
20716#  if HAVE_ALLOCA_H
20717#   include <alloca.h>
20718#  else
20719#   ifdef _AIX
20720 #pragma alloca
20721#   else
20722#    ifndef alloca /* predefined by HP cc +Olibcalls */
20723char *alloca ();
20724#    endif
20725#   endif
20726#  endif
20727# endif
20728#endif
20729
20730int
20731main ()
20732{
20733char *p = (char *) alloca (1);
20734  ;
20735  return 0;
20736}
20737_ACEOF
20738rm -f conftest.$ac_objext conftest$ac_exeext
20739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20740  (eval $ac_link) 2>&5
20741  ac_status=$?
20742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743  (exit $ac_status); } &&
20744         { ac_try='test -s conftest$ac_exeext'
20745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20746  (eval $ac_try) 2>&5
20747  ac_status=$?
20748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749  (exit $ac_status); }; }; then
20750  ac_cv_func_alloca_works=yes
20751else
20752  echo "$as_me: failed program was:" >&5
20753sed 's/^/| /' conftest.$ac_ext >&5
20754
20755ac_cv_func_alloca_works=no
20756fi
20757rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20758fi
20759echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20760echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20761
20762if test $ac_cv_func_alloca_works = yes; then
20763
20764cat >>confdefs.h <<\_ACEOF
20765#define HAVE_ALLOCA 1
20766_ACEOF
20767
20768else
20769  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20770# that cause trouble.  Some versions do not even contain alloca or
20771# contain a buggy version.  If you still want to use their alloca,
20772# use ar to extract alloca.o from them instead of compiling alloca.c.
20773
20774ALLOCA=alloca.$ac_objext
20775
20776cat >>confdefs.h <<\_ACEOF
20777#define C_ALLOCA 1
20778_ACEOF
20779
20780
20781echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20782echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20783if test "${ac_cv_os_cray+set}" = set; then
20784  echo $ECHO_N "(cached) $ECHO_C" >&6
20785else
20786  cat >conftest.$ac_ext <<_ACEOF
20787#line $LINENO "configure"
20788/* confdefs.h.  */
20789_ACEOF
20790cat confdefs.h >>conftest.$ac_ext
20791cat >>conftest.$ac_ext <<_ACEOF
20792/* end confdefs.h.  */
20793#if defined(CRAY) && ! defined(CRAY2)
20794webecray
20795#else
20796wenotbecray
20797#endif
20798
20799_ACEOF
20800if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20801  $EGREP "webecray" >/dev/null 2>&1; then
20802  ac_cv_os_cray=yes
20803else
20804  ac_cv_os_cray=no
20805fi
20806rm -f conftest*
20807
20808fi
20809echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20810echo "${ECHO_T}$ac_cv_os_cray" >&6
20811if test $ac_cv_os_cray = yes; then
20812  for ac_func in _getb67 GETB67 getb67; do
20813    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20814echo "$as_me:$LINENO: checking for $ac_func" >&5
20815echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20816if eval "test \"\${$as_ac_var+set}\" = set"; then
20817  echo $ECHO_N "(cached) $ECHO_C" >&6
20818else
20819  cat >conftest.$ac_ext <<_ACEOF
20820#line $LINENO "configure"
20821/* confdefs.h.  */
20822_ACEOF
20823cat confdefs.h >>conftest.$ac_ext
20824cat >>conftest.$ac_ext <<_ACEOF
20825/* end confdefs.h.  */
20826/* System header to define __stub macros and hopefully few prototypes,
20827    which can conflict with char $ac_func (); below.
20828    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20829    <limits.h> exists even on freestanding compilers.  */
20830#ifdef __STDC__
20831# include <limits.h>
20832#else
20833# include <assert.h>
20834#endif
20835/* Override any gcc2 internal prototype to avoid an error.  */
20836#ifdef __cplusplus
20837extern "C"
20838{
20839#endif
20840/* We use char because int might match the return type of a gcc2
20841   builtin and then its argument prototype would still apply.  */
20842char $ac_func ();
20843/* The GNU C library defines this for functions which it implements
20844    to always fail with ENOSYS.  Some functions are actually named
20845    something starting with __ and the normal name is an alias.  */
20846#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20847choke me
20848#else
20849char (*f) () = $ac_func;
20850#endif
20851#ifdef __cplusplus
20852}
20853#endif
20854
20855int
20856main ()
20857{
20858return f != $ac_func;
20859  ;
20860  return 0;
20861}
20862_ACEOF
20863rm -f conftest.$ac_objext conftest$ac_exeext
20864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20865  (eval $ac_link) 2>&5
20866  ac_status=$?
20867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868  (exit $ac_status); } &&
20869         { ac_try='test -s conftest$ac_exeext'
20870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20871  (eval $ac_try) 2>&5
20872  ac_status=$?
20873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874  (exit $ac_status); }; }; then
20875  eval "$as_ac_var=yes"
20876else
20877  echo "$as_me: failed program was:" >&5
20878sed 's/^/| /' conftest.$ac_ext >&5
20879
20880eval "$as_ac_var=no"
20881fi
20882rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20883fi
20884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20885echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20886if test `eval echo '${'$as_ac_var'}'` = yes; then
20887
20888cat >>confdefs.h <<_ACEOF
20889#define CRAY_STACKSEG_END $ac_func
20890_ACEOF
20891
20892    break
20893fi
20894
20895  done
20896fi
20897
20898echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20899echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20900if test "${ac_cv_c_stack_direction+set}" = set; then
20901  echo $ECHO_N "(cached) $ECHO_C" >&6
20902else
20903  if test "$cross_compiling" = yes; then
20904  ac_cv_c_stack_direction=0
20905else
20906  cat >conftest.$ac_ext <<_ACEOF
20907#line $LINENO "configure"
20908/* confdefs.h.  */
20909_ACEOF
20910cat confdefs.h >>conftest.$ac_ext
20911cat >>conftest.$ac_ext <<_ACEOF
20912/* end confdefs.h.  */
20913int
20914find_stack_direction ()
20915{
20916  static char *addr = 0;
20917  auto char dummy;
20918  if (addr == 0)
20919    {
20920      addr = &dummy;
20921      return find_stack_direction ();
20922    }
20923  else
20924    return (&dummy > addr) ? 1 : -1;
20925}
20926
20927int
20928main ()
20929{
20930  exit (find_stack_direction () < 0);
20931}
20932_ACEOF
20933rm -f conftest$ac_exeext
20934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20935  (eval $ac_link) 2>&5
20936  ac_status=$?
20937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20940  (eval $ac_try) 2>&5
20941  ac_status=$?
20942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943  (exit $ac_status); }; }; then
20944  ac_cv_c_stack_direction=1
20945else
20946  echo "$as_me: program exited with status $ac_status" >&5
20947echo "$as_me: failed program was:" >&5
20948sed 's/^/| /' conftest.$ac_ext >&5
20949
20950( exit $ac_status )
20951ac_cv_c_stack_direction=-1
20952fi
20953rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20954fi
20955fi
20956echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20957echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20958
20959cat >>confdefs.h <<_ACEOF
20960#define STACK_DIRECTION $ac_cv_c_stack_direction
20961_ACEOF
20962
20963
20964fi
20965
20966
20967
20968for ac_header in stdlib.h unistd.h
20969do
20970as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20971if eval "test \"\${$as_ac_Header+set}\" = set"; then
20972  echo "$as_me:$LINENO: checking for $ac_header" >&5
20973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20974if eval "test \"\${$as_ac_Header+set}\" = set"; then
20975  echo $ECHO_N "(cached) $ECHO_C" >&6
20976fi
20977echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20978echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20979else
20980  # Is the header compilable?
20981echo "$as_me:$LINENO: checking $ac_header usability" >&5
20982echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20983cat >conftest.$ac_ext <<_ACEOF
20984#line $LINENO "configure"
20985/* confdefs.h.  */
20986_ACEOF
20987cat confdefs.h >>conftest.$ac_ext
20988cat >>conftest.$ac_ext <<_ACEOF
20989/* end confdefs.h.  */
20990$ac_includes_default
20991#include <$ac_header>
20992_ACEOF
20993rm -f conftest.$ac_objext
20994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20995  (eval $ac_compile) 2>&5
20996  ac_status=$?
20997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998  (exit $ac_status); } &&
20999         { ac_try='test -s conftest.$ac_objext'
21000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001  (eval $ac_try) 2>&5
21002  ac_status=$?
21003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004  (exit $ac_status); }; }; then
21005  ac_header_compiler=yes
21006else
21007  echo "$as_me: failed program was:" >&5
21008sed 's/^/| /' conftest.$ac_ext >&5
21009
21010ac_header_compiler=no
21011fi
21012rm -f conftest.$ac_objext conftest.$ac_ext
21013echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21014echo "${ECHO_T}$ac_header_compiler" >&6
21015
21016# Is the header present?
21017echo "$as_me:$LINENO: checking $ac_header presence" >&5
21018echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21019cat >conftest.$ac_ext <<_ACEOF
21020#line $LINENO "configure"
21021/* confdefs.h.  */
21022_ACEOF
21023cat confdefs.h >>conftest.$ac_ext
21024cat >>conftest.$ac_ext <<_ACEOF
21025/* end confdefs.h.  */
21026#include <$ac_header>
21027_ACEOF
21028if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21029  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21030  ac_status=$?
21031  grep -v '^ *+' conftest.er1 >conftest.err
21032  rm -f conftest.er1
21033  cat conftest.err >&5
21034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035  (exit $ac_status); } >/dev/null; then
21036  if test -s conftest.err; then
21037    ac_cpp_err=$ac_c_preproc_warn_flag
21038  else
21039    ac_cpp_err=
21040  fi
21041else
21042  ac_cpp_err=yes
21043fi
21044if test -z "$ac_cpp_err"; then
21045  ac_header_preproc=yes
21046else
21047  echo "$as_me: failed program was:" >&5
21048sed 's/^/| /' conftest.$ac_ext >&5
21049
21050  ac_header_preproc=no
21051fi
21052rm -f conftest.err conftest.$ac_ext
21053echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21054echo "${ECHO_T}$ac_header_preproc" >&6
21055
21056# So?  What about this header?
21057case $ac_header_compiler:$ac_header_preproc in
21058  yes:no )
21059    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21060echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21061    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21062echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21063    (
21064      cat <<\_ASBOX
21065## ------------------------------------ ##
21066## Report this to bug-autoconf@gnu.org. ##
21067## ------------------------------------ ##
21068_ASBOX
21069    ) |
21070      sed "s/^/$as_me: WARNING:     /" >&2
21071    ;;
21072  no:yes )
21073    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21074echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21075    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21076echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21077    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21078echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21079    (
21080      cat <<\_ASBOX
21081## ------------------------------------ ##
21082## Report this to bug-autoconf@gnu.org. ##
21083## ------------------------------------ ##
21084_ASBOX
21085    ) |
21086      sed "s/^/$as_me: WARNING:     /" >&2
21087    ;;
21088esac
21089echo "$as_me:$LINENO: checking for $ac_header" >&5
21090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21091if eval "test \"\${$as_ac_Header+set}\" = set"; then
21092  echo $ECHO_N "(cached) $ECHO_C" >&6
21093else
21094  eval "$as_ac_Header=$ac_header_preproc"
21095fi
21096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21097echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21098
21099fi
21100if test `eval echo '${'$as_ac_Header'}'` = yes; then
21101  cat >>confdefs.h <<_ACEOF
21102#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21103_ACEOF
21104
21105fi
21106
21107done
21108
21109
21110for ac_func in getpagesize
21111do
21112as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21113echo "$as_me:$LINENO: checking for $ac_func" >&5
21114echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21115if eval "test \"\${$as_ac_var+set}\" = set"; then
21116  echo $ECHO_N "(cached) $ECHO_C" >&6
21117else
21118  cat >conftest.$ac_ext <<_ACEOF
21119#line $LINENO "configure"
21120/* confdefs.h.  */
21121_ACEOF
21122cat confdefs.h >>conftest.$ac_ext
21123cat >>conftest.$ac_ext <<_ACEOF
21124/* end confdefs.h.  */
21125/* System header to define __stub macros and hopefully few prototypes,
21126    which can conflict with char $ac_func (); below.
21127    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21128    <limits.h> exists even on freestanding compilers.  */
21129#ifdef __STDC__
21130# include <limits.h>
21131#else
21132# include <assert.h>
21133#endif
21134/* Override any gcc2 internal prototype to avoid an error.  */
21135#ifdef __cplusplus
21136extern "C"
21137{
21138#endif
21139/* We use char because int might match the return type of a gcc2
21140   builtin and then its argument prototype would still apply.  */
21141char $ac_func ();
21142/* The GNU C library defines this for functions which it implements
21143    to always fail with ENOSYS.  Some functions are actually named
21144    something starting with __ and the normal name is an alias.  */
21145#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21146choke me
21147#else
21148char (*f) () = $ac_func;
21149#endif
21150#ifdef __cplusplus
21151}
21152#endif
21153
21154int
21155main ()
21156{
21157return f != $ac_func;
21158  ;
21159  return 0;
21160}
21161_ACEOF
21162rm -f conftest.$ac_objext conftest$ac_exeext
21163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21164  (eval $ac_link) 2>&5
21165  ac_status=$?
21166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167  (exit $ac_status); } &&
21168         { ac_try='test -s conftest$ac_exeext'
21169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21170  (eval $ac_try) 2>&5
21171  ac_status=$?
21172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173  (exit $ac_status); }; }; then
21174  eval "$as_ac_var=yes"
21175else
21176  echo "$as_me: failed program was:" >&5
21177sed 's/^/| /' conftest.$ac_ext >&5
21178
21179eval "$as_ac_var=no"
21180fi
21181rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21182fi
21183echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21184echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21185if test `eval echo '${'$as_ac_var'}'` = yes; then
21186  cat >>confdefs.h <<_ACEOF
21187#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21188_ACEOF
21189
21190fi
21191done
21192
21193echo "$as_me:$LINENO: checking for working mmap" >&5
21194echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21195if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21196  echo $ECHO_N "(cached) $ECHO_C" >&6
21197else
21198  if test "$cross_compiling" = yes; then
21199  ac_cv_func_mmap_fixed_mapped=no
21200else
21201  cat >conftest.$ac_ext <<_ACEOF
21202#line $LINENO "configure"
21203/* confdefs.h.  */
21204_ACEOF
21205cat confdefs.h >>conftest.$ac_ext
21206cat >>conftest.$ac_ext <<_ACEOF
21207/* end confdefs.h.  */
21208$ac_includes_default
21209/* malloc might have been renamed as rpl_malloc. */
21210#undef malloc
21211
21212/* Thanks to Mike Haertel and Jim Avera for this test.
21213   Here is a matrix of mmap possibilities:
21214	mmap private not fixed
21215	mmap private fixed at somewhere currently unmapped
21216	mmap private fixed at somewhere already mapped
21217	mmap shared not fixed
21218	mmap shared fixed at somewhere currently unmapped
21219	mmap shared fixed at somewhere already mapped
21220   For private mappings, we should verify that changes cannot be read()
21221   back from the file, nor mmap's back from the file at a different
21222   address.  (There have been systems where private was not correctly
21223   implemented like the infamous i386 svr4.0, and systems where the
21224   VM page cache was not coherent with the file system buffer cache
21225   like early versions of FreeBSD and possibly contemporary NetBSD.)
21226   For shared mappings, we should conversely verify that changes get
21227   propagated back to all the places they're supposed to be.
21228
21229   Grep wants private fixed already mapped.
21230   The main things grep needs to know about mmap are:
21231   * does it exist and is it safe to write into the mmap'd area
21232   * how to use it (BSD variants)  */
21233
21234#include <fcntl.h>
21235#include <sys/mman.h>
21236
21237#if !STDC_HEADERS && !HAVE_STDLIB_H
21238char *malloc ();
21239#endif
21240
21241/* This mess was copied from the GNU getpagesize.h.  */
21242#if !HAVE_GETPAGESIZE
21243/* Assume that all systems that can run configure have sys/param.h.  */
21244# if !HAVE_SYS_PARAM_H
21245#  define HAVE_SYS_PARAM_H 1
21246# endif
21247
21248# ifdef _SC_PAGESIZE
21249#  define getpagesize() sysconf(_SC_PAGESIZE)
21250# else /* no _SC_PAGESIZE */
21251#  if HAVE_SYS_PARAM_H
21252#   include <sys/param.h>
21253#   ifdef EXEC_PAGESIZE
21254#    define getpagesize() EXEC_PAGESIZE
21255#   else /* no EXEC_PAGESIZE */
21256#    ifdef NBPG
21257#     define getpagesize() NBPG * CLSIZE
21258#     ifndef CLSIZE
21259#      define CLSIZE 1
21260#     endif /* no CLSIZE */
21261#    else /* no NBPG */
21262#     ifdef NBPC
21263#      define getpagesize() NBPC
21264#     else /* no NBPC */
21265#      ifdef PAGESIZE
21266#       define getpagesize() PAGESIZE
21267#      endif /* PAGESIZE */
21268#     endif /* no NBPC */
21269#    endif /* no NBPG */
21270#   endif /* no EXEC_PAGESIZE */
21271#  else /* no HAVE_SYS_PARAM_H */
21272#   define getpagesize() 8192	/* punt totally */
21273#  endif /* no HAVE_SYS_PARAM_H */
21274# endif /* no _SC_PAGESIZE */
21275
21276#endif /* no HAVE_GETPAGESIZE */
21277
21278int
21279main ()
21280{
21281  char *data, *data2, *data3;
21282  int i, pagesize;
21283  int fd;
21284
21285  pagesize = getpagesize ();
21286
21287  /* First, make a file with some known garbage in it. */
21288  data = (char *) malloc (pagesize);
21289  if (!data)
21290    exit (1);
21291  for (i = 0; i < pagesize; ++i)
21292    *(data + i) = rand ();
21293  umask (0);
21294  fd = creat ("conftest.mmap", 0600);
21295  if (fd < 0)
21296    exit (1);
21297  if (write (fd, data, pagesize) != pagesize)
21298    exit (1);
21299  close (fd);
21300
21301  /* Next, try to mmap the file at a fixed address which already has
21302     something else allocated at it.  If we can, also make sure that
21303     we see the same garbage.  */
21304  fd = open ("conftest.mmap", O_RDWR);
21305  if (fd < 0)
21306    exit (1);
21307  data2 = (char *) malloc (2 * pagesize);
21308  if (!data2)
21309    exit (1);
21310  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21311  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21312                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
21313    exit (1);
21314  for (i = 0; i < pagesize; ++i)
21315    if (*(data + i) != *(data2 + i))
21316      exit (1);
21317
21318  /* Finally, make sure that changes to the mapped area do not
21319     percolate back to the file as seen by read().  (This is a bug on
21320     some variants of i386 svr4.0.)  */
21321  for (i = 0; i < pagesize; ++i)
21322    *(data2 + i) = *(data2 + i) + 1;
21323  data3 = (char *) malloc (pagesize);
21324  if (!data3)
21325    exit (1);
21326  if (read (fd, data3, pagesize) != pagesize)
21327    exit (1);
21328  for (i = 0; i < pagesize; ++i)
21329    if (*(data + i) != *(data3 + i))
21330      exit (1);
21331  close (fd);
21332  exit (0);
21333}
21334_ACEOF
21335rm -f conftest$ac_exeext
21336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21337  (eval $ac_link) 2>&5
21338  ac_status=$?
21339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21342  (eval $ac_try) 2>&5
21343  ac_status=$?
21344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345  (exit $ac_status); }; }; then
21346  ac_cv_func_mmap_fixed_mapped=yes
21347else
21348  echo "$as_me: program exited with status $ac_status" >&5
21349echo "$as_me: failed program was:" >&5
21350sed 's/^/| /' conftest.$ac_ext >&5
21351
21352( exit $ac_status )
21353ac_cv_func_mmap_fixed_mapped=no
21354fi
21355rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21356fi
21357fi
21358echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21359echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21360if test $ac_cv_func_mmap_fixed_mapped = yes; then
21361
21362cat >>confdefs.h <<\_ACEOF
21363#define HAVE_MMAP 1
21364_ACEOF
21365
21366fi
21367rm -f conftest.mmap
21368
21369if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21370then
21371	{ { echo "$as_me:$LINENO: error: mmap() required but not found" >&5
21372echo "$as_me: error: mmap() required but not found" >&2;}
21373   { (exit 1); exit 1; }; }
21374fi
21375echo "$as_me:$LINENO: checking for mmap of files" >&5
21376echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21377if test "${ac_cv_func_mmap_file+set}" = set; then
21378  echo $ECHO_N "(cached) $ECHO_C" >&6
21379else
21380
21381
21382  ac_ext=c
21383ac_cpp='$CPP $CPPFLAGS'
21384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21386ac_compiler_gnu=$ac_cv_c_compiler_gnu
21387
21388  if test "$cross_compiling" = yes; then
21389  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21390See \`config.log' for more details." >&5
21391echo "$as_me: error: cannot run test program while cross compiling
21392See \`config.log' for more details." >&2;}
21393   { (exit 1); exit 1; }; }
21394else
21395  cat >conftest.$ac_ext <<_ACEOF
21396#line $LINENO "configure"
21397/* confdefs.h.  */
21398_ACEOF
21399cat confdefs.h >>conftest.$ac_ext
21400cat >>conftest.$ac_ext <<_ACEOF
21401/* end confdefs.h.  */
21402
21403#ifdef HAVE_SYS_TYPES_H
21404#include <sys/types.h>
21405#endif
21406
21407#ifdef HAVE_SYS_MMAN_H
21408#include <sys/mman.h>
21409#endif
21410
21411#ifdef HAVE_FCNTL_H
21412#include <fcntl.h>
21413#endif
21414
21415  int fd;
21416  int main () {
21417  fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
21418_ACEOF
21419rm -f conftest$ac_exeext
21420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21421  (eval $ac_link) 2>&5
21422  ac_status=$?
21423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426  (eval $ac_try) 2>&5
21427  ac_status=$?
21428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429  (exit $ac_status); }; }; then
21430  ac_cv_func_mmap_file=yes
21431else
21432  echo "$as_me: program exited with status $ac_status" >&5
21433echo "$as_me: failed program was:" >&5
21434sed 's/^/| /' conftest.$ac_ext >&5
21435
21436( exit $ac_status )
21437ac_cv_func_mmap_file=no
21438fi
21439rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21440fi
21441  ac_ext=c
21442ac_cpp='$CPP $CPPFLAGS'
21443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21445ac_compiler_gnu=$ac_cv_c_compiler_gnu
21446
21447
21448fi
21449echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21450echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21451if test "$ac_cv_func_mmap_file" = yes; then
21452
21453cat >>confdefs.h <<\_ACEOF
21454#define HAVE_MMAP_FILE
21455_ACEOF
21456
21457   MMAP_FILE=yes
21458
21459fi
21460
21461if test "$ac_cv_func_mmap_file" = "no"
21462then
21463	{ { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
21464echo "$as_me: error: mmap() of files required but not found" >&2;}
21465   { (exit 1); exit 1; }; }
21466fi
21467echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21468echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21469if test "${ac_cv_header_mmap_anon+set}" = set; then
21470  echo $ECHO_N "(cached) $ECHO_C" >&6
21471else
21472
21473
21474  ac_ext=c
21475ac_cpp='$CPP $CPPFLAGS'
21476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21478ac_compiler_gnu=$ac_cv_c_compiler_gnu
21479
21480  cat >conftest.$ac_ext <<_ACEOF
21481#line $LINENO "configure"
21482/* confdefs.h.  */
21483_ACEOF
21484cat confdefs.h >>conftest.$ac_ext
21485cat >>conftest.$ac_ext <<_ACEOF
21486/* end confdefs.h.  */
21487#include <sys/mman.h>
21488  #include <unistd.h>
21489  #include <fcntl.h>
21490int
21491main ()
21492{
21493mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21494  ;
21495  return 0;
21496}
21497_ACEOF
21498rm -f conftest.$ac_objext
21499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21500  (eval $ac_compile) 2>&5
21501  ac_status=$?
21502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503  (exit $ac_status); } &&
21504         { ac_try='test -s conftest.$ac_objext'
21505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21506  (eval $ac_try) 2>&5
21507  ac_status=$?
21508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509  (exit $ac_status); }; }; then
21510  ac_cv_header_mmap_anon=yes
21511else
21512  echo "$as_me: failed program was:" >&5
21513sed 's/^/| /' conftest.$ac_ext >&5
21514
21515ac_cv_header_mmap_anon=no
21516fi
21517rm -f conftest.$ac_objext conftest.$ac_ext
21518  ac_ext=c
21519ac_cpp='$CPP $CPPFLAGS'
21520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21522ac_compiler_gnu=$ac_cv_c_compiler_gnu
21523
21524
21525fi
21526echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21527echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21528if test "$ac_cv_header_mmap_anon" = yes; then
21529
21530cat >>confdefs.h <<\_ACEOF
21531#define HAVE_MMAP_ANONYMOUS
21532_ACEOF
21533
21534fi
21535
21536echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21537echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21538if test "${ac_cv_type_signal+set}" = set; then
21539  echo $ECHO_N "(cached) $ECHO_C" >&6
21540else
21541  cat >conftest.$ac_ext <<_ACEOF
21542#line $LINENO "configure"
21543/* confdefs.h.  */
21544_ACEOF
21545cat confdefs.h >>conftest.$ac_ext
21546cat >>conftest.$ac_ext <<_ACEOF
21547/* end confdefs.h.  */
21548#include <sys/types.h>
21549#include <signal.h>
21550#ifdef signal
21551# undef signal
21552#endif
21553#ifdef __cplusplus
21554extern "C" void (*signal (int, void (*)(int)))(int);
21555#else
21556void (*signal ()) ();
21557#endif
21558
21559int
21560main ()
21561{
21562int i;
21563  ;
21564  return 0;
21565}
21566_ACEOF
21567rm -f conftest.$ac_objext
21568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21569  (eval $ac_compile) 2>&5
21570  ac_status=$?
21571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572  (exit $ac_status); } &&
21573         { ac_try='test -s conftest.$ac_objext'
21574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575  (eval $ac_try) 2>&5
21576  ac_status=$?
21577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578  (exit $ac_status); }; }; then
21579  ac_cv_type_signal=void
21580else
21581  echo "$as_me: failed program was:" >&5
21582sed 's/^/| /' conftest.$ac_ext >&5
21583
21584ac_cv_type_signal=int
21585fi
21586rm -f conftest.$ac_objext conftest.$ac_ext
21587fi
21588echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21589echo "${ECHO_T}$ac_cv_type_signal" >&6
21590
21591cat >>confdefs.h <<_ACEOF
21592#define RETSIGTYPE $ac_cv_type_signal
21593_ACEOF
21594
21595
21596
21597
21598
21599
21600
21601
21602for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace
21603do
21604as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21605echo "$as_me:$LINENO: checking for $ac_func" >&5
21606echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21607if eval "test \"\${$as_ac_var+set}\" = set"; then
21608  echo $ECHO_N "(cached) $ECHO_C" >&6
21609else
21610  cat >conftest.$ac_ext <<_ACEOF
21611#line $LINENO "configure"
21612/* confdefs.h.  */
21613_ACEOF
21614cat confdefs.h >>conftest.$ac_ext
21615cat >>conftest.$ac_ext <<_ACEOF
21616/* end confdefs.h.  */
21617/* System header to define __stub macros and hopefully few prototypes,
21618    which can conflict with char $ac_func (); below.
21619    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21620    <limits.h> exists even on freestanding compilers.  */
21621#ifdef __STDC__
21622# include <limits.h>
21623#else
21624# include <assert.h>
21625#endif
21626/* Override any gcc2 internal prototype to avoid an error.  */
21627#ifdef __cplusplus
21628extern "C"
21629{
21630#endif
21631/* We use char because int might match the return type of a gcc2
21632   builtin and then its argument prototype would still apply.  */
21633char $ac_func ();
21634/* The GNU C library defines this for functions which it implements
21635    to always fail with ENOSYS.  Some functions are actually named
21636    something starting with __ and the normal name is an alias.  */
21637#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21638choke me
21639#else
21640char (*f) () = $ac_func;
21641#endif
21642#ifdef __cplusplus
21643}
21644#endif
21645
21646int
21647main ()
21648{
21649return f != $ac_func;
21650  ;
21651  return 0;
21652}
21653_ACEOF
21654rm -f conftest.$ac_objext conftest$ac_exeext
21655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21656  (eval $ac_link) 2>&5
21657  ac_status=$?
21658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659  (exit $ac_status); } &&
21660         { ac_try='test -s conftest$ac_exeext'
21661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21662  (eval $ac_try) 2>&5
21663  ac_status=$?
21664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665  (exit $ac_status); }; }; then
21666  eval "$as_ac_var=yes"
21667else
21668  echo "$as_me: failed program was:" >&5
21669sed 's/^/| /' conftest.$ac_ext >&5
21670
21671eval "$as_ac_var=no"
21672fi
21673rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21674fi
21675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21676echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21677if test `eval echo '${'$as_ac_var'}'` = yes; then
21678  cat >>confdefs.h <<_ACEOF
21679#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21680_ACEOF
21681
21682fi
21683done
21684
21685echo "$as_me:$LINENO: checking for mprotect" >&5
21686echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21687if test "${ac_cv_func_mprotect+set}" = set; then
21688  echo $ECHO_N "(cached) $ECHO_C" >&6
21689else
21690  cat >conftest.$ac_ext <<_ACEOF
21691#line $LINENO "configure"
21692/* confdefs.h.  */
21693_ACEOF
21694cat confdefs.h >>conftest.$ac_ext
21695cat >>conftest.$ac_ext <<_ACEOF
21696/* end confdefs.h.  */
21697/* System header to define __stub macros and hopefully few prototypes,
21698    which can conflict with char mprotect (); below.
21699    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21700    <limits.h> exists even on freestanding compilers.  */
21701#ifdef __STDC__
21702# include <limits.h>
21703#else
21704# include <assert.h>
21705#endif
21706/* Override any gcc2 internal prototype to avoid an error.  */
21707#ifdef __cplusplus
21708extern "C"
21709{
21710#endif
21711/* We use char because int might match the return type of a gcc2
21712   builtin and then its argument prototype would still apply.  */
21713char mprotect ();
21714/* The GNU C library defines this for functions which it implements
21715    to always fail with ENOSYS.  Some functions are actually named
21716    something starting with __ and the normal name is an alias.  */
21717#if defined (__stub_mprotect) || defined (__stub___mprotect)
21718choke me
21719#else
21720char (*f) () = mprotect;
21721#endif
21722#ifdef __cplusplus
21723}
21724#endif
21725
21726int
21727main ()
21728{
21729return f != mprotect;
21730  ;
21731  return 0;
21732}
21733_ACEOF
21734rm -f conftest.$ac_objext conftest$ac_exeext
21735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21736  (eval $ac_link) 2>&5
21737  ac_status=$?
21738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739  (exit $ac_status); } &&
21740         { ac_try='test -s conftest$ac_exeext'
21741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21742  (eval $ac_try) 2>&5
21743  ac_status=$?
21744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745  (exit $ac_status); }; }; then
21746  ac_cv_func_mprotect=yes
21747else
21748  echo "$as_me: failed program was:" >&5
21749sed 's/^/| /' conftest.$ac_ext >&5
21750
21751ac_cv_func_mprotect=no
21752fi
21753rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21754fi
21755echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21756echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21757if test $ac_cv_func_mprotect = yes; then
21758  :
21759else
21760  { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21761echo "$as_me: error: Function mprotect() required but not found" >&2;}
21762   { (exit 1); exit 1; }; }
21763fi
21764
21765
21766
21767
21768
21769  ac_ext=c
21770ac_cpp='$CPP $CPPFLAGS'
21771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21773ac_compiler_gnu=$ac_cv_c_compiler_gnu
21774
21775  oldcflags="$CFLAGS"
21776  CFLAGS="$CFLAGS -Wl,-R."
21777  cat >conftest.$ac_ext <<_ACEOF
21778int main() { return 0; }
21779_ACEOF
21780rm -f conftest.$ac_objext conftest$ac_exeext
21781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21782  (eval $ac_link) 2>&5
21783  ac_status=$?
21784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785  (exit $ac_status); } &&
21786         { ac_try='test -s conftest$ac_exeext'
21787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21788  (eval $ac_try) 2>&5
21789  ac_status=$?
21790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791  (exit $ac_status); }; }; then
21792  ac_cv_link_use_r=yes
21793else
21794  echo "$as_me: failed program was:" >&5
21795sed 's/^/| /' conftest.$ac_ext >&5
21796
21797ac_cv_link_use_r=no
21798fi
21799rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21800  CFLAGS="$oldcflags"
21801  ac_ext=c
21802ac_cpp='$CPP $CPPFLAGS'
21803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21805ac_compiler_gnu=$ac_cv_c_compiler_gnu
21806
21807  if test "$ac_cv_link_use_r" = yes
21808  then
21809
21810cat >>confdefs.h <<\_ACEOF
21811#define HAVE_LINK_R 1
21812_ACEOF
21813
21814  fi
21815
21816
21817# Check whether --enable-optimized or --disable-optimized was given.
21818if test "${enable_optimized+set}" = set; then
21819  enableval="$enable_optimized"
21820
21821else
21822  enableval=no
21823fi;
21824if test ${enableval} = "no"
21825then
21826	ENABLE_OPTIMIZED=
21827
21828else
21829	ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21830
21831fi
21832
21833# Check whether --enable-spec2000 or --disable-spec2000 was given.
21834if test "${enable_spec2000+set}" = set; then
21835  enableval="$enable_spec2000"
21836
21837else
21838  enableval=no
21839fi;
21840if test ${enableval} = "no"
21841then
21842	if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
21843	then
21844		SPEC2000_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21845
21846		USE_SPEC2000=USE_SPEC2000=1
21847
21848	else
21849		USE_SPEC2000=
21850
21851
21852	fi
21853else
21854	if test ${enableval} = ""
21855	then
21856		SPEC2000_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21857
21858	else
21859		SPEC2000_ROOT=${enableval}
21860
21861	fi
21862	USE_SPEC2000=USE_SPEC2000=1
21863
21864fi
21865
21866# Check whether --enable-spec95 or --disable-spec95 was given.
21867if test "${enable_spec95+set}" = set; then
21868  enableval="$enable_spec95"
21869
21870else
21871  enableval=no
21872fi;
21873if test ${enableval} = "no"
21874then
21875	if test -d /home/vadve/shared/benchmarks/spec95/benchspec
21876	then
21877		SPEC95_ROOT=/home/vadve/shared/benchmarks/spec95/benchspec
21878
21879		USE_SPEC95=USE_SPEC95=1
21880
21881	else
21882		USE_SPEC95=
21883
21884
21885	fi
21886else
21887	if test ${enableval} = ""
21888	then
21889		SPEC95_ROOT=/home/vadve/shared/benchmarks/spec95/benchspec
21890
21891	else
21892		SPEC95_ROOT=${enableval}
21893
21894	fi
21895	USE_SPEC95=USE_SPEC95=1
21896
21897fi
21898
21899# Check whether --enable-povray or --disable-povray was given.
21900if test "${enable_povray+set}" = set; then
21901  enableval="$enable_povray"
21902
21903else
21904  enableval=no
21905fi;
21906if test ${enableval} = "no"
21907then
21908	if test -d /home/vadve/shared/benchmarks/povray31
21909	then
21910		POVRAY_ROOT=/home/vadve/shared/benchmarks/povray31
21911
21912		USE_POVRAY=USE_POVRAY=1
21913
21914	else
21915		USE_POVRAY=
21916
21917
21918	fi
21919else
21920	if test ${enableval} = ""
21921	then
21922		POVRAY_ROOT=/home/vadve/shared/benchmarks/povray31
21923
21924	else
21925		POVRAY_ROOT=${enableval}
21926
21927	fi
21928	USE_POVRAY=USE_POVRAY=1
21929
21930fi
21931
21932
21933# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21934if test "${enable_precompiled_bytecode+set}" = set; then
21935  enableval="$enable_precompiled_bytecode"
21936
21937else
21938  enableval=no
21939fi;
21940if test ${enableval} = "no"
21941then
21942	UPB=
21943
21944else
21945	UPB=USE_PRECOMPILED_BYTECODE=1
21946
21947fi
21948
21949# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
21950if test "${enable_llc_diffs+set}" = set; then
21951  enableval="$enable_llc_diffs"
21952
21953else
21954  enableval=yes
21955fi;
21956if test ${enableval} = "no"
21957then
21958	DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
21959
21960else
21961	DISABLE_LLC_DIFFS=
21962
21963fi
21964
21965# Check whether --enable-jit or --disable-jit was given.
21966if test "${enable_jit+set}" = set; then
21967  enableval="$enable_jit"
21968
21969else
21970  enableval=default
21971fi;
21972if test ${enableval} = "no"
21973then
21974	JIT=
21975
21976else
21977	case $target in
21978		*i*86*)
21979			JIT=TARGET_HAS_JIT=1
21980
21981			;;
21982		*sparc*)
21983			JIT=TARGET_HAS_JIT=1
21984
21985			;;
21986		*)
21987			JIT=
21988
21989			;;
21990	esac
21991fi
21992
21993
21994# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
21995if test "${with_llvmgccdir+set}" = set; then
21996  withval="$with_llvmgccdir"
21997  LLVMGCCDIR=$withval
21998
21999fi;
22000echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22001echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22002LLVM_GCC_CHECK=no
22003if test -d "$LLVMGCCDIR"
22004then
22005	if test -x "$LLVMGCCDIR/bin/gcc"
22006	then
22007		LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22008	fi
22009fi
22010llvmgccwarn=no
22011echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22012echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22013if test "$LLVM_GCC_CHECK" = "no"
22014then
22015    llvmgccwarn=yes
22016fi
22017echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22018echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22019LLVM_GCC_SANE=no
22020if test -x "$LLVM_GCC_CHECK"
22021then
22022	cp /dev/null conftest.c
22023    "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22024	if test $? -eq 0
22025	then
22026		LLVM_GCC_SANE=yes
22027	fi
22028	rm conftest.c
22029	llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
22030	LLVMCC1=$llvmcc1path
22031
22032	llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
22033	LLVMCC1PLUS=$llvmcc1pluspath
22034
22035fi
22036echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22037echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22038if test "$LLVM_GCC_SANE" = "no"
22039then
22040	llvmgccwarn=yes
22041fi
22042
22043
22044# Check whether --with-bcrepos or --without-bcrepos was given.
22045if test "${with_bcrepos+set}" = set; then
22046  withval="$with_bcrepos"
22047  BCR=$withval
22048
22049else
22050  BCR=/home/vadve/lattner/LLVMPrograms
22051
22052fi;
22053
22054
22055# Check whether --with-papi or --without-papi was given.
22056if test "${with_papi+set}" = set; then
22057  withval="$with_papi"
22058  PAPIDIR=$withval
22059
22060else
22061  PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22062
22063fi;
22064
22065echo "$as_me:$LINENO: checking for shared library suffix" >&5
22066echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
22067eval "SHLIBEXT=$shrext"
22068echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
22069echo "${ECHO_T}$SHLIBEXT" >&6
22070SHLIBEXT=$SHLIBEXT
22071
22072
22073cat >>confdefs.h <<_ACEOF
22074#define SHLIBEXT "$SHLIBEXT"
22075_ACEOF
22076
22077
22078                                                            ac_config_files="$ac_config_files Makefile.config include/Support/DataTypes.h include/Support/ThreadSupport.h include/Support/hash_map include/Support/hash_set include/Support/iterator"
22079cat >confcache <<\_ACEOF
22080# This file is a shell script that caches the results of configure
22081# tests run on this system so they can be shared between configure
22082# scripts and configure runs, see configure's option --config-cache.
22083# It is not useful on other systems.  If it contains results you don't
22084# want to keep, you may remove or edit it.
22085#
22086# config.status only pays attention to the cache file if you give it
22087# the --recheck option to rerun configure.
22088#
22089# `ac_cv_env_foo' variables (set or unset) will be overridden when
22090# loading this file, other *unset* `ac_cv_foo' will be assigned the
22091# following values.
22092
22093_ACEOF
22094
22095# The following way of writing the cache mishandles newlines in values,
22096# but we know of no workaround that is simple, portable, and efficient.
22097# So, don't put newlines in cache variables' values.
22098# Ultrix sh set writes to stderr and can't be redirected directly,
22099# and sets the high bit in the cache file unless we assign to the vars.
22100{
22101  (set) 2>&1 |
22102    case `(ac_space=' '; set | grep ac_space) 2>&1` in
22103    *ac_space=\ *)
22104      # `set' does not quote correctly, so add quotes (double-quote
22105      # substitution turns \\\\ into \\, and sed turns \\ into \).
22106      sed -n \
22107        "s/'/'\\\\''/g;
22108    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22109      ;;
22110    *)
22111      # `set' quotes correctly as required by POSIX, so do not add quotes.
22112      sed -n \
22113        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22114      ;;
22115    esac;
22116} |
22117  sed '
22118     t clear
22119     : clear
22120     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22121     t end
22122     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22123     : end' >>confcache
22124if diff $cache_file confcache >/dev/null 2>&1; then :; else
22125  if test -w $cache_file; then
22126    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22127    cat confcache >$cache_file
22128  else
22129    echo "not updating unwritable cache $cache_file"
22130  fi
22131fi
22132rm -f confcache
22133
22134test "x$prefix" = xNONE && prefix=$ac_default_prefix
22135# Let make expand exec_prefix.
22136test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22137
22138# VPATH may cause trouble with some makes, so we remove $(srcdir),
22139# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22140# trailing colons and then remove the whole line if VPATH becomes empty
22141# (actually we leave an empty line to preserve line numbers).
22142if test "x$srcdir" = x.; then
22143  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
22144s/:*\$(srcdir):*/:/;
22145s/:*\${srcdir}:*/:/;
22146s/:*@srcdir@:*/:/;
22147s/^\([^=]*=[ 	]*\):*/\1/;
22148s/:*$//;
22149s/^[^=]*=[ 	]*$//;
22150}'
22151fi
22152
22153DEFS=-DHAVE_CONFIG_H
22154
22155ac_libobjs=
22156ac_ltlibobjs=
22157for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22158  # 1. Remove the extension, and $U if already installed.
22159  ac_i=`echo "$ac_i" |
22160         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22161  # 2. Add them.
22162  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22163  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22164done
22165LIBOBJS=$ac_libobjs
22166
22167LTLIBOBJS=$ac_ltlibobjs
22168
22169
22170
22171: ${CONFIG_STATUS=./config.status}
22172ac_clean_files_save=$ac_clean_files
22173ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22174{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22175echo "$as_me: creating $CONFIG_STATUS" >&6;}
22176cat >$CONFIG_STATUS <<_ACEOF
22177#! $SHELL
22178# Generated by $as_me.
22179# Run this file to recreate the current configuration.
22180# Compiler output produced by configure, useful for debugging
22181# configure, is in config.log if it exists.
22182
22183debug=false
22184ac_cs_recheck=false
22185ac_cs_silent=false
22186SHELL=\${CONFIG_SHELL-$SHELL}
22187_ACEOF
22188
22189cat >>$CONFIG_STATUS <<\_ACEOF
22190## --------------------- ##
22191## M4sh Initialization.  ##
22192## --------------------- ##
22193
22194# Be Bourne compatible
22195if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22196  emulate sh
22197  NULLCMD=:
22198  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22199  # is contrary to our usage.  Disable this feature.
22200  alias -g '${1+"$@"}'='"$@"'
22201elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22202  set -o posix
22203fi
22204
22205# Support unset when possible.
22206if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22207  as_unset=unset
22208else
22209  as_unset=false
22210fi
22211
22212
22213# Work around bugs in pre-3.0 UWIN ksh.
22214$as_unset ENV MAIL MAILPATH
22215PS1='$ '
22216PS2='> '
22217PS4='+ '
22218
22219# NLS nuisances.
22220for as_var in \
22221  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22222  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22223  LC_TELEPHONE LC_TIME
22224do
22225  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22226    eval $as_var=C; export $as_var
22227  else
22228    $as_unset $as_var
22229  fi
22230done
22231
22232# Required to use basename.
22233if expr a : '\(a\)' >/dev/null 2>&1; then
22234  as_expr=expr
22235else
22236  as_expr=false
22237fi
22238
22239if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22240  as_basename=basename
22241else
22242  as_basename=false
22243fi
22244
22245
22246# Name of the executable.
22247as_me=`$as_basename "$0" ||
22248$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22249	 X"$0" : 'X\(//\)$' \| \
22250	 X"$0" : 'X\(/\)$' \| \
22251	 .     : '\(.\)' 2>/dev/null ||
22252echo X/"$0" |
22253    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22254  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
22255  	  /^X\/\(\/\).*/{ s//\1/; q; }
22256  	  s/.*/./; q'`
22257
22258
22259# PATH needs CR, and LINENO needs CR and PATH.
22260# Avoid depending upon Character Ranges.
22261as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22262as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22263as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22264as_cr_digits='0123456789'
22265as_cr_alnum=$as_cr_Letters$as_cr_digits
22266
22267# The user is always right.
22268if test "${PATH_SEPARATOR+set}" != set; then
22269  echo "#! /bin/sh" >conf$$.sh
22270  echo  "exit 0"   >>conf$$.sh
22271  chmod +x conf$$.sh
22272  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22273    PATH_SEPARATOR=';'
22274  else
22275    PATH_SEPARATOR=:
22276  fi
22277  rm -f conf$$.sh
22278fi
22279
22280
22281  as_lineno_1=$LINENO
22282  as_lineno_2=$LINENO
22283  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22284  test "x$as_lineno_1" != "x$as_lineno_2" &&
22285  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22286  # Find who we are.  Look in the path if we contain no path at all
22287  # relative or not.
22288  case $0 in
22289    *[\\/]* ) as_myself=$0 ;;
22290    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22291for as_dir in $PATH
22292do
22293  IFS=$as_save_IFS
22294  test -z "$as_dir" && as_dir=.
22295  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22296done
22297
22298       ;;
22299  esac
22300  # We did not find ourselves, most probably we were run as `sh COMMAND'
22301  # in which case we are not to be found in the path.
22302  if test "x$as_myself" = x; then
22303    as_myself=$0
22304  fi
22305  if test ! -f "$as_myself"; then
22306    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22307echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22308   { (exit 1); exit 1; }; }
22309  fi
22310  case $CONFIG_SHELL in
22311  '')
22312    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22313for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22314do
22315  IFS=$as_save_IFS
22316  test -z "$as_dir" && as_dir=.
22317  for as_base in sh bash ksh sh5; do
22318	 case $as_dir in
22319	 /*)
22320	   if ("$as_dir/$as_base" -c '
22321  as_lineno_1=$LINENO
22322  as_lineno_2=$LINENO
22323  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22324  test "x$as_lineno_1" != "x$as_lineno_2" &&
22325  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22326	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22327	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22328	     CONFIG_SHELL=$as_dir/$as_base
22329	     export CONFIG_SHELL
22330	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22331	   fi;;
22332	 esac
22333       done
22334done
22335;;
22336  esac
22337
22338  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22339  # uniformly replaced by the line number.  The first 'sed' inserts a
22340  # line-number line before each line; the second 'sed' does the real
22341  # work.  The second script uses 'N' to pair each line-number line
22342  # with the numbered line, and appends trailing '-' during
22343  # substitution so that $LINENO is not a special case at line end.
22344  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22345  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22346  sed '=' <$as_myself |
22347    sed '
22348      N
22349      s,$,-,
22350      : loop
22351      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22352      t loop
22353      s,-$,,
22354      s,^['$as_cr_digits']*\n,,
22355    ' >$as_me.lineno &&
22356  chmod +x $as_me.lineno ||
22357    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22358echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22359   { (exit 1); exit 1; }; }
22360
22361  # Don't try to exec as it changes $[0], causing all sort of problems
22362  # (the dirname of $[0] is not the place where we might find the
22363  # original and so on.  Autoconf is especially sensible to this).
22364  . ./$as_me.lineno
22365  # Exit status is that of the last command.
22366  exit
22367}
22368
22369
22370case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22371  *c*,-n*) ECHO_N= ECHO_C='
22372' ECHO_T='	' ;;
22373  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22374  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22375esac
22376
22377if expr a : '\(a\)' >/dev/null 2>&1; then
22378  as_expr=expr
22379else
22380  as_expr=false
22381fi
22382
22383rm -f conf$$ conf$$.exe conf$$.file
22384echo >conf$$.file
22385if ln -s conf$$.file conf$$ 2>/dev/null; then
22386  # We could just check for DJGPP; but this test a) works b) is more generic
22387  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22388  if test -f conf$$.exe; then
22389    # Don't use ln at all; we don't have any links
22390    as_ln_s='cp -p'
22391  else
22392    as_ln_s='ln -s'
22393  fi
22394elif ln conf$$.file conf$$ 2>/dev/null; then
22395  as_ln_s=ln
22396else
22397  as_ln_s='cp -p'
22398fi
22399rm -f conf$$ conf$$.exe conf$$.file
22400
22401if mkdir -p . 2>/dev/null; then
22402  as_mkdir_p=:
22403else
22404  as_mkdir_p=false
22405fi
22406
22407as_executable_p="test -f"
22408
22409# Sed expression to map a string onto a valid CPP name.
22410as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22411
22412# Sed expression to map a string onto a valid variable name.
22413as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22414
22415
22416# IFS
22417# We need space, tab and new line, in precisely that order.
22418as_nl='
22419'
22420IFS=" 	$as_nl"
22421
22422# CDPATH.
22423$as_unset CDPATH
22424
22425exec 6>&1
22426
22427# Open the log real soon, to keep \$[0] and so on meaningful, and to
22428# report actual input values of CONFIG_FILES etc. instead of their
22429# values after options handling.  Logging --version etc. is OK.
22430exec 5>>config.log
22431{
22432  echo
22433  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22434## Running $as_me. ##
22435_ASBOX
22436} >&5
22437cat >&5 <<_CSEOF
22438
22439This file was extended by [LLVM] $as_me [1.1], which was
22440generated by GNU Autoconf 2.57.  Invocation command line was
22441
22442  CONFIG_FILES    = $CONFIG_FILES
22443  CONFIG_HEADERS  = $CONFIG_HEADERS
22444  CONFIG_LINKS    = $CONFIG_LINKS
22445  CONFIG_COMMANDS = $CONFIG_COMMANDS
22446  $ $0 $@
22447
22448_CSEOF
22449echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22450echo >&5
22451_ACEOF
22452
22453# Files that config.status was made for.
22454if test -n "$ac_config_files"; then
22455  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22456fi
22457
22458if test -n "$ac_config_headers"; then
22459  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22460fi
22461
22462if test -n "$ac_config_links"; then
22463  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22464fi
22465
22466if test -n "$ac_config_commands"; then
22467  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22468fi
22469
22470cat >>$CONFIG_STATUS <<\_ACEOF
22471
22472ac_cs_usage="\
22473\`$as_me' instantiates files from templates according to the
22474current configuration.
22475
22476Usage: $0 [OPTIONS] [FILE]...
22477
22478  -h, --help       print this help, then exit
22479  -V, --version    print version number, then exit
22480  -q, --quiet      do not print progress messages
22481  -d, --debug      don't remove temporary files
22482      --recheck    update $as_me by reconfiguring in the same conditions
22483  --file=FILE[:TEMPLATE]
22484                   instantiate the configuration file FILE
22485  --header=FILE[:TEMPLATE]
22486                   instantiate the configuration header FILE
22487
22488Configuration files:
22489$config_files
22490
22491Configuration headers:
22492$config_headers
22493
22494Configuration commands:
22495$config_commands
22496
22497Report bugs to <bug-autoconf@gnu.org>."
22498_ACEOF
22499
22500cat >>$CONFIG_STATUS <<_ACEOF
22501ac_cs_version="\\
22502[LLVM] config.status [1.1]
22503configured by $0, generated by GNU Autoconf 2.57,
22504  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22505
22506Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22507Free Software Foundation, Inc.
22508This config.status script is free software; the Free Software Foundation
22509gives unlimited permission to copy, distribute and modify it."
22510srcdir=$srcdir
22511INSTALL="$INSTALL"
22512_ACEOF
22513
22514cat >>$CONFIG_STATUS <<\_ACEOF
22515# If no file are specified by the user, then we need to provide default
22516# value.  By we need to know if files were specified by the user.
22517ac_need_defaults=:
22518while test $# != 0
22519do
22520  case $1 in
22521  --*=*)
22522    ac_option=`expr "x$1" : 'x\([^=]*\)='`
22523    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22524    ac_shift=:
22525    ;;
22526  -*)
22527    ac_option=$1
22528    ac_optarg=$2
22529    ac_shift=shift
22530    ;;
22531  *) # This is not an option, so the user has probably given explicit
22532     # arguments.
22533     ac_option=$1
22534     ac_need_defaults=false;;
22535  esac
22536
22537  case $ac_option in
22538  # Handling of the options.
22539_ACEOF
22540cat >>$CONFIG_STATUS <<\_ACEOF
22541  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22542    ac_cs_recheck=: ;;
22543  --version | --vers* | -V )
22544    echo "$ac_cs_version"; exit 0 ;;
22545  --he | --h)
22546    # Conflict between --help and --header
22547    { { echo "$as_me:$LINENO: error: ambiguous option: $1
22548Try \`$0 --help' for more information." >&5
22549echo "$as_me: error: ambiguous option: $1
22550Try \`$0 --help' for more information." >&2;}
22551   { (exit 1); exit 1; }; };;
22552  --help | --hel | -h )
22553    echo "$ac_cs_usage"; exit 0 ;;
22554  --debug | --d* | -d )
22555    debug=: ;;
22556  --file | --fil | --fi | --f )
22557    $ac_shift
22558    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22559    ac_need_defaults=false;;
22560  --header | --heade | --head | --hea )
22561    $ac_shift
22562    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22563    ac_need_defaults=false;;
22564  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22565  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22566    ac_cs_silent=: ;;
22567
22568  # This is an error.
22569  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22570Try \`$0 --help' for more information." >&5
22571echo "$as_me: error: unrecognized option: $1
22572Try \`$0 --help' for more information." >&2;}
22573   { (exit 1); exit 1; }; } ;;
22574
22575  *) ac_config_targets="$ac_config_targets $1" ;;
22576
22577  esac
22578  shift
22579done
22580
22581ac_configure_extra_args=
22582
22583if $ac_cs_silent; then
22584  exec 6>/dev/null
22585  ac_configure_extra_args="$ac_configure_extra_args --silent"
22586fi
22587
22588_ACEOF
22589cat >>$CONFIG_STATUS <<_ACEOF
22590if \$ac_cs_recheck; then
22591  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22592  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22593fi
22594
22595_ACEOF
22596
22597cat >>$CONFIG_STATUS <<_ACEOF
22598#
22599# INIT-COMMANDS section.
22600#
22601
22602${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22603${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
22604${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22605${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22606${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
22607${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22608${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
22609${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
22610${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
22611${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
22612${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
22613${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
22614${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
22615${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
22616${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
22617${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
22618${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
22619${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
22620${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
22621${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
22622${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
22623${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
22624${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
22625${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
22626${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
22627${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
22628${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
22629${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
22630${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
22631${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
22632${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
22633${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
22634${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
22635${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
22636${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
22637${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
22638${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
22639${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
22640${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
22641${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
22642${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
22643${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
22644${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
22645${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
22646${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
22647${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
22648${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22649${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
22650${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
22651
22652_ACEOF
22653
22654
22655
22656cat >>$CONFIG_STATUS <<\_ACEOF
22657for ac_config_target in $ac_config_targets
22658do
22659  case "$ac_config_target" in
22660  # Handling of arguments.
22661  "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22662  "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
22663  "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
22664  "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
22665  "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
22666  "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
22667  "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22668  "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22669  "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22670  "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22671  "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22672  "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22673  "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
22674  "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
22675  "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
22676  "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
22677  "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
22678  "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
22679  "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
22680  "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
22681  "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
22682  "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
22683  "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
22684  "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
22685  "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
22686  "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
22687  "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
22688  "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
22689  "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
22690  "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
22691  "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
22692  "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
22693  "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
22694  "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
22695  "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
22696  "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
22697  "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
22698  "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
22699  "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
22700  "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
22701  "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
22702  "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
22703  "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
22704  "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
22705  "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
22706  "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
22707  "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
22708  "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
22709  "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
22710  "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
22711  "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
22712  "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
22713  "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22714  "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22715  "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22716  "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22717  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22718echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22719   { (exit 1); exit 1; }; };;
22720  esac
22721done
22722
22723# If the user did not use the arguments to specify the items to instantiate,
22724# then the envvar interface is used.  Set only those that are not.
22725# We use the long form for the default assignment because of an extremely
22726# bizarre bug on SunOS 4.1.3.
22727if $ac_need_defaults; then
22728  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22729  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22730  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22731fi
22732
22733# Have a temporary directory for convenience.  Make it in the build tree
22734# simply because there is no reason to put it here, and in addition,
22735# creating and moving files from /tmp can sometimes cause problems.
22736# Create a temporary directory, and hook for its removal unless debugging.
22737$debug ||
22738{
22739  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22740  trap '{ (exit 1); exit 1; }' 1 2 13 15
22741}
22742
22743# Create a (secure) tmp directory for tmp files.
22744
22745{
22746  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22747  test -n "$tmp" && test -d "$tmp"
22748}  ||
22749{
22750  tmp=./confstat$$-$RANDOM
22751  (umask 077 && mkdir $tmp)
22752} ||
22753{
22754   echo "$me: cannot create a temporary directory in ." >&2
22755   { (exit 1); exit 1; }
22756}
22757
22758_ACEOF
22759
22760cat >>$CONFIG_STATUS <<_ACEOF
22761
22762#
22763# CONFIG_FILES section.
22764#
22765
22766# No need to generate the scripts if there are no CONFIG_FILES.
22767# This happens for instance when ./config.status config.h
22768if test -n "\$CONFIG_FILES"; then
22769  # Protect against being on the right side of a sed subst in config.status.
22770  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22771   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22772s,@SHELL@,$SHELL,;t t
22773s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22774s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22775s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22776s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22777s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22778s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22779s,@exec_prefix@,$exec_prefix,;t t
22780s,@prefix@,$prefix,;t t
22781s,@program_transform_name@,$program_transform_name,;t t
22782s,@bindir@,$bindir,;t t
22783s,@sbindir@,$sbindir,;t t
22784s,@libexecdir@,$libexecdir,;t t
22785s,@datadir@,$datadir,;t t
22786s,@sysconfdir@,$sysconfdir,;t t
22787s,@sharedstatedir@,$sharedstatedir,;t t
22788s,@localstatedir@,$localstatedir,;t t
22789s,@libdir@,$libdir,;t t
22790s,@includedir@,$includedir,;t t
22791s,@oldincludedir@,$oldincludedir,;t t
22792s,@infodir@,$infodir,;t t
22793s,@mandir@,$mandir,;t t
22794s,@build_alias@,$build_alias,;t t
22795s,@host_alias@,$host_alias,;t t
22796s,@target_alias@,$target_alias,;t t
22797s,@DEFS@,$DEFS,;t t
22798s,@ECHO_C@,$ECHO_C,;t t
22799s,@ECHO_N@,$ECHO_N,;t t
22800s,@ECHO_T@,$ECHO_T,;t t
22801s,@LIBS@,$LIBS,;t t
22802s,@subdirs@,$subdirs,;t t
22803s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22804s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22805s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22806s,@build@,$build,;t t
22807s,@build_cpu@,$build_cpu,;t t
22808s,@build_vendor@,$build_vendor,;t t
22809s,@build_os@,$build_os,;t t
22810s,@host@,$host,;t t
22811s,@host_cpu@,$host_cpu,;t t
22812s,@host_vendor@,$host_vendor,;t t
22813s,@host_os@,$host_os,;t t
22814s,@target@,$target,;t t
22815s,@target_cpu@,$target_cpu,;t t
22816s,@target_vendor@,$target_vendor,;t t
22817s,@target_os@,$target_os,;t t
22818s,@OS@,$OS,;t t
22819s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
22820s,@ARCH@,$ARCH,;t t
22821s,@CXX@,$CXX,;t t
22822s,@CXXFLAGS@,$CXXFLAGS,;t t
22823s,@LDFLAGS@,$LDFLAGS,;t t
22824s,@CPPFLAGS@,$CPPFLAGS,;t t
22825s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22826s,@EXEEXT@,$EXEEXT,;t t
22827s,@OBJEXT@,$OBJEXT,;t t
22828s,@CC@,$CC,;t t
22829s,@CFLAGS@,$CFLAGS,;t t
22830s,@ac_ct_CC@,$ac_ct_CC,;t t
22831s,@CPP@,$CPP,;t t
22832s,@ifGNUmake@,$ifGNUmake,;t t
22833s,@LEX@,$LEX,;t t
22834s,@LEXLIB@,$LEXLIB,;t t
22835s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22836s,@YACC@,$YACC,;t t
22837s,@BISON@,$BISON,;t t
22838s,@EGREP@,$EGREP,;t t
22839s,@LN_S@,$LN_S,;t t
22840s,@ECHO@,$ECHO,;t t
22841s,@AR@,$AR,;t t
22842s,@ac_ct_AR@,$ac_ct_AR,;t t
22843s,@RANLIB@,$RANLIB,;t t
22844s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22845s,@STRIP@,$STRIP,;t t
22846s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22847s,@CXXCPP@,$CXXCPP,;t t
22848s,@F77@,$F77,;t t
22849s,@FFLAGS@,$FFLAGS,;t t
22850s,@ac_ct_F77@,$ac_ct_F77,;t t
22851s,@LIBTOOL@,$LIBTOOL,;t t
22852s,@DOT@,$DOT,;t t
22853s,@ETAGS@,$ETAGS,;t t
22854s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
22855s,@PYTHON@,$PYTHON,;t t
22856s,@QMTEST@,$QMTEST,;t t
22857s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
22858s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
22859s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
22860s,@ENDIAN@,$ENDIAN,;t t
22861s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
22862s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
22863s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
22864s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
22865s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
22866s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
22867s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
22868s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
22869s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
22870s,@ALLOCA@,$ALLOCA,;t t
22871s,@MMAP_FILE@,$MMAP_FILE,;t t
22872s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
22873s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
22874s,@USE_SPEC2000@,$USE_SPEC2000,;t t
22875s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
22876s,@USE_SPEC95@,$USE_SPEC95,;t t
22877s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
22878s,@USE_POVRAY@,$USE_POVRAY,;t t
22879s,@UPB@,$UPB,;t t
22880s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
22881s,@JIT@,$JIT,;t t
22882s,@LLVMCC1@,$LLVMCC1,;t t
22883s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
22884s,@BCR@,$BCR,;t t
22885s,@PAPIDIR@,$PAPIDIR,;t t
22886s,@SHLIBEXT@,$SHLIBEXT,;t t
22887s,@LIBOBJS@,$LIBOBJS,;t t
22888s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22889CEOF
22890
22891_ACEOF
22892
22893  cat >>$CONFIG_STATUS <<\_ACEOF
22894  # Split the substitutions into bite-sized pieces for seds with
22895  # small command number limits, like on Digital OSF/1 and HP-UX.
22896  ac_max_sed_lines=48
22897  ac_sed_frag=1 # Number of current file.
22898  ac_beg=1 # First line for current file.
22899  ac_end=$ac_max_sed_lines # Line after last line for current file.
22900  ac_more_lines=:
22901  ac_sed_cmds=
22902  while $ac_more_lines; do
22903    if test $ac_beg -gt 1; then
22904      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22905    else
22906      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22907    fi
22908    if test ! -s $tmp/subs.frag; then
22909      ac_more_lines=false
22910    else
22911      # The purpose of the label and of the branching condition is to
22912      # speed up the sed processing (if there are no `@' at all, there
22913      # is no need to browse any of the substitutions).
22914      # These are the two extra sed commands mentioned above.
22915      (echo ':t
22916  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22917      if test -z "$ac_sed_cmds"; then
22918  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22919      else
22920  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22921      fi
22922      ac_sed_frag=`expr $ac_sed_frag + 1`
22923      ac_beg=$ac_end
22924      ac_end=`expr $ac_end + $ac_max_sed_lines`
22925    fi
22926  done
22927  if test -z "$ac_sed_cmds"; then
22928    ac_sed_cmds=cat
22929  fi
22930fi # test -n "$CONFIG_FILES"
22931
22932_ACEOF
22933cat >>$CONFIG_STATUS <<\_ACEOF
22934for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22935  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22936  case $ac_file in
22937  - | *:- | *:-:* ) # input from stdin
22938        cat >$tmp/stdin
22939        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22940        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22941  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22942        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22943  * )   ac_file_in=$ac_file.in ;;
22944  esac
22945
22946  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22947  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22948$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22949         X"$ac_file" : 'X\(//\)[^/]' \| \
22950         X"$ac_file" : 'X\(//\)$' \| \
22951         X"$ac_file" : 'X\(/\)' \| \
22952         .     : '\(.\)' 2>/dev/null ||
22953echo X"$ac_file" |
22954    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22955  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22956  	  /^X\(\/\/\)$/{ s//\1/; q; }
22957  	  /^X\(\/\).*/{ s//\1/; q; }
22958  	  s/.*/./; q'`
22959  { if $as_mkdir_p; then
22960    mkdir -p "$ac_dir"
22961  else
22962    as_dir="$ac_dir"
22963    as_dirs=
22964    while test ! -d "$as_dir"; do
22965      as_dirs="$as_dir $as_dirs"
22966      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22967$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22968         X"$as_dir" : 'X\(//\)[^/]' \| \
22969         X"$as_dir" : 'X\(//\)$' \| \
22970         X"$as_dir" : 'X\(/\)' \| \
22971         .     : '\(.\)' 2>/dev/null ||
22972echo X"$as_dir" |
22973    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22974  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22975  	  /^X\(\/\/\)$/{ s//\1/; q; }
22976  	  /^X\(\/\).*/{ s//\1/; q; }
22977  	  s/.*/./; q'`
22978    done
22979    test ! -n "$as_dirs" || mkdir $as_dirs
22980  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22981echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22982   { (exit 1); exit 1; }; }; }
22983
22984  ac_builddir=.
22985
22986if test "$ac_dir" != .; then
22987  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22988  # A "../" for each directory in $ac_dir_suffix.
22989  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22990else
22991  ac_dir_suffix= ac_top_builddir=
22992fi
22993
22994case $srcdir in
22995  .)  # No --srcdir option.  We are building in place.
22996    ac_srcdir=.
22997    if test -z "$ac_top_builddir"; then
22998       ac_top_srcdir=.
22999    else
23000       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23001    fi ;;
23002  [\\/]* | ?:[\\/]* )  # Absolute path.
23003    ac_srcdir=$srcdir$ac_dir_suffix;
23004    ac_top_srcdir=$srcdir ;;
23005  *) # Relative path.
23006    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23007    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23008esac
23009# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23010# absolute.
23011ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23012ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23013ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23014ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23015
23016
23017  case $INSTALL in
23018  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23019  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23020  esac
23021
23022  if test x"$ac_file" != x-; then
23023    { echo "$as_me:$LINENO: creating $ac_file" >&5
23024echo "$as_me: creating $ac_file" >&6;}
23025    rm -f "$ac_file"
23026  fi
23027  # Let's still pretend it is `configure' which instantiates (i.e., don't
23028  # use $as_me), people would be surprised to read:
23029  #    /* config.h.  Generated by config.status.  */
23030  if test x"$ac_file" = x-; then
23031    configure_input=
23032  else
23033    configure_input="$ac_file.  "
23034  fi
23035  configure_input=$configure_input"Generated from `echo $ac_file_in |
23036                                     sed 's,.*/,,'` by configure."
23037
23038  # First look for the input files in the build tree, otherwise in the
23039  # src tree.
23040  ac_file_inputs=`IFS=:
23041    for f in $ac_file_in; do
23042      case $f in
23043      -) echo $tmp/stdin ;;
23044      [\\/$]*)
23045         # Absolute (can't be DOS-style, as IFS=:)
23046         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23047echo "$as_me: error: cannot find input file: $f" >&2;}
23048   { (exit 1); exit 1; }; }
23049         echo $f;;
23050      *) # Relative
23051         if test -f "$f"; then
23052           # Build tree
23053           echo $f
23054         elif test -f "$srcdir/$f"; then
23055           # Source tree
23056           echo $srcdir/$f
23057         else
23058           # /dev/null tree
23059           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23060echo "$as_me: error: cannot find input file: $f" >&2;}
23061   { (exit 1); exit 1; }; }
23062         fi;;
23063      esac
23064    done` || { (exit 1); exit 1; }
23065_ACEOF
23066cat >>$CONFIG_STATUS <<_ACEOF
23067  sed "$ac_vpsub
23068$extrasub
23069_ACEOF
23070cat >>$CONFIG_STATUS <<\_ACEOF
23071:t
23072/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23073s,@configure_input@,$configure_input,;t t
23074s,@srcdir@,$ac_srcdir,;t t
23075s,@abs_srcdir@,$ac_abs_srcdir,;t t
23076s,@top_srcdir@,$ac_top_srcdir,;t t
23077s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23078s,@builddir@,$ac_builddir,;t t
23079s,@abs_builddir@,$ac_abs_builddir,;t t
23080s,@top_builddir@,$ac_top_builddir,;t t
23081s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23082s,@INSTALL@,$ac_INSTALL,;t t
23083" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23084  rm -f $tmp/stdin
23085  if test x"$ac_file" != x-; then
23086    mv $tmp/out $ac_file
23087  else
23088    cat $tmp/out
23089    rm -f $tmp/out
23090  fi
23091
23092done
23093_ACEOF
23094cat >>$CONFIG_STATUS <<\_ACEOF
23095
23096#
23097# CONFIG_HEADER section.
23098#
23099
23100# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23101# NAME is the cpp macro being defined and VALUE is the value it is being given.
23102#
23103# ac_d sets the value in "#define NAME VALUE" lines.
23104ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
23105ac_dB='[ 	].*$,\1#\2'
23106ac_dC=' '
23107ac_dD=',;t'
23108# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23109ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
23110ac_uB='$,\1#\2define\3'
23111ac_uC=' '
23112ac_uD=',;t'
23113
23114for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23115  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23116  case $ac_file in
23117  - | *:- | *:-:* ) # input from stdin
23118        cat >$tmp/stdin
23119        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23120        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23121  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23122        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23123  * )   ac_file_in=$ac_file.in ;;
23124  esac
23125
23126  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23127echo "$as_me: creating $ac_file" >&6;}
23128
23129  # First look for the input files in the build tree, otherwise in the
23130  # src tree.
23131  ac_file_inputs=`IFS=:
23132    for f in $ac_file_in; do
23133      case $f in
23134      -) echo $tmp/stdin ;;
23135      [\\/$]*)
23136         # Absolute (can't be DOS-style, as IFS=:)
23137         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23138echo "$as_me: error: cannot find input file: $f" >&2;}
23139   { (exit 1); exit 1; }; }
23140         echo $f;;
23141      *) # Relative
23142         if test -f "$f"; then
23143           # Build tree
23144           echo $f
23145         elif test -f "$srcdir/$f"; then
23146           # Source tree
23147           echo $srcdir/$f
23148         else
23149           # /dev/null tree
23150           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23151echo "$as_me: error: cannot find input file: $f" >&2;}
23152   { (exit 1); exit 1; }; }
23153         fi;;
23154      esac
23155    done` || { (exit 1); exit 1; }
23156  # Remove the trailing spaces.
23157  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
23158
23159_ACEOF
23160
23161# Transform confdefs.h into two sed scripts, `conftest.defines' and
23162# `conftest.undefs', that substitutes the proper values into
23163# config.h.in to produce config.h.  The first handles `#define'
23164# templates, and the second `#undef' templates.
23165# And first: Protect against being on the right side of a sed subst in
23166# config.status.  Protect against being in an unquoted here document
23167# in config.status.
23168rm -f conftest.defines conftest.undefs
23169# Using a here document instead of a string reduces the quoting nightmare.
23170# Putting comments in sed scripts is not portable.
23171#
23172# `end' is used to avoid that the second main sed command (meant for
23173# 0-ary CPP macros) applies to n-ary macro definitions.
23174# See the Autoconf documentation for `clear'.
23175cat >confdef2sed.sed <<\_ACEOF
23176s/[\\&,]/\\&/g
23177s,[\\$`],\\&,g
23178t clear
23179: clear
23180s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23181t end
23182s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23183: end
23184_ACEOF
23185# If some macros were called several times there might be several times
23186# the same #defines, which is useless.  Nevertheless, we may not want to
23187# sort them, since we want the *last* AC-DEFINE to be honored.
23188uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23189sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23190rm -f confdef2sed.sed
23191
23192# This sed command replaces #undef with comments.  This is necessary, for
23193# example, in the case of _POSIX_SOURCE, which is predefined and required
23194# on some systems where configure will not decide to define it.
23195cat >>conftest.undefs <<\_ACEOF
23196s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23197_ACEOF
23198
23199# Break up conftest.defines because some shells have a limit on the size
23200# of here documents, and old seds have small limits too (100 cmds).
23201echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23202echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23203echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23204echo '  :' >>$CONFIG_STATUS
23205rm -f conftest.tail
23206while grep . conftest.defines >/dev/null
23207do
23208  # Write a limited-size here document to $tmp/defines.sed.
23209  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23210  # Speed up: don't consider the non `#define' lines.
23211  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
23212  # Work around the forget-to-reset-the-flag bug.
23213  echo 't clr' >>$CONFIG_STATUS
23214  echo ': clr' >>$CONFIG_STATUS
23215  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23216  echo 'CEOF
23217  sed -f $tmp/defines.sed $tmp/in >$tmp/out
23218  rm -f $tmp/in
23219  mv $tmp/out $tmp/in
23220' >>$CONFIG_STATUS
23221  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23222  rm -f conftest.defines
23223  mv conftest.tail conftest.defines
23224done
23225rm -f conftest.defines
23226echo '  fi # grep' >>$CONFIG_STATUS
23227echo >>$CONFIG_STATUS
23228
23229# Break up conftest.undefs because some shells have a limit on the size
23230# of here documents, and old seds have small limits too (100 cmds).
23231echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23232rm -f conftest.tail
23233while grep . conftest.undefs >/dev/null
23234do
23235  # Write a limited-size here document to $tmp/undefs.sed.
23236  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23237  # Speed up: don't consider the non `#undef'
23238  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
23239  # Work around the forget-to-reset-the-flag bug.
23240  echo 't clr' >>$CONFIG_STATUS
23241  echo ': clr' >>$CONFIG_STATUS
23242  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23243  echo 'CEOF
23244  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23245  rm -f $tmp/in
23246  mv $tmp/out $tmp/in
23247' >>$CONFIG_STATUS
23248  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23249  rm -f conftest.undefs
23250  mv conftest.tail conftest.undefs
23251done
23252rm -f conftest.undefs
23253
23254cat >>$CONFIG_STATUS <<\_ACEOF
23255  # Let's still pretend it is `configure' which instantiates (i.e., don't
23256  # use $as_me), people would be surprised to read:
23257  #    /* config.h.  Generated by config.status.  */
23258  if test x"$ac_file" = x-; then
23259    echo "/* Generated by configure.  */" >$tmp/config.h
23260  else
23261    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23262  fi
23263  cat $tmp/in >>$tmp/config.h
23264  rm -f $tmp/in
23265  if test x"$ac_file" != x-; then
23266    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23267      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23268echo "$as_me: $ac_file is unchanged" >&6;}
23269    else
23270      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23271$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23272         X"$ac_file" : 'X\(//\)[^/]' \| \
23273         X"$ac_file" : 'X\(//\)$' \| \
23274         X"$ac_file" : 'X\(/\)' \| \
23275         .     : '\(.\)' 2>/dev/null ||
23276echo X"$ac_file" |
23277    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23278  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23279  	  /^X\(\/\/\)$/{ s//\1/; q; }
23280  	  /^X\(\/\).*/{ s//\1/; q; }
23281  	  s/.*/./; q'`
23282      { if $as_mkdir_p; then
23283    mkdir -p "$ac_dir"
23284  else
23285    as_dir="$ac_dir"
23286    as_dirs=
23287    while test ! -d "$as_dir"; do
23288      as_dirs="$as_dir $as_dirs"
23289      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23290$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23291         X"$as_dir" : 'X\(//\)[^/]' \| \
23292         X"$as_dir" : 'X\(//\)$' \| \
23293         X"$as_dir" : 'X\(/\)' \| \
23294         .     : '\(.\)' 2>/dev/null ||
23295echo X"$as_dir" |
23296    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23297  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23298  	  /^X\(\/\/\)$/{ s//\1/; q; }
23299  	  /^X\(\/\).*/{ s//\1/; q; }
23300  	  s/.*/./; q'`
23301    done
23302    test ! -n "$as_dirs" || mkdir $as_dirs
23303  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23304echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23305   { (exit 1); exit 1; }; }; }
23306
23307      rm -f $ac_file
23308      mv $tmp/config.h $ac_file
23309    fi
23310  else
23311    cat $tmp/config.h
23312    rm -f $tmp/config.h
23313  fi
23314done
23315_ACEOF
23316cat >>$CONFIG_STATUS <<\_ACEOF
23317
23318#
23319# CONFIG_COMMANDS section.
23320#
23321for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23322  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23323  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23324  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23325$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23326         X"$ac_dest" : 'X\(//\)[^/]' \| \
23327         X"$ac_dest" : 'X\(//\)$' \| \
23328         X"$ac_dest" : 'X\(/\)' \| \
23329         .     : '\(.\)' 2>/dev/null ||
23330echo X"$ac_dest" |
23331    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23332  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23333  	  /^X\(\/\/\)$/{ s//\1/; q; }
23334  	  /^X\(\/\).*/{ s//\1/; q; }
23335  	  s/.*/./; q'`
23336  ac_builddir=.
23337
23338if test "$ac_dir" != .; then
23339  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23340  # A "../" for each directory in $ac_dir_suffix.
23341  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23342else
23343  ac_dir_suffix= ac_top_builddir=
23344fi
23345
23346case $srcdir in
23347  .)  # No --srcdir option.  We are building in place.
23348    ac_srcdir=.
23349    if test -z "$ac_top_builddir"; then
23350       ac_top_srcdir=.
23351    else
23352       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23353    fi ;;
23354  [\\/]* | ?:[\\/]* )  # Absolute path.
23355    ac_srcdir=$srcdir$ac_dir_suffix;
23356    ac_top_srcdir=$srcdir ;;
23357  *) # Relative path.
23358    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23359    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23360esac
23361# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23362# absolute.
23363ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23364ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23365ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23366ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23367
23368
23369  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23370echo "$as_me: executing $ac_dest commands" >&6;}
23371  case $ac_dest in
23372    Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
23373    Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
23374    lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
23375    runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23376    test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
23377    test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23378    test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
23379    test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
23380    test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
23381    test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
23382    test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
23383    test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
23384    test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
23385    test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
23386    test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
23387    test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
23388    test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
23389    test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
23390    test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
23391    test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
23392    test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
23393    test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
23394    test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
23395    test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
23396    test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
23397    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 ;;
23398    test/Programs/External/SPEC/Makefile.spec2000 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec2000 test/Programs/External/SPEC/Makefile.spec2000 ;;
23399    test/Programs/External/SPEC/Makefile.spec95 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec95 test/Programs/External/SPEC/Makefile.spec95 ;;
23400    test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
23401    test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
23402    test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;;
23403    test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;;
23404    test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;;
23405    test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;;
23406    test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;;
23407    test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;;
23408    test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;;
23409    test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;;
23410    test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;;
23411    test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;;
23412    test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;;
23413    test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;;
23414    test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;;
23415    test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
23416    test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
23417    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 ;;
23418    tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
23419    utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
23420    projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
23421  esac
23422done
23423_ACEOF
23424
23425cat >>$CONFIG_STATUS <<\_ACEOF
23426
23427{ (exit 0); exit 0; }
23428_ACEOF
23429chmod +x $CONFIG_STATUS
23430ac_clean_files=$ac_clean_files_save
23431
23432
23433# configure is writing to config.log, and then calls config.status.
23434# config.status does its own redirection, appending to config.log.
23435# Unfortunately, on DOS this fails, as config.log is still kept open
23436# by configure, so config.status won't be able to write to it; its
23437# output is simply discarded.  So we exec the FD to /dev/null,
23438# effectively closing config.log, so it can be properly (re)opened and
23439# appended to by config.status.  When coming back to configure, we
23440# need to make the FD available again.
23441if test "$no_create" != yes; then
23442  ac_cs_success=:
23443  ac_config_status_args=
23444  test "$silent" = yes &&
23445    ac_config_status_args="$ac_config_status_args --quiet"
23446  exec 5>/dev/null
23447  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23448  exec 5>>config.log
23449  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23450  # would make configure fail if this is the last instruction.
23451  $ac_cs_success || { (exit 1); exit 1; }
23452fi
23453
23454#
23455# CONFIG_SUBDIRS section.
23456#
23457if test "$no_recursion" != yes; then
23458
23459  # Remove --cache-file and --srcdir arguments so they do not pile up.
23460  ac_sub_configure_args=
23461  ac_prev=
23462  for ac_arg in $ac_configure_args; do
23463    if test -n "$ac_prev"; then
23464      ac_prev=
23465      continue
23466    fi
23467    case $ac_arg in
23468    -cache-file | --cache-file | --cache-fil | --cache-fi \
23469    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23470      ac_prev=cache_file ;;
23471    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23472    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23473    | --c=*)
23474      ;;
23475    --config-cache | -C)
23476      ;;
23477    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23478      ac_prev=srcdir ;;
23479    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23480      ;;
23481    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23482      ac_prev=prefix ;;
23483    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23484      ;;
23485    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23486    esac
23487  done
23488
23489  # Always prepend --prefix to ensure using the same prefix
23490  # in subdir configurations.
23491  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23492
23493  ac_popdir=`pwd`
23494  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23495
23496    # Do not complain, so a configure script can configure whichever
23497    # parts of a large source tree are present.
23498    test -d $srcdir/$ac_dir || continue
23499
23500    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23501echo "$as_me: configuring in $ac_dir" >&6;}
23502    { if $as_mkdir_p; then
23503    mkdir -p "$ac_dir"
23504  else
23505    as_dir="$ac_dir"
23506    as_dirs=
23507    while test ! -d "$as_dir"; do
23508      as_dirs="$as_dir $as_dirs"
23509      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23510$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23511         X"$as_dir" : 'X\(//\)[^/]' \| \
23512         X"$as_dir" : 'X\(//\)$' \| \
23513         X"$as_dir" : 'X\(/\)' \| \
23514         .     : '\(.\)' 2>/dev/null ||
23515echo X"$as_dir" |
23516    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23517  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23518  	  /^X\(\/\/\)$/{ s//\1/; q; }
23519  	  /^X\(\/\).*/{ s//\1/; q; }
23520  	  s/.*/./; q'`
23521    done
23522    test ! -n "$as_dirs" || mkdir $as_dirs
23523  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23524echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23525   { (exit 1); exit 1; }; }; }
23526
23527    ac_builddir=.
23528
23529if test "$ac_dir" != .; then
23530  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23531  # A "../" for each directory in $ac_dir_suffix.
23532  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23533else
23534  ac_dir_suffix= ac_top_builddir=
23535fi
23536
23537case $srcdir in
23538  .)  # No --srcdir option.  We are building in place.
23539    ac_srcdir=.
23540    if test -z "$ac_top_builddir"; then
23541       ac_top_srcdir=.
23542    else
23543       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23544    fi ;;
23545  [\\/]* | ?:[\\/]* )  # Absolute path.
23546    ac_srcdir=$srcdir$ac_dir_suffix;
23547    ac_top_srcdir=$srcdir ;;
23548  *) # Relative path.
23549    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23550    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23551esac
23552# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23553# absolute.
23554ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23555ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23556ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23557ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23558
23559
23560    cd $ac_dir
23561
23562    # Check for guested configure; otherwise get Cygnus style configure.
23563    if test -f $ac_srcdir/configure.gnu; then
23564      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23565    elif test -f $ac_srcdir/configure; then
23566      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23567    elif test -f $ac_srcdir/configure.in; then
23568      ac_sub_configure=$ac_configure
23569    else
23570      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23571echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23572      ac_sub_configure=
23573    fi
23574
23575    # The recursion is here.
23576    if test -n "$ac_sub_configure"; then
23577      # Make the cache file name correct relative to the subdirectory.
23578      case $cache_file in
23579      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23580      *) # Relative path.
23581        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23582      esac
23583
23584      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23585echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23586      # The eval makes quoting arguments work.
23587      eval $ac_sub_configure $ac_sub_configure_args \
23588           --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23589        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23590echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23591   { (exit 1); exit 1; }; }
23592    fi
23593
23594    cd $ac_popdir
23595  done
23596fi
23597
23598
23599if test $llvmgccwarn = yes
23600then
23601	{ echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
23602echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
23603	{ echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
23604echo "$as_me: WARNING: ***** appear to be working." >&2;}
23605	{ echo "$as_me:$LINENO: WARNING: ***** " >&5
23606echo "$as_me: WARNING: ***** " >&2;}
23607	{ echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
23608echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
23609	{ echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
23610echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
23611	{ echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
23612echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
23613fi
23614
23615