OSDN Git Service

libjava/
[pf3gnuchains/gcc-fork.git] / libjava / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$lt_ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $ECHO works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<_LT_EOF
274 $*
275 _LT_EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$lt_ECHO"; then
284   if test "X${echo_test_string+set}" != Xset; then
285     # find a string as large as possible, as long as the shell can cope with it
286     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290       then
291         break
292       fi
293     done
294   fi
295
296   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298      test "X$echo_testing_string" = "X$echo_test_string"; then
299     :
300   else
301     # The Solaris, AIX, and Digital Unix default echo programs unquote
302     # backslashes.  This makes it impossible to quote backslashes using
303     #   echo "$something" | sed 's/\\/\\\\/g'
304     #
305     # So, first we look for a working echo in the user's PATH.
306
307     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308     for dir in $PATH /usr/ucb; do
309       IFS="$lt_save_ifs"
310       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313          test "X$echo_testing_string" = "X$echo_test_string"; then
314         ECHO="$dir/echo"
315         break
316       fi
317     done
318     IFS="$lt_save_ifs"
319
320     if test "X$ECHO" = Xecho; then
321       # We didn't find a better echo, so look for alternatives.
322       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324          test "X$echo_testing_string" = "X$echo_test_string"; then
325         # This shell has a builtin print -r that does the trick.
326         ECHO='print -r'
327       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328            test "X$CONFIG_SHELL" != X/bin/ksh; then
329         # If we have ksh, try running configure again with it.
330         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331         export ORIGINAL_CONFIG_SHELL
332         CONFIG_SHELL=/bin/ksh
333         export CONFIG_SHELL
334         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335       else
336         # Try using printf.
337         ECHO='printf %s\n'
338         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340            test "X$echo_testing_string" = "X$echo_test_string"; then
341           # Cool, printf works
342           :
343         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344              test "X$echo_testing_string" = 'X\t' &&
345              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346              test "X$echo_testing_string" = "X$echo_test_string"; then
347           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348           export CONFIG_SHELL
349           SHELL="$CONFIG_SHELL"
350           export SHELL
351           ECHO="$CONFIG_SHELL $0 --fallback-echo"
352         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353              test "X$echo_testing_string" = 'X\t' &&
354              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355              test "X$echo_testing_string" = "X$echo_test_string"; then
356           ECHO="$CONFIG_SHELL $0 --fallback-echo"
357         else
358           # maybe with a smaller string...
359           prev=:
360
361           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363             then
364               break
365             fi
366             prev="$cmd"
367           done
368
369           if test "$prev" != 'sed 50q "$0"'; then
370             echo_test_string=`eval $prev`
371             export echo_test_string
372             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373           else
374             # Oops.  We lost completely, so just stick with echo.
375             ECHO=echo
376           fi
377         fi
378       fi
379     fi
380   fi
381 fi
382
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
410
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete.  It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
415
416 # Identity of this package.
417 PACKAGE_NAME='libjava'
418 PACKAGE_TARNAME='libjava'
419 PACKAGE_VERSION='version-unused'
420 PACKAGE_STRING='libjava version-unused'
421 PACKAGE_BUGREPORT=''
422
423 ac_unique_file="java/lang/System.java"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 #  include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 #  include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 #  include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
460
461 ac_subdirs_all="$ac_subdirs_all classpath libltdl"
462 ac_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 build build_cpu build_vendor build_os build_libsubdir build_subdir host_subdir target_subdir multi_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs JAVA_MAINTAINER_MODE_TRUE JAVA_MAINTAINER_MODE_FALSE CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB JAR ZIP UNZIP MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJ_LD_SYMBOLIC_FUNCTIONS LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE X_AWT_TRUE X_AWT_FALSE GCJ_FOR_ECJX GCJH host_exeext INCLTDL LIBLTDL DIRLTDL LIBTOOL SED EGREP FGREP GREP DUMPBIN ac_ct_DUMPBIN NM lt_ECHO CPP CPPFLAGS CXXCPP GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE ECJ_BUILD_JAR ECJ_JAR BUILD_ECJ1_TRUE BUILD_ECJ1_FALSE INSTALL_ECJ_JAR_TRUE INSTALL_ECJ_JAR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME SUPPRESS_LIBGCJ_BC_TRUE SUPPRESS_LIBGCJ_BC_FALSE INTERPRETER INTERPRETER_TRUE INTERPRETER_FALSE LIBFFI LIBFFIINCS PLATFORM USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS extra_ldflags_libjava extra_gij_ldflags extra_ldflags LIBSTDCXXSPEC LIBGCJTESTSPEC GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADSTARTFILESPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE USE_LIBGCJ_BC_TRUE USE_LIBGCJ_BC_FALSE LIBGCJ_SPEC HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV PKG_CONFIG GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS CLASSPATH_SEPARATOR ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE ENABLE_SHARED_TRUE ENABLE_SHARED_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION dbexecdir gxx_include_dir libstdcxx_incdir PERL SYSDEP_SOURCES ANONVERSCRIPT_TRUE ANONVERSCRIPT_FALSE LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC here LIBOBJS LTLIBOBJS'
463 ac_subst_files=''
464 ac_pwd=`pwd`
465
466 # Initialize some variables set by options.
467 ac_init_help=
468 ac_init_version=false
469 # The variables have the same names as the options, with
470 # dashes changed to underlines.
471 cache_file=/dev/null
472 exec_prefix=NONE
473 no_create=
474 no_recursion=
475 prefix=NONE
476 program_prefix=NONE
477 program_suffix=NONE
478 program_transform_name=s,x,x,
479 silent=
480 site=
481 srcdir=
482 verbose=
483 x_includes=NONE
484 x_libraries=NONE
485
486 # Installation directory options.
487 # These are left unexpanded so users can "make install exec_prefix=/foo"
488 # and all the variables that are supposed to be based on exec_prefix
489 # by default will actually change.
490 # Use braces instead of parens because sh, perl, etc. also accept them.
491 bindir='${exec_prefix}/bin'
492 sbindir='${exec_prefix}/sbin'
493 libexecdir='${exec_prefix}/libexec'
494 datadir='${prefix}/share'
495 sysconfdir='${prefix}/etc'
496 sharedstatedir='${prefix}/com'
497 localstatedir='${prefix}/var'
498 libdir='${exec_prefix}/lib'
499 includedir='${prefix}/include'
500 oldincludedir='/usr/include'
501 infodir='${prefix}/info'
502 mandir='${prefix}/man'
503
504 ac_prev=
505 for ac_option
506 do
507   # If the previous option needs an argument, assign it.
508   if test -n "$ac_prev"; then
509     eval "$ac_prev=\$ac_option"
510     ac_prev=
511     continue
512   fi
513
514   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515
516   # Accept the important Cygnus configure options, so we can diagnose typos.
517
518   case $ac_option in
519
520   -bindir | --bindir | --bindi | --bind | --bin | --bi)
521     ac_prev=bindir ;;
522   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
523     bindir=$ac_optarg ;;
524
525   -build | --build | --buil | --bui | --bu)
526     ac_prev=build_alias ;;
527   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
528     build_alias=$ac_optarg ;;
529
530   -cache-file | --cache-file | --cache-fil | --cache-fi \
531   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
532     ac_prev=cache_file ;;
533   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
534   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
535     cache_file=$ac_optarg ;;
536
537   --config-cache | -C)
538     cache_file=config.cache ;;
539
540   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
541     ac_prev=datadir ;;
542   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
543   | --da=*)
544     datadir=$ac_optarg ;;
545
546   -disable-* | --disable-*)
547     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
548     # Reject names that are not valid shell variable names.
549     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
550       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
551    { (exit 1); exit 1; }; }
552     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
553     eval "enable_$ac_feature=no" ;;
554
555   -enable-* | --enable-*)
556     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
557     # Reject names that are not valid shell variable names.
558     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
560    { (exit 1); exit 1; }; }
561     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562     case $ac_option in
563       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
564       *) ac_optarg=yes ;;
565     esac
566     eval "enable_$ac_feature='$ac_optarg'" ;;
567
568   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
569   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
570   | --exec | --exe | --ex)
571     ac_prev=exec_prefix ;;
572   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
573   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
574   | --exec=* | --exe=* | --ex=*)
575     exec_prefix=$ac_optarg ;;
576
577   -gas | --gas | --ga | --g)
578     # Obsolete; use --with-gas.
579     with_gas=yes ;;
580
581   -help | --help | --hel | --he | -h)
582     ac_init_help=long ;;
583   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
584     ac_init_help=recursive ;;
585   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
586     ac_init_help=short ;;
587
588   -host | --host | --hos | --ho)
589     ac_prev=host_alias ;;
590   -host=* | --host=* | --hos=* | --ho=*)
591     host_alias=$ac_optarg ;;
592
593   -includedir | --includedir | --includedi | --included | --include \
594   | --includ | --inclu | --incl | --inc)
595     ac_prev=includedir ;;
596   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
597   | --includ=* | --inclu=* | --incl=* | --inc=*)
598     includedir=$ac_optarg ;;
599
600   -infodir | --infodir | --infodi | --infod | --info | --inf)
601     ac_prev=infodir ;;
602   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
603     infodir=$ac_optarg ;;
604
605   -libdir | --libdir | --libdi | --libd)
606     ac_prev=libdir ;;
607   -libdir=* | --libdir=* | --libdi=* | --libd=*)
608     libdir=$ac_optarg ;;
609
610   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
611   | --libexe | --libex | --libe)
612     ac_prev=libexecdir ;;
613   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
614   | --libexe=* | --libex=* | --libe=*)
615     libexecdir=$ac_optarg ;;
616
617   -localstatedir | --localstatedir | --localstatedi | --localstated \
618   | --localstate | --localstat | --localsta | --localst \
619   | --locals | --local | --loca | --loc | --lo)
620     ac_prev=localstatedir ;;
621   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
622   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
623   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
624     localstatedir=$ac_optarg ;;
625
626   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
627     ac_prev=mandir ;;
628   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
629     mandir=$ac_optarg ;;
630
631   -nfp | --nfp | --nf)
632     # Obsolete; use --without-fp.
633     with_fp=no ;;
634
635   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
636   | --no-cr | --no-c | -n)
637     no_create=yes ;;
638
639   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
640   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
641     no_recursion=yes ;;
642
643   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
644   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
645   | --oldin | --oldi | --old | --ol | --o)
646     ac_prev=oldincludedir ;;
647   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
648   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
649   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
650     oldincludedir=$ac_optarg ;;
651
652   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
653     ac_prev=prefix ;;
654   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
655     prefix=$ac_optarg ;;
656
657   -program-prefix | --program-prefix | --program-prefi | --program-pref \
658   | --program-pre | --program-pr | --program-p)
659     ac_prev=program_prefix ;;
660   -program-prefix=* | --program-prefix=* | --program-prefi=* \
661   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
662     program_prefix=$ac_optarg ;;
663
664   -program-suffix | --program-suffix | --program-suffi | --program-suff \
665   | --program-suf | --program-su | --program-s)
666     ac_prev=program_suffix ;;
667   -program-suffix=* | --program-suffix=* | --program-suffi=* \
668   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
669     program_suffix=$ac_optarg ;;
670
671   -program-transform-name | --program-transform-name \
672   | --program-transform-nam | --program-transform-na \
673   | --program-transform-n | --program-transform- \
674   | --program-transform | --program-transfor \
675   | --program-transfo | --program-transf \
676   | --program-trans | --program-tran \
677   | --progr-tra | --program-tr | --program-t)
678     ac_prev=program_transform_name ;;
679   -program-transform-name=* | --program-transform-name=* \
680   | --program-transform-nam=* | --program-transform-na=* \
681   | --program-transform-n=* | --program-transform-=* \
682   | --program-transform=* | --program-transfor=* \
683   | --program-transfo=* | --program-transf=* \
684   | --program-trans=* | --program-tran=* \
685   | --progr-tra=* | --program-tr=* | --program-t=*)
686     program_transform_name=$ac_optarg ;;
687
688   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
689   | -silent | --silent | --silen | --sile | --sil)
690     silent=yes ;;
691
692   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
693     ac_prev=sbindir ;;
694   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
695   | --sbi=* | --sb=*)
696     sbindir=$ac_optarg ;;
697
698   -sharedstatedir | --sharedstatedir | --sharedstatedi \
699   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
700   | --sharedst | --shareds | --shared | --share | --shar \
701   | --sha | --sh)
702     ac_prev=sharedstatedir ;;
703   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
704   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
705   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
706   | --sha=* | --sh=*)
707     sharedstatedir=$ac_optarg ;;
708
709   -site | --site | --sit)
710     ac_prev=site ;;
711   -site=* | --site=* | --sit=*)
712     site=$ac_optarg ;;
713
714   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
715     ac_prev=srcdir ;;
716   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
717     srcdir=$ac_optarg ;;
718
719   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
720   | --syscon | --sysco | --sysc | --sys | --sy)
721     ac_prev=sysconfdir ;;
722   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
723   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
724     sysconfdir=$ac_optarg ;;
725
726   -target | --target | --targe | --targ | --tar | --ta | --t)
727     ac_prev=target_alias ;;
728   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
729     target_alias=$ac_optarg ;;
730
731   -v | -verbose | --verbose | --verbos | --verbo | --verb)
732     verbose=yes ;;
733
734   -version | --version | --versio | --versi | --vers | -V)
735     ac_init_version=: ;;
736
737   -with-* | --with-*)
738     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
739     # Reject names that are not valid shell variable names.
740     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
741       { echo "$as_me: error: invalid package name: $ac_package" >&2
742    { (exit 1); exit 1; }; }
743     ac_package=`echo $ac_package| sed 's/-/_/g'`
744     case $ac_option in
745       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
746       *) ac_optarg=yes ;;
747     esac
748     eval "with_$ac_package='$ac_optarg'" ;;
749
750   -without-* | --without-*)
751     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
752     # Reject names that are not valid shell variable names.
753     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754       { echo "$as_me: error: invalid package name: $ac_package" >&2
755    { (exit 1); exit 1; }; }
756     ac_package=`echo $ac_package | sed 's/-/_/g'`
757     eval "with_$ac_package=no" ;;
758
759   --x)
760     # Obsolete; use --with-x.
761     with_x=yes ;;
762
763   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
764   | --x-incl | --x-inc | --x-in | --x-i)
765     ac_prev=x_includes ;;
766   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
767   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
768     x_includes=$ac_optarg ;;
769
770   -x-libraries | --x-libraries | --x-librarie | --x-librari \
771   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
772     ac_prev=x_libraries ;;
773   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
774   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
775     x_libraries=$ac_optarg ;;
776
777   -*) { echo "$as_me: error: unrecognized option: $ac_option
778 Try \`$0 --help' for more information." >&2
779    { (exit 1); exit 1; }; }
780     ;;
781
782   *=*)
783     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
784     # Reject names that are not valid shell variable names.
785     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
786       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
787    { (exit 1); exit 1; }; }
788     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
789     eval "$ac_envvar='$ac_optarg'"
790     export $ac_envvar ;;
791
792   *)
793     # FIXME: should be removed in autoconf 3.0.
794     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
795     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
796       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
797     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
798     ;;
799
800   esac
801 done
802
803 if test -n "$ac_prev"; then
804   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
805   { echo "$as_me: error: missing argument to $ac_option" >&2
806    { (exit 1); exit 1; }; }
807 fi
808
809 # Be sure to have absolute paths.
810 for ac_var in exec_prefix prefix
811 do
812   eval ac_val=$`echo $ac_var`
813   case $ac_val in
814     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
815     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
816    { (exit 1); exit 1; }; };;
817   esac
818 done
819
820 # Be sure to have absolute paths.
821 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
822               localstatedir libdir includedir oldincludedir infodir mandir
823 do
824   eval ac_val=$`echo $ac_var`
825   case $ac_val in
826     [\\/$]* | ?:[\\/]* ) ;;
827     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828    { (exit 1); exit 1; }; };;
829   esac
830 done
831
832 # There might be people who depend on the old broken behavior: `$host'
833 # used to hold the argument of --host etc.
834 # FIXME: To remove some day.
835 build=$build_alias
836 host=$host_alias
837 target=$target_alias
838
839 # FIXME: To remove some day.
840 if test "x$host_alias" != x; then
841   if test "x$build_alias" = x; then
842     cross_compiling=maybe
843     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
844     If a cross compiler is detected then cross compile mode will be used." >&2
845   elif test "x$build_alias" != "x$host_alias"; then
846     cross_compiling=yes
847   fi
848 fi
849
850 ac_tool_prefix=
851 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852
853 test "$silent" = yes && exec 6>/dev/null
854
855
856 # Find the source files, if location was not specified.
857 if test -z "$srcdir"; then
858   ac_srcdir_defaulted=yes
859   # Try the directory containing this script, then its parent.
860   ac_confdir=`(dirname "$0") 2>/dev/null ||
861 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
862          X"$0" : 'X\(//\)[^/]' \| \
863          X"$0" : 'X\(//\)$' \| \
864          X"$0" : 'X\(/\)' \| \
865          .     : '\(.\)' 2>/dev/null ||
866 echo X"$0" |
867     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
868           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
869           /^X\(\/\/\)$/{ s//\1/; q; }
870           /^X\(\/\).*/{ s//\1/; q; }
871           s/.*/./; q'`
872   srcdir=$ac_confdir
873   if test ! -r $srcdir/$ac_unique_file; then
874     srcdir=..
875   fi
876 else
877   ac_srcdir_defaulted=no
878 fi
879 if test ! -r $srcdir/$ac_unique_file; then
880   if test "$ac_srcdir_defaulted" = yes; then
881     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
882    { (exit 1); exit 1; }; }
883   else
884     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
885    { (exit 1); exit 1; }; }
886   fi
887 fi
888 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
889   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
890    { (exit 1); exit 1; }; }
891 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
892 ac_env_build_alias_set=${build_alias+set}
893 ac_env_build_alias_value=$build_alias
894 ac_cv_env_build_alias_set=${build_alias+set}
895 ac_cv_env_build_alias_value=$build_alias
896 ac_env_host_alias_set=${host_alias+set}
897 ac_env_host_alias_value=$host_alias
898 ac_cv_env_host_alias_set=${host_alias+set}
899 ac_cv_env_host_alias_value=$host_alias
900 ac_env_target_alias_set=${target_alias+set}
901 ac_env_target_alias_value=$target_alias
902 ac_cv_env_target_alias_set=${target_alias+set}
903 ac_cv_env_target_alias_value=$target_alias
904 ac_env_CPP_set=${CPP+set}
905 ac_env_CPP_value=$CPP
906 ac_cv_env_CPP_set=${CPP+set}
907 ac_cv_env_CPP_value=$CPP
908 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_env_CPPFLAGS_value=$CPPFLAGS
910 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
911 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
912 ac_env_CXX_set=${CXX+set}
913 ac_env_CXX_value=$CXX
914 ac_cv_env_CXX_set=${CXX+set}
915 ac_cv_env_CXX_value=$CXX
916 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
917 ac_env_CXXFLAGS_value=$CXXFLAGS
918 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
919 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CXXCPP_set=${CXXCPP+set}
925 ac_env_CXXCPP_value=$CXXCPP
926 ac_cv_env_CXXCPP_set=${CXXCPP+set}
927 ac_cv_env_CXXCPP_value=$CXXCPP
928
929 #
930 # Report the --help message.
931 #
932 if test "$ac_init_help" = "long"; then
933   # Omit some internal or obsolete options to make the list less imposing.
934   # This message is too long to be a string in the A/UX 3.1 sh.
935   cat <<_ACEOF
936 \`configure' configures libjava version-unused to adapt to many kinds of systems.
937
938 Usage: $0 [OPTION]... [VAR=VALUE]...
939
940 To assign environment variables (e.g., CC, CFLAGS...), specify them as
941 VAR=VALUE.  See below for descriptions of some of the useful variables.
942
943 Defaults for the options are specified in brackets.
944
945 Configuration:
946   -h, --help              display this help and exit
947       --help=short        display options specific to this package
948       --help=recursive    display the short help of all the included packages
949   -V, --version           display version information and exit
950   -q, --quiet, --silent   do not print \`checking...' messages
951       --cache-file=FILE   cache test results in FILE [disabled]
952   -C, --config-cache      alias for \`--cache-file=config.cache'
953   -n, --no-create         do not create output files
954       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
955
956 _ACEOF
957
958   cat <<_ACEOF
959 Installation directories:
960   --prefix=PREFIX         install architecture-independent files in PREFIX
961                           [$ac_default_prefix]
962   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
963                           [PREFIX]
964
965 By default, \`make install' will install all the files in
966 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
967 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
968 for instance \`--prefix=\$HOME'.
969
970 For better control, use the options below.
971
972 Fine tuning of the installation directories:
973   --bindir=DIR           user executables [EPREFIX/bin]
974   --sbindir=DIR          system admin executables [EPREFIX/sbin]
975   --libexecdir=DIR       program executables [EPREFIX/libexec]
976   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
977   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
978   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
979   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
980   --libdir=DIR           object code libraries [EPREFIX/lib]
981   --includedir=DIR       C header files [PREFIX/include]
982   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
983   --infodir=DIR          info documentation [PREFIX/info]
984   --mandir=DIR           man documentation [PREFIX/man]
985 _ACEOF
986
987   cat <<\_ACEOF
988
989 Program names:
990   --program-prefix=PREFIX            prepend PREFIX to installed program names
991   --program-suffix=SUFFIX            append SUFFIX to installed program names
992   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
993
994 X features:
995   --x-includes=DIR    X include files are in DIR
996   --x-libraries=DIR   X library files are in DIR
997
998 System types:
999   --build=BUILD     configure for building on BUILD [guessed]
1000   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1001   --target=TARGET   configure for building compilers for TARGET [HOST]
1002 _ACEOF
1003 fi
1004
1005 if test -n "$ac_init_help"; then
1006   case $ac_init_help in
1007      short | recursive ) echo "Configuration of libjava version-unused:";;
1008    esac
1009   cat <<\_ACEOF
1010
1011 Optional Features:
1012   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1013   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1014   --enable-multilib       build many library versions (default)
1015   --enable-version-specific-runtime-libs
1016                           specify that runtime libraries should be installed
1017                           in a compiler-specific directory
1018   --enable-plugin         build gcjwebplugin web browser plugin
1019   --enable-gconf-peer     compile GConf native peers for util.preferences
1020   --enable-java-maintainer-mode
1021                           allow rebuilding of .class and .h files
1022   --disable-dependency-tracking  speeds up one-time build
1023   --enable-dependency-tracking   do not reject slow dependency extractors
1024   --enable-maintainer-mode  enable make rules and dependencies not useful
1025                           (and sometimes confusing) to the casual installer
1026   --enable-libgcj-debug   enable runtime debugging code
1027   --enable-java-awt       list of AWT peer implementations to be built
1028   --enable-shared[=PKGS]
1029                           build shared libraries [default=yes]
1030   --enable-static[=PKGS]
1031                           build static libraries [default=yes]
1032   --enable-fast-install[=PKGS]
1033                           optimize for fast installation [default=yes]
1034   --disable-libtool-lock  avoid locking (might break parallel builds)
1035   --disable-getenv-properties
1036                           don't set system properties from GCJ_PROPERTIES
1037   --enable-hash-synchronization
1038                           use global hash table for monitor locks
1039   --enable-libgcj-bc      enable(default) or disable BC ABI for portions of
1040                           libgcj
1041   --enable-gc-debug       include full support for pointer backtracing etc.
1042   --enable-interpreter    enable interpreter
1043   --enable-sjlj-exceptions
1044                           force use of builtin_setjmp for exceptions
1045   --disable-java-net      disable java.net
1046   --disable-jvmpi         disable JVMPI support
1047   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
1048   --disable-rpath         do not hardcode runtime library paths
1049   --enable-tls            Use thread-local storage [default=yes]
1050
1051 Optional Packages:
1052   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1053   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1054   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1055   --with-target-subdir=SUBDIR
1056                           configure in a subdirectory
1057   --with-cross-host=HOST  configure with a cross compiler from HOST
1058   --with-newlib           configure with newlib
1059   --with-escher=ABS.PATH  specify path to escher dir or JAR for X peers
1060   --with-pic              try to use only PIC/non-PIC objects [default=use
1061                           both]
1062   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1063   --with-ecj-jar=FILE     use preinstalled ecj jar
1064   --with-java-home=DIRECTORY
1065                           value of java.home system property
1066   --with-win32-nlsapi=ansi or unicows or unicode
1067                           native MinGW libgcj Win32 OS API (default is ansi)
1068   --without-libffi        don't use libffi
1069   --with-ecos             enable runtime eCos target support
1070   --with-system-zlib      use installed libz
1071   --with-x                use the X Window System
1072   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1073   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1074   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1075
1076 Some influential environment variables:
1077   CC          C compiler command
1078   CFLAGS      C compiler flags
1079   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1080               nonstandard directory <lib dir>
1081   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1082               headers in a nonstandard directory <include dir>
1083   CXX         C++ compiler command
1084   CXXFLAGS    C++ compiler flags
1085   CPP         C preprocessor
1086   CXXCPP      C++ preprocessor
1087
1088 Use these variables to override the choices made by `configure' or to help
1089 it to find libraries and programs with nonstandard names/locations.
1090
1091 _ACEOF
1092 fi
1093
1094 if test "$ac_init_help" = "recursive"; then
1095   # If there are subdirs, report their specific --help.
1096   ac_popdir=`pwd`
1097   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1098     test -d $ac_dir || continue
1099     ac_builddir=.
1100
1101 if test "$ac_dir" != .; then
1102   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1103   # A "../" for each directory in $ac_dir_suffix.
1104   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1105 else
1106   ac_dir_suffix= ac_top_builddir=
1107 fi
1108
1109 case $srcdir in
1110   .)  # No --srcdir option.  We are building in place.
1111     ac_srcdir=.
1112     if test -z "$ac_top_builddir"; then
1113        ac_top_srcdir=.
1114     else
1115        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1116     fi ;;
1117   [\\/]* | ?:[\\/]* )  # Absolute path.
1118     ac_srcdir=$srcdir$ac_dir_suffix;
1119     ac_top_srcdir=$srcdir ;;
1120   *) # Relative path.
1121     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1122     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1123 esac
1124
1125 # Do not use `cd foo && pwd` to compute absolute paths, because
1126 # the directories may not exist.
1127 case `pwd` in
1128 .) ac_abs_builddir="$ac_dir";;
1129 *)
1130   case "$ac_dir" in
1131   .) ac_abs_builddir=`pwd`;;
1132   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1133   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1134   esac;;
1135 esac
1136 case $ac_abs_builddir in
1137 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1138 *)
1139   case ${ac_top_builddir}. in
1140   .) ac_abs_top_builddir=$ac_abs_builddir;;
1141   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1142   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1143   esac;;
1144 esac
1145 case $ac_abs_builddir in
1146 .) ac_abs_srcdir=$ac_srcdir;;
1147 *)
1148   case $ac_srcdir in
1149   .) ac_abs_srcdir=$ac_abs_builddir;;
1150   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1151   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1152   esac;;
1153 esac
1154 case $ac_abs_builddir in
1155 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1156 *)
1157   case $ac_top_srcdir in
1158   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1159   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1160   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1161   esac;;
1162 esac
1163
1164     cd $ac_dir
1165     # Check for guested configure; otherwise get Cygnus style configure.
1166     if test -f $ac_srcdir/configure.gnu; then
1167       echo
1168       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1169     elif test -f $ac_srcdir/configure; then
1170       echo
1171       $SHELL $ac_srcdir/configure  --help=recursive
1172     elif test -f $ac_srcdir/configure.ac ||
1173            test -f $ac_srcdir/configure.in; then
1174       echo
1175       $ac_configure --help
1176     else
1177       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1178     fi
1179     cd $ac_popdir
1180   done
1181 fi
1182
1183 test -n "$ac_init_help" && exit 0
1184 if $ac_init_version; then
1185   cat <<\_ACEOF
1186 libjava configure version-unused
1187 generated by GNU Autoconf 2.59
1188
1189 Copyright (C) 2003 Free Software Foundation, Inc.
1190 This configure script is free software; the Free Software Foundation
1191 gives unlimited permission to copy, distribute and modify it.
1192 _ACEOF
1193   exit 0
1194 fi
1195 exec 5>config.log
1196 cat >&5 <<_ACEOF
1197 This file contains any messages produced by compilers while
1198 running configure, to aid debugging if configure makes a mistake.
1199
1200 It was created by libjava $as_me version-unused, which was
1201 generated by GNU Autoconf 2.59.  Invocation command line was
1202
1203   $ $0 $@
1204
1205 _ACEOF
1206 {
1207 cat <<_ASUNAME
1208 ## --------- ##
1209 ## Platform. ##
1210 ## --------- ##
1211
1212 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1213 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1214 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1215 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1216 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1217
1218 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1219 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1220
1221 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1222 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1223 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1224 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1225 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1226 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1227 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1228
1229 _ASUNAME
1230
1231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1232 for as_dir in $PATH
1233 do
1234   IFS=$as_save_IFS
1235   test -z "$as_dir" && as_dir=.
1236   echo "PATH: $as_dir"
1237 done
1238
1239 } >&5
1240
1241 cat >&5 <<_ACEOF
1242
1243
1244 ## ----------- ##
1245 ## Core tests. ##
1246 ## ----------- ##
1247
1248 _ACEOF
1249
1250
1251 # Keep a trace of the command line.
1252 # Strip out --no-create and --no-recursion so they do not pile up.
1253 # Strip out --silent because we don't want to record it for future runs.
1254 # Also quote any args containing shell meta-characters.
1255 # Make two passes to allow for proper duplicate-argument suppression.
1256 ac_configure_args=
1257 ac_configure_args0=
1258 ac_configure_args1=
1259 ac_sep=
1260 ac_must_keep_next=false
1261 for ac_pass in 1 2
1262 do
1263   for ac_arg
1264   do
1265     case $ac_arg in
1266     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1267     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1268     | -silent | --silent | --silen | --sile | --sil)
1269       continue ;;
1270     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1271       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1272     esac
1273     case $ac_pass in
1274     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1275     2)
1276       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1277       if test $ac_must_keep_next = true; then
1278         ac_must_keep_next=false # Got value, back to normal.
1279       else
1280         case $ac_arg in
1281           *=* | --config-cache | -C | -disable-* | --disable-* \
1282           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1283           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1284           | -with-* | --with-* | -without-* | --without-* | --x)
1285             case "$ac_configure_args0 " in
1286               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1287             esac
1288             ;;
1289           -* ) ac_must_keep_next=true ;;
1290         esac
1291       fi
1292       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1293       # Get rid of the leading space.
1294       ac_sep=" "
1295       ;;
1296     esac
1297   done
1298 done
1299 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1300 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1301
1302 # When interrupted or exit'd, cleanup temporary files, and complete
1303 # config.log.  We remove comments because anyway the quotes in there
1304 # would cause problems or look ugly.
1305 # WARNING: Be sure not to use single quotes in there, as some shells,
1306 # such as our DU 5.0 friend, will then `close' the trap.
1307 trap 'exit_status=$?
1308   # Save into config.log some information that might help in debugging.
1309   {
1310     echo
1311
1312     cat <<\_ASBOX
1313 ## ---------------- ##
1314 ## Cache variables. ##
1315 ## ---------------- ##
1316 _ASBOX
1317     echo
1318     # The following way of writing the cache mishandles newlines in values,
1319 {
1320   (set) 2>&1 |
1321     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1322     *ac_space=\ *)
1323       sed -n \
1324         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1325           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1326       ;;
1327     *)
1328       sed -n \
1329         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1330       ;;
1331     esac;
1332 }
1333     echo
1334
1335     cat <<\_ASBOX
1336 ## ----------------- ##
1337 ## Output variables. ##
1338 ## ----------------- ##
1339 _ASBOX
1340     echo
1341     for ac_var in $ac_subst_vars
1342     do
1343       eval ac_val=$`echo $ac_var`
1344       echo "$ac_var='"'"'$ac_val'"'"'"
1345     done | sort
1346     echo
1347
1348     if test -n "$ac_subst_files"; then
1349       cat <<\_ASBOX
1350 ## ------------- ##
1351 ## Output files. ##
1352 ## ------------- ##
1353 _ASBOX
1354       echo
1355       for ac_var in $ac_subst_files
1356       do
1357         eval ac_val=$`echo $ac_var`
1358         echo "$ac_var='"'"'$ac_val'"'"'"
1359       done | sort
1360       echo
1361     fi
1362
1363     if test -s confdefs.h; then
1364       cat <<\_ASBOX
1365 ## ----------- ##
1366 ## confdefs.h. ##
1367 ## ----------- ##
1368 _ASBOX
1369       echo
1370       sed "/^$/d" confdefs.h | sort
1371       echo
1372     fi
1373     test "$ac_signal" != 0 &&
1374       echo "$as_me: caught signal $ac_signal"
1375     echo "$as_me: exit $exit_status"
1376   } >&5
1377   rm -f core *.core &&
1378   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1379     exit $exit_status
1380      ' 0
1381 for ac_signal in 1 2 13 15; do
1382   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1383 done
1384 ac_signal=0
1385
1386 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1387 rm -rf conftest* confdefs.h
1388 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1389 echo >confdefs.h
1390
1391 # Predefined preprocessor variables.
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_NAME "$PACKAGE_NAME"
1395 _ACEOF
1396
1397
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1400 _ACEOF
1401
1402
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1405 _ACEOF
1406
1407
1408 cat >>confdefs.h <<_ACEOF
1409 #define PACKAGE_STRING "$PACKAGE_STRING"
1410 _ACEOF
1411
1412
1413 cat >>confdefs.h <<_ACEOF
1414 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1415 _ACEOF
1416
1417
1418 # Let the site file select an alternate cache file if it wants to.
1419 # Prefer explicitly selected file to automatically selected ones.
1420 if test -z "$CONFIG_SITE"; then
1421   if test "x$prefix" != xNONE; then
1422     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1423   else
1424     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1425   fi
1426 fi
1427 for ac_site_file in $CONFIG_SITE; do
1428   if test -r "$ac_site_file"; then
1429     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1430 echo "$as_me: loading site script $ac_site_file" >&6;}
1431     sed 's/^/| /' "$ac_site_file" >&5
1432     . "$ac_site_file"
1433   fi
1434 done
1435
1436 if test -r "$cache_file"; then
1437   # Some versions of bash will fail to source /dev/null (special
1438   # files actually), so we avoid doing that.
1439   if test -f "$cache_file"; then
1440     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1441 echo "$as_me: loading cache $cache_file" >&6;}
1442     case $cache_file in
1443       [\\/]* | ?:[\\/]* ) . $cache_file;;
1444       *)                      . ./$cache_file;;
1445     esac
1446   fi
1447 else
1448   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1449 echo "$as_me: creating cache $cache_file" >&6;}
1450   >$cache_file
1451 fi
1452
1453 # Check that the precious variables saved in the cache have kept the same
1454 # value.
1455 ac_cache_corrupted=false
1456 for ac_var in `(set) 2>&1 |
1457                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1458   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1459   eval ac_new_set=\$ac_env_${ac_var}_set
1460   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1461   eval ac_new_val="\$ac_env_${ac_var}_value"
1462   case $ac_old_set,$ac_new_set in
1463     set,)
1464       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1465 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1466       ac_cache_corrupted=: ;;
1467     ,set)
1468       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1469 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1470       ac_cache_corrupted=: ;;
1471     ,);;
1472     *)
1473       if test "x$ac_old_val" != "x$ac_new_val"; then
1474         # differences in whitespace do not lead to failure.
1475         ac_old_val_w=`echo x $ac_old_val`
1476         ac_new_val_w=`echo x $ac_new_val`
1477         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1478           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1479 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1480           ac_cache_corrupted=:
1481         else
1482           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1483 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1484           eval $ac_var=\$ac_old_val
1485         fi
1486         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1487 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1488         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1489 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1490       fi;;
1491   esac
1492   # Pass precious variables to config.status.
1493   if test "$ac_new_set" = set; then
1494     case $ac_new_val in
1495     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1496       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1497     *) ac_arg=$ac_var=$ac_new_val ;;
1498     esac
1499     case " $ac_configure_args " in
1500       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1501       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1502     esac
1503   fi
1504 done
1505 if $ac_cache_corrupted; then
1506   { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1507 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1508   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1509 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1510   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1511 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1512    { (exit 1); exit 1; }; }
1513 fi
1514
1515 ac_ext=c
1516 ac_cpp='$CPP $CPPFLAGS'
1517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553 ac_aux_dir=
1554 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1555   if test -f $ac_dir/install-sh; then
1556     ac_aux_dir=$ac_dir
1557     ac_install_sh="$ac_aux_dir/install-sh -c"
1558     break
1559   elif test -f $ac_dir/install.sh; then
1560     ac_aux_dir=$ac_dir
1561     ac_install_sh="$ac_aux_dir/install.sh -c"
1562     break
1563   elif test -f $ac_dir/shtool; then
1564     ac_aux_dir=$ac_dir
1565     ac_install_sh="$ac_aux_dir/shtool install -c"
1566     break
1567   fi
1568 done
1569 if test -z "$ac_aux_dir"; then
1570   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1571 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1572    { (exit 1); exit 1; }; }
1573 fi
1574 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1575 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1576 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1577
1578 # Make sure we can run config.sub.
1579 $ac_config_sub sun4 >/dev/null 2>&1 ||
1580   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1581 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1582    { (exit 1); exit 1; }; }
1583
1584 echo "$as_me:$LINENO: checking build system type" >&5
1585 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1586 if test "${ac_cv_build+set}" = set; then
1587   echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589   ac_cv_build_alias=$build_alias
1590 test -z "$ac_cv_build_alias" &&
1591   ac_cv_build_alias=`$ac_config_guess`
1592 test -z "$ac_cv_build_alias" &&
1593   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1594 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1595    { (exit 1); exit 1; }; }
1596 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1597   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1598 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1599    { (exit 1); exit 1; }; }
1600
1601 fi
1602 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1603 echo "${ECHO_T}$ac_cv_build" >&6
1604 build=$ac_cv_build
1605 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1606 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1607 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1608
1609
1610  case ${build_alias} in
1611   "") build_noncanonical=${build} ;;
1612   *) build_noncanonical=${build_alias} ;;
1613 esac
1614
1615  case ${host_alias} in
1616   "") host_noncanonical=${build_noncanonical} ;;
1617   *) host_noncanonical=${host_alias} ;;
1618 esac
1619
1620  case ${target_alias} in
1621   "") target_noncanonical=${host_noncanonical} ;;
1622   *) target_noncanonical=${target_alias} ;;
1623 esac
1624
1625
1626 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1627 # have matching libraries, they should use host libraries: Makefile.tpl
1628 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1629 # However, they still use the build modules, because the corresponding
1630 # host modules (e.g. bison) are only built for the host when bootstrap
1631 # finishes. So:
1632 # - build_subdir is where we find build modules, and never changes.
1633 # - build_libsubdir is where we find build libraries, and can be overridden.
1634
1635 # Prefix 'build-' so this never conflicts with target_subdir.
1636 build_subdir="build-${build_noncanonical}"
1637
1638 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1639 if test "${with_build_libsubdir+set}" = set; then
1640   withval="$with_build_libsubdir"
1641   build_libsubdir="$withval"
1642 else
1643   build_libsubdir="$build_subdir"
1644 fi;
1645 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1646 if ( test $srcdir = . && test -d gcc ) \
1647    || test -d $srcdir/../host-${host_noncanonical}; then
1648   host_subdir="host-${host_noncanonical}"
1649 else
1650   host_subdir=.
1651 fi
1652 # No prefix.
1653 target_subdir=${target_noncanonical}
1654
1655
1656 # We use these options to decide which functions to include.
1657
1658 # Check whether --with-target-subdir or --without-target-subdir was given.
1659 if test "${with_target_subdir+set}" = set; then
1660   withval="$with_target_subdir"
1661
1662 fi;
1663
1664 # We may get other options which we don't document:
1665 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1666
1667 # Find the rest of the source tree framework.
1668 # Default to --enable-multilib
1669 # Check whether --enable-multilib or --disable-multilib was given.
1670 if test "${enable_multilib+set}" = set; then
1671   enableval="$enable_multilib"
1672   case "$enableval" in
1673   yes) multilib=yes ;;
1674   no)  multilib=no ;;
1675   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1676 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1677    { (exit 1); exit 1; }; } ;;
1678  esac
1679 else
1680   multilib=yes
1681 fi;
1682
1683 # We may get other options which we leave undocumented:
1684 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1685 # See config-ml.in if you want the gory details.
1686
1687 if test "$srcdir" = "."; then
1688   if test "$with_target_subdir" != "."; then
1689     multi_basedir="$srcdir/$with_multisrctop../.."
1690   else
1691     multi_basedir="$srcdir/$with_multisrctop.."
1692   fi
1693 else
1694   multi_basedir="$srcdir/.."
1695 fi
1696
1697
1698 # Even if the default multilib is not a cross compilation,
1699 # it may be that some of the other multilibs are.
1700 if test $cross_compiling = no && test $multilib = yes \
1701    && test "x${with_multisubdir}" != x ; then
1702    cross_compiling=maybe
1703 fi
1704
1705           ac_config_commands="$ac_config_commands default-1"
1706
1707
1708 echo "$as_me:$LINENO: checking host system type" >&5
1709 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1710 if test "${ac_cv_host+set}" = set; then
1711   echo $ECHO_N "(cached) $ECHO_C" >&6
1712 else
1713   ac_cv_host_alias=$host_alias
1714 test -z "$ac_cv_host_alias" &&
1715   ac_cv_host_alias=$ac_cv_build_alias
1716 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1717   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1718 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1719    { (exit 1); exit 1; }; }
1720
1721 fi
1722 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1723 echo "${ECHO_T}$ac_cv_host" >&6
1724 host=$ac_cv_host
1725 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1726 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1727 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1728
1729
1730 echo "$as_me:$LINENO: checking target system type" >&5
1731 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1732 if test "${ac_cv_target+set}" = set; then
1733   echo $ECHO_N "(cached) $ECHO_C" >&6
1734 else
1735   ac_cv_target_alias=$target_alias
1736 test "x$ac_cv_target_alias" = "x" &&
1737   ac_cv_target_alias=$ac_cv_host_alias
1738 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1739   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1740 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1741    { (exit 1); exit 1; }; }
1742
1743 fi
1744 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1745 echo "${ECHO_T}$ac_cv_target" >&6
1746 target=$ac_cv_target
1747 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1748 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1749 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1750
1751
1752 # The aliases save the names the user supplied, while $host etc.
1753 # will get canonicalized.
1754 test -n "$target_alias" &&
1755   test "$program_prefix$program_suffix$program_transform_name" = \
1756     NONENONEs,x,x, &&
1757   program_prefix=${target_alias}-
1758  case ${build_alias} in
1759   "") build_noncanonical=${build} ;;
1760   *) build_noncanonical=${build_alias} ;;
1761 esac
1762
1763  case ${target_alias} in
1764   "") target_noncanonical=${host_noncanonical} ;;
1765   *) target_noncanonical=${target_alias} ;;
1766 esac
1767
1768
1769
1770
1771 # This works around the fact that libtool configuration may change LD
1772 # for this particular configuration, but some shells, instead of
1773 # keeping the changes in LD private, export them just because LD is
1774 # exported.
1775 ORIGINAL_LD_FOR_MULTILIBS=$LD
1776
1777 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1778 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1779 LN_S=$as_ln_s
1780 if test "$LN_S" = "ln -s"; then
1781   echo "$as_me:$LINENO: result: yes" >&5
1782 echo "${ECHO_T}yes" >&6
1783 else
1784   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1785 echo "${ECHO_T}no, using $LN_S" >&6
1786 fi
1787
1788
1789 # This works around an automake problem.
1790 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1791
1792
1793
1794 # Check whether --with-cross-host or --without-cross-host was given.
1795 if test "${with_cross_host+set}" = set; then
1796   withval="$with_cross_host"
1797
1798 fi;
1799
1800
1801 # Check whether --with-newlib or --without-newlib was given.
1802 if test "${with_newlib+set}" = set; then
1803   withval="$with_newlib"
1804
1805 fi;
1806
1807 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1808 if test "${enable_version_specific_runtime_libs+set}" = set; then
1809   enableval="$enable_version_specific_runtime_libs"
1810   case "$enableval" in
1811       yes) version_specific_libs=yes ;;
1812       no)  version_specific_libs=no ;;
1813       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1814 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1815    { (exit 1); exit 1; }; };;
1816      esac
1817 else
1818   version_specific_libs=no
1819
1820 fi;
1821
1822 # Check whether --enable-plugin or --disable-plugin was given.
1823 if test "${enable_plugin+set}" = set; then
1824   enableval="$enable_plugin"
1825   case "$enableval" in
1826       yes) plugin_enabled=yes ;;
1827       no)  plugin_enabled=no ;;
1828       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1829 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1830    { (exit 1); exit 1; }; };;
1831      esac
1832 else
1833   plugin_enabled=no
1834
1835 fi;
1836
1837 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1838 if test "${enable_gconf_peer+set}" = set; then
1839   enableval="$enable_gconf_peer"
1840   case "$enableval" in
1841       yes) gconf_enabled=yes ;;
1842       no)  gconf_enabled=no ;;
1843       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1844 echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1845    { (exit 1); exit 1; }; };;
1846      esac
1847 else
1848   gconf_enabled=no
1849
1850 fi;
1851
1852 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1853 if test "${enable_java_maintainer_mode+set}" = set; then
1854   enableval="$enable_java_maintainer_mode"
1855
1856 fi;
1857
1858
1859 if test "$enable_java_maintainer_mode" = yes; then
1860   JAVA_MAINTAINER_MODE_TRUE=
1861   JAVA_MAINTAINER_MODE_FALSE='#'
1862 else
1863   JAVA_MAINTAINER_MODE_TRUE='#'
1864   JAVA_MAINTAINER_MODE_FALSE=
1865 fi
1866
1867
1868 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1869
1870
1871 # (1) We use an abnormal CXX (without library references), so we
1872 # must cache it under a different name.
1873 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1874 # the non-multilib-adjusted value will be used in multilibs.
1875 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1876 # (4) As another side effect, automake doesn't automatically include them
1877 # in Makefile.in.
1878 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1879 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1880 # used in later tests.  This may not be necessary in libjava; I don't know.
1881
1882
1883 save_CXXFLAGS="$CXXFLAGS"
1884 CXXFLAGS="$CXXFLAGS -fno-builtin"
1885 ac_ext=c
1886 ac_cpp='$CPP $CPPFLAGS'
1887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1890 if test -n "$ac_tool_prefix"; then
1891   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1892 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1893 echo "$as_me:$LINENO: checking for $ac_word" >&5
1894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1895 if test "${ac_cv_prog_CC+set}" = set; then
1896   echo $ECHO_N "(cached) $ECHO_C" >&6
1897 else
1898   if test -n "$CC"; then
1899   ac_cv_prog_CC="$CC" # Let the user override the test.
1900 else
1901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902 for as_dir in $PATH
1903 do
1904   IFS=$as_save_IFS
1905   test -z "$as_dir" && as_dir=.
1906   for ac_exec_ext in '' $ac_executable_extensions; do
1907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1910     break 2
1911   fi
1912 done
1913 done
1914
1915 fi
1916 fi
1917 CC=$ac_cv_prog_CC
1918 if test -n "$CC"; then
1919   echo "$as_me:$LINENO: result: $CC" >&5
1920 echo "${ECHO_T}$CC" >&6
1921 else
1922   echo "$as_me:$LINENO: result: no" >&5
1923 echo "${ECHO_T}no" >&6
1924 fi
1925
1926 fi
1927 if test -z "$ac_cv_prog_CC"; then
1928   ac_ct_CC=$CC
1929   # Extract the first word of "gcc", so it can be a program name with args.
1930 set dummy gcc; ac_word=$2
1931 echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1934   echo $ECHO_N "(cached) $ECHO_C" >&6
1935 else
1936   if test -n "$ac_ct_CC"; then
1937   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1938 else
1939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940 for as_dir in $PATH
1941 do
1942   IFS=$as_save_IFS
1943   test -z "$as_dir" && as_dir=.
1944   for ac_exec_ext in '' $ac_executable_extensions; do
1945   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1946     ac_cv_prog_ac_ct_CC="gcc"
1947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1948     break 2
1949   fi
1950 done
1951 done
1952
1953 fi
1954 fi
1955 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1956 if test -n "$ac_ct_CC"; then
1957   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1958 echo "${ECHO_T}$ac_ct_CC" >&6
1959 else
1960   echo "$as_me:$LINENO: result: no" >&5
1961 echo "${ECHO_T}no" >&6
1962 fi
1963
1964   CC=$ac_ct_CC
1965 else
1966   CC="$ac_cv_prog_CC"
1967 fi
1968
1969 if test -z "$CC"; then
1970   if test -n "$ac_tool_prefix"; then
1971   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1972 set dummy ${ac_tool_prefix}cc; ac_word=$2
1973 echo "$as_me:$LINENO: checking for $ac_word" >&5
1974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1975 if test "${ac_cv_prog_CC+set}" = set; then
1976   echo $ECHO_N "(cached) $ECHO_C" >&6
1977 else
1978   if test -n "$CC"; then
1979   ac_cv_prog_CC="$CC" # Let the user override the test.
1980 else
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 for as_dir in $PATH
1983 do
1984   IFS=$as_save_IFS
1985   test -z "$as_dir" && as_dir=.
1986   for ac_exec_ext in '' $ac_executable_extensions; do
1987   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1988     ac_cv_prog_CC="${ac_tool_prefix}cc"
1989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990     break 2
1991   fi
1992 done
1993 done
1994
1995 fi
1996 fi
1997 CC=$ac_cv_prog_CC
1998 if test -n "$CC"; then
1999   echo "$as_me:$LINENO: result: $CC" >&5
2000 echo "${ECHO_T}$CC" >&6
2001 else
2002   echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6
2004 fi
2005
2006 fi
2007 if test -z "$ac_cv_prog_CC"; then
2008   ac_ct_CC=$CC
2009   # Extract the first word of "cc", so it can be a program name with args.
2010 set dummy cc; ac_word=$2
2011 echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2013 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2014   echo $ECHO_N "(cached) $ECHO_C" >&6
2015 else
2016   if test -n "$ac_ct_CC"; then
2017   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2018 else
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2021 do
2022   IFS=$as_save_IFS
2023   test -z "$as_dir" && as_dir=.
2024   for ac_exec_ext in '' $ac_executable_extensions; do
2025   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026     ac_cv_prog_ac_ct_CC="cc"
2027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028     break 2
2029   fi
2030 done
2031 done
2032
2033 fi
2034 fi
2035 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2036 if test -n "$ac_ct_CC"; then
2037   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2038 echo "${ECHO_T}$ac_ct_CC" >&6
2039 else
2040   echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6
2042 fi
2043
2044   CC=$ac_ct_CC
2045 else
2046   CC="$ac_cv_prog_CC"
2047 fi
2048
2049 fi
2050 if test -z "$CC"; then
2051   # Extract the first word of "cc", so it can be a program name with args.
2052 set dummy cc; ac_word=$2
2053 echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055 if test "${ac_cv_prog_CC+set}" = set; then
2056   echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058   if test -n "$CC"; then
2059   ac_cv_prog_CC="$CC" # Let the user override the test.
2060 else
2061   ac_prog_rejected=no
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065   IFS=$as_save_IFS
2066   test -z "$as_dir" && as_dir=.
2067   for ac_exec_ext in '' $ac_executable_extensions; do
2068   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2069     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2070        ac_prog_rejected=yes
2071        continue
2072      fi
2073     ac_cv_prog_CC="cc"
2074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075     break 2
2076   fi
2077 done
2078 done
2079
2080 if test $ac_prog_rejected = yes; then
2081   # We found a bogon in the path, so make sure we never use it.
2082   set dummy $ac_cv_prog_CC
2083   shift
2084   if test $# != 0; then
2085     # We chose a different compiler from the bogus one.
2086     # However, it has the same basename, so the bogon will be chosen
2087     # first if we set CC to just the basename; use the full file name.
2088     shift
2089     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2090   fi
2091 fi
2092 fi
2093 fi
2094 CC=$ac_cv_prog_CC
2095 if test -n "$CC"; then
2096   echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6
2098 else
2099   echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6
2101 fi
2102
2103 fi
2104 if test -z "$CC"; then
2105   if test -n "$ac_tool_prefix"; then
2106   for ac_prog in cl
2107   do
2108     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2109 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2110 echo "$as_me:$LINENO: checking for $ac_word" >&5
2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2112 if test "${ac_cv_prog_CC+set}" = set; then
2113   echo $ECHO_N "(cached) $ECHO_C" >&6
2114 else
2115   if test -n "$CC"; then
2116   ac_cv_prog_CC="$CC" # Let the user override the test.
2117 else
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119 for as_dir in $PATH
2120 do
2121   IFS=$as_save_IFS
2122   test -z "$as_dir" && as_dir=.
2123   for ac_exec_ext in '' $ac_executable_extensions; do
2124   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2125     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2127     break 2
2128   fi
2129 done
2130 done
2131
2132 fi
2133 fi
2134 CC=$ac_cv_prog_CC
2135 if test -n "$CC"; then
2136   echo "$as_me:$LINENO: result: $CC" >&5
2137 echo "${ECHO_T}$CC" >&6
2138 else
2139   echo "$as_me:$LINENO: result: no" >&5
2140 echo "${ECHO_T}no" >&6
2141 fi
2142
2143     test -n "$CC" && break
2144   done
2145 fi
2146 if test -z "$CC"; then
2147   ac_ct_CC=$CC
2148   for ac_prog in cl
2149 do
2150   # Extract the first word of "$ac_prog", so it can be a program name with args.
2151 set dummy $ac_prog; ac_word=$2
2152 echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2154 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2155   echo $ECHO_N "(cached) $ECHO_C" >&6
2156 else
2157   if test -n "$ac_ct_CC"; then
2158   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2159 else
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 for as_dir in $PATH
2162 do
2163   IFS=$as_save_IFS
2164   test -z "$as_dir" && as_dir=.
2165   for ac_exec_ext in '' $ac_executable_extensions; do
2166   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2167     ac_cv_prog_ac_ct_CC="$ac_prog"
2168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2169     break 2
2170   fi
2171 done
2172 done
2173
2174 fi
2175 fi
2176 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2177 if test -n "$ac_ct_CC"; then
2178   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2179 echo "${ECHO_T}$ac_ct_CC" >&6
2180 else
2181   echo "$as_me:$LINENO: result: no" >&5
2182 echo "${ECHO_T}no" >&6
2183 fi
2184
2185   test -n "$ac_ct_CC" && break
2186 done
2187
2188   CC=$ac_ct_CC
2189 fi
2190
2191 fi
2192
2193
2194 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2195 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2196 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2197 See \`config.log' for more details." >&5
2198 echo "$as_me: error: no acceptable C compiler found in \$PATH
2199 See \`config.log' for more details." >&2;}
2200    { (exit 1); exit 1; }; }; }
2201
2202 # Provide some information about the compiler.
2203 echo "$as_me:$LINENO:" \
2204      "checking for C compiler version" >&5
2205 ac_compiler=`set X $ac_compile; echo $2`
2206 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2207   (eval $ac_compiler --version </dev/null >&5) 2>&5
2208   ac_status=$?
2209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210   (exit $ac_status); }
2211 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2212   (eval $ac_compiler -v </dev/null >&5) 2>&5
2213   ac_status=$?
2214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215   (exit $ac_status); }
2216 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2217   (eval $ac_compiler -V </dev/null >&5) 2>&5
2218   ac_status=$?
2219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220   (exit $ac_status); }
2221
2222 cat >conftest.$ac_ext <<_ACEOF
2223 /* confdefs.h.  */
2224 _ACEOF
2225 cat confdefs.h >>conftest.$ac_ext
2226 cat >>conftest.$ac_ext <<_ACEOF
2227 /* end confdefs.h.  */
2228
2229 int
2230 main ()
2231 {
2232
2233   ;
2234   return 0;
2235 }
2236 _ACEOF
2237 # FIXME: Cleanup?
2238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2239   (eval $ac_link) 2>&5
2240   ac_status=$?
2241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242   (exit $ac_status); }; then
2243   gcc_no_link=no
2244 else
2245   gcc_no_link=yes
2246 fi
2247
2248 if test x$gcc_no_link = xyes; then
2249   # Setting cross_compile will disable run tests; it will
2250   # also disable AC_CHECK_FILE but that's generally
2251   # correct if we can't link.
2252   cross_compiling=yes
2253   EXEEXT=
2254 else
2255   cat >conftest.$ac_ext <<_ACEOF
2256 /* confdefs.h.  */
2257 _ACEOF
2258 cat confdefs.h >>conftest.$ac_ext
2259 cat >>conftest.$ac_ext <<_ACEOF
2260 /* end confdefs.h.  */
2261
2262 int
2263 main ()
2264 {
2265
2266   ;
2267   return 0;
2268 }
2269 _ACEOF
2270 ac_clean_files_save=$ac_clean_files
2271 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2272 # Try to create an executable without -o first, disregard a.out.
2273 # It will help us diagnose broken compilers, and finding out an intuition
2274 # of exeext.
2275 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2276 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2277 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2278 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2279   (eval $ac_link_default) 2>&5
2280   ac_status=$?
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); }; then
2283   # Find the output, starting from the most likely.  This scheme is
2284 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2285 # resort.
2286
2287 # Be careful to initialize this variable, since it used to be cached.
2288 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2289 ac_cv_exeext=
2290 # b.out is created by i960 compilers.
2291 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2292 do
2293   test -f "$ac_file" || continue
2294   case $ac_file in
2295     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2296         ;;
2297     conftest.$ac_ext )
2298         # This is the source file.
2299         ;;
2300     [ab].out )
2301         # We found the default executable, but exeext='' is most
2302         # certainly right.
2303         break;;
2304     *.* )
2305         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2306         # FIXME: I believe we export ac_cv_exeext for Libtool,
2307         # but it would be cool to find out if it's true.  Does anybody
2308         # maintain Libtool? --akim.
2309         export ac_cv_exeext
2310         break;;
2311     * )
2312         break;;
2313   esac
2314 done
2315 else
2316   echo "$as_me: failed program was:" >&5
2317 sed 's/^/| /' conftest.$ac_ext >&5
2318
2319 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2320 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2322 See \`config.log' for more details." >&5
2323 echo "$as_me: error: C compiler cannot create executables
2324 See \`config.log' for more details." >&2;}
2325    { (exit 77); exit 77; }; }; }
2326 fi
2327
2328 ac_exeext=$ac_cv_exeext
2329 echo "$as_me:$LINENO: result: $ac_file" >&5
2330 echo "${ECHO_T}$ac_file" >&6
2331
2332 # Check the compiler produces executables we can run.  If not, either
2333 # the compiler is broken, or we cross compile.
2334 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2335 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2336 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2337 # If not cross compiling, check that we can run a simple program.
2338 if test "$cross_compiling" != yes; then
2339   if { ac_try='./$ac_file'
2340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341   (eval $ac_try) 2>&5
2342   ac_status=$?
2343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344   (exit $ac_status); }; }; then
2345     cross_compiling=no
2346   else
2347     if test "$cross_compiling" = maybe; then
2348         cross_compiling=yes
2349     else
2350         { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2351 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2352 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2353 If you meant to cross compile, use \`--host'.
2354 See \`config.log' for more details." >&5
2355 echo "$as_me: error: cannot run C compiled programs.
2356 If you meant to cross compile, use \`--host'.
2357 See \`config.log' for more details." >&2;}
2358    { (exit 1); exit 1; }; }; }
2359     fi
2360   fi
2361 fi
2362 echo "$as_me:$LINENO: result: yes" >&5
2363 echo "${ECHO_T}yes" >&6
2364
2365 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2366 ac_clean_files=$ac_clean_files_save
2367 # Check the compiler produces executables we can run.  If not, either
2368 # the compiler is broken, or we cross compile.
2369 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2370 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2371 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2372 echo "${ECHO_T}$cross_compiling" >&6
2373
2374 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2375 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2377   (eval $ac_link) 2>&5
2378   ac_status=$?
2379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380   (exit $ac_status); }; then
2381   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2382 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2383 # work properly (i.e., refer to `conftest.exe'), while it won't with
2384 # `rm'.
2385 for ac_file in conftest.exe conftest conftest.*; do
2386   test -f "$ac_file" || continue
2387   case $ac_file in
2388     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2389     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2390           export ac_cv_exeext
2391           break;;
2392     * ) break;;
2393   esac
2394 done
2395 else
2396   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2397 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2398 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2399 See \`config.log' for more details." >&5
2400 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2401 See \`config.log' for more details." >&2;}
2402    { (exit 1); exit 1; }; }; }
2403 fi
2404
2405 rm -f conftest$ac_cv_exeext
2406 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2407 echo "${ECHO_T}$ac_cv_exeext" >&6
2408
2409 rm -f conftest.$ac_ext
2410 EXEEXT=$ac_cv_exeext
2411 ac_exeext=$EXEEXT
2412 fi
2413 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2414 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2415 if test "${ac_cv_objext+set}" = set; then
2416   echo $ECHO_N "(cached) $ECHO_C" >&6
2417 else
2418   cat >conftest.$ac_ext <<_ACEOF
2419 /* confdefs.h.  */
2420 _ACEOF
2421 cat confdefs.h >>conftest.$ac_ext
2422 cat >>conftest.$ac_ext <<_ACEOF
2423 /* end confdefs.h.  */
2424
2425 int
2426 main ()
2427 {
2428
2429   ;
2430   return 0;
2431 }
2432 _ACEOF
2433 rm -f conftest.o conftest.obj
2434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2435   (eval $ac_compile) 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); }; then
2439   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2440   case $ac_file in
2441     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2442     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2443        break;;
2444   esac
2445 done
2446 else
2447   echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2449
2450 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2451 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2452 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2453 See \`config.log' for more details." >&5
2454 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2455 See \`config.log' for more details." >&2;}
2456    { (exit 1); exit 1; }; }; }
2457 fi
2458
2459 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2460 fi
2461 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2462 echo "${ECHO_T}$ac_cv_objext" >&6
2463 OBJEXT=$ac_cv_objext
2464 ac_objext=$OBJEXT
2465 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2466 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2467 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2468   echo $ECHO_N "(cached) $ECHO_C" >&6
2469 else
2470   cat >conftest.$ac_ext <<_ACEOF
2471 /* confdefs.h.  */
2472 _ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h.  */
2476
2477 int
2478 main ()
2479 {
2480 #ifndef __GNUC__
2481        choke me
2482 #endif
2483
2484   ;
2485   return 0;
2486 }
2487 _ACEOF
2488 rm -f conftest.$ac_objext
2489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2490   (eval $ac_compile) 2>conftest.er1
2491   ac_status=$?
2492   grep -v '^ *+' conftest.er1 >conftest.err
2493   rm -f conftest.er1
2494   cat conftest.err >&5
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); } &&
2497          { ac_try='test -z "$ac_c_werror_flag"
2498                          || test ! -s conftest.err'
2499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500   (eval $ac_try) 2>&5
2501   ac_status=$?
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); }; } &&
2504          { ac_try='test -s conftest.$ac_objext'
2505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506   (eval $ac_try) 2>&5
2507   ac_status=$?
2508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); }; }; then
2510   ac_compiler_gnu=yes
2511 else
2512   echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2514
2515 ac_compiler_gnu=no
2516 fi
2517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2518 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2519
2520 fi
2521 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2522 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2523 GCC=`test $ac_compiler_gnu = yes && echo yes`
2524 ac_test_CFLAGS=${CFLAGS+set}
2525 ac_save_CFLAGS=$CFLAGS
2526 CFLAGS="-g"
2527 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2528 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2529 if test "${ac_cv_prog_cc_g+set}" = set; then
2530   echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532   cat >conftest.$ac_ext <<_ACEOF
2533 /* confdefs.h.  */
2534 _ACEOF
2535 cat confdefs.h >>conftest.$ac_ext
2536 cat >>conftest.$ac_ext <<_ACEOF
2537 /* end confdefs.h.  */
2538
2539 int
2540 main ()
2541 {
2542
2543   ;
2544   return 0;
2545 }
2546 _ACEOF
2547 rm -f conftest.$ac_objext
2548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2549   (eval $ac_compile) 2>conftest.er1
2550   ac_status=$?
2551   grep -v '^ *+' conftest.er1 >conftest.err
2552   rm -f conftest.er1
2553   cat conftest.err >&5
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); } &&
2556          { ac_try='test -z "$ac_c_werror_flag"
2557                          || test ! -s conftest.err'
2558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559   (eval $ac_try) 2>&5
2560   ac_status=$?
2561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); }; } &&
2563          { ac_try='test -s conftest.$ac_objext'
2564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565   (eval $ac_try) 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }; }; then
2569   ac_cv_prog_cc_g=yes
2570 else
2571   echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2573
2574 ac_cv_prog_cc_g=no
2575 fi
2576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2577 fi
2578 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2579 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2580 if test "$ac_test_CFLAGS" = set; then
2581   CFLAGS=$ac_save_CFLAGS
2582 elif test $ac_cv_prog_cc_g = yes; then
2583   if test "$GCC" = yes; then
2584     CFLAGS="-g -O2"
2585   else
2586     CFLAGS="-g"
2587   fi
2588 else
2589   if test "$GCC" = yes; then
2590     CFLAGS="-O2"
2591   else
2592     CFLAGS=
2593   fi
2594 fi
2595 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2596 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2597 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2598   echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600   ac_cv_prog_cc_stdc=no
2601 ac_save_CC=$CC
2602 cat >conftest.$ac_ext <<_ACEOF
2603 /* confdefs.h.  */
2604 _ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h.  */
2608 #include <stdarg.h>
2609 #include <stdio.h>
2610 #include <sys/types.h>
2611 #include <sys/stat.h>
2612 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2613 struct buf { int x; };
2614 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2615 static char *e (p, i)
2616      char **p;
2617      int i;
2618 {
2619   return p[i];
2620 }
2621 static char *f (char * (*g) (char **, int), char **p, ...)
2622 {
2623   char *s;
2624   va_list v;
2625   va_start (v,p);
2626   s = g (p, va_arg (v,int));
2627   va_end (v);
2628   return s;
2629 }
2630
2631 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2632    function prototypes and stuff, but not '\xHH' hex character constants.
2633    These don't provoke an error unfortunately, instead are silently treated
2634    as 'x'.  The following induces an error, until -std1 is added to get
2635    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2636    array size at least.  It's necessary to write '\x00'==0 to get something
2637    that's true only with -std1.  */
2638 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2639
2640 int test (int i, double x);
2641 struct s1 {int (*f) (int a);};
2642 struct s2 {int (*f) (double a);};
2643 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2644 int argc;
2645 char **argv;
2646 int
2647 main ()
2648 {
2649 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2650   ;
2651   return 0;
2652 }
2653 _ACEOF
2654 # Don't try gcc -ansi; that turns off useful extensions and
2655 # breaks some systems' header files.
2656 # AIX                   -qlanglvl=ansi
2657 # Ultrix and OSF/1      -std1
2658 # HP-UX 10.20 and later -Ae
2659 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2660 # SVR4                  -Xc -D__EXTENSIONS__
2661 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2662 do
2663   CC="$ac_save_CC $ac_arg"
2664   rm -f conftest.$ac_objext
2665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2666   (eval $ac_compile) 2>conftest.er1
2667   ac_status=$?
2668   grep -v '^ *+' conftest.er1 >conftest.err
2669   rm -f conftest.er1
2670   cat conftest.err >&5
2671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672   (exit $ac_status); } &&
2673          { ac_try='test -z "$ac_c_werror_flag"
2674                          || test ! -s conftest.err'
2675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676   (eval $ac_try) 2>&5
2677   ac_status=$?
2678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679   (exit $ac_status); }; } &&
2680          { ac_try='test -s conftest.$ac_objext'
2681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682   (eval $ac_try) 2>&5
2683   ac_status=$?
2684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685   (exit $ac_status); }; }; then
2686   ac_cv_prog_cc_stdc=$ac_arg
2687 break
2688 else
2689   echo "$as_me: failed program was:" >&5
2690 sed 's/^/| /' conftest.$ac_ext >&5
2691
2692 fi
2693 rm -f conftest.err conftest.$ac_objext
2694 done
2695 rm -f conftest.$ac_ext conftest.$ac_objext
2696 CC=$ac_save_CC
2697
2698 fi
2699
2700 case "x$ac_cv_prog_cc_stdc" in
2701   x|xno)
2702     echo "$as_me:$LINENO: result: none needed" >&5
2703 echo "${ECHO_T}none needed" >&6 ;;
2704   *)
2705     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2706 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2707     CC="$CC $ac_cv_prog_cc_stdc" ;;
2708 esac
2709
2710 # Some people use a C++ compiler to compile C.  Since we use `exit',
2711 # in C++ we need to declare it.  In case someone uses the same compiler
2712 # for both compiling C and C++ we need to have the C++ compiler decide
2713 # the declaration of exit, since it's the most demanding environment.
2714 cat >conftest.$ac_ext <<_ACEOF
2715 #ifndef __cplusplus
2716   choke me
2717 #endif
2718 _ACEOF
2719 rm -f conftest.$ac_objext
2720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2721   (eval $ac_compile) 2>conftest.er1
2722   ac_status=$?
2723   grep -v '^ *+' conftest.er1 >conftest.err
2724   rm -f conftest.er1
2725   cat conftest.err >&5
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); } &&
2728          { ac_try='test -z "$ac_c_werror_flag"
2729                          || test ! -s conftest.err'
2730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731   (eval $ac_try) 2>&5
2732   ac_status=$?
2733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734   (exit $ac_status); }; } &&
2735          { ac_try='test -s conftest.$ac_objext'
2736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737   (eval $ac_try) 2>&5
2738   ac_status=$?
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); }; }; then
2741   for ac_declaration in \
2742    '' \
2743    'extern "C" void std::exit (int) throw (); using std::exit;' \
2744    'extern "C" void std::exit (int); using std::exit;' \
2745    'extern "C" void exit (int) throw ();' \
2746    'extern "C" void exit (int);' \
2747    'void exit (int);'
2748 do
2749   cat >conftest.$ac_ext <<_ACEOF
2750 /* confdefs.h.  */
2751 _ACEOF
2752 cat confdefs.h >>conftest.$ac_ext
2753 cat >>conftest.$ac_ext <<_ACEOF
2754 /* end confdefs.h.  */
2755 $ac_declaration
2756 #include <stdlib.h>
2757 int
2758 main ()
2759 {
2760 exit (42);
2761   ;
2762   return 0;
2763 }
2764 _ACEOF
2765 rm -f conftest.$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767   (eval $ac_compile) 2>conftest.er1
2768   ac_status=$?
2769   grep -v '^ *+' conftest.er1 >conftest.err
2770   rm -f conftest.er1
2771   cat conftest.err >&5
2772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773   (exit $ac_status); } &&
2774          { ac_try='test -z "$ac_c_werror_flag"
2775                          || test ! -s conftest.err'
2776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777   (eval $ac_try) 2>&5
2778   ac_status=$?
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); }; } &&
2781          { ac_try='test -s conftest.$ac_objext'
2782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783   (eval $ac_try) 2>&5
2784   ac_status=$?
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); }; }; then
2787   :
2788 else
2789   echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2791
2792 continue
2793 fi
2794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2795   cat >conftest.$ac_ext <<_ACEOF
2796 /* confdefs.h.  */
2797 _ACEOF
2798 cat confdefs.h >>conftest.$ac_ext
2799 cat >>conftest.$ac_ext <<_ACEOF
2800 /* end confdefs.h.  */
2801 $ac_declaration
2802 int
2803 main ()
2804 {
2805 exit (42);
2806   ;
2807   return 0;
2808 }
2809 _ACEOF
2810 rm -f conftest.$ac_objext
2811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2812   (eval $ac_compile) 2>conftest.er1
2813   ac_status=$?
2814   grep -v '^ *+' conftest.er1 >conftest.err
2815   rm -f conftest.er1
2816   cat conftest.err >&5
2817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818   (exit $ac_status); } &&
2819          { ac_try='test -z "$ac_c_werror_flag"
2820                          || test ! -s conftest.err'
2821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822   (eval $ac_try) 2>&5
2823   ac_status=$?
2824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825   (exit $ac_status); }; } &&
2826          { ac_try='test -s conftest.$ac_objext'
2827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828   (eval $ac_try) 2>&5
2829   ac_status=$?
2830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831   (exit $ac_status); }; }; then
2832   break
2833 else
2834   echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2836
2837 fi
2838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2839 done
2840 rm -f conftest*
2841 if test -n "$ac_declaration"; then
2842   echo '#ifdef __cplusplus' >>confdefs.h
2843   echo $ac_declaration      >>confdefs.h
2844   echo '#endif'             >>confdefs.h
2845 fi
2846
2847 else
2848   echo "$as_me: failed program was:" >&5
2849 sed 's/^/| /' conftest.$ac_ext >&5
2850
2851 fi
2852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2853 ac_ext=c
2854 ac_cpp='$CPP $CPPFLAGS'
2855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2858
2859 ac_ext=cc
2860 ac_cpp='$CXXCPP $CPPFLAGS'
2861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2864 if test -n "$ac_tool_prefix"; then
2865   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2866   do
2867     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2868 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2869 echo "$as_me:$LINENO: checking for $ac_word" >&5
2870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2871 if test "${ac_cv_prog_CXX+set}" = set; then
2872   echo $ECHO_N "(cached) $ECHO_C" >&6
2873 else
2874   if test -n "$CXX"; then
2875   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2879 do
2880   IFS=$as_save_IFS
2881   test -z "$as_dir" && as_dir=.
2882   for ac_exec_ext in '' $ac_executable_extensions; do
2883   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2886     break 2
2887   fi
2888 done
2889 done
2890
2891 fi
2892 fi
2893 CXX=$ac_cv_prog_CXX
2894 if test -n "$CXX"; then
2895   echo "$as_me:$LINENO: result: $CXX" >&5
2896 echo "${ECHO_T}$CXX" >&6
2897 else
2898   echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6
2900 fi
2901
2902     test -n "$CXX" && break
2903   done
2904 fi
2905 if test -z "$CXX"; then
2906   ac_ct_CXX=$CXX
2907   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2908 do
2909   # Extract the first word of "$ac_prog", so it can be a program name with args.
2910 set dummy $ac_prog; ac_word=$2
2911 echo "$as_me:$LINENO: checking for $ac_word" >&5
2912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2913 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2914   echo $ECHO_N "(cached) $ECHO_C" >&6
2915 else
2916   if test -n "$ac_ct_CXX"; then
2917   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922   IFS=$as_save_IFS
2923   test -z "$as_dir" && as_dir=.
2924   for ac_exec_ext in '' $ac_executable_extensions; do
2925   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926     ac_cv_prog_ac_ct_CXX="$ac_prog"
2927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928     break 2
2929   fi
2930 done
2931 done
2932
2933 fi
2934 fi
2935 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2936 if test -n "$ac_ct_CXX"; then
2937   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2938 echo "${ECHO_T}$ac_ct_CXX" >&6
2939 else
2940   echo "$as_me:$LINENO: result: no" >&5
2941 echo "${ECHO_T}no" >&6
2942 fi
2943
2944   test -n "$ac_ct_CXX" && break
2945 done
2946 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2947
2948   CXX=$ac_ct_CXX
2949 fi
2950
2951
2952 # Provide some information about the compiler.
2953 echo "$as_me:$LINENO:" \
2954      "checking for C++ compiler version" >&5
2955 ac_compiler=`set X $ac_compile; echo $2`
2956 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2957   (eval $ac_compiler --version </dev/null >&5) 2>&5
2958   ac_status=$?
2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960   (exit $ac_status); }
2961 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2962   (eval $ac_compiler -v </dev/null >&5) 2>&5
2963   ac_status=$?
2964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965   (exit $ac_status); }
2966 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2967   (eval $ac_compiler -V </dev/null >&5) 2>&5
2968   ac_status=$?
2969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970   (exit $ac_status); }
2971
2972 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2973 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2974 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2975   echo $ECHO_N "(cached) $ECHO_C" >&6
2976 else
2977   cat >conftest.$ac_ext <<_ACEOF
2978 /* confdefs.h.  */
2979 _ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h.  */
2983
2984 int
2985 main ()
2986 {
2987 #ifndef __GNUC__
2988        choke me
2989 #endif
2990
2991   ;
2992   return 0;
2993 }
2994 _ACEOF
2995 rm -f conftest.$ac_objext
2996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2997   (eval $ac_compile) 2>conftest.er1
2998   ac_status=$?
2999   grep -v '^ *+' conftest.er1 >conftest.err
3000   rm -f conftest.er1
3001   cat conftest.err >&5
3002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003   (exit $ac_status); } &&
3004          { ac_try='test -z "$ac_cxx_werror_flag"
3005                          || test ! -s conftest.err'
3006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007   (eval $ac_try) 2>&5
3008   ac_status=$?
3009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010   (exit $ac_status); }; } &&
3011          { ac_try='test -s conftest.$ac_objext'
3012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013   (eval $ac_try) 2>&5
3014   ac_status=$?
3015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016   (exit $ac_status); }; }; then
3017   ac_compiler_gnu=yes
3018 else
3019   echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3021
3022 ac_compiler_gnu=no
3023 fi
3024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3025 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3026
3027 fi
3028 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3029 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3030 GXX=`test $ac_compiler_gnu = yes && echo yes`
3031 ac_test_CXXFLAGS=${CXXFLAGS+set}
3032 ac_save_CXXFLAGS=$CXXFLAGS
3033 CXXFLAGS="-g"
3034 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3035 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3036 if test "${ac_cv_prog_cxx_g+set}" = set; then
3037   echo $ECHO_N "(cached) $ECHO_C" >&6
3038 else
3039   cat >conftest.$ac_ext <<_ACEOF
3040 /* confdefs.h.  */
3041 _ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h.  */
3045
3046 int
3047 main ()
3048 {
3049
3050   ;
3051   return 0;
3052 }
3053 _ACEOF
3054 rm -f conftest.$ac_objext
3055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3056   (eval $ac_compile) 2>conftest.er1
3057   ac_status=$?
3058   grep -v '^ *+' conftest.er1 >conftest.err
3059   rm -f conftest.er1
3060   cat conftest.err >&5
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); } &&
3063          { ac_try='test -z "$ac_cxx_werror_flag"
3064                          || test ! -s conftest.err'
3065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066   (eval $ac_try) 2>&5
3067   ac_status=$?
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); }; } &&
3070          { ac_try='test -s conftest.$ac_objext'
3071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072   (eval $ac_try) 2>&5
3073   ac_status=$?
3074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075   (exit $ac_status); }; }; then
3076   ac_cv_prog_cxx_g=yes
3077 else
3078   echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3080
3081 ac_cv_prog_cxx_g=no
3082 fi
3083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3084 fi
3085 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3086 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3087 if test "$ac_test_CXXFLAGS" = set; then
3088   CXXFLAGS=$ac_save_CXXFLAGS
3089 elif test $ac_cv_prog_cxx_g = yes; then
3090   if test "$GXX" = yes; then
3091     CXXFLAGS="-g -O2"
3092   else
3093     CXXFLAGS="-g"
3094   fi
3095 else
3096   if test "$GXX" = yes; then
3097     CXXFLAGS="-O2"
3098   else
3099     CXXFLAGS=
3100   fi
3101 fi
3102 for ac_declaration in \
3103    '' \
3104    'extern "C" void std::exit (int) throw (); using std::exit;' \
3105    'extern "C" void std::exit (int); using std::exit;' \
3106    'extern "C" void exit (int) throw ();' \
3107    'extern "C" void exit (int);' \
3108    'void exit (int);'
3109 do
3110   cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h.  */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h.  */
3116 $ac_declaration
3117 #include <stdlib.h>
3118 int
3119 main ()
3120 {
3121 exit (42);
3122   ;
3123   return 0;
3124 }
3125 _ACEOF
3126 rm -f conftest.$ac_objext
3127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3128   (eval $ac_compile) 2>conftest.er1
3129   ac_status=$?
3130   grep -v '^ *+' conftest.er1 >conftest.err
3131   rm -f conftest.er1
3132   cat conftest.err >&5
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); } &&
3135          { ac_try='test -z "$ac_cxx_werror_flag"
3136                          || test ! -s conftest.err'
3137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138   (eval $ac_try) 2>&5
3139   ac_status=$?
3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141   (exit $ac_status); }; } &&
3142          { ac_try='test -s conftest.$ac_objext'
3143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144   (eval $ac_try) 2>&5
3145   ac_status=$?
3146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147   (exit $ac_status); }; }; then
3148   :
3149 else
3150   echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3152
3153 continue
3154 fi
3155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3156   cat >conftest.$ac_ext <<_ACEOF
3157 /* confdefs.h.  */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h.  */
3162 $ac_declaration
3163 int
3164 main ()
3165 {
3166 exit (42);
3167   ;
3168   return 0;
3169 }
3170 _ACEOF
3171 rm -f conftest.$ac_objext
3172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3173   (eval $ac_compile) 2>conftest.er1
3174   ac_status=$?
3175   grep -v '^ *+' conftest.er1 >conftest.err
3176   rm -f conftest.er1
3177   cat conftest.err >&5
3178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179   (exit $ac_status); } &&
3180          { ac_try='test -z "$ac_cxx_werror_flag"
3181                          || test ! -s conftest.err'
3182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183   (eval $ac_try) 2>&5
3184   ac_status=$?
3185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186   (exit $ac_status); }; } &&
3187          { ac_try='test -s conftest.$ac_objext'
3188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189   (eval $ac_try) 2>&5
3190   ac_status=$?
3191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192   (exit $ac_status); }; }; then
3193   break
3194 else
3195   echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198 fi
3199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3200 done
3201 rm -f conftest*
3202 if test -n "$ac_declaration"; then
3203   echo '#ifdef __cplusplus' >>confdefs.h
3204   echo $ac_declaration      >>confdefs.h
3205   echo '#endif'             >>confdefs.h
3206 fi
3207
3208 ac_ext=c
3209 ac_cpp='$CPP $CPPFLAGS'
3210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213
3214 CXXFLAGS="$save_CXXFLAGS"
3215
3216
3217
3218
3219
3220 am__api_version="1.9"
3221 # Find a good install program.  We prefer a C program (faster),
3222 # so one script is as good as another.  But avoid the broken or
3223 # incompatible versions:
3224 # SysV /etc/install, /usr/sbin/install
3225 # SunOS /usr/etc/install
3226 # IRIX /sbin/install
3227 # AIX /bin/install
3228 # AmigaOS /C/install, which installs bootblocks on floppy discs
3229 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3230 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3231 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3232 # OS/2's system install, which has a completely different semantic
3233 # ./install, which can be erroneously created by make from ./install.sh.
3234 # Reject install programs that cannot install multiple files.
3235 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3236 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3237 if test -z "$INSTALL"; then
3238 if test "${ac_cv_path_install+set}" = set; then
3239   echo $ECHO_N "(cached) $ECHO_C" >&6
3240 else
3241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3243 do
3244   IFS=$as_save_IFS
3245   test -z "$as_dir" && as_dir=.
3246   # Account for people who put trailing slashes in PATH elements.
3247 case $as_dir/ in
3248   ./ | .// | /cC/* | \
3249   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3250   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3251   /usr/ucb/* ) ;;
3252   *)
3253     # OSF1 and SCO ODT 3.0 have their own names for install.
3254     # Don't use installbsd from OSF since it installs stuff as root
3255     # by default.
3256     for ac_prog in ginstall scoinst install; do
3257       for ac_exec_ext in '' $ac_executable_extensions; do
3258         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3259           if test $ac_prog = install &&
3260             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3261             # AIX install.  It has an incompatible calling convention.
3262             :
3263           elif test $ac_prog = install &&
3264             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3265             # program-specific install script used by HP pwplus--don't use.
3266             :
3267           else
3268             rm -rf conftest.one conftest.two conftest.dir
3269             echo one > conftest.one
3270             echo two > conftest.two
3271             mkdir conftest.dir
3272             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3273               test -s conftest.one && test -s conftest.two &&
3274               test -s conftest.dir/conftest.one &&
3275               test -s conftest.dir/conftest.two
3276             then
3277               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3278               break 3
3279             fi
3280           fi
3281         fi
3282       done
3283     done
3284     ;;
3285 esac
3286 done
3287
3288 rm -rf conftest.one conftest.two conftest.dir
3289
3290 fi
3291   if test "${ac_cv_path_install+set}" = set; then
3292     INSTALL=$ac_cv_path_install
3293   else
3294     # As a last resort, use the slow shell script.  Don't cache a
3295     # value for INSTALL within a source directory, because that will
3296     # break other packages using the cache if that directory is
3297     # removed, or if the value is a relative name.
3298     INSTALL=$ac_install_sh
3299   fi
3300 fi
3301 echo "$as_me:$LINENO: result: $INSTALL" >&5
3302 echo "${ECHO_T}$INSTALL" >&6
3303
3304 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3305 # It thinks the first close brace ends the variable substitution.
3306 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3307
3308 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3309
3310 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3311
3312 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3313 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3314 # Just in case
3315 sleep 1
3316 echo timestamp > conftest.file
3317 # Do `set' in a subshell so we don't clobber the current shell's
3318 # arguments.  Must try -L first in case configure is actually a
3319 # symlink; some systems play weird games with the mod time of symlinks
3320 # (eg FreeBSD returns the mod time of the symlink's containing
3321 # directory).
3322 if (
3323    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3324    if test "$*" = "X"; then
3325       # -L didn't work.
3326       set X `ls -t $srcdir/configure conftest.file`
3327    fi
3328    rm -f conftest.file
3329    if test "$*" != "X $srcdir/configure conftest.file" \
3330       && test "$*" != "X conftest.file $srcdir/configure"; then
3331
3332       # If neither matched, then we have a broken ls.  This can happen
3333       # if, for instance, CONFIG_SHELL is bash and it inherits a
3334       # broken ls alias from the environment.  This has actually
3335       # happened.  Such a system could not be considered "sane".
3336       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3337 alias in your environment" >&5
3338 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3339 alias in your environment" >&2;}
3340    { (exit 1); exit 1; }; }
3341    fi
3342
3343    test "$2" = conftest.file
3344    )
3345 then
3346    # Ok.
3347    :
3348 else
3349    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3350 Check your system clock" >&5
3351 echo "$as_me: error: newly created file is older than distributed files!
3352 Check your system clock" >&2;}
3353    { (exit 1); exit 1; }; }
3354 fi
3355 echo "$as_me:$LINENO: result: yes" >&5
3356 echo "${ECHO_T}yes" >&6
3357 test "$program_prefix" != NONE &&
3358   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3359 # Use a double $ so make ignores it.
3360 test "$program_suffix" != NONE &&
3361   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3362 # Double any \ or $.  echo might interpret backslashes.
3363 # By default was `s,x,x', remove it if useless.
3364 cat <<\_ACEOF >conftest.sed
3365 s/[\\$]/&&/g;s/;s,x,x,$//
3366 _ACEOF
3367 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3368 rm conftest.sed
3369
3370 # expand $ac_aux_dir to an absolute path
3371 am_aux_dir=`cd $ac_aux_dir && pwd`
3372
3373 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3374 # Use eval to expand $SHELL
3375 if eval "$MISSING --run true"; then
3376   am_missing_run="$MISSING --run "
3377 else
3378   am_missing_run=
3379   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3380 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3381 fi
3382
3383 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3384   # We used to keeping the `.' as first argument, in order to
3385   # allow $(mkdir_p) to be used without argument.  As in
3386   #   $(mkdir_p) $(somedir)
3387   # where $(somedir) is conditionally defined.  However this is wrong
3388   # for two reasons:
3389   #  1. if the package is installed by a user who cannot write `.'
3390   #     make install will fail,
3391   #  2. the above comment should most certainly read
3392   #     $(mkdir_p) $(DESTDIR)$(somedir)
3393   #     so it does not work when $(somedir) is undefined and
3394   #     $(DESTDIR) is not.
3395   #  To support the latter case, we have to write
3396   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3397   #  so the `.' trick is pointless.
3398   mkdir_p='mkdir -p --'
3399 else
3400   # On NextStep and OpenStep, the `mkdir' command does not
3401   # recognize any option.  It will interpret all options as
3402   # directories to create, and then abort because `.' already
3403   # exists.
3404   for d in ./-p ./--version;
3405   do
3406     test -d $d && rmdir $d
3407   done
3408   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3409   if test -f "$ac_aux_dir/mkinstalldirs"; then
3410     mkdir_p='$(mkinstalldirs)'
3411   else
3412     mkdir_p='$(install_sh) -d'
3413   fi
3414 fi
3415
3416 for ac_prog in gawk mawk nawk awk
3417 do
3418   # Extract the first word of "$ac_prog", so it can be a program name with args.
3419 set dummy $ac_prog; ac_word=$2
3420 echo "$as_me:$LINENO: checking for $ac_word" >&5
3421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3422 if test "${ac_cv_prog_AWK+set}" = set; then
3423   echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425   if test -n "$AWK"; then
3426   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3427 else
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH
3430 do
3431   IFS=$as_save_IFS
3432   test -z "$as_dir" && as_dir=.
3433   for ac_exec_ext in '' $ac_executable_extensions; do
3434   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3435     ac_cv_prog_AWK="$ac_prog"
3436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3437     break 2
3438   fi
3439 done
3440 done
3441
3442 fi
3443 fi
3444 AWK=$ac_cv_prog_AWK
3445 if test -n "$AWK"; then
3446   echo "$as_me:$LINENO: result: $AWK" >&5
3447 echo "${ECHO_T}$AWK" >&6
3448 else
3449   echo "$as_me:$LINENO: result: no" >&5
3450 echo "${ECHO_T}no" >&6
3451 fi
3452
3453   test -n "$AWK" && break
3454 done
3455
3456 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3457 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3458 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3459 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3460   echo $ECHO_N "(cached) $ECHO_C" >&6
3461 else
3462   cat >conftest.make <<\_ACEOF
3463 all:
3464         @echo 'ac_maketemp="$(MAKE)"'
3465 _ACEOF
3466 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3467 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3468 if test -n "$ac_maketemp"; then
3469   eval ac_cv_prog_make_${ac_make}_set=yes
3470 else
3471   eval ac_cv_prog_make_${ac_make}_set=no
3472 fi
3473 rm -f conftest.make
3474 fi
3475 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3476   echo "$as_me:$LINENO: result: yes" >&5
3477 echo "${ECHO_T}yes" >&6
3478   SET_MAKE=
3479 else
3480   echo "$as_me:$LINENO: result: no" >&5
3481 echo "${ECHO_T}no" >&6
3482   SET_MAKE="MAKE=${MAKE-make}"
3483 fi
3484
3485 rm -rf .tst 2>/dev/null
3486 mkdir .tst 2>/dev/null
3487 if test -d .tst; then
3488   am__leading_dot=.
3489 else
3490   am__leading_dot=_
3491 fi
3492 rmdir .tst 2>/dev/null
3493
3494 DEPDIR="${am__leading_dot}deps"
3495
3496           ac_config_commands="$ac_config_commands depfiles"
3497
3498
3499 am_make=${MAKE-make}
3500 cat > confinc << 'END'
3501 am__doit:
3502         @echo done
3503 .PHONY: am__doit
3504 END
3505 # If we don't find an include directive, just comment out the code.
3506 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3507 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3508 am__include="#"
3509 am__quote=
3510 _am_result=none
3511 # First try GNU make style include.
3512 echo "include confinc" > confmf
3513 # We grep out `Entering directory' and `Leaving directory'
3514 # messages which can occur if `w' ends up in MAKEFLAGS.
3515 # In particular we don't look at `^make:' because GNU make might
3516 # be invoked under some other name (usually "gmake"), in which
3517 # case it prints its new name instead of `make'.
3518 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3519    am__include=include
3520    am__quote=
3521    _am_result=GNU
3522 fi
3523 # Now try BSD make style include.
3524 if test "$am__include" = "#"; then
3525    echo '.include "confinc"' > confmf
3526    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3527       am__include=.include
3528       am__quote="\""
3529       _am_result=BSD
3530    fi
3531 fi
3532
3533
3534 echo "$as_me:$LINENO: result: $_am_result" >&5
3535 echo "${ECHO_T}$_am_result" >&6
3536 rm -f confinc confmf
3537
3538 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3539 if test "${enable_dependency_tracking+set}" = set; then
3540   enableval="$enable_dependency_tracking"
3541
3542 fi;
3543 if test "x$enable_dependency_tracking" != xno; then
3544   am_depcomp="$ac_aux_dir/depcomp"
3545   AMDEPBACKSLASH='\'
3546 fi
3547
3548
3549 if test "x$enable_dependency_tracking" != xno; then
3550   AMDEP_TRUE=
3551   AMDEP_FALSE='#'
3552 else
3553   AMDEP_TRUE='#'
3554   AMDEP_FALSE=
3555 fi
3556
3557
3558
3559 # test to see if srcdir already configured
3560 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3561    test -f $srcdir/config.status; then
3562   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3563 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3564    { (exit 1); exit 1; }; }
3565 fi
3566
3567 # test whether we have cygpath
3568 if test -z "$CYGPATH_W"; then
3569   if (cygpath --version) >/dev/null 2>/dev/null; then
3570     CYGPATH_W='cygpath -w'
3571   else
3572     CYGPATH_W=echo
3573   fi
3574 fi
3575
3576
3577 # Define the identity of the package.
3578  PACKAGE='libjava'
3579  VERSION='version-unused'
3580
3581
3582 cat >>confdefs.h <<_ACEOF
3583 #define PACKAGE "$PACKAGE"
3584 _ACEOF
3585
3586
3587 cat >>confdefs.h <<_ACEOF
3588 #define VERSION "$VERSION"
3589 _ACEOF
3590
3591 # Some tools Automake needs.
3592
3593 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3594
3595
3596 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3597
3598
3599 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3600
3601
3602 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3603
3604
3605 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3606
3607 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3608
3609 # Installed binaries are usually stripped using `strip' when the user
3610 # run `make install-strip'.  However `strip' might not be the right
3611 # tool to use in cross-compilation environments, therefore Automake
3612 # will honor the `STRIP' environment variable to overrule this program.
3613 if test "$cross_compiling" != no; then
3614   if test -n "$ac_tool_prefix"; then
3615   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3616 set dummy ${ac_tool_prefix}strip; ac_word=$2
3617 echo "$as_me:$LINENO: checking for $ac_word" >&5
3618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3619 if test "${ac_cv_prog_STRIP+set}" = set; then
3620   echo $ECHO_N "(cached) $ECHO_C" >&6
3621 else
3622   if test -n "$STRIP"; then
3623   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3624 else
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH
3627 do
3628   IFS=$as_save_IFS
3629   test -z "$as_dir" && as_dir=.
3630   for ac_exec_ext in '' $ac_executable_extensions; do
3631   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3632     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3634     break 2
3635   fi
3636 done
3637 done
3638
3639 fi
3640 fi
3641 STRIP=$ac_cv_prog_STRIP
3642 if test -n "$STRIP"; then
3643   echo "$as_me:$LINENO: result: $STRIP" >&5
3644 echo "${ECHO_T}$STRIP" >&6
3645 else
3646   echo "$as_me:$LINENO: result: no" >&5
3647 echo "${ECHO_T}no" >&6
3648 fi
3649
3650 fi
3651 if test -z "$ac_cv_prog_STRIP"; then
3652   ac_ct_STRIP=$STRIP
3653   # Extract the first word of "strip", so it can be a program name with args.
3654 set dummy strip; ac_word=$2
3655 echo "$as_me:$LINENO: checking for $ac_word" >&5
3656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3657 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3658   echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660   if test -n "$ac_ct_STRIP"; then
3661   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3662 else
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3665 do
3666   IFS=$as_save_IFS
3667   test -z "$as_dir" && as_dir=.
3668   for ac_exec_ext in '' $ac_executable_extensions; do
3669   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3670     ac_cv_prog_ac_ct_STRIP="strip"
3671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3672     break 2
3673   fi
3674 done
3675 done
3676
3677   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3678 fi
3679 fi
3680 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3681 if test -n "$ac_ct_STRIP"; then
3682   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3683 echo "${ECHO_T}$ac_ct_STRIP" >&6
3684 else
3685   echo "$as_me:$LINENO: result: no" >&5
3686 echo "${ECHO_T}no" >&6
3687 fi
3688
3689   STRIP=$ac_ct_STRIP
3690 else
3691   STRIP="$ac_cv_prog_STRIP"
3692 fi
3693
3694 fi
3695 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3696
3697 # We need awk for the "check" target.  The system "awk" is bad on
3698 # some platforms.
3699 # Always define AMTAR for backward compatibility.
3700
3701 AMTAR=${AMTAR-"${am_missing_run}tar"}
3702
3703 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3704
3705
3706
3707
3708 depcc="$CC"   am_compiler_list=
3709
3710 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3711 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3712 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3713   echo $ECHO_N "(cached) $ECHO_C" >&6
3714 else
3715   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3716   # We make a subdir and do the tests there.  Otherwise we can end up
3717   # making bogus files that we don't know about and never remove.  For
3718   # instance it was reported that on HP-UX the gcc test will end up
3719   # making a dummy file named `D' -- because `-MD' means `put the output
3720   # in D'.
3721   mkdir conftest.dir
3722   # Copy depcomp to subdir because otherwise we won't find it if we're
3723   # using a relative directory.
3724   cp "$am_depcomp" conftest.dir
3725   cd conftest.dir
3726   # We will build objects and dependencies in a subdirectory because
3727   # it helps to detect inapplicable dependency modes.  For instance
3728   # both Tru64's cc and ICC support -MD to output dependencies as a
3729   # side effect of compilation, but ICC will put the dependencies in
3730   # the current directory while Tru64 will put them in the object
3731   # directory.
3732   mkdir sub
3733
3734   am_cv_CC_dependencies_compiler_type=none
3735   if test "$am_compiler_list" = ""; then
3736      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3737   fi
3738   for depmode in $am_compiler_list; do
3739     # Setup a source with many dependencies, because some compilers
3740     # like to wrap large dependency lists on column 80 (with \), and
3741     # we should not choose a depcomp mode which is confused by this.
3742     #
3743     # We need to recreate these files for each test, as the compiler may
3744     # overwrite some of them when testing with obscure command lines.
3745     # This happens at least with the AIX C compiler.
3746     : > sub/conftest.c
3747     for i in 1 2 3 4 5 6; do
3748       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3749       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3750       # Solaris 8's {/usr,}/bin/sh.
3751       touch sub/conftst$i.h
3752     done
3753     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3754
3755     case $depmode in
3756     nosideeffect)
3757       # after this tag, mechanisms are not by side-effect, so they'll
3758       # only be used when explicitly requested
3759       if test "x$enable_dependency_tracking" = xyes; then
3760         continue
3761       else
3762         break
3763       fi
3764       ;;
3765     none) break ;;
3766     esac
3767     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3768     # mode.  It turns out that the SunPro C++ compiler does not properly
3769     # handle `-M -o', and we need to detect this.
3770     if depmode=$depmode \
3771        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3772        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3773        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3774          >/dev/null 2>conftest.err &&
3775        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3776        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3777        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3778       # icc doesn't choke on unknown options, it will just issue warnings
3779       # or remarks (even with -Werror).  So we grep stderr for any message
3780       # that says an option was ignored or not supported.
3781       # When given -MP, icc 7.0 and 7.1 complain thusly:
3782       #   icc: Command line warning: ignoring option '-M'; no argument required
3783       # The diagnosis changed in icc 8.0:
3784       #   icc: Command line remark: option '-MP' not supported
3785       if (grep 'ignoring option' conftest.err ||
3786           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3787         am_cv_CC_dependencies_compiler_type=$depmode
3788         break
3789       fi
3790     fi
3791   done
3792
3793   cd ..
3794   rm -rf conftest.dir
3795 else
3796   am_cv_CC_dependencies_compiler_type=none
3797 fi
3798
3799 fi
3800 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3801 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3802 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3803
3804
3805
3806 if
3807   test "x$enable_dependency_tracking" != xno \
3808   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3809   am__fastdepCC_TRUE=
3810   am__fastdepCC_FALSE='#'
3811 else
3812   am__fastdepCC_TRUE='#'
3813   am__fastdepCC_FALSE=
3814 fi
3815
3816
3817 depcc="$CXX"  am_compiler_list=
3818
3819 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3820 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3821 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3822   echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3825   # We make a subdir and do the tests there.  Otherwise we can end up
3826   # making bogus files that we don't know about and never remove.  For
3827   # instance it was reported that on HP-UX the gcc test will end up
3828   # making a dummy file named `D' -- because `-MD' means `put the output
3829   # in D'.
3830   mkdir conftest.dir
3831   # Copy depcomp to subdir because otherwise we won't find it if we're
3832   # using a relative directory.
3833   cp "$am_depcomp" conftest.dir
3834   cd conftest.dir
3835   # We will build objects and dependencies in a subdirectory because
3836   # it helps to detect inapplicable dependency modes.  For instance
3837   # both Tru64's cc and ICC support -MD to output dependencies as a
3838   # side effect of compilation, but ICC will put the dependencies in
3839   # the current directory while Tru64 will put them in the object
3840   # directory.
3841   mkdir sub
3842
3843   am_cv_CXX_dependencies_compiler_type=none
3844   if test "$am_compiler_list" = ""; then
3845      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3846   fi
3847   for depmode in $am_compiler_list; do
3848     # Setup a source with many dependencies, because some compilers
3849     # like to wrap large dependency lists on column 80 (with \), and
3850     # we should not choose a depcomp mode which is confused by this.
3851     #
3852     # We need to recreate these files for each test, as the compiler may
3853     # overwrite some of them when testing with obscure command lines.
3854     # This happens at least with the AIX C compiler.
3855     : > sub/conftest.c
3856     for i in 1 2 3 4 5 6; do
3857       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3858       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3859       # Solaris 8's {/usr,}/bin/sh.
3860       touch sub/conftst$i.h
3861     done
3862     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3863
3864     case $depmode in
3865     nosideeffect)
3866       # after this tag, mechanisms are not by side-effect, so they'll
3867       # only be used when explicitly requested
3868       if test "x$enable_dependency_tracking" = xyes; then
3869         continue
3870       else
3871         break
3872       fi
3873       ;;
3874     none) break ;;
3875     esac
3876     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3877     # mode.  It turns out that the SunPro C++ compiler does not properly
3878     # handle `-M -o', and we need to detect this.
3879     if depmode=$depmode \
3880        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3881        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3882        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3883          >/dev/null 2>conftest.err &&
3884        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3885        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3886        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3887       # icc doesn't choke on unknown options, it will just issue warnings
3888       # or remarks (even with -Werror).  So we grep stderr for any message
3889       # that says an option was ignored or not supported.
3890       # When given -MP, icc 7.0 and 7.1 complain thusly:
3891       #   icc: Command line warning: ignoring option '-M'; no argument required
3892       # The diagnosis changed in icc 8.0:
3893       #   icc: Command line remark: option '-MP' not supported
3894       if (grep 'ignoring option' conftest.err ||
3895           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3896         am_cv_CXX_dependencies_compiler_type=$depmode
3897         break
3898       fi
3899     fi
3900   done
3901
3902   cd ..
3903   rm -rf conftest.dir
3904 else
3905   am_cv_CXX_dependencies_compiler_type=none
3906 fi
3907
3908 fi
3909 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3910 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3911 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3912
3913
3914
3915 if
3916   test "x$enable_dependency_tracking" != xno \
3917   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3918   am__fastdepCXX_TRUE=
3919   am__fastdepCXX_FALSE='#'
3920 else
3921   am__fastdepCXX_TRUE='#'
3922   am__fastdepCXX_FALSE=
3923 fi
3924
3925
3926
3927
3928 if test -n "$ac_tool_prefix"; then
3929   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3930 set dummy ${ac_tool_prefix}as; ac_word=$2
3931 echo "$as_me:$LINENO: checking for $ac_word" >&5
3932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3933 if test "${ac_cv_prog_AS+set}" = set; then
3934   echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936   if test -n "$AS"; then
3937   ac_cv_prog_AS="$AS" # Let the user override the test.
3938 else
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 for as_dir in $PATH
3941 do
3942   IFS=$as_save_IFS
3943   test -z "$as_dir" && as_dir=.
3944   for ac_exec_ext in '' $ac_executable_extensions; do
3945   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3946     ac_cv_prog_AS="${ac_tool_prefix}as"
3947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3948     break 2
3949   fi
3950 done
3951 done
3952
3953 fi
3954 fi
3955 AS=$ac_cv_prog_AS
3956 if test -n "$AS"; then
3957   echo "$as_me:$LINENO: result: $AS" >&5
3958 echo "${ECHO_T}$AS" >&6
3959 else
3960   echo "$as_me:$LINENO: result: no" >&5
3961 echo "${ECHO_T}no" >&6
3962 fi
3963
3964 fi
3965 if test -z "$ac_cv_prog_AS"; then
3966   ac_ct_AS=$AS
3967   # Extract the first word of "as", so it can be a program name with args.
3968 set dummy as; ac_word=$2
3969 echo "$as_me:$LINENO: checking for $ac_word" >&5
3970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3971 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3972   echo $ECHO_N "(cached) $ECHO_C" >&6
3973 else
3974   if test -n "$ac_ct_AS"; then
3975   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3976 else
3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978 for as_dir in $PATH
3979 do
3980   IFS=$as_save_IFS
3981   test -z "$as_dir" && as_dir=.
3982   for ac_exec_ext in '' $ac_executable_extensions; do
3983   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3984     ac_cv_prog_ac_ct_AS="as"
3985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3986     break 2
3987   fi
3988 done
3989 done
3990
3991 fi
3992 fi
3993 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3994 if test -n "$ac_ct_AS"; then
3995   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3996 echo "${ECHO_T}$ac_ct_AS" >&6
3997 else
3998   echo "$as_me:$LINENO: result: no" >&5
3999 echo "${ECHO_T}no" >&6
4000 fi
4001
4002   AS=$ac_ct_AS
4003 else
4004   AS="$ac_cv_prog_AS"
4005 fi
4006
4007 if test -n "$ac_tool_prefix"; then
4008   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4009 set dummy ${ac_tool_prefix}ld; ac_word=$2
4010 echo "$as_me:$LINENO: checking for $ac_word" >&5
4011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4012 if test "${ac_cv_prog_LD+set}" = set; then
4013   echo $ECHO_N "(cached) $ECHO_C" >&6
4014 else
4015   if test -n "$LD"; then
4016   ac_cv_prog_LD="$LD" # Let the user override the test.
4017 else
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH
4020 do
4021   IFS=$as_save_IFS
4022   test -z "$as_dir" && as_dir=.
4023   for ac_exec_ext in '' $ac_executable_extensions; do
4024   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4025     ac_cv_prog_LD="${ac_tool_prefix}ld"
4026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4027     break 2
4028   fi
4029 done
4030 done
4031
4032 fi
4033 fi
4034 LD=$ac_cv_prog_LD
4035 if test -n "$LD"; then
4036   echo "$as_me:$LINENO: result: $LD" >&5
4037 echo "${ECHO_T}$LD" >&6
4038 else
4039   echo "$as_me:$LINENO: result: no" >&5
4040 echo "${ECHO_T}no" >&6
4041 fi
4042
4043 fi
4044 if test -z "$ac_cv_prog_LD"; then
4045   ac_ct_LD=$LD
4046   # Extract the first word of "ld", so it can be a program name with args.
4047 set dummy ld; ac_word=$2
4048 echo "$as_me:$LINENO: checking for $ac_word" >&5
4049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4050 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4051   echo $ECHO_N "(cached) $ECHO_C" >&6
4052 else
4053   if test -n "$ac_ct_LD"; then
4054   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4055 else
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH
4058 do
4059   IFS=$as_save_IFS
4060   test -z "$as_dir" && as_dir=.
4061   for ac_exec_ext in '' $ac_executable_extensions; do
4062   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4063     ac_cv_prog_ac_ct_LD="ld"
4064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4065     break 2
4066   fi
4067 done
4068 done
4069
4070 fi
4071 fi
4072 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4073 if test -n "$ac_ct_LD"; then
4074   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4075 echo "${ECHO_T}$ac_ct_LD" >&6
4076 else
4077   echo "$as_me:$LINENO: result: no" >&5
4078 echo "${ECHO_T}no" >&6
4079 fi
4080
4081   LD=$ac_ct_LD
4082 else
4083   LD="$ac_cv_prog_LD"
4084 fi
4085
4086 if test -n "$ac_tool_prefix"; then
4087   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4088 set dummy ${ac_tool_prefix}ar; ac_word=$2
4089 echo "$as_me:$LINENO: checking for $ac_word" >&5
4090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4091 if test "${ac_cv_prog_AR+set}" = set; then
4092   echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094   if test -n "$AR"; then
4095   ac_cv_prog_AR="$AR" # Let the user override the test.
4096 else
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH
4099 do
4100   IFS=$as_save_IFS
4101   test -z "$as_dir" && as_dir=.
4102   for ac_exec_ext in '' $ac_executable_extensions; do
4103   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4104     ac_cv_prog_AR="${ac_tool_prefix}ar"
4105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4106     break 2
4107   fi
4108 done
4109 done
4110
4111 fi
4112 fi
4113 AR=$ac_cv_prog_AR
4114 if test -n "$AR"; then
4115   echo "$as_me:$LINENO: result: $AR" >&5
4116 echo "${ECHO_T}$AR" >&6
4117 else
4118   echo "$as_me:$LINENO: result: no" >&5
4119 echo "${ECHO_T}no" >&6
4120 fi
4121
4122 fi
4123 if test -z "$ac_cv_prog_AR"; then
4124   ac_ct_AR=$AR
4125   # Extract the first word of "ar", so it can be a program name with args.
4126 set dummy ar; ac_word=$2
4127 echo "$as_me:$LINENO: checking for $ac_word" >&5
4128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4129 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4130   echo $ECHO_N "(cached) $ECHO_C" >&6
4131 else
4132   if test -n "$ac_ct_AR"; then
4133   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4134 else
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4137 do
4138   IFS=$as_save_IFS
4139   test -z "$as_dir" && as_dir=.
4140   for ac_exec_ext in '' $ac_executable_extensions; do
4141   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142     ac_cv_prog_ac_ct_AR="ar"
4143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4144     break 2
4145   fi
4146 done
4147 done
4148
4149 fi
4150 fi
4151 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4152 if test -n "$ac_ct_AR"; then
4153   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4154 echo "${ECHO_T}$ac_ct_AR" >&6
4155 else
4156   echo "$as_me:$LINENO: result: no" >&5
4157 echo "${ECHO_T}no" >&6
4158 fi
4159
4160   AR=$ac_ct_AR
4161 else
4162   AR="$ac_cv_prog_AR"
4163 fi
4164
4165 if test -n "$ac_tool_prefix"; then
4166   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4167 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4168 echo "$as_me:$LINENO: checking for $ac_word" >&5
4169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4170 if test "${ac_cv_prog_RANLIB+set}" = set; then
4171   echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173   if test -n "$RANLIB"; then
4174   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4175 else
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 for as_dir in $PATH
4178 do
4179   IFS=$as_save_IFS
4180   test -z "$as_dir" && as_dir=.
4181   for ac_exec_ext in '' $ac_executable_extensions; do
4182   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4183     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4185     break 2
4186   fi
4187 done
4188 done
4189
4190 fi
4191 fi
4192 RANLIB=$ac_cv_prog_RANLIB
4193 if test -n "$RANLIB"; then
4194   echo "$as_me:$LINENO: result: $RANLIB" >&5
4195 echo "${ECHO_T}$RANLIB" >&6
4196 else
4197   echo "$as_me:$LINENO: result: no" >&5
4198 echo "${ECHO_T}no" >&6
4199 fi
4200
4201 fi
4202 if test -z "$ac_cv_prog_RANLIB"; then
4203   ac_ct_RANLIB=$RANLIB
4204   # Extract the first word of "ranlib", so it can be a program name with args.
4205 set dummy ranlib; ac_word=$2
4206 echo "$as_me:$LINENO: checking for $ac_word" >&5
4207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4208 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4209   echo $ECHO_N "(cached) $ECHO_C" >&6
4210 else
4211   if test -n "$ac_ct_RANLIB"; then
4212   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4213 else
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH
4216 do
4217   IFS=$as_save_IFS
4218   test -z "$as_dir" && as_dir=.
4219   for ac_exec_ext in '' $ac_executable_extensions; do
4220   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4221     ac_cv_prog_ac_ct_RANLIB="ranlib"
4222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4223     break 2
4224   fi
4225 done
4226 done
4227
4228   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4229 fi
4230 fi
4231 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4232 if test -n "$ac_ct_RANLIB"; then
4233   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4234 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4235 else
4236   echo "$as_me:$LINENO: result: no" >&5
4237 echo "${ECHO_T}no" >&6
4238 fi
4239
4240   RANLIB=$ac_ct_RANLIB
4241 else
4242   RANLIB="$ac_cv_prog_RANLIB"
4243 fi
4244
4245 for ac_prog in gawk mawk nawk awk
4246 do
4247   # Extract the first word of "$ac_prog", so it can be a program name with args.
4248 set dummy $ac_prog; ac_word=$2
4249 echo "$as_me:$LINENO: checking for $ac_word" >&5
4250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4251 if test "${ac_cv_prog_AWK+set}" = set; then
4252   echo $ECHO_N "(cached) $ECHO_C" >&6
4253 else
4254   if test -n "$AWK"; then
4255   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4256 else
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH
4259 do
4260   IFS=$as_save_IFS
4261   test -z "$as_dir" && as_dir=.
4262   for ac_exec_ext in '' $ac_executable_extensions; do
4263   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4264     ac_cv_prog_AWK="$ac_prog"
4265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4266     break 2
4267   fi
4268 done
4269 done
4270
4271 fi
4272 fi
4273 AWK=$ac_cv_prog_AWK
4274 if test -n "$AWK"; then
4275   echo "$as_me:$LINENO: result: $AWK" >&5
4276 echo "${ECHO_T}$AWK" >&6
4277 else
4278   echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6
4280 fi
4281
4282   test -n "$AWK" && break
4283 done
4284
4285 for ac_prog in jar fastjar gjar
4286 do
4287   # Extract the first word of "$ac_prog", so it can be a program name with args.
4288 set dummy $ac_prog; ac_word=$2
4289 echo "$as_me:$LINENO: checking for $ac_word" >&5
4290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4291 if test "${ac_cv_prog_JAR+set}" = set; then
4292   echo $ECHO_N "(cached) $ECHO_C" >&6
4293 else
4294   if test -n "$JAR"; then
4295   ac_cv_prog_JAR="$JAR" # Let the user override the test.
4296 else
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 for as_dir in $PATH
4299 do
4300   IFS=$as_save_IFS
4301   test -z "$as_dir" && as_dir=.
4302   for ac_exec_ext in '' $ac_executable_extensions; do
4303   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4304     ac_cv_prog_JAR="$ac_prog"
4305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4306     break 2
4307   fi
4308 done
4309 done
4310
4311 fi
4312 fi
4313 JAR=$ac_cv_prog_JAR
4314 if test -n "$JAR"; then
4315   echo "$as_me:$LINENO: result: $JAR" >&5
4316 echo "${ECHO_T}$JAR" >&6
4317 else
4318   echo "$as_me:$LINENO: result: no" >&5
4319 echo "${ECHO_T}no" >&6
4320 fi
4321
4322   test -n "$JAR" && break
4323 done
4324 test -n "$JAR" || JAR="no"
4325
4326 # Extract the first word of "zip", so it can be a program name with args.
4327 set dummy zip; ac_word=$2
4328 echo "$as_me:$LINENO: checking for $ac_word" >&5
4329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4330 if test "${ac_cv_path_ZIP+set}" = set; then
4331   echo $ECHO_N "(cached) $ECHO_C" >&6
4332 else
4333   case $ZIP in
4334   [\\/]* | ?:[\\/]*)
4335   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4336   ;;
4337   *)
4338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH
4340 do
4341   IFS=$as_save_IFS
4342   test -z "$as_dir" && as_dir=.
4343   for ac_exec_ext in '' $ac_executable_extensions; do
4344   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4345     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4347     break 2
4348   fi
4349 done
4350 done
4351
4352   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4353   ;;
4354 esac
4355 fi
4356 ZIP=$ac_cv_path_ZIP
4357
4358 if test -n "$ZIP"; then
4359   echo "$as_me:$LINENO: result: $ZIP" >&5
4360 echo "${ECHO_T}$ZIP" >&6
4361 else
4362   echo "$as_me:$LINENO: result: no" >&5
4363 echo "${ECHO_T}no" >&6
4364 fi
4365
4366 # Extract the first word of "unzip", so it can be a program name with args.
4367 set dummy unzip; ac_word=$2
4368 echo "$as_me:$LINENO: checking for $ac_word" >&5
4369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4370 if test "${ac_cv_path_UNZIP+set}" = set; then
4371   echo $ECHO_N "(cached) $ECHO_C" >&6
4372 else
4373   case $UNZIP in
4374   [\\/]* | ?:[\\/]*)
4375   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4376   ;;
4377   *)
4378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH
4380 do
4381   IFS=$as_save_IFS
4382   test -z "$as_dir" && as_dir=.
4383   for ac_exec_ext in '' $ac_executable_extensions; do
4384   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4385     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4387     break 2
4388   fi
4389 done
4390 done
4391
4392   test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4393   ;;
4394 esac
4395 fi
4396 UNZIP=$ac_cv_path_UNZIP
4397
4398 if test -n "$UNZIP"; then
4399   echo "$as_me:$LINENO: result: $UNZIP" >&5
4400 echo "${ECHO_T}$UNZIP" >&6
4401 else
4402   echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6
4404 fi
4405
4406
4407 # We need a jar that supports -@.  This is a GNU extension.
4408 if test "$JAR" != no; then
4409    rm -f config-test.jar
4410    echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
4411    if test -f config-test.jar; then
4412      rm -f config-test.jar
4413    else
4414      JAR=no
4415    fi
4416 fi
4417
4418 # Prefer the jar we found, but fall back to our jar script.
4419 if test "$JAR" = no; then
4420   if test "$ZIP" = no; then
4421     { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4422 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4423    { (exit 1); exit 1; }; }
4424   else
4425     # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4426     JAR=`pwd`/scripts/jar
4427   fi
4428 fi
4429
4430 # Find a good install program.  We prefer a C program (faster),
4431 # so one script is as good as another.  But avoid the broken or
4432 # incompatible versions:
4433 # SysV /etc/install, /usr/sbin/install
4434 # SunOS /usr/etc/install
4435 # IRIX /sbin/install
4436 # AIX /bin/install
4437 # AmigaOS /C/install, which installs bootblocks on floppy discs
4438 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4439 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4440 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4441 # OS/2's system install, which has a completely different semantic
4442 # ./install, which can be erroneously created by make from ./install.sh.
4443 # Reject install programs that cannot install multiple files.
4444 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4445 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4446 if test -z "$INSTALL"; then
4447 if test "${ac_cv_path_install+set}" = set; then
4448   echo $ECHO_N "(cached) $ECHO_C" >&6
4449 else
4450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH
4452 do
4453   IFS=$as_save_IFS
4454   test -z "$as_dir" && as_dir=.
4455   # Account for people who put trailing slashes in PATH elements.
4456 case $as_dir/ in
4457   ./ | .// | /cC/* | \
4458   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4459   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4460   /usr/ucb/* ) ;;
4461   *)
4462     # OSF1 and SCO ODT 3.0 have their own names for install.
4463     # Don't use installbsd from OSF since it installs stuff as root
4464     # by default.
4465     for ac_prog in ginstall scoinst install; do
4466       for ac_exec_ext in '' $ac_executable_extensions; do
4467         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4468           if test $ac_prog = install &&
4469             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4470             # AIX install.  It has an incompatible calling convention.
4471             :
4472           elif test $ac_prog = install &&
4473             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4474             # program-specific install script used by HP pwplus--don't use.
4475             :
4476           else
4477             rm -rf conftest.one conftest.two conftest.dir
4478             echo one > conftest.one
4479             echo two > conftest.two
4480             mkdir conftest.dir
4481             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4482               test -s conftest.one && test -s conftest.two &&
4483               test -s conftest.dir/conftest.one &&
4484               test -s conftest.dir/conftest.two
4485             then
4486               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4487               break 3
4488             fi
4489           fi
4490         fi
4491       done
4492     done
4493     ;;
4494 esac
4495 done
4496
4497 rm -rf conftest.one conftest.two conftest.dir
4498
4499 fi
4500   if test "${ac_cv_path_install+set}" = set; then
4501     INSTALL=$ac_cv_path_install
4502   else
4503     # As a last resort, use the slow shell script.  Don't cache a
4504     # value for INSTALL within a source directory, because that will
4505     # break other packages using the cache if that directory is
4506     # removed, or if the value is a relative name.
4507     INSTALL=$ac_install_sh
4508   fi
4509 fi
4510 echo "$as_me:$LINENO: result: $INSTALL" >&5
4511 echo "${ECHO_T}$INSTALL" >&6
4512
4513 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4514 # It thinks the first close brace ends the variable substitution.
4515 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4516
4517 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4518
4519 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4520
4521
4522 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4523 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4524     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4525 if test "${enable_maintainer_mode+set}" = set; then
4526   enableval="$enable_maintainer_mode"
4527   USE_MAINTAINER_MODE=$enableval
4528 else
4529   USE_MAINTAINER_MODE=no
4530 fi;
4531   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4532 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4533
4534
4535 if test $USE_MAINTAINER_MODE = yes; then
4536   MAINTAINER_MODE_TRUE=
4537   MAINTAINER_MODE_FALSE='#'
4538 else
4539   MAINTAINER_MODE_TRUE='#'
4540   MAINTAINER_MODE_FALSE=
4541 fi
4542
4543   MAINT=$MAINTAINER_MODE_TRUE
4544
4545
4546
4547
4548
4549 # configure.host sets the following important variables
4550 #       libgcj_cflags    - host specific C compiler flags
4551 #       libgcj_cxxflags  - host specific C++ compiler flags
4552 #       libgcj_javaflags - host specific Java compiler flags
4553
4554 libgcj_cflags=
4555 libgcj_cxxflags=
4556 libgcj_javaflags=
4557
4558 . ${srcdir}/configure.host
4559
4560 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4561 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4562 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4563   echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4566 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4567   acl_cv_prog_gnu_ld=yes
4568 else
4569   acl_cv_prog_gnu_ld=no
4570 fi
4571 fi
4572 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4573 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4574 with_gnu_ld=$acl_cv_prog_gnu_ld
4575
4576 echo "$as_me:$LINENO: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
4577 echo $ECHO_N "checking if the GNU linker ($LD) supports -Bsymbolic-functions... $ECHO_C" >&6
4578 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then
4579   echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581
4582 acl_cv_prog_gnu_ld_symbolic=no
4583
4584 if test x"$with_gnu_ld" = x"yes"; then
4585   if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
4586     acl_cv_prog_gnu_ld_symbolic=yes
4587   fi
4588 fi
4589 fi
4590 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld_symbolic" >&5
4591 echo "${ECHO_T}$acl_cv_prog_gnu_ld_symbolic" >&6
4592 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
4593   SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
4594 else
4595   SYMBOLIC_LDFLAGS=''
4596 fi
4597
4598 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
4599 if test -z "$libgcj_ld_symbolic"; then
4600   libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
4601 fi
4602
4603 LIBGCJ_CFLAGS="${libgcj_cflags}"
4604 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4605 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4606 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4607 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
4608
4609
4610
4611
4612
4613
4614 # Only use libltdl for non-newlib builds.
4615 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4616    echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4617 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4618 library_names_spec=
4619 libname_spec='lib$name'
4620 soname_spec=
4621 shrext=".so"
4622 postinstall_cmds=
4623 postuninstall_cmds=
4624 finish_cmds=
4625 finish_eval=
4626 shlibpath_var=
4627 shlibpath_overrides_runpath=unknown
4628 version_type=none
4629 dynamic_linker="$host_os ld.so"
4630 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4631 if test "$GCC" = yes; then
4632   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4633   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4634     # if the path contains ";" then we assume it to be the separator
4635     # otherwise default to the standard path separator (i.e. ":") - it is
4636     # assumed that no part of a normal pathname contains ";" but that should
4637     # okay in the real world where ";" in dirpaths is itself problematic.
4638     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4639   else
4640     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4641   fi
4642 else
4643   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4644 fi
4645 need_lib_prefix=unknown
4646 hardcode_into_libs=no
4647
4648 # when you set need_version to no, make sure it does not cause -set_version
4649 # flags to be left without arguments
4650 need_version=unknown
4651
4652 case $host_os in
4653 aix3*)
4654   version_type=linux
4655   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4656   shlibpath_var=LIBPATH
4657
4658   # AIX 3 has no versioning support, so we append a major version to the name.
4659   soname_spec='${libname}${release}${shared_ext}$major'
4660   ;;
4661
4662 aix[4-9]*)
4663   version_type=linux
4664   need_lib_prefix=no
4665   need_version=no
4666   hardcode_into_libs=yes
4667   if test "$host_cpu" = ia64; then
4668     # AIX 5 supports IA64
4669     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4670     shlibpath_var=LD_LIBRARY_PATH
4671   else
4672     # With GCC up to 2.95.x, collect2 would create an import file
4673     # for dependence libraries.  The import file would start with
4674     # the line `#! .'.  This would cause the generated library to
4675     # depend on `.', always an invalid library.  This was fixed in
4676     # development snapshots of GCC prior to 3.0.
4677     case $host_os in
4678       aix4 | aix4.[01] | aix4.[01].*)
4679       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4680            echo ' yes '
4681            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4682         :
4683       else
4684         can_build_shared=no
4685       fi
4686       ;;
4687     esac
4688     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4689     # soname into executable. Probably we can add versioning support to
4690     # collect2, so additional links can be useful in future.
4691     if test "$aix_use_runtimelinking" = yes; then
4692       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4693       # instead of lib<name>.a to let people know that these are not
4694       # typical AIX shared libraries.
4695       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4696     else
4697       # We preserve .a as extension for shared libraries through AIX4.2
4698       # and later when we are not doing run time linking.
4699       library_names_spec='${libname}${release}.a $libname.a'
4700       soname_spec='${libname}${release}${shared_ext}$major'
4701     fi
4702     shlibpath_var=LIBPATH
4703   fi
4704   ;;
4705
4706 amigaos*)
4707   library_names_spec='$libname.ixlibrary $libname.a'
4708   # Create ${libname}_ixlibrary.a entries in /sys/libs.
4709   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'
4710   ;;
4711
4712 beos*)
4713   library_names_spec='${libname}${shared_ext}'
4714   dynamic_linker="$host_os ld.so"
4715   shlibpath_var=LIBRARY_PATH
4716   ;;
4717
4718 bsdi4*)
4719   version_type=linux
4720   need_version=no
4721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4722   soname_spec='${libname}${release}${shared_ext}$major'
4723   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4724   shlibpath_var=LD_LIBRARY_PATH
4725   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4726   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4727   # the default ld.so.conf also contains /usr/contrib/lib and
4728   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4729   # libtool to hard-code these into programs
4730   ;;
4731
4732 cygwin* | mingw* | pw32*)
4733   version_type=windows
4734   shrext=".dll"
4735   need_version=no
4736   need_lib_prefix=no
4737
4738   case $GCC,$host_os in
4739   yes,cygwin* | yes,mingw* | yes,pw32*)
4740     library_names_spec='$libname.dll.a'
4741     # DLL is installed to $(libdir)/../bin by postinstall_cmds
4742     postinstall_cmds='base_file=`basename \${file}`~
4743       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4744       dldir=$destdir/`dirname \$dlpath`~
4745       test -d \$dldir || mkdir -p \$dldir~
4746       $install_prog $dir/$dlname \$dldir/$dlname'
4747     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4748       dlpath=$dir/\$dldll~
4749        $rm \$dlpath'
4750     shlibpath_overrides_runpath=yes
4751
4752     case $host_os in
4753     cygwin*)
4754       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4755       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4756       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4757       ;;
4758     mingw*)
4759       # MinGW DLLs use traditional 'lib' prefix
4760       soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4761       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4762       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4763         # It is most probably a Windows format PATH printed by
4764         # mingw gcc, but we are running on Cygwin. Gcc prints its search
4765         # path with ; separators, and with drive letters. We can handle the
4766         # drive letters (cygwin fileutils understands them), so leave them,
4767         # especially as we might pass files found there to a mingw objdump,
4768         # which wouldn't understand a cygwinified path. Ahh.
4769         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4770       else
4771         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4772       fi
4773       ;;
4774     pw32*)
4775       # pw32 DLLs use 'pw' prefix rather than 'lib'
4776       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4777       ;;
4778     esac
4779     ;;
4780
4781   *)
4782     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4783     ;;
4784   esac
4785   dynamic_linker='Win32 ld.exe'
4786   # FIXME: first we should search . and the directory the executable is in
4787   shlibpath_var=PATH
4788   ;;
4789
4790 darwin* | rhapsody*)
4791   dynamic_linker="$host_os dyld"
4792   version_type=darwin
4793   need_lib_prefix=no
4794   need_version=no
4795   # FIXME: Relying on posixy $() will cause problems for
4796   #        cross-compilation, but unfortunately the echo tests do not
4797   #        yet detect zsh echo's removal of \ escapes.
4798   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4799   soname_spec='${libname}${release}${major}$shared_ext'
4800   shlibpath_overrides_runpath=yes
4801   shlibpath_var=DYLD_LIBRARY_PATH
4802   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4803   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4804   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4805   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"`
4806   fi
4807   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4808   ;;
4809
4810 dgux*)
4811   version_type=linux
4812   need_lib_prefix=no
4813   need_version=no
4814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4815   soname_spec='${libname}${release}${shared_ext}$major'
4816   shlibpath_var=LD_LIBRARY_PATH
4817   ;;
4818
4819 freebsd1*)
4820   dynamic_linker=no
4821   ;;
4822
4823 freebsd*)
4824   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4825   version_type=freebsd-$objformat
4826   case $version_type in
4827     freebsd-elf*)
4828       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4829       need_version=no
4830       need_lib_prefix=no
4831       ;;
4832     freebsd-*)
4833       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4834       need_version=yes
4835       ;;
4836   esac
4837   shlibpath_var=LD_LIBRARY_PATH
4838   case $host_os in
4839   freebsd2*)
4840     shlibpath_overrides_runpath=yes
4841     ;;
4842   freebsd3.01* | freebsdelf3.01*)
4843     shlibpath_overrides_runpath=yes
4844     hardcode_into_libs=yes
4845     ;;
4846   *) # from 3.2 on
4847     shlibpath_overrides_runpath=no
4848     hardcode_into_libs=yes
4849     ;;
4850   esac
4851   ;;
4852
4853 gnu*)
4854   version_type=linux
4855   need_lib_prefix=no
4856   need_version=no
4857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4858   soname_spec='${libname}${release}${shared_ext}$major'
4859   shlibpath_var=LD_LIBRARY_PATH
4860   hardcode_into_libs=yes
4861   ;;
4862
4863 hpux9* | hpux10* | hpux11*)
4864   # Give a soname corresponding to the major version so that dld.sl refuses to
4865   # link against other versions.
4866   version_type=sunos
4867   need_lib_prefix=no
4868   need_version=no
4869   case "$host_cpu" in
4870   ia64*)
4871     shrext='.so'
4872     hardcode_into_libs=yes
4873     dynamic_linker="$host_os dld.so"
4874     shlibpath_var=LD_LIBRARY_PATH
4875     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4876     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4877     soname_spec='${libname}${release}${shared_ext}$major'
4878     if test "X$HPUX_IA64_MODE" = X32; then
4879       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4880     else
4881       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4882     fi
4883     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4884     ;;
4885    hppa*64*)
4886      shrext='.sl'
4887      hardcode_into_libs=yes
4888      dynamic_linker="$host_os dld.sl"
4889      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4890      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4891      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4892      soname_spec='${libname}${release}${shared_ext}$major'
4893      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4894      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4895      ;;
4896    *)
4897     shrext='.sl'
4898     dynamic_linker="$host_os dld.sl"
4899     shlibpath_var=SHLIB_PATH
4900     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4901     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4902     soname_spec='${libname}${release}${shared_ext}$major'
4903     ;;
4904   esac
4905   # HP-UX runs *really* slowly unless shared libraries are mode 555.
4906   postinstall_cmds='chmod 555 $lib'
4907   ;;
4908
4909 irix5* | irix6* | nonstopux*)
4910   case $host_os in
4911     nonstopux*) version_type=nonstopux ;;
4912     *)
4913         if test "$lt_cv_prog_gnu_ld" = yes; then
4914                 version_type=linux
4915         else
4916                 version_type=irix
4917         fi ;;
4918   esac
4919   need_lib_prefix=no
4920   need_version=no
4921   soname_spec='${libname}${release}${shared_ext}$major'
4922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4923   case $host_os in
4924   irix5* | nonstopux*)
4925     libsuff= shlibsuff=
4926     ;;
4927   *)
4928     case $LD in # libtool.m4 will add one of these switches to LD
4929     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4930       libsuff= shlibsuff= libmagic=32-bit;;
4931     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4932       libsuff=32 shlibsuff=N32 libmagic=N32;;
4933     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4934       libsuff=64 shlibsuff=64 libmagic=64-bit;;
4935     *) libsuff= shlibsuff= libmagic=never-match;;
4936     esac
4937     ;;
4938   esac
4939   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4940   shlibpath_overrides_runpath=no
4941   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4942   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4943   hardcode_into_libs=yes
4944   ;;
4945
4946 # No shared lib support for Linux oldld, aout, or coff.
4947 linux*oldld* | linux*aout* | linux*coff*)
4948   dynamic_linker=no
4949   ;;
4950
4951 # This must be Linux ELF.
4952 linux*|k*bsd*-gnu)
4953   version_type=linux
4954   need_lib_prefix=no
4955   need_version=no
4956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4957   soname_spec='${libname}${release}${shared_ext}$major'
4958   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4959   shlibpath_var=LD_LIBRARY_PATH
4960   shlibpath_overrides_runpath=no
4961   # This implies no fast_install, which is unacceptable.
4962   # Some rework will be needed to allow for fast_install
4963   # before this can be enabled.
4964   hardcode_into_libs=yes
4965
4966   # We used to test for /lib/ld.so.1 and disable shared libraries on
4967   # powerpc, because MkLinux only supported shared libraries with the
4968   # GNU dynamic linker.  Since this was broken with cross compilers,
4969   # most powerpc-linux boxes support dynamic linking these days and
4970   # people can always --disable-shared, the test was removed, and we
4971   # assume the GNU/Linux dynamic linker is in use.
4972   dynamic_linker='GNU/Linux ld.so'
4973   ;;
4974
4975 netbsd*)
4976   version_type=sunos
4977   need_lib_prefix=no
4978   need_version=no
4979   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4980     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4981     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4982     dynamic_linker='NetBSD (a.out) ld.so'
4983   else
4984     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4985     soname_spec='${libname}${release}${shared_ext}$major'
4986     dynamic_linker='NetBSD ld.elf_so'
4987   fi
4988   shlibpath_var=LD_LIBRARY_PATH
4989   shlibpath_overrides_runpath=yes
4990   hardcode_into_libs=yes
4991   ;;
4992
4993 newsos6)
4994   version_type=linux
4995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4996   shlibpath_var=LD_LIBRARY_PATH
4997   shlibpath_overrides_runpath=yes
4998   ;;
4999
5000 nto-qnx)
5001   version_type=linux
5002   need_lib_prefix=no
5003   need_version=no
5004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5005   soname_spec='${libname}${release}${shared_ext}$major'
5006   shlibpath_var=LD_LIBRARY_PATH
5007   shlibpath_overrides_runpath=yes
5008   ;;
5009
5010 openbsd*)
5011   version_type=sunos
5012   need_lib_prefix=no
5013   need_version=no
5014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5015   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5016   shlibpath_var=LD_LIBRARY_PATH
5017   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5018     case $host_os in
5019       openbsd2.[89] | openbsd2.[89].*)
5020         shlibpath_overrides_runpath=no
5021         ;;
5022       *)
5023         shlibpath_overrides_runpath=yes
5024         ;;
5025       esac
5026   else
5027     shlibpath_overrides_runpath=yes
5028   fi
5029   ;;
5030
5031 os2*)
5032   libname_spec='$name'
5033   shrext=".dll"
5034   need_lib_prefix=no
5035   library_names_spec='$libname${shared_ext} $libname.a'
5036   dynamic_linker='OS/2 ld.exe'
5037   shlibpath_var=LIBPATH
5038   ;;
5039
5040 osf3* | osf4* | osf5*)
5041   version_type=osf
5042   need_lib_prefix=no
5043   need_version=no
5044   soname_spec='${libname}${release}${shared_ext}$major'
5045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5046   shlibpath_var=LD_LIBRARY_PATH
5047   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5048   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5049   ;;
5050
5051 sco3.2v5*)
5052   version_type=osf
5053   soname_spec='${libname}${release}${shared_ext}$major'
5054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5055   shlibpath_var=LD_LIBRARY_PATH
5056   ;;
5057
5058 solaris*)
5059   version_type=linux
5060   need_lib_prefix=no
5061   need_version=no
5062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5063   soname_spec='${libname}${release}${shared_ext}$major'
5064   shlibpath_var=LD_LIBRARY_PATH
5065   shlibpath_overrides_runpath=yes
5066   hardcode_into_libs=yes
5067   # ldd complains unless libraries are executable
5068   postinstall_cmds='chmod +x $lib'
5069   ;;
5070
5071 sunos4*)
5072   version_type=sunos
5073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5074   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5075   shlibpath_var=LD_LIBRARY_PATH
5076   shlibpath_overrides_runpath=yes
5077   if test "$with_gnu_ld" = yes; then
5078     need_lib_prefix=no
5079   fi
5080   need_version=yes
5081   ;;
5082
5083 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5084   version_type=linux
5085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5086   soname_spec='${libname}${release}${shared_ext}$major'
5087   shlibpath_var=LD_LIBRARY_PATH
5088   case $host_vendor in
5089     sni)
5090       shlibpath_overrides_runpath=no
5091       need_lib_prefix=no
5092       export_dynamic_flag_spec='${wl}-Blargedynsym'
5093       runpath_var=LD_RUN_PATH
5094       ;;
5095     siemens)
5096       need_lib_prefix=no
5097       ;;
5098     motorola)
5099       need_lib_prefix=no
5100       need_version=no
5101       shlibpath_overrides_runpath=no
5102       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5103       ;;
5104   esac
5105   ;;
5106
5107 sysv4*MP*)
5108   if test -d /usr/nec ;then
5109     version_type=linux
5110     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
5111     soname_spec='$libname${shared_ext}.$major'
5112     shlibpath_var=LD_LIBRARY_PATH
5113   fi
5114   ;;
5115
5116 uts4*)
5117   version_type=linux
5118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5119   soname_spec='${libname}${release}${shared_ext}$major'
5120   shlibpath_var=LD_LIBRARY_PATH
5121   ;;
5122
5123 *)
5124   dynamic_linker=no
5125   ;;
5126 esac
5127 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5128 echo "${ECHO_T}$dynamic_linker" >&6
5129 test "$dynamic_linker" = no && can_build_shared=no
5130
5131
5132 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
5133 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
5134 if test "${libltdl_cv_shlibpath_var+set}" = set; then
5135   echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137   libltdl_cv_shlibpath_var="$shlibpath_var"
5138 fi
5139 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
5140 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
5141 if test -n "$libltdl_cv_shlibpath_var"; then
5142
5143 cat >>confdefs.h <<_ACEOF
5144 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
5145 _ACEOF
5146
5147 fi
5148
5149 fi
5150
5151                     ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
5152
5153
5154 # See if the user has requested runtime debugging.
5155 LIBGCJDEBUG="disable"
5156
5157 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5158 if test "${enable_libgcj_debug+set}" = set; then
5159   enableval="$enable_libgcj_debug"
5160   if test "$enable_libgcj_debug" = yes; then
5161
5162 cat >>confdefs.h <<\_ACEOF
5163 #define DEBUG 1
5164 _ACEOF
5165
5166     LIBGCJDEBUG="enable"
5167   fi
5168 fi;
5169
5170
5171 # Check whether --with-escher or --without-escher was given.
5172 if test "${with_escher+set}" = set; then
5173   withval="$with_escher"
5174
5175 fi;
5176 case "$with_escher" in
5177 "")
5178         use_escher=false
5179         ;;
5180 "no")
5181         use_escher=false
5182         ;;
5183 "yes")
5184         { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
5185 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
5186    { (exit 1); exit 1; }; }
5187         ;;
5188 *)
5189         use_escher=true
5190         ;;
5191 esac
5192
5193 # Determine which AWT peer libraries to build
5194 # Check whether --enable-java-awt or --disable-java-awt was given.
5195 if test "${enable_java_awt+set}" = set; then
5196   enableval="$enable_java_awt"
5197
5198 fi;
5199
5200 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
5201 use_xlib_awt=""
5202 use_gtk_awt=""
5203 use_qt_awt=""
5204 use_x_awt=""
5205 # The default toolkit to use is the first one specified.
5206 TOOLKIT=
5207
5208
5209 for peer in $peerlibs ; do
5210   case $peer in
5211     xlib)
5212       if test "$no_x" = yes; then
5213         echo "*** xlib peers requested but no X library available" 1>&2
5214         exit 1
5215       else
5216         use_xlib_awt="yes"
5217         if test -z "$TOOLKIT"; then
5218            TOOLKIT=gnu.awt.xlib.XToolkit
5219         fi
5220       fi
5221       ;;
5222     gtk)
5223       if test "$no_x" = yes; then
5224          echo "*** gtk peers requested but no X library available" 1>&2
5225          exit 1
5226       else
5227          use_gtk_awt=yes
5228          if test -z "$TOOLKIT"; then
5229             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
5230          fi
5231       fi
5232       ;;
5233     qt)
5234       if test "$no_x" = yes; then
5235          # Perhaps we should admit the possibility of embedded Qt.
5236          echo "*** Qt peers requested but no X library available" 1>&2
5237          exit 1
5238       else
5239          use_qt_awt=yes
5240          if test -z "$TOOLKIT"; then
5241             TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
5242          fi
5243       fi
5244       ;;
5245     x)
5246       use_x_awt=yes
5247       if test -z "$TOOLKIT"; then
5248          TOOLKIT=gnu.java.awt.peer.x.XToolkit
5249       fi
5250       ;;
5251     no)
5252       use_xlib_awt=
5253       use_gtk_awt=
5254       use_qt_awt=
5255       use_x_awt=
5256       break
5257       ;;
5258     *)
5259       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
5260       exit 1
5261   esac
5262 done
5263
5264
5265
5266 if test "$use_xlib_awt" = yes; then
5267   XLIB_AWT_TRUE=
5268   XLIB_AWT_FALSE='#'
5269 else
5270   XLIB_AWT_TRUE='#'
5271   XLIB_AWT_FALSE=
5272 fi
5273
5274
5275
5276 if test "$use_x_awt" = yes; then
5277   X_AWT_TRUE=
5278   X_AWT_FALSE='#'
5279 else
5280   X_AWT_TRUE='#'
5281   X_AWT_FALSE=
5282 fi
5283
5284
5285
5286 cat >>confdefs.h <<_ACEOF
5287 #define AWT_TOOLKIT "$TOOLKIT"
5288 _ACEOF
5289
5290
5291
5292 cat >>confdefs.h <<_ACEOF
5293 #define LIBGCJ_PREFIX "$prefix"
5294 _ACEOF
5295
5296
5297 # Create standard.omit based on decisions we just made.
5298 cp $srcdir/standard.omit.in standard.omit
5299 if test "$use_xlib_awt" != yes; then
5300    echo gnu/awt/xlib >> standard.omit
5301    echo gnu/gcj/xlib >> standard.omit
5302 fi
5303 if test "$use_x_awt" != yes; then
5304    echo gnu/java/awt/peer/x >> standard.omit
5305 fi
5306
5307 # Tools that need to be compiled against classpath's tools classes
5308 : > vm-tools-packages
5309 for package in gnu/gcj/tools/gc_analyze ; do
5310     echo $package >> standard.omit
5311     echo $package >> vm-tools-packages
5312 done
5313
5314 if test -z "${with_multisubdir}"; then
5315    builddotdot=.
5316 else
5317    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5318 fi
5319
5320 NATIVE=yes
5321
5322 # Which gcj and host gcj (for ecjx) do we use?
5323 which_gcj=default
5324 host_exeext=${ac_exeext}
5325 GCJ_FOR_ECJX=
5326 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
5327 if test -n "${with_cross_host}"; then
5328   # We are being configured with a cross compiler. We can't
5329   # use ac_exeext, because that is for the target platform.
5330   NATIVE=no
5331   cross_host_exeext=
5332   GCJ_FOR_ECJX="${with_cross_host}-gcj"
5333   case "${with_cross_host}" in
5334      *mingw* | *cygwin*)
5335          cross_host_exeext=.exe
5336      ;;
5337   esac
5338   host_exeext=${cross_host_exeext}
5339   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
5340      if test x"$build_noncanonical" = x"$with_cross_host"; then
5341         # Ordinary cross (host!=target and host=build)
5342         which_gcj=built
5343      else
5344         # Canadian cross (host!=target and host!=build)
5345         which_gcj=cross
5346      fi
5347   else
5348      which_gcj=cross
5349   fi
5350 else
5351   # We are being configured with a native or crossed-native compiler
5352   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
5353      if test x"$build" = x"$host"; then
5354         # True native build (host=target and host=build)
5355         which_gcj=built
5356      else
5357         # Crossed-native build (host=target and host!=build)
5358         which_gcj=cross
5359      fi
5360   else
5361      which_gcj=path
5362   fi
5363 fi
5364 case "${which_gcj}" in
5365    built)
5366       GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5367       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5368    ;;
5369    cross)
5370       if test "x${with_newlib}" = "xyes"; then
5371          # FIXME (comment): Why is this needed?
5372          GCC_UNWIND_INCLUDE=
5373          GCJ="${target_noncanonical}-gcj"
5374       else
5375          GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5376       fi
5377       GCJH='$(target_noncanonical)-gcjh'
5378    ;;
5379    path)
5380       GCJ="gcj -B`${PWDCMD-pwd}`/"
5381       GCJH=gcjh
5382    ;;
5383 esac
5384 JAVAC="$GCJ -C"
5385 export JAVAC
5386
5387
5388
5389
5390
5391 # Create it, so that compile/link tests don't fail
5392 test -f libgcj.spec || touch libgcj.spec
5393
5394
5395
5396 # Set up to configure Classpath.
5397 # FIXME: no supported way to pass args in autoconf.
5398 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5399 # Disable tool wrappers to avoid ltdl.h configure check.
5400 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
5401 ac_configure_args="$ac_configure_args --disable-load-library"
5402 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5403 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5404 dir1=`cd $srcdir && pwd`
5405 dir2=`pwd`
5406 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5407 ac_configure_args="$ac_configure_args --disable-core-jni"
5408 ac_configure_args="$ac_configure_args --disable-examples"
5409 ac_configure_args="$ac_configure_args --with-glibj=build"
5410 if test "$plugin_enabled" != yes; then
5411   ac_configure_args="$ac_configure_args --disable-plugin"
5412 fi
5413 if test "$gconf_enabled" != yes; then
5414   ac_configure_args="$ac_configure_args --disable-gconf-peer"
5415   ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5416 fi
5417 if test "$use_gtk_awt" != yes; then
5418   ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
5419 fi
5420 if test "$use_qt_awt" != yes; then
5421   ac_configure_args="$ac_configure_args --disable-qt-peer"
5422 else
5423   # We need this as qt is disabled by default in classpath.
5424   ac_configure_args="$ac_configure_args --enable-qt-peer"
5425 fi
5426 if test "$use_x_awt" != yes; then
5427   ac_configure_args="$ac_configure_args --without-escher"
5428 else
5429   # We need this as escher is disabled by default in classpath.
5430   if test "$use_escher" != true; then
5431     { { echo "$as_me:$LINENO: error: Please supply an absolute path to the Escher library" >&5
5432 echo "$as_me: error: Please supply an absolute path to the Escher library" >&2;}
5433    { (exit 1); exit 1; }; }
5434   else
5435     ac_configure_args="$ac_configure_args --with-escher=$with_escher"
5436   fi
5437 fi
5438 # -Werror causes unavoidable problems in code using alsa.
5439 ac_configure_args="$ac_configure_args --disable-regen-headers"
5440 ac_configure_args="$ac_configure_args --disable-Werror"
5441
5442 # Only use libltdl for non-newlib builds.
5443 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5444      case $enable_ltdl_convenience in
5445   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5446 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5447    { (exit 1); exit 1; }; } ;;
5448   "") enable_ltdl_convenience=yes
5449       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5450   esac
5451   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5452   LTDLINCL='-I${top_srcdir}/''libltdl'
5453   # For backwards non-gettext consistent compatibility...
5454   INCLTDL="$LTDLINCL"
5455
5456    enable_dlopen=yes
5457
5458
5459
5460    DIRLTDL=libltdl
5461
5462 cat >>confdefs.h <<\_ACEOF
5463 #define USE_LTDL 1
5464 _ACEOF
5465
5466    # Sigh.  Libtool's macro doesn't do the right thing.
5467    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5468    # FIXME: this is a hack.
5469    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5470    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5471 fi
5472
5473
5474
5475
5476
5477 macro_version='2.1a'
5478 macro_revision='1.2435'
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491 ltmain="$ac_aux_dir/ltmain.sh"
5492
5493 # Set options
5494
5495
5496 enable_win32_dll=no
5497
5498
5499 # Check whether --enable-shared or --disable-shared was given.
5500 if test "${enable_shared+set}" = set; then
5501   enableval="$enable_shared"
5502   p=${PACKAGE-default}
5503     case $enableval in
5504     yes) enable_shared=yes ;;
5505     no) enable_shared=no ;;
5506     *)
5507       enable_shared=no
5508       # Look at the argument we got.  We use all the common list separators.
5509       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5510       for pkg in $enableval; do
5511         IFS="$lt_save_ifs"
5512         if test "X$pkg" = "X$p"; then
5513           enable_shared=yes
5514         fi
5515       done
5516       IFS="$lt_save_ifs"
5517       ;;
5518     esac
5519 else
5520   enable_shared=yes
5521 fi;
5522
5523
5524
5525
5526
5527
5528
5529
5530 # Check whether --enable-static or --disable-static was given.
5531 if test "${enable_static+set}" = set; then
5532   enableval="$enable_static"
5533   p=${PACKAGE-default}
5534     case $enableval in
5535     yes) enable_static=yes ;;
5536     no) enable_static=no ;;
5537     *)
5538      enable_static=no
5539       # Look at the argument we got.  We use all the common list separators.
5540       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5541       for pkg in $enableval; do
5542         IFS="$lt_save_ifs"
5543         if test "X$pkg" = "X$p"; then
5544           enable_static=yes
5545         fi
5546       done
5547       IFS="$lt_save_ifs"
5548       ;;
5549     esac
5550 else
5551   enable_static=yes
5552 fi;
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562 # Check whether --with-pic or --without-pic was given.
5563 if test "${with_pic+set}" = set; then
5564   withval="$with_pic"
5565   pic_mode="$withval"
5566 else
5567   pic_mode=default
5568 fi;
5569
5570 test -z "$pic_mode" && pic_mode=default
5571
5572
5573
5574
5575
5576
5577
5578 # Check whether --enable-fast-install or --disable-fast-install was given.
5579 if test "${enable_fast_install+set}" = set; then
5580   enableval="$enable_fast_install"
5581   p=${PACKAGE-default}
5582     case $enableval in
5583     yes) enable_fast_install=yes ;;
5584     no) enable_fast_install=no ;;
5585     *)
5586       enable_fast_install=no
5587       # Look at the argument we got.  We use all the common list separators.
5588       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5589       for pkg in $enableval; do
5590         IFS="$lt_save_ifs"
5591         if test "X$pkg" = "X$p"; then
5592           enable_fast_install=yes
5593         fi
5594       done
5595       IFS="$lt_save_ifs"
5596       ;;
5597     esac
5598 else
5599   enable_fast_install=yes
5600 fi;
5601
5602
5603
5604
5605
5606
5607
5608
5609 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5610 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5611 if test "${lt_cv_path_SED+set}" = set; then
5612   echo $ECHO_N "(cached) $ECHO_C" >&6
5613 else
5614   # Loop through the user's path and test for sed and gsed.
5615 # Then use that list of sed's as ones to test for truncation.
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in $PATH
5618 do
5619   IFS=$as_save_IFS
5620   test -z "$as_dir" && as_dir=.
5621   for lt_ac_prog in sed gsed; do
5622     for ac_exec_ext in '' $ac_executable_extensions; do
5623       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5624         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5625       fi
5626     done
5627   done
5628 done
5629 IFS=$as_save_IFS
5630 lt_ac_max=0
5631 lt_ac_count=0
5632 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5633 # along with /bin/sed that truncates output.
5634 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5635   test ! -f $lt_ac_sed && continue
5636   cat /dev/null > conftest.in
5637   lt_ac_count=0
5638   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5639   # Check for GNU sed and select it if it is found.
5640   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5641     lt_cv_path_SED=$lt_ac_sed
5642     break
5643   fi
5644   while true; do
5645     cat conftest.in conftest.in >conftest.tmp
5646     mv conftest.tmp conftest.in
5647     cp conftest.in conftest.nl
5648     echo >>conftest.nl
5649     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5650     cmp -s conftest.out conftest.nl || break
5651     # 10000 chars as input seems more than enough
5652     test $lt_ac_count -gt 10 && break
5653     lt_ac_count=`expr $lt_ac_count + 1`
5654     if test $lt_ac_count -gt $lt_ac_max; then
5655       lt_ac_max=$lt_ac_count
5656       lt_cv_path_SED=$lt_ac_sed
5657     fi
5658   done
5659 done
5660
5661 fi
5662
5663 SED=$lt_cv_path_SED
5664
5665 echo "$as_me:$LINENO: result: $SED" >&5
5666 echo "${ECHO_T}$SED" >&6
5667
5668 test -z "$SED" && SED=sed
5669 Xsed="$SED -e 1s/^X//"
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681 echo "$as_me:$LINENO: checking for egrep" >&5
5682 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5683 if test "${ac_cv_prog_egrep+set}" = set; then
5684   echo $ECHO_N "(cached) $ECHO_C" >&6
5685 else
5686   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5687     then ac_cv_prog_egrep='grep -E'
5688     else ac_cv_prog_egrep='egrep'
5689     fi
5690 fi
5691 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5692 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5693  EGREP=$ac_cv_prog_egrep
5694
5695
5696 echo "$as_me:$LINENO: checking for fgrep" >&5
5697 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5698 if test "${ac_cv_prog_fgrep+set}" = set; then
5699   echo $ECHO_N "(cached) $ECHO_C" >&6
5700 else
5701   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5702     then ac_cv_prog_fgrep='grep -F'
5703     else ac_cv_prog_fgrep='fgrep'
5704     fi
5705 fi
5706 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5707 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5708  FGREP=$ac_cv_prog_fgrep
5709
5710
5711 test -z "$GREP" && GREP=grep
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5732 if test "${with_gnu_ld+set}" = set; then
5733   withval="$with_gnu_ld"
5734   test "$withval" = no || with_gnu_ld=yes
5735 else
5736   with_gnu_ld=no
5737 fi;
5738 ac_prog=ld
5739 if test "$GCC" = yes; then
5740   # Check if gcc -print-prog-name=ld gives a path.
5741   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5742 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5743   case $host in
5744   *-*-mingw*)
5745     # gcc leaves a trailing carriage return which upsets mingw
5746     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5747   *)
5748     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5749   esac
5750   case $ac_prog in
5751     # Accept absolute paths.
5752     [\\/]* | ?:[\\/]*)
5753       re_direlt='/[^/][^/]*/\.\./'
5754       # Canonicalize the pathname of ld
5755       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5756       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5757         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5758       done
5759       test -z "$LD" && LD="$ac_prog"
5760       ;;
5761   "")
5762     # If it fails, then pretend we aren't using GCC.
5763     ac_prog=ld
5764     ;;
5765   *)
5766     # If it is relative, then search for the first ld in PATH.
5767     with_gnu_ld=unknown
5768     ;;
5769   esac
5770 elif test "$with_gnu_ld" = yes; then
5771   echo "$as_me:$LINENO: checking for GNU ld" >&5
5772 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5773 else
5774   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5775 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5776 fi
5777 if test "${lt_cv_path_LD+set}" = set; then
5778   echo $ECHO_N "(cached) $ECHO_C" >&6
5779 else
5780   if test -z "$LD"; then
5781   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5782   for ac_dir in $PATH; do
5783     IFS="$lt_save_ifs"
5784     test -z "$ac_dir" && ac_dir=.
5785     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5786       lt_cv_path_LD="$ac_dir/$ac_prog"
5787       # Check to see if the program is GNU ld.  I'd rather use --version,
5788       # but apparently some variants of GNU ld only accept -v.
5789       # Break only if it was the GNU/non-GNU ld that we prefer.
5790       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5791       *GNU* | *'with BFD'*)
5792         test "$with_gnu_ld" != no && break
5793         ;;
5794       *)
5795         test "$with_gnu_ld" != yes && break
5796         ;;
5797       esac
5798     fi
5799   done
5800   IFS="$lt_save_ifs"
5801 else
5802   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5803 fi
5804 fi
5805
5806 LD="$lt_cv_path_LD"
5807 if test -n "$LD"; then
5808   echo "$as_me:$LINENO: result: $LD" >&5
5809 echo "${ECHO_T}$LD" >&6
5810 else
5811   echo "$as_me:$LINENO: result: no" >&5
5812 echo "${ECHO_T}no" >&6
5813 fi
5814 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5815 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5816    { (exit 1); exit 1; }; }
5817 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5818 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5819 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5820   echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5823 case `$LD -v 2>&1 </dev/null` in
5824 *GNU* | *'with BFD'*)
5825   lt_cv_prog_gnu_ld=yes
5826   ;;
5827 *)
5828   lt_cv_prog_gnu_ld=no
5829   ;;
5830 esac
5831 fi
5832 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5833 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5834 with_gnu_ld=$lt_cv_prog_gnu_ld
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5846 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5847 if test "${lt_cv_path_NM+set}" = set; then
5848   echo $ECHO_N "(cached) $ECHO_C" >&6
5849 else
5850   if test -n "$NM"; then
5851   # Let the user override the test.
5852   lt_cv_path_NM="$NM"
5853 else
5854   lt_nm_to_check="${ac_tool_prefix}nm"
5855   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5856     lt_nm_to_check="$lt_nm_to_check nm"
5857   fi
5858   for lt_tmp_nm in $lt_nm_to_check; do
5859     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5860     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5861       IFS="$lt_save_ifs"
5862       test -z "$ac_dir" && ac_dir=.
5863       tmp_nm="$ac_dir/$lt_tmp_nm"
5864       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5865         # Check to see if the nm accepts a BSD-compat flag.
5866         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5867         #   nm: unknown option "B" ignored
5868         # Tru64's nm complains that /dev/null is an invalid object file
5869         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5870         */dev/null* | *'Invalid file or object type'*)
5871           lt_cv_path_NM="$tmp_nm -B"
5872           break
5873           ;;
5874         *)
5875           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5876           */dev/null*)
5877             lt_cv_path_NM="$tmp_nm -p"
5878             break
5879             ;;
5880           *)
5881             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5882             continue # so that we can try to find one that supports BSD flags
5883             ;;
5884           esac
5885           ;;
5886         esac
5887       fi
5888     done
5889     IFS="$lt_save_ifs"
5890   done
5891   : ${lt_cv_path_NM=no}
5892 fi
5893 fi
5894 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5895 echo "${ECHO_T}$lt_cv_path_NM" >&6
5896 if test "$lt_cv_path_NM" != "no"; then
5897   NM="$lt_cv_path_NM"
5898 else
5899   # Didn't find any BSD compatible name lister, look for dumpbin.
5900   if test -n "$ac_tool_prefix"; then
5901   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5902   do
5903     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5905 echo "$as_me:$LINENO: checking for $ac_word" >&5
5906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5907 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5908   echo $ECHO_N "(cached) $ECHO_C" >&6
5909 else
5910   if test -n "$DUMPBIN"; then
5911   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5912 else
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 for as_dir in $PATH
5915 do
5916   IFS=$as_save_IFS
5917   test -z "$as_dir" && as_dir=.
5918   for ac_exec_ext in '' $ac_executable_extensions; do
5919   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5920     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5922     break 2
5923   fi
5924 done
5925 done
5926
5927 fi
5928 fi
5929 DUMPBIN=$ac_cv_prog_DUMPBIN
5930 if test -n "$DUMPBIN"; then
5931   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5932 echo "${ECHO_T}$DUMPBIN" >&6
5933 else
5934   echo "$as_me:$LINENO: result: no" >&5
5935 echo "${ECHO_T}no" >&6
5936 fi
5937
5938     test -n "$DUMPBIN" && break
5939   done
5940 fi
5941 if test -z "$DUMPBIN"; then
5942   ac_ct_DUMPBIN=$DUMPBIN
5943   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5944 do
5945   # Extract the first word of "$ac_prog", so it can be a program name with args.
5946 set dummy $ac_prog; ac_word=$2
5947 echo "$as_me:$LINENO: checking for $ac_word" >&5
5948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5949 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5950   echo $ECHO_N "(cached) $ECHO_C" >&6
5951 else
5952   if test -n "$ac_ct_DUMPBIN"; then
5953   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5954 else
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 for as_dir in $PATH
5957 do
5958   IFS=$as_save_IFS
5959   test -z "$as_dir" && as_dir=.
5960   for ac_exec_ext in '' $ac_executable_extensions; do
5961   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5962     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5964     break 2
5965   fi
5966 done
5967 done
5968
5969 fi
5970 fi
5971 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5972 if test -n "$ac_ct_DUMPBIN"; then
5973   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5974 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5975 else
5976   echo "$as_me:$LINENO: result: no" >&5
5977 echo "${ECHO_T}no" >&6
5978 fi
5979
5980   test -n "$ac_ct_DUMPBIN" && break
5981 done
5982 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5983
5984   DUMPBIN=$ac_ct_DUMPBIN
5985 fi
5986
5987
5988   if test "$DUMPBIN" != ":"; then
5989     NM="$DUMPBIN"
5990   fi
5991 fi
5992 test -z "$NM" && NM=nm
5993
5994
5995
5996
5997
5998
5999 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6000 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
6001 if test "${lt_cv_nm_interface+set}" = set; then
6002   echo $ECHO_N "(cached) $ECHO_C" >&6
6003 else
6004   lt_cv_nm_interface="BSD nm"
6005   echo "int some_variable = 0;" > conftest.$ac_ext
6006   (eval echo "\"\$as_me:6006: $ac_compile\"" >&5)
6007   (eval "$ac_compile" 2>conftest.err)
6008   cat conftest.err >&5
6009   (eval echo "\"\$as_me:6009: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6010   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6011   cat conftest.err >&5
6012   (eval echo "\"\$as_me:6012: output\"" >&5)
6013   cat conftest.out >&5
6014   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6015     lt_cv_nm_interface="MS dumpbin"
6016   fi
6017   rm -f conftest*
6018 fi
6019 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6020 echo "${ECHO_T}$lt_cv_nm_interface" >&6
6021
6022 # find the maximum length of command line arguments
6023 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6024 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6025 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6026   echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028     i=0
6029   teststring="ABCD"
6030
6031   case $build_os in
6032   msdosdjgpp*)
6033     # On DJGPP, this test can blow up pretty badly due to problems in libc
6034     # (any single argument exceeding 2000 bytes causes a buffer overrun
6035     # during glob expansion).  Even if it were fixed, the result of this
6036     # check would be larger than it should be.
6037     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6038     ;;
6039
6040   gnu*)
6041     # Under GNU Hurd, this test is not required because there is
6042     # no limit to the length of command line arguments.
6043     # Libtool will interpret -1 as no limit whatsoever
6044     lt_cv_sys_max_cmd_len=-1;
6045     ;;
6046
6047   cygwin* | mingw*)
6048     # On Win9x/ME, this test blows up -- it succeeds, but takes
6049     # about 5 minutes as the teststring grows exponentially.
6050     # Worse, since 9x/ME are not pre-emptively multitasking,
6051     # you end up with a "frozen" computer, even though with patience
6052     # the test eventually succeeds (with a max line length of 256k).
6053     # Instead, let's just punt: use the minimum linelength reported by
6054     # all of the supported platforms: 8192 (on NT/2K/XP).
6055     lt_cv_sys_max_cmd_len=8192;
6056     ;;
6057
6058   amigaos*)
6059     # On AmigaOS with pdksh, this test takes hours, literally.
6060     # So we just punt and use a minimum line length of 8192.
6061     lt_cv_sys_max_cmd_len=8192;
6062     ;;
6063
6064   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6065     # This has been around since 386BSD, at least.  Likely further.
6066     if test -x /sbin/sysctl; then
6067       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6068     elif test -x /usr/sbin/sysctl; then
6069       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6070     else
6071       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6072     fi
6073     # And add a safety zone
6074     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6075     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6076     ;;
6077
6078   interix*)
6079     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6080     lt_cv_sys_max_cmd_len=196608
6081     ;;
6082
6083   osf*)
6084     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6085     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6086     # nice to cause kernel panics so lets avoid the loop below.
6087     # First set a reasonable default.
6088     lt_cv_sys_max_cmd_len=16384
6089     #
6090     if test -x /sbin/sysconfig; then
6091       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6092         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6093       esac
6094     fi
6095     ;;
6096   sco3.2v5*)
6097     lt_cv_sys_max_cmd_len=102400
6098     ;;
6099   sysv5* | sco5v6* | sysv4.2uw2*)
6100     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6101     if test -n "$kargmax"; then
6102       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6103     else
6104       lt_cv_sys_max_cmd_len=32768
6105     fi
6106     ;;
6107   *)
6108     lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
6109     if test -n $lt_cv_sys_max_cmd_len; then
6110       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6111       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6112     else
6113       # Make teststring a little bigger before we do anything with it.
6114       # a 1K string should be a reasonable start.
6115       for i in 1 2 3 4 5 6 7 8 ; do
6116         teststring=$teststring$teststring
6117       done
6118       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6119       # If test is not a shell built-in, we'll probably end up computing a
6120       # maximum length that is only half of the actual maximum length, but
6121       # we can't tell.
6122       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6123                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6124               test $i != 17 # 1/2 MB should be enough
6125       do
6126         i=`expr $i + 1`
6127         teststring=$teststring$teststring
6128       done
6129       # Only check the string length outside the loop.
6130       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6131       teststring=
6132       # Add a significant safety factor because C++ compilers can tack on
6133       # massive amounts of additional arguments before passing them to the
6134       # linker.  It appears as though 1/2 is a usable value.
6135       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6136     fi
6137     ;;
6138   esac
6139
6140 fi
6141
6142 if test -n $lt_cv_sys_max_cmd_len ; then
6143   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6144 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6145 else
6146   echo "$as_me:$LINENO: result: none" >&5
6147 echo "${ECHO_T}none" >&6
6148 fi
6149 max_cmd_len=$lt_cv_sys_max_cmd_len
6150
6151
6152
6153
6154
6155
6156 : ${CP="cp -f"}
6157 : ${MV="mv -f"}
6158 : ${RM="rm -f"}
6159
6160 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6161 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
6162 # Try some XSI features
6163 xsi_shell=no
6164 ( _lt_dummy="a/b/c"
6165   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6166       = c,a/b,, ) >/dev/null 2>&1 \
6167   && xsi_shell=yes
6168 echo "$as_me:$LINENO: result: $xsi_shell" >&5
6169 echo "${ECHO_T}$xsi_shell" >&6
6170
6171
6172 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6173 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
6174 lt_shell_append=no
6175 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6176     >/dev/null 2>&1 \
6177   && lt_shell_append=yes
6178 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6179 echo "${ECHO_T}$lt_shell_append" >&6
6180
6181
6182 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6183   lt_unset=unset
6184 else
6185   lt_unset=false
6186 fi
6187
6188
6189
6190
6191
6192 # test EBCDIC or ASCII
6193 case `echo X|tr X '\101'` in
6194  A) # ASCII based system
6195     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6196   lt_SP2NL='tr \040 \012'
6197   lt_NL2SP='tr \015\012 \040\040'
6198   ;;
6199  *) # EBCDIC based system
6200   lt_SP2NL='tr \100 \n'
6201   lt_NL2SP='tr \r\n \100\100'
6202   ;;
6203 esac
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6214 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6215 if test "${lt_cv_ld_reload_flag+set}" = set; then
6216   echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6218   lt_cv_ld_reload_flag='-r'
6219 fi
6220 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6221 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6222 reload_flag=$lt_cv_ld_reload_flag
6223 case $reload_flag in
6224 "" | " "*) ;;
6225 *) reload_flag=" $reload_flag" ;;
6226 esac
6227 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6228 case $host_os in
6229   darwin*)
6230     if test "$GCC" = yes; then
6231       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6232     else
6233       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6234     fi
6235     ;;
6236 esac
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6248 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6249 if test "${lt_cv_deplibs_check_method+set}" = set; then
6250   echo $ECHO_N "(cached) $ECHO_C" >&6
6251 else
6252   lt_cv_file_magic_cmd='$MAGIC_CMD'
6253 lt_cv_file_magic_test_file=
6254 lt_cv_deplibs_check_method='unknown'
6255 # Need to set the preceding variable on all platforms that support
6256 # interlibrary dependencies.
6257 # 'none' -- dependencies not supported.
6258 # `unknown' -- same as none, but documents that we really don't know.
6259 # 'pass_all' -- all dependencies passed with no checks.
6260 # 'test_compile' -- check by making test program.
6261 # 'file_magic [[regex]]' -- check by looking for files in library path
6262 # which responds to the $file_magic_cmd with a given extended regex.
6263 # If you have `file' or equivalent on your system and you're not sure
6264 # whether `pass_all' will *always* work, you probably want this one.
6265
6266 case $host_os in
6267 aix[4-9]*)
6268   lt_cv_deplibs_check_method=pass_all
6269   ;;
6270
6271 beos*)
6272   lt_cv_deplibs_check_method=pass_all
6273   ;;
6274
6275 bsdi[45]*)
6276   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6277   lt_cv_file_magic_cmd='/usr/bin/file -L'
6278   lt_cv_file_magic_test_file=/shlib/libc.so
6279   ;;
6280
6281 cygwin*)
6282   # func_win32_libid is a shell function defined in ltmain.sh
6283   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6284   lt_cv_file_magic_cmd='func_win32_libid'
6285   ;;
6286
6287 mingw* | pw32*)
6288   # Base MSYS/MinGW do not provide the 'file' command needed by
6289   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6290   # unless we find 'file', for example because we are cross-compiling.
6291   if ( file / ) >/dev/null 2>&1; then
6292     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6293     lt_cv_file_magic_cmd='func_win32_libid'
6294   else
6295     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6296     lt_cv_file_magic_cmd='$OBJDUMP -f'
6297   fi
6298   ;;
6299
6300 darwin* | rhapsody*)
6301   lt_cv_deplibs_check_method=pass_all
6302   ;;
6303
6304 freebsd* | dragonfly*)
6305   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6306     case $host_cpu in
6307     i*86 )
6308       # Not sure whether the presence of OpenBSD here was a mistake.
6309       # Let's accept both of them until this is cleared up.
6310       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6311       lt_cv_file_magic_cmd=/usr/bin/file
6312       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6313       ;;
6314     esac
6315   else
6316     lt_cv_deplibs_check_method=pass_all
6317   fi
6318   ;;
6319
6320 gnu*)
6321   lt_cv_deplibs_check_method=pass_all
6322   ;;
6323
6324 hpux10.20* | hpux11*)
6325   lt_cv_file_magic_cmd=/usr/bin/file
6326   case $host_cpu in
6327   ia64*)
6328     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6329     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6330     ;;
6331   hppa*64*)
6332     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]'
6333     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6334     ;;
6335   *)
6336     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6337     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6338     ;;
6339   esac
6340   ;;
6341
6342 interix[3-9]*)
6343   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6344   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6345   ;;
6346
6347 irix5* | irix6* | nonstopux*)
6348   case $LD in
6349   *-32|*"-32 ") libmagic=32-bit;;
6350   *-n32|*"-n32 ") libmagic=N32;;
6351   *-64|*"-64 ") libmagic=64-bit;;
6352   *) libmagic=never-match;;
6353   esac
6354   lt_cv_deplibs_check_method=pass_all
6355   ;;
6356
6357 # This must be Linux ELF.
6358 linux* | k*bsd*-gnu)
6359   lt_cv_deplibs_check_method=pass_all
6360   ;;
6361
6362 netbsd*)
6363   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6364     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6365   else
6366     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6367   fi
6368   ;;
6369
6370 newos6*)
6371   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6372   lt_cv_file_magic_cmd=/usr/bin/file
6373   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6374   ;;
6375
6376 *nto* | *qnx*)
6377   lt_cv_deplibs_check_method=pass_all
6378   ;;
6379
6380 openbsd*)
6381   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6382     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6383   else
6384     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6385   fi
6386   ;;
6387
6388 osf3* | osf4* | osf5*)
6389   lt_cv_deplibs_check_method=pass_all
6390   ;;
6391
6392 rdos*)
6393   lt_cv_deplibs_check_method=pass_all
6394   ;;
6395
6396 solaris*)
6397   lt_cv_deplibs_check_method=pass_all
6398   ;;
6399
6400 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6401   lt_cv_deplibs_check_method=pass_all
6402   ;;
6403
6404 sysv4 | sysv4.3*)
6405   case $host_vendor in
6406   motorola)
6407     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]'
6408     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6409     ;;
6410   ncr)
6411     lt_cv_deplibs_check_method=pass_all
6412     ;;
6413   sequent)
6414     lt_cv_file_magic_cmd='/bin/file'
6415     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6416     ;;
6417   sni)
6418     lt_cv_file_magic_cmd='/bin/file'
6419     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6420     lt_cv_file_magic_test_file=/lib/libc.so
6421     ;;
6422   siemens)
6423     lt_cv_deplibs_check_method=pass_all
6424     ;;
6425   pc)
6426     lt_cv_deplibs_check_method=pass_all
6427     ;;
6428   esac
6429   ;;
6430
6431 tpf*)
6432   lt_cv_deplibs_check_method=pass_all
6433   ;;
6434 esac
6435
6436 fi
6437 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6438 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6439 file_magic_cmd=$lt_cv_file_magic_cmd
6440 deplibs_check_method=$lt_cv_deplibs_check_method
6441 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454 if test -n "$ac_tool_prefix"; then
6455   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6456 set dummy ${ac_tool_prefix}ar; ac_word=$2
6457 echo "$as_me:$LINENO: checking for $ac_word" >&5
6458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6459 if test "${ac_cv_prog_AR+set}" = set; then
6460   echo $ECHO_N "(cached) $ECHO_C" >&6
6461 else
6462   if test -n "$AR"; then
6463   ac_cv_prog_AR="$AR" # Let the user override the test.
6464 else
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 for as_dir in $PATH
6467 do
6468   IFS=$as_save_IFS
6469   test -z "$as_dir" && as_dir=.
6470   for ac_exec_ext in '' $ac_executable_extensions; do
6471   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6472     ac_cv_prog_AR="${ac_tool_prefix}ar"
6473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6474     break 2
6475   fi
6476 done
6477 done
6478
6479 fi
6480 fi
6481 AR=$ac_cv_prog_AR
6482 if test -n "$AR"; then
6483   echo "$as_me:$LINENO: result: $AR" >&5
6484 echo "${ECHO_T}$AR" >&6
6485 else
6486   echo "$as_me:$LINENO: result: no" >&5
6487 echo "${ECHO_T}no" >&6
6488 fi
6489
6490 fi
6491 if test -z "$ac_cv_prog_AR"; then
6492   ac_ct_AR=$AR
6493   # Extract the first word of "ar", so it can be a program name with args.
6494 set dummy ar; ac_word=$2
6495 echo "$as_me:$LINENO: checking for $ac_word" >&5
6496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6497 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6498   echo $ECHO_N "(cached) $ECHO_C" >&6
6499 else
6500   if test -n "$ac_ct_AR"; then
6501   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6502 else
6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504 for as_dir in $PATH
6505 do
6506   IFS=$as_save_IFS
6507   test -z "$as_dir" && as_dir=.
6508   for ac_exec_ext in '' $ac_executable_extensions; do
6509   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6510     ac_cv_prog_ac_ct_AR="ar"
6511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6512     break 2
6513   fi
6514 done
6515 done
6516
6517   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6518 fi
6519 fi
6520 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6521 if test -n "$ac_ct_AR"; then
6522   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6523 echo "${ECHO_T}$ac_ct_AR" >&6
6524 else
6525   echo "$as_me:$LINENO: result: no" >&5
6526 echo "${ECHO_T}no" >&6
6527 fi
6528
6529   AR=$ac_ct_AR
6530 else
6531   AR="$ac_cv_prog_AR"
6532 fi
6533
6534 test -z "$AR" && AR=ar
6535 test -z "$AR_FLAGS" && AR_FLAGS=cru
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547 if test -n "$ac_tool_prefix"; then
6548   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6549 set dummy ${ac_tool_prefix}strip; ac_word=$2
6550 echo "$as_me:$LINENO: checking for $ac_word" >&5
6551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6552 if test "${ac_cv_prog_STRIP+set}" = set; then
6553   echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555   if test -n "$STRIP"; then
6556   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6557 else
6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 for as_dir in $PATH
6560 do
6561   IFS=$as_save_IFS
6562   test -z "$as_dir" && as_dir=.
6563   for ac_exec_ext in '' $ac_executable_extensions; do
6564   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6565     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6567     break 2
6568   fi
6569 done
6570 done
6571
6572 fi
6573 fi
6574 STRIP=$ac_cv_prog_STRIP
6575 if test -n "$STRIP"; then
6576   echo "$as_me:$LINENO: result: $STRIP" >&5
6577 echo "${ECHO_T}$STRIP" >&6
6578 else
6579   echo "$as_me:$LINENO: result: no" >&5
6580 echo "${ECHO_T}no" >&6
6581 fi
6582
6583 fi
6584 if test -z "$ac_cv_prog_STRIP"; then
6585   ac_ct_STRIP=$STRIP
6586   # Extract the first word of "strip", so it can be a program name with args.
6587 set dummy strip; ac_word=$2
6588 echo "$as_me:$LINENO: checking for $ac_word" >&5
6589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6590 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6591   echo $ECHO_N "(cached) $ECHO_C" >&6
6592 else
6593   if test -n "$ac_ct_STRIP"; then
6594   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6595 else
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 for as_dir in $PATH
6598 do
6599   IFS=$as_save_IFS
6600   test -z "$as_dir" && as_dir=.
6601   for ac_exec_ext in '' $ac_executable_extensions; do
6602   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6603     ac_cv_prog_ac_ct_STRIP="strip"
6604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6605     break 2
6606   fi
6607 done
6608 done
6609
6610   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6611 fi
6612 fi
6613 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6614 if test -n "$ac_ct_STRIP"; then
6615   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6616 echo "${ECHO_T}$ac_ct_STRIP" >&6
6617 else
6618   echo "$as_me:$LINENO: result: no" >&5
6619 echo "${ECHO_T}no" >&6
6620 fi
6621
6622   STRIP=$ac_ct_STRIP
6623 else
6624   STRIP="$ac_cv_prog_STRIP"
6625 fi
6626
6627 test -z "$STRIP" && STRIP=:
6628
6629
6630
6631
6632
6633
6634 if test -n "$ac_tool_prefix"; then
6635   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6636 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6637 echo "$as_me:$LINENO: checking for $ac_word" >&5
6638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6639 if test "${ac_cv_prog_RANLIB+set}" = set; then
6640   echo $ECHO_N "(cached) $ECHO_C" >&6
6641 else
6642   if test -n "$RANLIB"; then
6643   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6644 else
6645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646 for as_dir in $PATH
6647 do
6648   IFS=$as_save_IFS
6649   test -z "$as_dir" && as_dir=.
6650   for ac_exec_ext in '' $ac_executable_extensions; do
6651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6652     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6654     break 2
6655   fi
6656 done
6657 done
6658
6659 fi
6660 fi
6661 RANLIB=$ac_cv_prog_RANLIB
6662 if test -n "$RANLIB"; then
6663   echo "$as_me:$LINENO: result: $RANLIB" >&5
6664 echo "${ECHO_T}$RANLIB" >&6
6665 else
6666   echo "$as_me:$LINENO: result: no" >&5
6667 echo "${ECHO_T}no" >&6
6668 fi
6669
6670 fi
6671 if test -z "$ac_cv_prog_RANLIB"; then
6672   ac_ct_RANLIB=$RANLIB
6673   # Extract the first word of "ranlib", so it can be a program name with args.
6674 set dummy ranlib; ac_word=$2
6675 echo "$as_me:$LINENO: checking for $ac_word" >&5
6676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6677 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6678   echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680   if test -n "$ac_ct_RANLIB"; then
6681   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686   IFS=$as_save_IFS
6687   test -z "$as_dir" && as_dir=.
6688   for ac_exec_ext in '' $ac_executable_extensions; do
6689   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6690     ac_cv_prog_ac_ct_RANLIB="ranlib"
6691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6692     break 2
6693   fi
6694 done
6695 done
6696
6697   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6698 fi
6699 fi
6700 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6701 if test -n "$ac_ct_RANLIB"; then
6702   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6703 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6704 else
6705   echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6
6707 fi
6708
6709   RANLIB=$ac_ct_RANLIB
6710 else
6711   RANLIB="$ac_cv_prog_RANLIB"
6712 fi
6713
6714 test -z "$RANLIB" && RANLIB=:
6715
6716
6717
6718
6719
6720
6721 # Determine commands to create old-style static archives.
6722 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6723 old_postinstall_cmds='chmod 644 $oldlib'
6724 old_postuninstall_cmds=
6725
6726 if test -n "$RANLIB"; then
6727   case $host_os in
6728   openbsd*)
6729     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6730     ;;
6731   *)
6732     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6733     ;;
6734   esac
6735   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6736 fi
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771 # If no C compiler was specified, use CC.
6772 LTCC=${LTCC-"$CC"}
6773
6774 # If no C compiler flags were specified, use CFLAGS.
6775 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6776
6777 # Allow CC to be a program name with arguments.
6778 compiler=$CC
6779
6780
6781 # Check for command to grab the raw symbol name followed by C symbol from nm.
6782 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6783 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6784 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6785   echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787
6788 # These are sane defaults that work on at least a few old systems.
6789 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6790
6791 # Character class describing NM global symbol codes.
6792 symcode='[BCDEGRST]'
6793
6794 # Regexp to match symbols that can be accessed directly from C.
6795 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6796
6797 # Define system-specific variables.
6798 case $host_os in
6799 aix*)
6800   symcode='[BCDT]'
6801   ;;
6802 cygwin* | mingw* | pw32*)
6803   symcode='[ABCDGISTW]'
6804   ;;
6805 hpux*)
6806   if test "$host_cpu" = ia64; then
6807     symcode='[ABCDEGRST]'
6808   fi
6809   ;;
6810 irix* | nonstopux*)
6811   symcode='[BCDEGRST]'
6812   ;;
6813 osf*)
6814   symcode='[BCDEGQRST]'
6815   ;;
6816 solaris*)
6817   symcode='[BDRT]'
6818   ;;
6819 sco3.2v5*)
6820   symcode='[DT]'
6821   ;;
6822 sysv4.2uw2*)
6823   symcode='[DT]'
6824   ;;
6825 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6826   symcode='[ABDT]'
6827   ;;
6828 sysv4)
6829   symcode='[DFNSTU]'
6830   ;;
6831 esac
6832
6833 # If we're using GNU nm, then use its standard symbol codes.
6834 case `$NM -V 2>&1` in
6835 *GNU* | *'with BFD'*)
6836   symcode='[ABCDGIRSTW]' ;;
6837 esac
6838
6839 # Transform an extracted symbol line into a proper C declaration.
6840 # Some systems (esp. on ia64) link data and code symbols differently,
6841 # so use this general approach.
6842 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6843
6844 # Transform an extracted symbol line into symbol name and symbol address
6845 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6846
6847 # Handle CRLF in mingw tool chain
6848 opt_cr=
6849 case $build_os in
6850 mingw*)
6851   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6852   ;;
6853 esac
6854
6855 # Try without a prefix underscore, then with it.
6856 for ac_symprfx in "" "_"; do
6857
6858   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6859   symxfrm="\\1 $ac_symprfx\\2 \\2"
6860
6861   # Write the raw and C identifiers.
6862   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6863     # Fake it for dumpbin and say T for any non-static function
6864     # and D for any global variable.
6865     # Also find C++ and __fastcall symbols from MSVC++,
6866     # which start with @ or ?.
6867     lt_cv_sys_global_symbol_pipe="$AWK '"\
6868 "     {last_section=section; section=\$ 3};"\
6869 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6870 "     \$ 0!~/External *\|/{next};"\
6871 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6872 "     {if(hide[section]) next};"\
6873 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6874 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6875 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6876 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6877 "     ' prfx=^$ac_symprfx"
6878   else
6879     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6880   fi
6881
6882   # Check to see that the pipe works correctly.
6883   pipe_works=no
6884
6885   rm -f conftest*
6886   cat > conftest.$ac_ext <<_LT_EOF
6887 #ifdef __cplusplus
6888 extern "C" {
6889 #endif
6890 char nm_test_var;
6891 void nm_test_func(void);
6892 void nm_test_func(void){}
6893 #ifdef __cplusplus
6894 }
6895 #endif
6896 int main(){nm_test_var='a';nm_test_func();return(0);}
6897 _LT_EOF
6898
6899   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6900   (eval $ac_compile) 2>&5
6901   ac_status=$?
6902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903   (exit $ac_status); }; then
6904     # Now try to grab the symbols.
6905     nlist=conftest.nm
6906     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6907   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6908   ac_status=$?
6909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910   (exit $ac_status); } && test -s "$nlist"; then
6911       # Try sorting and uniquifying the output.
6912       if sort "$nlist" | uniq > "$nlist"T; then
6913         mv -f "$nlist"T "$nlist"
6914       else
6915         rm -f "$nlist"T
6916       fi
6917
6918       # Make sure that we snagged all the symbols we need.
6919       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6920         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6921           cat <<_LT_EOF > conftest.$ac_ext
6922 #ifdef __cplusplus
6923 extern "C" {
6924 #endif
6925
6926 _LT_EOF
6927           # Now generate the symbol file.
6928           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6929
6930           cat <<_LT_EOF >> conftest.$ac_ext
6931
6932 /* The mapping between symbol names and symbols.  */
6933 const struct {
6934   const char *name;
6935   void       *address;
6936 }
6937 lt__PROGRAM__LTX_preloaded_symbols[] =
6938 {
6939   { "@PROGRAM@", (void *) 0 },
6940 _LT_EOF
6941           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6942           cat <<\_LT_EOF >> conftest.$ac_ext
6943   {0, (void *) 0}
6944 };
6945
6946 /* This works around a problem in FreeBSD linker */
6947 #ifdef FREEBSD_WORKAROUND
6948 static const void *lt_preloaded_setup() {
6949   return lt__PROGRAM__LTX_preloaded_symbols;
6950 }
6951 #endif
6952
6953 #ifdef __cplusplus
6954 }
6955 #endif
6956 _LT_EOF
6957           # Now try linking the two files.
6958           mv conftest.$ac_objext conftstm.$ac_objext
6959           lt_save_LIBS="$LIBS"
6960           lt_save_CFLAGS="$CFLAGS"
6961           LIBS="conftstm.$ac_objext"
6962           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6963           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6964   (eval $ac_link) 2>&5
6965   ac_status=$?
6966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6968             pipe_works=yes
6969           fi
6970           LIBS="$lt_save_LIBS"
6971           CFLAGS="$lt_save_CFLAGS"
6972         else
6973           echo "cannot find nm_test_func in $nlist" >&5
6974         fi
6975       else
6976         echo "cannot find nm_test_var in $nlist" >&5
6977       fi
6978     else
6979       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6980     fi
6981   else
6982     echo "$progname: failed program was:" >&5
6983     cat conftest.$ac_ext >&5
6984   fi
6985   rm -f conftest* conftst*
6986
6987   # Do not use the global_symbol_pipe unless it works.
6988   if test "$pipe_works" = yes; then
6989     break
6990   else
6991     lt_cv_sys_global_symbol_pipe=
6992   fi
6993 done
6994
6995 fi
6996
6997 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6998   lt_cv_sys_global_symbol_to_cdecl=
6999 fi
7000 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7001   echo "$as_me:$LINENO: result: failed" >&5
7002 echo "${ECHO_T}failed" >&6
7003 else
7004   echo "$as_me:$LINENO: result: ok" >&5
7005 echo "${ECHO_T}ok" >&6
7006 fi
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7026 if test "${enable_libtool_lock+set}" = set; then
7027   enableval="$enable_libtool_lock"
7028
7029 fi;
7030 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7031
7032 # Some flags need to be propagated to the compiler or linker for good
7033 # libtool support.
7034 case $host in
7035 ia64-*-hpux*)
7036   # Find out which ABI we are using.
7037   echo 'int i;' > conftest.$ac_ext
7038   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7039   (eval $ac_compile) 2>&5
7040   ac_status=$?
7041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042   (exit $ac_status); }; then
7043     case `/usr/bin/file conftest.$ac_objext` in
7044       *ELF-32*)
7045         HPUX_IA64_MODE="32"
7046         ;;
7047       *ELF-64*)
7048         HPUX_IA64_MODE="64"
7049         ;;
7050     esac
7051   fi
7052   rm -rf conftest*
7053   ;;
7054 *-*-irix6*)
7055   # Find out which ABI we are using.
7056   echo '#line 7056 "configure"' > conftest.$ac_ext
7057   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7058   (eval $ac_compile) 2>&5
7059   ac_status=$?
7060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061   (exit $ac_status); }; then
7062     if test "$lt_cv_prog_gnu_ld" = yes; then
7063       case `/usr/bin/file conftest.$ac_objext` in
7064         *32-bit*)
7065           LD="${LD-ld} -melf32bsmip"
7066           ;;
7067         *N32*)
7068           LD="${LD-ld} -melf32bmipn32"
7069           ;;
7070         *64-bit*)
7071           LD="${LD-ld} -melf64bmip"
7072         ;;
7073       esac
7074     else
7075       case `/usr/bin/file conftest.$ac_objext` in
7076         *32-bit*)
7077           LD="${LD-ld} -32"
7078           ;;
7079         *N32*)
7080           LD="${LD-ld} -n32"
7081           ;;
7082         *64-bit*)
7083           LD="${LD-ld} -64"
7084           ;;
7085       esac
7086     fi
7087   fi
7088   rm -rf conftest*
7089   ;;
7090
7091 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7092 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7093   # Find out which ABI we are using.
7094   echo 'int i;' > conftest.$ac_ext
7095   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7096   (eval $ac_compile) 2>&5
7097   ac_status=$?
7098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099   (exit $ac_status); }; then
7100     case `/usr/bin/file conftest.o` in
7101       *32-bit*)
7102         case $host in
7103           x86_64-*kfreebsd*-gnu)
7104             LD="${LD-ld} -m elf_i386_fbsd"
7105             ;;
7106           x86_64-*linux*)
7107             LD="${LD-ld} -m elf_i386"
7108             ;;
7109           ppc64-*linux*|powerpc64-*linux*)
7110             LD="${LD-ld} -m elf32ppclinux"
7111             ;;
7112           s390x-*linux*)
7113             LD="${LD-ld} -m elf_s390"
7114             ;;
7115           sparc64-*linux*)
7116             LD="${LD-ld} -m elf32_sparc"
7117             ;;
7118         esac
7119         ;;
7120       *64-bit*)
7121         case $host in
7122           x86_64-*kfreebsd*-gnu)
7123             LD="${LD-ld} -m elf_x86_64_fbsd"
7124             ;;
7125           x86_64-*linux*)
7126             LD="${LD-ld} -m elf_x86_64"
7127             ;;
7128           ppc*-*linux*|powerpc*-*linux*)
7129             LD="${LD-ld} -m elf64ppc"
7130             ;;
7131           s390*-*linux*|s390*-*tpf*)
7132             LD="${LD-ld} -m elf64_s390"
7133             ;;
7134           sparc*-*linux*)
7135             LD="${LD-ld} -m elf64_sparc"
7136             ;;
7137         esac
7138         ;;
7139     esac
7140   fi
7141   rm -rf conftest*
7142   ;;
7143
7144 *-*-sco3.2v5*)
7145   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7146   SAVE_CFLAGS="$CFLAGS"
7147   CFLAGS="$CFLAGS -belf"
7148   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7149 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7150 if test "${lt_cv_cc_needs_belf+set}" = set; then
7151   echo $ECHO_N "(cached) $ECHO_C" >&6
7152 else
7153   ac_ext=c
7154 ac_cpp='$CPP $CPPFLAGS'
7155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7158
7159      if test x$gcc_no_link = xyes; then
7160   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7161 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7162    { (exit 1); exit 1; }; }
7163 fi
7164 cat >conftest.$ac_ext <<_ACEOF
7165 /* confdefs.h.  */
7166 _ACEOF
7167 cat confdefs.h >>conftest.$ac_ext
7168 cat >>conftest.$ac_ext <<_ACEOF
7169 /* end confdefs.h.  */
7170
7171 int
7172 main ()
7173 {
7174
7175   ;
7176   return 0;
7177 }
7178 _ACEOF
7179 rm -f conftest.$ac_objext conftest$ac_exeext
7180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7181   (eval $ac_link) 2>conftest.er1
7182   ac_status=$?
7183   grep -v '^ *+' conftest.er1 >conftest.err
7184   rm -f conftest.er1
7185   cat conftest.err >&5
7186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187   (exit $ac_status); } &&
7188          { ac_try='test -z "$ac_c_werror_flag"
7189                          || test ! -s conftest.err'
7190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191   (eval $ac_try) 2>&5
7192   ac_status=$?
7193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194   (exit $ac_status); }; } &&
7195          { ac_try='test -s conftest$ac_exeext'
7196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197   (eval $ac_try) 2>&5
7198   ac_status=$?
7199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200   (exit $ac_status); }; }; then
7201   lt_cv_cc_needs_belf=yes
7202 else
7203   echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7205
7206 lt_cv_cc_needs_belf=no
7207 fi
7208 rm -f conftest.err conftest.$ac_objext \
7209       conftest$ac_exeext conftest.$ac_ext
7210      ac_ext=c
7211 ac_cpp='$CPP $CPPFLAGS'
7212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7215
7216 fi
7217 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7218 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7219   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7220     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7221     CFLAGS="$SAVE_CFLAGS"
7222   fi
7223   ;;
7224 sparc*-*solaris*)
7225   # Find out which ABI we are using.
7226   echo 'int i;' > conftest.$ac_ext
7227   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7228   (eval $ac_compile) 2>&5
7229   ac_status=$?
7230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231   (exit $ac_status); }; then
7232     case `/usr/bin/file conftest.o` in
7233     *64-bit*)
7234       case $lt_cv_prog_gnu_ld in
7235       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7236       *)    LD="${LD-ld} -64" ;;
7237       esac
7238       ;;
7239     esac
7240   fi
7241   rm -rf conftest*
7242   ;;
7243 esac
7244
7245 need_locks="$enable_libtool_lock"
7246
7247 ac_ext=c
7248 ac_cpp='$CPP $CPPFLAGS'
7249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7252 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7253 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7254 # On Suns, sometimes $CPP names a directory.
7255 if test -n "$CPP" && test -d "$CPP"; then
7256   CPP=
7257 fi
7258 if test -z "$CPP"; then
7259   if test "${ac_cv_prog_CPP+set}" = set; then
7260   echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262       # Double quotes because CPP needs to be expanded
7263     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7264     do
7265       ac_preproc_ok=false
7266 for ac_c_preproc_warn_flag in '' yes
7267 do
7268   # Use a header file that comes with gcc, so configuring glibc
7269   # with a fresh cross-compiler works.
7270   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7271   # <limits.h> exists even on freestanding compilers.
7272   # On the NeXT, cc -E runs the code through the compiler's parser,
7273   # not just through cpp. "Syntax error" is here to catch this case.
7274   cat >conftest.$ac_ext <<_ACEOF
7275 /* confdefs.h.  */
7276 _ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h.  */
7280 #ifdef __STDC__
7281 # include <limits.h>
7282 #else
7283 # include <assert.h>
7284 #endif
7285                      Syntax error
7286 _ACEOF
7287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7288   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7289   ac_status=$?
7290   grep -v '^ *+' conftest.er1 >conftest.err
7291   rm -f conftest.er1
7292   cat conftest.err >&5
7293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294   (exit $ac_status); } >/dev/null; then
7295   if test -s conftest.err; then
7296     ac_cpp_err=$ac_c_preproc_warn_flag
7297     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7298   else
7299     ac_cpp_err=
7300   fi
7301 else
7302   ac_cpp_err=yes
7303 fi
7304 if test -z "$ac_cpp_err"; then
7305   :
7306 else
7307   echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7309
7310   # Broken: fails on valid input.
7311 continue
7312 fi
7313 rm -f conftest.err conftest.$ac_ext
7314
7315   # OK, works on sane cases.  Now check whether non-existent headers
7316   # can be detected and how.
7317   cat >conftest.$ac_ext <<_ACEOF
7318 /* confdefs.h.  */
7319 _ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h.  */
7323 #include <ac_nonexistent.h>
7324 _ACEOF
7325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7326   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7327   ac_status=$?
7328   grep -v '^ *+' conftest.er1 >conftest.err
7329   rm -f conftest.er1
7330   cat conftest.err >&5
7331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332   (exit $ac_status); } >/dev/null; then
7333   if test -s conftest.err; then
7334     ac_cpp_err=$ac_c_preproc_warn_flag
7335     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7336   else
7337     ac_cpp_err=
7338   fi
7339 else
7340   ac_cpp_err=yes
7341 fi
7342 if test -z "$ac_cpp_err"; then
7343   # Broken: success on invalid input.
7344 continue
7345 else
7346   echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7348
7349   # Passes both tests.
7350 ac_preproc_ok=:
7351 break
7352 fi
7353 rm -f conftest.err conftest.$ac_ext
7354
7355 done
7356 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7357 rm -f conftest.err conftest.$ac_ext
7358 if $ac_preproc_ok; then
7359   break
7360 fi
7361
7362     done
7363     ac_cv_prog_CPP=$CPP
7364
7365 fi
7366   CPP=$ac_cv_prog_CPP
7367 else
7368   ac_cv_prog_CPP=$CPP
7369 fi
7370 echo "$as_me:$LINENO: result: $CPP" >&5
7371 echo "${ECHO_T}$CPP" >&6
7372 ac_preproc_ok=false
7373 for ac_c_preproc_warn_flag in '' yes
7374 do
7375   # Use a header file that comes with gcc, so configuring glibc
7376   # with a fresh cross-compiler works.
7377   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7378   # <limits.h> exists even on freestanding compilers.
7379   # On the NeXT, cc -E runs the code through the compiler's parser,
7380   # not just through cpp. "Syntax error" is here to catch this case.
7381   cat >conftest.$ac_ext <<_ACEOF
7382 /* confdefs.h.  */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h.  */
7387 #ifdef __STDC__
7388 # include <limits.h>
7389 #else
7390 # include <assert.h>
7391 #endif
7392                      Syntax error
7393 _ACEOF
7394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7395   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7396   ac_status=$?
7397   grep -v '^ *+' conftest.er1 >conftest.err
7398   rm -f conftest.er1
7399   cat conftest.err >&5
7400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401   (exit $ac_status); } >/dev/null; then
7402   if test -s conftest.err; then
7403     ac_cpp_err=$ac_c_preproc_warn_flag
7404     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7405   else
7406     ac_cpp_err=
7407   fi
7408 else
7409   ac_cpp_err=yes
7410 fi
7411 if test -z "$ac_cpp_err"; then
7412   :
7413 else
7414   echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7416
7417   # Broken: fails on valid input.
7418 continue
7419 fi
7420 rm -f conftest.err conftest.$ac_ext
7421
7422   # OK, works on sane cases.  Now check whether non-existent headers
7423   # can be detected and how.
7424   cat >conftest.$ac_ext <<_ACEOF
7425 /* confdefs.h.  */
7426 _ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h.  */
7430 #include <ac_nonexistent.h>
7431 _ACEOF
7432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7433   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7434   ac_status=$?
7435   grep -v '^ *+' conftest.er1 >conftest.err
7436   rm -f conftest.er1
7437   cat conftest.err >&5
7438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439   (exit $ac_status); } >/dev/null; then
7440   if test -s conftest.err; then
7441     ac_cpp_err=$ac_c_preproc_warn_flag
7442     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7443   else
7444     ac_cpp_err=
7445   fi
7446 else
7447   ac_cpp_err=yes
7448 fi
7449 if test -z "$ac_cpp_err"; then
7450   # Broken: success on invalid input.
7451 continue
7452 else
7453   echo "$as_me: failed program was:" >&5
7454 sed 's/^/| /' conftest.$ac_ext >&5
7455
7456   # Passes both tests.
7457 ac_preproc_ok=:
7458 break
7459 fi
7460 rm -f conftest.err conftest.$ac_ext
7461
7462 done
7463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7464 rm -f conftest.err conftest.$ac_ext
7465 if $ac_preproc_ok; then
7466   :
7467 else
7468   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7469 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7470 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7471 See \`config.log' for more details." >&5
7472 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7473 See \`config.log' for more details." >&2;}
7474    { (exit 1); exit 1; }; }; }
7475 fi
7476
7477 ac_ext=c
7478 ac_cpp='$CPP $CPPFLAGS'
7479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7482
7483
7484 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7485 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7486 if test "${ac_cv_header_stdc+set}" = set; then
7487   echo $ECHO_N "(cached) $ECHO_C" >&6
7488 else
7489   cat >conftest.$ac_ext <<_ACEOF
7490 /* confdefs.h.  */
7491 _ACEOF
7492 cat confdefs.h >>conftest.$ac_ext
7493 cat >>conftest.$ac_ext <<_ACEOF
7494 /* end confdefs.h.  */
7495 #include <stdlib.h>
7496 #include <stdarg.h>
7497 #include <string.h>
7498 #include <float.h>
7499
7500 int
7501 main ()
7502 {
7503
7504   ;
7505   return 0;
7506 }
7507 _ACEOF
7508 rm -f conftest.$ac_objext
7509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7510   (eval $ac_compile) 2>conftest.er1
7511   ac_status=$?
7512   grep -v '^ *+' conftest.er1 >conftest.err
7513   rm -f conftest.er1
7514   cat conftest.err >&5
7515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516   (exit $ac_status); } &&
7517          { ac_try='test -z "$ac_c_werror_flag"
7518                          || test ! -s conftest.err'
7519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7520   (eval $ac_try) 2>&5
7521   ac_status=$?
7522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523   (exit $ac_status); }; } &&
7524          { ac_try='test -s conftest.$ac_objext'
7525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526   (eval $ac_try) 2>&5
7527   ac_status=$?
7528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529   (exit $ac_status); }; }; then
7530   ac_cv_header_stdc=yes
7531 else
7532   echo "$as_me: failed program was:" >&5
7533 sed 's/^/| /' conftest.$ac_ext >&5
7534
7535 ac_cv_header_stdc=no
7536 fi
7537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7538
7539 if test $ac_cv_header_stdc = yes; then
7540   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7541   cat >conftest.$ac_ext <<_ACEOF
7542 /* confdefs.h.  */
7543 _ACEOF
7544 cat confdefs.h >>conftest.$ac_ext
7545 cat >>conftest.$ac_ext <<_ACEOF
7546 /* end confdefs.h.  */
7547 #include <string.h>
7548
7549 _ACEOF
7550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7551   $EGREP "memchr" >/dev/null 2>&1; then
7552   :
7553 else
7554   ac_cv_header_stdc=no
7555 fi
7556 rm -f conftest*
7557
7558 fi
7559
7560 if test $ac_cv_header_stdc = yes; then
7561   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7562   cat >conftest.$ac_ext <<_ACEOF
7563 /* confdefs.h.  */
7564 _ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h.  */
7568 #include <stdlib.h>
7569
7570 _ACEOF
7571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7572   $EGREP "free" >/dev/null 2>&1; then
7573   :
7574 else
7575   ac_cv_header_stdc=no
7576 fi
7577 rm -f conftest*
7578
7579 fi
7580
7581 if test $ac_cv_header_stdc = yes; then
7582   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7583   if test "$cross_compiling" = yes; then
7584   :
7585 else
7586   cat >conftest.$ac_ext <<_ACEOF
7587 /* confdefs.h.  */
7588 _ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h.  */
7592 #include <ctype.h>
7593 #if ((' ' & 0x0FF) == 0x020)
7594 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7595 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7596 #else
7597 # define ISLOWER(c) \
7598                    (('a' <= (c) && (c) <= 'i') \
7599                      || ('j' <= (c) && (c) <= 'r') \
7600                      || ('s' <= (c) && (c) <= 'z'))
7601 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7602 #endif
7603
7604 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7605 int
7606 main ()
7607 {
7608   int i;
7609   for (i = 0; i < 256; i++)
7610     if (XOR (islower (i), ISLOWER (i))
7611         || toupper (i) != TOUPPER (i))
7612       exit(2);
7613   exit (0);
7614 }
7615 _ACEOF
7616 rm -f conftest$ac_exeext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618   (eval $ac_link) 2>&5
7619   ac_status=$?
7620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623   (eval $ac_try) 2>&5
7624   ac_status=$?
7625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626   (exit $ac_status); }; }; then
7627   :
7628 else
7629   echo "$as_me: program exited with status $ac_status" >&5
7630 echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7632
7633 ( exit $ac_status )
7634 ac_cv_header_stdc=no
7635 fi
7636 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7637 fi
7638 fi
7639 fi
7640 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7641 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7642 if test $ac_cv_header_stdc = yes; then
7643
7644 cat >>confdefs.h <<\_ACEOF
7645 #define STDC_HEADERS 1
7646 _ACEOF
7647
7648 fi
7649
7650 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7661                   inttypes.h stdint.h unistd.h
7662 do
7663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7664 echo "$as_me:$LINENO: checking for $ac_header" >&5
7665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7667   echo $ECHO_N "(cached) $ECHO_C" >&6
7668 else
7669   cat >conftest.$ac_ext <<_ACEOF
7670 /* confdefs.h.  */
7671 _ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h.  */
7675 $ac_includes_default
7676
7677 #include <$ac_header>
7678 _ACEOF
7679 rm -f conftest.$ac_objext
7680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7681   (eval $ac_compile) 2>conftest.er1
7682   ac_status=$?
7683   grep -v '^ *+' conftest.er1 >conftest.err
7684   rm -f conftest.er1
7685   cat conftest.err >&5
7686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687   (exit $ac_status); } &&
7688          { ac_try='test -z "$ac_c_werror_flag"
7689                          || test ! -s conftest.err'
7690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691   (eval $ac_try) 2>&5
7692   ac_status=$?
7693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694   (exit $ac_status); }; } &&
7695          { ac_try='test -s conftest.$ac_objext'
7696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697   (eval $ac_try) 2>&5
7698   ac_status=$?
7699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700   (exit $ac_status); }; }; then
7701   eval "$as_ac_Header=yes"
7702 else
7703   echo "$as_me: failed program was:" >&5
7704 sed 's/^/| /' conftest.$ac_ext >&5
7705
7706 eval "$as_ac_Header=no"
7707 fi
7708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7709 fi
7710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7713   cat >>confdefs.h <<_ACEOF
7714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7715 _ACEOF
7716
7717 fi
7718
7719 done
7720
7721
7722
7723 for ac_header in dlfcn.h
7724 do
7725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7726 echo "$as_me:$LINENO: checking for $ac_header" >&5
7727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7729   echo $ECHO_N "(cached) $ECHO_C" >&6
7730 else
7731   cat >conftest.$ac_ext <<_ACEOF
7732 /* confdefs.h.  */
7733 _ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h.  */
7737 $ac_includes_default
7738
7739 #include <$ac_header>
7740 _ACEOF
7741 rm -f conftest.$ac_objext
7742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7743   (eval $ac_compile) 2>conftest.er1
7744   ac_status=$?
7745   grep -v '^ *+' conftest.er1 >conftest.err
7746   rm -f conftest.er1
7747   cat conftest.err >&5
7748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749   (exit $ac_status); } &&
7750          { ac_try='test -z "$ac_c_werror_flag"
7751                          || test ! -s conftest.err'
7752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753   (eval $ac_try) 2>&5
7754   ac_status=$?
7755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756   (exit $ac_status); }; } &&
7757          { ac_try='test -s conftest.$ac_objext'
7758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759   (eval $ac_try) 2>&5
7760   ac_status=$?
7761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762   (exit $ac_status); }; }; then
7763   eval "$as_ac_Header=yes"
7764 else
7765   echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7767
7768 eval "$as_ac_Header=no"
7769 fi
7770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7771 fi
7772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7775   cat >>confdefs.h <<_ACEOF
7776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7777 _ACEOF
7778
7779 fi
7780
7781 done
7782
7783
7784
7785 ac_ext=cc
7786 ac_cpp='$CXXCPP $CPPFLAGS'
7787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7790 if test -n "$ac_tool_prefix"; then
7791   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7792   do
7793     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7794 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7795 echo "$as_me:$LINENO: checking for $ac_word" >&5
7796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7797 if test "${ac_cv_prog_CXX+set}" = set; then
7798   echo $ECHO_N "(cached) $ECHO_C" >&6
7799 else
7800   if test -n "$CXX"; then
7801   ac_cv_prog_CXX="$CXX" # Let the user override the test.
7802 else
7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804 for as_dir in $PATH
7805 do
7806   IFS=$as_save_IFS
7807   test -z "$as_dir" && as_dir=.
7808   for ac_exec_ext in '' $ac_executable_extensions; do
7809   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7810     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7812     break 2
7813   fi
7814 done
7815 done
7816
7817 fi
7818 fi
7819 CXX=$ac_cv_prog_CXX
7820 if test -n "$CXX"; then
7821   echo "$as_me:$LINENO: result: $CXX" >&5
7822 echo "${ECHO_T}$CXX" >&6
7823 else
7824   echo "$as_me:$LINENO: result: no" >&5
7825 echo "${ECHO_T}no" >&6
7826 fi
7827
7828     test -n "$CXX" && break
7829   done
7830 fi
7831 if test -z "$CXX"; then
7832   ac_ct_CXX=$CXX
7833   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7834 do
7835   # Extract the first word of "$ac_prog", so it can be a program name with args.
7836 set dummy $ac_prog; ac_word=$2
7837 echo "$as_me:$LINENO: checking for $ac_word" >&5
7838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7839 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7840   echo $ECHO_N "(cached) $ECHO_C" >&6
7841 else
7842   if test -n "$ac_ct_CXX"; then
7843   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7844 else
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 for as_dir in $PATH
7847 do
7848   IFS=$as_save_IFS
7849   test -z "$as_dir" && as_dir=.
7850   for ac_exec_ext in '' $ac_executable_extensions; do
7851   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7852     ac_cv_prog_ac_ct_CXX="$ac_prog"
7853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7854     break 2
7855   fi
7856 done
7857 done
7858
7859 fi
7860 fi
7861 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7862 if test -n "$ac_ct_CXX"; then
7863   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7864 echo "${ECHO_T}$ac_ct_CXX" >&6
7865 else
7866   echo "$as_me:$LINENO: result: no" >&5
7867 echo "${ECHO_T}no" >&6
7868 fi
7869
7870   test -n "$ac_ct_CXX" && break
7871 done
7872 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7873
7874   CXX=$ac_ct_CXX
7875 fi
7876
7877
7878 # Provide some information about the compiler.
7879 echo "$as_me:$LINENO:" \
7880      "checking for C++ compiler version" >&5
7881 ac_compiler=`set X $ac_compile; echo $2`
7882 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7883   (eval $ac_compiler --version </dev/null >&5) 2>&5
7884   ac_status=$?
7885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886   (exit $ac_status); }
7887 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7888   (eval $ac_compiler -v </dev/null >&5) 2>&5
7889   ac_status=$?
7890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891   (exit $ac_status); }
7892 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7893   (eval $ac_compiler -V </dev/null >&5) 2>&5
7894   ac_status=$?
7895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896   (exit $ac_status); }
7897
7898 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7899 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7900 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7901   echo $ECHO_N "(cached) $ECHO_C" >&6
7902 else
7903   cat >conftest.$ac_ext <<_ACEOF
7904 /* confdefs.h.  */
7905 _ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h.  */
7909
7910 int
7911 main ()
7912 {
7913 #ifndef __GNUC__
7914        choke me
7915 #endif
7916
7917   ;
7918   return 0;
7919 }
7920 _ACEOF
7921 rm -f conftest.$ac_objext
7922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7923   (eval $ac_compile) 2>conftest.er1
7924   ac_status=$?
7925   grep -v '^ *+' conftest.er1 >conftest.err
7926   rm -f conftest.er1
7927   cat conftest.err >&5
7928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929   (exit $ac_status); } &&
7930          { ac_try='test -z "$ac_cxx_werror_flag"
7931                          || test ! -s conftest.err'
7932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7933   (eval $ac_try) 2>&5
7934   ac_status=$?
7935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936   (exit $ac_status); }; } &&
7937          { ac_try='test -s conftest.$ac_objext'
7938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7939   (eval $ac_try) 2>&5
7940   ac_status=$?
7941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942   (exit $ac_status); }; }; then
7943   ac_compiler_gnu=yes
7944 else
7945   echo "$as_me: failed program was:" >&5
7946 sed 's/^/| /' conftest.$ac_ext >&5
7947
7948 ac_compiler_gnu=no
7949 fi
7950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7951 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7952
7953 fi
7954 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7955 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7956 GXX=`test $ac_compiler_gnu = yes && echo yes`
7957 ac_test_CXXFLAGS=${CXXFLAGS+set}
7958 ac_save_CXXFLAGS=$CXXFLAGS
7959 CXXFLAGS="-g"
7960 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7961 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7962 if test "${ac_cv_prog_cxx_g+set}" = set; then
7963   echo $ECHO_N "(cached) $ECHO_C" >&6
7964 else
7965   cat >conftest.$ac_ext <<_ACEOF
7966 /* confdefs.h.  */
7967 _ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h.  */
7971
7972 int
7973 main ()
7974 {
7975
7976   ;
7977   return 0;
7978 }
7979 _ACEOF
7980 rm -f conftest.$ac_objext
7981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7982   (eval $ac_compile) 2>conftest.er1
7983   ac_status=$?
7984   grep -v '^ *+' conftest.er1 >conftest.err
7985   rm -f conftest.er1
7986   cat conftest.err >&5
7987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988   (exit $ac_status); } &&
7989          { ac_try='test -z "$ac_cxx_werror_flag"
7990                          || test ! -s conftest.err'
7991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7992   (eval $ac_try) 2>&5
7993   ac_status=$?
7994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995   (exit $ac_status); }; } &&
7996          { ac_try='test -s conftest.$ac_objext'
7997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998   (eval $ac_try) 2>&5
7999   ac_status=$?
8000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001   (exit $ac_status); }; }; then
8002   ac_cv_prog_cxx_g=yes
8003 else
8004   echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8006
8007 ac_cv_prog_cxx_g=no
8008 fi
8009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8010 fi
8011 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8012 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8013 if test "$ac_test_CXXFLAGS" = set; then
8014   CXXFLAGS=$ac_save_CXXFLAGS
8015 elif test $ac_cv_prog_cxx_g = yes; then
8016   if test "$GXX" = yes; then
8017     CXXFLAGS="-g -O2"
8018   else
8019     CXXFLAGS="-g"
8020   fi
8021 else
8022   if test "$GXX" = yes; then
8023     CXXFLAGS="-O2"
8024   else
8025     CXXFLAGS=
8026   fi
8027 fi
8028 for ac_declaration in \
8029    '' \
8030    'extern "C" void std::exit (int) throw (); using std::exit;' \
8031    'extern "C" void std::exit (int); using std::exit;' \
8032    'extern "C" void exit (int) throw ();' \
8033    'extern "C" void exit (int);' \
8034    'void exit (int);'
8035 do
8036   cat >conftest.$ac_ext <<_ACEOF
8037 /* confdefs.h.  */
8038 _ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h.  */
8042 $ac_declaration
8043 #include <stdlib.h>
8044 int
8045 main ()
8046 {
8047 exit (42);
8048   ;
8049   return 0;
8050 }
8051 _ACEOF
8052 rm -f conftest.$ac_objext
8053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8054   (eval $ac_compile) 2>conftest.er1
8055   ac_status=$?
8056   grep -v '^ *+' conftest.er1 >conftest.err
8057   rm -f conftest.er1
8058   cat conftest.err >&5
8059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060   (exit $ac_status); } &&
8061          { ac_try='test -z "$ac_cxx_werror_flag"
8062                          || test ! -s conftest.err'
8063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064   (eval $ac_try) 2>&5
8065   ac_status=$?
8066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067   (exit $ac_status); }; } &&
8068          { ac_try='test -s conftest.$ac_objext'
8069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070   (eval $ac_try) 2>&5
8071   ac_status=$?
8072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073   (exit $ac_status); }; }; then
8074   :
8075 else
8076   echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8078
8079 continue
8080 fi
8081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8082   cat >conftest.$ac_ext <<_ACEOF
8083 /* confdefs.h.  */
8084 _ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h.  */
8088 $ac_declaration
8089 int
8090 main ()
8091 {
8092 exit (42);
8093   ;
8094   return 0;
8095 }
8096 _ACEOF
8097 rm -f conftest.$ac_objext
8098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8099   (eval $ac_compile) 2>conftest.er1
8100   ac_status=$?
8101   grep -v '^ *+' conftest.er1 >conftest.err
8102   rm -f conftest.er1
8103   cat conftest.err >&5
8104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105   (exit $ac_status); } &&
8106          { ac_try='test -z "$ac_cxx_werror_flag"
8107                          || test ! -s conftest.err'
8108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109   (eval $ac_try) 2>&5
8110   ac_status=$?
8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   (exit $ac_status); }; } &&
8113          { ac_try='test -s conftest.$ac_objext'
8114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115   (eval $ac_try) 2>&5
8116   ac_status=$?
8117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118   (exit $ac_status); }; }; then
8119   break
8120 else
8121   echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8123
8124 fi
8125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8126 done
8127 rm -f conftest*
8128 if test -n "$ac_declaration"; then
8129   echo '#ifdef __cplusplus' >>confdefs.h
8130   echo $ac_declaration      >>confdefs.h
8131   echo '#endif'             >>confdefs.h
8132 fi
8133
8134 ac_ext=c
8135 ac_cpp='$CPP $CPPFLAGS'
8136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8139
8140 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8141     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8142     (test "X$CXX" != "Xg++"))) ; then
8143   ac_ext=cc
8144 ac_cpp='$CXXCPP $CPPFLAGS'
8145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8148 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8149 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8150 if test -z "$CXXCPP"; then
8151   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8152   echo $ECHO_N "(cached) $ECHO_C" >&6
8153 else
8154       # Double quotes because CXXCPP needs to be expanded
8155     for CXXCPP in "$CXX -E" "/lib/cpp"
8156     do
8157       ac_preproc_ok=false
8158 for ac_cxx_preproc_warn_flag in '' yes
8159 do
8160   # Use a header file that comes with gcc, so configuring glibc
8161   # with a fresh cross-compiler works.
8162   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8163   # <limits.h> exists even on freestanding compilers.
8164   # On the NeXT, cc -E runs the code through the compiler's parser,
8165   # not just through cpp. "Syntax error" is here to catch this case.
8166   cat >conftest.$ac_ext <<_ACEOF
8167 /* confdefs.h.  */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h.  */
8172 #ifdef __STDC__
8173 # include <limits.h>
8174 #else
8175 # include <assert.h>
8176 #endif
8177                      Syntax error
8178 _ACEOF
8179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8180   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8181   ac_status=$?
8182   grep -v '^ *+' conftest.er1 >conftest.err
8183   rm -f conftest.er1
8184   cat conftest.err >&5
8185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186   (exit $ac_status); } >/dev/null; then
8187   if test -s conftest.err; then
8188     ac_cpp_err=$ac_cxx_preproc_warn_flag
8189     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8190   else
8191     ac_cpp_err=
8192   fi
8193 else
8194   ac_cpp_err=yes
8195 fi
8196 if test -z "$ac_cpp_err"; then
8197   :
8198 else
8199   echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8201
8202   # Broken: fails on valid input.
8203 continue
8204 fi
8205 rm -f conftest.err conftest.$ac_ext
8206
8207   # OK, works on sane cases.  Now check whether non-existent headers
8208   # can be detected and how.
8209   cat >conftest.$ac_ext <<_ACEOF
8210 /* confdefs.h.  */
8211 _ACEOF
8212 cat confdefs.h >>conftest.$ac_ext
8213 cat >>conftest.$ac_ext <<_ACEOF
8214 /* end confdefs.h.  */
8215 #include <ac_nonexistent.h>
8216 _ACEOF
8217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8218   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8219   ac_status=$?
8220   grep -v '^ *+' conftest.er1 >conftest.err
8221   rm -f conftest.er1
8222   cat conftest.err >&5
8223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224   (exit $ac_status); } >/dev/null; then
8225   if test -s conftest.err; then
8226     ac_cpp_err=$ac_cxx_preproc_warn_flag
8227     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8228   else
8229     ac_cpp_err=
8230   fi
8231 else
8232   ac_cpp_err=yes
8233 fi
8234 if test -z "$ac_cpp_err"; then
8235   # Broken: success on invalid input.
8236 continue
8237 else
8238   echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8240
8241   # Passes both tests.
8242 ac_preproc_ok=:
8243 break
8244 fi
8245 rm -f conftest.err conftest.$ac_ext
8246
8247 done
8248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8249 rm -f conftest.err conftest.$ac_ext
8250 if $ac_preproc_ok; then
8251   break
8252 fi
8253
8254     done
8255     ac_cv_prog_CXXCPP=$CXXCPP
8256
8257 fi
8258   CXXCPP=$ac_cv_prog_CXXCPP
8259 else
8260   ac_cv_prog_CXXCPP=$CXXCPP
8261 fi
8262 echo "$as_me:$LINENO: result: $CXXCPP" >&5
8263 echo "${ECHO_T}$CXXCPP" >&6
8264 ac_preproc_ok=false
8265 for ac_cxx_preproc_warn_flag in '' yes
8266 do
8267   # Use a header file that comes with gcc, so configuring glibc
8268   # with a fresh cross-compiler works.
8269   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8270   # <limits.h> exists even on freestanding compilers.
8271   # On the NeXT, cc -E runs the code through the compiler's parser,
8272   # not just through cpp. "Syntax error" is here to catch this case.
8273   cat >conftest.$ac_ext <<_ACEOF
8274 /* confdefs.h.  */
8275 _ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h.  */
8279 #ifdef __STDC__
8280 # include <limits.h>
8281 #else
8282 # include <assert.h>
8283 #endif
8284                      Syntax error
8285 _ACEOF
8286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8287   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8288   ac_status=$?
8289   grep -v '^ *+' conftest.er1 >conftest.err
8290   rm -f conftest.er1
8291   cat conftest.err >&5
8292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293   (exit $ac_status); } >/dev/null; then
8294   if test -s conftest.err; then
8295     ac_cpp_err=$ac_cxx_preproc_warn_flag
8296     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8297   else
8298     ac_cpp_err=
8299   fi
8300 else
8301   ac_cpp_err=yes
8302 fi
8303 if test -z "$ac_cpp_err"; then
8304   :
8305 else
8306   echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8308
8309   # Broken: fails on valid input.
8310 continue
8311 fi
8312 rm -f conftest.err conftest.$ac_ext
8313
8314   # OK, works on sane cases.  Now check whether non-existent headers
8315   # can be detected and how.
8316   cat >conftest.$ac_ext <<_ACEOF
8317 /* confdefs.h.  */
8318 _ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h.  */
8322 #include <ac_nonexistent.h>
8323 _ACEOF
8324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8325   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8326   ac_status=$?
8327   grep -v '^ *+' conftest.er1 >conftest.err
8328   rm -f conftest.er1
8329   cat conftest.err >&5
8330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331   (exit $ac_status); } >/dev/null; then
8332   if test -s conftest.err; then
8333     ac_cpp_err=$ac_cxx_preproc_warn_flag
8334     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8335   else
8336     ac_cpp_err=
8337   fi
8338 else
8339   ac_cpp_err=yes
8340 fi
8341 if test -z "$ac_cpp_err"; then
8342   # Broken: success on invalid input.
8343 continue
8344 else
8345   echo "$as_me: failed program was:" >&5
8346 sed 's/^/| /' conftest.$ac_ext >&5
8347
8348   # Passes both tests.
8349 ac_preproc_ok=:
8350 break
8351 fi
8352 rm -f conftest.err conftest.$ac_ext
8353
8354 done
8355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8356 rm -f conftest.err conftest.$ac_ext
8357 if $ac_preproc_ok; then
8358   :
8359 else
8360   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8361 echo "$as_me: error: in \`$ac_pwd':" >&2;}
8362 _lt_caught_CXX_error=yes; }
8363 fi
8364
8365 ac_ext=c
8366 ac_cpp='$CPP $CPPFLAGS'
8367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8370
8371 else
8372   _lt_caught_CXX_error=yes
8373 fi
8374
8375
8376
8377
8378
8379 # This can be used to rebuild libtool when needed
8380 LIBTOOL_DEPS="$ltmain"
8381
8382 # Always use our own libtool.
8383 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409 test -z "$LN_S" && LN_S="ln -s"
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424 if test -n "${ZSH_VERSION+set}" ; then
8425    setopt NO_GLOB_SUBST
8426 fi
8427
8428 echo "$as_me:$LINENO: checking for objdir" >&5
8429 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8430 if test "${lt_cv_objdir+set}" = set; then
8431   echo $ECHO_N "(cached) $ECHO_C" >&6
8432 else
8433   rm -f .libs 2>/dev/null
8434 mkdir .libs 2>/dev/null
8435 if test -d .libs; then
8436   lt_cv_objdir=.libs
8437 else
8438   # MS-DOS does not allow filenames that begin with a dot.
8439   lt_cv_objdir=_libs
8440 fi
8441 rmdir .libs 2>/dev/null
8442 fi
8443 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8444 echo "${ECHO_T}$lt_cv_objdir" >&6
8445 objdir=$lt_cv_objdir
8446
8447
8448
8449
8450
8451 cat >>confdefs.h <<_ACEOF
8452 #define LT_OBJDIR "$lt_cv_objdir/"
8453 _ACEOF
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471 case $host_os in
8472 aix3*)
8473   # AIX sometimes has problems with the GCC collect2 program.  For some
8474   # reason, if we set the COLLECT_NAMES environment variable, the problems
8475   # vanish in a puff of smoke.
8476   if test "X${COLLECT_NAMES+set}" != Xset; then
8477     COLLECT_NAMES=
8478     export COLLECT_NAMES
8479   fi
8480   ;;
8481 esac
8482
8483 # Sed substitution that helps us do robust quoting.  It backslashifies
8484 # metacharacters that are still active within double-quoted strings.
8485 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8486
8487 # Same as above, but do not quote variable references.
8488 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8489
8490 # Sed substitution to delay expansion of an escaped shell variable in a
8491 # double_quote_subst'ed string.
8492 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8493
8494 # Sed substitution to delay expansion of an escaped single quote.
8495 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8496
8497 # Sed substitution to avoid accidental globbing in evaled expressions
8498 no_glob_subst='s/\*/\\\*/g'
8499
8500 # Global variables:
8501 ofile=libtool
8502 can_build_shared=yes
8503
8504 # All known linkers require a `.a' archive for static linking (except MSVC,
8505 # which needs '.lib').
8506 libext=a
8507
8508 with_gnu_ld="$lt_cv_prog_gnu_ld"
8509
8510 old_CC="$CC"
8511 old_CFLAGS="$CFLAGS"
8512
8513 # Set sane defaults for various variables
8514 test -z "$CC" && CC=cc
8515 test -z "$LTCC" && LTCC=$CC
8516 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8517 test -z "$LD" && LD=ld
8518 test -z "$ac_objext" && ac_objext=o
8519
8520 for cc_temp in $compiler""; do
8521   case $cc_temp in
8522     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8523     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8524     \-*) ;;
8525     *) break;;
8526   esac
8527 done
8528 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8529
8530
8531 # Only perform the check for file, if the check method requires it
8532 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8533 case $deplibs_check_method in
8534 file_magic*)
8535   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8536     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8537 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8538 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8539   echo $ECHO_N "(cached) $ECHO_C" >&6
8540 else
8541   case $MAGIC_CMD in
8542 [\\/*] |  ?:[\\/]*)
8543   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8544   ;;
8545 *)
8546   lt_save_MAGIC_CMD="$MAGIC_CMD"
8547   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8548   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8549   for ac_dir in $ac_dummy; do
8550     IFS="$lt_save_ifs"
8551     test -z "$ac_dir" && ac_dir=.
8552     if test -f $ac_dir/${ac_tool_prefix}file; then
8553       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8554       if test -n "$file_magic_test_file"; then
8555         case $deplibs_check_method in
8556         "file_magic "*)
8557           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8558           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8559           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8560             $EGREP "$file_magic_regex" > /dev/null; then
8561             :
8562           else
8563             cat <<_LT_EOF 1>&2
8564
8565 *** Warning: the command libtool uses to detect shared libraries,
8566 *** $file_magic_cmd, produces output that libtool cannot recognize.
8567 *** The result is that libtool may fail to recognize shared libraries
8568 *** as such.  This will affect the creation of libtool libraries that
8569 *** depend on shared libraries, but programs linked with such libtool
8570 *** libraries will work regardless of this problem.  Nevertheless, you
8571 *** may want to report the problem to your system manager and/or to
8572 *** bug-libtool@gnu.org
8573
8574 _LT_EOF
8575           fi ;;
8576         esac
8577       fi
8578       break
8579     fi
8580   done
8581   IFS="$lt_save_ifs"
8582   MAGIC_CMD="$lt_save_MAGIC_CMD"
8583   ;;
8584 esac
8585 fi
8586
8587 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8588 if test -n "$MAGIC_CMD"; then
8589   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8590 echo "${ECHO_T}$MAGIC_CMD" >&6
8591 else
8592   echo "$as_me:$LINENO: result: no" >&5
8593 echo "${ECHO_T}no" >&6
8594 fi
8595
8596
8597
8598
8599
8600 if test -z "$lt_cv_path_MAGIC_CMD"; then
8601   if test -n "$ac_tool_prefix"; then
8602     echo "$as_me:$LINENO: checking for file" >&5
8603 echo $ECHO_N "checking for file... $ECHO_C" >&6
8604 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8605   echo $ECHO_N "(cached) $ECHO_C" >&6
8606 else
8607   case $MAGIC_CMD in
8608 [\\/*] |  ?:[\\/]*)
8609   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8610   ;;
8611 *)
8612   lt_save_MAGIC_CMD="$MAGIC_CMD"
8613   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8614   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8615   for ac_dir in $ac_dummy; do
8616     IFS="$lt_save_ifs"
8617     test -z "$ac_dir" && ac_dir=.
8618     if test -f $ac_dir/file; then
8619       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8620       if test -n "$file_magic_test_file"; then
8621         case $deplibs_check_method in
8622         "file_magic "*)
8623           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8624           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8625           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8626             $EGREP "$file_magic_regex" > /dev/null; then
8627             :
8628           else
8629             cat <<_LT_EOF 1>&2
8630
8631 *** Warning: the command libtool uses to detect shared libraries,
8632 *** $file_magic_cmd, produces output that libtool cannot recognize.
8633 *** The result is that libtool may fail to recognize shared libraries
8634 *** as such.  This will affect the creation of libtool libraries that
8635 *** depend on shared libraries, but programs linked with such libtool
8636 *** libraries will work regardless of this problem.  Nevertheless, you
8637 *** may want to report the problem to your system manager and/or to
8638 *** bug-libtool@gnu.org
8639
8640 _LT_EOF
8641           fi ;;
8642         esac
8643       fi
8644       break
8645     fi
8646   done
8647   IFS="$lt_save_ifs"
8648   MAGIC_CMD="$lt_save_MAGIC_CMD"
8649   ;;
8650 esac
8651 fi
8652
8653 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8654 if test -n "$MAGIC_CMD"; then
8655   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8656 echo "${ECHO_T}$MAGIC_CMD" >&6
8657 else
8658   echo "$as_me:$LINENO: result: no" >&5
8659 echo "${ECHO_T}no" >&6
8660 fi
8661
8662
8663   else
8664     MAGIC_CMD=:
8665   fi
8666 fi
8667
8668   fi
8669   ;;
8670 esac
8671
8672 # Use C for the default configuration in the libtool script
8673
8674 lt_save_CC="$CC"
8675 ac_ext=c
8676 ac_cpp='$CPP $CPPFLAGS'
8677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8680
8681
8682 # Source file extension for C test sources.
8683 ac_ext=c
8684
8685 # Object file extension for compiled C test sources.
8686 objext=o
8687 objext=$objext
8688
8689 # Code to be used in simple compile tests
8690 lt_simple_compile_test_code="int some_variable = 0;"
8691
8692 # Code to be used in simple link tests
8693 lt_simple_link_test_code='int main(){return(0);}'
8694
8695
8696
8697
8698
8699
8700
8701 # If no C compiler was specified, use CC.
8702 LTCC=${LTCC-"$CC"}
8703
8704 # If no C compiler flags were specified, use CFLAGS.
8705 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8706
8707 # Allow CC to be a program name with arguments.
8708 compiler=$CC
8709
8710 # Save the default compiler, since it gets overwritten when the other
8711 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8712 compiler_DEFAULT=$CC
8713
8714 # save warnings/boilerplate of simple test code
8715 ac_outfile=conftest.$ac_objext
8716 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8717 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8718 _lt_compiler_boilerplate=`cat conftest.err`
8719 $RM conftest*
8720
8721 ac_outfile=conftest.$ac_objext
8722 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8723 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8724 _lt_linker_boilerplate=`cat conftest.err`
8725 $RM conftest*
8726
8727
8728 ## CAVEAT EMPTOR:
8729 ## There is no encapsulation within the following macros, do not change
8730 ## the running order or otherwise move them around unless you know exactly
8731 ## what you are doing...
8732 if test -n "$compiler"; then
8733
8734 lt_prog_compiler_no_builtin_flag=
8735
8736 if test "$GCC" = yes; then
8737   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8738
8739   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8740 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8741 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8742   echo $ECHO_N "(cached) $ECHO_C" >&6
8743 else
8744   lt_cv_prog_compiler_rtti_exceptions=no
8745    ac_outfile=conftest.$ac_objext
8746    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8747    lt_compiler_flag="-fno-rtti -fno-exceptions"
8748    # Insert the option either (1) after the last *FLAGS variable, or
8749    # (2) before a word containing "conftest.", or (3) at the end.
8750    # Note that $ac_compile itself does not contain backslashes and begins
8751    # with a dollar sign (not a hyphen), so the echo should work correctly.
8752    # The option is referenced via a variable to avoid confusing sed.
8753    lt_compile=`echo "$ac_compile" | $SED \
8754    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8755    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8756    -e 's:$: $lt_compiler_flag:'`
8757    (eval echo "\"\$as_me:8757: $lt_compile\"" >&5)
8758    (eval "$lt_compile" 2>conftest.err)
8759    ac_status=$?
8760    cat conftest.err >&5
8761    echo "$as_me:8761: \$? = $ac_status" >&5
8762    if (exit $ac_status) && test -s "$ac_outfile"; then
8763      # The compiler can only warn and ignore the option if not recognized
8764      # So say no if there are warnings other than the usual output.
8765      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8766      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8767      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8768        lt_cv_prog_compiler_rtti_exceptions=yes
8769      fi
8770    fi
8771    $RM conftest*
8772
8773 fi
8774 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8775 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8776
8777 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8778     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8779 else
8780     :
8781 fi
8782
8783 fi
8784
8785
8786
8787
8788
8789
8790   lt_prog_compiler_wl=
8791 lt_prog_compiler_pic=
8792 lt_prog_compiler_static=
8793
8794 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8795 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8796
8797   if test "$GCC" = yes; then
8798     lt_prog_compiler_wl='-Wl,'
8799     lt_prog_compiler_static='-static'
8800
8801     case $host_os in
8802       aix*)
8803       # All AIX code is PIC.
8804       if test "$host_cpu" = ia64; then
8805         # AIX 5 now supports IA64 processor
8806         lt_prog_compiler_static='-Bstatic'
8807       fi
8808       ;;
8809
8810     amigaos*)
8811       if test "$host_cpu" = m68k; then
8812         # FIXME: we need at least 68020 code to build shared libraries, but
8813         # adding the `-m68020' flag to GCC prevents building anything better,
8814         # like `-m68040'.
8815         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8816       fi
8817       ;;
8818
8819     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8820       # PIC is the default for these OSes.
8821       ;;
8822
8823     mingw* | cygwin* | pw32* | os2*)
8824       # This hack is so that the source file can tell whether it is being
8825       # built for inclusion in a dll (and should export symbols for example).
8826       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8827       # (--disable-auto-import) libraries
8828       lt_prog_compiler_pic='-DDLL_EXPORT'
8829       ;;
8830
8831     darwin* | rhapsody*)
8832       # PIC is the default on this platform
8833       # Common symbols not allowed in MH_DYLIB files
8834       lt_prog_compiler_pic='-fno-common'
8835       ;;
8836
8837     hpux*)
8838       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8839       # not for PA HP-UX.
8840       case $host_cpu in
8841       hppa*64*|ia64*)
8842         # +Z the default
8843         ;;
8844       *)
8845         lt_prog_compiler_pic='-fPIC'
8846         ;;
8847       esac
8848       ;;
8849
8850     interix[3-9]*)
8851       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8852       # Instead, we relocate shared libraries at runtime.
8853       ;;
8854
8855     msdosdjgpp*)
8856       # Just because we use GCC doesn't mean we suddenly get shared libraries
8857       # on systems that don't support them.
8858       lt_prog_compiler_can_build_shared=no
8859       enable_shared=no
8860       ;;
8861
8862     *nto* | *qnx*)
8863       # QNX uses GNU C++, but need to define -shared option too, otherwise
8864       # it will coredump.
8865       lt_prog_compiler_pic='-fPIC -shared'
8866       ;;
8867
8868     sysv4*MP*)
8869       if test -d /usr/nec; then
8870         lt_prog_compiler_pic=-Kconform_pic
8871       fi
8872       ;;
8873
8874     *)
8875       lt_prog_compiler_pic='-fPIC'
8876       ;;
8877     esac
8878   else
8879     # PORTME Check for flag to pass linker flags through the system compiler.
8880     case $host_os in
8881     aix*)
8882       lt_prog_compiler_wl='-Wl,'
8883       if test "$host_cpu" = ia64; then
8884         # AIX 5 now supports IA64 processor
8885         lt_prog_compiler_static='-Bstatic'
8886       else
8887         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8888       fi
8889       ;;
8890     darwin*)
8891       # PIC is the default on this platform
8892       # Common symbols not allowed in MH_DYLIB files
8893       case $cc_basename in
8894       xlc*)
8895         lt_prog_compiler_pic='-qnocommon'
8896         lt_prog_compiler_wl='-Wl,'
8897         ;;
8898       esac
8899       ;;
8900
8901     mingw* | cygwin* | pw32* | os2*)
8902       # This hack is so that the source file can tell whether it is being
8903       # built for inclusion in a dll (and should export symbols for example).
8904       lt_prog_compiler_pic='-DDLL_EXPORT'
8905       ;;
8906
8907     hpux9* | hpux10* | hpux11*)
8908       lt_prog_compiler_wl='-Wl,'
8909       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8910       # not for PA HP-UX.
8911       case $host_cpu in
8912       hppa*64*|ia64*)
8913         # +Z the default
8914         ;;
8915       *)
8916         lt_prog_compiler_pic='+Z'
8917         ;;
8918       esac
8919       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8920       lt_prog_compiler_static='${wl}-a ${wl}archive'
8921       ;;
8922
8923     irix5* | irix6* | nonstopux*)
8924       lt_prog_compiler_wl='-Wl,'
8925       # PIC (with -KPIC) is the default.
8926       lt_prog_compiler_static='-non_shared'
8927       ;;
8928
8929     linux* | k*bsd*-gnu)
8930       case $cc_basename in
8931       icc* | ecc*)
8932         lt_prog_compiler_wl='-Wl,'
8933         lt_prog_compiler_pic='-KPIC'
8934         lt_prog_compiler_static='-static'
8935         ;;
8936       pgcc* | pgf77* | pgf90* | pgf95*)
8937         # Portland Group compilers (*not* the Pentium gcc compiler,
8938         # which looks to be a dead project)
8939         lt_prog_compiler_wl='-Wl,'
8940         lt_prog_compiler_pic='-fpic'
8941         lt_prog_compiler_static='-Bstatic'
8942         ;;
8943       ccc*)
8944         lt_prog_compiler_wl='-Wl,'
8945         # All Alpha code is PIC.
8946         lt_prog_compiler_static='-non_shared'
8947         ;;
8948       *)
8949         case `$CC -V 2>&1 | sed 5q` in
8950         *Sun\ C*)
8951           # Sun C 5.9
8952           lt_prog_compiler_pic='-KPIC'
8953           lt_prog_compiler_static='-Bstatic'
8954           lt_prog_compiler_wl='-Wl,'
8955           ;;
8956         *Sun\ F*)
8957           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8958           lt_prog_compiler_pic='-KPIC'
8959           lt_prog_compiler_static='-Bstatic'
8960           lt_prog_compiler_wl=''
8961           ;;
8962         esac
8963         ;;
8964       esac
8965       ;;
8966
8967     newsos6)
8968       lt_prog_compiler_pic='-KPIC'
8969       lt_prog_compiler_static='-Bstatic'
8970       ;;
8971
8972     *nto* | *qnx*)
8973       # QNX uses GNU C++, but need to define -shared option too, otherwise
8974       # it will coredump.
8975       lt_prog_compiler_pic='-fPIC -shared'
8976       ;;
8977
8978     osf3* | osf4* | osf5*)
8979       lt_prog_compiler_wl='-Wl,'
8980       # All OSF/1 code is PIC.
8981       lt_prog_compiler_static='-non_shared'
8982       ;;
8983
8984     rdos*)
8985       lt_prog_compiler_static='-non_shared'
8986       ;;
8987
8988     solaris*)
8989       lt_prog_compiler_pic='-KPIC'
8990       lt_prog_compiler_static='-Bstatic'
8991       case $cc_basename in
8992       f77* | f90* | f95*)
8993         lt_prog_compiler_wl='-Qoption ld ';;
8994       *)
8995         lt_prog_compiler_wl='-Wl,';;
8996       esac
8997       ;;
8998
8999     sunos4*)
9000       lt_prog_compiler_wl='-Qoption ld '
9001       lt_prog_compiler_pic='-PIC'
9002       lt_prog_compiler_static='-Bstatic'
9003       ;;
9004
9005     sysv4 | sysv4.2uw2* | sysv4.3*)
9006       lt_prog_compiler_wl='-Wl,'
9007       lt_prog_compiler_pic='-KPIC'
9008       lt_prog_compiler_static='-Bstatic'
9009       ;;
9010
9011     sysv4*MP*)
9012       if test -d /usr/nec ;then
9013         lt_prog_compiler_pic='-Kconform_pic'
9014         lt_prog_compiler_static='-Bstatic'
9015       fi
9016       ;;
9017
9018     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9019       lt_prog_compiler_wl='-Wl,'
9020       lt_prog_compiler_pic='-KPIC'
9021       lt_prog_compiler_static='-Bstatic'
9022       ;;
9023
9024     unicos*)
9025       lt_prog_compiler_wl='-Wl,'
9026       lt_prog_compiler_can_build_shared=no
9027       ;;
9028
9029     uts4*)
9030       lt_prog_compiler_pic='-pic'
9031       lt_prog_compiler_static='-Bstatic'
9032       ;;
9033
9034     *)
9035       lt_prog_compiler_can_build_shared=no
9036       ;;
9037     esac
9038   fi
9039
9040 case $host_os in
9041   # For platforms which do not support PIC, -DPIC is meaningless:
9042   *djgpp*)
9043     lt_prog_compiler_pic=
9044     ;;
9045   *)
9046     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9047     ;;
9048 esac
9049 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9050 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9051
9052
9053
9054
9055
9056
9057 #
9058 # Check to make sure the PIC flag actually works.
9059 #
9060 if test -n "$lt_prog_compiler_pic"; then
9061   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9062 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9063 if test "${lt_prog_compiler_pic_works+set}" = set; then
9064   echo $ECHO_N "(cached) $ECHO_C" >&6
9065 else
9066   lt_prog_compiler_pic_works=no
9067    ac_outfile=conftest.$ac_objext
9068    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9069    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9070    # Insert the option either (1) after the last *FLAGS variable, or
9071    # (2) before a word containing "conftest.", or (3) at the end.
9072    # Note that $ac_compile itself does not contain backslashes and begins
9073    # with a dollar sign (not a hyphen), so the echo should work correctly.
9074    # The option is referenced via a variable to avoid confusing sed.
9075    lt_compile=`echo "$ac_compile" | $SED \
9076    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9077    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9078    -e 's:$: $lt_compiler_flag:'`
9079    (eval echo "\"\$as_me:9079: $lt_compile\"" >&5)
9080    (eval "$lt_compile" 2>conftest.err)
9081    ac_status=$?
9082    cat conftest.err >&5
9083    echo "$as_me:9083: \$? = $ac_status" >&5
9084    if (exit $ac_status) && test -s "$ac_outfile"; then
9085      # The compiler can only warn and ignore the option if not recognized
9086      # So say no if there are warnings other than the usual output.
9087      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9088      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9089      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9090        lt_prog_compiler_pic_works=yes
9091      fi
9092    fi
9093    $RM conftest*
9094
9095 fi
9096 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9097 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9098
9099 if test x"$lt_prog_compiler_pic_works" = xyes; then
9100     case $lt_prog_compiler_pic in
9101      "" | " "*) ;;
9102      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9103      esac
9104 else
9105     lt_prog_compiler_pic=
9106      lt_prog_compiler_can_build_shared=no
9107 fi
9108
9109 fi
9110
9111
9112
9113
9114
9115
9116 #
9117 # Check to make sure the static flag actually works.
9118 #
9119 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9120 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9121 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9122 if test "${lt_prog_compiler_static_works+set}" = set; then
9123   echo $ECHO_N "(cached) $ECHO_C" >&6
9124 else
9125   lt_prog_compiler_static_works=no
9126    save_LDFLAGS="$LDFLAGS"
9127    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9128    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9129    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9130      # The linker can only warn and ignore the option if not recognized
9131      # So say no if there are warnings
9132      if test -s conftest.err; then
9133        # Append any errors to the config.log.
9134        cat conftest.err 1>&5
9135        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9136        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9137        if diff conftest.exp conftest.er2 >/dev/null; then
9138          lt_prog_compiler_static_works=yes
9139        fi
9140      else
9141        lt_prog_compiler_static_works=yes
9142      fi
9143    fi
9144    $RM conftest*
9145    LDFLAGS="$save_LDFLAGS"
9146
9147 fi
9148 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9149 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9150
9151 if test x"$lt_prog_compiler_static_works" = xyes; then
9152     :
9153 else
9154     lt_prog_compiler_static=
9155 fi
9156
9157
9158
9159
9160
9161
9162
9163   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9164 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9165 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9166   echo $ECHO_N "(cached) $ECHO_C" >&6
9167 else
9168   lt_cv_prog_compiler_c_o=no
9169    $RM -r conftest 2>/dev/null
9170    mkdir conftest
9171    cd conftest
9172    mkdir out
9173    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9174
9175    lt_compiler_flag="-o out/conftest2.$ac_objext"
9176    # Insert the option either (1) after the last *FLAGS variable, or
9177    # (2) before a word containing "conftest.", or (3) at the end.
9178    # Note that $ac_compile itself does not contain backslashes and begins
9179    # with a dollar sign (not a hyphen), so the echo should work correctly.
9180    lt_compile=`echo "$ac_compile" | $SED \
9181    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9182    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9183    -e 's:$: $lt_compiler_flag:'`
9184    (eval echo "\"\$as_me:9184: $lt_compile\"" >&5)
9185    (eval "$lt_compile" 2>out/conftest.err)
9186    ac_status=$?
9187    cat out/conftest.err >&5
9188    echo "$as_me:9188: \$? = $ac_status" >&5
9189    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9190    then
9191      # The compiler can only warn and ignore the option if not recognized
9192      # So say no if there are warnings
9193      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9194      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9195      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9196        lt_cv_prog_compiler_c_o=yes
9197      fi
9198    fi
9199    chmod u+w . 2>&5
9200    $RM conftest*
9201    # SGI C++ compiler will create directory out/ii_files/ for
9202    # template instantiation
9203    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9204    $RM out/* && rmdir out
9205    cd ..
9206    $RM -r conftest
9207    $RM conftest*
9208
9209 fi
9210 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9211 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9212
9213
9214
9215
9216
9217
9218   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9219 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9220 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9221   echo $ECHO_N "(cached) $ECHO_C" >&6
9222 else
9223   lt_cv_prog_compiler_c_o=no
9224    $RM -r conftest 2>/dev/null
9225    mkdir conftest
9226    cd conftest
9227    mkdir out
9228    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9229
9230    lt_compiler_flag="-o out/conftest2.$ac_objext"
9231    # Insert the option either (1) after the last *FLAGS variable, or
9232    # (2) before a word containing "conftest.", or (3) at the end.
9233    # Note that $ac_compile itself does not contain backslashes and begins
9234    # with a dollar sign (not a hyphen), so the echo should work correctly.
9235    lt_compile=`echo "$ac_compile" | $SED \
9236    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9237    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9238    -e 's:$: $lt_compiler_flag:'`
9239    (eval echo "\"\$as_me:9239: $lt_compile\"" >&5)
9240    (eval "$lt_compile" 2>out/conftest.err)
9241    ac_status=$?
9242    cat out/conftest.err >&5
9243    echo "$as_me:9243: \$? = $ac_status" >&5
9244    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9245    then
9246      # The compiler can only warn and ignore the option if not recognized
9247      # So say no if there are warnings
9248      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9249      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9250      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9251        lt_cv_prog_compiler_c_o=yes
9252      fi
9253    fi
9254    chmod u+w . 2>&5
9255    $RM conftest*
9256    # SGI C++ compiler will create directory out/ii_files/ for
9257    # template instantiation
9258    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9259    $RM out/* && rmdir out
9260    cd ..
9261    $RM -r conftest
9262    $RM conftest*
9263
9264 fi
9265 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9266 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9267
9268
9269
9270
9271 hard_links="nottested"
9272 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9273   # do not overwrite the value of need_locks provided by the user
9274   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9275 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9276   hard_links=yes
9277   $RM conftest*
9278   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9279   touch conftest.a
9280   ln conftest.a conftest.b 2>&5 || hard_links=no
9281   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9282   echo "$as_me:$LINENO: result: $hard_links" >&5
9283 echo "${ECHO_T}$hard_links" >&6
9284   if test "$hard_links" = no; then
9285     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9286 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9287     need_locks=warn
9288   fi
9289 else
9290   need_locks=no
9291 fi
9292
9293
9294
9295
9296
9297
9298   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9299 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9300
9301   runpath_var=
9302   allow_undefined_flag=
9303   always_export_symbols=no
9304   archive_cmds=
9305   archive_expsym_cmds=
9306   compiler_needs_object=no
9307   enable_shared_with_static_runtimes=no
9308   export_dynamic_flag_spec=
9309   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9310   hardcode_automatic=no
9311   hardcode_direct=no
9312   hardcode_direct_absolute=no
9313   hardcode_libdir_flag_spec=
9314   hardcode_libdir_flag_spec_ld=
9315   hardcode_libdir_separator=
9316   hardcode_minus_L=no
9317   hardcode_shlibpath_var=unsupported
9318   inherit_rpath=no
9319   link_all_deplibs=unknown
9320   module_cmds=
9321   module_expsym_cmds=
9322   old_archive_from_new_cmds=
9323   old_archive_from_expsyms_cmds=
9324   thread_safe_flag_spec=
9325   whole_archive_flag_spec=
9326   # include_expsyms should be a list of space-separated symbols to be *always*
9327   # included in the symbol list
9328   include_expsyms=
9329   # exclude_expsyms can be an extended regexp of symbols to exclude
9330   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9331   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9332   # as well as any symbol that contains `d'.
9333   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9334   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9335   # platforms (ab)use it in PIC code, but their linkers get confused if
9336   # the symbol is explicitly referenced.  Since portable code cannot
9337   # rely on this symbol name, it's probably fine to never include it in
9338   # preloaded symbol tables.
9339   extract_expsyms_cmds=
9340
9341   case $host_os in
9342   cygwin* | mingw* | pw32*)
9343     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9344     # When not using gcc, we currently assume that we are using
9345     # Microsoft Visual C++.
9346     if test "$GCC" != yes; then
9347       with_gnu_ld=no
9348     fi
9349     ;;
9350   interix*)
9351     # we just hope/assume this is gcc and not c89 (= MSVC++)
9352     with_gnu_ld=yes
9353     ;;
9354   openbsd*)
9355     with_gnu_ld=no
9356     ;;
9357   esac
9358
9359   ld_shlibs=yes
9360   if test "$with_gnu_ld" = yes; then
9361     # If archive_cmds runs LD, not CC, wlarc should be empty
9362     wlarc='${wl}'
9363
9364     # Set some defaults for GNU ld with shared library support. These
9365     # are reset later if shared libraries are not supported. Putting them
9366     # here allows them to be overridden if necessary.
9367     runpath_var=LD_RUN_PATH
9368     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9369     export_dynamic_flag_spec='${wl}--export-dynamic'
9370     # ancient GNU ld didn't support --whole-archive et. al.
9371     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9372       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9373     else
9374       whole_archive_flag_spec=
9375     fi
9376     supports_anon_versioning=no
9377     case `$LD -v 2>&1` in
9378       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9379       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9380       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9381       *\ 2.11.*) ;; # other 2.11 versions
9382       *) supports_anon_versioning=yes ;;
9383     esac
9384
9385     # See if GNU ld supports shared libraries.
9386     case $host_os in
9387     aix[3-9]*)
9388       # On AIX/PPC, the GNU linker is very broken
9389       if test "$host_cpu" != ia64; then
9390         ld_shlibs=no
9391         cat <<_LT_EOF 1>&2
9392
9393 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9394 *** to be unable to reliably create shared libraries on AIX.
9395 *** Therefore, libtool is disabling shared libraries support.  If you
9396 *** really care for shared libraries, you may want to modify your PATH
9397 *** so that a non-GNU linker is found, and then restart.
9398
9399 _LT_EOF
9400       fi
9401       ;;
9402
9403     amigaos*)
9404       if test "$host_cpu" = m68k; then
9405         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)'
9406         hardcode_libdir_flag_spec='-L$libdir'
9407         hardcode_minus_L=yes
9408       fi
9409
9410       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9411       # that the semantics of dynamic libraries on AmigaOS, at least up
9412       # to version 4, is to share data among multiple programs linked
9413       # with the same dynamic library.  Since this doesn't match the
9414       # behavior of shared libraries on other platforms, we can't use
9415       # them.
9416       ld_shlibs=no
9417       ;;
9418
9419     beos*)
9420       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9421         allow_undefined_flag=unsupported
9422         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9423         # support --undefined.  This deserves some investigation.  FIXME
9424         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9425       else
9426         ld_shlibs=no
9427       fi
9428       ;;
9429
9430     cygwin* | mingw* | pw32*)
9431       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9432       # as there is no search path for DLLs.
9433       hardcode_libdir_flag_spec='-L$libdir'
9434       allow_undefined_flag=unsupported
9435       always_export_symbols=no
9436       enable_shared_with_static_runtimes=yes
9437       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9438
9439       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9440         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9441         # If the export-symbols file already is a .def file (1st line
9442         # is EXPORTS), use it as is; otherwise, prepend...
9443         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9444           cp $export_symbols $output_objdir/$soname.def;
9445         else
9446           echo EXPORTS > $output_objdir/$soname.def;
9447           cat $export_symbols >> $output_objdir/$soname.def;
9448         fi~
9449         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9450       else
9451         ld_shlibs=no
9452       fi
9453       ;;
9454
9455     interix[3-9]*)
9456       hardcode_direct=no
9457       hardcode_shlibpath_var=no
9458       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9459       export_dynamic_flag_spec='${wl}-E'
9460       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9461       # Instead, shared libraries are loaded at an image base (0x10000000 by
9462       # default) and relocated if they conflict, which is a slow very memory
9463       # consuming and fragmenting process.  To avoid this, we pick a random,
9464       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9465       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9466       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9467       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9468       ;;
9469
9470     gnu* | linux* | tpf* | k*bsd*-gnu)
9471       tmp_diet=no
9472       if test "$host_os" = linux-dietlibc; then
9473         case $cc_basename in
9474           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9475         esac
9476       fi
9477       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9478          && test "$tmp_diet" = no
9479       then
9480         tmp_addflag=
9481         case $cc_basename,$host_cpu in
9482         pgcc*)                          # Portland Group C compiler
9483           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9484           tmp_addflag=' $pic_flag'
9485           ;;
9486         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9487           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9488           tmp_addflag=' $pic_flag -Mnomain' ;;
9489         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9490           tmp_addflag=' -i_dynamic' ;;
9491         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9492           tmp_addflag=' -i_dynamic -nofor_main' ;;
9493         ifc* | ifort*)                  # Intel Fortran compiler
9494           tmp_addflag=' -nofor_main' ;;
9495         esac
9496         case `$CC -V 2>&1 | sed 5q` in
9497         *Sun\ C*)                       # Sun C 5.9
9498           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9499           compiler_needs_object=yes
9500           tmp_sharedflag='-G' ;;
9501         *Sun\ F*)                       # Sun Fortran 8.3
9502           tmp_sharedflag='-G' ;;
9503         *)
9504           tmp_sharedflag='-shared' ;;
9505         esac
9506         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9507
9508         if test "x$supports_anon_versioning" = xyes; then
9509           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9510             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9511             echo "local: *; };" >> $output_objdir/$libname.ver~
9512             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9513         fi
9514       else
9515         ld_shlibs=no
9516       fi
9517       ;;
9518
9519     netbsd*)
9520       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9521         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9522         wlarc=
9523       else
9524         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9525         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9526       fi
9527       ;;
9528
9529     solaris*)
9530       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9531         ld_shlibs=no
9532         cat <<_LT_EOF 1>&2
9533
9534 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9535 *** create shared libraries on Solaris systems.  Therefore, libtool
9536 *** is disabling shared libraries support.  We urge you to upgrade GNU
9537 *** binutils to release 2.9.1 or newer.  Another option is to modify
9538 *** your PATH or compiler configuration so that the native linker is
9539 *** used, and then restart.
9540
9541 _LT_EOF
9542       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9543         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9544         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9545       else
9546         ld_shlibs=no
9547       fi
9548       ;;
9549
9550     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9551       case `$LD -v 2>&1` in
9552         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9553         ld_shlibs=no
9554         cat <<_LT_EOF 1>&2
9555
9556 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9557 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9558 *** is disabling shared libraries support.  We urge you to upgrade GNU
9559 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9560 *** your PATH or compiler configuration so that the native linker is
9561 *** used, and then restart.
9562
9563 _LT_EOF
9564         ;;
9565         *)
9566           # For security reasons, it is highly recommended that you always
9567           # use absolute paths for naming shared libraries, and exclude the
9568           # DT_RUNPATH tag from executables and libraries.  But doing so
9569           # requires that you compile everything twice, which is a pain.
9570           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9571             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9572             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9573             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9574           else
9575             ld_shlibs=no
9576           fi
9577         ;;
9578       esac
9579       ;;
9580
9581     sunos4*)
9582       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9583       wlarc=
9584       hardcode_direct=yes
9585       hardcode_shlibpath_var=no
9586       ;;
9587
9588     *)
9589       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9590         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9591         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9592       else
9593         ld_shlibs=no
9594       fi
9595       ;;
9596     esac
9597
9598     if test "$ld_shlibs" = no; then
9599       runpath_var=
9600       hardcode_libdir_flag_spec=
9601       export_dynamic_flag_spec=
9602       whole_archive_flag_spec=
9603     fi
9604   else
9605     # PORTME fill in a description of your system's linker (not GNU ld)
9606     case $host_os in
9607     aix3*)
9608       allow_undefined_flag=unsupported
9609       always_export_symbols=yes
9610       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'
9611       # Note: this linker hardcodes the directories in LIBPATH if there
9612       # are no directories specified by -L.
9613       hardcode_minus_L=yes
9614       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9615         # Neither direct hardcoding nor static linking is supported with a
9616         # broken collect2.
9617         hardcode_direct=unsupported
9618       fi
9619       ;;
9620
9621     aix[4-9]*)
9622       if test "$host_cpu" = ia64; then
9623         # On IA64, the linker does run time linking by default, so we don't
9624         # have to do anything special.
9625         aix_use_runtimelinking=no
9626         exp_sym_flag='-Bexport'
9627         no_entry_flag=""
9628       else
9629         # If we're using GNU nm, then we don't want the "-C" option.
9630         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9631         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9632           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'
9633         else
9634           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'
9635         fi
9636         aix_use_runtimelinking=no
9637
9638         # Test if we are trying to use run time linking or normal
9639         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9640         # need to do runtime linking.
9641         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9642           for ld_flag in $LDFLAGS; do
9643           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9644             aix_use_runtimelinking=yes
9645             break
9646           fi
9647           done
9648           ;;
9649         esac
9650
9651         exp_sym_flag='-bexport'
9652         no_entry_flag='-bnoentry'
9653       fi
9654
9655       # When large executables or shared objects are built, AIX ld can
9656       # have problems creating the table of contents.  If linking a library
9657       # or program results in "error TOC overflow" add -mminimal-toc to
9658       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9659       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9660
9661       archive_cmds=''
9662       hardcode_direct=yes
9663       hardcode_direct_absolute=yes
9664       hardcode_libdir_separator=':'
9665       link_all_deplibs=yes
9666       file_list_spec='${wl}-f,'
9667
9668       if test "$GCC" = yes; then
9669         case $host_os in aix4.[012]|aix4.[012].*)
9670         # We only want to do this on AIX 4.2 and lower, the check
9671         # below for broken collect2 doesn't work under 4.3+
9672           collect2name=`${CC} -print-prog-name=collect2`
9673           if test -f "$collect2name" &&
9674            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9675           then
9676           # We have reworked collect2
9677           :
9678           else
9679           # We have old collect2
9680           hardcode_direct=unsupported
9681           # It fails to find uninstalled libraries when the uninstalled
9682           # path is not listed in the libpath.  Setting hardcode_minus_L
9683           # to unsupported forces relinking
9684           hardcode_minus_L=yes
9685           hardcode_libdir_flag_spec='-L$libdir'
9686           hardcode_libdir_separator=
9687           fi
9688           ;;
9689         esac
9690         shared_flag='-shared'
9691         if test "$aix_use_runtimelinking" = yes; then
9692           shared_flag="$shared_flag "'${wl}-G'
9693         fi
9694       else
9695         # not using gcc
9696         if test "$host_cpu" = ia64; then
9697         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9698         # chokes on -Wl,-G. The following line is correct:
9699           shared_flag='-G'
9700         else
9701           if test "$aix_use_runtimelinking" = yes; then
9702             shared_flag='${wl}-G'
9703           else
9704             shared_flag='${wl}-bM:SRE'
9705           fi
9706         fi
9707       fi
9708
9709       # It seems that -bexpall does not export symbols beginning with
9710       # underscore (_), so it is better to generate a list of symbols to export.
9711       always_export_symbols=yes
9712       if test "$aix_use_runtimelinking" = yes; then
9713         # Warning - without using the other runtime loading flags (-brtl),
9714         # -berok will link without error, but may produce a broken library.
9715         allow_undefined_flag='-berok'
9716         # Determine the default libpath from the value encoded in an
9717         # empty executable.
9718         if test x$gcc_no_link = xyes; then
9719   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9720 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9721    { (exit 1); exit 1; }; }
9722 fi
9723 cat >conftest.$ac_ext <<_ACEOF
9724 /* confdefs.h.  */
9725 _ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h.  */
9729
9730 int
9731 main ()
9732 {
9733
9734   ;
9735   return 0;
9736 }
9737 _ACEOF
9738 rm -f conftest.$ac_objext conftest$ac_exeext
9739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9740   (eval $ac_link) 2>conftest.er1
9741   ac_status=$?
9742   grep -v '^ *+' conftest.er1 >conftest.err
9743   rm -f conftest.er1
9744   cat conftest.err >&5
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   (exit $ac_status); } &&
9747          { ac_try='test -z "$ac_c_werror_flag"
9748                          || test ! -s conftest.err'
9749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750   (eval $ac_try) 2>&5
9751   ac_status=$?
9752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753   (exit $ac_status); }; } &&
9754          { ac_try='test -s conftest$ac_exeext'
9755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9756   (eval $ac_try) 2>&5
9757   ac_status=$?
9758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759   (exit $ac_status); }; }; then
9760
9761 lt_aix_libpath_sed='
9762     /Import File Strings/,/^$/ {
9763         /^0/ {
9764             s/^0  *\(.*\)$/\1/
9765             p
9766         }
9767     }'
9768 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9769 # Check for a 64-bit object if we didn't find anything.
9770 if test -z "$aix_libpath"; then
9771   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9772 fi
9773 else
9774   echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9776
9777 fi
9778 rm -f conftest.err conftest.$ac_objext \
9779       conftest$ac_exeext conftest.$ac_ext
9780 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9781
9782         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9783         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9784       else
9785         if test "$host_cpu" = ia64; then
9786           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9787           allow_undefined_flag="-z nodefs"
9788           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9789         else
9790          # Determine the default libpath from the value encoded in an
9791          # empty executable.
9792          if test x$gcc_no_link = xyes; then
9793   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9794 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9795    { (exit 1); exit 1; }; }
9796 fi
9797 cat >conftest.$ac_ext <<_ACEOF
9798 /* confdefs.h.  */
9799 _ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h.  */
9803
9804 int
9805 main ()
9806 {
9807
9808   ;
9809   return 0;
9810 }
9811 _ACEOF
9812 rm -f conftest.$ac_objext conftest$ac_exeext
9813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9814   (eval $ac_link) 2>conftest.er1
9815   ac_status=$?
9816   grep -v '^ *+' conftest.er1 >conftest.err
9817   rm -f conftest.er1
9818   cat conftest.err >&5
9819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820   (exit $ac_status); } &&
9821          { ac_try='test -z "$ac_c_werror_flag"
9822                          || test ! -s conftest.err'
9823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824   (eval $ac_try) 2>&5
9825   ac_status=$?
9826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827   (exit $ac_status); }; } &&
9828          { ac_try='test -s conftest$ac_exeext'
9829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830   (eval $ac_try) 2>&5
9831   ac_status=$?
9832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833   (exit $ac_status); }; }; then
9834
9835 lt_aix_libpath_sed='
9836     /Import File Strings/,/^$/ {
9837         /^0/ {
9838             s/^0  *\(.*\)$/\1/
9839             p
9840         }
9841     }'
9842 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9843 # Check for a 64-bit object if we didn't find anything.
9844 if test -z "$aix_libpath"; then
9845   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9846 fi
9847 else
9848   echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9850
9851 fi
9852 rm -f conftest.err conftest.$ac_objext \
9853       conftest$ac_exeext conftest.$ac_ext
9854 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9855
9856          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9857           # Warning - without using the other run time loading flags,
9858           # -berok will link without error, but may produce a broken library.
9859           no_undefined_flag=' ${wl}-bernotok'
9860           allow_undefined_flag=' ${wl}-berok'
9861           # Exported symbols can be pulled into shared objects from archives
9862           whole_archive_flag_spec='$convenience'
9863           archive_cmds_need_lc=yes
9864           # This is similar to how AIX traditionally builds its shared libraries.
9865           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9866         fi
9867       fi
9868       ;;
9869
9870     amigaos*)
9871       if test "$host_cpu" = m68k; then
9872         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)'
9873         hardcode_libdir_flag_spec='-L$libdir'
9874         hardcode_minus_L=yes
9875       fi
9876       # see comment about different semantics on the GNU ld section
9877       ld_shlibs=no
9878       ;;
9879
9880     bsdi[45]*)
9881       export_dynamic_flag_spec=-rdynamic
9882       ;;
9883
9884     cygwin* | mingw* | pw32*)
9885       # When not using gcc, we currently assume that we are using
9886       # Microsoft Visual C++.
9887       # hardcode_libdir_flag_spec is actually meaningless, as there is
9888       # no search path for DLLs.
9889       hardcode_libdir_flag_spec=' '
9890       allow_undefined_flag=unsupported
9891       # Tell ltmain to make .lib files, not .a files.
9892       libext=lib
9893       # Tell ltmain to make .dll files, not .so files.
9894       shrext_cmds=".dll"
9895       # FIXME: Setting linknames here is a bad hack.
9896       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9897       # The linker will automatically build a .lib file if we build a DLL.
9898       old_archive_from_new_cmds='true'
9899       # FIXME: Should let the user specify the lib program.
9900       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9901       fix_srcfile_path='`cygpath -w "$srcfile"`'
9902       enable_shared_with_static_runtimes=yes
9903       ;;
9904
9905     darwin* | rhapsody*)
9906       case $host_os in
9907       rhapsody* | darwin1.[012])
9908         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9909         ;;
9910       *) # Darwin 1.3 on
9911         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
9912         10.[012])
9913           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9914           ;;
9915         10.*)
9916           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9917           ;;
9918         esac
9919         ;;
9920       esac
9921       archive_cmds_need_lc=no
9922       hardcode_direct=no
9923       hardcode_automatic=yes
9924       hardcode_shlibpath_var=unsupported
9925       whole_archive_flag_spec=''
9926       link_all_deplibs=yes
9927       if test "$GCC" = yes ; then
9928         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9929   echo $ECHO_N "(cached) $ECHO_C" >&6
9930 else
9931   lt_cv_apple_cc_single_mod=no
9932         if test -z "${LT_MULTI_MODULE}"; then
9933           # By default we will add the -single_module flag. You can override
9934           # by either setting the environment variable LT_MULTI_MODULE
9935           # non-empty at configure time, or by adding -multi-module to the
9936           # link flags.
9937           echo "int foo(void){return 1;}" > conftest.c
9938           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9939               -dynamiclib ${wl}-single_module conftest.c
9940           if test -f libconftest.dylib; then
9941               lt_cv_apple_cc_single_mod=yes
9942               rm libconftest.dylib
9943           fi
9944           rm conftest.$ac_ext
9945         fi
9946 fi
9947
9948         output_verbose_link_cmd=echo
9949         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
9950           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9951           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9952         else
9953           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9954           archive_expsym_cmds='sed "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}'
9955         fi
9956         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9957         module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9958       else
9959         case $cc_basename in
9960         xlc*)
9961           output_verbose_link_cmd=echo
9962           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
9963           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9964           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9965           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9966           module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9967           ;;
9968         *)
9969           ld_shlibs=no
9970           ;;
9971         esac
9972       fi
9973       ;;
9974
9975     dgux*)
9976       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9977       hardcode_libdir_flag_spec='-L$libdir'
9978       hardcode_shlibpath_var=no
9979       ;;
9980
9981     freebsd1*)
9982       ld_shlibs=no
9983       ;;
9984
9985     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9986     # support.  Future versions do this automatically, but an explicit c++rt0.o
9987     # does not break anything, and helps significantly (at the cost of a little
9988     # extra space).
9989     freebsd2.2*)
9990       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9991       hardcode_libdir_flag_spec='-R$libdir'
9992       hardcode_direct=yes
9993       hardcode_shlibpath_var=no
9994       ;;
9995
9996     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9997     freebsd2*)
9998       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9999       hardcode_direct=yes
10000       hardcode_minus_L=yes
10001       hardcode_shlibpath_var=no
10002       ;;
10003
10004     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10005     freebsd* | dragonfly*)
10006       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10007       hardcode_libdir_flag_spec='-R$libdir'
10008       hardcode_direct=yes
10009       hardcode_shlibpath_var=no
10010       ;;
10011
10012     hpux9*)
10013       if test "$GCC" = yes; then
10014         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'
10015       else
10016         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'
10017       fi
10018       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10019       hardcode_libdir_separator=:
10020       hardcode_direct=yes
10021
10022       # hardcode_minus_L: Not really in the search PATH,
10023       # but as the default location of the library.
10024       hardcode_minus_L=yes
10025       export_dynamic_flag_spec='${wl}-E'
10026       ;;
10027
10028     hpux10*)
10029       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10030         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10031       else
10032         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10033       fi
10034       if test "$with_gnu_ld" = no; then
10035         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10036         hardcode_libdir_flag_spec_ld='+b $libdir'
10037         hardcode_libdir_separator=:
10038         hardcode_direct=yes
10039         hardcode_direct_absolute=yes
10040         export_dynamic_flag_spec='${wl}-E'
10041         # hardcode_minus_L: Not really in the search PATH,
10042         # but as the default location of the library.
10043         hardcode_minus_L=yes
10044       fi
10045       ;;
10046
10047     hpux11*)
10048       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10049         case $host_cpu in
10050         hppa*64*)
10051           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10052           ;;
10053         ia64*)
10054           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10055           ;;
10056         *)
10057           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10058           ;;
10059         esac
10060       else
10061         case $host_cpu in
10062         hppa*64*)
10063           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10064           ;;
10065         ia64*)
10066           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10067           ;;
10068         *)
10069           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10070           ;;
10071         esac
10072       fi
10073       if test "$with_gnu_ld" = no; then
10074         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10075         hardcode_libdir_separator=:
10076
10077         case $host_cpu in
10078         hppa*64*|ia64*)
10079           hardcode_direct=no
10080           hardcode_shlibpath_var=no
10081           ;;
10082         *)
10083           hardcode_direct=yes
10084           hardcode_direct_absolute=yes
10085           export_dynamic_flag_spec='${wl}-E'
10086
10087           # hardcode_minus_L: Not really in the search PATH,
10088           # but as the default location of the library.
10089           hardcode_minus_L=yes
10090           ;;
10091         esac
10092       fi
10093       ;;
10094
10095     irix5* | irix6* | nonstopux*)
10096       if test "$GCC" = yes; then
10097         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10098         # Try to use the -exported_symbol ld option, if it does not
10099         # work, assume that -exports_file does not work either and
10100         # implicitly export all symbols.
10101         save_LDFLAGS="$LDFLAGS"
10102         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10103         if test x$gcc_no_link = xyes; then
10104   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10105 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10106    { (exit 1); exit 1; }; }
10107 fi
10108 cat >conftest.$ac_ext <<_ACEOF
10109 int foo(void) {}
10110 _ACEOF
10111 rm -f conftest.$ac_objext conftest$ac_exeext
10112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10113   (eval $ac_link) 2>conftest.er1
10114   ac_status=$?
10115   grep -v '^ *+' conftest.er1 >conftest.err
10116   rm -f conftest.er1
10117   cat conftest.err >&5
10118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119   (exit $ac_status); } &&
10120          { ac_try='test -z "$ac_c_werror_flag"
10121                          || test ! -s conftest.err'
10122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10123   (eval $ac_try) 2>&5
10124   ac_status=$?
10125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126   (exit $ac_status); }; } &&
10127          { ac_try='test -s conftest$ac_exeext'
10128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10129   (eval $ac_try) 2>&5
10130   ac_status=$?
10131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132   (exit $ac_status); }; }; then
10133   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10134
10135 else
10136   echo "$as_me: failed program was:" >&5
10137 sed 's/^/| /' conftest.$ac_ext >&5
10138
10139 fi
10140 rm -f conftest.err conftest.$ac_objext \
10141       conftest$ac_exeext conftest.$ac_ext
10142         LDFLAGS="$save_LDFLAGS"
10143       else
10144         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10145         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10146       fi
10147       archive_cmds_need_lc='no'
10148       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10149       hardcode_libdir_separator=:
10150       inherit_rpath=yes
10151       link_all_deplibs=yes
10152       ;;
10153
10154     netbsd*)
10155       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10156         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10157       else
10158         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10159       fi
10160       hardcode_libdir_flag_spec='-R$libdir'
10161       hardcode_direct=yes
10162       hardcode_shlibpath_var=no
10163       ;;
10164
10165     newsos6)
10166       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10167       hardcode_direct=yes
10168       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10169       hardcode_libdir_separator=:
10170       hardcode_shlibpath_var=no
10171       ;;
10172
10173     *nto* | *qnx*)
10174       ;;
10175
10176     openbsd*)
10177       hardcode_direct=yes
10178       hardcode_shlibpath_var=no
10179       hardcode_direct_absolute=yes
10180       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10181         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10182         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10183         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10184         export_dynamic_flag_spec='${wl}-E'
10185       else
10186         case $host_os in
10187         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10188           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10189           hardcode_libdir_flag_spec='-R$libdir'
10190           ;;
10191         *)
10192           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10193           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10194           ;;
10195         esac
10196       fi
10197       ;;
10198
10199     os2*)
10200       hardcode_libdir_flag_spec='-L$libdir'
10201       hardcode_minus_L=yes
10202       allow_undefined_flag=unsupported
10203       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'
10204       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10205       ;;
10206
10207     osf3*)
10208       if test "$GCC" = yes; then
10209         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10210         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10211       else
10212         allow_undefined_flag=' -expect_unresolved \*'
10213         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10214       fi
10215       archive_cmds_need_lc='no'
10216       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10217       hardcode_libdir_separator=:
10218       ;;
10219
10220     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10221       if test "$GCC" = yes; then
10222         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10223         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10224         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10225       else
10226         allow_undefined_flag=' -expect_unresolved \*'
10227         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10228         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10229         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10230
10231         # Both c and cxx compiler support -rpath directly
10232         hardcode_libdir_flag_spec='-rpath $libdir'
10233       fi
10234       archive_cmds_need_lc='no'
10235       hardcode_libdir_separator=:
10236       ;;
10237
10238     solaris*)
10239       no_undefined_flag=' -z defs'
10240       if test "$GCC" = yes; then
10241         wlarc='${wl}'
10242         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10243         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10244           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10245       else
10246         case `$CC -V 2>&1` in
10247         *"Compilers 5.0"*)
10248           wlarc=''
10249           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10250           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10251           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10252           ;;
10253         *)
10254           wlarc='${wl}'
10255           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10256           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10257           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10258           ;;
10259         esac
10260       fi
10261       hardcode_libdir_flag_spec='-R$libdir'
10262       hardcode_shlibpath_var=no
10263       case $host_os in
10264       solaris2.[0-5] | solaris2.[0-5].*) ;;
10265       *)
10266         # The compiler driver will combine and reorder linker options,
10267         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10268         # but is careful enough not to reorder.
10269         # Supported since Solaris 2.6 (maybe 2.5.1?)
10270         if test "$GCC" = yes; then
10271           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10272         else
10273           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10274         fi
10275         ;;
10276       esac
10277       link_all_deplibs=yes
10278       ;;
10279
10280     sunos4*)
10281       if test "x$host_vendor" = xsequent; then
10282         # Use $CC to link under sequent, because it throws in some extra .o
10283         # files that make .init and .fini sections work.
10284         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10285       else
10286         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10287       fi
10288       hardcode_libdir_flag_spec='-L$libdir'
10289       hardcode_direct=yes
10290       hardcode_minus_L=yes
10291       hardcode_shlibpath_var=no
10292       ;;
10293
10294     sysv4)
10295       case $host_vendor in
10296         sni)
10297           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10298           hardcode_direct=yes # is this really true???
10299         ;;
10300         siemens)
10301           ## LD is ld it makes a PLAMLIB
10302           ## CC just makes a GrossModule.
10303           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10304           reload_cmds='$CC -r -o $output$reload_objs'
10305           hardcode_direct=no
10306         ;;
10307         motorola)
10308           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10309           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10310         ;;
10311       esac
10312       runpath_var='LD_RUN_PATH'
10313       hardcode_shlibpath_var=no
10314       ;;
10315
10316     sysv4.3*)
10317       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10318       hardcode_shlibpath_var=no
10319       export_dynamic_flag_spec='-Bexport'
10320       ;;
10321
10322     sysv4*MP*)
10323       if test -d /usr/nec; then
10324         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10325         hardcode_shlibpath_var=no
10326         runpath_var=LD_RUN_PATH
10327         hardcode_runpath_var=yes
10328         ld_shlibs=yes
10329       fi
10330       ;;
10331
10332     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10333       no_undefined_flag='${wl}-z,text'
10334       archive_cmds_need_lc=no
10335       hardcode_shlibpath_var=no
10336       runpath_var='LD_RUN_PATH'
10337
10338       if test "$GCC" = yes; then
10339         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10340         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10341       else
10342         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10343         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10344       fi
10345       ;;
10346
10347     sysv5* | sco3.2v5* | sco5v6*)
10348       # Note: We can NOT use -z defs as we might desire, because we do not
10349       # link with -lc, and that would cause any symbols used from libc to
10350       # always be unresolved, which means just about no library would
10351       # ever link correctly.  If we're not using GNU ld we use -z text
10352       # though, which does catch some bad symbols but isn't as heavy-handed
10353       # as -z defs.
10354       no_undefined_flag='${wl}-z,text'
10355       allow_undefined_flag='${wl}-z,nodefs'
10356       archive_cmds_need_lc=no
10357       hardcode_shlibpath_var=no
10358       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10359       hardcode_libdir_separator=':'
10360       link_all_deplibs=yes
10361       export_dynamic_flag_spec='${wl}-Bexport'
10362       runpath_var='LD_RUN_PATH'
10363
10364       if test "$GCC" = yes; then
10365         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10366         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10367       else
10368         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10369         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10370       fi
10371       ;;
10372
10373     uts4*)
10374       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10375       hardcode_libdir_flag_spec='-L$libdir'
10376       hardcode_shlibpath_var=no
10377       ;;
10378
10379     *)
10380       ld_shlibs=no
10381       ;;
10382     esac
10383
10384     if test x$host_vendor = xsni; then
10385       case $host in
10386       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10387         export_dynamic_flag_spec='${wl}-Blargedynsym'
10388         ;;
10389       esac
10390     fi
10391   fi
10392
10393 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10394 echo "${ECHO_T}$ld_shlibs" >&6
10395 test "$ld_shlibs" = no && can_build_shared=no
10396
10397 with_gnu_ld=$with_gnu_ld
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413 #
10414 # Do we need to explicitly link libc?
10415 #
10416 case "x$archive_cmds_need_lc" in
10417 x|xyes)
10418   # Assume -lc should be added
10419   archive_cmds_need_lc=yes
10420
10421   if test "$enable_shared" = yes && test "$GCC" = yes; then
10422     case $archive_cmds in
10423     *'~'*)
10424       # FIXME: we may have to deal with multi-command sequences.
10425       ;;
10426     '$CC '*)
10427       # Test whether the compiler implicitly links with -lc since on some
10428       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10429       # to ld, don't add -lc before -lgcc.
10430       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10431 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10432       $RM conftest*
10433       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10434
10435       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10436   (eval $ac_compile) 2>&5
10437   ac_status=$?
10438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439   (exit $ac_status); } 2>conftest.err; then
10440         soname=conftest
10441         lib=conftest
10442         libobjs=conftest.$ac_objext
10443         deplibs=
10444         wl=$lt_prog_compiler_wl
10445         pic_flag=$lt_prog_compiler_pic
10446         compiler_flags=-v
10447         linker_flags=-v
10448         verstring=
10449         output_objdir=.
10450         libname=conftest
10451         lt_save_allow_undefined_flag=$allow_undefined_flag
10452         allow_undefined_flag=
10453         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10454   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10455   ac_status=$?
10456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457   (exit $ac_status); }
10458         then
10459           archive_cmds_need_lc=no
10460         else
10461           archive_cmds_need_lc=yes
10462         fi
10463         allow_undefined_flag=$lt_save_allow_undefined_flag
10464       else
10465         cat conftest.err 1>&5
10466       fi
10467       $RM conftest*
10468       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10469 echo "${ECHO_T}$archive_cmds_need_lc" >&6
10470       ;;
10471     esac
10472   fi
10473   ;;
10474 esac
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10633 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10634 withGCC=$GCC
10635 if test "$withGCC" = yes; then
10636   case $host_os in
10637     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10638     *) lt_awk_arg="/^libraries:/" ;;
10639   esac
10640   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10641   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10642     # if the path contains ";" then we assume it to be the separator
10643     # otherwise default to the standard path separator (i.e. ":") - it is
10644     # assumed that no part of a normal pathname contains ";" but that should
10645     # okay in the real world where ";" in dirpaths is itself problematic.
10646     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10647   else
10648     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10649   fi
10650   # Ok, now we have the path, separated by spaces, we can step through it
10651   # and add multilib dir if necessary.
10652   lt_tmp_lt_search_path_spec=
10653   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10654   for lt_sys_path in $lt_search_path_spec; do
10655     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10656       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10657     else
10658       test -d "$lt_sys_path" && \
10659         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10660     fi
10661   done
10662   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10663 BEGIN {RS=" "; FS="/|\n";} {
10664   lt_foo="";
10665   lt_count=0;
10666   for (lt_i = NF; lt_i > 0; lt_i--) {
10667     if ($lt_i != "" && $lt_i != ".") {
10668       if ($lt_i == "..") {
10669         lt_count++;
10670       } else {
10671         if (lt_count == 0) {
10672           lt_foo="/" $lt_i lt_foo;
10673         } else {
10674           lt_count--;
10675         }
10676       }
10677     }
10678   }
10679   if (lt_foo != "") { lt_freq[lt_foo]++; }
10680   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10681 }'`
10682   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10683 else
10684   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10685 fi
10686 library_names_spec=
10687 libname_spec='lib$name'
10688 soname_spec=
10689 shrext_cmds=".so"
10690 postinstall_cmds=
10691 postuninstall_cmds=
10692 finish_cmds=
10693 finish_eval=
10694 shlibpath_var=
10695 shlibpath_overrides_runpath=unknown
10696 version_type=none
10697 dynamic_linker="$host_os ld.so"
10698 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10699 need_lib_prefix=unknown
10700 hardcode_into_libs=no
10701
10702 # when you set need_version to no, make sure it does not cause -set_version
10703 # flags to be left without arguments
10704 need_version=unknown
10705
10706 case $host_os in
10707 aix3*)
10708   version_type=linux
10709   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10710   shlibpath_var=LIBPATH
10711
10712   # AIX 3 has no versioning support, so we append a major version to the name.
10713   soname_spec='${libname}${release}${shared_ext}$major'
10714   ;;
10715
10716 aix[4-9]*)
10717   version_type=linux
10718   need_lib_prefix=no
10719   need_version=no
10720   hardcode_into_libs=yes
10721   if test "$host_cpu" = ia64; then
10722     # AIX 5 supports IA64
10723     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10724     shlibpath_var=LD_LIBRARY_PATH
10725   else
10726     # With GCC up to 2.95.x, collect2 would create an import file
10727     # for dependence libraries.  The import file would start with
10728     # the line `#! .'.  This would cause the generated library to
10729     # depend on `.', always an invalid library.  This was fixed in
10730     # development snapshots of GCC prior to 3.0.
10731     case $host_os in
10732       aix4 | aix4.[01] | aix4.[01].*)
10733       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10734            echo ' yes '
10735            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10736         :
10737       else
10738         can_build_shared=no
10739       fi
10740       ;;
10741     esac
10742     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10743     # soname into executable. Probably we can add versioning support to
10744     # collect2, so additional links can be useful in future.
10745     if test "$aix_use_runtimelinking" = yes; then
10746       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10747       # instead of lib<name>.a to let people know that these are not
10748       # typical AIX shared libraries.
10749       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10750     else
10751       # We preserve .a as extension for shared libraries through AIX4.2
10752       # and later when we are not doing run time linking.
10753       library_names_spec='${libname}${release}.a $libname.a'
10754       soname_spec='${libname}${release}${shared_ext}$major'
10755     fi
10756     shlibpath_var=LIBPATH
10757   fi
10758   ;;
10759
10760 amigaos*)
10761   if test "$host_cpu" = m68k; then
10762     library_names_spec='$libname.ixlibrary $libname.a'
10763     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10764     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'
10765   else
10766     dynamic_linker=no
10767   fi
10768   ;;
10769
10770 beos*)
10771   library_names_spec='${libname}${shared_ext}'
10772   dynamic_linker="$host_os ld.so"
10773   shlibpath_var=LIBRARY_PATH
10774   ;;
10775
10776 bsdi[45]*)
10777   version_type=linux
10778   need_version=no
10779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10780   soname_spec='${libname}${release}${shared_ext}$major'
10781   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10782   shlibpath_var=LD_LIBRARY_PATH
10783   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10784   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10785   # the default ld.so.conf also contains /usr/contrib/lib and
10786   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10787   # libtool to hard-code these into programs
10788   ;;
10789
10790 cygwin* | mingw* | pw32*)
10791   version_type=windows
10792   shrext_cmds=".dll"
10793   need_version=no
10794   need_lib_prefix=no
10795
10796   case $withGCC,$host_os in
10797   yes,cygwin* | yes,mingw* | yes,pw32*)
10798     library_names_spec='$libname.dll.a'
10799     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10800     postinstall_cmds='base_file=`basename \${file}`~
10801       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10802       dldir=$destdir/`dirname \$dlpath`~
10803       test -d \$dldir || mkdir -p \$dldir~
10804       $install_prog $dir/$dlname \$dldir/$dlname~
10805       chmod a+x \$dldir/$dlname~
10806       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10807         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10808       fi'
10809     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10810       dlpath=$dir/\$dldll~
10811        $RM \$dlpath'
10812     shlibpath_overrides_runpath=yes
10813
10814     case $host_os in
10815     cygwin*)
10816       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10817       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10818       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10819       ;;
10820     mingw*)
10821       # MinGW DLLs use traditional 'lib' prefix
10822       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10823       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10824       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10825         # It is most probably a Windows format PATH printed by
10826         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10827         # path with ; separators, and with drive letters. We can handle the
10828         # drive letters (cygwin fileutils understands them), so leave them,
10829         # especially as we might pass files found there to a mingw objdump,
10830         # which wouldn't understand a cygwinified path. Ahh.
10831         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10832       else
10833         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10834       fi
10835       ;;
10836     pw32*)
10837       # pw32 DLLs use 'pw' prefix rather than 'lib'
10838       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10839       ;;
10840     esac
10841     ;;
10842
10843   *)
10844     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10845     ;;
10846   esac
10847   dynamic_linker='Win32 ld.exe'
10848   # FIXME: first we should search . and the directory the executable is in
10849   shlibpath_var=PATH
10850   ;;
10851
10852 darwin* | rhapsody*)
10853   dynamic_linker="$host_os dyld"
10854   version_type=darwin
10855   need_lib_prefix=no
10856   need_version=no
10857   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10858   soname_spec='${libname}${release}${major}$shared_ext'
10859   shlibpath_overrides_runpath=yes
10860   shlibpath_var=DYLD_LIBRARY_PATH
10861   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10862
10863   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10864   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10865   ;;
10866
10867 dgux*)
10868   version_type=linux
10869   need_lib_prefix=no
10870   need_version=no
10871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10872   soname_spec='${libname}${release}${shared_ext}$major'
10873   shlibpath_var=LD_LIBRARY_PATH
10874   ;;
10875
10876 freebsd1*)
10877   dynamic_linker=no
10878   ;;
10879
10880 freebsd* | dragonfly*)
10881   # DragonFly does not have aout.  When/if they implement a new
10882   # versioning mechanism, adjust this.
10883   if test -x /usr/bin/objformat; then
10884     objformat=`/usr/bin/objformat`
10885   else
10886     case $host_os in
10887     freebsd[123]*) objformat=aout ;;
10888     *) objformat=elf ;;
10889     esac
10890   fi
10891   version_type=freebsd-$objformat
10892   case $version_type in
10893     freebsd-elf*)
10894       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10895       need_version=no
10896       need_lib_prefix=no
10897       ;;
10898     freebsd-*)
10899       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10900       need_version=yes
10901       ;;
10902   esac
10903   shlibpath_var=LD_LIBRARY_PATH
10904   case $host_os in
10905   freebsd2*)
10906     shlibpath_overrides_runpath=yes
10907     ;;
10908   freebsd3.[01]* | freebsdelf3.[01]*)
10909     shlibpath_overrides_runpath=yes
10910     hardcode_into_libs=yes
10911     ;;
10912   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10913   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10914     shlibpath_overrides_runpath=no
10915     hardcode_into_libs=yes
10916     ;;
10917   *) # from 4.6 on, and DragonFly
10918     shlibpath_overrides_runpath=yes
10919     hardcode_into_libs=yes
10920     ;;
10921   esac
10922   ;;
10923
10924 gnu*)
10925   version_type=linux
10926   need_lib_prefix=no
10927   need_version=no
10928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10929   soname_spec='${libname}${release}${shared_ext}$major'
10930   shlibpath_var=LD_LIBRARY_PATH
10931   hardcode_into_libs=yes
10932   ;;
10933
10934 hpux9* | hpux10* | hpux11*)
10935   # Give a soname corresponding to the major version so that dld.sl refuses to
10936   # link against other versions.
10937   version_type=sunos
10938   need_lib_prefix=no
10939   need_version=no
10940   case $host_cpu in
10941   ia64*)
10942     shrext_cmds='.so'
10943     hardcode_into_libs=yes
10944     dynamic_linker="$host_os dld.so"
10945     shlibpath_var=LD_LIBRARY_PATH
10946     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10947     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948     soname_spec='${libname}${release}${shared_ext}$major'
10949     if test "X$HPUX_IA64_MODE" = X32; then
10950       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10951     else
10952       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10953     fi
10954     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10955     ;;
10956   hppa*64*)
10957     shrext_cmds='.sl'
10958     hardcode_into_libs=yes
10959     dynamic_linker="$host_os dld.sl"
10960     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10961     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10962     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963     soname_spec='${libname}${release}${shared_ext}$major'
10964     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10965     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10966     ;;
10967   *)
10968     shrext_cmds='.sl'
10969     dynamic_linker="$host_os dld.sl"
10970     shlibpath_var=SHLIB_PATH
10971     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10972     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973     soname_spec='${libname}${release}${shared_ext}$major'
10974     ;;
10975   esac
10976   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10977   postinstall_cmds='chmod 555 $lib'
10978   ;;
10979
10980 interix[3-9]*)
10981   version_type=linux
10982   need_lib_prefix=no
10983   need_version=no
10984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10985   soname_spec='${libname}${release}${shared_ext}$major'
10986   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10987   shlibpath_var=LD_LIBRARY_PATH
10988   shlibpath_overrides_runpath=no
10989   hardcode_into_libs=yes
10990   ;;
10991
10992 irix5* | irix6* | nonstopux*)
10993   case $host_os in
10994     nonstopux*) version_type=nonstopux ;;
10995     *)
10996         if test "$lt_cv_prog_gnu_ld" = yes; then
10997                 version_type=linux
10998         else
10999                 version_type=irix
11000         fi ;;
11001   esac
11002   need_lib_prefix=no
11003   need_version=no
11004   soname_spec='${libname}${release}${shared_ext}$major'
11005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11006   case $host_os in
11007   irix5* | nonstopux*)
11008     libsuff= shlibsuff=
11009     ;;
11010   *)
11011     case $LD in # libtool.m4 will add one of these switches to LD
11012     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11013       libsuff= shlibsuff= libmagic=32-bit;;
11014     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11015       libsuff=32 shlibsuff=N32 libmagic=N32;;
11016     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11017       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11018     *) libsuff= shlibsuff= libmagic=never-match;;
11019     esac
11020     ;;
11021   esac
11022   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11023   shlibpath_overrides_runpath=no
11024   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11025   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11026   hardcode_into_libs=yes
11027   ;;
11028
11029 # No shared lib support for Linux oldld, aout, or coff.
11030 linux*oldld* | linux*aout* | linux*coff*)
11031   dynamic_linker=no
11032   ;;
11033
11034 # This must be Linux ELF.
11035 linux* | k*bsd*-gnu)
11036   version_type=linux
11037   need_lib_prefix=no
11038   need_version=no
11039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11040   soname_spec='${libname}${release}${shared_ext}$major'
11041   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11042   shlibpath_var=LD_LIBRARY_PATH
11043   shlibpath_overrides_runpath=no
11044   # Some binutils ld are patched to set DT_RUNPATH
11045   save_LDFLAGS=$LDFLAGS
11046   save_libdir=$libdir
11047   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11048        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11049   if test x$gcc_no_link = xyes; then
11050   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11051 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11052    { (exit 1); exit 1; }; }
11053 fi
11054 cat >conftest.$ac_ext <<_ACEOF
11055 /* confdefs.h.  */
11056 _ACEOF
11057 cat confdefs.h >>conftest.$ac_ext
11058 cat >>conftest.$ac_ext <<_ACEOF
11059 /* end confdefs.h.  */
11060
11061 int
11062 main ()
11063 {
11064
11065   ;
11066   return 0;
11067 }
11068 _ACEOF
11069 rm -f conftest.$ac_objext conftest$ac_exeext
11070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11071   (eval $ac_link) 2>conftest.er1
11072   ac_status=$?
11073   grep -v '^ *+' conftest.er1 >conftest.err
11074   rm -f conftest.er1
11075   cat conftest.err >&5
11076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077   (exit $ac_status); } &&
11078          { ac_try='test -z "$ac_c_werror_flag"
11079                          || test ! -s conftest.err'
11080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081   (eval $ac_try) 2>&5
11082   ac_status=$?
11083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084   (exit $ac_status); }; } &&
11085          { ac_try='test -s conftest$ac_exeext'
11086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087   (eval $ac_try) 2>&5
11088   ac_status=$?
11089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090   (exit $ac_status); }; }; then
11091   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
11092   shlibpath_overrides_runpath=yes
11093 fi
11094
11095 else
11096   echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11098
11099 fi
11100 rm -f conftest.err conftest.$ac_objext \
11101       conftest$ac_exeext conftest.$ac_ext
11102   LDFLAGS=$save_LDFLAGS
11103   libdir=$save_libdir
11104
11105   # This implies no fast_install, which is unacceptable.
11106   # Some rework will be needed to allow for fast_install
11107   # before this can be enabled.
11108   hardcode_into_libs=yes
11109
11110   # Append ld.so.conf contents to the search path
11111   if test -f /etc/ld.so.conf; then
11112     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11113     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11114   fi
11115
11116   # We used to test for /lib/ld.so.1 and disable shared libraries on
11117   # powerpc, because MkLinux only supported shared libraries with the
11118   # GNU dynamic linker.  Since this was broken with cross compilers,
11119   # most powerpc-linux boxes support dynamic linking these days and
11120   # people can always --disable-shared, the test was removed, and we
11121   # assume the GNU/Linux dynamic linker is in use.
11122   dynamic_linker='GNU/Linux ld.so'
11123   ;;
11124
11125 netbsd*)
11126   version_type=sunos
11127   need_lib_prefix=no
11128   need_version=no
11129   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11130     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11131     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11132     dynamic_linker='NetBSD (a.out) ld.so'
11133   else
11134     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11135     soname_spec='${libname}${release}${shared_ext}$major'
11136     dynamic_linker='NetBSD ld.elf_so'
11137   fi
11138   shlibpath_var=LD_LIBRARY_PATH
11139   shlibpath_overrides_runpath=yes
11140   hardcode_into_libs=yes
11141   ;;
11142
11143 newsos6)
11144   version_type=linux
11145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11146   shlibpath_var=LD_LIBRARY_PATH
11147   shlibpath_overrides_runpath=yes
11148   ;;
11149
11150 *nto* | *qnx*)
11151   version_type=qnx
11152   need_lib_prefix=no
11153   need_version=no
11154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155   soname_spec='${libname}${release}${shared_ext}$major'
11156   shlibpath_var=LD_LIBRARY_PATH
11157   shlibpath_overrides_runpath=no
11158   hardcode_into_libs=yes
11159   dynamic_linker='ldqnx.so'
11160   ;;
11161
11162 openbsd*)
11163   version_type=sunos
11164   sys_lib_dlsearch_path_spec="/usr/lib"
11165   need_lib_prefix=no
11166   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11167   case $host_os in
11168     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11169     *)                          need_version=no  ;;
11170   esac
11171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11172   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11173   shlibpath_var=LD_LIBRARY_PATH
11174   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11175     case $host_os in
11176       openbsd2.[89] | openbsd2.[89].*)
11177         shlibpath_overrides_runpath=no
11178         ;;
11179       *)
11180         shlibpath_overrides_runpath=yes
11181         ;;
11182       esac
11183   else
11184     shlibpath_overrides_runpath=yes
11185   fi
11186   ;;
11187
11188 os2*)
11189   libname_spec='$name'
11190   shrext_cmds=".dll"
11191   need_lib_prefix=no
11192   library_names_spec='$libname${shared_ext} $libname.a'
11193   dynamic_linker='OS/2 ld.exe'
11194   shlibpath_var=LIBPATH
11195   ;;
11196
11197 osf3* | osf4* | osf5*)
11198   version_type=osf
11199   need_lib_prefix=no
11200   need_version=no
11201   soname_spec='${libname}${release}${shared_ext}$major'
11202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11203   shlibpath_var=LD_LIBRARY_PATH
11204   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11205   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11206   ;;
11207
11208 rdos*)
11209   dynamic_linker=no
11210   ;;
11211
11212 solaris*)
11213   version_type=linux
11214   need_lib_prefix=no
11215   need_version=no
11216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11217   soname_spec='${libname}${release}${shared_ext}$major'
11218   shlibpath_var=LD_LIBRARY_PATH
11219   shlibpath_overrides_runpath=yes
11220   hardcode_into_libs=yes
11221   # ldd complains unless libraries are executable
11222   postinstall_cmds='chmod +x $lib'
11223   ;;
11224
11225 sunos4*)
11226   version_type=sunos
11227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11228   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11229   shlibpath_var=LD_LIBRARY_PATH
11230   shlibpath_overrides_runpath=yes
11231   if test "$with_gnu_ld" = yes; then
11232     need_lib_prefix=no
11233   fi
11234   need_version=yes
11235   ;;
11236
11237 sysv4 | sysv4.3*)
11238   version_type=linux
11239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11240   soname_spec='${libname}${release}${shared_ext}$major'
11241   shlibpath_var=LD_LIBRARY_PATH
11242   case $host_vendor in
11243     sni)
11244       shlibpath_overrides_runpath=no
11245       need_lib_prefix=no
11246       runpath_var=LD_RUN_PATH
11247       ;;
11248     siemens)
11249       need_lib_prefix=no
11250       ;;
11251     motorola)
11252       need_lib_prefix=no
11253       need_version=no
11254       shlibpath_overrides_runpath=no
11255       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11256       ;;
11257   esac
11258   ;;
11259
11260 sysv4*MP*)
11261   if test -d /usr/nec ;then
11262     version_type=linux
11263     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11264     soname_spec='$libname${shared_ext}.$major'
11265     shlibpath_var=LD_LIBRARY_PATH
11266   fi
11267   ;;
11268
11269 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11270   version_type=freebsd-elf
11271   need_lib_prefix=no
11272   need_version=no
11273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11274   soname_spec='${libname}${release}${shared_ext}$major'
11275   shlibpath_var=LD_LIBRARY_PATH
11276   shlibpath_overrides_runpath=yes
11277   hardcode_into_libs=yes
11278   if test "$with_gnu_ld" = yes; then
11279     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11280   else
11281     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11282     case $host_os in
11283       sco3.2v5*)
11284         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11285         ;;
11286     esac
11287   fi
11288   sys_lib_dlsearch_path_spec='/usr/lib'
11289   ;;
11290
11291 tpf*)
11292   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11293   version_type=linux
11294   need_lib_prefix=no
11295   need_version=no
11296   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11297   shlibpath_var=LD_LIBRARY_PATH
11298   shlibpath_overrides_runpath=no
11299   hardcode_into_libs=yes
11300   ;;
11301
11302 uts4*)
11303   version_type=linux
11304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11305   soname_spec='${libname}${release}${shared_ext}$major'
11306   shlibpath_var=LD_LIBRARY_PATH
11307   ;;
11308
11309 *)
11310   dynamic_linker=no
11311   ;;
11312 esac
11313 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11314 echo "${ECHO_T}$dynamic_linker" >&6
11315 test "$dynamic_linker" = no && can_build_shared=no
11316
11317 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11318 if test "$GCC" = yes; then
11319   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11320 fi
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11409 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11410 hardcode_action=
11411 if test -n "$hardcode_libdir_flag_spec" ||
11412    test -n "$runpath_var" ||
11413    test "X$hardcode_automatic" = "Xyes" ; then
11414
11415   # We can hardcode non-existent directories.
11416   if test "$hardcode_direct" != no &&
11417      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11418      # have to relink, otherwise we might link with an installed library
11419      # when we should be linking with a yet-to-be-installed one
11420      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11421      test "$hardcode_minus_L" != no; then
11422     # Linking always hardcodes the temporary library directory.
11423     hardcode_action=relink
11424   else
11425     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11426     hardcode_action=immediate
11427   fi
11428 else
11429   # We cannot hardcode anything, or else we can only hardcode existing
11430   # directories.
11431   hardcode_action=unsupported
11432 fi
11433 echo "$as_me:$LINENO: result: $hardcode_action" >&5
11434 echo "${ECHO_T}$hardcode_action" >&6
11435
11436 if test "$hardcode_action" = relink ||
11437    test "$inherit_rpath" = yes; then
11438   # Fast installation is not supported
11439   enable_fast_install=no
11440 elif test "$shlibpath_overrides_runpath" = yes ||
11441      test "$enable_shared" = no; then
11442   # Fast installation is not necessary
11443   enable_fast_install=needless
11444 fi
11445
11446
11447
11448
11449
11450
11451   if test "x$enable_dlopen" != xyes; then
11452   enable_dlopen=unknown
11453   enable_dlopen_self=unknown
11454   enable_dlopen_self_static=unknown
11455 else
11456   lt_cv_dlopen=no
11457   lt_cv_dlopen_libs=
11458
11459   case $host_os in
11460   beos*)
11461     lt_cv_dlopen="load_add_on"
11462     lt_cv_dlopen_libs=
11463     lt_cv_dlopen_self=yes
11464     ;;
11465
11466   mingw* | pw32*)
11467     lt_cv_dlopen="LoadLibrary"
11468     lt_cv_dlopen_libs=
11469     ;;
11470
11471   cygwin*)
11472     lt_cv_dlopen="dlopen"
11473     lt_cv_dlopen_libs=
11474     ;;
11475
11476   darwin*)
11477   # if libdl is installed we need to link against it
11478     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11479 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11480 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11481   echo $ECHO_N "(cached) $ECHO_C" >&6
11482 else
11483   ac_check_lib_save_LIBS=$LIBS
11484 LIBS="-ldl  $LIBS"
11485 if test x$gcc_no_link = xyes; then
11486   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11487 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11488    { (exit 1); exit 1; }; }
11489 fi
11490 cat >conftest.$ac_ext <<_ACEOF
11491 /* confdefs.h.  */
11492 _ACEOF
11493 cat confdefs.h >>conftest.$ac_ext
11494 cat >>conftest.$ac_ext <<_ACEOF
11495 /* end confdefs.h.  */
11496
11497 /* Override any gcc2 internal prototype to avoid an error.  */
11498 #ifdef __cplusplus
11499 extern "C"
11500 #endif
11501 /* We use char because int might match the return type of a gcc2
11502    builtin and then its argument prototype would still apply.  */
11503 char dlopen ();
11504 int
11505 main ()
11506 {
11507 dlopen ();
11508   ;
11509   return 0;
11510 }
11511 _ACEOF
11512 rm -f conftest.$ac_objext conftest$ac_exeext
11513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11514   (eval $ac_link) 2>conftest.er1
11515   ac_status=$?
11516   grep -v '^ *+' conftest.er1 >conftest.err
11517   rm -f conftest.er1
11518   cat conftest.err >&5
11519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520   (exit $ac_status); } &&
11521          { ac_try='test -z "$ac_c_werror_flag"
11522                          || test ! -s conftest.err'
11523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11524   (eval $ac_try) 2>&5
11525   ac_status=$?
11526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527   (exit $ac_status); }; } &&
11528          { ac_try='test -s conftest$ac_exeext'
11529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530   (eval $ac_try) 2>&5
11531   ac_status=$?
11532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533   (exit $ac_status); }; }; then
11534   ac_cv_lib_dl_dlopen=yes
11535 else
11536   echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.$ac_ext >&5
11538
11539 ac_cv_lib_dl_dlopen=no
11540 fi
11541 rm -f conftest.err conftest.$ac_objext \
11542       conftest$ac_exeext conftest.$ac_ext
11543 LIBS=$ac_check_lib_save_LIBS
11544 fi
11545 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11546 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11547 if test $ac_cv_lib_dl_dlopen = yes; then
11548   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11549 else
11550
11551     lt_cv_dlopen="dyld"
11552     lt_cv_dlopen_libs=
11553     lt_cv_dlopen_self=yes
11554
11555 fi
11556
11557     ;;
11558
11559   *)
11560     echo "$as_me:$LINENO: checking for shl_load" >&5
11561 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11562 if test "${ac_cv_func_shl_load+set}" = set; then
11563   echo $ECHO_N "(cached) $ECHO_C" >&6
11564 else
11565   if test x$gcc_no_link = xyes; then
11566   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11567 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11568    { (exit 1); exit 1; }; }
11569 fi
11570 cat >conftest.$ac_ext <<_ACEOF
11571 /* confdefs.h.  */
11572 _ACEOF
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h.  */
11576 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11577    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11578 #define shl_load innocuous_shl_load
11579
11580 /* System header to define __stub macros and hopefully few prototypes,
11581     which can conflict with char shl_load (); below.
11582     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11583     <limits.h> exists even on freestanding compilers.  */
11584
11585 #ifdef __STDC__
11586 # include <limits.h>
11587 #else
11588 # include <assert.h>
11589 #endif
11590
11591 #undef shl_load
11592
11593 /* Override any gcc2 internal prototype to avoid an error.  */
11594 #ifdef __cplusplus
11595 extern "C"
11596 {
11597 #endif
11598 /* We use char because int might match the return type of a gcc2
11599    builtin and then its argument prototype would still apply.  */
11600 char shl_load ();
11601 /* The GNU C library defines this for functions which it implements
11602     to always fail with ENOSYS.  Some functions are actually named
11603     something starting with __ and the normal name is an alias.  */
11604 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11605 choke me
11606 #else
11607 char (*f) () = shl_load;
11608 #endif
11609 #ifdef __cplusplus
11610 }
11611 #endif
11612
11613 int
11614 main ()
11615 {
11616 return f != shl_load;
11617   ;
11618   return 0;
11619 }
11620 _ACEOF
11621 rm -f conftest.$ac_objext conftest$ac_exeext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11623   (eval $ac_link) 2>conftest.er1
11624   ac_status=$?
11625   grep -v '^ *+' conftest.er1 >conftest.err
11626   rm -f conftest.er1
11627   cat conftest.err >&5
11628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629   (exit $ac_status); } &&
11630          { ac_try='test -z "$ac_c_werror_flag"
11631                          || test ! -s conftest.err'
11632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633   (eval $ac_try) 2>&5
11634   ac_status=$?
11635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636   (exit $ac_status); }; } &&
11637          { ac_try='test -s conftest$ac_exeext'
11638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639   (eval $ac_try) 2>&5
11640   ac_status=$?
11641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642   (exit $ac_status); }; }; then
11643   ac_cv_func_shl_load=yes
11644 else
11645   echo "$as_me: failed program was:" >&5
11646 sed 's/^/| /' conftest.$ac_ext >&5
11647
11648 ac_cv_func_shl_load=no
11649 fi
11650 rm -f conftest.err conftest.$ac_objext \
11651       conftest$ac_exeext conftest.$ac_ext
11652 fi
11653 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11654 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11655 if test $ac_cv_func_shl_load = yes; then
11656   lt_cv_dlopen="shl_load"
11657 else
11658   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11659 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11660 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11661   echo $ECHO_N "(cached) $ECHO_C" >&6
11662 else
11663   ac_check_lib_save_LIBS=$LIBS
11664 LIBS="-ldld  $LIBS"
11665 if test x$gcc_no_link = xyes; then
11666   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11667 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11668    { (exit 1); exit 1; }; }
11669 fi
11670 cat >conftest.$ac_ext <<_ACEOF
11671 /* confdefs.h.  */
11672 _ACEOF
11673 cat confdefs.h >>conftest.$ac_ext
11674 cat >>conftest.$ac_ext <<_ACEOF
11675 /* end confdefs.h.  */
11676
11677 /* Override any gcc2 internal prototype to avoid an error.  */
11678 #ifdef __cplusplus
11679 extern "C"
11680 #endif
11681 /* We use char because int might match the return type of a gcc2
11682    builtin and then its argument prototype would still apply.  */
11683 char shl_load ();
11684 int
11685 main ()
11686 {
11687 shl_load ();
11688   ;
11689   return 0;
11690 }
11691 _ACEOF
11692 rm -f conftest.$ac_objext conftest$ac_exeext
11693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11694   (eval $ac_link) 2>conftest.er1
11695   ac_status=$?
11696   grep -v '^ *+' conftest.er1 >conftest.err
11697   rm -f conftest.er1
11698   cat conftest.err >&5
11699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700   (exit $ac_status); } &&
11701          { ac_try='test -z "$ac_c_werror_flag"
11702                          || test ! -s conftest.err'
11703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11704   (eval $ac_try) 2>&5
11705   ac_status=$?
11706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707   (exit $ac_status); }; } &&
11708          { ac_try='test -s conftest$ac_exeext'
11709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710   (eval $ac_try) 2>&5
11711   ac_status=$?
11712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713   (exit $ac_status); }; }; then
11714   ac_cv_lib_dld_shl_load=yes
11715 else
11716   echo "$as_me: failed program was:" >&5
11717 sed 's/^/| /' conftest.$ac_ext >&5
11718
11719 ac_cv_lib_dld_shl_load=no
11720 fi
11721 rm -f conftest.err conftest.$ac_objext \
11722       conftest$ac_exeext conftest.$ac_ext
11723 LIBS=$ac_check_lib_save_LIBS
11724 fi
11725 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11726 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11727 if test $ac_cv_lib_dld_shl_load = yes; then
11728   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11729 else
11730   echo "$as_me:$LINENO: checking for dlopen" >&5
11731 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11732 if test "${ac_cv_func_dlopen+set}" = set; then
11733   echo $ECHO_N "(cached) $ECHO_C" >&6
11734 else
11735   if test x$gcc_no_link = xyes; then
11736   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11737 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11738    { (exit 1); exit 1; }; }
11739 fi
11740 cat >conftest.$ac_ext <<_ACEOF
11741 /* confdefs.h.  */
11742 _ACEOF
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h.  */
11746 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11748 #define dlopen innocuous_dlopen
11749
11750 /* System header to define __stub macros and hopefully few prototypes,
11751     which can conflict with char dlopen (); below.
11752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11753     <limits.h> exists even on freestanding compilers.  */
11754
11755 #ifdef __STDC__
11756 # include <limits.h>
11757 #else
11758 # include <assert.h>
11759 #endif
11760
11761 #undef dlopen
11762
11763 /* Override any gcc2 internal prototype to avoid an error.  */
11764 #ifdef __cplusplus
11765 extern "C"
11766 {
11767 #endif
11768 /* We use char because int might match the return type of a gcc2
11769    builtin and then its argument prototype would still apply.  */
11770 char dlopen ();
11771 /* The GNU C library defines this for functions which it implements
11772     to always fail with ENOSYS.  Some functions are actually named
11773     something starting with __ and the normal name is an alias.  */
11774 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11775 choke me
11776 #else
11777 char (*f) () = dlopen;
11778 #endif
11779 #ifdef __cplusplus
11780 }
11781 #endif
11782
11783 int
11784 main ()
11785 {
11786 return f != dlopen;
11787   ;
11788   return 0;
11789 }
11790 _ACEOF
11791 rm -f conftest.$ac_objext conftest$ac_exeext
11792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11793   (eval $ac_link) 2>conftest.er1
11794   ac_status=$?
11795   grep -v '^ *+' conftest.er1 >conftest.err
11796   rm -f conftest.er1
11797   cat conftest.err >&5
11798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799   (exit $ac_status); } &&
11800          { ac_try='test -z "$ac_c_werror_flag"
11801                          || test ! -s conftest.err'
11802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803   (eval $ac_try) 2>&5
11804   ac_status=$?
11805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806   (exit $ac_status); }; } &&
11807          { ac_try='test -s conftest$ac_exeext'
11808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809   (eval $ac_try) 2>&5
11810   ac_status=$?
11811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812   (exit $ac_status); }; }; then
11813   ac_cv_func_dlopen=yes
11814 else
11815   echo "$as_me: failed program was:" >&5
11816 sed 's/^/| /' conftest.$ac_ext >&5
11817
11818 ac_cv_func_dlopen=no
11819 fi
11820 rm -f conftest.err conftest.$ac_objext \
11821       conftest$ac_exeext conftest.$ac_ext
11822 fi
11823 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11824 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11825 if test $ac_cv_func_dlopen = yes; then
11826   lt_cv_dlopen="dlopen"
11827 else
11828   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11829 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11830 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11831   echo $ECHO_N "(cached) $ECHO_C" >&6
11832 else
11833   ac_check_lib_save_LIBS=$LIBS
11834 LIBS="-ldl  $LIBS"
11835 if test x$gcc_no_link = xyes; then
11836   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11837 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11838    { (exit 1); exit 1; }; }
11839 fi
11840 cat >conftest.$ac_ext <<_ACEOF
11841 /* confdefs.h.  */
11842 _ACEOF
11843 cat confdefs.h >>conftest.$ac_ext
11844 cat >>conftest.$ac_ext <<_ACEOF
11845 /* end confdefs.h.  */
11846
11847 /* Override any gcc2 internal prototype to avoid an error.  */
11848 #ifdef __cplusplus
11849 extern "C"
11850 #endif
11851 /* We use char because int might match the return type of a gcc2
11852    builtin and then its argument prototype would still apply.  */
11853 char dlopen ();
11854 int
11855 main ()
11856 {
11857 dlopen ();
11858   ;
11859   return 0;
11860 }
11861 _ACEOF
11862 rm -f conftest.$ac_objext conftest$ac_exeext
11863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11864   (eval $ac_link) 2>conftest.er1
11865   ac_status=$?
11866   grep -v '^ *+' conftest.er1 >conftest.err
11867   rm -f conftest.er1
11868   cat conftest.err >&5
11869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870   (exit $ac_status); } &&
11871          { ac_try='test -z "$ac_c_werror_flag"
11872                          || test ! -s conftest.err'
11873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11874   (eval $ac_try) 2>&5
11875   ac_status=$?
11876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877   (exit $ac_status); }; } &&
11878          { ac_try='test -s conftest$ac_exeext'
11879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880   (eval $ac_try) 2>&5
11881   ac_status=$?
11882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883   (exit $ac_status); }; }; then
11884   ac_cv_lib_dl_dlopen=yes
11885 else
11886   echo "$as_me: failed program was:" >&5
11887 sed 's/^/| /' conftest.$ac_ext >&5
11888
11889 ac_cv_lib_dl_dlopen=no
11890 fi
11891 rm -f conftest.err conftest.$ac_objext \
11892       conftest$ac_exeext conftest.$ac_ext
11893 LIBS=$ac_check_lib_save_LIBS
11894 fi
11895 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11896 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11897 if test $ac_cv_lib_dl_dlopen = yes; then
11898   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11899 else
11900   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11901 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11902 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11903   echo $ECHO_N "(cached) $ECHO_C" >&6
11904 else
11905   ac_check_lib_save_LIBS=$LIBS
11906 LIBS="-lsvld  $LIBS"
11907 if test x$gcc_no_link = xyes; then
11908   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11909 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11910    { (exit 1); exit 1; }; }
11911 fi
11912 cat >conftest.$ac_ext <<_ACEOF
11913 /* confdefs.h.  */
11914 _ACEOF
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h.  */
11918
11919 /* Override any gcc2 internal prototype to avoid an error.  */
11920 #ifdef __cplusplus
11921 extern "C"
11922 #endif
11923 /* We use char because int might match the return type of a gcc2
11924    builtin and then its argument prototype would still apply.  */
11925 char dlopen ();
11926 int
11927 main ()
11928 {
11929 dlopen ();
11930   ;
11931   return 0;
11932 }
11933 _ACEOF
11934 rm -f conftest.$ac_objext conftest$ac_exeext
11935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11936   (eval $ac_link) 2>conftest.er1
11937   ac_status=$?
11938   grep -v '^ *+' conftest.er1 >conftest.err
11939   rm -f conftest.er1
11940   cat conftest.err >&5
11941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942   (exit $ac_status); } &&
11943          { ac_try='test -z "$ac_c_werror_flag"
11944                          || test ! -s conftest.err'
11945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946   (eval $ac_try) 2>&5
11947   ac_status=$?
11948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949   (exit $ac_status); }; } &&
11950          { ac_try='test -s conftest$ac_exeext'
11951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952   (eval $ac_try) 2>&5
11953   ac_status=$?
11954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955   (exit $ac_status); }; }; then
11956   ac_cv_lib_svld_dlopen=yes
11957 else
11958   echo "$as_me: failed program was:" >&5
11959 sed 's/^/| /' conftest.$ac_ext >&5
11960
11961 ac_cv_lib_svld_dlopen=no
11962 fi
11963 rm -f conftest.err conftest.$ac_objext \
11964       conftest$ac_exeext conftest.$ac_ext
11965 LIBS=$ac_check_lib_save_LIBS
11966 fi
11967 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11968 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11969 if test $ac_cv_lib_svld_dlopen = yes; then
11970   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11971 else
11972   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11973 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11974 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11975   echo $ECHO_N "(cached) $ECHO_C" >&6
11976 else
11977   ac_check_lib_save_LIBS=$LIBS
11978 LIBS="-ldld  $LIBS"
11979 if test x$gcc_no_link = xyes; then
11980   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11981 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11982    { (exit 1); exit 1; }; }
11983 fi
11984 cat >conftest.$ac_ext <<_ACEOF
11985 /* confdefs.h.  */
11986 _ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h.  */
11990
11991 /* Override any gcc2 internal prototype to avoid an error.  */
11992 #ifdef __cplusplus
11993 extern "C"
11994 #endif
11995 /* We use char because int might match the return type of a gcc2
11996    builtin and then its argument prototype would still apply.  */
11997 char dld_link ();
11998 int
11999 main ()
12000 {
12001 dld_link ();
12002   ;
12003   return 0;
12004 }
12005 _ACEOF
12006 rm -f conftest.$ac_objext conftest$ac_exeext
12007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12008   (eval $ac_link) 2>conftest.er1
12009   ac_status=$?
12010   grep -v '^ *+' conftest.er1 >conftest.err
12011   rm -f conftest.er1
12012   cat conftest.err >&5
12013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014   (exit $ac_status); } &&
12015          { ac_try='test -z "$ac_c_werror_flag"
12016                          || test ! -s conftest.err'
12017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018   (eval $ac_try) 2>&5
12019   ac_status=$?
12020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021   (exit $ac_status); }; } &&
12022          { ac_try='test -s conftest$ac_exeext'
12023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024   (eval $ac_try) 2>&5
12025   ac_status=$?
12026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027   (exit $ac_status); }; }; then
12028   ac_cv_lib_dld_dld_link=yes
12029 else
12030   echo "$as_me: failed program was:" >&5
12031 sed 's/^/| /' conftest.$ac_ext >&5
12032
12033 ac_cv_lib_dld_dld_link=no
12034 fi
12035 rm -f conftest.err conftest.$ac_objext \
12036       conftest$ac_exeext conftest.$ac_ext
12037 LIBS=$ac_check_lib_save_LIBS
12038 fi
12039 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12040 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12041 if test $ac_cv_lib_dld_dld_link = yes; then
12042   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12043 fi
12044
12045
12046 fi
12047
12048
12049 fi
12050
12051
12052 fi
12053
12054
12055 fi
12056
12057
12058 fi
12059
12060     ;;
12061   esac
12062
12063   if test "x$lt_cv_dlopen" != xno; then
12064     enable_dlopen=yes
12065   else
12066     enable_dlopen=no
12067   fi
12068
12069   case $lt_cv_dlopen in
12070   dlopen)
12071     save_CPPFLAGS="$CPPFLAGS"
12072     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12073
12074     save_LDFLAGS="$LDFLAGS"
12075     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12076
12077     save_LIBS="$LIBS"
12078     LIBS="$lt_cv_dlopen_libs $LIBS"
12079
12080     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12081 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12082 if test "${lt_cv_dlopen_self+set}" = set; then
12083   echo $ECHO_N "(cached) $ECHO_C" >&6
12084 else
12085           if test "$cross_compiling" = yes; then :
12086   lt_cv_dlopen_self=cross
12087 else
12088   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12089   lt_status=$lt_dlunknown
12090   cat > conftest.$ac_ext <<_LT_EOF
12091 #line 12091 "configure"
12092 #include "confdefs.h"
12093
12094 #if HAVE_DLFCN_H
12095 #include <dlfcn.h>
12096 #endif
12097
12098 #include <stdio.h>
12099
12100 #ifdef RTLD_GLOBAL
12101 #  define LT_DLGLOBAL           RTLD_GLOBAL
12102 #else
12103 #  ifdef DL_GLOBAL
12104 #    define LT_DLGLOBAL         DL_GLOBAL
12105 #  else
12106 #    define LT_DLGLOBAL         0
12107 #  endif
12108 #endif
12109
12110 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12111    find out it does not work in some platform. */
12112 #ifndef LT_DLLAZY_OR_NOW
12113 #  ifdef RTLD_LAZY
12114 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12115 #  else
12116 #    ifdef DL_LAZY
12117 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12118 #    else
12119 #      ifdef RTLD_NOW
12120 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12121 #      else
12122 #        ifdef DL_NOW
12123 #          define LT_DLLAZY_OR_NOW      DL_NOW
12124 #        else
12125 #          define LT_DLLAZY_OR_NOW      0
12126 #        endif
12127 #      endif
12128 #    endif
12129 #  endif
12130 #endif
12131
12132 #ifdef __cplusplus
12133 extern "C" void exit (int);
12134 #endif
12135
12136 void fnord() { int i=42;}
12137 int main ()
12138 {
12139   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12140   int status = $lt_dlunknown;
12141
12142   if (self)
12143     {
12144       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12145       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12146       /* dlclose (self); */
12147     }
12148   else
12149     puts (dlerror ());
12150
12151     exit (status);
12152 }
12153 _LT_EOF
12154   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12155   (eval $ac_link) 2>&5
12156   ac_status=$?
12157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12159     (./conftest; exit; ) >&5 2>/dev/null
12160     lt_status=$?
12161     case x$lt_status in
12162       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12163       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12164       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12165     esac
12166   else :
12167     # compilation failed
12168     lt_cv_dlopen_self=no
12169   fi
12170 fi
12171 rm -fr conftest*
12172
12173
12174 fi
12175 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12176 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12177
12178     if test "x$lt_cv_dlopen_self" = xyes; then
12179       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12180       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12181 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12182 if test "${lt_cv_dlopen_self_static+set}" = set; then
12183   echo $ECHO_N "(cached) $ECHO_C" >&6
12184 else
12185           if test "$cross_compiling" = yes; then :
12186   lt_cv_dlopen_self_static=cross
12187 else
12188   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12189   lt_status=$lt_dlunknown
12190   cat > conftest.$ac_ext <<_LT_EOF
12191 #line 12191 "configure"
12192 #include "confdefs.h"
12193
12194 #if HAVE_DLFCN_H
12195 #include <dlfcn.h>
12196 #endif
12197
12198 #include <stdio.h>
12199
12200 #ifdef RTLD_GLOBAL
12201 #  define LT_DLGLOBAL           RTLD_GLOBAL
12202 #else
12203 #  ifdef DL_GLOBAL
12204 #    define LT_DLGLOBAL         DL_GLOBAL
12205 #  else
12206 #    define LT_DLGLOBAL         0
12207 #  endif
12208 #endif
12209
12210 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12211    find out it does not work in some platform. */
12212 #ifndef LT_DLLAZY_OR_NOW
12213 #  ifdef RTLD_LAZY
12214 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12215 #  else
12216 #    ifdef DL_LAZY
12217 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12218 #    else
12219 #      ifdef RTLD_NOW
12220 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12221 #      else
12222 #        ifdef DL_NOW
12223 #          define LT_DLLAZY_OR_NOW      DL_NOW
12224 #        else
12225 #          define LT_DLLAZY_OR_NOW      0
12226 #        endif
12227 #      endif
12228 #    endif
12229 #  endif
12230 #endif
12231
12232 #ifdef __cplusplus
12233 extern "C" void exit (int);
12234 #endif
12235
12236 void fnord() { int i=42;}
12237 int main ()
12238 {
12239   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12240   int status = $lt_dlunknown;
12241
12242   if (self)
12243     {
12244       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12245       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12246       /* dlclose (self); */
12247     }
12248   else
12249     puts (dlerror ());
12250
12251     exit (status);
12252 }
12253 _LT_EOF
12254   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12255   (eval $ac_link) 2>&5
12256   ac_status=$?
12257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12259     (./conftest; exit; ) >&5 2>/dev/null
12260     lt_status=$?
12261     case x$lt_status in
12262       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12263       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12264       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12265     esac
12266   else :
12267     # compilation failed
12268     lt_cv_dlopen_self_static=no
12269   fi
12270 fi
12271 rm -fr conftest*
12272
12273
12274 fi
12275 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12276 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12277     fi
12278
12279     CPPFLAGS="$save_CPPFLAGS"
12280     LDFLAGS="$save_LDFLAGS"
12281     LIBS="$save_LIBS"
12282     ;;
12283   esac
12284
12285   case $lt_cv_dlopen_self in
12286   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12287   *) enable_dlopen_self=unknown ;;
12288   esac
12289
12290   case $lt_cv_dlopen_self_static in
12291   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12292   *) enable_dlopen_self_static=unknown ;;
12293   esac
12294 fi
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312 striplib=
12313 old_striplib=
12314 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12315 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12316 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12317   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12318   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12319   echo "$as_me:$LINENO: result: yes" >&5
12320 echo "${ECHO_T}yes" >&6
12321 else
12322 # FIXME - insert some real tests, host_os isn't really good enough
12323   case $host_os in
12324   darwin*)
12325     if test -n "$STRIP" ; then
12326       striplib="$STRIP -x"
12327       old_striplib="$STRIP -S"
12328       echo "$as_me:$LINENO: result: yes" >&5
12329 echo "${ECHO_T}yes" >&6
12330     else
12331       echo "$as_me:$LINENO: result: no" >&5
12332 echo "${ECHO_T}no" >&6
12333     fi
12334     ;;
12335   *)
12336     echo "$as_me:$LINENO: result: no" >&5
12337 echo "${ECHO_T}no" >&6
12338     ;;
12339   esac
12340 fi
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353   # Report which library types will actually be built
12354   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12355 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12356   echo "$as_me:$LINENO: result: $can_build_shared" >&5
12357 echo "${ECHO_T}$can_build_shared" >&6
12358
12359   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12360 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12361   test "$can_build_shared" = "no" && enable_shared=no
12362
12363   # On AIX, shared libraries and static libraries use the same namespace, and
12364   # are all built from PIC.
12365   case $host_os in
12366   aix3*)
12367     test "$enable_shared" = yes && enable_static=no
12368     if test -n "$RANLIB"; then
12369       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12370       postinstall_cmds='$RANLIB $lib'
12371     fi
12372     ;;
12373
12374   aix[4-9]*)
12375     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12376       test "$enable_shared" = yes && enable_static=no
12377     fi
12378     ;;
12379   esac
12380   echo "$as_me:$LINENO: result: $enable_shared" >&5
12381 echo "${ECHO_T}$enable_shared" >&6
12382
12383   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12384 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12385   # Make sure either enable_shared or enable_static is yes.
12386   test "$enable_shared" = yes || enable_static=yes
12387   echo "$as_me:$LINENO: result: $enable_static" >&5
12388 echo "${ECHO_T}$enable_static" >&6
12389
12390
12391
12392
12393 fi
12394 ac_ext=c
12395 ac_cpp='$CPP $CPPFLAGS'
12396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12399
12400 CC="$lt_save_CC"
12401
12402
12403 ac_ext=cc
12404 ac_cpp='$CXXCPP $CPPFLAGS'
12405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12408
12409 archive_cmds_need_lc_CXX=no
12410 allow_undefined_flag_CXX=
12411 always_export_symbols_CXX=no
12412 archive_expsym_cmds_CXX=
12413 compiler_needs_object_CXX=no
12414 export_dynamic_flag_spec_CXX=
12415 hardcode_direct_CXX=no
12416 hardcode_direct_absolute_CXX=no
12417 hardcode_libdir_flag_spec_CXX=
12418 hardcode_libdir_flag_spec_ld_CXX=
12419 hardcode_libdir_separator_CXX=
12420 hardcode_minus_L_CXX=no
12421 hardcode_shlibpath_var_CXX=unsupported
12422 hardcode_automatic_CXX=no
12423 inherit_rpath_CXX=no
12424 module_cmds_CXX=
12425 module_expsym_cmds_CXX=
12426 link_all_deplibs_CXX=unknown
12427 old_archive_cmds_CXX=$old_archive_cmds
12428 no_undefined_flag_CXX=
12429 whole_archive_flag_spec_CXX=
12430 enable_shared_with_static_runtimes_CXX=no
12431
12432 # Source file extension for C++ test sources.
12433 ac_ext=cpp
12434
12435 # Object file extension for compiled C++ test sources.
12436 objext=o
12437 objext_CXX=$objext
12438
12439 # No sense in running all these tests if we already determined that
12440 # the CXX compiler isn't working.  Some variables (like enable_shared)
12441 # are currently assumed to apply to all compilers on this platform,
12442 # and will be corrupted by setting them based on a non-working compiler.
12443 if test "$_lt_caught_CXX_error" != yes; then
12444   # Code to be used in simple compile tests
12445   lt_simple_compile_test_code="int some_variable = 0;"
12446
12447   # Code to be used in simple link tests
12448   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12449
12450   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12451
12452
12453
12454
12455
12456
12457 # If no C compiler was specified, use CC.
12458 LTCC=${LTCC-"$CC"}
12459
12460 # If no C compiler flags were specified, use CFLAGS.
12461 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12462
12463 # Allow CC to be a program name with arguments.
12464 compiler=$CC
12465
12466
12467   # save warnings/boilerplate of simple test code
12468   ac_outfile=conftest.$ac_objext
12469 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12470 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12471 _lt_compiler_boilerplate=`cat conftest.err`
12472 $RM conftest*
12473
12474   ac_outfile=conftest.$ac_objext
12475 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12476 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12477 _lt_linker_boilerplate=`cat conftest.err`
12478 $RM conftest*
12479
12480
12481   # Allow CC to be a program name with arguments.
12482   lt_save_CC=$CC
12483   lt_save_LD=$LD
12484   lt_save_GCC=$GCC
12485   GCC=$GXX
12486   lt_save_with_gnu_ld=$with_gnu_ld
12487   lt_save_path_LD=$lt_cv_path_LD
12488   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12489     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12490   else
12491     $as_unset lt_cv_prog_gnu_ld
12492   fi
12493   if test -n "${lt_cv_path_LDCXX+set}"; then
12494     lt_cv_path_LD=$lt_cv_path_LDCXX
12495   else
12496     $as_unset lt_cv_path_LD
12497   fi
12498   test -z "${LDCXX+set}" || LD=$LDCXX
12499   CC=${CXX-"c++"}
12500   compiler=$CC
12501   compiler_CXX=$CC
12502   for cc_temp in $compiler""; do
12503   case $cc_temp in
12504     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12505     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12506     \-*) ;;
12507     *) break;;
12508   esac
12509 done
12510 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12511
12512
12513   if test -n "$compiler"; then
12514     # We don't want -fno-exception when compiling C++ code, so set the
12515     # no_builtin_flag separately
12516     if test "$GXX" = yes; then
12517       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12518     else
12519       lt_prog_compiler_no_builtin_flag_CXX=
12520     fi
12521
12522     if test "$GXX" = yes; then
12523       # Set up default GNU C++ configuration
12524
12525
12526
12527 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12528 if test "${with_gnu_ld+set}" = set; then
12529   withval="$with_gnu_ld"
12530   test "$withval" = no || with_gnu_ld=yes
12531 else
12532   with_gnu_ld=no
12533 fi;
12534 ac_prog=ld
12535 if test "$GCC" = yes; then
12536   # Check if gcc -print-prog-name=ld gives a path.
12537   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12538 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12539   case $host in
12540   *-*-mingw*)
12541     # gcc leaves a trailing carriage return which upsets mingw
12542     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12543   *)
12544     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12545   esac
12546   case $ac_prog in
12547     # Accept absolute paths.
12548     [\\/]* | ?:[\\/]*)
12549       re_direlt='/[^/][^/]*/\.\./'
12550       # Canonicalize the pathname of ld
12551       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12552       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12553         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12554       done
12555       test -z "$LD" && LD="$ac_prog"
12556       ;;
12557   "")
12558     # If it fails, then pretend we aren't using GCC.
12559     ac_prog=ld
12560     ;;
12561   *)
12562     # If it is relative, then search for the first ld in PATH.
12563     with_gnu_ld=unknown
12564     ;;
12565   esac
12566 elif test "$with_gnu_ld" = yes; then
12567   echo "$as_me:$LINENO: checking for GNU ld" >&5
12568 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12569 else
12570   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12571 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12572 fi
12573 if test "${lt_cv_path_LD+set}" = set; then
12574   echo $ECHO_N "(cached) $ECHO_C" >&6
12575 else
12576   if test -z "$LD"; then
12577   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12578   for ac_dir in $PATH; do
12579     IFS="$lt_save_ifs"
12580     test -z "$ac_dir" && ac_dir=.
12581     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12582       lt_cv_path_LD="$ac_dir/$ac_prog"
12583       # Check to see if the program is GNU ld.  I'd rather use --version,
12584       # but apparently some variants of GNU ld only accept -v.
12585       # Break only if it was the GNU/non-GNU ld that we prefer.
12586       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12587       *GNU* | *'with BFD'*)
12588         test "$with_gnu_ld" != no && break
12589         ;;
12590       *)
12591         test "$with_gnu_ld" != yes && break
12592         ;;
12593       esac
12594     fi
12595   done
12596   IFS="$lt_save_ifs"
12597 else
12598   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12599 fi
12600 fi
12601
12602 LD="$lt_cv_path_LD"
12603 if test -n "$LD"; then
12604   echo "$as_me:$LINENO: result: $LD" >&5
12605 echo "${ECHO_T}$LD" >&6
12606 else
12607   echo "$as_me:$LINENO: result: no" >&5
12608 echo "${ECHO_T}no" >&6
12609 fi
12610 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12611 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12612    { (exit 1); exit 1; }; }
12613 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12614 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12615 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12616   echo $ECHO_N "(cached) $ECHO_C" >&6
12617 else
12618   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12619 case `$LD -v 2>&1 </dev/null` in
12620 *GNU* | *'with BFD'*)
12621   lt_cv_prog_gnu_ld=yes
12622   ;;
12623 *)
12624   lt_cv_prog_gnu_ld=no
12625   ;;
12626 esac
12627 fi
12628 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12629 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12630 with_gnu_ld=$lt_cv_prog_gnu_ld
12631
12632
12633
12634
12635
12636
12637
12638       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12639       # archiving commands below assume that GNU ld is being used.
12640       if test "$with_gnu_ld" = yes; then
12641         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12642         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'
12643
12644         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12645         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12646
12647         # If archive_cmds runs LD, not CC, wlarc should be empty
12648         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12649         #     investigate it a little bit more. (MM)
12650         wlarc='${wl}'
12651
12652         # ancient GNU ld didn't support --whole-archive et. al.
12653         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12654           $GREP 'no-whole-archive' > /dev/null; then
12655           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12656         else
12657           whole_archive_flag_spec_CXX=
12658         fi
12659       else
12660         with_gnu_ld=no
12661         wlarc=
12662
12663         # A generic and very simple default shared library creation
12664         # command for GNU C++ for the case where it uses the native
12665         # linker, instead of GNU ld.  If possible, this setting should
12666         # overridden to take advantage of the native linker features on
12667         # the platform it is being used on.
12668         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12669       fi
12670
12671       # Commands to make compiler produce verbose output that lists
12672       # what "hidden" libraries, object files and flags are used when
12673       # linking a shared library.
12674       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12675
12676     else
12677       GXX=no
12678       with_gnu_ld=no
12679       wlarc=
12680     fi
12681
12682     # PORTME: fill in a description of your system's C++ link characteristics
12683     echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12684 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12685     ld_shlibs_CXX=yes
12686     case $host_os in
12687       aix3*)
12688         # FIXME: insert proper C++ library support
12689         ld_shlibs_CXX=no
12690         ;;
12691       aix[4-9]*)
12692         if test "$host_cpu" = ia64; then
12693           # On IA64, the linker does run time linking by default, so we don't
12694           # have to do anything special.
12695           aix_use_runtimelinking=no
12696           exp_sym_flag='-Bexport'
12697           no_entry_flag=""
12698         else
12699           aix_use_runtimelinking=no
12700
12701           # Test if we are trying to use run time linking or normal
12702           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12703           # need to do runtime linking.
12704           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12705             for ld_flag in $LDFLAGS; do
12706               case $ld_flag in
12707               *-brtl*)
12708                 aix_use_runtimelinking=yes
12709                 break
12710                 ;;
12711               esac
12712             done
12713             ;;
12714           esac
12715
12716           exp_sym_flag='-bexport'
12717           no_entry_flag='-bnoentry'
12718         fi
12719
12720         # When large executables or shared objects are built, AIX ld can
12721         # have problems creating the table of contents.  If linking a library
12722         # or program results in "error TOC overflow" add -mminimal-toc to
12723         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12724         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12725
12726         archive_cmds_CXX=''
12727         hardcode_direct_CXX=yes
12728         hardcode_direct_absolute_CXX=yes
12729         hardcode_libdir_separator_CXX=':'
12730         link_all_deplibs_CXX=yes
12731         file_list_spec_CXX='${wl}-f,'
12732
12733         if test "$GXX" = yes; then
12734           case $host_os in aix4.[012]|aix4.[012].*)
12735           # We only want to do this on AIX 4.2 and lower, the check
12736           # below for broken collect2 doesn't work under 4.3+
12737           collect2name=`${CC} -print-prog-name=collect2`
12738           if test -f "$collect2name" &&
12739              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12740           then
12741             # We have reworked collect2
12742             :
12743           else
12744             # We have old collect2
12745             hardcode_direct_CXX=unsupported
12746             # It fails to find uninstalled libraries when the uninstalled
12747             # path is not listed in the libpath.  Setting hardcode_minus_L
12748             # to unsupported forces relinking
12749             hardcode_minus_L_CXX=yes
12750             hardcode_libdir_flag_spec_CXX='-L$libdir'
12751             hardcode_libdir_separator_CXX=
12752           fi
12753           esac
12754           shared_flag='-shared'
12755           if test "$aix_use_runtimelinking" = yes; then
12756             shared_flag="$shared_flag "'${wl}-G'
12757           fi
12758         else
12759           # not using gcc
12760           if test "$host_cpu" = ia64; then
12761           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12762           # chokes on -Wl,-G. The following line is correct:
12763           shared_flag='-G'
12764           else
12765             if test "$aix_use_runtimelinking" = yes; then
12766               shared_flag='${wl}-G'
12767             else
12768               shared_flag='${wl}-bM:SRE'
12769             fi
12770           fi
12771         fi
12772
12773         # It seems that -bexpall does not export symbols beginning with
12774         # underscore (_), so it is better to generate a list of symbols to
12775         # export.
12776         always_export_symbols_CXX=yes
12777         if test "$aix_use_runtimelinking" = yes; then
12778           # Warning - without using the other runtime loading flags (-brtl),
12779           # -berok will link without error, but may produce a broken library.
12780           allow_undefined_flag_CXX='-berok'
12781           # Determine the default libpath from the value encoded in an empty
12782           # executable.
12783           if test x$gcc_no_link = xyes; then
12784   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12785 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12786    { (exit 1); exit 1; }; }
12787 fi
12788 cat >conftest.$ac_ext <<_ACEOF
12789 /* confdefs.h.  */
12790 _ACEOF
12791 cat confdefs.h >>conftest.$ac_ext
12792 cat >>conftest.$ac_ext <<_ACEOF
12793 /* end confdefs.h.  */
12794
12795 int
12796 main ()
12797 {
12798
12799   ;
12800   return 0;
12801 }
12802 _ACEOF
12803 rm -f conftest.$ac_objext conftest$ac_exeext
12804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12805   (eval $ac_link) 2>conftest.er1
12806   ac_status=$?
12807   grep -v '^ *+' conftest.er1 >conftest.err
12808   rm -f conftest.er1
12809   cat conftest.err >&5
12810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811   (exit $ac_status); } &&
12812          { ac_try='test -z "$ac_cxx_werror_flag"
12813                          || test ! -s conftest.err'
12814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12815   (eval $ac_try) 2>&5
12816   ac_status=$?
12817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818   (exit $ac_status); }; } &&
12819          { ac_try='test -s conftest$ac_exeext'
12820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821   (eval $ac_try) 2>&5
12822   ac_status=$?
12823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824   (exit $ac_status); }; }; then
12825
12826 lt_aix_libpath_sed='
12827     /Import File Strings/,/^$/ {
12828         /^0/ {
12829             s/^0  *\(.*\)$/\1/
12830             p
12831         }
12832     }'
12833 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12834 # Check for a 64-bit object if we didn't find anything.
12835 if test -z "$aix_libpath"; then
12836   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12837 fi
12838 else
12839   echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.$ac_ext >&5
12841
12842 fi
12843 rm -f conftest.err conftest.$ac_objext \
12844       conftest$ac_exeext conftest.$ac_ext
12845 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12846
12847           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12848
12849           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12850         else
12851           if test "$host_cpu" = ia64; then
12852             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12853             allow_undefined_flag_CXX="-z nodefs"
12854             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12855           else
12856             # Determine the default libpath from the value encoded in an
12857             # empty executable.
12858             if test x$gcc_no_link = xyes; then
12859   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12860 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12861    { (exit 1); exit 1; }; }
12862 fi
12863 cat >conftest.$ac_ext <<_ACEOF
12864 /* confdefs.h.  */
12865 _ACEOF
12866 cat confdefs.h >>conftest.$ac_ext
12867 cat >>conftest.$ac_ext <<_ACEOF
12868 /* end confdefs.h.  */
12869
12870 int
12871 main ()
12872 {
12873
12874   ;
12875   return 0;
12876 }
12877 _ACEOF
12878 rm -f conftest.$ac_objext conftest$ac_exeext
12879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12880   (eval $ac_link) 2>conftest.er1
12881   ac_status=$?
12882   grep -v '^ *+' conftest.er1 >conftest.err
12883   rm -f conftest.er1
12884   cat conftest.err >&5
12885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886   (exit $ac_status); } &&
12887          { ac_try='test -z "$ac_cxx_werror_flag"
12888                          || test ! -s conftest.err'
12889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890   (eval $ac_try) 2>&5
12891   ac_status=$?
12892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893   (exit $ac_status); }; } &&
12894          { ac_try='test -s conftest$ac_exeext'
12895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12896   (eval $ac_try) 2>&5
12897   ac_status=$?
12898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899   (exit $ac_status); }; }; then
12900
12901 lt_aix_libpath_sed='
12902     /Import File Strings/,/^$/ {
12903         /^0/ {
12904             s/^0  *\(.*\)$/\1/
12905             p
12906         }
12907     }'
12908 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12909 # Check for a 64-bit object if we didn't find anything.
12910 if test -z "$aix_libpath"; then
12911   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12912 fi
12913 else
12914   echo "$as_me: failed program was:" >&5
12915 sed 's/^/| /' conftest.$ac_ext >&5
12916
12917 fi
12918 rm -f conftest.err conftest.$ac_objext \
12919       conftest$ac_exeext conftest.$ac_ext
12920 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12921
12922             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12923             # Warning - without using the other run time loading flags,
12924             # -berok will link without error, but may produce a broken library.
12925             no_undefined_flag_CXX=' ${wl}-bernotok'
12926             allow_undefined_flag_CXX=' ${wl}-berok'
12927             # Exported symbols can be pulled into shared objects from archives
12928             whole_archive_flag_spec_CXX='$convenience'
12929             archive_cmds_need_lc_CXX=yes
12930             # This is similar to how AIX traditionally builds its shared
12931             # libraries.
12932             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12933           fi
12934         fi
12935         ;;
12936
12937       beos*)
12938         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12939           allow_undefined_flag_CXX=unsupported
12940           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12941           # support --undefined.  This deserves some investigation.  FIXME
12942           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12943         else
12944           ld_shlibs_CXX=no
12945         fi
12946         ;;
12947
12948       chorus*)
12949         case $cc_basename in
12950           *)
12951           # FIXME: insert proper C++ library support
12952           ld_shlibs_CXX=no
12953           ;;
12954         esac
12955         ;;
12956
12957       cygwin* | mingw* | pw32*)
12958         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12959         # as there is no search path for DLLs.
12960         hardcode_libdir_flag_spec_CXX='-L$libdir'
12961         allow_undefined_flag_CXX=unsupported
12962         always_export_symbols_CXX=no
12963         enable_shared_with_static_runtimes_CXX=yes
12964
12965         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12966           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12967           # If the export-symbols file already is a .def file (1st line
12968           # is EXPORTS), use it as is; otherwise, prepend...
12969           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12970             cp $export_symbols $output_objdir/$soname.def;
12971           else
12972             echo EXPORTS > $output_objdir/$soname.def;
12973             cat $export_symbols >> $output_objdir/$soname.def;
12974           fi~
12975           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12976         else
12977           ld_shlibs_CXX=no
12978         fi
12979         ;;
12980       darwin* | rhapsody*)
12981         case $host_os in
12982           rhapsody* | darwin1.[012])
12983             allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12984             ;;
12985           *) # Darwin 1.3 on
12986             case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
12987               10.[012])
12988                 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12989                 ;;
12990               10.*)
12991                 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12992                 ;;
12993             esac
12994             ;;
12995         esac
12996         archive_cmds_need_lc_CXX=no
12997         hardcode_direct_CXX=no
12998         hardcode_automatic_CXX=yes
12999         hardcode_shlibpath_var_CXX=unsupported
13000         whole_archive_flag_spec_CXX=''
13001         link_all_deplibs_CXX=yes
13002
13003         if test "$GXX" = yes ; then
13004           if test "${lt_cv_apple_cc_single_mod+set}" = set; then
13005   echo $ECHO_N "(cached) $ECHO_C" >&6
13006 else
13007   lt_cv_apple_cc_single_mod=no
13008           if test -z "${LT_MULTI_MODULE}"; then
13009             # By default we will add the -single_module flag. You can override
13010             # by either setting the environment variable LT_MULTI_MODULE
13011             # non-empty at configure time, or by adding -multi-module to the
13012             # link flags.
13013             echo "int foo(void){return 1;}" > conftest.c
13014             $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13015                 -dynamiclib ${wl}-single_module conftest.c
13016             if test -f libconftest.dylib; then
13017                 lt_cv_apple_cc_single_mod=yes
13018                 rm libconftest.dylib
13019             fi
13020             rm conftest.$ac_ext
13021           fi
13022 fi
13023
13024           output_verbose_link_cmd=echo
13025           if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
13026            archive_cmds_CXX='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13027             archive_expsym_cmds_CXX='sed "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}'
13028           else
13029             archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13030             archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13031           fi
13032           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13033           module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13034         else
13035           case $cc_basename in
13036             xlc*)
13037               output_verbose_link_cmd=echo
13038               archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO "$rpath/$soname"` $verstring'
13039               module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13040               # Don't fix this by using the ld -exported_symbols_list flag,
13041               # it doesn't exist in older darwin lds
13042               archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13043               module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13044               ;;
13045             *)
13046               ld_shlibs_CXX=no
13047               ;;
13048           esac
13049         fi
13050         ;;
13051
13052       dgux*)
13053         case $cc_basename in
13054           ec++*)
13055             # FIXME: insert proper C++ library support
13056             ld_shlibs_CXX=no
13057             ;;
13058           ghcx*)
13059             # Green Hills C++ Compiler
13060             # FIXME: insert proper C++ library support
13061             ld_shlibs_CXX=no
13062             ;;
13063           *)
13064             # FIXME: insert proper C++ library support
13065             ld_shlibs_CXX=no
13066             ;;
13067         esac
13068         ;;
13069
13070       freebsd[12]*)
13071         # C++ shared libraries reported to be fairly broken before
13072         # switch to ELF
13073         ld_shlibs_CXX=no
13074         ;;
13075
13076       freebsd-elf*)
13077         archive_cmds_need_lc_CXX=no
13078         ;;
13079
13080       freebsd* | dragonfly*)
13081         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13082         # conventions
13083         ld_shlibs_CXX=yes
13084         ;;
13085
13086       gnu*)
13087         ;;
13088
13089       hpux9*)
13090         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13091         hardcode_libdir_separator_CXX=:
13092         export_dynamic_flag_spec_CXX='${wl}-E'
13093         hardcode_direct_CXX=yes
13094         hardcode_minus_L_CXX=yes # Not in the search PATH,
13095                                              # but as the default
13096                                              # location of the library.
13097
13098         case $cc_basename in
13099           CC*)
13100             # FIXME: insert proper C++ library support
13101             ld_shlibs_CXX=no
13102             ;;
13103           aCC*)
13104             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'
13105             # Commands to make compiler produce verbose output that lists
13106             # what "hidden" libraries, object files and flags are used when
13107             # linking a shared library.
13108             #
13109             # There doesn't appear to be a way to prevent this compiler from
13110             # explicitly linking system object files so we need to strip them
13111             # from the output so that they don't get included in the library
13112             # dependencies.
13113             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 "X$list" | $Xsed'
13114             ;;
13115           *)
13116             if test "$GXX" = yes; then
13117               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'
13118             else
13119               # FIXME: insert proper C++ library support
13120               ld_shlibs_CXX=no
13121             fi
13122             ;;
13123         esac
13124         ;;
13125
13126       hpux10*|hpux11*)
13127         if test $with_gnu_ld = no; then
13128           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13129           hardcode_libdir_separator_CXX=:
13130
13131           case $host_cpu in
13132             hppa*64*|ia64*)
13133               ;;
13134             *)
13135               export_dynamic_flag_spec_CXX='${wl}-E'
13136               ;;
13137           esac
13138         fi
13139         case $host_cpu in
13140           hppa*64*|ia64*)
13141             hardcode_direct_CXX=no
13142             hardcode_shlibpath_var_CXX=no
13143             ;;
13144           *)
13145             hardcode_direct_CXX=yes
13146             hardcode_direct_absolute_CXX=yes
13147             hardcode_minus_L_CXX=yes # Not in the search PATH,
13148                                                  # but as the default
13149                                                  # location of the library.
13150             ;;
13151         esac
13152
13153         case $cc_basename in
13154           CC*)
13155             # FIXME: insert proper C++ library support
13156             ld_shlibs_CXX=no
13157             ;;
13158           aCC*)
13159             case $host_cpu in
13160               hppa*64*)
13161                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13162                 ;;
13163               ia64*)
13164                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13165                 ;;
13166               *)
13167                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13168                 ;;
13169             esac
13170             # Commands to make compiler produce verbose output that lists
13171             # what "hidden" libraries, object files and flags are used when
13172             # linking a shared library.
13173             #
13174             # There doesn't appear to be a way to prevent this compiler from
13175             # explicitly linking system object files so we need to strip them
13176             # from the output so that they don't get included in the library
13177             # dependencies.
13178             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 "X$list" | $Xsed'
13179             ;;
13180           *)
13181             if test "$GXX" = yes; then
13182               if test $with_gnu_ld = no; then
13183                 case $host_cpu in
13184                   hppa*64*)
13185                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13186                     ;;
13187                   ia64*)
13188                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13189                     ;;
13190                   *)
13191                     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'
13192                     ;;
13193                 esac
13194               fi
13195             else
13196               # FIXME: insert proper C++ library support
13197               ld_shlibs_CXX=no
13198             fi
13199             ;;
13200         esac
13201         ;;
13202
13203       interix[3-9]*)
13204         hardcode_direct_CXX=no
13205         hardcode_shlibpath_var_CXX=no
13206         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13207         export_dynamic_flag_spec_CXX='${wl}-E'
13208         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13209         # Instead, shared libraries are loaded at an image base (0x10000000 by
13210         # default) and relocated if they conflict, which is a slow very memory
13211         # consuming and fragmenting process.  To avoid this, we pick a random,
13212         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13213         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13214         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13215         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13216         ;;
13217       irix5* | irix6*)
13218         case $cc_basename in
13219           CC*)
13220             # SGI C++
13221             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13222
13223             # Archives containing C++ object files must be created using
13224             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13225             # necessary to make sure instantiated templates are included
13226             # in the archive.
13227             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13228             ;;
13229           *)
13230             if test "$GXX" = yes; then
13231               if test "$with_gnu_ld" = no; then
13232                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13233               else
13234                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13235               fi
13236             fi
13237             link_all_deplibs_CXX=yes
13238             ;;
13239         esac
13240         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13241         hardcode_libdir_separator_CXX=:
13242         inherit_rpath_CXX=yes
13243         ;;
13244
13245       linux* | k*bsd*-gnu)
13246         case $cc_basename in
13247           KCC*)
13248             # Kuck and Associates, Inc. (KAI) C++ Compiler
13249
13250             # KCC will only create a shared library if the output file
13251             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13252             # to its proper name (with version) after linking.
13253             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'
13254             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'
13255             # Commands to make compiler produce verbose output that lists
13256             # what "hidden" libraries, object files and flags are used when
13257             # linking a shared library.
13258             #
13259             # There doesn't appear to be a way to prevent this compiler from
13260             # explicitly linking system object files so we need to strip them
13261             # from the output so that they don't get included in the library
13262             # dependencies.
13263             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 "X$list" | $Xsed'
13264
13265             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13266             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13267
13268             # Archives containing C++ object files must be created using
13269             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13270             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13271             ;;
13272           icpc* | ecpc* )
13273             # Intel C++
13274             with_gnu_ld=yes
13275             # version 8.0 and above of icpc choke on multiply defined symbols
13276             # if we add $predep_objects and $postdep_objects, however 7.1 and
13277             # earlier do not add the objects themselves.
13278             case `$CC -V 2>&1` in
13279               *"Version 7."*)
13280                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13281                 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'
13282                 ;;
13283               *)  # Version 8.0 or newer
13284                 tmp_idyn=
13285                 case $host_cpu in
13286                   ia64*) tmp_idyn=' -i_dynamic';;
13287                 esac
13288                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13289                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13290                 ;;
13291             esac
13292             archive_cmds_need_lc_CXX=no
13293             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13294             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13295             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13296             ;;
13297           pgCC*)
13298             # Portland Group C++ compiler
13299             case `$CC -V` in
13300             *pgCC\ [1-5]*)
13301               prelink_cmds_CXX='tpldir=Template.dir~
13302                 rm -rf $tpldir~
13303                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13304                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13305               old_archive_cmds_CXX='tpldir=Template.dir~
13306                 rm -rf $tpldir~
13307                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13308                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13309                 $RANLIB $oldlib'
13310               archive_cmds_CXX='tpldir=Template.dir~
13311                 rm -rf $tpldir~
13312                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13313                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13314               archive_expsym_cmds_CXX='tpldir=Template.dir~
13315                 rm -rf $tpldir~
13316                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13317                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13318               ;;
13319             *) # Version 6 will use weak symbols
13320               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13321               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13322               ;;
13323             esac
13324
13325             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13326             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13327             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13328             ;;
13329           cxx*)
13330             # Compaq C++
13331             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13332             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'
13333
13334             runpath_var=LD_RUN_PATH
13335             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13336             hardcode_libdir_separator_CXX=:
13337
13338             # Commands to make compiler produce verbose output that lists
13339             # what "hidden" libraries, object files and flags are used when
13340             # linking a shared library.
13341             #
13342             # There doesn't appear to be a way to prevent this compiler from
13343             # explicitly linking system object files so we need to strip them
13344             # from the output so that they don't get included in the library
13345             # dependencies.
13346             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13347             ;;
13348           *)
13349             case `$CC -V 2>&1 | sed 5q` in
13350             *Sun\ C*)
13351               # Sun C++ 5.9
13352               no_undefined_flag_CXX=' -zdefs'
13353               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13354               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13355               hardcode_libdir_flag_spec_CXX='-R$libdir'
13356               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13357               compiler_needs_object_CXX=yes
13358
13359               # Not sure whether something based on
13360               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13361               # would be better.
13362               output_verbose_link_cmd='echo'
13363
13364               # Archives containing C++ object files must be created using
13365               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13366               # necessary to make sure instantiated templates are included
13367               # in the archive.
13368               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13369               ;;
13370             esac
13371             ;;
13372         esac
13373         ;;
13374
13375       lynxos*)
13376         # FIXME: insert proper C++ library support
13377         ld_shlibs_CXX=no
13378         ;;
13379
13380       m88k*)
13381         # FIXME: insert proper C++ library support
13382         ld_shlibs_CXX=no
13383         ;;
13384
13385       mvs*)
13386         case $cc_basename in
13387           cxx*)
13388             # FIXME: insert proper C++ library support
13389             ld_shlibs_CXX=no
13390             ;;
13391           *)
13392             # FIXME: insert proper C++ library support
13393             ld_shlibs_CXX=no
13394             ;;
13395         esac
13396         ;;
13397
13398       netbsd*)
13399         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13400           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13401           wlarc=
13402           hardcode_libdir_flag_spec_CXX='-R$libdir'
13403           hardcode_direct_CXX=yes
13404           hardcode_shlibpath_var_CXX=no
13405         fi
13406         # Workaround some broken pre-1.5 toolchains
13407         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13408         ;;
13409
13410       *nto* | *qnx*)
13411         ld_shlibs_CXX=yes
13412         ;;
13413
13414       openbsd2*)
13415         # C++ shared libraries are fairly broken
13416         ld_shlibs_CXX=no
13417         ;;
13418
13419       openbsd*)
13420         hardcode_direct_CXX=yes
13421         hardcode_shlibpath_var_CXX=no
13422         hardcode_direct_absolute_CXX=yes
13423         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13424         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13425         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13426           archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13427           export_dynamic_flag_spec_CXX='${wl}-E'
13428           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13429         fi
13430         output_verbose_link_cmd=echo
13431         ;;
13432
13433       osf3* | osf4* | osf5*)
13434         case $cc_basename in
13435           KCC*)
13436             # Kuck and Associates, Inc. (KAI) C++ Compiler
13437
13438             # KCC will only create a shared library if the output file
13439             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13440             # to its proper name (with version) after linking.
13441             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'
13442
13443             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13444             hardcode_libdir_separator_CXX=:
13445
13446             # Archives containing C++ object files must be created using
13447             # the KAI C++ compiler.
13448             case $host in
13449               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13450               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13451             esac
13452             ;;
13453           RCC*)
13454             # Rational C++ 2.4.1
13455             # FIXME: insert proper C++ library support
13456             ld_shlibs_CXX=no
13457             ;;
13458           cxx*)
13459             case $host in
13460               osf3*)
13461                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13462                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13463                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13464                 ;;
13465               *)
13466                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13467                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13468                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13469                   echo "-hidden">> $lib.exp~
13470                   $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13471                   $RM $lib.exp'
13472                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13473                 ;;
13474             esac
13475
13476             hardcode_libdir_separator_CXX=:
13477
13478             # Commands to make compiler produce verbose output that lists
13479             # what "hidden" libraries, object files and flags are used when
13480             # linking a shared library.
13481             #
13482             # There doesn't appear to be a way to prevent this compiler from
13483             # explicitly linking system object files so we need to strip them
13484             # from the output so that they don't get included in the library
13485             # dependencies.
13486             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13487             ;;
13488           *)
13489             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13490               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13491               case $host in
13492                 osf3*)
13493                   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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13494                   ;;
13495                 *)
13496                   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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13497                   ;;
13498               esac
13499
13500               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13501               hardcode_libdir_separator_CXX=:
13502
13503               # Commands to make compiler produce verbose output that lists
13504               # what "hidden" libraries, object files and flags are used when
13505               # linking a shared library.
13506               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13507
13508             else
13509               # FIXME: insert proper C++ library support
13510               ld_shlibs_CXX=no
13511             fi
13512             ;;
13513         esac
13514         ;;
13515
13516       psos*)
13517         # FIXME: insert proper C++ library support
13518         ld_shlibs_CXX=no
13519         ;;
13520
13521       sunos4*)
13522         case $cc_basename in
13523           CC*)
13524             # Sun C++ 4.x
13525             # FIXME: insert proper C++ library support
13526             ld_shlibs_CXX=no
13527             ;;
13528           lcc*)
13529             # Lucid
13530             # FIXME: insert proper C++ library support
13531             ld_shlibs_CXX=no
13532             ;;
13533           *)
13534             # FIXME: insert proper C++ library support
13535             ld_shlibs_CXX=no
13536             ;;
13537         esac
13538         ;;
13539
13540       solaris*)
13541         case $cc_basename in
13542           CC*)
13543             # Sun C++ 4.2, 5.x and Centerline C++
13544             archive_cmds_need_lc_CXX=yes
13545             no_undefined_flag_CXX=' -zdefs'
13546             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13547             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13548               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13549
13550             hardcode_libdir_flag_spec_CXX='-R$libdir'
13551             hardcode_shlibpath_var_CXX=no
13552             case $host_os in
13553               solaris2.[0-5] | solaris2.[0-5].*) ;;
13554               *)
13555                 # The compiler driver will combine and reorder linker options,
13556                 # but understands `-z linker_flag'.
13557                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13558                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13559                 ;;
13560             esac
13561             link_all_deplibs_CXX=yes
13562
13563             output_verbose_link_cmd='echo'
13564
13565             # Archives containing C++ object files must be created using
13566             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13567             # necessary to make sure instantiated templates are included
13568             # in the archive.
13569             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13570             ;;
13571           gcx*)
13572             # Green Hills C++ Compiler
13573             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13574
13575             # The C++ compiler must be used to create the archive.
13576             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13577             ;;
13578           *)
13579             # GNU C++ compiler with Solaris linker
13580             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13581               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13582               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13583                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13584                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13585                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13586
13587                 # Commands to make compiler produce verbose output that lists
13588                 # what "hidden" libraries, object files and flags are used when
13589                 # linking a shared library.
13590                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13591               else
13592                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13593                 # platform.
13594                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13595                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13596                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13597
13598                 # Commands to make compiler produce verbose output that lists
13599                 # what "hidden" libraries, object files and flags are used when
13600                 # linking a shared library.
13601                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13602               fi
13603
13604               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13605               case $host_os in
13606                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13607                 *)
13608                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13609                   ;;
13610               esac
13611             fi
13612             ;;
13613         esac
13614         ;;
13615
13616     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13617       no_undefined_flag_CXX='${wl}-z,text'
13618       archive_cmds_need_lc_CXX=no
13619       hardcode_shlibpath_var_CXX=no
13620       runpath_var='LD_RUN_PATH'
13621
13622       case $cc_basename in
13623         CC*)
13624           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13625           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13626           ;;
13627         *)
13628           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13629           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13630           ;;
13631       esac
13632       ;;
13633
13634       sysv5* | sco3.2v5* | sco5v6*)
13635         # Note: We can NOT use -z defs as we might desire, because we do not
13636         # link with -lc, and that would cause any symbols used from libc to
13637         # always be unresolved, which means just about no library would
13638         # ever link correctly.  If we're not using GNU ld we use -z text
13639         # though, which does catch some bad symbols but isn't as heavy-handed
13640         # as -z defs.
13641         no_undefined_flag_CXX='${wl}-z,text'
13642         allow_undefined_flag_CXX='${wl}-z,nodefs'
13643         archive_cmds_need_lc_CXX=no
13644         hardcode_shlibpath_var_CXX=no
13645         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13646         hardcode_libdir_separator_CXX=':'
13647         link_all_deplibs_CXX=yes
13648         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13649         runpath_var='LD_RUN_PATH'
13650
13651         case $cc_basename in
13652           CC*)
13653             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13654             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13655             ;;
13656           *)
13657             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13658             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13659             ;;
13660         esac
13661       ;;
13662
13663       tandem*)
13664         case $cc_basename in
13665           NCC*)
13666             # NonStop-UX NCC 3.20
13667             # FIXME: insert proper C++ library support
13668             ld_shlibs_CXX=no
13669             ;;
13670           *)
13671             # FIXME: insert proper C++ library support
13672             ld_shlibs_CXX=no
13673             ;;
13674         esac
13675         ;;
13676
13677       vxworks*)
13678         # FIXME: insert proper C++ library support
13679         ld_shlibs_CXX=no
13680         ;;
13681
13682       *)
13683         # FIXME: insert proper C++ library support
13684         ld_shlibs_CXX=no
13685         ;;
13686     esac
13687
13688     echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13689 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13690     test "$ld_shlibs_CXX" = no && can_build_shared=no
13691
13692     GCC_CXX="$GXX"
13693     LD_CXX="$LD"
13694
13695     ## CAVEAT EMPTOR:
13696     ## There is no encapsulation within the following macros, do not change
13697     ## the running order or otherwise move them around unless you know exactly
13698     ## what you are doing...
13699     # Dependencies to place before and after the object being linked:
13700 predep_objects_CXX=
13701 postdep_objects_CXX=
13702 predeps_CXX=
13703 postdeps_CXX=
13704 compiler_lib_search_path_CXX=
13705
13706 cat > conftest.$ac_ext <<_LT_EOF
13707 class Foo
13708 {
13709 public:
13710   Foo (void) { a = 0; }
13711 private:
13712   int a;
13713 };
13714 _LT_EOF
13715
13716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13717   (eval $ac_compile) 2>&5
13718   ac_status=$?
13719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720   (exit $ac_status); }; then
13721   # Parse the compiler output and extract the necessary
13722   # objects, libraries and library flags.
13723
13724   # Sentinel used to keep track of whether or not we are before
13725   # the conftest object file.
13726   pre_test_object_deps_done=no
13727
13728   # The `*' in the case matches for architectures that use `case' in
13729   # $output_verbose_cmd can trigger glob expansion during the loop
13730   # eval without this substitution.
13731   output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13732
13733   for p in `eval $output_verbose_link_cmd`; do
13734     case $p in
13735
13736     -L* | -R* | -l*)
13737        # Some compilers place space between "-{L,R}" and the path.
13738        # Remove the space.
13739        if test $p = "-L" ||
13740           test $p = "-R"; then
13741          prev=$p
13742          continue
13743        else
13744          prev=
13745        fi
13746
13747        if test "$pre_test_object_deps_done" = no; then
13748          case $p in
13749          -L* | -R*)
13750            # Internal compiler library paths should come after those
13751            # provided the user.  The postdeps already come after the
13752            # user supplied libs so there is no need to process them.
13753            if test -z "$compiler_lib_search_path_CXX"; then
13754              compiler_lib_search_path_CXX="${prev}${p}"
13755            else
13756              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13757            fi
13758            ;;
13759          # The "-l" case would never come before the object being
13760          # linked, so don't bother handling this case.
13761          esac
13762        else
13763          if test -z "$postdeps_CXX"; then
13764            postdeps_CXX="${prev}${p}"
13765          else
13766            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13767          fi
13768        fi
13769        ;;
13770
13771     *.$objext)
13772        # This assumes that the test object file only shows up
13773        # once in the compiler output.
13774        if test "$p" = "conftest.$objext"; then
13775          pre_test_object_deps_done=yes
13776          continue
13777        fi
13778
13779        if test "$pre_test_object_deps_done" = no; then
13780          if test -z "$predep_objects_CXX"; then
13781            predep_objects_CXX="$p"
13782          else
13783            predep_objects_CXX="$predep_objects_CXX $p"
13784          fi
13785        else
13786          if test -z "$postdep_objects_CXX"; then
13787            postdep_objects_CXX="$p"
13788          else
13789            postdep_objects_CXX="$postdep_objects_CXX $p"
13790          fi
13791        fi
13792        ;;
13793
13794     *) ;; # Ignore the rest.
13795
13796     esac
13797   done
13798
13799   # Clean up.
13800   rm -f a.out a.exe
13801 else
13802   echo "libtool.m4: error: problem compiling CXX test program"
13803 fi
13804
13805 $RM -f confest.$objext
13806
13807 # PORTME: override above test on systems where it is broken
13808 case $host_os in
13809 interix[3-9]*)
13810   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13811   # hack all around it, let's just trust "g++" to DTRT.
13812   predep_objects_CXX=
13813   postdep_objects_CXX=
13814   postdeps_CXX=
13815   ;;
13816
13817 linux*)
13818   case `$CC -V 2>&1 | sed 5q` in
13819   *Sun\ C*)
13820     # Sun C++ 5.9
13821
13822     # The more standards-conforming stlport4 library is
13823     # incompatible with the Cstd library. Avoid specifying
13824     # it if it's in CXXFLAGS. Ignore libCrun as
13825     # -library=stlport4 depends on it.
13826     case " $CXX $CXXFLAGS " in
13827     *" -library=stlport4 "*)
13828       solaris_use_stlport4=yes
13829       ;;
13830     esac
13831
13832     if test "$solaris_use_stlport4" != yes; then
13833       postdeps_CXX='-library=Cstd -library=Crun'
13834     fi
13835     ;;
13836   esac
13837   ;;
13838
13839 solaris*)
13840   case $cc_basename in
13841   CC*)
13842     # The more standards-conforming stlport4 library is
13843     # incompatible with the Cstd library. Avoid specifying
13844     # it if it's in CXXFLAGS. Ignore libCrun as
13845     # -library=stlport4 depends on it.
13846     case " $CXX $CXXFLAGS " in
13847     *" -library=stlport4 "*)
13848       solaris_use_stlport4=yes
13849       ;;
13850     esac
13851
13852     # Adding this requires a known-good setup of shared libraries for
13853     # Sun compiler versions before 5.6, else PIC objects from an old
13854     # archive will be linked into the output, leading to subtle bugs.
13855     if test "$solaris_use_stlport4" != yes; then
13856       postdeps_CXX='-library=Cstd -library=Crun'
13857     fi
13858     ;;
13859   esac
13860   ;;
13861 esac
13862
13863
13864 case " $postdeps_CXX " in
13865 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13866 esac
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893     lt_prog_compiler_wl_CXX=
13894 lt_prog_compiler_pic_CXX=
13895 lt_prog_compiler_static_CXX=
13896
13897 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13898 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13899
13900   # C++ specific cases for pic, static, wl, etc.
13901   if test "$GXX" = yes; then
13902     lt_prog_compiler_wl_CXX='-Wl,'
13903     lt_prog_compiler_static_CXX='-static'
13904
13905     case $host_os in
13906     aix*)
13907       # All AIX code is PIC.
13908       if test "$host_cpu" = ia64; then
13909         # AIX 5 now supports IA64 processor
13910         lt_prog_compiler_static_CXX='-Bstatic'
13911       fi
13912       ;;
13913     amigaos*)
13914       if test "$host_cpu" = m68k; then
13915         # FIXME: we need at least 68020 code to build shared libraries, but
13916         # adding the `-m68020' flag to GCC prevents building anything better,
13917         # like `-m68040'.
13918         lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13919       fi
13920       ;;
13921     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13922       # PIC is the default for these OSes.
13923       ;;
13924     mingw* | cygwin* | os2* | pw32*)
13925       # This hack is so that the source file can tell whether it is being
13926       # built for inclusion in a dll (and should export symbols for example).
13927       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13928       # (--disable-auto-import) libraries
13929       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13930       ;;
13931     darwin* | rhapsody*)
13932       # PIC is the default on this platform
13933       # Common symbols not allowed in MH_DYLIB files
13934       lt_prog_compiler_pic_CXX='-fno-common'
13935       ;;
13936     *djgpp*)
13937       # DJGPP does not support shared libraries at all
13938       lt_prog_compiler_pic_CXX=
13939       ;;
13940     interix[3-9]*)
13941       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13942       # Instead, we relocate shared libraries at runtime.
13943       ;;
13944     sysv4*MP*)
13945       if test -d /usr/nec; then
13946         lt_prog_compiler_pic_CXX=-Kconform_pic
13947       fi
13948       ;;
13949     hpux*)
13950       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13951       # not for PA HP-UX.
13952       case $host_cpu in
13953       hppa*64*|ia64*)
13954         ;;
13955       *)
13956         lt_prog_compiler_pic_CXX='-fPIC'
13957         ;;
13958       esac
13959       ;;
13960     *qnx* | *nto*)
13961       # QNX uses GNU C++, but need to define -shared option too, otherwise
13962       # it will coredump.
13963       lt_prog_compiler_pic_CXX='-fPIC -shared'
13964       ;;
13965     *)
13966       lt_prog_compiler_pic_CXX='-fPIC'
13967       ;;
13968     esac
13969   else
13970     case $host_os in
13971       aix[4-9]*)
13972         # All AIX code is PIC.
13973         if test "$host_cpu" = ia64; then
13974           # AIX 5 now supports IA64 processor
13975           lt_prog_compiler_static_CXX='-Bstatic'
13976         else
13977           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13978         fi
13979         ;;
13980       chorus*)
13981         case $cc_basename in
13982         cxch68*)
13983           # Green Hills C++ Compiler
13984           # _LT_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"
13985           ;;
13986         esac
13987         ;;
13988       darwin*)
13989         # PIC is the default on this platform
13990         # Common symbols not allowed in MH_DYLIB files
13991         case $cc_basename in
13992           xlc*)
13993           lt_prog_compiler_pic_CXX='-qnocommon'
13994           lt_prog_compiler_wl_CXX='-Wl,'
13995           ;;
13996         esac
13997         ;;
13998       dgux*)
13999         case $cc_basename in
14000           ec++*)
14001             lt_prog_compiler_pic_CXX='-KPIC'
14002             ;;
14003           ghcx*)
14004             # Green Hills C++ Compiler
14005             lt_prog_compiler_pic_CXX='-pic'
14006             ;;
14007           *)
14008             ;;
14009         esac
14010         ;;
14011       freebsd* | dragonfly*)
14012         # FreeBSD uses GNU C++
14013         ;;
14014       hpux9* | hpux10* | hpux11*)
14015         case $cc_basename in
14016           CC*)
14017             lt_prog_compiler_wl_CXX='-Wl,'
14018             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14019             if test "$host_cpu" != ia64; then
14020               lt_prog_compiler_pic_CXX='+Z'
14021             fi
14022             ;;
14023           aCC*)
14024             lt_prog_compiler_wl_CXX='-Wl,'
14025             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14026             case $host_cpu in
14027             hppa*64*|ia64*)
14028               # +Z the default
14029               ;;
14030             *)
14031               lt_prog_compiler_pic_CXX='+Z'
14032               ;;
14033             esac
14034             ;;
14035           *)
14036             ;;
14037         esac
14038         ;;
14039       interix*)
14040         # This is c89, which is MS Visual C++ (no shared libs)
14041         # Anyone wants to do a port?
14042         ;;
14043       irix5* | irix6* | nonstopux*)
14044         case $cc_basename in
14045           CC*)
14046             lt_prog_compiler_wl_CXX='-Wl,'
14047             lt_prog_compiler_static_CXX='-non_shared'
14048             # CC pic flag -KPIC is the default.
14049             ;;
14050           *)
14051             ;;
14052         esac
14053         ;;
14054       linux* | k*bsd*-gnu)
14055         case $cc_basename in
14056           KCC*)
14057             # KAI C++ Compiler
14058             lt_prog_compiler_wl_CXX='--backend -Wl,'
14059             lt_prog_compiler_pic_CXX='-fPIC'
14060             ;;
14061           icpc* | ecpc* )
14062             # Intel C++
14063             lt_prog_compiler_wl_CXX='-Wl,'
14064             lt_prog_compiler_pic_CXX='-KPIC'
14065             lt_prog_compiler_static_CXX='-static'
14066             ;;
14067           pgCC*)
14068             # Portland Group C++ compiler
14069             lt_prog_compiler_wl_CXX='-Wl,'
14070             lt_prog_compiler_pic_CXX='-fpic'
14071             lt_prog_compiler_static_CXX='-Bstatic'
14072             ;;
14073           cxx*)
14074             # Compaq C++
14075             # Make sure the PIC flag is empty.  It appears that all Alpha
14076             # Linux and Compaq Tru64 Unix objects are PIC.
14077             lt_prog_compiler_pic_CXX=
14078             lt_prog_compiler_static_CXX='-non_shared'
14079             ;;
14080           *)
14081             case `$CC -V 2>&1 | sed 5q` in
14082             *Sun\ C*)
14083               # Sun C++ 5.9
14084               lt_prog_compiler_pic_CXX='-KPIC'
14085               lt_prog_compiler_static_CXX='-Bstatic'
14086               lt_prog_compiler_wl_CXX='-Qoption ld '
14087               ;;
14088             esac
14089             ;;
14090         esac
14091         ;;
14092       lynxos*)
14093         ;;
14094       m88k*)
14095         ;;
14096       mvs*)
14097         case $cc_basename in
14098           cxx*)
14099             lt_prog_compiler_pic_CXX='-W c,exportall'
14100             ;;
14101           *)
14102             ;;
14103         esac
14104         ;;
14105       netbsd*)
14106         ;;
14107       *qnx* | *nto*)
14108         # QNX uses GNU C++, but need to define -shared option too, otherwise
14109         # it will coredump.
14110         lt_prog_compiler_pic_CXX='-fPIC -shared'
14111         ;;
14112       osf3* | osf4* | osf5*)
14113         case $cc_basename in
14114           KCC*)
14115             lt_prog_compiler_wl_CXX='--backend -Wl,'
14116             ;;
14117           RCC*)
14118             # Rational C++ 2.4.1
14119             lt_prog_compiler_pic_CXX='-pic'
14120             ;;
14121           cxx*)
14122             # Digital/Compaq C++
14123             lt_prog_compiler_wl_CXX='-Wl,'
14124             # Make sure the PIC flag is empty.  It appears that all Alpha
14125             # Linux and Compaq Tru64 Unix objects are PIC.
14126             lt_prog_compiler_pic_CXX=
14127             lt_prog_compiler_static_CXX='-non_shared'
14128             ;;
14129           *)
14130             ;;
14131         esac
14132         ;;
14133       psos*)
14134         ;;
14135       solaris*)
14136         case $cc_basename in
14137           CC*)
14138             # Sun C++ 4.2, 5.x and Centerline C++
14139             lt_prog_compiler_pic_CXX='-KPIC'
14140             lt_prog_compiler_static_CXX='-Bstatic'
14141             lt_prog_compiler_wl_CXX='-Qoption ld '
14142             ;;
14143           gcx*)
14144             # Green Hills C++ Compiler
14145             lt_prog_compiler_pic_CXX='-PIC'
14146             ;;
14147           *)
14148             ;;
14149         esac
14150         ;;
14151       sunos4*)
14152         case $cc_basename in
14153           CC*)
14154             # Sun C++ 4.x
14155             lt_prog_compiler_pic_CXX='-pic'
14156             lt_prog_compiler_static_CXX='-Bstatic'
14157             ;;
14158           lcc*)
14159             # Lucid
14160             lt_prog_compiler_pic_CXX='-pic'
14161             ;;
14162           *)
14163             ;;
14164         esac
14165         ;;
14166       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14167         case $cc_basename in
14168           CC*)
14169             lt_prog_compiler_wl_CXX='-Wl,'
14170             lt_prog_compiler_pic_CXX='-KPIC'
14171             lt_prog_compiler_static_CXX='-Bstatic'
14172             ;;
14173         esac
14174         ;;
14175       tandem*)
14176         case $cc_basename in
14177           NCC*)
14178             # NonStop-UX NCC 3.20
14179             lt_prog_compiler_pic_CXX='-KPIC'
14180             ;;
14181           *)
14182             ;;
14183         esac
14184         ;;
14185       vxworks*)
14186         ;;
14187       *)
14188         lt_prog_compiler_can_build_shared_CXX=no
14189         ;;
14190     esac
14191   fi
14192
14193 case $host_os in
14194   # For platforms which do not support PIC, -DPIC is meaningless:
14195   *djgpp*)
14196     lt_prog_compiler_pic_CXX=
14197     ;;
14198   *)
14199     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14200     ;;
14201 esac
14202 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14203 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
14204
14205
14206
14207 #
14208 # Check to make sure the PIC flag actually works.
14209 #
14210 if test -n "$lt_prog_compiler_pic_CXX"; then
14211   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14212 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14213 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14214   echo $ECHO_N "(cached) $ECHO_C" >&6
14215 else
14216   lt_prog_compiler_pic_works_CXX=no
14217    ac_outfile=conftest.$ac_objext
14218    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14219    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14220    # Insert the option either (1) after the last *FLAGS variable, or
14221    # (2) before a word containing "conftest.", or (3) at the end.
14222    # Note that $ac_compile itself does not contain backslashes and begins
14223    # with a dollar sign (not a hyphen), so the echo should work correctly.
14224    # The option is referenced via a variable to avoid confusing sed.
14225    lt_compile=`echo "$ac_compile" | $SED \
14226    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14227    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14228    -e 's:$: $lt_compiler_flag:'`
14229    (eval echo "\"\$as_me:14229: $lt_compile\"" >&5)
14230    (eval "$lt_compile" 2>conftest.err)
14231    ac_status=$?
14232    cat conftest.err >&5
14233    echo "$as_me:14233: \$? = $ac_status" >&5
14234    if (exit $ac_status) && test -s "$ac_outfile"; then
14235      # The compiler can only warn and ignore the option if not recognized
14236      # So say no if there are warnings other than the usual output.
14237      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14238      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14239      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14240        lt_prog_compiler_pic_works_CXX=yes
14241      fi
14242    fi
14243    $RM conftest*
14244
14245 fi
14246 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14247 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
14248
14249 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14250     case $lt_prog_compiler_pic_CXX in
14251      "" | " "*) ;;
14252      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14253      esac
14254 else
14255     lt_prog_compiler_pic_CXX=
14256      lt_prog_compiler_can_build_shared_CXX=no
14257 fi
14258
14259 fi
14260
14261
14262
14263 #
14264 # Check to make sure the static flag actually works.
14265 #
14266 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14267 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14268 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14269 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14270   echo $ECHO_N "(cached) $ECHO_C" >&6
14271 else
14272   lt_prog_compiler_static_works_CXX=no
14273    save_LDFLAGS="$LDFLAGS"
14274    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14275    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14276    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14277      # The linker can only warn and ignore the option if not recognized
14278      # So say no if there are warnings
14279      if test -s conftest.err; then
14280        # Append any errors to the config.log.
14281        cat conftest.err 1>&5
14282        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14283        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14284        if diff conftest.exp conftest.er2 >/dev/null; then
14285          lt_prog_compiler_static_works_CXX=yes
14286        fi
14287      else
14288        lt_prog_compiler_static_works_CXX=yes
14289      fi
14290    fi
14291    $RM conftest*
14292    LDFLAGS="$save_LDFLAGS"
14293
14294 fi
14295 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14296 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
14297
14298 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14299     :
14300 else
14301     lt_prog_compiler_static_CXX=
14302 fi
14303
14304
14305
14306
14307     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14308 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14309 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14310   echo $ECHO_N "(cached) $ECHO_C" >&6
14311 else
14312   lt_cv_prog_compiler_c_o_CXX=no
14313    $RM -r conftest 2>/dev/null
14314    mkdir conftest
14315    cd conftest
14316    mkdir out
14317    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14318
14319    lt_compiler_flag="-o out/conftest2.$ac_objext"
14320    # Insert the option either (1) after the last *FLAGS variable, or
14321    # (2) before a word containing "conftest.", or (3) at the end.
14322    # Note that $ac_compile itself does not contain backslashes and begins
14323    # with a dollar sign (not a hyphen), so the echo should work correctly.
14324    lt_compile=`echo "$ac_compile" | $SED \
14325    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14326    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14327    -e 's:$: $lt_compiler_flag:'`
14328    (eval echo "\"\$as_me:14328: $lt_compile\"" >&5)
14329    (eval "$lt_compile" 2>out/conftest.err)
14330    ac_status=$?
14331    cat out/conftest.err >&5
14332    echo "$as_me:14332: \$? = $ac_status" >&5
14333    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14334    then
14335      # The compiler can only warn and ignore the option if not recognized
14336      # So say no if there are warnings
14337      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14338      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14339      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14340        lt_cv_prog_compiler_c_o_CXX=yes
14341      fi
14342    fi
14343    chmod u+w . 2>&5
14344    $RM conftest*
14345    # SGI C++ compiler will create directory out/ii_files/ for
14346    # template instantiation
14347    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14348    $RM out/* && rmdir out
14349    cd ..
14350    $RM -r conftest
14351    $RM conftest*
14352
14353 fi
14354 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14355 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14356
14357
14358
14359     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14360 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14361 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14362   echo $ECHO_N "(cached) $ECHO_C" >&6
14363 else
14364   lt_cv_prog_compiler_c_o_CXX=no
14365    $RM -r conftest 2>/dev/null
14366    mkdir conftest
14367    cd conftest
14368    mkdir out
14369    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14370
14371    lt_compiler_flag="-o out/conftest2.$ac_objext"
14372    # Insert the option either (1) after the last *FLAGS variable, or
14373    # (2) before a word containing "conftest.", or (3) at the end.
14374    # Note that $ac_compile itself does not contain backslashes and begins
14375    # with a dollar sign (not a hyphen), so the echo should work correctly.
14376    lt_compile=`echo "$ac_compile" | $SED \
14377    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14378    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14379    -e 's:$: $lt_compiler_flag:'`
14380    (eval echo "\"\$as_me:14380: $lt_compile\"" >&5)
14381    (eval "$lt_compile" 2>out/conftest.err)
14382    ac_status=$?
14383    cat out/conftest.err >&5
14384    echo "$as_me:14384: \$? = $ac_status" >&5
14385    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14386    then
14387      # The compiler can only warn and ignore the option if not recognized
14388      # So say no if there are warnings
14389      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14390      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14391      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14392        lt_cv_prog_compiler_c_o_CXX=yes
14393      fi
14394    fi
14395    chmod u+w . 2>&5
14396    $RM conftest*
14397    # SGI C++ compiler will create directory out/ii_files/ for
14398    # template instantiation
14399    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14400    $RM out/* && rmdir out
14401    cd ..
14402    $RM -r conftest
14403    $RM conftest*
14404
14405 fi
14406 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14407 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14408
14409
14410
14411
14412 hard_links="nottested"
14413 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14414   # do not overwrite the value of need_locks provided by the user
14415   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14416 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14417   hard_links=yes
14418   $RM conftest*
14419   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14420   touch conftest.a
14421   ln conftest.a conftest.b 2>&5 || hard_links=no
14422   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14423   echo "$as_me:$LINENO: result: $hard_links" >&5
14424 echo "${ECHO_T}$hard_links" >&6
14425   if test "$hard_links" = no; then
14426     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14427 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14428     need_locks=warn
14429   fi
14430 else
14431   need_locks=no
14432 fi
14433
14434
14435
14436     echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14437 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14438
14439   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14440   case $host_os in
14441   aix[4-9]*)
14442     # If we're using GNU nm, then we don't want the "-C" option.
14443     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14444     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14445       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'
14446     else
14447       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'
14448     fi
14449     ;;
14450   pw32*)
14451     export_symbols_cmds_CXX="$ltdll_cmds"
14452   ;;
14453   cygwin* | mingw*)
14454     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14455   ;;
14456   *)
14457     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14458   ;;
14459   esac
14460
14461 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14462 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14463 test "$ld_shlibs_CXX" = no && can_build_shared=no
14464
14465 with_gnu_ld_CXX=$with_gnu_ld
14466
14467
14468
14469
14470
14471
14472 #
14473 # Do we need to explicitly link libc?
14474 #
14475 case "x$archive_cmds_need_lc_CXX" in
14476 x|xyes)
14477   # Assume -lc should be added
14478   archive_cmds_need_lc_CXX=yes
14479
14480   if test "$enable_shared" = yes && test "$GCC" = yes; then
14481     case $archive_cmds_CXX in
14482     *'~'*)
14483       # FIXME: we may have to deal with multi-command sequences.
14484       ;;
14485     '$CC '*)
14486       # Test whether the compiler implicitly links with -lc since on some
14487       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14488       # to ld, don't add -lc before -lgcc.
14489       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14490 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14491       $RM conftest*
14492       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14493
14494       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14495   (eval $ac_compile) 2>&5
14496   ac_status=$?
14497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498   (exit $ac_status); } 2>conftest.err; then
14499         soname=conftest
14500         lib=conftest
14501         libobjs=conftest.$ac_objext
14502         deplibs=
14503         wl=$lt_prog_compiler_wl_CXX
14504         pic_flag=$lt_prog_compiler_pic_CXX
14505         compiler_flags=-v
14506         linker_flags=-v
14507         verstring=
14508         output_objdir=.
14509         libname=conftest
14510         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14511         allow_undefined_flag_CXX=
14512         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14513   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14514   ac_status=$?
14515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516   (exit $ac_status); }
14517         then
14518           archive_cmds_need_lc_CXX=no
14519         else
14520           archive_cmds_need_lc_CXX=yes
14521         fi
14522         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14523       else
14524         cat conftest.err 1>&5
14525       fi
14526       $RM conftest*
14527       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14528 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
14529       ;;
14530     esac
14531   fi
14532   ;;
14533 esac
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598     echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14599 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14600 withGCC=$GXX
14601 library_names_spec=
14602 libname_spec='lib$name'
14603 soname_spec=
14604 shrext_cmds=".so"
14605 postinstall_cmds=
14606 postuninstall_cmds=
14607 finish_cmds=
14608 finish_eval=
14609 shlibpath_var=
14610 shlibpath_overrides_runpath=unknown
14611 version_type=none
14612 dynamic_linker="$host_os ld.so"
14613 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14614 need_lib_prefix=unknown
14615 hardcode_into_libs=no
14616
14617 # when you set need_version to no, make sure it does not cause -set_version
14618 # flags to be left without arguments
14619 need_version=unknown
14620
14621 case $host_os in
14622 aix3*)
14623   version_type=linux
14624   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14625   shlibpath_var=LIBPATH
14626
14627   # AIX 3 has no versioning support, so we append a major version to the name.
14628   soname_spec='${libname}${release}${shared_ext}$major'
14629   ;;
14630
14631 aix[4-9]*)
14632   version_type=linux
14633   need_lib_prefix=no
14634   need_version=no
14635   hardcode_into_libs=yes
14636   if test "$host_cpu" = ia64; then
14637     # AIX 5 supports IA64
14638     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14639     shlibpath_var=LD_LIBRARY_PATH
14640   else
14641     # With GCC up to 2.95.x, collect2 would create an import file
14642     # for dependence libraries.  The import file would start with
14643     # the line `#! .'.  This would cause the generated library to
14644     # depend on `.', always an invalid library.  This was fixed in
14645     # development snapshots of GCC prior to 3.0.
14646     case $host_os in
14647       aix4 | aix4.[01] | aix4.[01].*)
14648       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14649            echo ' yes '
14650            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14651         :
14652       else
14653         can_build_shared=no
14654       fi
14655       ;;
14656     esac
14657     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14658     # soname into executable. Probably we can add versioning support to
14659     # collect2, so additional links can be useful in future.
14660     if test "$aix_use_runtimelinking" = yes; then
14661       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14662       # instead of lib<name>.a to let people know that these are not
14663       # typical AIX shared libraries.
14664       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14665     else
14666       # We preserve .a as extension for shared libraries through AIX4.2
14667       # and later when we are not doing run time linking.
14668       library_names_spec='${libname}${release}.a $libname.a'
14669       soname_spec='${libname}${release}${shared_ext}$major'
14670     fi
14671     shlibpath_var=LIBPATH
14672   fi
14673   ;;
14674
14675 amigaos*)
14676   if test "$host_cpu" = m68k; then
14677     library_names_spec='$libname.ixlibrary $libname.a'
14678     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14679     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'
14680   else
14681     dynamic_linker=no
14682   fi
14683   ;;
14684
14685 beos*)
14686   library_names_spec='${libname}${shared_ext}'
14687   dynamic_linker="$host_os ld.so"
14688   shlibpath_var=LIBRARY_PATH
14689   ;;
14690
14691 bsdi[45]*)
14692   version_type=linux
14693   need_version=no
14694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14695   soname_spec='${libname}${release}${shared_ext}$major'
14696   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14697   shlibpath_var=LD_LIBRARY_PATH
14698   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14699   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14700   # the default ld.so.conf also contains /usr/contrib/lib and
14701   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14702   # libtool to hard-code these into programs
14703   ;;
14704
14705 cygwin* | mingw* | pw32*)
14706   version_type=windows
14707   shrext_cmds=".dll"
14708   need_version=no
14709   need_lib_prefix=no
14710
14711   case $withGCC,$host_os in
14712   yes,cygwin* | yes,mingw* | yes,pw32*)
14713     library_names_spec='$libname.dll.a'
14714     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14715     postinstall_cmds='base_file=`basename \${file}`~
14716       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14717       dldir=$destdir/`dirname \$dlpath`~
14718       test -d \$dldir || mkdir -p \$dldir~
14719       $install_prog $dir/$dlname \$dldir/$dlname~
14720       chmod a+x \$dldir/$dlname~
14721       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14722         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14723       fi'
14724     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14725       dlpath=$dir/\$dldll~
14726        $RM \$dlpath'
14727     shlibpath_overrides_runpath=yes
14728
14729     case $host_os in
14730     cygwin*)
14731       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14732       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14733       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14734       ;;
14735     mingw*)
14736       # MinGW DLLs use traditional 'lib' prefix
14737       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14738       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14739       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14740         # It is most probably a Windows format PATH printed by
14741         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14742         # path with ; separators, and with drive letters. We can handle the
14743         # drive letters (cygwin fileutils understands them), so leave them,
14744         # especially as we might pass files found there to a mingw objdump,
14745         # which wouldn't understand a cygwinified path. Ahh.
14746         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14747       else
14748         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14749       fi
14750       ;;
14751     pw32*)
14752       # pw32 DLLs use 'pw' prefix rather than 'lib'
14753       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14754       ;;
14755     esac
14756     ;;
14757
14758   *)
14759     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14760     ;;
14761   esac
14762   dynamic_linker='Win32 ld.exe'
14763   # FIXME: first we should search . and the directory the executable is in
14764   shlibpath_var=PATH
14765   ;;
14766
14767 darwin* | rhapsody*)
14768   dynamic_linker="$host_os dyld"
14769   version_type=darwin
14770   need_lib_prefix=no
14771   need_version=no
14772   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14773   soname_spec='${libname}${release}${major}$shared_ext'
14774   shlibpath_overrides_runpath=yes
14775   shlibpath_var=DYLD_LIBRARY_PATH
14776   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14777
14778   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14779   ;;
14780
14781 dgux*)
14782   version_type=linux
14783   need_lib_prefix=no
14784   need_version=no
14785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14786   soname_spec='${libname}${release}${shared_ext}$major'
14787   shlibpath_var=LD_LIBRARY_PATH
14788   ;;
14789
14790 freebsd1*)
14791   dynamic_linker=no
14792   ;;
14793
14794 freebsd* | dragonfly*)
14795   # DragonFly does not have aout.  When/if they implement a new
14796   # versioning mechanism, adjust this.
14797   if test -x /usr/bin/objformat; then
14798     objformat=`/usr/bin/objformat`
14799   else
14800     case $host_os in
14801     freebsd[123]*) objformat=aout ;;
14802     *) objformat=elf ;;
14803     esac
14804   fi
14805   version_type=freebsd-$objformat
14806   case $version_type in
14807     freebsd-elf*)
14808       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14809       need_version=no
14810       need_lib_prefix=no
14811       ;;
14812     freebsd-*)
14813       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14814       need_version=yes
14815       ;;
14816   esac
14817   shlibpath_var=LD_LIBRARY_PATH
14818   case $host_os in
14819   freebsd2*)
14820     shlibpath_overrides_runpath=yes
14821     ;;
14822   freebsd3.[01]* | freebsdelf3.[01]*)
14823     shlibpath_overrides_runpath=yes
14824     hardcode_into_libs=yes
14825     ;;
14826   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14827   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14828     shlibpath_overrides_runpath=no
14829     hardcode_into_libs=yes
14830     ;;
14831   *) # from 4.6 on, and DragonFly
14832     shlibpath_overrides_runpath=yes
14833     hardcode_into_libs=yes
14834     ;;
14835   esac
14836   ;;
14837
14838 gnu*)
14839   version_type=linux
14840   need_lib_prefix=no
14841   need_version=no
14842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14843   soname_spec='${libname}${release}${shared_ext}$major'
14844   shlibpath_var=LD_LIBRARY_PATH
14845   hardcode_into_libs=yes
14846   ;;
14847
14848 hpux9* | hpux10* | hpux11*)
14849   # Give a soname corresponding to the major version so that dld.sl refuses to
14850   # link against other versions.
14851   version_type=sunos
14852   need_lib_prefix=no
14853   need_version=no
14854   case $host_cpu in
14855   ia64*)
14856     shrext_cmds='.so'
14857     hardcode_into_libs=yes
14858     dynamic_linker="$host_os dld.so"
14859     shlibpath_var=LD_LIBRARY_PATH
14860     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14861     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14862     soname_spec='${libname}${release}${shared_ext}$major'
14863     if test "X$HPUX_IA64_MODE" = X32; then
14864       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14865     else
14866       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14867     fi
14868     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14869     ;;
14870   hppa*64*)
14871     shrext_cmds='.sl'
14872     hardcode_into_libs=yes
14873     dynamic_linker="$host_os dld.sl"
14874     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14875     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14876     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14877     soname_spec='${libname}${release}${shared_ext}$major'
14878     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14879     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14880     ;;
14881   *)
14882     shrext_cmds='.sl'
14883     dynamic_linker="$host_os dld.sl"
14884     shlibpath_var=SHLIB_PATH
14885     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14886     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14887     soname_spec='${libname}${release}${shared_ext}$major'
14888     ;;
14889   esac
14890   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14891   postinstall_cmds='chmod 555 $lib'
14892   ;;
14893
14894 interix[3-9]*)
14895   version_type=linux
14896   need_lib_prefix=no
14897   need_version=no
14898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14899   soname_spec='${libname}${release}${shared_ext}$major'
14900   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14901   shlibpath_var=LD_LIBRARY_PATH
14902   shlibpath_overrides_runpath=no
14903   hardcode_into_libs=yes
14904   ;;
14905
14906 irix5* | irix6* | nonstopux*)
14907   case $host_os in
14908     nonstopux*) version_type=nonstopux ;;
14909     *)
14910         if test "$lt_cv_prog_gnu_ld" = yes; then
14911                 version_type=linux
14912         else
14913                 version_type=irix
14914         fi ;;
14915   esac
14916   need_lib_prefix=no
14917   need_version=no
14918   soname_spec='${libname}${release}${shared_ext}$major'
14919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14920   case $host_os in
14921   irix5* | nonstopux*)
14922     libsuff= shlibsuff=
14923     ;;
14924   *)
14925     case $LD in # libtool.m4 will add one of these switches to LD
14926     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14927       libsuff= shlibsuff= libmagic=32-bit;;
14928     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14929       libsuff=32 shlibsuff=N32 libmagic=N32;;
14930     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14931       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14932     *) libsuff= shlibsuff= libmagic=never-match;;
14933     esac
14934     ;;
14935   esac
14936   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14937   shlibpath_overrides_runpath=no
14938   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14939   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14940   hardcode_into_libs=yes
14941   ;;
14942
14943 # No shared lib support for Linux oldld, aout, or coff.
14944 linux*oldld* | linux*aout* | linux*coff*)
14945   dynamic_linker=no
14946   ;;
14947
14948 # This must be Linux ELF.
14949 linux* | k*bsd*-gnu)
14950   version_type=linux
14951   need_lib_prefix=no
14952   need_version=no
14953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14954   soname_spec='${libname}${release}${shared_ext}$major'
14955   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14956   shlibpath_var=LD_LIBRARY_PATH
14957   shlibpath_overrides_runpath=no
14958   # Some binutils ld are patched to set DT_RUNPATH
14959   save_LDFLAGS=$LDFLAGS
14960   save_libdir=$libdir
14961   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14962        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14963   if test x$gcc_no_link = xyes; then
14964   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14965 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14966    { (exit 1); exit 1; }; }
14967 fi
14968 cat >conftest.$ac_ext <<_ACEOF
14969 /* confdefs.h.  */
14970 _ACEOF
14971 cat confdefs.h >>conftest.$ac_ext
14972 cat >>conftest.$ac_ext <<_ACEOF
14973 /* end confdefs.h.  */
14974
14975 int
14976 main ()
14977 {
14978
14979   ;
14980   return 0;
14981 }
14982 _ACEOF
14983 rm -f conftest.$ac_objext conftest$ac_exeext
14984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14985   (eval $ac_link) 2>conftest.er1
14986   ac_status=$?
14987   grep -v '^ *+' conftest.er1 >conftest.err
14988   rm -f conftest.er1
14989   cat conftest.err >&5
14990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991   (exit $ac_status); } &&
14992          { ac_try='test -z "$ac_cxx_werror_flag"
14993                          || test ! -s conftest.err'
14994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14995   (eval $ac_try) 2>&5
14996   ac_status=$?
14997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998   (exit $ac_status); }; } &&
14999          { ac_try='test -s conftest$ac_exeext'
15000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15001   (eval $ac_try) 2>&5
15002   ac_status=$?
15003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004   (exit $ac_status); }; }; then
15005   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
15006   shlibpath_overrides_runpath=yes
15007 fi
15008
15009 else
15010   echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15012
15013 fi
15014 rm -f conftest.err conftest.$ac_objext \
15015       conftest$ac_exeext conftest.$ac_ext
15016   LDFLAGS=$save_LDFLAGS
15017   libdir=$save_libdir
15018
15019   # This implies no fast_install, which is unacceptable.
15020   # Some rework will be needed to allow for fast_install
15021   # before this can be enabled.
15022   hardcode_into_libs=yes
15023
15024   # Append ld.so.conf contents to the search path
15025   if test -f /etc/ld.so.conf; then
15026     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15027     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15028   fi
15029
15030   # We used to test for /lib/ld.so.1 and disable shared libraries on
15031   # powerpc, because MkLinux only supported shared libraries with the
15032   # GNU dynamic linker.  Since this was broken with cross compilers,
15033   # most powerpc-linux boxes support dynamic linking these days and
15034   # people can always --disable-shared, the test was removed, and we
15035   # assume the GNU/Linux dynamic linker is in use.
15036   dynamic_linker='GNU/Linux ld.so'
15037   ;;
15038
15039 netbsd*)
15040   version_type=sunos
15041   need_lib_prefix=no
15042   need_version=no
15043   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15044     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15045     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15046     dynamic_linker='NetBSD (a.out) ld.so'
15047   else
15048     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15049     soname_spec='${libname}${release}${shared_ext}$major'
15050     dynamic_linker='NetBSD ld.elf_so'
15051   fi
15052   shlibpath_var=LD_LIBRARY_PATH
15053   shlibpath_overrides_runpath=yes
15054   hardcode_into_libs=yes
15055   ;;
15056
15057 newsos6)
15058   version_type=linux
15059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15060   shlibpath_var=LD_LIBRARY_PATH
15061   shlibpath_overrides_runpath=yes
15062   ;;
15063
15064 *nto* | *qnx*)
15065   version_type=qnx
15066   need_lib_prefix=no
15067   need_version=no
15068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15069   soname_spec='${libname}${release}${shared_ext}$major'
15070   shlibpath_var=LD_LIBRARY_PATH
15071   shlibpath_overrides_runpath=no
15072   hardcode_into_libs=yes
15073   dynamic_linker='ldqnx.so'
15074   ;;
15075
15076 openbsd*)
15077   version_type=sunos
15078   sys_lib_dlsearch_path_spec="/usr/lib"
15079   need_lib_prefix=no
15080   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15081   case $host_os in
15082     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15083     *)                          need_version=no  ;;
15084   esac
15085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15086   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15087   shlibpath_var=LD_LIBRARY_PATH
15088   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15089     case $host_os in
15090       openbsd2.[89] | openbsd2.[89].*)
15091         shlibpath_overrides_runpath=no
15092         ;;
15093       *)
15094         shlibpath_overrides_runpath=yes
15095         ;;
15096       esac
15097   else
15098     shlibpath_overrides_runpath=yes
15099   fi
15100   ;;
15101
15102 os2*)
15103   libname_spec='$name'
15104   shrext_cmds=".dll"
15105   need_lib_prefix=no
15106   library_names_spec='$libname${shared_ext} $libname.a'
15107   dynamic_linker='OS/2 ld.exe'
15108   shlibpath_var=LIBPATH
15109   ;;
15110
15111 osf3* | osf4* | osf5*)
15112   version_type=osf
15113   need_lib_prefix=no
15114   need_version=no
15115   soname_spec='${libname}${release}${shared_ext}$major'
15116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15117   shlibpath_var=LD_LIBRARY_PATH
15118   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15119   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15120   ;;
15121
15122 rdos*)
15123   dynamic_linker=no
15124   ;;
15125
15126 solaris*)
15127   version_type=linux
15128   need_lib_prefix=no
15129   need_version=no
15130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15131   soname_spec='${libname}${release}${shared_ext}$major'
15132   shlibpath_var=LD_LIBRARY_PATH
15133   shlibpath_overrides_runpath=yes
15134   hardcode_into_libs=yes
15135   # ldd complains unless libraries are executable
15136   postinstall_cmds='chmod +x $lib'
15137   ;;
15138
15139 sunos4*)
15140   version_type=sunos
15141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15142   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15143   shlibpath_var=LD_LIBRARY_PATH
15144   shlibpath_overrides_runpath=yes
15145   if test "$with_gnu_ld" = yes; then
15146     need_lib_prefix=no
15147   fi
15148   need_version=yes
15149   ;;
15150
15151 sysv4 | sysv4.3*)
15152   version_type=linux
15153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15154   soname_spec='${libname}${release}${shared_ext}$major'
15155   shlibpath_var=LD_LIBRARY_PATH
15156   case $host_vendor in
15157     sni)
15158       shlibpath_overrides_runpath=no
15159       need_lib_prefix=no
15160       runpath_var=LD_RUN_PATH
15161       ;;
15162     siemens)
15163       need_lib_prefix=no
15164       ;;
15165     motorola)
15166       need_lib_prefix=no
15167       need_version=no
15168       shlibpath_overrides_runpath=no
15169       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15170       ;;
15171   esac
15172   ;;
15173
15174 sysv4*MP*)
15175   if test -d /usr/nec ;then
15176     version_type=linux
15177     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15178     soname_spec='$libname${shared_ext}.$major'
15179     shlibpath_var=LD_LIBRARY_PATH
15180   fi
15181   ;;
15182
15183 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15184   version_type=freebsd-elf
15185   need_lib_prefix=no
15186   need_version=no
15187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15188   soname_spec='${libname}${release}${shared_ext}$major'
15189   shlibpath_var=LD_LIBRARY_PATH
15190   shlibpath_overrides_runpath=yes
15191   hardcode_into_libs=yes
15192   if test "$with_gnu_ld" = yes; then
15193     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15194   else
15195     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15196     case $host_os in
15197       sco3.2v5*)
15198         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15199         ;;
15200     esac
15201   fi
15202   sys_lib_dlsearch_path_spec='/usr/lib'
15203   ;;
15204
15205 tpf*)
15206   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15207   version_type=linux
15208   need_lib_prefix=no
15209   need_version=no
15210   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15211   shlibpath_var=LD_LIBRARY_PATH
15212   shlibpath_overrides_runpath=no
15213   hardcode_into_libs=yes
15214   ;;
15215
15216 uts4*)
15217   version_type=linux
15218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15219   soname_spec='${libname}${release}${shared_ext}$major'
15220   shlibpath_var=LD_LIBRARY_PATH
15221   ;;
15222
15223 *)
15224   dynamic_linker=no
15225   ;;
15226 esac
15227 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15228 echo "${ECHO_T}$dynamic_linker" >&6
15229 test "$dynamic_linker" = no && can_build_shared=no
15230
15231 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15232 if test "$GCC" = yes; then
15233   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15234 fi
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271     echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15272 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15273 hardcode_action_CXX=
15274 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15275    test -n "$runpath_var_CXX" ||
15276    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15277
15278   # We can hardcode non-existent directories.
15279   if test "$hardcode_direct_CXX" != no &&
15280      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15281      # have to relink, otherwise we might link with an installed library
15282      # when we should be linking with a yet-to-be-installed one
15283      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15284      test "$hardcode_minus_L_CXX" != no; then
15285     # Linking always hardcodes the temporary library directory.
15286     hardcode_action_CXX=relink
15287   else
15288     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15289     hardcode_action_CXX=immediate
15290   fi
15291 else
15292   # We cannot hardcode anything, or else we can only hardcode existing
15293   # directories.
15294   hardcode_action_CXX=unsupported
15295 fi
15296 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15297 echo "${ECHO_T}$hardcode_action_CXX" >&6
15298
15299 if test "$hardcode_action_CXX" = relink ||
15300    test "$inherit_rpath_CXX" = yes; then
15301   # Fast installation is not supported
15302   enable_fast_install=no
15303 elif test "$shlibpath_overrides_runpath" = yes ||
15304      test "$enable_shared" = no; then
15305   # Fast installation is not necessary
15306   enable_fast_install=needless
15307 fi
15308
15309
15310
15311
15312
15313
15314
15315   fi # test -n "$compiler"
15316
15317   CC=$lt_save_CC
15318   LDCXX=$LD
15319   LD=$lt_save_LD
15320   GCC=$lt_save_GCC
15321   with_gnu_ld=$lt_save_with_gnu_ld
15322   lt_cv_path_LDCXX=$lt_cv_path_LD
15323   lt_cv_path_LD=$lt_save_path_LD
15324   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15325   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15326 fi # test "$_lt_caught_CXX_error" != yes
15327
15328 ac_ext=c
15329 ac_cpp='$CPP $CPPFLAGS'
15330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346                   ac_config_commands="$ac_config_commands libtool"
15347
15348
15349
15350
15351 # Only expand once:
15352
15353
15354
15355 for ac_prog in gcj
15356 do
15357   # Extract the first word of "$ac_prog", so it can be a program name with args.
15358 set dummy $ac_prog; ac_word=$2
15359 echo "$as_me:$LINENO: checking for $ac_word" >&5
15360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15361 if test "${ac_cv_prog_GCJ+set}" = set; then
15362   echo $ECHO_N "(cached) $ECHO_C" >&6
15363 else
15364   if test -n "$GCJ"; then
15365   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
15366 else
15367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15368 for as_dir in $PATH
15369 do
15370   IFS=$as_save_IFS
15371   test -z "$as_dir" && as_dir=.
15372   for ac_exec_ext in '' $ac_executable_extensions; do
15373   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15374     ac_cv_prog_GCJ="$ac_prog"
15375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15376     break 2
15377   fi
15378 done
15379 done
15380
15381 fi
15382 fi
15383 GCJ=$ac_cv_prog_GCJ
15384 if test -n "$GCJ"; then
15385   echo "$as_me:$LINENO: result: $GCJ" >&5
15386 echo "${ECHO_T}$GCJ" >&6
15387 else
15388   echo "$as_me:$LINENO: result: no" >&5
15389 echo "${ECHO_T}no" >&6
15390 fi
15391
15392   test -n "$GCJ" && break
15393 done
15394 test -n "$GCJ" || GCJ="gcj"
15395
15396 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
15397 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
15398    { (exit 1); exit 1; }; }
15399 if test "x${GCJFLAGS-unset}" = xunset; then
15400    GCJFLAGS="-g -O2"
15401 fi
15402
15403
15404 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
15405
15406 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15407 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15408 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
15409   echo $ECHO_N "(cached) $ECHO_C" >&6
15410 else
15411   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15412   # We make a subdir and do the tests there.  Otherwise we can end up
15413   # making bogus files that we don't know about and never remove.  For
15414   # instance it was reported that on HP-UX the gcc test will end up
15415   # making a dummy file named `D' -- because `-MD' means `put the output
15416   # in D'.
15417   mkdir conftest.dir
15418   # Copy depcomp to subdir because otherwise we won't find it if we're
15419   # using a relative directory.
15420   cp "$am_depcomp" conftest.dir
15421   cd conftest.dir
15422   # We will build objects and dependencies in a subdirectory because
15423   # it helps to detect inapplicable dependency modes.  For instance
15424   # both Tru64's cc and ICC support -MD to output dependencies as a
15425   # side effect of compilation, but ICC will put the dependencies in
15426   # the current directory while Tru64 will put them in the object
15427   # directory.
15428   mkdir sub
15429
15430   am_cv_GCJ_dependencies_compiler_type=none
15431   if test "$am_compiler_list" = ""; then
15432      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15433   fi
15434   for depmode in $am_compiler_list; do
15435     # Setup a source with many dependencies, because some compilers
15436     # like to wrap large dependency lists on column 80 (with \), and
15437     # we should not choose a depcomp mode which is confused by this.
15438     #
15439     # We need to recreate these files for each test, as the compiler may
15440     # overwrite some of them when testing with obscure command lines.
15441     # This happens at least with the AIX C compiler.
15442     : > sub/conftest.c
15443     for i in 1 2 3 4 5 6; do
15444       echo '#include "conftst'$i'.h"' >> sub/conftest.c
15445       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15446       # Solaris 8's {/usr,}/bin/sh.
15447       touch sub/conftst$i.h
15448     done
15449     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15450
15451     case $depmode in
15452     nosideeffect)
15453       # after this tag, mechanisms are not by side-effect, so they'll
15454       # only be used when explicitly requested
15455       if test "x$enable_dependency_tracking" = xyes; then
15456         continue
15457       else
15458         break
15459       fi
15460       ;;
15461     none) break ;;
15462     esac
15463     # We check with `-c' and `-o' for the sake of the "dashmstdout"
15464     # mode.  It turns out that the SunPro C++ compiler does not properly
15465     # handle `-M -o', and we need to detect this.
15466     if depmode=$depmode \
15467        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15468        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15469        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15470          >/dev/null 2>conftest.err &&
15471        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15472        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15473        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15474       # icc doesn't choke on unknown options, it will just issue warnings
15475       # or remarks (even with -Werror).  So we grep stderr for any message
15476       # that says an option was ignored or not supported.
15477       # When given -MP, icc 7.0 and 7.1 complain thusly:
15478       #   icc: Command line warning: ignoring option '-M'; no argument required
15479       # The diagnosis changed in icc 8.0:
15480       #   icc: Command line remark: option '-MP' not supported
15481       if (grep 'ignoring option' conftest.err ||
15482           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15483         am_cv_GCJ_dependencies_compiler_type=$depmode
15484         break
15485       fi
15486     fi
15487   done
15488
15489   cd ..
15490   rm -rf conftest.dir
15491 else
15492   am_cv_GCJ_dependencies_compiler_type=none
15493 fi
15494
15495 fi
15496 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
15497 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
15498 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
15499
15500
15501
15502 if
15503   test "x$enable_dependency_tracking" != xno \
15504   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
15505   am__fastdepGCJ_TRUE=
15506   am__fastdepGCJ_FALSE='#'
15507 else
15508   am__fastdepGCJ_TRUE='#'
15509   am__fastdepGCJ_FALSE=
15510 fi
15511
15512
15513
15514 for ac_prog in gcj
15515 do
15516   # Extract the first word of "$ac_prog", so it can be a program name with args.
15517 set dummy $ac_prog; ac_word=$2
15518 echo "$as_me:$LINENO: checking for $ac_word" >&5
15519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15520 if test "${ac_cv_prog_GCJ+set}" = set; then
15521   echo $ECHO_N "(cached) $ECHO_C" >&6
15522 else
15523   if test -n "$GCJ"; then
15524   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
15525 else
15526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15527 for as_dir in $PATH
15528 do
15529   IFS=$as_save_IFS
15530   test -z "$as_dir" && as_dir=.
15531   for ac_exec_ext in '' $ac_executable_extensions; do
15532   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15533     ac_cv_prog_GCJ="$ac_prog"
15534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15535     break 2
15536   fi
15537 done
15538 done
15539
15540 fi
15541 fi
15542 GCJ=$ac_cv_prog_GCJ
15543 if test -n "$GCJ"; then
15544   echo "$as_me:$LINENO: result: $GCJ" >&5
15545 echo "${ECHO_T}$GCJ" >&6
15546 else
15547   echo "$as_me:$LINENO: result: no" >&5
15548 echo "${ECHO_T}no" >&6
15549 fi
15550
15551   test -n "$GCJ" && break
15552 done
15553 test -n "$GCJ" || GCJ="gcj"
15554
15555 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
15556 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
15557    { (exit 1); exit 1; }; }
15558 if test "x${GCJFLAGS-unset}" = xunset; then
15559    GCJFLAGS="-g -O2"
15560 fi
15561
15562
15563 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
15564
15565 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15566 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15567 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
15568   echo $ECHO_N "(cached) $ECHO_C" >&6
15569 else
15570   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15571   # We make a subdir and do the tests there.  Otherwise we can end up
15572   # making bogus files that we don't know about and never remove.  For
15573   # instance it was reported that on HP-UX the gcc test will end up
15574   # making a dummy file named `D' -- because `-MD' means `put the output
15575   # in D'.
15576   mkdir conftest.dir
15577   # Copy depcomp to subdir because otherwise we won't find it if we're
15578   # using a relative directory.
15579   cp "$am_depcomp" conftest.dir
15580   cd conftest.dir
15581   # We will build objects and dependencies in a subdirectory because
15582   # it helps to detect inapplicable dependency modes.  For instance
15583   # both Tru64's cc and ICC support -MD to output dependencies as a
15584   # side effect of compilation, but ICC will put the dependencies in
15585   # the current directory while Tru64 will put them in the object
15586   # directory.
15587   mkdir sub
15588
15589   am_cv_GCJ_dependencies_compiler_type=none
15590   if test "$am_compiler_list" = ""; then
15591      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15592   fi
15593   for depmode in $am_compiler_list; do
15594     # Setup a source with many dependencies, because some compilers
15595     # like to wrap large dependency lists on column 80 (with \), and
15596     # we should not choose a depcomp mode which is confused by this.
15597     #
15598     # We need to recreate these files for each test, as the compiler may
15599     # overwrite some of them when testing with obscure command lines.
15600     # This happens at least with the AIX C compiler.
15601     : > sub/conftest.c
15602     for i in 1 2 3 4 5 6; do
15603       echo '#include "conftst'$i'.h"' >> sub/conftest.c
15604       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15605       # Solaris 8's {/usr,}/bin/sh.
15606       touch sub/conftst$i.h
15607     done
15608     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15609
15610     case $depmode in
15611     nosideeffect)
15612       # after this tag, mechanisms are not by side-effect, so they'll
15613       # only be used when explicitly requested
15614       if test "x$enable_dependency_tracking" = xyes; then
15615         continue
15616       else
15617         break
15618       fi
15619       ;;
15620     none) break ;;
15621     esac
15622     # We check with `-c' and `-o' for the sake of the "dashmstdout"
15623     # mode.  It turns out that the SunPro C++ compiler does not properly
15624     # handle `-M -o', and we need to detect this.
15625     if depmode=$depmode \
15626        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15627        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15628        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15629          >/dev/null 2>conftest.err &&
15630        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15631        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15632        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15633       # icc doesn't choke on unknown options, it will just issue warnings
15634       # or remarks (even with -Werror).  So we grep stderr for any message
15635       # that says an option was ignored or not supported.
15636       # When given -MP, icc 7.0 and 7.1 complain thusly:
15637       #   icc: Command line warning: ignoring option '-M'; no argument required
15638       # The diagnosis changed in icc 8.0:
15639       #   icc: Command line remark: option '-MP' not supported
15640       if (grep 'ignoring option' conftest.err ||
15641           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15642         am_cv_GCJ_dependencies_compiler_type=$depmode
15643         break
15644       fi
15645     fi
15646   done
15647
15648   cd ..
15649   rm -rf conftest.dir
15650 else
15651   am_cv_GCJ_dependencies_compiler_type=none
15652 fi
15653
15654 fi
15655 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
15656 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
15657 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
15658
15659
15660
15661 if
15662   test "x$enable_dependency_tracking" != xno \
15663   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
15664   am__fastdepGCJ_TRUE=
15665   am__fastdepGCJ_FALSE='#'
15666 else
15667   am__fastdepGCJ_TRUE='#'
15668   am__fastdepGCJ_FALSE=
15669 fi
15670
15671
15672
15673
15674
15675
15676 # Source file extension for Java test sources.
15677 ac_ext=c
15678
15679 # Object file extension for compiled Java test sources.
15680 objext=o
15681 objext_GCJ=$objext
15682
15683 # Code to be used in simple compile tests
15684 lt_simple_compile_test_code="int some_variable = 0;"
15685
15686 # Code to be used in simple link tests
15687 lt_simple_link_test_code='int main(){return(0);}'
15688
15689 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15690
15691
15692
15693
15694
15695
15696 # If no C compiler was specified, use CC.
15697 LTCC=${LTCC-"$CC"}
15698
15699 # If no C compiler flags were specified, use CFLAGS.
15700 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15701
15702 # Allow CC to be a program name with arguments.
15703 compiler=$CC
15704
15705
15706 # save warnings/boilerplate of simple test code
15707 ac_outfile=conftest.$ac_objext
15708 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15709 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15710 _lt_compiler_boilerplate=`cat conftest.err`
15711 $RM conftest*
15712
15713 ac_outfile=conftest.$ac_objext
15714 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15715 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15716 _lt_linker_boilerplate=`cat conftest.err`
15717 $RM conftest*
15718
15719
15720 # Allow CC to be a program name with arguments.
15721 compiler=$CC
15722 compiler_GCJ=$CC
15723 for cc_temp in $compiler""; do
15724   case $cc_temp in
15725     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15726     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15727     \-*) ;;
15728     *) break;;
15729   esac
15730 done
15731 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15732
15733
15734 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15735 archive_cmds_need_lc_GCJ=no
15736
15737 old_archive_cmds_GCJ=$old_archive_cmds
15738
15739 ## CAVEAT EMPTOR:
15740 ## There is no encapsulation within the following macros, do not change
15741 ## the running order or otherwise move them around unless you know exactly
15742 ## what you are doing...
15743 if test -n "$compiler"; then
15744
15745 lt_prog_compiler_no_builtin_flag_GCJ=
15746
15747 if test "$GCC" = yes; then
15748   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15749
15750   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15751 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15752 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15753   echo $ECHO_N "(cached) $ECHO_C" >&6
15754 else
15755   lt_cv_prog_compiler_rtti_exceptions=no
15756    ac_outfile=conftest.$ac_objext
15757    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15758    lt_compiler_flag="-fno-rtti -fno-exceptions"
15759    # Insert the option either (1) after the last *FLAGS variable, or
15760    # (2) before a word containing "conftest.", or (3) at the end.
15761    # Note that $ac_compile itself does not contain backslashes and begins
15762    # with a dollar sign (not a hyphen), so the echo should work correctly.
15763    # The option is referenced via a variable to avoid confusing sed.
15764    lt_compile=`echo "$ac_compile" | $SED \
15765    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15766    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15767    -e 's:$: $lt_compiler_flag:'`
15768    (eval echo "\"\$as_me:15768: $lt_compile\"" >&5)
15769    (eval "$lt_compile" 2>conftest.err)
15770    ac_status=$?
15771    cat conftest.err >&5
15772    echo "$as_me:15772: \$? = $ac_status" >&5
15773    if (exit $ac_status) && test -s "$ac_outfile"; then
15774      # The compiler can only warn and ignore the option if not recognized
15775      # So say no if there are warnings other than the usual output.
15776      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15777      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15778      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15779        lt_cv_prog_compiler_rtti_exceptions=yes
15780      fi
15781    fi
15782    $RM conftest*
15783
15784 fi
15785 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15786 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15787
15788 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15789     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15790 else
15791     :
15792 fi
15793
15794 fi
15795
15796
15797
15798   lt_prog_compiler_wl_GCJ=
15799 lt_prog_compiler_pic_GCJ=
15800 lt_prog_compiler_static_GCJ=
15801
15802 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15803 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15804
15805   if test "$GCC" = yes; then
15806     lt_prog_compiler_wl_GCJ='-Wl,'
15807     lt_prog_compiler_static_GCJ='-static'
15808
15809     case $host_os in
15810       aix*)
15811       # All AIX code is PIC.
15812       if test "$host_cpu" = ia64; then
15813         # AIX 5 now supports IA64 processor
15814         lt_prog_compiler_static_GCJ='-Bstatic'
15815       fi
15816       ;;
15817
15818     amigaos*)
15819       if test "$host_cpu" = m68k; then
15820         # FIXME: we need at least 68020 code to build shared libraries, but
15821         # adding the `-m68020' flag to GCC prevents building anything better,
15822         # like `-m68040'.
15823         lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15824       fi
15825       ;;
15826
15827     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15828       # PIC is the default for these OSes.
15829       ;;
15830
15831     mingw* | cygwin* | pw32* | os2*)
15832       # This hack is so that the source file can tell whether it is being
15833       # built for inclusion in a dll (and should export symbols for example).
15834       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15835       # (--disable-auto-import) libraries
15836
15837       ;;
15838
15839     darwin* | rhapsody*)
15840       # PIC is the default on this platform
15841       # Common symbols not allowed in MH_DYLIB files
15842       lt_prog_compiler_pic_GCJ='-fno-common'
15843       ;;
15844
15845     hpux*)
15846       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15847       # not for PA HP-UX.
15848       case $host_cpu in
15849       hppa*64*|ia64*)
15850         # +Z the default
15851         ;;
15852       *)
15853         lt_prog_compiler_pic_GCJ='-fPIC'
15854         ;;
15855       esac
15856       ;;
15857
15858     interix[3-9]*)
15859       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15860       # Instead, we relocate shared libraries at runtime.
15861       ;;
15862
15863     msdosdjgpp*)
15864       # Just because we use GCC doesn't mean we suddenly get shared libraries
15865       # on systems that don't support them.
15866       lt_prog_compiler_can_build_shared_GCJ=no
15867       enable_shared=no
15868       ;;
15869
15870     *nto* | *qnx*)
15871       # QNX uses GNU C++, but need to define -shared option too, otherwise
15872       # it will coredump.
15873       lt_prog_compiler_pic_GCJ='-fPIC -shared'
15874       ;;
15875
15876     sysv4*MP*)
15877       if test -d /usr/nec; then
15878         lt_prog_compiler_pic_GCJ=-Kconform_pic
15879       fi
15880       ;;
15881
15882     *)
15883       lt_prog_compiler_pic_GCJ='-fPIC'
15884       ;;
15885     esac
15886   else
15887     # PORTME Check for flag to pass linker flags through the system compiler.
15888     case $host_os in
15889     aix*)
15890       lt_prog_compiler_wl_GCJ='-Wl,'
15891       if test "$host_cpu" = ia64; then
15892         # AIX 5 now supports IA64 processor
15893         lt_prog_compiler_static_GCJ='-Bstatic'
15894       else
15895         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15896       fi
15897       ;;
15898     darwin*)
15899       # PIC is the default on this platform
15900       # Common symbols not allowed in MH_DYLIB files
15901       case $cc_basename in
15902       xlc*)
15903         lt_prog_compiler_pic_GCJ='-qnocommon'
15904         lt_prog_compiler_wl_GCJ='-Wl,'
15905         ;;
15906       esac
15907       ;;
15908
15909     mingw* | cygwin* | pw32* | os2*)
15910       # This hack is so that the source file can tell whether it is being
15911       # built for inclusion in a dll (and should export symbols for example).
15912
15913       ;;
15914
15915     hpux9* | hpux10* | hpux11*)
15916       lt_prog_compiler_wl_GCJ='-Wl,'
15917       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15918       # not for PA HP-UX.
15919       case $host_cpu in
15920       hppa*64*|ia64*)
15921         # +Z the default
15922         ;;
15923       *)
15924         lt_prog_compiler_pic_GCJ='+Z'
15925         ;;
15926       esac
15927       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15928       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15929       ;;
15930
15931     irix5* | irix6* | nonstopux*)
15932       lt_prog_compiler_wl_GCJ='-Wl,'
15933       # PIC (with -KPIC) is the default.
15934       lt_prog_compiler_static_GCJ='-non_shared'
15935       ;;
15936
15937     linux* | k*bsd*-gnu)
15938       case $cc_basename in
15939       icc* | ecc*)
15940         lt_prog_compiler_wl_GCJ='-Wl,'
15941         lt_prog_compiler_pic_GCJ='-KPIC'
15942         lt_prog_compiler_static_GCJ='-static'
15943         ;;
15944       pgcc* | pgf77* | pgf90* | pgf95*)
15945         # Portland Group compilers (*not* the Pentium gcc compiler,
15946         # which looks to be a dead project)
15947         lt_prog_compiler_wl_GCJ='-Wl,'
15948         lt_prog_compiler_pic_GCJ='-fpic'
15949         lt_prog_compiler_static_GCJ='-Bstatic'
15950         ;;
15951       ccc*)
15952         lt_prog_compiler_wl_GCJ='-Wl,'
15953         # All Alpha code is PIC.
15954         lt_prog_compiler_static_GCJ='-non_shared'
15955         ;;
15956       *)
15957         case `$CC -V 2>&1 | sed 5q` in
15958         *Sun\ C*)
15959           # Sun C 5.9
15960           lt_prog_compiler_pic_GCJ='-KPIC'
15961           lt_prog_compiler_static_GCJ='-Bstatic'
15962           lt_prog_compiler_wl_GCJ='-Wl,'
15963           ;;
15964         *Sun\ F*)
15965           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15966           lt_prog_compiler_pic_GCJ='-KPIC'
15967           lt_prog_compiler_static_GCJ='-Bstatic'
15968           lt_prog_compiler_wl_GCJ=''
15969           ;;
15970         esac
15971         ;;
15972       esac
15973       ;;
15974
15975     newsos6)
15976       lt_prog_compiler_pic_GCJ='-KPIC'
15977       lt_prog_compiler_static_GCJ='-Bstatic'
15978       ;;
15979
15980     *nto* | *qnx*)
15981       # QNX uses GNU C++, but need to define -shared option too, otherwise
15982       # it will coredump.
15983       lt_prog_compiler_pic_GCJ='-fPIC -shared'
15984       ;;
15985
15986     osf3* | osf4* | osf5*)
15987       lt_prog_compiler_wl_GCJ='-Wl,'
15988       # All OSF/1 code is PIC.
15989       lt_prog_compiler_static_GCJ='-non_shared'
15990       ;;
15991
15992     rdos*)
15993       lt_prog_compiler_static_GCJ='-non_shared'
15994       ;;
15995
15996     solaris*)
15997       lt_prog_compiler_pic_GCJ='-KPIC'
15998       lt_prog_compiler_static_GCJ='-Bstatic'
15999       case $cc_basename in
16000       f77* | f90* | f95*)
16001         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16002       *)
16003         lt_prog_compiler_wl_GCJ='-Wl,';;
16004       esac
16005       ;;
16006
16007     sunos4*)
16008       lt_prog_compiler_wl_GCJ='-Qoption ld '
16009       lt_prog_compiler_pic_GCJ='-PIC'
16010       lt_prog_compiler_static_GCJ='-Bstatic'
16011       ;;
16012
16013     sysv4 | sysv4.2uw2* | sysv4.3*)
16014       lt_prog_compiler_wl_GCJ='-Wl,'
16015       lt_prog_compiler_pic_GCJ='-KPIC'
16016       lt_prog_compiler_static_GCJ='-Bstatic'
16017       ;;
16018
16019     sysv4*MP*)
16020       if test -d /usr/nec ;then
16021         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16022         lt_prog_compiler_static_GCJ='-Bstatic'
16023       fi
16024       ;;
16025
16026     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16027       lt_prog_compiler_wl_GCJ='-Wl,'
16028       lt_prog_compiler_pic_GCJ='-KPIC'
16029       lt_prog_compiler_static_GCJ='-Bstatic'
16030       ;;
16031
16032     unicos*)
16033       lt_prog_compiler_wl_GCJ='-Wl,'
16034       lt_prog_compiler_can_build_shared_GCJ=no
16035       ;;
16036
16037     uts4*)
16038       lt_prog_compiler_pic_GCJ='-pic'
16039       lt_prog_compiler_static_GCJ='-Bstatic'
16040       ;;
16041
16042     *)
16043       lt_prog_compiler_can_build_shared_GCJ=no
16044       ;;
16045     esac
16046   fi
16047
16048 case $host_os in
16049   # For platforms which do not support PIC, -DPIC is meaningless:
16050   *djgpp*)
16051     lt_prog_compiler_pic_GCJ=
16052     ;;
16053   *)
16054     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16055     ;;
16056 esac
16057 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16058 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16059
16060
16061
16062 #
16063 # Check to make sure the PIC flag actually works.
16064 #
16065 if test -n "$lt_prog_compiler_pic_GCJ"; then
16066   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16067 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16068 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16069   echo $ECHO_N "(cached) $ECHO_C" >&6
16070 else
16071   lt_prog_compiler_pic_works_GCJ=no
16072    ac_outfile=conftest.$ac_objext
16073    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16074    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16075    # Insert the option either (1) after the last *FLAGS variable, or
16076    # (2) before a word containing "conftest.", or (3) at the end.
16077    # Note that $ac_compile itself does not contain backslashes and begins
16078    # with a dollar sign (not a hyphen), so the echo should work correctly.
16079    # The option is referenced via a variable to avoid confusing sed.
16080    lt_compile=`echo "$ac_compile" | $SED \
16081    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16082    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16083    -e 's:$: $lt_compiler_flag:'`
16084    (eval echo "\"\$as_me:16084: $lt_compile\"" >&5)
16085    (eval "$lt_compile" 2>conftest.err)
16086    ac_status=$?
16087    cat conftest.err >&5
16088    echo "$as_me:16088: \$? = $ac_status" >&5
16089    if (exit $ac_status) && test -s "$ac_outfile"; then
16090      # The compiler can only warn and ignore the option if not recognized
16091      # So say no if there are warnings other than the usual output.
16092      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16093      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16094      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16095        lt_prog_compiler_pic_works_GCJ=yes
16096      fi
16097    fi
16098    $RM conftest*
16099
16100 fi
16101 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16102 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16103
16104 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16105     case $lt_prog_compiler_pic_GCJ in
16106      "" | " "*) ;;
16107      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16108      esac
16109 else
16110     lt_prog_compiler_pic_GCJ=
16111      lt_prog_compiler_can_build_shared_GCJ=no
16112 fi
16113
16114 fi
16115
16116
16117
16118 #
16119 # Check to make sure the static flag actually works.
16120 #
16121 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16122 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16123 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16124 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16125   echo $ECHO_N "(cached) $ECHO_C" >&6
16126 else
16127   lt_prog_compiler_static_works_GCJ=no
16128    save_LDFLAGS="$LDFLAGS"
16129    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16130    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16131    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16132      # The linker can only warn and ignore the option if not recognized
16133      # So say no if there are warnings
16134      if test -s conftest.err; then
16135        # Append any errors to the config.log.
16136        cat conftest.err 1>&5
16137        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16138        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16139        if diff conftest.exp conftest.er2 >/dev/null; then
16140          lt_prog_compiler_static_works_GCJ=yes
16141        fi
16142      else
16143        lt_prog_compiler_static_works_GCJ=yes
16144      fi
16145    fi
16146    $RM conftest*
16147    LDFLAGS="$save_LDFLAGS"
16148
16149 fi
16150 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16151 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16152
16153 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16154     :
16155 else
16156     lt_prog_compiler_static_GCJ=
16157 fi
16158
16159
16160
16161
16162   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16163 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16164 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16165   echo $ECHO_N "(cached) $ECHO_C" >&6
16166 else
16167   lt_cv_prog_compiler_c_o_GCJ=no
16168    $RM -r conftest 2>/dev/null
16169    mkdir conftest
16170    cd conftest
16171    mkdir out
16172    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16173
16174    lt_compiler_flag="-o out/conftest2.$ac_objext"
16175    # Insert the option either (1) after the last *FLAGS variable, or
16176    # (2) before a word containing "conftest.", or (3) at the end.
16177    # Note that $ac_compile itself does not contain backslashes and begins
16178    # with a dollar sign (not a hyphen), so the echo should work correctly.
16179    lt_compile=`echo "$ac_compile" | $SED \
16180    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16181    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16182    -e 's:$: $lt_compiler_flag:'`
16183    (eval echo "\"\$as_me:16183: $lt_compile\"" >&5)
16184    (eval "$lt_compile" 2>out/conftest.err)
16185    ac_status=$?
16186    cat out/conftest.err >&5
16187    echo "$as_me:16187: \$? = $ac_status" >&5
16188    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16189    then
16190      # The compiler can only warn and ignore the option if not recognized
16191      # So say no if there are warnings
16192      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16193      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16194      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16195        lt_cv_prog_compiler_c_o_GCJ=yes
16196      fi
16197    fi
16198    chmod u+w . 2>&5
16199    $RM conftest*
16200    # SGI C++ compiler will create directory out/ii_files/ for
16201    # template instantiation
16202    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16203    $RM out/* && rmdir out
16204    cd ..
16205    $RM -r conftest
16206    $RM conftest*
16207
16208 fi
16209 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16210 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16211
16212
16213
16214   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16215 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16216 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16217   echo $ECHO_N "(cached) $ECHO_C" >&6
16218 else
16219   lt_cv_prog_compiler_c_o_GCJ=no
16220    $RM -r conftest 2>/dev/null
16221    mkdir conftest
16222    cd conftest
16223    mkdir out
16224    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16225
16226    lt_compiler_flag="-o out/conftest2.$ac_objext"
16227    # Insert the option either (1) after the last *FLAGS variable, or
16228    # (2) before a word containing "conftest.", or (3) at the end.
16229    # Note that $ac_compile itself does not contain backslashes and begins
16230    # with a dollar sign (not a hyphen), so the echo should work correctly.
16231    lt_compile=`echo "$ac_compile" | $SED \
16232    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16233    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16234    -e 's:$: $lt_compiler_flag:'`
16235    (eval echo "\"\$as_me:16235: $lt_compile\"" >&5)
16236    (eval "$lt_compile" 2>out/conftest.err)
16237    ac_status=$?
16238    cat out/conftest.err >&5
16239    echo "$as_me:16239: \$? = $ac_status" >&5
16240    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16241    then
16242      # The compiler can only warn and ignore the option if not recognized
16243      # So say no if there are warnings
16244      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16245      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16246      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16247        lt_cv_prog_compiler_c_o_GCJ=yes
16248      fi
16249    fi
16250    chmod u+w . 2>&5
16251    $RM conftest*
16252    # SGI C++ compiler will create directory out/ii_files/ for
16253    # template instantiation
16254    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16255    $RM out/* && rmdir out
16256    cd ..
16257    $RM -r conftest
16258    $RM conftest*
16259
16260 fi
16261 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16262 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16263
16264
16265
16266
16267 hard_links="nottested"
16268 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16269   # do not overwrite the value of need_locks provided by the user
16270   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16271 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16272   hard_links=yes
16273   $RM conftest*
16274   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16275   touch conftest.a
16276   ln conftest.a conftest.b 2>&5 || hard_links=no
16277   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16278   echo "$as_me:$LINENO: result: $hard_links" >&5
16279 echo "${ECHO_T}$hard_links" >&6
16280   if test "$hard_links" = no; then
16281     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16282 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16283     need_locks=warn
16284   fi
16285 else
16286   need_locks=no
16287 fi
16288
16289
16290
16291   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16292 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16293
16294   runpath_var=
16295   allow_undefined_flag_GCJ=
16296   always_export_symbols_GCJ=no
16297   archive_cmds_GCJ=
16298   archive_expsym_cmds_GCJ=
16299   compiler_needs_object_GCJ=no
16300   enable_shared_with_static_runtimes_GCJ=no
16301   export_dynamic_flag_spec_GCJ=
16302   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16303   hardcode_automatic_GCJ=no
16304   hardcode_direct_GCJ=no
16305   hardcode_direct_absolute_GCJ=no
16306   hardcode_libdir_flag_spec_GCJ=
16307   hardcode_libdir_flag_spec_ld_GCJ=
16308   hardcode_libdir_separator_GCJ=
16309   hardcode_minus_L_GCJ=no
16310   hardcode_shlibpath_var_GCJ=unsupported
16311   inherit_rpath_GCJ=no
16312   link_all_deplibs_GCJ=unknown
16313   module_cmds_GCJ=
16314   module_expsym_cmds_GCJ=
16315   old_archive_from_new_cmds_GCJ=
16316   old_archive_from_expsyms_cmds_GCJ=
16317   thread_safe_flag_spec_GCJ=
16318   whole_archive_flag_spec_GCJ=
16319   # include_expsyms should be a list of space-separated symbols to be *always*
16320   # included in the symbol list
16321   include_expsyms_GCJ=
16322   # exclude_expsyms can be an extended regexp of symbols to exclude
16323   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16324   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16325   # as well as any symbol that contains `d'.
16326   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16327   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16328   # platforms (ab)use it in PIC code, but their linkers get confused if
16329   # the symbol is explicitly referenced.  Since portable code cannot
16330   # rely on this symbol name, it's probably fine to never include it in
16331   # preloaded symbol tables.
16332   extract_expsyms_cmds=
16333
16334   case $host_os in
16335   cygwin* | mingw* | pw32*)
16336     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16337     # When not using gcc, we currently assume that we are using
16338     # Microsoft Visual C++.
16339     if test "$GCC" != yes; then
16340       with_gnu_ld=no
16341     fi
16342     ;;
16343   interix*)
16344     # we just hope/assume this is gcc and not c89 (= MSVC++)
16345     with_gnu_ld=yes
16346     ;;
16347   openbsd*)
16348     with_gnu_ld=no
16349     ;;
16350   esac
16351
16352   ld_shlibs_GCJ=yes
16353   if test "$with_gnu_ld" = yes; then
16354     # If archive_cmds runs LD, not CC, wlarc should be empty
16355     wlarc='${wl}'
16356
16357     # Set some defaults for GNU ld with shared library support. These
16358     # are reset later if shared libraries are not supported. Putting them
16359     # here allows them to be overridden if necessary.
16360     runpath_var=LD_RUN_PATH
16361     hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16362     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16363     # ancient GNU ld didn't support --whole-archive et. al.
16364     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16365       whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16366     else
16367       whole_archive_flag_spec_GCJ=
16368     fi
16369     supports_anon_versioning=no
16370     case `$LD -v 2>&1` in
16371       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16372       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16373       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16374       *\ 2.11.*) ;; # other 2.11 versions
16375       *) supports_anon_versioning=yes ;;
16376     esac
16377
16378     # See if GNU ld supports shared libraries.
16379     case $host_os in
16380     aix[3-9]*)
16381       # On AIX/PPC, the GNU linker is very broken
16382       if test "$host_cpu" != ia64; then
16383         ld_shlibs_GCJ=no
16384         cat <<_LT_EOF 1>&2
16385
16386 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16387 *** to be unable to reliably create shared libraries on AIX.
16388 *** Therefore, libtool is disabling shared libraries support.  If you
16389 *** really care for shared libraries, you may want to modify your PATH
16390 *** so that a non-GNU linker is found, and then restart.
16391
16392 _LT_EOF
16393       fi
16394       ;;
16395
16396     amigaos*)
16397       if test "$host_cpu" = m68k; then
16398         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)'
16399         hardcode_libdir_flag_spec_GCJ='-L$libdir'
16400         hardcode_minus_L_GCJ=yes
16401       fi
16402
16403       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16404       # that the semantics of dynamic libraries on AmigaOS, at least up
16405       # to version 4, is to share data among multiple programs linked
16406       # with the same dynamic library.  Since this doesn't match the
16407       # behavior of shared libraries on other platforms, we can't use
16408       # them.
16409       ld_shlibs_GCJ=no
16410       ;;
16411
16412     beos*)
16413       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16414         allow_undefined_flag_GCJ=unsupported
16415         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16416         # support --undefined.  This deserves some investigation.  FIXME
16417         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16418       else
16419         ld_shlibs_GCJ=no
16420       fi
16421       ;;
16422
16423     cygwin* | mingw* | pw32*)
16424       # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16425       # as there is no search path for DLLs.
16426       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16427       allow_undefined_flag_GCJ=unsupported
16428       always_export_symbols_GCJ=no
16429       enable_shared_with_static_runtimes_GCJ=yes
16430       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16431
16432       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16433         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16434         # If the export-symbols file already is a .def file (1st line
16435         # is EXPORTS), use it as is; otherwise, prepend...
16436         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16437           cp $export_symbols $output_objdir/$soname.def;
16438         else
16439           echo EXPORTS > $output_objdir/$soname.def;
16440           cat $export_symbols >> $output_objdir/$soname.def;
16441         fi~
16442         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16443       else
16444         ld_shlibs_GCJ=no
16445       fi
16446       ;;
16447
16448     interix[3-9]*)
16449       hardcode_direct_GCJ=no
16450       hardcode_shlibpath_var_GCJ=no
16451       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16452       export_dynamic_flag_spec_GCJ='${wl}-E'
16453       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16454       # Instead, shared libraries are loaded at an image base (0x10000000 by
16455       # default) and relocated if they conflict, which is a slow very memory
16456       # consuming and fragmenting process.  To avoid this, we pick a random,
16457       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16458       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16459       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16460       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16461       ;;
16462
16463     gnu* | linux* | tpf* | k*bsd*-gnu)
16464       tmp_diet=no
16465       if test "$host_os" = linux-dietlibc; then
16466         case $cc_basename in
16467           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
16468         esac
16469       fi
16470       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16471          && test "$tmp_diet" = no
16472       then
16473         tmp_addflag=
16474         case $cc_basename,$host_cpu in
16475         pgcc*)                          # Portland Group C compiler
16476           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
16477           tmp_addflag=' $pic_flag'
16478           ;;
16479         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16480           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
16481           tmp_addflag=' $pic_flag -Mnomain' ;;
16482         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
16483           tmp_addflag=' -i_dynamic' ;;
16484         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16485           tmp_addflag=' -i_dynamic -nofor_main' ;;
16486         ifc* | ifort*)                  # Intel Fortran compiler
16487           tmp_addflag=' -nofor_main' ;;
16488         esac
16489         case `$CC -V 2>&1 | sed 5q` in
16490         *Sun\ C*)                       # Sun C 5.9
16491           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
16492           compiler_needs_object_GCJ=yes
16493           tmp_sharedflag='-G' ;;
16494         *Sun\ F*)                       # Sun Fortran 8.3
16495           tmp_sharedflag='-G' ;;
16496         *)
16497           tmp_sharedflag='-shared' ;;
16498         esac
16499         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16500
16501         if test "x$supports_anon_versioning" = xyes; then
16502           archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
16503             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16504             echo "local: *; };" >> $output_objdir/$libname.ver~
16505             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16506         fi
16507       else
16508         ld_shlibs_GCJ=no
16509       fi
16510       ;;
16511
16512     netbsd*)
16513       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16514         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16515         wlarc=
16516       else
16517         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16518         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16519       fi
16520       ;;
16521
16522     solaris*)
16523       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16524         ld_shlibs_GCJ=no
16525         cat <<_LT_EOF 1>&2
16526
16527 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16528 *** create shared libraries on Solaris systems.  Therefore, libtool
16529 *** is disabling shared libraries support.  We urge you to upgrade GNU
16530 *** binutils to release 2.9.1 or newer.  Another option is to modify
16531 *** your PATH or compiler configuration so that the native linker is
16532 *** used, and then restart.
16533
16534 _LT_EOF
16535       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16536         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16537         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16538       else
16539         ld_shlibs_GCJ=no
16540       fi
16541       ;;
16542
16543     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16544       case `$LD -v 2>&1` in
16545         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16546         ld_shlibs_GCJ=no
16547         cat <<_LT_EOF 1>&2
16548
16549 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16550 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16551 *** is disabling shared libraries support.  We urge you to upgrade GNU
16552 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16553 *** your PATH or compiler configuration so that the native linker is
16554 *** used, and then restart.
16555
16556 _LT_EOF
16557         ;;
16558         *)
16559           # For security reasons, it is highly recommended that you always
16560           # use absolute paths for naming shared libraries, and exclude the
16561           # DT_RUNPATH tag from executables and libraries.  But doing so
16562           # requires that you compile everything twice, which is a pain.
16563           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16564             hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16565             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16566             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16567           else
16568             ld_shlibs_GCJ=no
16569           fi
16570         ;;
16571       esac
16572       ;;
16573
16574     sunos4*)
16575       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16576       wlarc=
16577       hardcode_direct_GCJ=yes
16578       hardcode_shlibpath_var_GCJ=no
16579       ;;
16580
16581     *)
16582       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16583         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16584         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16585       else
16586         ld_shlibs_GCJ=no
16587       fi
16588       ;;
16589     esac
16590
16591     if test "$ld_shlibs_GCJ" = no; then
16592       runpath_var=
16593       hardcode_libdir_flag_spec_GCJ=
16594       export_dynamic_flag_spec_GCJ=
16595       whole_archive_flag_spec_GCJ=
16596     fi
16597   else
16598     # PORTME fill in a description of your system's linker (not GNU ld)
16599     case $host_os in
16600     aix3*)
16601       allow_undefined_flag_GCJ=unsupported
16602       always_export_symbols_GCJ=yes
16603       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'
16604       # Note: this linker hardcodes the directories in LIBPATH if there
16605       # are no directories specified by -L.
16606       hardcode_minus_L_GCJ=yes
16607       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16608         # Neither direct hardcoding nor static linking is supported with a
16609         # broken collect2.
16610         hardcode_direct_GCJ=unsupported
16611       fi
16612       ;;
16613
16614     aix[4-9]*)
16615       if test "$host_cpu" = ia64; then
16616         # On IA64, the linker does run time linking by default, so we don't
16617         # have to do anything special.
16618         aix_use_runtimelinking=no
16619         exp_sym_flag='-Bexport'
16620         no_entry_flag=""
16621       else
16622         # If we're using GNU nm, then we don't want the "-C" option.
16623         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16624         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16625           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'
16626         else
16627           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'
16628         fi
16629         aix_use_runtimelinking=no
16630
16631         # Test if we are trying to use run time linking or normal
16632         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16633         # need to do runtime linking.
16634         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16635           for ld_flag in $LDFLAGS; do
16636           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16637             aix_use_runtimelinking=yes
16638             break
16639           fi
16640           done
16641           ;;
16642         esac
16643
16644         exp_sym_flag='-bexport'
16645         no_entry_flag='-bnoentry'
16646       fi
16647
16648       # When large executables or shared objects are built, AIX ld can
16649       # have problems creating the table of contents.  If linking a library
16650       # or program results in "error TOC overflow" add -mminimal-toc to
16651       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16652       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16653
16654       archive_cmds_GCJ=''
16655       hardcode_direct_GCJ=yes
16656       hardcode_direct_absolute_GCJ=yes
16657       hardcode_libdir_separator_GCJ=':'
16658       link_all_deplibs_GCJ=yes
16659       file_list_spec_GCJ='${wl}-f,'
16660
16661       if test "$GCC" = yes; then
16662         case $host_os in aix4.[012]|aix4.[012].*)
16663         # We only want to do this on AIX 4.2 and lower, the check
16664         # below for broken collect2 doesn't work under 4.3+
16665           collect2name=`${CC} -print-prog-name=collect2`
16666           if test -f "$collect2name" &&
16667            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16668           then
16669           # We have reworked collect2
16670           :
16671           else
16672           # We have old collect2
16673           hardcode_direct_GCJ=unsupported
16674           # It fails to find uninstalled libraries when the uninstalled
16675           # path is not listed in the libpath.  Setting hardcode_minus_L
16676           # to unsupported forces relinking
16677           hardcode_minus_L_GCJ=yes
16678           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16679           hardcode_libdir_separator_GCJ=
16680           fi
16681           ;;
16682         esac
16683         shared_flag='-shared'
16684         if test "$aix_use_runtimelinking" = yes; then
16685           shared_flag="$shared_flag "'${wl}-G'
16686         fi
16687       else
16688         # not using gcc
16689         if test "$host_cpu" = ia64; then
16690         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16691         # chokes on -Wl,-G. The following line is correct:
16692           shared_flag='-G'
16693         else
16694           if test "$aix_use_runtimelinking" = yes; then
16695             shared_flag='${wl}-G'
16696           else
16697             shared_flag='${wl}-bM:SRE'
16698           fi
16699         fi
16700       fi
16701
16702       # It seems that -bexpall does not export symbols beginning with
16703       # underscore (_), so it is better to generate a list of symbols to export.
16704       always_export_symbols_GCJ=yes
16705       if test "$aix_use_runtimelinking" = yes; then
16706         # Warning - without using the other runtime loading flags (-brtl),
16707         # -berok will link without error, but may produce a broken library.
16708         allow_undefined_flag_GCJ='-berok'
16709         # Determine the default libpath from the value encoded in an
16710         # empty executable.
16711         if test x$gcc_no_link = xyes; then
16712   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16713 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16714    { (exit 1); exit 1; }; }
16715 fi
16716 cat >conftest.$ac_ext <<_ACEOF
16717 /* confdefs.h.  */
16718 _ACEOF
16719 cat confdefs.h >>conftest.$ac_ext
16720 cat >>conftest.$ac_ext <<_ACEOF
16721 /* end confdefs.h.  */
16722
16723 int
16724 main ()
16725 {
16726
16727   ;
16728   return 0;
16729 }
16730 _ACEOF
16731 rm -f conftest.$ac_objext conftest$ac_exeext
16732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16733   (eval $ac_link) 2>conftest.er1
16734   ac_status=$?
16735   grep -v '^ *+' conftest.er1 >conftest.err
16736   rm -f conftest.er1
16737   cat conftest.err >&5
16738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739   (exit $ac_status); } &&
16740          { ac_try='test -z "$ac_c_werror_flag"
16741                          || test ! -s conftest.err'
16742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743   (eval $ac_try) 2>&5
16744   ac_status=$?
16745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746   (exit $ac_status); }; } &&
16747          { ac_try='test -s conftest$ac_exeext'
16748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16749   (eval $ac_try) 2>&5
16750   ac_status=$?
16751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752   (exit $ac_status); }; }; then
16753
16754 lt_aix_libpath_sed='
16755     /Import File Strings/,/^$/ {
16756         /^0/ {
16757             s/^0  *\(.*\)$/\1/
16758             p
16759         }
16760     }'
16761 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16762 # Check for a 64-bit object if we didn't find anything.
16763 if test -z "$aix_libpath"; then
16764   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16765 fi
16766 else
16767   echo "$as_me: failed program was:" >&5
16768 sed 's/^/| /' conftest.$ac_ext >&5
16769
16770 fi
16771 rm -f conftest.err conftest.$ac_objext \
16772       conftest$ac_exeext conftest.$ac_ext
16773 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16774
16775         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16776         archive_expsym_cmds_GCJ='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16777       else
16778         if test "$host_cpu" = ia64; then
16779           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16780           allow_undefined_flag_GCJ="-z nodefs"
16781           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16782         else
16783          # Determine the default libpath from the value encoded in an
16784          # empty executable.
16785          if test x$gcc_no_link = xyes; then
16786   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16787 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16788    { (exit 1); exit 1; }; }
16789 fi
16790 cat >conftest.$ac_ext <<_ACEOF
16791 /* confdefs.h.  */
16792 _ACEOF
16793 cat confdefs.h >>conftest.$ac_ext
16794 cat >>conftest.$ac_ext <<_ACEOF
16795 /* end confdefs.h.  */
16796
16797 int
16798 main ()
16799 {
16800
16801   ;
16802   return 0;
16803 }
16804 _ACEOF
16805 rm -f conftest.$ac_objext conftest$ac_exeext
16806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16807   (eval $ac_link) 2>conftest.er1
16808   ac_status=$?
16809   grep -v '^ *+' conftest.er1 >conftest.err
16810   rm -f conftest.er1
16811   cat conftest.err >&5
16812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813   (exit $ac_status); } &&
16814          { ac_try='test -z "$ac_c_werror_flag"
16815                          || test ! -s conftest.err'
16816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16817   (eval $ac_try) 2>&5
16818   ac_status=$?
16819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820   (exit $ac_status); }; } &&
16821          { ac_try='test -s conftest$ac_exeext'
16822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16823   (eval $ac_try) 2>&5
16824   ac_status=$?
16825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826   (exit $ac_status); }; }; then
16827
16828 lt_aix_libpath_sed='
16829     /Import File Strings/,/^$/ {
16830         /^0/ {
16831             s/^0  *\(.*\)$/\1/
16832             p
16833         }
16834     }'
16835 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16836 # Check for a 64-bit object if we didn't find anything.
16837 if test -z "$aix_libpath"; then
16838   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16839 fi
16840 else
16841   echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.$ac_ext >&5
16843
16844 fi
16845 rm -f conftest.err conftest.$ac_objext \
16846       conftest$ac_exeext conftest.$ac_ext
16847 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16848
16849          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16850           # Warning - without using the other run time loading flags,
16851           # -berok will link without error, but may produce a broken library.
16852           no_undefined_flag_GCJ=' ${wl}-bernotok'
16853           allow_undefined_flag_GCJ=' ${wl}-berok'
16854           # Exported symbols can be pulled into shared objects from archives
16855           whole_archive_flag_spec_GCJ='$convenience'
16856           archive_cmds_need_lc_GCJ=yes
16857           # This is similar to how AIX traditionally builds its shared libraries.
16858           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16859         fi
16860       fi
16861       ;;
16862
16863     amigaos*)
16864       if test "$host_cpu" = m68k; then
16865         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)'
16866         hardcode_libdir_flag_spec_GCJ='-L$libdir'
16867         hardcode_minus_L_GCJ=yes
16868       fi
16869       # see comment about different semantics on the GNU ld section
16870       ld_shlibs_GCJ=no
16871       ;;
16872
16873     bsdi[45]*)
16874       export_dynamic_flag_spec_GCJ=-rdynamic
16875       ;;
16876
16877     cygwin* | mingw* | pw32*)
16878       # When not using gcc, we currently assume that we are using
16879       # Microsoft Visual C++.
16880       # hardcode_libdir_flag_spec is actually meaningless, as there is
16881       # no search path for DLLs.
16882       hardcode_libdir_flag_spec_GCJ=' '
16883       allow_undefined_flag_GCJ=unsupported
16884       # Tell ltmain to make .lib files, not .a files.
16885       libext=lib
16886       # Tell ltmain to make .dll files, not .so files.
16887       shrext_cmds=".dll"
16888       # FIXME: Setting linknames here is a bad hack.
16889       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
16890       # The linker will automatically build a .lib file if we build a DLL.
16891       old_archive_from_new_cmds_GCJ='true'
16892       # FIXME: Should let the user specify the lib program.
16893       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16894       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16895       enable_shared_with_static_runtimes_GCJ=yes
16896       ;;
16897
16898     darwin* | rhapsody*)
16899       case $host_os in
16900       rhapsody* | darwin1.[012])
16901         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16902         ;;
16903       *) # Darwin 1.3 on
16904         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
16905         10.[012])
16906           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16907           ;;
16908         10.*)
16909           allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16910           ;;
16911         esac
16912         ;;
16913       esac
16914       archive_cmds_need_lc_GCJ=no
16915       hardcode_direct_GCJ=no
16916       hardcode_automatic_GCJ=yes
16917       hardcode_shlibpath_var_GCJ=unsupported
16918       whole_archive_flag_spec_GCJ=''
16919       link_all_deplibs_GCJ=yes
16920       if test "$GCC" = yes ; then
16921         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
16922   echo $ECHO_N "(cached) $ECHO_C" >&6
16923 else
16924   lt_cv_apple_cc_single_mod=no
16925         if test -z "${LT_MULTI_MODULE}"; then
16926           # By default we will add the -single_module flag. You can override
16927           # by either setting the environment variable LT_MULTI_MODULE
16928           # non-empty at configure time, or by adding -multi-module to the
16929           # link flags.
16930           echo "int foo(void){return 1;}" > conftest.c
16931           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16932               -dynamiclib ${wl}-single_module conftest.c
16933           if test -f libconftest.dylib; then
16934               lt_cv_apple_cc_single_mod=yes
16935               rm libconftest.dylib
16936           fi
16937           rm conftest.$ac_ext
16938         fi
16939 fi
16940
16941         output_verbose_link_cmd=echo
16942         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
16943           archive_cmds_GCJ='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16944           archive_expsym_cmds_GCJ='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16945         else
16946           archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16947           archive_expsym_cmds_GCJ='sed "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}'
16948         fi
16949         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16950         module_expsym_cmds_GCJ='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16951       else
16952         case $cc_basename in
16953         xlc*)
16954           output_verbose_link_cmd=echo
16955           archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
16956           module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16957           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16958           archive_expsym_cmds_GCJ='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16959           module_expsym_cmds_GCJ='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16960           ;;
16961         *)
16962           ld_shlibs_GCJ=no
16963           ;;
16964         esac
16965       fi
16966       ;;
16967
16968     dgux*)
16969       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16970       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16971       hardcode_shlibpath_var_GCJ=no
16972       ;;
16973
16974     freebsd1*)
16975       ld_shlibs_GCJ=no
16976       ;;
16977
16978     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16979     # support.  Future versions do this automatically, but an explicit c++rt0.o
16980     # does not break anything, and helps significantly (at the cost of a little
16981     # extra space).
16982     freebsd2.2*)
16983       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16984       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16985       hardcode_direct_GCJ=yes
16986       hardcode_shlibpath_var_GCJ=no
16987       ;;
16988
16989     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16990     freebsd2*)
16991       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16992       hardcode_direct_GCJ=yes
16993       hardcode_minus_L_GCJ=yes
16994       hardcode_shlibpath_var_GCJ=no
16995       ;;
16996
16997     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16998     freebsd* | dragonfly*)
16999       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17000       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17001       hardcode_direct_GCJ=yes
17002       hardcode_shlibpath_var_GCJ=no
17003       ;;
17004
17005     hpux9*)
17006       if test "$GCC" = yes; then
17007         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'
17008       else
17009         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'
17010       fi
17011       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17012       hardcode_libdir_separator_GCJ=:
17013       hardcode_direct_GCJ=yes
17014
17015       # hardcode_minus_L: Not really in the search PATH,
17016       # but as the default location of the library.
17017       hardcode_minus_L_GCJ=yes
17018       export_dynamic_flag_spec_GCJ='${wl}-E'
17019       ;;
17020
17021     hpux10*)
17022       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17023         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17024       else
17025         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17026       fi
17027       if test "$with_gnu_ld" = no; then
17028         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17029         hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17030         hardcode_libdir_separator_GCJ=:
17031         hardcode_direct_GCJ=yes
17032         hardcode_direct_absolute_GCJ=yes
17033         export_dynamic_flag_spec_GCJ='${wl}-E'
17034         # hardcode_minus_L: Not really in the search PATH,
17035         # but as the default location of the library.
17036         hardcode_minus_L_GCJ=yes
17037       fi
17038       ;;
17039
17040     hpux11*)
17041       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17042         case $host_cpu in
17043         hppa*64*)
17044           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17045           ;;
17046         ia64*)
17047           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17048           ;;
17049         *)
17050           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17051           ;;
17052         esac
17053       else
17054         case $host_cpu in
17055         hppa*64*)
17056           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17057           ;;
17058         ia64*)
17059           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17060           ;;
17061         *)
17062           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17063           ;;
17064         esac
17065       fi
17066       if test "$with_gnu_ld" = no; then
17067         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17068         hardcode_libdir_separator_GCJ=:
17069
17070         case $host_cpu in
17071         hppa*64*|ia64*)
17072           hardcode_direct_GCJ=no
17073           hardcode_shlibpath_var_GCJ=no
17074           ;;
17075         *)
17076           hardcode_direct_GCJ=yes
17077           hardcode_direct_absolute_GCJ=yes
17078           export_dynamic_flag_spec_GCJ='${wl}-E'
17079
17080           # hardcode_minus_L: Not really in the search PATH,
17081           # but as the default location of the library.
17082           hardcode_minus_L_GCJ=yes
17083           ;;
17084         esac
17085       fi
17086       ;;
17087
17088     irix5* | irix6* | nonstopux*)
17089       if test "$GCC" = yes; then
17090         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17091         # Try to use the -exported_symbol ld option, if it does not
17092         # work, assume that -exports_file does not work either and
17093         # implicitly export all symbols.
17094         save_LDFLAGS="$LDFLAGS"
17095         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17096         if test x$gcc_no_link = xyes; then
17097   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17098 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17099    { (exit 1); exit 1; }; }
17100 fi
17101 cat >conftest.$ac_ext <<_ACEOF
17102 int foo(void) {}
17103 _ACEOF
17104 rm -f conftest.$ac_objext conftest$ac_exeext
17105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17106   (eval $ac_link) 2>conftest.er1
17107   ac_status=$?
17108   grep -v '^ *+' conftest.er1 >conftest.err
17109   rm -f conftest.er1
17110   cat conftest.err >&5
17111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112   (exit $ac_status); } &&
17113          { ac_try='test -z "$ac_c_werror_flag"
17114                          || test ! -s conftest.err'
17115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116   (eval $ac_try) 2>&5
17117   ac_status=$?
17118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119   (exit $ac_status); }; } &&
17120          { ac_try='test -s conftest$ac_exeext'
17121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122   (eval $ac_try) 2>&5
17123   ac_status=$?
17124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125   (exit $ac_status); }; }; then
17126   archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
17127
17128 else
17129   echo "$as_me: failed program was:" >&5
17130 sed 's/^/| /' conftest.$ac_ext >&5
17131
17132 fi
17133 rm -f conftest.err conftest.$ac_objext \
17134       conftest$ac_exeext conftest.$ac_ext
17135         LDFLAGS="$save_LDFLAGS"
17136       else
17137         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
17138         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
17139       fi
17140       archive_cmds_need_lc_GCJ='no'
17141       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17142       hardcode_libdir_separator_GCJ=:
17143       inherit_rpath_GCJ=yes
17144       link_all_deplibs_GCJ=yes
17145       ;;
17146
17147     netbsd*)
17148       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17149         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17150       else
17151         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17152       fi
17153       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17154       hardcode_direct_GCJ=yes
17155       hardcode_shlibpath_var_GCJ=no
17156       ;;
17157
17158     newsos6)
17159       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17160       hardcode_direct_GCJ=yes
17161       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17162       hardcode_libdir_separator_GCJ=:
17163       hardcode_shlibpath_var_GCJ=no
17164       ;;
17165
17166     *nto* | *qnx*)
17167       ;;
17168
17169     openbsd*)
17170       hardcode_direct_GCJ=yes
17171       hardcode_shlibpath_var_GCJ=no
17172       hardcode_direct_absolute_GCJ=yes
17173       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17174         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17175         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17176         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17177         export_dynamic_flag_spec_GCJ='${wl}-E'
17178       else
17179         case $host_os in
17180         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17181           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17182           hardcode_libdir_flag_spec_GCJ='-R$libdir'
17183           ;;
17184         *)
17185           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17186           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17187           ;;
17188         esac
17189       fi
17190       ;;
17191
17192     os2*)
17193       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17194       hardcode_minus_L_GCJ=yes
17195       allow_undefined_flag_GCJ=unsupported
17196       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'
17197       old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17198       ;;
17199
17200     osf3*)
17201       if test "$GCC" = yes; then
17202         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17203         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17204       else
17205         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17206         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
17207       fi
17208       archive_cmds_need_lc_GCJ='no'
17209       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17210       hardcode_libdir_separator_GCJ=:
17211       ;;
17212
17213     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17214       if test "$GCC" = yes; then
17215         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17216         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17217         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17218       else
17219         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17220         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
17221         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
17222         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
17223
17224         # Both c and cxx compiler support -rpath directly
17225         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17226       fi
17227       archive_cmds_need_lc_GCJ='no'
17228       hardcode_libdir_separator_GCJ=:
17229       ;;
17230
17231     solaris*)
17232       no_undefined_flag_GCJ=' -z defs'
17233       if test "$GCC" = yes; then
17234         wlarc='${wl}'
17235         archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17236         archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17237           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17238       else
17239         case `$CC -V 2>&1` in
17240         *"Compilers 5.0"*)
17241           wlarc=''
17242           archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17243           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17244           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17245           ;;
17246         *)
17247           wlarc='${wl}'
17248           archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17249           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17250           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17251           ;;
17252         esac
17253       fi
17254       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17255       hardcode_shlibpath_var_GCJ=no
17256       case $host_os in
17257       solaris2.[0-5] | solaris2.[0-5].*) ;;
17258       *)
17259         # The compiler driver will combine and reorder linker options,
17260         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17261         # but is careful enough not to reorder.
17262         # Supported since Solaris 2.6 (maybe 2.5.1?)
17263         if test "$GCC" = yes; then
17264           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17265         else
17266           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17267         fi
17268         ;;
17269       esac
17270       link_all_deplibs_GCJ=yes
17271       ;;
17272
17273     sunos4*)
17274       if test "x$host_vendor" = xsequent; then
17275         # Use $CC to link under sequent, because it throws in some extra .o
17276         # files that make .init and .fini sections work.
17277         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17278       else
17279         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17280       fi
17281       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17282       hardcode_direct_GCJ=yes
17283       hardcode_minus_L_GCJ=yes
17284       hardcode_shlibpath_var_GCJ=no
17285       ;;
17286
17287     sysv4)
17288       case $host_vendor in
17289         sni)
17290           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17291           hardcode_direct_GCJ=yes # is this really true???
17292         ;;
17293         siemens)
17294           ## LD is ld it makes a PLAMLIB
17295           ## CC just makes a GrossModule.
17296           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17297           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17298           hardcode_direct_GCJ=no
17299         ;;
17300         motorola)
17301           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17302           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17303         ;;
17304       esac
17305       runpath_var='LD_RUN_PATH'
17306       hardcode_shlibpath_var_GCJ=no
17307       ;;
17308
17309     sysv4.3*)
17310       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17311       hardcode_shlibpath_var_GCJ=no
17312       export_dynamic_flag_spec_GCJ='-Bexport'
17313       ;;
17314
17315     sysv4*MP*)
17316       if test -d /usr/nec; then
17317         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17318         hardcode_shlibpath_var_GCJ=no
17319         runpath_var=LD_RUN_PATH
17320         hardcode_runpath_var=yes
17321         ld_shlibs_GCJ=yes
17322       fi
17323       ;;
17324
17325     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17326       no_undefined_flag_GCJ='${wl}-z,text'
17327       archive_cmds_need_lc_GCJ=no
17328       hardcode_shlibpath_var_GCJ=no
17329       runpath_var='LD_RUN_PATH'
17330
17331       if test "$GCC" = yes; then
17332         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17333         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17334       else
17335         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17336         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17337       fi
17338       ;;
17339
17340     sysv5* | sco3.2v5* | sco5v6*)
17341       # Note: We can NOT use -z defs as we might desire, because we do not
17342       # link with -lc, and that would cause any symbols used from libc to
17343       # always be unresolved, which means just about no library would
17344       # ever link correctly.  If we're not using GNU ld we use -z text
17345       # though, which does catch some bad symbols but isn't as heavy-handed
17346       # as -z defs.
17347       no_undefined_flag_GCJ='${wl}-z,text'
17348       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17349       archive_cmds_need_lc_GCJ=no
17350       hardcode_shlibpath_var_GCJ=no
17351       hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
17352       hardcode_libdir_separator_GCJ=':'
17353       link_all_deplibs_GCJ=yes
17354       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17355       runpath_var='LD_RUN_PATH'
17356
17357       if test "$GCC" = yes; then
17358         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17359         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17360       else
17361         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17362         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17363       fi
17364       ;;
17365
17366     uts4*)
17367       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17368       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17369       hardcode_shlibpath_var_GCJ=no
17370       ;;
17371
17372     *)
17373       ld_shlibs_GCJ=no
17374       ;;
17375     esac
17376
17377     if test x$host_vendor = xsni; then
17378       case $host in
17379       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17380         export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
17381         ;;
17382       esac
17383     fi
17384   fi
17385
17386 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17387 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17388 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17389
17390 with_gnu_ld_GCJ=$with_gnu_ld
17391
17392
17393
17394
17395
17396
17397 #
17398 # Do we need to explicitly link libc?
17399 #
17400 case "x$archive_cmds_need_lc_GCJ" in
17401 x|xyes)
17402   # Assume -lc should be added
17403   archive_cmds_need_lc_GCJ=yes
17404
17405   if test "$enable_shared" = yes && test "$GCC" = yes; then
17406     case $archive_cmds_GCJ in
17407     *'~'*)
17408       # FIXME: we may have to deal with multi-command sequences.
17409       ;;
17410     '$CC '*)
17411       # Test whether the compiler implicitly links with -lc since on some
17412       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17413       # to ld, don't add -lc before -lgcc.
17414       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17415 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17416       $RM conftest*
17417       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17418
17419       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17420   (eval $ac_compile) 2>&5
17421   ac_status=$?
17422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423   (exit $ac_status); } 2>conftest.err; then
17424         soname=conftest
17425         lib=conftest
17426         libobjs=conftest.$ac_objext
17427         deplibs=
17428         wl=$lt_prog_compiler_wl_GCJ
17429         pic_flag=$lt_prog_compiler_pic_GCJ
17430         compiler_flags=-v
17431         linker_flags=-v
17432         verstring=
17433         output_objdir=.
17434         libname=conftest
17435         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17436         allow_undefined_flag_GCJ=
17437         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
17438   (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17439   ac_status=$?
17440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441   (exit $ac_status); }
17442         then
17443           archive_cmds_need_lc_GCJ=no
17444         else
17445           archive_cmds_need_lc_GCJ=yes
17446         fi
17447         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17448       else
17449         cat conftest.err 1>&5
17450       fi
17451       $RM conftest*
17452       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17453 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17454       ;;
17455     esac
17456   fi
17457   ;;
17458 esac
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17524 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17525 withGCC=$GCC
17526 library_names_spec=
17527 libname_spec='lib$name'
17528 soname_spec=
17529 shrext_cmds=".so"
17530 postinstall_cmds=
17531 postuninstall_cmds=
17532 finish_cmds=
17533 finish_eval=
17534 shlibpath_var=
17535 shlibpath_overrides_runpath=unknown
17536 version_type=none
17537 dynamic_linker="$host_os ld.so"
17538 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17539 need_lib_prefix=unknown
17540 hardcode_into_libs=no
17541
17542 # when you set need_version to no, make sure it does not cause -set_version
17543 # flags to be left without arguments
17544 need_version=unknown
17545
17546 case $host_os in
17547 aix3*)
17548   version_type=linux
17549   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17550   shlibpath_var=LIBPATH
17551
17552   # AIX 3 has no versioning support, so we append a major version to the name.
17553   soname_spec='${libname}${release}${shared_ext}$major'
17554   ;;
17555
17556 aix[4-9]*)
17557   version_type=linux
17558   need_lib_prefix=no
17559   need_version=no
17560   hardcode_into_libs=yes
17561   if test "$host_cpu" = ia64; then
17562     # AIX 5 supports IA64
17563     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17564     shlibpath_var=LD_LIBRARY_PATH
17565   else
17566     # With GCC up to 2.95.x, collect2 would create an import file
17567     # for dependence libraries.  The import file would start with
17568     # the line `#! .'.  This would cause the generated library to
17569     # depend on `.', always an invalid library.  This was fixed in
17570     # development snapshots of GCC prior to 3.0.
17571     case $host_os in
17572       aix4 | aix4.[01] | aix4.[01].*)
17573       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17574            echo ' yes '
17575            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17576         :
17577       else
17578         can_build_shared=no
17579       fi
17580       ;;
17581     esac
17582     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17583     # soname into executable. Probably we can add versioning support to
17584     # collect2, so additional links can be useful in future.
17585     if test "$aix_use_runtimelinking" = yes; then
17586       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17587       # instead of lib<name>.a to let people know that these are not
17588       # typical AIX shared libraries.
17589       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17590     else
17591       # We preserve .a as extension for shared libraries through AIX4.2
17592       # and later when we are not doing run time linking.
17593       library_names_spec='${libname}${release}.a $libname.a'
17594       soname_spec='${libname}${release}${shared_ext}$major'
17595     fi
17596     shlibpath_var=LIBPATH
17597   fi
17598   ;;
17599
17600 amigaos*)
17601   if test "$host_cpu" = m68k; then
17602     library_names_spec='$libname.ixlibrary $libname.a'
17603     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17604     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'
17605   else
17606     dynamic_linker=no
17607   fi
17608   ;;
17609
17610 beos*)
17611   library_names_spec='${libname}${shared_ext}'
17612   dynamic_linker="$host_os ld.so"
17613   shlibpath_var=LIBRARY_PATH
17614   ;;
17615
17616 bsdi[45]*)
17617   version_type=linux
17618   need_version=no
17619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17620   soname_spec='${libname}${release}${shared_ext}$major'
17621   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17622   shlibpath_var=LD_LIBRARY_PATH
17623   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17624   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17625   # the default ld.so.conf also contains /usr/contrib/lib and
17626   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17627   # libtool to hard-code these into programs
17628   ;;
17629
17630 cygwin* | mingw* | pw32*)
17631   version_type=windows
17632   shrext_cmds=".dll"
17633   need_version=no
17634   need_lib_prefix=no
17635
17636   case $withGCC,$host_os in
17637   yes,cygwin* | yes,mingw* | yes,pw32*)
17638     library_names_spec='$libname.dll.a'
17639     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17640     postinstall_cmds='base_file=`basename \${file}`~
17641       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17642       dldir=$destdir/`dirname \$dlpath`~
17643       test -d \$dldir || mkdir -p \$dldir~
17644       $install_prog $dir/$dlname \$dldir/$dlname~
17645       chmod a+x \$dldir/$dlname~
17646       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17647         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17648       fi'
17649     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17650       dlpath=$dir/\$dldll~
17651        $RM \$dlpath'
17652     shlibpath_overrides_runpath=yes
17653
17654     case $host_os in
17655     cygwin*)
17656       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17657       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17658       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17659       ;;
17660     mingw*)
17661       # MinGW DLLs use traditional 'lib' prefix
17662       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17663       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17664       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17665         # It is most probably a Windows format PATH printed by
17666         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17667         # path with ; separators, and with drive letters. We can handle the
17668         # drive letters (cygwin fileutils understands them), so leave them,
17669         # especially as we might pass files found there to a mingw objdump,
17670         # which wouldn't understand a cygwinified path. Ahh.
17671         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17672       else
17673         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17674       fi
17675       ;;
17676     pw32*)
17677       # pw32 DLLs use 'pw' prefix rather than 'lib'
17678       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17679       ;;
17680     esac
17681     ;;
17682
17683   *)
17684     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17685     ;;
17686   esac
17687   dynamic_linker='Win32 ld.exe'
17688   # FIXME: first we should search . and the directory the executable is in
17689   shlibpath_var=PATH
17690   ;;
17691
17692 darwin* | rhapsody*)
17693   dynamic_linker="$host_os dyld"
17694   version_type=darwin
17695   need_lib_prefix=no
17696   need_version=no
17697   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17698   soname_spec='${libname}${release}${major}$shared_ext'
17699   shlibpath_overrides_runpath=yes
17700   shlibpath_var=DYLD_LIBRARY_PATH
17701   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17702
17703   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17704   ;;
17705
17706 dgux*)
17707   version_type=linux
17708   need_lib_prefix=no
17709   need_version=no
17710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17711   soname_spec='${libname}${release}${shared_ext}$major'
17712   shlibpath_var=LD_LIBRARY_PATH
17713   ;;
17714
17715 freebsd1*)
17716   dynamic_linker=no
17717   ;;
17718
17719 freebsd* | dragonfly*)
17720   # DragonFly does not have aout.  When/if they implement a new
17721   # versioning mechanism, adjust this.
17722   if test -x /usr/bin/objformat; then
17723     objformat=`/usr/bin/objformat`
17724   else
17725     case $host_os in
17726     freebsd[123]*) objformat=aout ;;
17727     *) objformat=elf ;;
17728     esac
17729   fi
17730   version_type=freebsd-$objformat
17731   case $version_type in
17732     freebsd-elf*)
17733       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17734       need_version=no
17735       need_lib_prefix=no
17736       ;;
17737     freebsd-*)
17738       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17739       need_version=yes
17740       ;;
17741   esac
17742   shlibpath_var=LD_LIBRARY_PATH
17743   case $host_os in
17744   freebsd2*)
17745     shlibpath_overrides_runpath=yes
17746     ;;
17747   freebsd3.[01]* | freebsdelf3.[01]*)
17748     shlibpath_overrides_runpath=yes
17749     hardcode_into_libs=yes
17750     ;;
17751   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17752   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17753     shlibpath_overrides_runpath=no
17754     hardcode_into_libs=yes
17755     ;;
17756   *) # from 4.6 on, and DragonFly
17757     shlibpath_overrides_runpath=yes
17758     hardcode_into_libs=yes
17759     ;;
17760   esac
17761   ;;
17762
17763 gnu*)
17764   version_type=linux
17765   need_lib_prefix=no
17766   need_version=no
17767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17768   soname_spec='${libname}${release}${shared_ext}$major'
17769   shlibpath_var=LD_LIBRARY_PATH
17770   hardcode_into_libs=yes
17771   ;;
17772
17773 hpux9* | hpux10* | hpux11*)
17774   # Give a soname corresponding to the major version so that dld.sl refuses to
17775   # link against other versions.
17776   version_type=sunos
17777   need_lib_prefix=no
17778   need_version=no
17779   case $host_cpu in
17780   ia64*)
17781     shrext_cmds='.so'
17782     hardcode_into_libs=yes
17783     dynamic_linker="$host_os dld.so"
17784     shlibpath_var=LD_LIBRARY_PATH
17785     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17786     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17787     soname_spec='${libname}${release}${shared_ext}$major'
17788     if test "X$HPUX_IA64_MODE" = X32; then
17789       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17790     else
17791       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17792     fi
17793     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17794     ;;
17795   hppa*64*)
17796     shrext_cmds='.sl'
17797     hardcode_into_libs=yes
17798     dynamic_linker="$host_os dld.sl"
17799     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17800     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17801     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17802     soname_spec='${libname}${release}${shared_ext}$major'
17803     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17804     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17805     ;;
17806   *)
17807     shrext_cmds='.sl'
17808     dynamic_linker="$host_os dld.sl"
17809     shlibpath_var=SHLIB_PATH
17810     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17811     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17812     soname_spec='${libname}${release}${shared_ext}$major'
17813     ;;
17814   esac
17815   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17816   postinstall_cmds='chmod 555 $lib'
17817   ;;
17818
17819 interix[3-9]*)
17820   version_type=linux
17821   need_lib_prefix=no
17822   need_version=no
17823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17824   soname_spec='${libname}${release}${shared_ext}$major'
17825   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17826   shlibpath_var=LD_LIBRARY_PATH
17827   shlibpath_overrides_runpath=no
17828   hardcode_into_libs=yes
17829   ;;
17830
17831 irix5* | irix6* | nonstopux*)
17832   case $host_os in
17833     nonstopux*) version_type=nonstopux ;;
17834     *)
17835         if test "$lt_cv_prog_gnu_ld" = yes; then
17836                 version_type=linux
17837         else
17838                 version_type=irix
17839         fi ;;
17840   esac
17841   need_lib_prefix=no
17842   need_version=no
17843   soname_spec='${libname}${release}${shared_ext}$major'
17844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17845   case $host_os in
17846   irix5* | nonstopux*)
17847     libsuff= shlibsuff=
17848     ;;
17849   *)
17850     case $LD in # libtool.m4 will add one of these switches to LD
17851     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17852       libsuff= shlibsuff= libmagic=32-bit;;
17853     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17854       libsuff=32 shlibsuff=N32 libmagic=N32;;
17855     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17856       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17857     *) libsuff= shlibsuff= libmagic=never-match;;
17858     esac
17859     ;;
17860   esac
17861   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17862   shlibpath_overrides_runpath=no
17863   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17864   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17865   hardcode_into_libs=yes
17866   ;;
17867
17868 # No shared lib support for Linux oldld, aout, or coff.
17869 linux*oldld* | linux*aout* | linux*coff*)
17870   dynamic_linker=no
17871   ;;
17872
17873 # This must be Linux ELF.
17874 linux* | k*bsd*-gnu)
17875   version_type=linux
17876   need_lib_prefix=no
17877   need_version=no
17878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17879   soname_spec='${libname}${release}${shared_ext}$major'
17880   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17881   shlibpath_var=LD_LIBRARY_PATH
17882   shlibpath_overrides_runpath=no
17883   # Some binutils ld are patched to set DT_RUNPATH
17884   save_LDFLAGS=$LDFLAGS
17885   save_libdir=$libdir
17886   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_GCJ\"; \
17887        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_GCJ\""
17888   if test x$gcc_no_link = xyes; then
17889   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17890 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17891    { (exit 1); exit 1; }; }
17892 fi
17893 cat >conftest.$ac_ext <<_ACEOF
17894 /* confdefs.h.  */
17895 _ACEOF
17896 cat confdefs.h >>conftest.$ac_ext
17897 cat >>conftest.$ac_ext <<_ACEOF
17898 /* end confdefs.h.  */
17899
17900 int
17901 main ()
17902 {
17903
17904   ;
17905   return 0;
17906 }
17907 _ACEOF
17908 rm -f conftest.$ac_objext conftest$ac_exeext
17909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17910   (eval $ac_link) 2>conftest.er1
17911   ac_status=$?
17912   grep -v '^ *+' conftest.er1 >conftest.err
17913   rm -f conftest.er1
17914   cat conftest.err >&5
17915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916   (exit $ac_status); } &&
17917          { ac_try='test -z "$ac_c_werror_flag"
17918                          || test ! -s conftest.err'
17919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920   (eval $ac_try) 2>&5
17921   ac_status=$?
17922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923   (exit $ac_status); }; } &&
17924          { ac_try='test -s conftest$ac_exeext'
17925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926   (eval $ac_try) 2>&5
17927   ac_status=$?
17928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929   (exit $ac_status); }; }; then
17930   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
17931   shlibpath_overrides_runpath=yes
17932 fi
17933
17934 else
17935   echo "$as_me: failed program was:" >&5
17936 sed 's/^/| /' conftest.$ac_ext >&5
17937
17938 fi
17939 rm -f conftest.err conftest.$ac_objext \
17940       conftest$ac_exeext conftest.$ac_ext
17941   LDFLAGS=$save_LDFLAGS
17942   libdir=$save_libdir
17943
17944   # This implies no fast_install, which is unacceptable.
17945   # Some rework will be needed to allow for fast_install
17946   # before this can be enabled.
17947   hardcode_into_libs=yes
17948
17949   # Append ld.so.conf contents to the search path
17950   if test -f /etc/ld.so.conf; then
17951     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17952     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17953   fi
17954
17955   # We used to test for /lib/ld.so.1 and disable shared libraries on
17956   # powerpc, because MkLinux only supported shared libraries with the
17957   # GNU dynamic linker.  Since this was broken with cross compilers,
17958   # most powerpc-linux boxes support dynamic linking these days and
17959   # people can always --disable-shared, the test was removed, and we
17960   # assume the GNU/Linux dynamic linker is in use.
17961   dynamic_linker='GNU/Linux ld.so'
17962   ;;
17963
17964 netbsd*)
17965   version_type=sunos
17966   need_lib_prefix=no
17967   need_version=no
17968   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17969     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17970     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17971     dynamic_linker='NetBSD (a.out) ld.so'
17972   else
17973     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17974     soname_spec='${libname}${release}${shared_ext}$major'
17975     dynamic_linker='NetBSD ld.elf_so'
17976   fi
17977   shlibpath_var=LD_LIBRARY_PATH
17978   shlibpath_overrides_runpath=yes
17979   hardcode_into_libs=yes
17980   ;;
17981
17982 newsos6)
17983   version_type=linux
17984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17985   shlibpath_var=LD_LIBRARY_PATH
17986   shlibpath_overrides_runpath=yes
17987   ;;
17988
17989 *nto* | *qnx*)
17990   version_type=qnx
17991   need_lib_prefix=no
17992   need_version=no
17993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17994   soname_spec='${libname}${release}${shared_ext}$major'
17995   shlibpath_var=LD_LIBRARY_PATH
17996   shlibpath_overrides_runpath=no
17997   hardcode_into_libs=yes
17998   dynamic_linker='ldqnx.so'
17999   ;;
18000
18001 openbsd*)
18002   version_type=sunos
18003   sys_lib_dlsearch_path_spec="/usr/lib"
18004   need_lib_prefix=no
18005   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18006   case $host_os in
18007     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
18008     *)                          need_version=no  ;;
18009   esac
18010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18011   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18012   shlibpath_var=LD_LIBRARY_PATH
18013   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18014     case $host_os in
18015       openbsd2.[89] | openbsd2.[89].*)
18016         shlibpath_overrides_runpath=no
18017         ;;
18018       *)
18019         shlibpath_overrides_runpath=yes
18020         ;;
18021       esac
18022   else
18023     shlibpath_overrides_runpath=yes
18024   fi
18025   ;;
18026
18027 os2*)
18028   libname_spec='$name'
18029   shrext_cmds=".dll"
18030   need_lib_prefix=no
18031   library_names_spec='$libname${shared_ext} $libname.a'
18032   dynamic_linker='OS/2 ld.exe'
18033   shlibpath_var=LIBPATH
18034   ;;
18035
18036 osf3* | osf4* | osf5*)
18037   version_type=osf
18038   need_lib_prefix=no
18039   need_version=no
18040   soname_spec='${libname}${release}${shared_ext}$major'
18041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18042   shlibpath_var=LD_LIBRARY_PATH
18043   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18044   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18045   ;;
18046
18047 rdos*)
18048   dynamic_linker=no
18049   ;;
18050
18051 solaris*)
18052   version_type=linux
18053   need_lib_prefix=no
18054   need_version=no
18055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18056   soname_spec='${libname}${release}${shared_ext}$major'
18057   shlibpath_var=LD_LIBRARY_PATH
18058   shlibpath_overrides_runpath=yes
18059   hardcode_into_libs=yes
18060   # ldd complains unless libraries are executable
18061   postinstall_cmds='chmod +x $lib'
18062   ;;
18063
18064 sunos4*)
18065   version_type=sunos
18066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18067   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18068   shlibpath_var=LD_LIBRARY_PATH
18069   shlibpath_overrides_runpath=yes
18070   if test "$with_gnu_ld" = yes; then
18071     need_lib_prefix=no
18072   fi
18073   need_version=yes
18074   ;;
18075
18076 sysv4 | sysv4.3*)
18077   version_type=linux
18078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18079   soname_spec='${libname}${release}${shared_ext}$major'
18080   shlibpath_var=LD_LIBRARY_PATH
18081   case $host_vendor in
18082     sni)
18083       shlibpath_overrides_runpath=no
18084       need_lib_prefix=no
18085       runpath_var=LD_RUN_PATH
18086       ;;
18087     siemens)
18088       need_lib_prefix=no
18089       ;;
18090     motorola)
18091       need_lib_prefix=no
18092       need_version=no
18093       shlibpath_overrides_runpath=no
18094       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18095       ;;
18096   esac
18097   ;;
18098
18099 sysv4*MP*)
18100   if test -d /usr/nec ;then
18101     version_type=linux
18102     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18103     soname_spec='$libname${shared_ext}.$major'
18104     shlibpath_var=LD_LIBRARY_PATH
18105   fi
18106   ;;
18107
18108 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18109   version_type=freebsd-elf
18110   need_lib_prefix=no
18111   need_version=no
18112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18113   soname_spec='${libname}${release}${shared_ext}$major'
18114   shlibpath_var=LD_LIBRARY_PATH
18115   shlibpath_overrides_runpath=yes
18116   hardcode_into_libs=yes
18117   if test "$with_gnu_ld" = yes; then
18118     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18119   else
18120     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18121     case $host_os in
18122       sco3.2v5*)
18123         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18124         ;;
18125     esac
18126   fi
18127   sys_lib_dlsearch_path_spec='/usr/lib'
18128   ;;
18129
18130 tpf*)
18131   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18132   version_type=linux
18133   need_lib_prefix=no
18134   need_version=no
18135   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18136   shlibpath_var=LD_LIBRARY_PATH
18137   shlibpath_overrides_runpath=no
18138   hardcode_into_libs=yes
18139   ;;
18140
18141 uts4*)
18142   version_type=linux
18143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18144   soname_spec='${libname}${release}${shared_ext}$major'
18145   shlibpath_var=LD_LIBRARY_PATH
18146   ;;
18147
18148 *)
18149   dynamic_linker=no
18150   ;;
18151 esac
18152 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18153 echo "${ECHO_T}$dynamic_linker" >&6
18154 test "$dynamic_linker" = no && can_build_shared=no
18155
18156 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18157 if test "$GCC" = yes; then
18158   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18159 fi
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18197 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18198 hardcode_action_GCJ=
18199 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
18200    test -n "$runpath_var_GCJ" ||
18201    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18202
18203   # We can hardcode non-existent directories.
18204   if test "$hardcode_direct_GCJ" != no &&
18205      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18206      # have to relink, otherwise we might link with an installed library
18207      # when we should be linking with a yet-to-be-installed one
18208      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18209      test "$hardcode_minus_L_GCJ" != no; then
18210     # Linking always hardcodes the temporary library directory.
18211     hardcode_action_GCJ=relink
18212   else
18213     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18214     hardcode_action_GCJ=immediate
18215   fi
18216 else
18217   # We cannot hardcode anything, or else we can only hardcode existing
18218   # directories.
18219   hardcode_action_GCJ=unsupported
18220 fi
18221 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18222 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18223
18224 if test "$hardcode_action_GCJ" = relink ||
18225    test "$inherit_rpath_GCJ" = yes; then
18226   # Fast installation is not supported
18227   enable_fast_install=no
18228 elif test "$shlibpath_overrides_runpath" = yes ||
18229      test "$enable_shared" = no; then
18230   # Fast installation is not necessary
18231   enable_fast_install=needless
18232 fi
18233
18234
18235
18236
18237
18238
18239
18240 fi
18241
18242 compiler_GCJ=${GCJ-gcj}
18243 ac_ext=c
18244 ac_cpp='$CPP $CPPFLAGS'
18245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18248
18249
18250 if test "x$CC" != xcc; then
18251   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
18252 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
18253 else
18254   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
18255 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
18256 fi
18257 set dummy $CC; ac_cc=`echo $2 |
18258                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18259 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
18260   echo $ECHO_N "(cached) $ECHO_C" >&6
18261 else
18262   cat >conftest.$ac_ext <<_ACEOF
18263 /* confdefs.h.  */
18264 _ACEOF
18265 cat confdefs.h >>conftest.$ac_ext
18266 cat >>conftest.$ac_ext <<_ACEOF
18267 /* end confdefs.h.  */
18268
18269 int
18270 main ()
18271 {
18272
18273   ;
18274   return 0;
18275 }
18276 _ACEOF
18277 # Make sure it works both with $CC and with simple cc.
18278 # We do the test twice because some compilers refuse to overwrite an
18279 # existing .o file with -o, though they will create one.
18280 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18281 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282   (eval $ac_try) 2>&5
18283   ac_status=$?
18284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285   (exit $ac_status); } &&
18286    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287   (eval $ac_try) 2>&5
18288   ac_status=$?
18289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290   (exit $ac_status); };
18291 then
18292   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18293   if test "x$CC" != xcc; then
18294     # Test first that cc exists at all.
18295     if { ac_try='cc -c conftest.$ac_ext >&5'
18296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18297   (eval $ac_try) 2>&5
18298   ac_status=$?
18299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300   (exit $ac_status); }; }; then
18301       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18302       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303   (eval $ac_try) 2>&5
18304   ac_status=$?
18305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306   (exit $ac_status); } &&
18307          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18308   (eval $ac_try) 2>&5
18309   ac_status=$?
18310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311   (exit $ac_status); };
18312       then
18313         # cc works too.
18314         :
18315       else
18316         # cc exists but doesn't like -o.
18317         eval ac_cv_prog_cc_${ac_cc}_c_o=no
18318       fi
18319     fi
18320   fi
18321 else
18322   eval ac_cv_prog_cc_${ac_cc}_c_o=no
18323 fi
18324 rm -f conftest*
18325
18326 fi
18327 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
18328   echo "$as_me:$LINENO: result: yes" >&5
18329 echo "${ECHO_T}yes" >&6
18330 else
18331   echo "$as_me:$LINENO: result: no" >&5
18332 echo "${ECHO_T}no" >&6
18333
18334 cat >>confdefs.h <<\_ACEOF
18335 #define NO_MINUS_C_MINUS_O 1
18336 _ACEOF
18337
18338 fi
18339
18340 # FIXME: we rely on the cache variable name because
18341 # there is no other way.
18342 set dummy $CC
18343 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18344 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
18345    # Losing compiler, so override with the script.
18346    # FIXME: It is wrong to rewrite CC.
18347    # But if we don't then we get into trouble of one sort or another.
18348    # A longer-term fix would be to have automake use am__CC in this case,
18349    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18350    CC="$am_aux_dir/compile $CC"
18351 fi
18352
18353
18354
18355
18356 subdirs="$subdirs classpath libltdl"
18357
18358
18359 # The -no-testsuite modules omit the test subdir.
18360
18361
18362 if test -d $srcdir/testsuite; then
18363   TESTSUBDIR_TRUE=
18364   TESTSUBDIR_FALSE='#'
18365 else
18366   TESTSUBDIR_TRUE='#'
18367   TESTSUBDIR_FALSE=
18368 fi
18369
18370
18371 # Should the runtime set system properties by examining the
18372 # environment variable GCJ_PROPERTIES?
18373 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
18374 if test "${enable_getenv_properties+set}" = set; then
18375   enableval="$enable_getenv_properties"
18376
18377 fi;
18378
18379 # Whether GCJ_PROPERTIES is used depends on the target.
18380 if test -z "$enable_getenv_properties"; then
18381    enable_getenv_properties=${enable_getenv_properties_default-yes}
18382 fi
18383 if test "$enable_getenv_properties" = no; then
18384
18385 cat >>confdefs.h <<\_ACEOF
18386 #define DISABLE_GETENV_PROPERTIES 1
18387 _ACEOF
18388
18389 fi
18390
18391 # Whether we should use arguments to main()
18392 if test -z "$enable_main_args"; then
18393    enable_main_args=${enable_main_args_default-yes}
18394 fi
18395 if test "$enable_main_args" = no; then
18396
18397 cat >>confdefs.h <<\_ACEOF
18398 #define DISABLE_MAIN_ARGS 1
18399 _ACEOF
18400
18401 fi
18402
18403
18404 # Should we use hashtable-based synchronization?
18405 # Currently works only for Linux X86/ia64
18406 # Typically faster and more space-efficient
18407 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
18408 if test "${enable_hash_synchronization+set}" = set; then
18409   enableval="$enable_hash_synchronization"
18410
18411 fi;
18412
18413 if test -z "$enable_hash_synchronization"; then
18414    enable_hash_synchronization=$enable_hash_synchronization_default
18415 fi
18416
18417
18418 install_ecj_jar=no
18419 ECJ_BUILD_JAR=
18420 ECJ_JAR=
18421
18422 # Check whether --with-ecj-jar or --without-ecj-jar was given.
18423 if test "${with_ecj_jar+set}" = set; then
18424   withval="$with_ecj_jar"
18425   ECJ_JAR=$withval
18426 else
18427   if test -f $multi_basedir/ecj.jar; then
18428            ECJ_BUILD_JAR=$multi_basedir/ecj.jar
18429            ECJ_JAR='$(jardir)/ecj.jar'
18430            install_ecj_jar=yes
18431          fi
18432 fi;
18433
18434
18435
18436
18437 if test "$ECJ_JAR" != ""; then
18438   BUILD_ECJ1_TRUE=
18439   BUILD_ECJ1_FALSE='#'
18440 else
18441   BUILD_ECJ1_TRUE='#'
18442   BUILD_ECJ1_FALSE=
18443 fi
18444
18445
18446
18447 if test $install_ecj_jar = yes; then
18448   INSTALL_ECJ_JAR_TRUE=
18449   INSTALL_ECJ_JAR_FALSE='#'
18450 else
18451   INSTALL_ECJ_JAR_TRUE='#'
18452   INSTALL_ECJ_JAR_FALSE=
18453 fi
18454
18455
18456
18457 # Check whether --with-java-home or --without-java-home was given.
18458 if test "${with_java_home+set}" = set; then
18459   withval="$with_java_home"
18460   JAVA_HOME="${withval}"
18461 else
18462   JAVA_HOME=""
18463 fi;
18464
18465
18466 if test ! -z "$JAVA_HOME"; then
18467   JAVA_HOME_SET_TRUE=
18468   JAVA_HOME_SET_FALSE='#'
18469 else
18470   JAVA_HOME_SET_TRUE='#'
18471   JAVA_HOME_SET_FALSE=
18472 fi
18473
18474
18475
18476 suppress_libgcj_bc=no
18477 # Check whether --enable-libgcj-bc or --disable-libgcj-bc was given.
18478 if test "${enable_libgcj_bc+set}" = set; then
18479   enableval="$enable_libgcj_bc"
18480   if test "$enable_libgcj_bc" = "no"; then
18481      suppress_libgcj_bc=yes
18482    fi
18483 fi;
18484
18485
18486 if test "$suppress_libgcj_bc" = "yes"; then
18487   SUPPRESS_LIBGCJ_BC_TRUE=
18488   SUPPRESS_LIBGCJ_BC_FALSE='#'
18489 else
18490   SUPPRESS_LIBGCJ_BC_TRUE='#'
18491   SUPPRESS_LIBGCJ_BC_FALSE=
18492 fi
18493
18494
18495 # What is the native OS API for MinGW?
18496
18497 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
18498 if test "${with_win32_nlsapi+set}" = set; then
18499   withval="$with_win32_nlsapi"
18500   case "${withval}" in
18501   ansi) with_win32_nlsapi=ansi ;;
18502   unicows) with_win32_nlsapi=unicows ;;
18503   unicode) with_win32_nlsapi=unicode ;;
18504   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
18505 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
18506    { (exit 1); exit 1; }; } ;;
18507 esac
18508 else
18509   with_win32_nlsapi=ansi
18510 fi;
18511
18512 case "${with_win32_nlsapi}" in
18513   unicows | unicode)
18514
18515 cat >>confdefs.h <<\_ACEOF
18516 #define MINGW_LIBGCJ_UNICODE 1
18517 _ACEOF
18518
18519     ;;
18520 esac
18521
18522 # configure.host sets slow_pthread_self if the synchronization code should
18523 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
18524 if test "${slow_pthread_self}" = "yes"; then
18525
18526 cat >>confdefs.h <<\_ACEOF
18527 #define SLOW_PTHREAD_SELF 1
18528 _ACEOF
18529
18530 fi
18531
18532 # Check for gc debugging.  This option is handled both here and in the GC.
18533 # Check whether --enable-gc-debug or --disable-gc-debug was given.
18534 if test "${enable_gc_debug+set}" = set; then
18535   enableval="$enable_gc_debug"
18536    if test "$enable_gc_debug" = "yes"; then
18537
18538 cat >>confdefs.h <<\_ACEOF
18539 #define LIBGCJ_GC_DEBUG 1
18540 _ACEOF
18541
18542   fi
18543 fi;
18544
18545 # See if the user has the interpreter included.
18546 # Check whether --enable-interpreter or --disable-interpreter was given.
18547 if test "${enable_interpreter+set}" = set; then
18548   enableval="$enable_interpreter"
18549   if test "$enable_interpreter" = yes; then
18550     # This can also be set in configure.host.
18551     libgcj_interpreter=yes
18552   elif test "$enable_interpreter" = no; then
18553     libgcj_interpreter=no
18554   fi
18555 fi;
18556
18557 if test "$libgcj_interpreter" = yes; then
18558
18559 cat >>confdefs.h <<\_ACEOF
18560 #define INTERPRETER 1
18561 _ACEOF
18562
18563 fi
18564 INTERPRETER="$libgcj_interpreter"
18565
18566
18567
18568 if test "$libgcj_interpreter" = yes; then
18569   INTERPRETER_TRUE=
18570   INTERPRETER_FALSE='#'
18571 else
18572   INTERPRETER_TRUE='#'
18573   INTERPRETER_FALSE=
18574 fi
18575
18576
18577 echo "$as_me:$LINENO: checking for exception model to use" >&5
18578 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
18579 ac_ext=cc
18580 ac_cpp='$CXXCPP $CPPFLAGS'
18581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18584
18585 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
18586 if test "${enable_sjlj_exceptions+set}" = set; then
18587   enableval="$enable_sjlj_exceptions"
18588   :
18589 else
18590   cat > conftest.$ac_ext << EOF
18591 #line 18591 "configure"
18592 struct S { ~S(); };
18593 void bar();
18594 void foo()
18595 {
18596   S s;
18597   bar();
18598 }
18599 EOF
18600 old_CXXFLAGS="$CXXFLAGS"
18601 CXXFLAGS=-S
18602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18603   (eval $ac_compile) 2>&5
18604   ac_status=$?
18605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606   (exit $ac_status); }; then
18607   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
18608     enable_sjlj_exceptions=yes
18609   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
18610     enable_sjlj_exceptions=no
18611   fi
18612 fi
18613 CXXFLAGS="$old_CXXFLAGS"
18614 rm -f conftest*
18615 fi;
18616 if test x$enable_sjlj_exceptions = xyes; then
18617
18618 cat >>confdefs.h <<\_ACEOF
18619 #define SJLJ_EXCEPTIONS 1
18620 _ACEOF
18621
18622   ac_exception_model_name=sjlj
18623 elif test x$enable_sjlj_exceptions = xno; then
18624   ac_exception_model_name="call frame"
18625 else
18626   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
18627 echo "$as_me: error: unable to detect exception model" >&2;}
18628    { (exit 1); exit 1; }; }
18629 fi
18630 ac_ext=c
18631 ac_cpp='$CPP $CPPFLAGS'
18632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18635
18636 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
18637 echo "${ECHO_T}$ac_exception_model_name" >&6
18638
18639 # If we are non using SJLJ exceptions, and this host does not have support
18640 # for unwinding from a signal handler, enable checked dereferences and divides.
18641 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
18642   CHECKREFSPEC=-fcheck-references
18643   DIVIDESPEC=-fuse-divide-subroutine
18644   EXCEPTIONSPEC=
18645 fi
18646
18647 # See if the user wants to disable java.net.  This is the mildly
18648 # ugly way that we admit that target-side configuration sucks.
18649 # Check whether --enable-java-net or --disable-java-net was given.
18650 if test "${enable_java_net+set}" = set; then
18651   enableval="$enable_java_net"
18652
18653 fi;
18654
18655 # Whether java.net is built by default can depend on the target.
18656 if test -z "$enable_java_net"; then
18657    enable_java_net=${enable_java_net_default-yes}
18658 fi
18659 if test "$enable_java_net" = no; then
18660
18661 cat >>confdefs.h <<\_ACEOF
18662 #define DISABLE_JAVA_NET 1
18663 _ACEOF
18664
18665 fi
18666
18667 # See if the user wants to configure without libffi.  Some
18668 # architectures don't support it, and default values are set in
18669 # configure.host.
18670
18671 # Check whether --with-libffi or --without-libffi was given.
18672 if test "${with_libffi+set}" = set; then
18673   withval="$with_libffi"
18674   :
18675 else
18676   with_libffi=${with_libffi_default-yes}
18677 fi;
18678
18679 LIBFFI=
18680 LIBFFIINCS=
18681 if test "$with_libffi" != no; then
18682
18683 cat >>confdefs.h <<\_ACEOF
18684 #define USE_LIBFFI 1
18685 _ACEOF
18686
18687    LIBFFI=../libffi/libffi_convenience.la
18688    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
18689 fi
18690
18691
18692
18693 # See if the user wants to disable JVMPI support.
18694 # Check whether --enable-jvmpi or --disable-jvmpi was given.
18695 if test "${enable_jvmpi+set}" = set; then
18696   enableval="$enable_jvmpi"
18697
18698 fi;
18699
18700 if test "$enable_jvmpi" != no; then
18701
18702 cat >>confdefs.h <<\_ACEOF
18703 #define ENABLE_JVMPI 1
18704 _ACEOF
18705
18706 fi
18707
18708 # If the target is an eCos system, use the appropriate eCos
18709 # I/O routines.
18710 # FIXME: this should not be a local option but a global target
18711 # system; at present there is no eCos target.
18712 TARGET_ECOS=${PROCESS-"no"}
18713
18714 # Check whether --with-ecos or --without-ecos was given.
18715 if test "${with_ecos+set}" = set; then
18716   withval="$with_ecos"
18717   TARGET_ECOS="$with_ecos"
18718
18719 fi;
18720
18721 case "$TARGET_ECOS" in
18722    no) case "$host" in
18723       *mingw*)
18724             PLATFORM=Win32
18725             PLATFORMNET=Win32
18726             PLATFORMH=win32.h
18727
18728 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
18729 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
18730 LD_PROG=`$CC --print-prog-name=ld`
18731 LD_VERSION=`$LD_PROG --version`
18732 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
18733 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
18734 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
18735   LD_OK="ok"
18736 else
18737   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
18738     LD_OK="ok"
18739   fi
18740 fi
18741 if test "x$LD_OK" != x; then
18742   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18743 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18744 else
18745   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18746 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18747   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
18748 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
18749
18750 cat >>confdefs.h <<\_ACEOF
18751 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
18752 _ACEOF
18753
18754 fi
18755       ;;
18756       *)
18757             PLATFORM=Posix
18758             PLATFORMNET=Posix
18759             PLATFORMH=posix.h
18760       ;;
18761       esac
18762       ;;
18763    *)
18764       PLATFORM=Ecos
18765       PLATFORMNET=NoNet
18766
18767 cat >>confdefs.h <<\_ACEOF
18768 #define ECOS 1
18769 _ACEOF
18770
18771       PLATFORMH=posix.h
18772       ;;
18773 esac
18774
18775           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
18776
18777
18778 cat >conftest.$ac_ext <<_ACEOF
18779 /* confdefs.h.  */
18780 _ACEOF
18781 cat confdefs.h >>conftest.$ac_ext
18782 cat >>conftest.$ac_ext <<_ACEOF
18783 /* end confdefs.h.  */
18784 #include <stdint.h>
18785
18786 _ACEOF
18787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18788   $EGREP "uint32_t" >/dev/null 2>&1; then
18789
18790 cat >>confdefs.h <<\_ACEOF
18791 #define HAVE_INT32_DEFINED 1
18792 _ACEOF
18793
18794 fi
18795 rm -f conftest*
18796
18797 cat >conftest.$ac_ext <<_ACEOF
18798 /* confdefs.h.  */
18799 _ACEOF
18800 cat confdefs.h >>conftest.$ac_ext
18801 cat >>conftest.$ac_ext <<_ACEOF
18802 /* end confdefs.h.  */
18803 #include <inttypes.h>
18804
18805 _ACEOF
18806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18807   $EGREP "uint32_t" >/dev/null 2>&1; then
18808
18809 cat >>confdefs.h <<\_ACEOF
18810 #define HAVE_INT32_DEFINED 1
18811 _ACEOF
18812
18813 fi
18814 rm -f conftest*
18815
18816 cat >conftest.$ac_ext <<_ACEOF
18817 /* confdefs.h.  */
18818 _ACEOF
18819 cat confdefs.h >>conftest.$ac_ext
18820 cat >>conftest.$ac_ext <<_ACEOF
18821 /* end confdefs.h.  */
18822 #include <sys/types.h>
18823
18824 _ACEOF
18825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18826   $EGREP "u_int32_t" >/dev/null 2>&1; then
18827
18828 cat >>confdefs.h <<\_ACEOF
18829 #define HAVE_BSD_INT32_DEFINED 1
18830 _ACEOF
18831
18832 fi
18833 rm -f conftest*
18834
18835 cat >conftest.$ac_ext <<_ACEOF
18836 /* confdefs.h.  */
18837 _ACEOF
18838 cat confdefs.h >>conftest.$ac_ext
18839 cat >>conftest.$ac_ext <<_ACEOF
18840 /* end confdefs.h.  */
18841 #include <sys/config.h>
18842
18843 _ACEOF
18844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18845   $EGREP "u_int32_t" >/dev/null 2>&1; then
18846
18847 cat >>confdefs.h <<\_ACEOF
18848 #define HAVE_BSD_INT32_DEFINED 1
18849 _ACEOF
18850
18851 fi
18852 rm -f conftest*
18853
18854
18855
18856
18857 if test "$PLATFORM" = Win32; then
18858   USING_WIN32_PLATFORM_TRUE=
18859   USING_WIN32_PLATFORM_FALSE='#'
18860 else
18861   USING_WIN32_PLATFORM_TRUE='#'
18862   USING_WIN32_PLATFORM_FALSE=
18863 fi
18864
18865
18866
18867 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
18868   USING_POSIX_PLATFORM_TRUE=
18869   USING_POSIX_PLATFORM_FALSE='#'
18870 else
18871   USING_POSIX_PLATFORM_TRUE='#'
18872   USING_POSIX_PLATFORM_FALSE=
18873 fi
18874
18875
18876 case "$host" in
18877   *-darwin*) DARWIN_CRT=true ;;
18878   *) DARWIN_CRT=false ;;
18879 esac
18880
18881
18882 if $DARWIN_CRT; then
18883   USING_DARWIN_CRT_TRUE=
18884   USING_DARWIN_CRT_FALSE='#'
18885 else
18886   USING_DARWIN_CRT_TRUE='#'
18887   USING_DARWIN_CRT_FALSE=
18888 fi
18889
18890
18891 # This may not be defined in a non-ANS conformant embedded system.
18892 # FIXME: Should these case a runtime exception in that case?
18893 cat >conftest.$ac_ext <<_ACEOF
18894 /* confdefs.h.  */
18895 _ACEOF
18896 cat confdefs.h >>conftest.$ac_ext
18897 cat >>conftest.$ac_ext <<_ACEOF
18898 /* end confdefs.h.  */
18899 #include <time.h>
18900
18901 _ACEOF
18902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18903   $EGREP "localtime" >/dev/null 2>&1; then
18904
18905 cat >>confdefs.h <<\_ACEOF
18906 #define HAVE_LOCALTIME 1
18907 _ACEOF
18908
18909 fi
18910 rm -f conftest*
18911
18912
18913 # Create the subdirectory for natFile.cc, or the attempt
18914 # to create the link will fail.
18915 test -d java || mkdir java
18916 test -d java/io || mkdir java/io
18917 test -d gnu || mkdir gnu
18918           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
18919
18920
18921 # Likewise for natConcreteProcess.cc.
18922 test -d java/lang || mkdir java/lang
18923           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
18924
18925
18926 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
18927 test -d java/net || mkdir java/net
18928           ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
18929
18930           ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
18931
18932
18933 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
18934 test -d gnu/java || mkdir gnu/java
18935 test -d gnu/java/net || mkdir gnu/java/net
18936           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
18937
18938           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
18939
18940
18941 # Likewise for natVMPipe.cc and natVMSelector.cc.
18942 test -d gnu/java/nio || mkdir gnu/java/nio
18943           ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
18944
18945           ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
18946
18947
18948 # Likewise for natFileChannelImpl.cc
18949 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
18950           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
18951
18952
18953 case "${host}" in
18954     *mingw*)
18955       SYSTEMSPEC="-lgdi32 -lws2_32"
18956       if test "${with_win32_nlsapi}" = "unicows"; then
18957         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
18958       fi
18959     ;;
18960     *)
18961       SYSTEMSPEC=
18962     ;;
18963 esac
18964
18965
18966
18967 # Check whether --with-system-zlib or --without-system-zlib was given.
18968 if test "${with_system_zlib+set}" = set; then
18969   withval="$with_system_zlib"
18970
18971 fi;
18972 ZLIBSPEC=
18973
18974 ZLIBTESTSPEC=
18975
18976
18977 echo "$as_me:$LINENO: checking for X" >&5
18978 echo $ECHO_N "checking for X... $ECHO_C" >&6
18979
18980
18981 # Check whether --with-x or --without-x was given.
18982 if test "${with_x+set}" = set; then
18983   withval="$with_x"
18984
18985 fi;
18986 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18987 if test "x$with_x" = xno; then
18988   # The user explicitly disabled X.
18989   have_x=disabled
18990 else
18991   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
18992     # Both variables are already set.
18993     have_x=yes
18994   else
18995     if test "${ac_cv_have_x+set}" = set; then
18996   echo $ECHO_N "(cached) $ECHO_C" >&6
18997 else
18998   # One or both of the vars are not set, and there is no cached value.
18999 ac_x_includes=no ac_x_libraries=no
19000 rm -fr conftest.dir
19001 if mkdir conftest.dir; then
19002   cd conftest.dir
19003   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
19004   cat >Imakefile <<'_ACEOF'
19005 acfindx:
19006         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
19007 _ACEOF
19008   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
19009     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19010     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
19011     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19012     for ac_extension in a so sl; do
19013       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
19014          test -f $ac_im_libdir/libX11.$ac_extension; then
19015         ac_im_usrlibdir=$ac_im_libdir; break
19016       fi
19017     done
19018     # Screen out bogus values from the imake configuration.  They are
19019     # bogus both because they are the default anyway, and because
19020     # using them would break gcc on systems where it needs fixed includes.
19021     case $ac_im_incroot in
19022         /usr/include) ;;
19023         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19024     esac
19025     case $ac_im_usrlibdir in
19026         /usr/lib | /lib) ;;
19027         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19028     esac
19029   fi
19030   cd ..
19031   rm -fr conftest.dir
19032 fi
19033
19034 # Standard set of common directories for X headers.
19035 # Check X11 before X11Rn because it is often a symlink to the current release.
19036 ac_x_header_dirs='
19037 /usr/X11/include
19038 /usr/X11R6/include
19039 /usr/X11R5/include
19040 /usr/X11R4/include
19041
19042 /usr/include/X11
19043 /usr/include/X11R6
19044 /usr/include/X11R5
19045 /usr/include/X11R4
19046
19047 /usr/local/X11/include
19048 /usr/local/X11R6/include
19049 /usr/local/X11R5/include
19050 /usr/local/X11R4/include
19051
19052 /usr/local/include/X11
19053 /usr/local/include/X11R6
19054 /usr/local/include/X11R5
19055 /usr/local/include/X11R4
19056
19057 /usr/X386/include
19058 /usr/x386/include
19059 /usr/XFree86/include/X11
19060
19061 /usr/include
19062 /usr/local/include
19063 /usr/unsupported/include
19064 /usr/athena/include
19065 /usr/local/x11r5/include
19066 /usr/lpp/Xamples/include
19067
19068 /usr/openwin/include
19069 /usr/openwin/share/include'
19070
19071 if test "$ac_x_includes" = no; then
19072   # Guess where to find include files, by looking for Intrinsic.h.
19073   # First, try using that file with no special directory specified.
19074   cat >conftest.$ac_ext <<_ACEOF
19075 /* confdefs.h.  */
19076 _ACEOF
19077 cat confdefs.h >>conftest.$ac_ext
19078 cat >>conftest.$ac_ext <<_ACEOF
19079 /* end confdefs.h.  */
19080 #include <X11/Intrinsic.h>
19081 _ACEOF
19082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19083   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19084   ac_status=$?
19085   grep -v '^ *+' conftest.er1 >conftest.err
19086   rm -f conftest.er1
19087   cat conftest.err >&5
19088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089   (exit $ac_status); } >/dev/null; then
19090   if test -s conftest.err; then
19091     ac_cpp_err=$ac_c_preproc_warn_flag
19092     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19093   else
19094     ac_cpp_err=
19095   fi
19096 else
19097   ac_cpp_err=yes
19098 fi
19099 if test -z "$ac_cpp_err"; then
19100   # We can compile using X headers with no special include directory.
19101 ac_x_includes=
19102 else
19103   echo "$as_me: failed program was:" >&5
19104 sed 's/^/| /' conftest.$ac_ext >&5
19105
19106   for ac_dir in $ac_x_header_dirs; do
19107   if test -r "$ac_dir/X11/Intrinsic.h"; then
19108     ac_x_includes=$ac_dir
19109     break
19110   fi
19111 done
19112 fi
19113 rm -f conftest.err conftest.$ac_ext
19114 fi # $ac_x_includes = no
19115
19116 if test "$ac_x_libraries" = no; then
19117   # Check for the libraries.
19118   # See if we find them without any special options.
19119   # Don't add to $LIBS permanently.
19120   ac_save_LIBS=$LIBS
19121   LIBS="-lXt $LIBS"
19122   if test x$gcc_no_link = xyes; then
19123   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19124 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19125    { (exit 1); exit 1; }; }
19126 fi
19127 cat >conftest.$ac_ext <<_ACEOF
19128 /* confdefs.h.  */
19129 _ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h.  */
19133 #include <X11/Intrinsic.h>
19134 int
19135 main ()
19136 {
19137 XtMalloc (0)
19138   ;
19139   return 0;
19140 }
19141 _ACEOF
19142 rm -f conftest.$ac_objext conftest$ac_exeext
19143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19144   (eval $ac_link) 2>conftest.er1
19145   ac_status=$?
19146   grep -v '^ *+' conftest.er1 >conftest.err
19147   rm -f conftest.er1
19148   cat conftest.err >&5
19149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150   (exit $ac_status); } &&
19151          { ac_try='test -z "$ac_c_werror_flag"
19152                          || test ! -s conftest.err'
19153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154   (eval $ac_try) 2>&5
19155   ac_status=$?
19156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157   (exit $ac_status); }; } &&
19158          { ac_try='test -s conftest$ac_exeext'
19159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19160   (eval $ac_try) 2>&5
19161   ac_status=$?
19162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163   (exit $ac_status); }; }; then
19164   LIBS=$ac_save_LIBS
19165 # We can link X programs with no special library path.
19166 ac_x_libraries=
19167 else
19168   echo "$as_me: failed program was:" >&5
19169 sed 's/^/| /' conftest.$ac_ext >&5
19170
19171 LIBS=$ac_save_LIBS
19172 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19173 do
19174   # Don't even attempt the hair of trying to link an X program!
19175   for ac_extension in a so sl; do
19176     if test -r $ac_dir/libXt.$ac_extension; then
19177       ac_x_libraries=$ac_dir
19178       break 2
19179     fi
19180   done
19181 done
19182 fi
19183 rm -f conftest.err conftest.$ac_objext \
19184       conftest$ac_exeext conftest.$ac_ext
19185 fi # $ac_x_libraries = no
19186
19187 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
19188   # Didn't find X anywhere.  Cache the known absence of X.
19189   ac_cv_have_x="have_x=no"
19190 else
19191   # Record where we found X for the cache.
19192   ac_cv_have_x="have_x=yes \
19193                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
19194 fi
19195 fi
19196
19197   fi
19198   eval "$ac_cv_have_x"
19199 fi # $with_x != no
19200
19201 if test "$have_x" != yes; then
19202   echo "$as_me:$LINENO: result: $have_x" >&5
19203 echo "${ECHO_T}$have_x" >&6
19204   no_x=yes
19205 else
19206   # If each of the values was on the command line, it overrides each guess.
19207   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19208   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19209   # Update the cache value to reflect the command line values.
19210   ac_cv_have_x="have_x=yes \
19211                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
19212   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19213 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
19214 fi
19215
19216 if test "$no_x" = yes; then
19217   # Not all programs may use this symbol, but it does not hurt to define it.
19218
19219 cat >>confdefs.h <<\_ACEOF
19220 #define X_DISPLAY_MISSING 1
19221 _ACEOF
19222
19223   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19224 else
19225   if test -n "$x_includes"; then
19226     X_CFLAGS="$X_CFLAGS -I$x_includes"
19227   fi
19228
19229   # It would also be nice to do this for all -L options, not just this one.
19230   if test -n "$x_libraries"; then
19231     X_LIBS="$X_LIBS -L$x_libraries"
19232     # For Solaris; some versions of Sun CC require a space after -R and
19233     # others require no space.  Words are not sufficient . . . .
19234     case `(uname -sr) 2>/dev/null` in
19235     "SunOS 5"*)
19236       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19237 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
19238       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19239       if test x$gcc_no_link = xyes; then
19240   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19241 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19242    { (exit 1); exit 1; }; }
19243 fi
19244 cat >conftest.$ac_ext <<_ACEOF
19245 /* confdefs.h.  */
19246 _ACEOF
19247 cat confdefs.h >>conftest.$ac_ext
19248 cat >>conftest.$ac_ext <<_ACEOF
19249 /* end confdefs.h.  */
19250
19251 int
19252 main ()
19253 {
19254
19255   ;
19256   return 0;
19257 }
19258 _ACEOF
19259 rm -f conftest.$ac_objext conftest$ac_exeext
19260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19261   (eval $ac_link) 2>conftest.er1
19262   ac_status=$?
19263   grep -v '^ *+' conftest.er1 >conftest.err
19264   rm -f conftest.er1
19265   cat conftest.err >&5
19266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267   (exit $ac_status); } &&
19268          { ac_try='test -z "$ac_c_werror_flag"
19269                          || test ! -s conftest.err'
19270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271   (eval $ac_try) 2>&5
19272   ac_status=$?
19273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274   (exit $ac_status); }; } &&
19275          { ac_try='test -s conftest$ac_exeext'
19276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19277   (eval $ac_try) 2>&5
19278   ac_status=$?
19279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280   (exit $ac_status); }; }; then
19281   ac_R_nospace=yes
19282 else
19283   echo "$as_me: failed program was:" >&5
19284 sed 's/^/| /' conftest.$ac_ext >&5
19285
19286 ac_R_nospace=no
19287 fi
19288 rm -f conftest.err conftest.$ac_objext \
19289       conftest$ac_exeext conftest.$ac_ext
19290       if test $ac_R_nospace = yes; then
19291         echo "$as_me:$LINENO: result: no" >&5
19292 echo "${ECHO_T}no" >&6
19293         X_LIBS="$X_LIBS -R$x_libraries"
19294       else
19295         LIBS="$ac_xsave_LIBS -R $x_libraries"
19296         if test x$gcc_no_link = xyes; then
19297   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19298 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19299    { (exit 1); exit 1; }; }
19300 fi
19301 cat >conftest.$ac_ext <<_ACEOF
19302 /* confdefs.h.  */
19303 _ACEOF
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h.  */
19307
19308 int
19309 main ()
19310 {
19311
19312   ;
19313   return 0;
19314 }
19315 _ACEOF
19316 rm -f conftest.$ac_objext conftest$ac_exeext
19317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19318   (eval $ac_link) 2>conftest.er1
19319   ac_status=$?
19320   grep -v '^ *+' conftest.er1 >conftest.err
19321   rm -f conftest.er1
19322   cat conftest.err >&5
19323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324   (exit $ac_status); } &&
19325          { ac_try='test -z "$ac_c_werror_flag"
19326                          || test ! -s conftest.err'
19327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328   (eval $ac_try) 2>&5
19329   ac_status=$?
19330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331   (exit $ac_status); }; } &&
19332          { ac_try='test -s conftest$ac_exeext'
19333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334   (eval $ac_try) 2>&5
19335   ac_status=$?
19336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337   (exit $ac_status); }; }; then
19338   ac_R_space=yes
19339 else
19340   echo "$as_me: failed program was:" >&5
19341 sed 's/^/| /' conftest.$ac_ext >&5
19342
19343 ac_R_space=no
19344 fi
19345 rm -f conftest.err conftest.$ac_objext \
19346       conftest$ac_exeext conftest.$ac_ext
19347         if test $ac_R_space = yes; then
19348           echo "$as_me:$LINENO: result: yes" >&5
19349 echo "${ECHO_T}yes" >&6
19350           X_LIBS="$X_LIBS -R $x_libraries"
19351         else
19352           echo "$as_me:$LINENO: result: neither works" >&5
19353 echo "${ECHO_T}neither works" >&6
19354         fi
19355       fi
19356       LIBS=$ac_xsave_LIBS
19357     esac
19358   fi
19359
19360   # Check for system-dependent libraries X programs must link with.
19361   # Do this before checking for the system-independent R6 libraries
19362   # (-lICE), since we may need -lsocket or whatever for X linking.
19363
19364   if test "$ISC" = yes; then
19365     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19366   else
19367     # Martyn Johnson says this is needed for Ultrix, if the X
19368     # libraries were built with DECnet support.  And Karl Berry says
19369     # the Alpha needs dnet_stub (dnet does not exist).
19370     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19371     if test x$gcc_no_link = xyes; then
19372   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19373 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19374    { (exit 1); exit 1; }; }
19375 fi
19376 cat >conftest.$ac_ext <<_ACEOF
19377 /* confdefs.h.  */
19378 _ACEOF
19379 cat confdefs.h >>conftest.$ac_ext
19380 cat >>conftest.$ac_ext <<_ACEOF
19381 /* end confdefs.h.  */
19382
19383 /* Override any gcc2 internal prototype to avoid an error.  */
19384 #ifdef __cplusplus
19385 extern "C"
19386 #endif
19387 /* We use char because int might match the return type of a gcc2
19388    builtin and then its argument prototype would still apply.  */
19389 char XOpenDisplay ();
19390 int
19391 main ()
19392 {
19393 XOpenDisplay ();
19394   ;
19395   return 0;
19396 }
19397 _ACEOF
19398 rm -f conftest.$ac_objext conftest$ac_exeext
19399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19400   (eval $ac_link) 2>conftest.er1
19401   ac_status=$?
19402   grep -v '^ *+' conftest.er1 >conftest.err
19403   rm -f conftest.er1
19404   cat conftest.err >&5
19405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406   (exit $ac_status); } &&
19407          { ac_try='test -z "$ac_c_werror_flag"
19408                          || test ! -s conftest.err'
19409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19410   (eval $ac_try) 2>&5
19411   ac_status=$?
19412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413   (exit $ac_status); }; } &&
19414          { ac_try='test -s conftest$ac_exeext'
19415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19416   (eval $ac_try) 2>&5
19417   ac_status=$?
19418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419   (exit $ac_status); }; }; then
19420   :
19421 else
19422   echo "$as_me: failed program was:" >&5
19423 sed 's/^/| /' conftest.$ac_ext >&5
19424
19425 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19426 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
19427 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19428   echo $ECHO_N "(cached) $ECHO_C" >&6
19429 else
19430   ac_check_lib_save_LIBS=$LIBS
19431 LIBS="-ldnet  $LIBS"
19432 if test x$gcc_no_link = xyes; then
19433   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19434 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19435    { (exit 1); exit 1; }; }
19436 fi
19437 cat >conftest.$ac_ext <<_ACEOF
19438 /* confdefs.h.  */
19439 _ACEOF
19440 cat confdefs.h >>conftest.$ac_ext
19441 cat >>conftest.$ac_ext <<_ACEOF
19442 /* end confdefs.h.  */
19443
19444 /* Override any gcc2 internal prototype to avoid an error.  */
19445 #ifdef __cplusplus
19446 extern "C"
19447 #endif
19448 /* We use char because int might match the return type of a gcc2
19449    builtin and then its argument prototype would still apply.  */
19450 char dnet_ntoa ();
19451 int
19452 main ()
19453 {
19454 dnet_ntoa ();
19455   ;
19456   return 0;
19457 }
19458 _ACEOF
19459 rm -f conftest.$ac_objext conftest$ac_exeext
19460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19461   (eval $ac_link) 2>conftest.er1
19462   ac_status=$?
19463   grep -v '^ *+' conftest.er1 >conftest.err
19464   rm -f conftest.er1
19465   cat conftest.err >&5
19466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467   (exit $ac_status); } &&
19468          { ac_try='test -z "$ac_c_werror_flag"
19469                          || test ! -s conftest.err'
19470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471   (eval $ac_try) 2>&5
19472   ac_status=$?
19473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474   (exit $ac_status); }; } &&
19475          { ac_try='test -s conftest$ac_exeext'
19476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477   (eval $ac_try) 2>&5
19478   ac_status=$?
19479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480   (exit $ac_status); }; }; then
19481   ac_cv_lib_dnet_dnet_ntoa=yes
19482 else
19483   echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19485
19486 ac_cv_lib_dnet_dnet_ntoa=no
19487 fi
19488 rm -f conftest.err conftest.$ac_objext \
19489       conftest$ac_exeext conftest.$ac_ext
19490 LIBS=$ac_check_lib_save_LIBS
19491 fi
19492 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19493 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
19494 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19495   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19496 fi
19497
19498     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19499       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19500 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
19501 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19502   echo $ECHO_N "(cached) $ECHO_C" >&6
19503 else
19504   ac_check_lib_save_LIBS=$LIBS
19505 LIBS="-ldnet_stub  $LIBS"
19506 if test x$gcc_no_link = xyes; then
19507   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19508 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19509    { (exit 1); exit 1; }; }
19510 fi
19511 cat >conftest.$ac_ext <<_ACEOF
19512 /* confdefs.h.  */
19513 _ACEOF
19514 cat confdefs.h >>conftest.$ac_ext
19515 cat >>conftest.$ac_ext <<_ACEOF
19516 /* end confdefs.h.  */
19517
19518 /* Override any gcc2 internal prototype to avoid an error.  */
19519 #ifdef __cplusplus
19520 extern "C"
19521 #endif
19522 /* We use char because int might match the return type of a gcc2
19523    builtin and then its argument prototype would still apply.  */
19524 char dnet_ntoa ();
19525 int
19526 main ()
19527 {
19528 dnet_ntoa ();
19529   ;
19530   return 0;
19531 }
19532 _ACEOF
19533 rm -f conftest.$ac_objext conftest$ac_exeext
19534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19535   (eval $ac_link) 2>conftest.er1
19536   ac_status=$?
19537   grep -v '^ *+' conftest.er1 >conftest.err
19538   rm -f conftest.er1
19539   cat conftest.err >&5
19540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541   (exit $ac_status); } &&
19542          { ac_try='test -z "$ac_c_werror_flag"
19543                          || test ! -s conftest.err'
19544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19545   (eval $ac_try) 2>&5
19546   ac_status=$?
19547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548   (exit $ac_status); }; } &&
19549          { ac_try='test -s conftest$ac_exeext'
19550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19551   (eval $ac_try) 2>&5
19552   ac_status=$?
19553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554   (exit $ac_status); }; }; then
19555   ac_cv_lib_dnet_stub_dnet_ntoa=yes
19556 else
19557   echo "$as_me: failed program was:" >&5
19558 sed 's/^/| /' conftest.$ac_ext >&5
19559
19560 ac_cv_lib_dnet_stub_dnet_ntoa=no
19561 fi
19562 rm -f conftest.err conftest.$ac_objext \
19563       conftest$ac_exeext conftest.$ac_ext
19564 LIBS=$ac_check_lib_save_LIBS
19565 fi
19566 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19567 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
19568 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19569   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19570 fi
19571
19572     fi
19573 fi
19574 rm -f conftest.err conftest.$ac_objext \
19575       conftest$ac_exeext conftest.$ac_ext
19576     LIBS="$ac_xsave_LIBS"
19577
19578     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19579     # to get the SysV transport functions.
19580     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19581     # needs -lnsl.
19582     # The nsl library prevents programs from opening the X display
19583     # on Irix 5.2, according to T.E. Dickey.
19584     # The functions gethostbyname, getservbyname, and inet_addr are
19585     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19586     echo "$as_me:$LINENO: checking for gethostbyname" >&5
19587 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
19588 if test "${ac_cv_func_gethostbyname+set}" = set; then
19589   echo $ECHO_N "(cached) $ECHO_C" >&6
19590 else
19591   if test x$gcc_no_link = xyes; then
19592   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19593 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19594    { (exit 1); exit 1; }; }
19595 fi
19596 cat >conftest.$ac_ext <<_ACEOF
19597 /* confdefs.h.  */
19598 _ACEOF
19599 cat confdefs.h >>conftest.$ac_ext
19600 cat >>conftest.$ac_ext <<_ACEOF
19601 /* end confdefs.h.  */
19602 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19604 #define gethostbyname innocuous_gethostbyname
19605
19606 /* System header to define __stub macros and hopefully few prototypes,
19607     which can conflict with char gethostbyname (); below.
19608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19609     <limits.h> exists even on freestanding compilers.  */
19610
19611 #ifdef __STDC__
19612 # include <limits.h>
19613 #else
19614 # include <assert.h>
19615 #endif
19616
19617 #undef gethostbyname
19618
19619 /* Override any gcc2 internal prototype to avoid an error.  */
19620 #ifdef __cplusplus
19621 extern "C"
19622 {
19623 #endif
19624 /* We use char because int might match the return type of a gcc2
19625    builtin and then its argument prototype would still apply.  */
19626 char gethostbyname ();
19627 /* The GNU C library defines this for functions which it implements
19628     to always fail with ENOSYS.  Some functions are actually named
19629     something starting with __ and the normal name is an alias.  */
19630 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
19631 choke me
19632 #else
19633 char (*f) () = gethostbyname;
19634 #endif
19635 #ifdef __cplusplus
19636 }
19637 #endif
19638
19639 int
19640 main ()
19641 {
19642 return f != gethostbyname;
19643   ;
19644   return 0;
19645 }
19646 _ACEOF
19647 rm -f conftest.$ac_objext conftest$ac_exeext
19648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19649   (eval $ac_link) 2>conftest.er1
19650   ac_status=$?
19651   grep -v '^ *+' conftest.er1 >conftest.err
19652   rm -f conftest.er1
19653   cat conftest.err >&5
19654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655   (exit $ac_status); } &&
19656          { ac_try='test -z "$ac_c_werror_flag"
19657                          || test ! -s conftest.err'
19658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659   (eval $ac_try) 2>&5
19660   ac_status=$?
19661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662   (exit $ac_status); }; } &&
19663          { ac_try='test -s conftest$ac_exeext'
19664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19665   (eval $ac_try) 2>&5
19666   ac_status=$?
19667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668   (exit $ac_status); }; }; then
19669   ac_cv_func_gethostbyname=yes
19670 else
19671   echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.$ac_ext >&5
19673
19674 ac_cv_func_gethostbyname=no
19675 fi
19676 rm -f conftest.err conftest.$ac_objext \
19677       conftest$ac_exeext conftest.$ac_ext
19678 fi
19679 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19680 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
19681
19682     if test $ac_cv_func_gethostbyname = no; then
19683       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19684 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19685 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19686   echo $ECHO_N "(cached) $ECHO_C" >&6
19687 else
19688   ac_check_lib_save_LIBS=$LIBS
19689 LIBS="-lnsl  $LIBS"
19690 if test x$gcc_no_link = xyes; then
19691   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19692 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19693    { (exit 1); exit 1; }; }
19694 fi
19695 cat >conftest.$ac_ext <<_ACEOF
19696 /* confdefs.h.  */
19697 _ACEOF
19698 cat confdefs.h >>conftest.$ac_ext
19699 cat >>conftest.$ac_ext <<_ACEOF
19700 /* end confdefs.h.  */
19701
19702 /* Override any gcc2 internal prototype to avoid an error.  */
19703 #ifdef __cplusplus
19704 extern "C"
19705 #endif
19706 /* We use char because int might match the return type of a gcc2
19707    builtin and then its argument prototype would still apply.  */
19708 char gethostbyname ();
19709 int
19710 main ()
19711 {
19712 gethostbyname ();
19713   ;
19714   return 0;
19715 }
19716 _ACEOF
19717 rm -f conftest.$ac_objext conftest$ac_exeext
19718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19719   (eval $ac_link) 2>conftest.er1
19720   ac_status=$?
19721   grep -v '^ *+' conftest.er1 >conftest.err
19722   rm -f conftest.er1
19723   cat conftest.err >&5
19724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725   (exit $ac_status); } &&
19726          { ac_try='test -z "$ac_c_werror_flag"
19727                          || test ! -s conftest.err'
19728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19729   (eval $ac_try) 2>&5
19730   ac_status=$?
19731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732   (exit $ac_status); }; } &&
19733          { ac_try='test -s conftest$ac_exeext'
19734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19735   (eval $ac_try) 2>&5
19736   ac_status=$?
19737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738   (exit $ac_status); }; }; then
19739   ac_cv_lib_nsl_gethostbyname=yes
19740 else
19741   echo "$as_me: failed program was:" >&5
19742 sed 's/^/| /' conftest.$ac_ext >&5
19743
19744 ac_cv_lib_nsl_gethostbyname=no
19745 fi
19746 rm -f conftest.err conftest.$ac_objext \
19747       conftest$ac_exeext conftest.$ac_ext
19748 LIBS=$ac_check_lib_save_LIBS
19749 fi
19750 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19751 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19752 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19753   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19754 fi
19755
19756       if test $ac_cv_lib_nsl_gethostbyname = no; then
19757         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19758 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
19759 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19760   echo $ECHO_N "(cached) $ECHO_C" >&6
19761 else
19762   ac_check_lib_save_LIBS=$LIBS
19763 LIBS="-lbsd  $LIBS"
19764 if test x$gcc_no_link = xyes; then
19765   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19766 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19767    { (exit 1); exit 1; }; }
19768 fi
19769 cat >conftest.$ac_ext <<_ACEOF
19770 /* confdefs.h.  */
19771 _ACEOF
19772 cat confdefs.h >>conftest.$ac_ext
19773 cat >>conftest.$ac_ext <<_ACEOF
19774 /* end confdefs.h.  */
19775
19776 /* Override any gcc2 internal prototype to avoid an error.  */
19777 #ifdef __cplusplus
19778 extern "C"
19779 #endif
19780 /* We use char because int might match the return type of a gcc2
19781    builtin and then its argument prototype would still apply.  */
19782 char gethostbyname ();
19783 int
19784 main ()
19785 {
19786 gethostbyname ();
19787   ;
19788   return 0;
19789 }
19790 _ACEOF
19791 rm -f conftest.$ac_objext conftest$ac_exeext
19792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19793   (eval $ac_link) 2>conftest.er1
19794   ac_status=$?
19795   grep -v '^ *+' conftest.er1 >conftest.err
19796   rm -f conftest.er1
19797   cat conftest.err >&5
19798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799   (exit $ac_status); } &&
19800          { ac_try='test -z "$ac_c_werror_flag"
19801                          || test ! -s conftest.err'
19802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19803   (eval $ac_try) 2>&5
19804   ac_status=$?
19805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806   (exit $ac_status); }; } &&
19807          { ac_try='test -s conftest$ac_exeext'
19808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19809   (eval $ac_try) 2>&5
19810   ac_status=$?
19811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812   (exit $ac_status); }; }; then
19813   ac_cv_lib_bsd_gethostbyname=yes
19814 else
19815   echo "$as_me: failed program was:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19817
19818 ac_cv_lib_bsd_gethostbyname=no
19819 fi
19820 rm -f conftest.err conftest.$ac_objext \
19821       conftest$ac_exeext conftest.$ac_ext
19822 LIBS=$ac_check_lib_save_LIBS
19823 fi
19824 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19825 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
19826 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19827   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19828 fi
19829
19830       fi
19831     fi
19832
19833     # lieder@skyler.mavd.honeywell.com says without -lsocket,
19834     # socket/setsockopt and other routines are undefined under SCO ODT
19835     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19836     # on later versions), says Simon Leinen: it contains gethostby*
19837     # variants that don't use the name server (or something).  -lsocket
19838     # must be given before -lnsl if both are needed.  We assume that
19839     # if connect needs -lnsl, so does gethostbyname.
19840     echo "$as_me:$LINENO: checking for connect" >&5
19841 echo $ECHO_N "checking for connect... $ECHO_C" >&6
19842 if test "${ac_cv_func_connect+set}" = set; then
19843   echo $ECHO_N "(cached) $ECHO_C" >&6
19844 else
19845   if test x$gcc_no_link = xyes; then
19846   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19847 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19848    { (exit 1); exit 1; }; }
19849 fi
19850 cat >conftest.$ac_ext <<_ACEOF
19851 /* confdefs.h.  */
19852 _ACEOF
19853 cat confdefs.h >>conftest.$ac_ext
19854 cat >>conftest.$ac_ext <<_ACEOF
19855 /* end confdefs.h.  */
19856 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19858 #define connect innocuous_connect
19859
19860 /* System header to define __stub macros and hopefully few prototypes,
19861     which can conflict with char connect (); below.
19862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19863     <limits.h> exists even on freestanding compilers.  */
19864
19865 #ifdef __STDC__
19866 # include <limits.h>
19867 #else
19868 # include <assert.h>
19869 #endif
19870
19871 #undef connect
19872
19873 /* Override any gcc2 internal prototype to avoid an error.  */
19874 #ifdef __cplusplus
19875 extern "C"
19876 {
19877 #endif
19878 /* We use char because int might match the return type of a gcc2
19879    builtin and then its argument prototype would still apply.  */
19880 char connect ();
19881 /* The GNU C library defines this for functions which it implements
19882     to always fail with ENOSYS.  Some functions are actually named
19883     something starting with __ and the normal name is an alias.  */
19884 #if defined (__stub_connect) || defined (__stub___connect)
19885 choke me
19886 #else
19887 char (*f) () = connect;
19888 #endif
19889 #ifdef __cplusplus
19890 }
19891 #endif
19892
19893 int
19894 main ()
19895 {
19896 return f != connect;
19897   ;
19898   return 0;
19899 }
19900 _ACEOF
19901 rm -f conftest.$ac_objext conftest$ac_exeext
19902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19903   (eval $ac_link) 2>conftest.er1
19904   ac_status=$?
19905   grep -v '^ *+' conftest.er1 >conftest.err
19906   rm -f conftest.er1
19907   cat conftest.err >&5
19908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909   (exit $ac_status); } &&
19910          { ac_try='test -z "$ac_c_werror_flag"
19911                          || test ! -s conftest.err'
19912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913   (eval $ac_try) 2>&5
19914   ac_status=$?
19915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916   (exit $ac_status); }; } &&
19917          { ac_try='test -s conftest$ac_exeext'
19918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919   (eval $ac_try) 2>&5
19920   ac_status=$?
19921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922   (exit $ac_status); }; }; then
19923   ac_cv_func_connect=yes
19924 else
19925   echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19927
19928 ac_cv_func_connect=no
19929 fi
19930 rm -f conftest.err conftest.$ac_objext \
19931       conftest$ac_exeext conftest.$ac_ext
19932 fi
19933 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19934 echo "${ECHO_T}$ac_cv_func_connect" >&6
19935
19936     if test $ac_cv_func_connect = no; then
19937       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19938 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
19939 if test "${ac_cv_lib_socket_connect+set}" = set; then
19940   echo $ECHO_N "(cached) $ECHO_C" >&6
19941 else
19942   ac_check_lib_save_LIBS=$LIBS
19943 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19944 if test x$gcc_no_link = xyes; then
19945   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19946 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19947    { (exit 1); exit 1; }; }
19948 fi
19949 cat >conftest.$ac_ext <<_ACEOF
19950 /* confdefs.h.  */
19951 _ACEOF
19952 cat confdefs.h >>conftest.$ac_ext
19953 cat >>conftest.$ac_ext <<_ACEOF
19954 /* end confdefs.h.  */
19955
19956 /* Override any gcc2 internal prototype to avoid an error.  */
19957 #ifdef __cplusplus
19958 extern "C"
19959 #endif
19960 /* We use char because int might match the return type of a gcc2
19961    builtin and then its argument prototype would still apply.  */
19962 char connect ();
19963 int
19964 main ()
19965 {
19966 connect ();
19967   ;
19968   return 0;
19969 }
19970 _ACEOF
19971 rm -f conftest.$ac_objext conftest$ac_exeext
19972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19973   (eval $ac_link) 2>conftest.er1
19974   ac_status=$?
19975   grep -v '^ *+' conftest.er1 >conftest.err
19976   rm -f conftest.er1
19977   cat conftest.err >&5
19978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979   (exit $ac_status); } &&
19980          { ac_try='test -z "$ac_c_werror_flag"
19981                          || test ! -s conftest.err'
19982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19983   (eval $ac_try) 2>&5
19984   ac_status=$?
19985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986   (exit $ac_status); }; } &&
19987          { ac_try='test -s conftest$ac_exeext'
19988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19989   (eval $ac_try) 2>&5
19990   ac_status=$?
19991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992   (exit $ac_status); }; }; then
19993   ac_cv_lib_socket_connect=yes
19994 else
19995   echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
19997
19998 ac_cv_lib_socket_connect=no
19999 fi
20000 rm -f conftest.err conftest.$ac_objext \
20001       conftest$ac_exeext conftest.$ac_ext
20002 LIBS=$ac_check_lib_save_LIBS
20003 fi
20004 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20005 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
20006 if test $ac_cv_lib_socket_connect = yes; then
20007   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20008 fi
20009
20010     fi
20011
20012     # Guillermo Gomez says -lposix is necessary on A/UX.
20013     echo "$as_me:$LINENO: checking for remove" >&5
20014 echo $ECHO_N "checking for remove... $ECHO_C" >&6
20015 if test "${ac_cv_func_remove+set}" = set; then
20016   echo $ECHO_N "(cached) $ECHO_C" >&6
20017 else
20018   if test x$gcc_no_link = xyes; then
20019   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20020 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20021    { (exit 1); exit 1; }; }
20022 fi
20023 cat >conftest.$ac_ext <<_ACEOF
20024 /* confdefs.h.  */
20025 _ACEOF
20026 cat confdefs.h >>conftest.$ac_ext
20027 cat >>conftest.$ac_ext <<_ACEOF
20028 /* end confdefs.h.  */
20029 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20030    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20031 #define remove innocuous_remove
20032
20033 /* System header to define __stub macros and hopefully few prototypes,
20034     which can conflict with char remove (); below.
20035     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20036     <limits.h> exists even on freestanding compilers.  */
20037
20038 #ifdef __STDC__
20039 # include <limits.h>
20040 #else
20041 # include <assert.h>
20042 #endif
20043
20044 #undef remove
20045
20046 /* Override any gcc2 internal prototype to avoid an error.  */
20047 #ifdef __cplusplus
20048 extern "C"
20049 {
20050 #endif
20051 /* We use char because int might match the return type of a gcc2
20052    builtin and then its argument prototype would still apply.  */
20053 char remove ();
20054 /* The GNU C library defines this for functions which it implements
20055     to always fail with ENOSYS.  Some functions are actually named
20056     something starting with __ and the normal name is an alias.  */
20057 #if defined (__stub_remove) || defined (__stub___remove)
20058 choke me
20059 #else
20060 char (*f) () = remove;
20061 #endif
20062 #ifdef __cplusplus
20063 }
20064 #endif
20065
20066 int
20067 main ()
20068 {
20069 return f != remove;
20070   ;
20071   return 0;
20072 }
20073 _ACEOF
20074 rm -f conftest.$ac_objext conftest$ac_exeext
20075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20076   (eval $ac_link) 2>conftest.er1
20077   ac_status=$?
20078   grep -v '^ *+' conftest.er1 >conftest.err
20079   rm -f conftest.er1
20080   cat conftest.err >&5
20081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082   (exit $ac_status); } &&
20083          { ac_try='test -z "$ac_c_werror_flag"
20084                          || test ! -s conftest.err'
20085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20086   (eval $ac_try) 2>&5
20087   ac_status=$?
20088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089   (exit $ac_status); }; } &&
20090          { ac_try='test -s conftest$ac_exeext'
20091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20092   (eval $ac_try) 2>&5
20093   ac_status=$?
20094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095   (exit $ac_status); }; }; then
20096   ac_cv_func_remove=yes
20097 else
20098   echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20100
20101 ac_cv_func_remove=no
20102 fi
20103 rm -f conftest.err conftest.$ac_objext \
20104       conftest$ac_exeext conftest.$ac_ext
20105 fi
20106 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20107 echo "${ECHO_T}$ac_cv_func_remove" >&6
20108
20109     if test $ac_cv_func_remove = no; then
20110       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20111 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
20112 if test "${ac_cv_lib_posix_remove+set}" = set; then
20113   echo $ECHO_N "(cached) $ECHO_C" >&6
20114 else
20115   ac_check_lib_save_LIBS=$LIBS
20116 LIBS="-lposix  $LIBS"
20117 if test x$gcc_no_link = xyes; then
20118   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20119 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20120    { (exit 1); exit 1; }; }
20121 fi
20122 cat >conftest.$ac_ext <<_ACEOF
20123 /* confdefs.h.  */
20124 _ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h.  */
20128
20129 /* Override any gcc2 internal prototype to avoid an error.  */
20130 #ifdef __cplusplus
20131 extern "C"
20132 #endif
20133 /* We use char because int might match the return type of a gcc2
20134    builtin and then its argument prototype would still apply.  */
20135 char remove ();
20136 int
20137 main ()
20138 {
20139 remove ();
20140   ;
20141   return 0;
20142 }
20143 _ACEOF
20144 rm -f conftest.$ac_objext conftest$ac_exeext
20145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20146   (eval $ac_link) 2>conftest.er1
20147   ac_status=$?
20148   grep -v '^ *+' conftest.er1 >conftest.err
20149   rm -f conftest.er1
20150   cat conftest.err >&5
20151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152   (exit $ac_status); } &&
20153          { ac_try='test -z "$ac_c_werror_flag"
20154                          || test ! -s conftest.err'
20155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20156   (eval $ac_try) 2>&5
20157   ac_status=$?
20158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159   (exit $ac_status); }; } &&
20160          { ac_try='test -s conftest$ac_exeext'
20161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162   (eval $ac_try) 2>&5
20163   ac_status=$?
20164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165   (exit $ac_status); }; }; then
20166   ac_cv_lib_posix_remove=yes
20167 else
20168   echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20170
20171 ac_cv_lib_posix_remove=no
20172 fi
20173 rm -f conftest.err conftest.$ac_objext \
20174       conftest$ac_exeext conftest.$ac_ext
20175 LIBS=$ac_check_lib_save_LIBS
20176 fi
20177 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20178 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
20179 if test $ac_cv_lib_posix_remove = yes; then
20180   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20181 fi
20182
20183     fi
20184
20185     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20186     echo "$as_me:$LINENO: checking for shmat" >&5
20187 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
20188 if test "${ac_cv_func_shmat+set}" = set; then
20189   echo $ECHO_N "(cached) $ECHO_C" >&6
20190 else
20191   if test x$gcc_no_link = xyes; then
20192   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20193 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20194    { (exit 1); exit 1; }; }
20195 fi
20196 cat >conftest.$ac_ext <<_ACEOF
20197 /* confdefs.h.  */
20198 _ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h.  */
20202 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20204 #define shmat innocuous_shmat
20205
20206 /* System header to define __stub macros and hopefully few prototypes,
20207     which can conflict with char shmat (); below.
20208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20209     <limits.h> exists even on freestanding compilers.  */
20210
20211 #ifdef __STDC__
20212 # include <limits.h>
20213 #else
20214 # include <assert.h>
20215 #endif
20216
20217 #undef shmat
20218
20219 /* Override any gcc2 internal prototype to avoid an error.  */
20220 #ifdef __cplusplus
20221 extern "C"
20222 {
20223 #endif
20224 /* We use char because int might match the return type of a gcc2
20225    builtin and then its argument prototype would still apply.  */
20226 char shmat ();
20227 /* The GNU C library defines this for functions which it implements
20228     to always fail with ENOSYS.  Some functions are actually named
20229     something starting with __ and the normal name is an alias.  */
20230 #if defined (__stub_shmat) || defined (__stub___shmat)
20231 choke me
20232 #else
20233 char (*f) () = shmat;
20234 #endif
20235 #ifdef __cplusplus
20236 }
20237 #endif
20238
20239 int
20240 main ()
20241 {
20242 return f != shmat;
20243   ;
20244   return 0;
20245 }
20246 _ACEOF
20247 rm -f conftest.$ac_objext conftest$ac_exeext
20248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20249   (eval $ac_link) 2>conftest.er1
20250   ac_status=$?
20251   grep -v '^ *+' conftest.er1 >conftest.err
20252   rm -f conftest.er1
20253   cat conftest.err >&5
20254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255   (exit $ac_status); } &&
20256          { ac_try='test -z "$ac_c_werror_flag"
20257                          || test ! -s conftest.err'
20258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20259   (eval $ac_try) 2>&5
20260   ac_status=$?
20261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262   (exit $ac_status); }; } &&
20263          { ac_try='test -s conftest$ac_exeext'
20264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20265   (eval $ac_try) 2>&5
20266   ac_status=$?
20267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268   (exit $ac_status); }; }; then
20269   ac_cv_func_shmat=yes
20270 else
20271   echo "$as_me: failed program was:" >&5
20272 sed 's/^/| /' conftest.$ac_ext >&5
20273
20274 ac_cv_func_shmat=no
20275 fi
20276 rm -f conftest.err conftest.$ac_objext \
20277       conftest$ac_exeext conftest.$ac_ext
20278 fi
20279 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20280 echo "${ECHO_T}$ac_cv_func_shmat" >&6
20281
20282     if test $ac_cv_func_shmat = no; then
20283       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20284 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
20285 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20286   echo $ECHO_N "(cached) $ECHO_C" >&6
20287 else
20288   ac_check_lib_save_LIBS=$LIBS
20289 LIBS="-lipc  $LIBS"
20290 if test x$gcc_no_link = xyes; then
20291   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20292 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20293    { (exit 1); exit 1; }; }
20294 fi
20295 cat >conftest.$ac_ext <<_ACEOF
20296 /* confdefs.h.  */
20297 _ACEOF
20298 cat confdefs.h >>conftest.$ac_ext
20299 cat >>conftest.$ac_ext <<_ACEOF
20300 /* end confdefs.h.  */
20301
20302 /* Override any gcc2 internal prototype to avoid an error.  */
20303 #ifdef __cplusplus
20304 extern "C"
20305 #endif
20306 /* We use char because int might match the return type of a gcc2
20307    builtin and then its argument prototype would still apply.  */
20308 char shmat ();
20309 int
20310 main ()
20311 {
20312 shmat ();
20313   ;
20314   return 0;
20315 }
20316 _ACEOF
20317 rm -f conftest.$ac_objext conftest$ac_exeext
20318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20319   (eval $ac_link) 2>conftest.er1
20320   ac_status=$?
20321   grep -v '^ *+' conftest.er1 >conftest.err
20322   rm -f conftest.er1
20323   cat conftest.err >&5
20324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325   (exit $ac_status); } &&
20326          { ac_try='test -z "$ac_c_werror_flag"
20327                          || test ! -s conftest.err'
20328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20329   (eval $ac_try) 2>&5
20330   ac_status=$?
20331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332   (exit $ac_status); }; } &&
20333          { ac_try='test -s conftest$ac_exeext'
20334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335   (eval $ac_try) 2>&5
20336   ac_status=$?
20337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338   (exit $ac_status); }; }; then
20339   ac_cv_lib_ipc_shmat=yes
20340 else
20341   echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20343
20344 ac_cv_lib_ipc_shmat=no
20345 fi
20346 rm -f conftest.err conftest.$ac_objext \
20347       conftest$ac_exeext conftest.$ac_ext
20348 LIBS=$ac_check_lib_save_LIBS
20349 fi
20350 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20351 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
20352 if test $ac_cv_lib_ipc_shmat = yes; then
20353   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20354 fi
20355
20356     fi
20357   fi
20358
20359   # Check for libraries that X11R6 Xt/Xaw programs need.
20360   ac_save_LDFLAGS=$LDFLAGS
20361   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20362   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20363   # check for ICE first), but we must link in the order -lSM -lICE or
20364   # we get undefined symbols.  So assume we have SM if we have ICE.
20365   # These have to be linked with before -lX11, unlike the other
20366   # libraries we check for below, so use a different variable.
20367   # John Interrante, Karl Berry
20368   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20369 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
20370 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20371   echo $ECHO_N "(cached) $ECHO_C" >&6
20372 else
20373   ac_check_lib_save_LIBS=$LIBS
20374 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20375 if test x$gcc_no_link = xyes; then
20376   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20377 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20378    { (exit 1); exit 1; }; }
20379 fi
20380 cat >conftest.$ac_ext <<_ACEOF
20381 /* confdefs.h.  */
20382 _ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h.  */
20386
20387 /* Override any gcc2 internal prototype to avoid an error.  */
20388 #ifdef __cplusplus
20389 extern "C"
20390 #endif
20391 /* We use char because int might match the return type of a gcc2
20392    builtin and then its argument prototype would still apply.  */
20393 char IceConnectionNumber ();
20394 int
20395 main ()
20396 {
20397 IceConnectionNumber ();
20398   ;
20399   return 0;
20400 }
20401 _ACEOF
20402 rm -f conftest.$ac_objext conftest$ac_exeext
20403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20404   (eval $ac_link) 2>conftest.er1
20405   ac_status=$?
20406   grep -v '^ *+' conftest.er1 >conftest.err
20407   rm -f conftest.er1
20408   cat conftest.err >&5
20409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410   (exit $ac_status); } &&
20411          { ac_try='test -z "$ac_c_werror_flag"
20412                          || test ! -s conftest.err'
20413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20414   (eval $ac_try) 2>&5
20415   ac_status=$?
20416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417   (exit $ac_status); }; } &&
20418          { ac_try='test -s conftest$ac_exeext'
20419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420   (eval $ac_try) 2>&5
20421   ac_status=$?
20422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423   (exit $ac_status); }; }; then
20424   ac_cv_lib_ICE_IceConnectionNumber=yes
20425 else
20426   echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20428
20429 ac_cv_lib_ICE_IceConnectionNumber=no
20430 fi
20431 rm -f conftest.err conftest.$ac_objext \
20432       conftest$ac_exeext conftest.$ac_ext
20433 LIBS=$ac_check_lib_save_LIBS
20434 fi
20435 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20436 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
20437 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20438   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20439 fi
20440
20441   LDFLAGS=$ac_save_LDFLAGS
20442
20443 fi
20444
20445
20446 # FIXME: this should be _libs on some hosts.
20447 libsubdir=.libs
20448
20449 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20450
20451 LIBSTDCXXSPEC=
20452 # extra LD Flags which are required for targets
20453 case "${host}" in
20454 *-*-darwin[0-7].*)
20455     # For now we have to disable it on darwin[8-9] because it slows down
20456     # the linking phase. A possible bug in ld?
20457     # on Darwin -single_module speeds up loading of the dynamic libraries.
20458     extra_ldflags_libjava=-Wl,-single_module
20459     ;;
20460 *-*-darwin[9]*)
20461     extra_gij_ldflags=-Wl,-allow_stack_execute
20462     ;;
20463 arm*linux*eabi)
20464     # Some of the ARM unwinder code is actually in libstdc++.  We
20465     # could in principle replicate it in libgcj, but it's better to
20466     # have a dependency on libstdc++.
20467     extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20468     LIBSTDCXXSPEC=-lstdc++
20469     LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20470     ;;
20471 esac
20472
20473
20474
20475
20476
20477
20478
20479 # Allow the GC to be disabled.  Can be useful when debugging.
20480 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
20481 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
20482 # Check whether --enable-java-gc or --disable-java-gc was given.
20483 if test "${enable_java_gc+set}" = set; then
20484   enableval="$enable_java_gc"
20485   GC=$enableval
20486 else
20487   GC=boehm
20488 fi;
20489 GCLIBS=
20490 GCINCS=
20491 GCDEPS=
20492 GCSPEC=
20493 JC1GCSPEC=
20494 GCTESTSPEC=
20495 case "$GC" in
20496  boehm)
20497     echo "$as_me:$LINENO: result: boehm" >&5
20498 echo "${ECHO_T}boehm" >&6
20499     GCLIBS=../boehm-gc/libgcjgc_convenience.la
20500     JC1GCSPEC='-fuse-boehm-gc'
20501     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20502     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20503     GCOBJS=boehm.lo
20504     GCHDR=boehm-gc.h
20505     # The POSIX thread support needs to know this.
20506
20507 cat >>confdefs.h <<\_ACEOF
20508 #define HAVE_BOEHM_GC 1
20509 _ACEOF
20510
20511     ;;
20512  no)
20513     echo "$as_me:$LINENO: result: none" >&5
20514 echo "${ECHO_T}none" >&6
20515     GCHDR=no-gc.h
20516     ;;
20517  *)
20518     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
20519 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
20520    { (exit 1); exit 1; }; }
20521     ;;
20522 esac
20523
20524
20525
20526
20527
20528
20529           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20530
20531
20532
20533 if test "$GC" = boehm; then
20534   USING_BOEHMGC_TRUE=
20535   USING_BOEHMGC_FALSE='#'
20536 else
20537   USING_BOEHMGC_TRUE='#'
20538   USING_BOEHMGC_FALSE=
20539 fi
20540
20541
20542
20543 if test "$GC" = no; then
20544   USING_NOGC_TRUE=
20545   USING_NOGC_FALSE='#'
20546 else
20547   USING_NOGC_TRUE='#'
20548   USING_NOGC_FALSE=
20549 fi
20550
20551
20552
20553 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
20554 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
20555 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20556 echo "$as_me:$LINENO: result: $THREADS" >&5
20557 echo "${ECHO_T}$THREADS" >&6
20558
20559 case "$THREADS" in
20560  no | none | single)
20561     THREADS=none
20562     ;;
20563  posix | posix95 | pthreads)
20564     THREADS=posix
20565     case "$host" in
20566      *-*-linux*)
20567
20568 cat >>confdefs.h <<\_ACEOF
20569 #define LINUX_THREADS 1
20570 _ACEOF
20571
20572         ;;
20573     esac
20574     ;;
20575  win32)
20576     ;;
20577  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20578     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
20579 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
20580    { (exit 1); exit 1; }; }
20581     ;;
20582  *)
20583     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
20584 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
20585    { (exit 1); exit 1; }; }
20586     ;;
20587 esac
20588
20589 THREADCXXFLAGS=
20590 THREADLDFLAGS=
20591 THREADLIBS=
20592 THREADINCS=
20593 THREADDEPS=
20594 THREADH=
20595 THREADSPEC=
20596 THREADSTARTFILESPEC=
20597 case "$THREADS" in
20598  posix)
20599     case "$host" in
20600      *-*-cygwin*)
20601         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
20602         ;;
20603      *-*-freebsd[1234]*)
20604         # Before FreeBSD 5, it didn't have -lpthread (or any library which
20605         # merely adds pthread_* functions) but it does have a -pthread switch
20606         # which is required at link-time to select -lc_r *instead* of -lc.
20607         THREADLDFLAGS=-pthread
20608         # Don't set THREADSPEC here as might be expected since -pthread is
20609         # not processed when found within a spec file, it must come from
20610         # the command line.  For now, the user must provide the -pthread
20611         # switch to link code compiled with gcj.  In future, consider adding
20612         # support for weak references to pthread_* functions ala gthr.h API.
20613         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20614         ;;
20615      *-*-freebsd*)
20616         # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20617         # systems which support threads and -lpthread.
20618         THREADLDFLAGS=-pthread
20619         THREADSPEC=-lpthread
20620         ;;
20621      alpha*-dec-osf* | hppa*-hp-hpux*)
20622         THREADCXXFLAGS=-pthread
20623         # boehm-gc needs some functions from librt, so link that too.
20624         THREADLIBS='-lpthread -lrt'
20625         THREADSPEC='-lpthread -lrt'
20626         ;;
20627      *)
20628         THREADLIBS=-lpthread
20629         THREADSPEC=-lpthread
20630         ;;
20631     esac
20632     THREADH=posix-threads.h
20633     # MIT pthreads doesn't seem to have the mutexattr functions.
20634     # But for now we don't check for it.  We just assume you aren't
20635     # using MIT pthreads.
20636
20637 cat >>confdefs.h <<\_ACEOF
20638 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20639 _ACEOF
20640
20641
20642     # If we're using the Boehm GC, then we happen to know that it
20643     # defines _REENTRANT, so we don't bother.  Eww.
20644     if test "$GC" != boehm; then
20645
20646 cat >>confdefs.h <<\_ACEOF
20647 #define _REENTRANT 1
20648 _ACEOF
20649
20650     fi
20651
20652 cat >>confdefs.h <<\_ACEOF
20653 #define _POSIX_PTHREAD_SEMANTICS 1
20654 _ACEOF
20655
20656     ;;
20657
20658  win32)
20659     THREADH=win32-threads.h
20660     THREADCXXFLAGS=-mthreads
20661     # We need thread-safe exception handling so _CRT_MT should be set to 1.
20662     # But we do not want the executables created to be dependent on
20663     # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20664     # exception handling contexts.  The following kludge achieves this effect
20665     # and causes a dummy __mingwthr_key_dtor() to be linked in from
20666     # libmingw32.a.  This causes a memory leak of about 24 bytes per thread.
20667     # A workaround is to explicitly use -mthreads while linking Java programs.
20668     # See PR libgcj/28263.
20669     #
20670     # FIXME: In Java we are able to detect thread death at the end of
20671     # Thread.run() so we should be able to clean up the exception handling
20672     # contexts ourselves.
20673     THREADSTARTFILESPEC='crtmt%O%s'
20674     ;;
20675
20676  none)
20677     THREADH=no-threads.h
20678     ;;
20679 esac
20680           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691 if test "$THREADS" = posix; then
20692   USING_POSIX_THREADS_TRUE=
20693   USING_POSIX_THREADS_FALSE='#'
20694 else
20695   USING_POSIX_THREADS_TRUE='#'
20696   USING_POSIX_THREADS_FALSE=
20697 fi
20698
20699
20700
20701 if test "$THREADS" = win32; then
20702   USING_WIN32_THREADS_TRUE=
20703   USING_WIN32_THREADS_FALSE='#'
20704 else
20705   USING_WIN32_THREADS_TRUE='#'
20706   USING_WIN32_THREADS_FALSE=
20707 fi
20708
20709
20710
20711 if test "$THREADS" = none; then
20712   USING_NO_THREADS_TRUE=
20713   USING_NO_THREADS_FALSE='#'
20714 else
20715   USING_NO_THREADS_TRUE='#'
20716   USING_NO_THREADS_FALSE=
20717 fi
20718
20719
20720
20721 if test "$use_libgcj_bc" = yes; then
20722   USE_LIBGCJ_BC_TRUE=
20723   USE_LIBGCJ_BC_FALSE='#'
20724 else
20725   USE_LIBGCJ_BC_TRUE='#'
20726   USE_LIBGCJ_BC_FALSE=
20727 fi
20728
20729
20730 if test -d sysdep; then true; else mkdir sysdep; fi
20731           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20732
20733           ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20734
20735           ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20736
20737
20738 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
20739 if test "$use_libgcj_bc" = yes; then
20740   LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
20741 fi
20742
20743
20744 HASH_SYNC_SPEC=
20745 # Hash synchronization is only useful with posix threads right now.
20746 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20747    HASH_SYNC_SPEC=-fhash-synchronization
20748
20749 cat >>confdefs.h <<\_ACEOF
20750 #define JV_HASH_SYNCHRONIZATION 1
20751 _ACEOF
20752
20753 fi
20754
20755
20756
20757
20758 if test "$GCC" = yes; then
20759   USING_GCC_TRUE=
20760   USING_GCC_FALSE='#'
20761 else
20762   USING_GCC_TRUE='#'
20763   USING_GCC_FALSE=
20764 fi
20765
20766
20767 # We're in the tree with gcc, and need to include some of its headers.
20768 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20769
20770 if test "x${with_newlib}" = "xyes"; then
20771    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
20772    # may not work correctly, because the compiler may not be able to
20773    # link executables.
20774
20775    # We assume newlib.  This lets us hard-code the functions we know
20776    # we'll have.
20777
20778 cat >>confdefs.h <<\_ACEOF
20779 #define HAVE_MEMMOVE 1
20780 _ACEOF
20781
20782
20783 cat >>confdefs.h <<\_ACEOF
20784 #define HAVE_MEMCPY 1
20785 _ACEOF
20786
20787
20788 cat >>confdefs.h <<\_ACEOF
20789 #define HAVE_TIME 1
20790 _ACEOF
20791
20792
20793 cat >>confdefs.h <<\_ACEOF
20794 #define HAVE_GMTIME_R 1
20795 _ACEOF
20796
20797
20798 cat >>confdefs.h <<\_ACEOF
20799 #define HAVE_LOCALTIME_R 1
20800 _ACEOF
20801
20802
20803 cat >>confdefs.h <<\_ACEOF
20804 #define HAVE_USLEEP_DECL 1
20805 _ACEOF
20806
20807    # This is only for POSIX threads.
20808
20809 cat >>confdefs.h <<\_ACEOF
20810 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20811 _ACEOF
20812
20813
20814    # Assume we do not have getuid and friends.
20815
20816 cat >>confdefs.h <<\_ACEOF
20817 #define NO_GETUID 1
20818 _ACEOF
20819
20820    PLATFORMNET=NoNet
20821 else
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852 for ac_func in strerror_r select fstat open fsync sleep opendir \
20853                    localtime_r getpwuid_r getcwd \
20854                    access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20855                    nl_langinfo setlocale \
20856                    inet_pton uname inet_ntoa \
20857                    getrlimit sigaction ftruncate mmap \
20858                    getifaddrs
20859 do
20860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20861 echo "$as_me:$LINENO: checking for $ac_func" >&5
20862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20863 if eval "test \"\${$as_ac_var+set}\" = set"; then
20864   echo $ECHO_N "(cached) $ECHO_C" >&6
20865 else
20866   if test x$gcc_no_link = xyes; then
20867   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20868 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20869    { (exit 1); exit 1; }; }
20870 fi
20871 cat >conftest.$ac_ext <<_ACEOF
20872 /* confdefs.h.  */
20873 _ACEOF
20874 cat confdefs.h >>conftest.$ac_ext
20875 cat >>conftest.$ac_ext <<_ACEOF
20876 /* end confdefs.h.  */
20877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20878    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20879 #define $ac_func innocuous_$ac_func
20880
20881 /* System header to define __stub macros and hopefully few prototypes,
20882     which can conflict with char $ac_func (); below.
20883     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20884     <limits.h> exists even on freestanding compilers.  */
20885
20886 #ifdef __STDC__
20887 # include <limits.h>
20888 #else
20889 # include <assert.h>
20890 #endif
20891
20892 #undef $ac_func
20893
20894 /* Override any gcc2 internal prototype to avoid an error.  */
20895 #ifdef __cplusplus
20896 extern "C"
20897 {
20898 #endif
20899 /* We use char because int might match the return type of a gcc2
20900    builtin and then its argument prototype would still apply.  */
20901 char $ac_func ();
20902 /* The GNU C library defines this for functions which it implements
20903     to always fail with ENOSYS.  Some functions are actually named
20904     something starting with __ and the normal name is an alias.  */
20905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20906 choke me
20907 #else
20908 char (*f) () = $ac_func;
20909 #endif
20910 #ifdef __cplusplus
20911 }
20912 #endif
20913
20914 int
20915 main ()
20916 {
20917 return f != $ac_func;
20918   ;
20919   return 0;
20920 }
20921 _ACEOF
20922 rm -f conftest.$ac_objext conftest$ac_exeext
20923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20924   (eval $ac_link) 2>conftest.er1
20925   ac_status=$?
20926   grep -v '^ *+' conftest.er1 >conftest.err
20927   rm -f conftest.er1
20928   cat conftest.err >&5
20929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930   (exit $ac_status); } &&
20931          { ac_try='test -z "$ac_c_werror_flag"
20932                          || test ! -s conftest.err'
20933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20934   (eval $ac_try) 2>&5
20935   ac_status=$?
20936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937   (exit $ac_status); }; } &&
20938          { ac_try='test -s 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   eval "$as_ac_var=yes"
20945 else
20946   echo "$as_me: failed program was:" >&5
20947 sed 's/^/| /' conftest.$ac_ext >&5
20948
20949 eval "$as_ac_var=no"
20950 fi
20951 rm -f conftest.err conftest.$ac_objext \
20952       conftest$ac_exeext conftest.$ac_ext
20953 fi
20954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20956 if test `eval echo '${'$as_ac_var'}'` = yes; then
20957   cat >>confdefs.h <<_ACEOF
20958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20959 _ACEOF
20960
20961 fi
20962 done
20963
20964
20965
20966 for ac_func in inet_aton inet_addr
20967 do
20968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20969 echo "$as_me:$LINENO: checking for $ac_func" >&5
20970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20971 if eval "test \"\${$as_ac_var+set}\" = set"; then
20972   echo $ECHO_N "(cached) $ECHO_C" >&6
20973 else
20974   if test x$gcc_no_link = xyes; then
20975   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20976 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20977    { (exit 1); exit 1; }; }
20978 fi
20979 cat >conftest.$ac_ext <<_ACEOF
20980 /* confdefs.h.  */
20981 _ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h.  */
20985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20987 #define $ac_func innocuous_$ac_func
20988
20989 /* System header to define __stub macros and hopefully few prototypes,
20990     which can conflict with char $ac_func (); below.
20991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20992     <limits.h> exists even on freestanding compilers.  */
20993
20994 #ifdef __STDC__
20995 # include <limits.h>
20996 #else
20997 # include <assert.h>
20998 #endif
20999
21000 #undef $ac_func
21001
21002 /* Override any gcc2 internal prototype to avoid an error.  */
21003 #ifdef __cplusplus
21004 extern "C"
21005 {
21006 #endif
21007 /* We use char because int might match the return type of a gcc2
21008    builtin and then its argument prototype would still apply.  */
21009 char $ac_func ();
21010 /* The GNU C library defines this for functions which it implements
21011     to always fail with ENOSYS.  Some functions are actually named
21012     something starting with __ and the normal name is an alias.  */
21013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21014 choke me
21015 #else
21016 char (*f) () = $ac_func;
21017 #endif
21018 #ifdef __cplusplus
21019 }
21020 #endif
21021
21022 int
21023 main ()
21024 {
21025 return f != $ac_func;
21026   ;
21027   return 0;
21028 }
21029 _ACEOF
21030 rm -f conftest.$ac_objext conftest$ac_exeext
21031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21032   (eval $ac_link) 2>conftest.er1
21033   ac_status=$?
21034   grep -v '^ *+' conftest.er1 >conftest.err
21035   rm -f conftest.er1
21036   cat conftest.err >&5
21037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038   (exit $ac_status); } &&
21039          { ac_try='test -z "$ac_c_werror_flag"
21040                          || test ! -s conftest.err'
21041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21042   (eval $ac_try) 2>&5
21043   ac_status=$?
21044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045   (exit $ac_status); }; } &&
21046          { ac_try='test -s conftest$ac_exeext'
21047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21048   (eval $ac_try) 2>&5
21049   ac_status=$?
21050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051   (exit $ac_status); }; }; then
21052   eval "$as_ac_var=yes"
21053 else
21054   echo "$as_me: failed program was:" >&5
21055 sed 's/^/| /' conftest.$ac_ext >&5
21056
21057 eval "$as_ac_var=no"
21058 fi
21059 rm -f conftest.err conftest.$ac_objext \
21060       conftest$ac_exeext conftest.$ac_ext
21061 fi
21062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21064 if test `eval echo '${'$as_ac_var'}'` = yes; then
21065   cat >>confdefs.h <<_ACEOF
21066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21067 _ACEOF
21068  break
21069 fi
21070 done
21071
21072
21073
21074
21075 for ac_header in unistd.h dlfcn.h sys/resource.h
21076 do
21077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21079   echo "$as_me:$LINENO: checking for $ac_header" >&5
21080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21082   echo $ECHO_N "(cached) $ECHO_C" >&6
21083 fi
21084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21086 else
21087   # Is the header compilable?
21088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21090 cat >conftest.$ac_ext <<_ACEOF
21091 /* confdefs.h.  */
21092 _ACEOF
21093 cat confdefs.h >>conftest.$ac_ext
21094 cat >>conftest.$ac_ext <<_ACEOF
21095 /* end confdefs.h.  */
21096 $ac_includes_default
21097 #include <$ac_header>
21098 _ACEOF
21099 rm -f conftest.$ac_objext
21100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21101   (eval $ac_compile) 2>conftest.er1
21102   ac_status=$?
21103   grep -v '^ *+' conftest.er1 >conftest.err
21104   rm -f conftest.er1
21105   cat conftest.err >&5
21106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107   (exit $ac_status); } &&
21108          { ac_try='test -z "$ac_c_werror_flag"
21109                          || test ! -s conftest.err'
21110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21111   (eval $ac_try) 2>&5
21112   ac_status=$?
21113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114   (exit $ac_status); }; } &&
21115          { ac_try='test -s conftest.$ac_objext'
21116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21117   (eval $ac_try) 2>&5
21118   ac_status=$?
21119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120   (exit $ac_status); }; }; then
21121   ac_header_compiler=yes
21122 else
21123   echo "$as_me: failed program was:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21125
21126 ac_header_compiler=no
21127 fi
21128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21130 echo "${ECHO_T}$ac_header_compiler" >&6
21131
21132 # Is the header present?
21133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21135 cat >conftest.$ac_ext <<_ACEOF
21136 /* confdefs.h.  */
21137 _ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h.  */
21141 #include <$ac_header>
21142 _ACEOF
21143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21144   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21145   ac_status=$?
21146   grep -v '^ *+' conftest.er1 >conftest.err
21147   rm -f conftest.er1
21148   cat conftest.err >&5
21149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150   (exit $ac_status); } >/dev/null; then
21151   if test -s conftest.err; then
21152     ac_cpp_err=$ac_c_preproc_warn_flag
21153     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21154   else
21155     ac_cpp_err=
21156   fi
21157 else
21158   ac_cpp_err=yes
21159 fi
21160 if test -z "$ac_cpp_err"; then
21161   ac_header_preproc=yes
21162 else
21163   echo "$as_me: failed program was:" >&5
21164 sed 's/^/| /' conftest.$ac_ext >&5
21165
21166   ac_header_preproc=no
21167 fi
21168 rm -f conftest.err conftest.$ac_ext
21169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21170 echo "${ECHO_T}$ac_header_preproc" >&6
21171
21172 # So?  What about this header?
21173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21174   yes:no: )
21175     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21179     ac_header_preproc=yes
21180     ;;
21181   no:yes:* )
21182     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21184     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21185 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21186     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21188     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21189 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21192     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21194     (
21195       cat <<\_ASBOX
21196 ## ---------------------------------- ##
21197 ## Report this to the libjava lists.  ##
21198 ## ---------------------------------- ##
21199 _ASBOX
21200     ) |
21201       sed "s/^/$as_me: WARNING:     /" >&2
21202     ;;
21203 esac
21204 echo "$as_me:$LINENO: checking for $ac_header" >&5
21205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21207   echo $ECHO_N "(cached) $ECHO_C" >&6
21208 else
21209   eval "$as_ac_Header=\$ac_header_preproc"
21210 fi
21211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21213
21214 fi
21215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21216   cat >>confdefs.h <<_ACEOF
21217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21218 _ACEOF
21219
21220 fi
21221
21222 done
21223
21224    # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
21225    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
21226 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
21227 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
21228   echo $ECHO_N "(cached) $ECHO_C" >&6
21229 else
21230   ac_check_lib_save_LIBS=$LIBS
21231 LIBS="-ldl  $LIBS"
21232 if test x$gcc_no_link = xyes; then
21233   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21234 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21235    { (exit 1); exit 1; }; }
21236 fi
21237 cat >conftest.$ac_ext <<_ACEOF
21238 /* confdefs.h.  */
21239 _ACEOF
21240 cat confdefs.h >>conftest.$ac_ext
21241 cat >>conftest.$ac_ext <<_ACEOF
21242 /* end confdefs.h.  */
21243
21244 /* Override any gcc2 internal prototype to avoid an error.  */
21245 #ifdef __cplusplus
21246 extern "C"
21247 #endif
21248 /* We use char because int might match the return type of a gcc2
21249    builtin and then its argument prototype would still apply.  */
21250 char dladdr ();
21251 int
21252 main ()
21253 {
21254 dladdr ();
21255   ;
21256   return 0;
21257 }
21258 _ACEOF
21259 rm -f conftest.$ac_objext conftest$ac_exeext
21260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21261   (eval $ac_link) 2>conftest.er1
21262   ac_status=$?
21263   grep -v '^ *+' conftest.er1 >conftest.err
21264   rm -f conftest.er1
21265   cat conftest.err >&5
21266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267   (exit $ac_status); } &&
21268          { ac_try='test -z "$ac_c_werror_flag"
21269                          || test ! -s conftest.err'
21270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21271   (eval $ac_try) 2>&5
21272   ac_status=$?
21273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274   (exit $ac_status); }; } &&
21275          { ac_try='test -s conftest$ac_exeext'
21276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21277   (eval $ac_try) 2>&5
21278   ac_status=$?
21279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280   (exit $ac_status); }; }; then
21281   ac_cv_lib_dl_dladdr=yes
21282 else
21283   echo "$as_me: failed program was:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21285
21286 ac_cv_lib_dl_dladdr=no
21287 fi
21288 rm -f conftest.err conftest.$ac_objext \
21289       conftest$ac_exeext conftest.$ac_ext
21290 LIBS=$ac_check_lib_save_LIBS
21291 fi
21292 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
21293 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
21294 if test $ac_cv_lib_dl_dladdr = yes; then
21295
21296
21297 cat >>confdefs.h <<\_ACEOF
21298 #define HAVE_DLADDR 1
21299 _ACEOF
21300
21301 else
21302
21303        echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
21304 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
21305 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
21306   echo $ECHO_N "(cached) $ECHO_C" >&6
21307 else
21308   ac_check_lib_save_LIBS=$LIBS
21309 LIBS="-ldld  $LIBS"
21310 if test x$gcc_no_link = xyes; then
21311   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21312 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21313    { (exit 1); exit 1; }; }
21314 fi
21315 cat >conftest.$ac_ext <<_ACEOF
21316 /* confdefs.h.  */
21317 _ACEOF
21318 cat confdefs.h >>conftest.$ac_ext
21319 cat >>conftest.$ac_ext <<_ACEOF
21320 /* end confdefs.h.  */
21321
21322 /* Override any gcc2 internal prototype to avoid an error.  */
21323 #ifdef __cplusplus
21324 extern "C"
21325 #endif
21326 /* We use char because int might match the return type of a gcc2
21327    builtin and then its argument prototype would still apply.  */
21328 char dladdr ();
21329 int
21330 main ()
21331 {
21332 dladdr ();
21333   ;
21334   return 0;
21335 }
21336 _ACEOF
21337 rm -f conftest.$ac_objext conftest$ac_exeext
21338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21339   (eval $ac_link) 2>conftest.er1
21340   ac_status=$?
21341   grep -v '^ *+' conftest.er1 >conftest.err
21342   rm -f conftest.er1
21343   cat conftest.err >&5
21344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345   (exit $ac_status); } &&
21346          { ac_try='test -z "$ac_c_werror_flag"
21347                          || test ! -s conftest.err'
21348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21349   (eval $ac_try) 2>&5
21350   ac_status=$?
21351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352   (exit $ac_status); }; } &&
21353          { ac_try='test -s conftest$ac_exeext'
21354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21355   (eval $ac_try) 2>&5
21356   ac_status=$?
21357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358   (exit $ac_status); }; }; then
21359   ac_cv_lib_dld_dladdr=yes
21360 else
21361   echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21363
21364 ac_cv_lib_dld_dladdr=no
21365 fi
21366 rm -f conftest.err conftest.$ac_objext \
21367       conftest$ac_exeext conftest.$ac_ext
21368 LIBS=$ac_check_lib_save_LIBS
21369 fi
21370 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
21371 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
21372 if test $ac_cv_lib_dld_dladdr = yes; then
21373
21374
21375 cat >>confdefs.h <<\_ACEOF
21376 #define HAVE_DLADDR 1
21377 _ACEOF
21378
21379 fi
21380
21381 fi
21382
21383
21384    if test x"$cross_compiling" = x"no"; then
21385      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
21386 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
21387 if test "${ac_cv_file__proc_self_exe+set}" = set; then
21388   echo $ECHO_N "(cached) $ECHO_C" >&6
21389 else
21390   test "$cross_compiling" = yes &&
21391   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21392 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21393    { (exit 1); exit 1; }; }
21394 if test -r "/proc/self/exe"; then
21395   ac_cv_file__proc_self_exe=yes
21396 else
21397   ac_cv_file__proc_self_exe=no
21398 fi
21399 fi
21400 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
21401 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
21402 if test $ac_cv_file__proc_self_exe = yes; then
21403
21404 cat >>confdefs.h <<_ACEOF
21405 #define HAVE__PROC_SELF_EXE 1
21406 _ACEOF
21407
21408
21409
21410 cat >>confdefs.h <<\_ACEOF
21411 #define HAVE_PROC_SELF_EXE 1
21412 _ACEOF
21413
21414 fi
21415
21416      echo "$as_me:$LINENO: checking for /proc/self/maps" >&5
21417 echo $ECHO_N "checking for /proc/self/maps... $ECHO_C" >&6
21418 if test "${ac_cv_file__proc_self_maps+set}" = set; then
21419   echo $ECHO_N "(cached) $ECHO_C" >&6
21420 else
21421   test "$cross_compiling" = yes &&
21422   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21423 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21424    { (exit 1); exit 1; }; }
21425 if test -r "/proc/self/maps"; then
21426   ac_cv_file__proc_self_maps=yes
21427 else
21428   ac_cv_file__proc_self_maps=no
21429 fi
21430 fi
21431 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_maps" >&5
21432 echo "${ECHO_T}$ac_cv_file__proc_self_maps" >&6
21433 if test $ac_cv_file__proc_self_maps = yes; then
21434
21435 cat >>confdefs.h <<_ACEOF
21436 #define HAVE__PROC_SELF_MAPS 1
21437 _ACEOF
21438
21439
21440
21441 cat >>confdefs.h <<\_ACEOF
21442 #define HAVE_PROC_SELF_MAPS 1
21443 _ACEOF
21444
21445 fi
21446
21447    else
21448      case $host in
21449      *-linux*)
21450
21451 cat >>confdefs.h <<\_ACEOF
21452 #define HAVE_PROC_SELF_EXE 1
21453 _ACEOF
21454
21455
21456 cat >>confdefs.h <<\_ACEOF
21457 #define HAVE_PROC_SELF_MAPS 1
21458 _ACEOF
21459
21460        ;;
21461      esac
21462    fi
21463
21464
21465       if test "X$prefix" = "XNONE"; then
21466     acl_final_prefix="$ac_default_prefix"
21467   else
21468     acl_final_prefix="$prefix"
21469   fi
21470   if test "X$exec_prefix" = "XNONE"; then
21471     acl_final_exec_prefix='${prefix}'
21472   else
21473     acl_final_exec_prefix="$exec_prefix"
21474   fi
21475   acl_save_prefix="$prefix"
21476   prefix="$acl_final_prefix"
21477   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21478   prefix="$acl_save_prefix"
21479
21480
21481 # Check whether --with-gnu-ld or --without-gnu-ld was given.
21482 if test "${with_gnu_ld+set}" = set; then
21483   withval="$with_gnu_ld"
21484   test "$withval" = no || with_gnu_ld=yes
21485 else
21486   with_gnu_ld=no
21487 fi;
21488 # Prepare PATH_SEPARATOR.
21489 # The user is always right.
21490 if test "${PATH_SEPARATOR+set}" != set; then
21491   echo "#! /bin/sh" >conf$$.sh
21492   echo  "exit 0"   >>conf$$.sh
21493   chmod +x conf$$.sh
21494   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21495     PATH_SEPARATOR=';'
21496   else
21497     PATH_SEPARATOR=:
21498   fi
21499   rm -f conf$$.sh
21500 fi
21501 ac_prog=ld
21502 if test "$GCC" = yes; then
21503   # Check if gcc -print-prog-name=ld gives a path.
21504   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
21505 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
21506   case $host in
21507   *-*-mingw*)
21508     # gcc leaves a trailing carriage return which upsets mingw
21509     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21510   *)
21511     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21512   esac
21513   case $ac_prog in
21514     # Accept absolute paths.
21515     [\\/]* | [A-Za-z]:[\\/]*)
21516       re_direlt='/[^/][^/]*/\.\./'
21517       # Canonicalize the path of ld
21518       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21519       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21520         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21521       done
21522       test -z "$LD" && LD="$ac_prog"
21523       ;;
21524   "")
21525     # If it fails, then pretend we aren't using GCC.
21526     ac_prog=ld
21527     ;;
21528   *)
21529     # If it is relative, then search for the first ld in PATH.
21530     with_gnu_ld=unknown
21531     ;;
21532   esac
21533 elif test "$with_gnu_ld" = yes; then
21534   echo "$as_me:$LINENO: checking for GNU ld" >&5
21535 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
21536 else
21537   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
21538 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
21539 fi
21540 if test "${acl_cv_path_LD+set}" = set; then
21541   echo $ECHO_N "(cached) $ECHO_C" >&6
21542 else
21543   if test -z "$LD"; then
21544   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21545   for ac_dir in $PATH; do
21546     test -z "$ac_dir" && ac_dir=.
21547     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21548       acl_cv_path_LD="$ac_dir/$ac_prog"
21549       # Check to see if the program is GNU ld.  I'd rather use --version,
21550       # but apparently some GNU ld's only accept -v.
21551       # Break only if it was the GNU/non-GNU ld that we prefer.
21552       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21553         test "$with_gnu_ld" != no && break
21554       else
21555         test "$with_gnu_ld" != yes && break
21556       fi
21557     fi
21558   done
21559   IFS="$ac_save_ifs"
21560 else
21561   acl_cv_path_LD="$LD" # Let the user override the test with a path.
21562 fi
21563 fi
21564
21565 LD="$acl_cv_path_LD"
21566 if test -n "$LD"; then
21567   echo "$as_me:$LINENO: result: $LD" >&5
21568 echo "${ECHO_T}$LD" >&6
21569 else
21570   echo "$as_me:$LINENO: result: no" >&5
21571 echo "${ECHO_T}no" >&6
21572 fi
21573 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21574 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21575    { (exit 1); exit 1; }; }
21576 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
21577 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
21578 if test "${acl_cv_prog_gnu_ld+set}" = set; then
21579   echo $ECHO_N "(cached) $ECHO_C" >&6
21580 else
21581   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21582 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21583   acl_cv_prog_gnu_ld=yes
21584 else
21585   acl_cv_prog_gnu_ld=no
21586 fi
21587 fi
21588 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
21589 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
21590 with_gnu_ld=$acl_cv_prog_gnu_ld
21591
21592
21593
21594                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
21595 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
21596 if test "${acl_cv_rpath+set}" = set; then
21597   echo $ECHO_N "(cached) $ECHO_C" >&6
21598 else
21599
21600     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21601     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21602     . ./conftest.sh
21603     rm -f ./conftest.sh
21604     acl_cv_rpath=done
21605
21606 fi
21607 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
21608 echo "${ECHO_T}$acl_cv_rpath" >&6
21609   wl="$acl_cv_wl"
21610   libext="$acl_cv_libext"
21611   shlibext="$acl_cv_shlibext"
21612   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21613   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21614   hardcode_direct="$acl_cv_hardcode_direct"
21615   hardcode_minus_L="$acl_cv_hardcode_minus_L"
21616     # Check whether --enable-rpath or --disable-rpath was given.
21617 if test "${enable_rpath+set}" = set; then
21618   enableval="$enable_rpath"
21619   :
21620 else
21621   enable_rpath=yes
21622 fi;
21623
21624
21625
21626
21627
21628
21629
21630     use_additional=yes
21631
21632   acl_save_prefix="$prefix"
21633   prefix="$acl_final_prefix"
21634   acl_save_exec_prefix="$exec_prefix"
21635   exec_prefix="$acl_final_exec_prefix"
21636
21637     eval additional_includedir=\"$includedir\"
21638     eval additional_libdir=\"$libdir\"
21639
21640   exec_prefix="$acl_save_exec_prefix"
21641   prefix="$acl_save_prefix"
21642
21643
21644 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21645 if test "${with_libiconv_prefix+set}" = set; then
21646   withval="$with_libiconv_prefix"
21647
21648     if test "X$withval" = "Xno"; then
21649       use_additional=no
21650     else
21651       if test "X$withval" = "X"; then
21652
21653   acl_save_prefix="$prefix"
21654   prefix="$acl_final_prefix"
21655   acl_save_exec_prefix="$exec_prefix"
21656   exec_prefix="$acl_final_exec_prefix"
21657
21658           eval additional_includedir=\"$includedir\"
21659           eval additional_libdir=\"$libdir\"
21660
21661   exec_prefix="$acl_save_exec_prefix"
21662   prefix="$acl_save_prefix"
21663
21664       else
21665         additional_includedir="$withval/include"
21666         additional_libdir="$withval/lib"
21667       fi
21668     fi
21669
21670 fi;
21671       LIBICONV=
21672   LTLIBICONV=
21673   INCICONV=
21674   rpathdirs=
21675   ltrpathdirs=
21676   names_already_handled=
21677   names_next_round='iconv '
21678   while test -n "$names_next_round"; do
21679     names_this_round="$names_next_round"
21680     names_next_round=
21681     for name in $names_this_round; do
21682       already_handled=
21683       for n in $names_already_handled; do
21684         if test "$n" = "$name"; then
21685           already_handled=yes
21686           break
21687         fi
21688       done
21689       if test -z "$already_handled"; then
21690         names_already_handled="$names_already_handled $name"
21691                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21692         eval value=\"\$HAVE_LIB$uppername\"
21693         if test -n "$value"; then
21694           if test "$value" = yes; then
21695             eval value=\"\$LIB$uppername\"
21696             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21697             eval value=\"\$LTLIB$uppername\"
21698             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21699           else
21700                                     :
21701           fi
21702         else
21703                               found_dir=
21704           found_la=
21705           found_so=
21706           found_a=
21707           if test $use_additional = yes; then
21708             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21709               found_dir="$additional_libdir"
21710               found_so="$additional_libdir/lib$name.$shlibext"
21711               if test -f "$additional_libdir/lib$name.la"; then
21712                 found_la="$additional_libdir/lib$name.la"
21713               fi
21714             else
21715               if test -f "$additional_libdir/lib$name.$libext"; then
21716                 found_dir="$additional_libdir"
21717                 found_a="$additional_libdir/lib$name.$libext"
21718                 if test -f "$additional_libdir/lib$name.la"; then
21719                   found_la="$additional_libdir/lib$name.la"
21720                 fi
21721               fi
21722             fi
21723           fi
21724           if test "X$found_dir" = "X"; then
21725             for x in $LDFLAGS $LTLIBICONV; do
21726
21727   acl_save_prefix="$prefix"
21728   prefix="$acl_final_prefix"
21729   acl_save_exec_prefix="$exec_prefix"
21730   exec_prefix="$acl_final_exec_prefix"
21731   eval x=\"$x\"
21732   exec_prefix="$acl_save_exec_prefix"
21733   prefix="$acl_save_prefix"
21734
21735               case "$x" in
21736                 -L*)
21737                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21738                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21739                     found_dir="$dir"
21740                     found_so="$dir/lib$name.$shlibext"
21741                     if test -f "$dir/lib$name.la"; then
21742                       found_la="$dir/lib$name.la"
21743                     fi
21744                   else
21745                     if test -f "$dir/lib$name.$libext"; then
21746                       found_dir="$dir"
21747                       found_a="$dir/lib$name.$libext"
21748                       if test -f "$dir/lib$name.la"; then
21749                         found_la="$dir/lib$name.la"
21750                       fi
21751                     fi
21752                   fi
21753                   ;;
21754               esac
21755               if test "X$found_dir" != "X"; then
21756                 break
21757               fi
21758             done
21759           fi
21760           if test "X$found_dir" != "X"; then
21761                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21762             if test "X$found_so" != "X"; then
21763                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21764                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21765               else
21766                                                                                 haveit=
21767                 for x in $ltrpathdirs; do
21768                   if test "X$x" = "X$found_dir"; then
21769                     haveit=yes
21770                     break
21771                   fi
21772                 done
21773                 if test -z "$haveit"; then
21774                   ltrpathdirs="$ltrpathdirs $found_dir"
21775                 fi
21776                                 if test "$hardcode_direct" = yes; then
21777                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21778                 else
21779                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21780                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21781                                                             haveit=
21782                     for x in $rpathdirs; do
21783                       if test "X$x" = "X$found_dir"; then
21784                         haveit=yes
21785                         break
21786                       fi
21787                     done
21788                     if test -z "$haveit"; then
21789                       rpathdirs="$rpathdirs $found_dir"
21790                     fi
21791                   else
21792                                                                                 haveit=
21793                     for x in $LDFLAGS $LIBICONV; do
21794
21795   acl_save_prefix="$prefix"
21796   prefix="$acl_final_prefix"
21797   acl_save_exec_prefix="$exec_prefix"
21798   exec_prefix="$acl_final_exec_prefix"
21799   eval x=\"$x\"
21800   exec_prefix="$acl_save_exec_prefix"
21801   prefix="$acl_save_prefix"
21802
21803                       if test "X$x" = "X-L$found_dir"; then
21804                         haveit=yes
21805                         break
21806                       fi
21807                     done
21808                     if test -z "$haveit"; then
21809                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21810                     fi
21811                     if test "$hardcode_minus_L" != no; then
21812                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21813                     else
21814                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21815                     fi
21816                   fi
21817                 fi
21818               fi
21819             else
21820               if test "X$found_a" != "X"; then
21821                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21822               else
21823                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21824               fi
21825             fi
21826                         additional_includedir=
21827             case "$found_dir" in
21828               */lib | */lib/)
21829                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21830                 additional_includedir="$basedir/include"
21831                 ;;
21832             esac
21833             if test "X$additional_includedir" != "X"; then
21834                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21835                 haveit=
21836                 if test "X$additional_includedir" = "X/usr/local/include"; then
21837                   if test -n "$GCC"; then
21838                     case $host_os in
21839                       linux*) haveit=yes;;
21840                     esac
21841                   fi
21842                 fi
21843                 if test -z "$haveit"; then
21844                   for x in $CPPFLAGS $INCICONV; do
21845
21846   acl_save_prefix="$prefix"
21847   prefix="$acl_final_prefix"
21848   acl_save_exec_prefix="$exec_prefix"
21849   exec_prefix="$acl_final_exec_prefix"
21850   eval x=\"$x\"
21851   exec_prefix="$acl_save_exec_prefix"
21852   prefix="$acl_save_prefix"
21853
21854                     if test "X$x" = "X-I$additional_includedir"; then
21855                       haveit=yes
21856                       break
21857                     fi
21858                   done
21859                   if test -z "$haveit"; then
21860                     if test -d "$additional_includedir"; then
21861                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21862                     fi
21863                   fi
21864                 fi
21865               fi
21866             fi
21867                         if test -n "$found_la"; then
21868                                                         save_libdir="$libdir"
21869               case "$found_la" in
21870                 */* | *\\*) . "$found_la" ;;
21871                 *) . "./$found_la" ;;
21872               esac
21873               libdir="$save_libdir"
21874                             for dep in $dependency_libs; do
21875                 case "$dep" in
21876                   -L*)
21877                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21878                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21879                       haveit=
21880                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21881                         if test -n "$GCC"; then
21882                           case $host_os in
21883                             linux*) haveit=yes;;
21884                           esac
21885                         fi
21886                       fi
21887                       if test -z "$haveit"; then
21888                         haveit=
21889                         for x in $LDFLAGS $LIBICONV; do
21890
21891   acl_save_prefix="$prefix"
21892   prefix="$acl_final_prefix"
21893   acl_save_exec_prefix="$exec_prefix"
21894   exec_prefix="$acl_final_exec_prefix"
21895   eval x=\"$x\"
21896   exec_prefix="$acl_save_exec_prefix"
21897   prefix="$acl_save_prefix"
21898
21899                           if test "X$x" = "X-L$additional_libdir"; then
21900                             haveit=yes
21901                             break
21902                           fi
21903                         done
21904                         if test -z "$haveit"; then
21905                           if test -d "$additional_libdir"; then
21906                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21907                           fi
21908                         fi
21909                         haveit=
21910                         for x in $LDFLAGS $LTLIBICONV; do
21911
21912   acl_save_prefix="$prefix"
21913   prefix="$acl_final_prefix"
21914   acl_save_exec_prefix="$exec_prefix"
21915   exec_prefix="$acl_final_exec_prefix"
21916   eval x=\"$x\"
21917   exec_prefix="$acl_save_exec_prefix"
21918   prefix="$acl_save_prefix"
21919
21920                           if test "X$x" = "X-L$additional_libdir"; then
21921                             haveit=yes
21922                             break
21923                           fi
21924                         done
21925                         if test -z "$haveit"; then
21926                           if test -d "$additional_libdir"; then
21927                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21928                           fi
21929                         fi
21930                       fi
21931                     fi
21932                     ;;
21933                   -R*)
21934                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21935                     if test "$enable_rpath" != no; then
21936                                                                   haveit=
21937                       for x in $rpathdirs; do
21938                         if test "X$x" = "X$dir"; then
21939                           haveit=yes
21940                           break
21941                         fi
21942                       done
21943                       if test -z "$haveit"; then
21944                         rpathdirs="$rpathdirs $dir"
21945                       fi
21946                                                                   haveit=
21947                       for x in $ltrpathdirs; do
21948                         if test "X$x" = "X$dir"; then
21949                           haveit=yes
21950                           break
21951                         fi
21952                       done
21953                       if test -z "$haveit"; then
21954                         ltrpathdirs="$ltrpathdirs $dir"
21955                       fi
21956                     fi
21957                     ;;
21958                   -l*)
21959                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21960                     ;;
21961                   *.la)
21962                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21963                     ;;
21964                   *)
21965                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21966                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21967                     ;;
21968                 esac
21969               done
21970             fi
21971           else
21972                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21973             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21974           fi
21975         fi
21976       fi
21977     done
21978   done
21979   if test "X$rpathdirs" != "X"; then
21980     if test -n "$hardcode_libdir_separator"; then
21981                         alldirs=
21982       for found_dir in $rpathdirs; do
21983         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21984       done
21985             acl_save_libdir="$libdir"
21986       libdir="$alldirs"
21987       eval flag=\"$hardcode_libdir_flag_spec\"
21988       libdir="$acl_save_libdir"
21989       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21990     else
21991             for found_dir in $rpathdirs; do
21992         acl_save_libdir="$libdir"
21993         libdir="$found_dir"
21994         eval flag=\"$hardcode_libdir_flag_spec\"
21995         libdir="$acl_save_libdir"
21996         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21997       done
21998     fi
21999   fi
22000   if test "X$ltrpathdirs" != "X"; then
22001             for found_dir in $ltrpathdirs; do
22002       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22003     done
22004   fi
22005
22006
22007
22008
22009
22010
22011
22012           am_save_CPPFLAGS="$CPPFLAGS"
22013
22014   for element in $INCICONV; do
22015     haveit=
22016     for x in $CPPFLAGS; do
22017
22018   acl_save_prefix="$prefix"
22019   prefix="$acl_final_prefix"
22020   acl_save_exec_prefix="$exec_prefix"
22021   exec_prefix="$acl_final_exec_prefix"
22022   eval x=\"$x\"
22023   exec_prefix="$acl_save_exec_prefix"
22024   prefix="$acl_save_prefix"
22025
22026       if test "X$x" = "X$element"; then
22027         haveit=yes
22028         break
22029       fi
22030     done
22031     if test -z "$haveit"; then
22032       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22033     fi
22034   done
22035
22036
22037   echo "$as_me:$LINENO: checking for iconv" >&5
22038 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
22039 if test "${am_cv_func_iconv+set}" = set; then
22040   echo $ECHO_N "(cached) $ECHO_C" >&6
22041 else
22042
22043     am_cv_func_iconv="no, consider installing GNU libiconv"
22044     am_cv_lib_iconv=no
22045     if test x$gcc_no_link = xyes; then
22046   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22047 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22048    { (exit 1); exit 1; }; }
22049 fi
22050 cat >conftest.$ac_ext <<_ACEOF
22051 /* confdefs.h.  */
22052 _ACEOF
22053 cat confdefs.h >>conftest.$ac_ext
22054 cat >>conftest.$ac_ext <<_ACEOF
22055 /* end confdefs.h.  */
22056 #include <stdlib.h>
22057 #include <iconv.h>
22058 int
22059 main ()
22060 {
22061 iconv_t cd = iconv_open("","");
22062        iconv(cd,NULL,NULL,NULL,NULL);
22063        iconv_close(cd);
22064   ;
22065   return 0;
22066 }
22067 _ACEOF
22068 rm -f conftest.$ac_objext conftest$ac_exeext
22069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22070   (eval $ac_link) 2>conftest.er1
22071   ac_status=$?
22072   grep -v '^ *+' conftest.er1 >conftest.err
22073   rm -f conftest.er1
22074   cat conftest.err >&5
22075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076   (exit $ac_status); } &&
22077          { ac_try='test -z "$ac_c_werror_flag"
22078                          || test ! -s conftest.err'
22079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22080   (eval $ac_try) 2>&5
22081   ac_status=$?
22082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083   (exit $ac_status); }; } &&
22084          { ac_try='test -s conftest$ac_exeext'
22085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22086   (eval $ac_try) 2>&5
22087   ac_status=$?
22088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089   (exit $ac_status); }; }; then
22090   am_cv_func_iconv=yes
22091 else
22092   echo "$as_me: failed program was:" >&5
22093 sed 's/^/| /' conftest.$ac_ext >&5
22094
22095 fi
22096 rm -f conftest.err conftest.$ac_objext \
22097       conftest$ac_exeext conftest.$ac_ext
22098     if test "$am_cv_func_iconv" != yes; then
22099       am_save_LIBS="$LIBS"
22100       LIBS="$LIBS $LIBICONV"
22101       if test x$gcc_no_link = xyes; then
22102   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22103 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22104    { (exit 1); exit 1; }; }
22105 fi
22106 cat >conftest.$ac_ext <<_ACEOF
22107 /* confdefs.h.  */
22108 _ACEOF
22109 cat confdefs.h >>conftest.$ac_ext
22110 cat >>conftest.$ac_ext <<_ACEOF
22111 /* end confdefs.h.  */
22112 #include <stdlib.h>
22113 #include <iconv.h>
22114 int
22115 main ()
22116 {
22117 iconv_t cd = iconv_open("","");
22118          iconv(cd,NULL,NULL,NULL,NULL);
22119          iconv_close(cd);
22120   ;
22121   return 0;
22122 }
22123 _ACEOF
22124 rm -f conftest.$ac_objext conftest$ac_exeext
22125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22126   (eval $ac_link) 2>conftest.er1
22127   ac_status=$?
22128   grep -v '^ *+' conftest.er1 >conftest.err
22129   rm -f conftest.er1
22130   cat conftest.err >&5
22131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132   (exit $ac_status); } &&
22133          { ac_try='test -z "$ac_c_werror_flag"
22134                          || test ! -s conftest.err'
22135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22136   (eval $ac_try) 2>&5
22137   ac_status=$?
22138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139   (exit $ac_status); }; } &&
22140          { ac_try='test -s conftest$ac_exeext'
22141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22142   (eval $ac_try) 2>&5
22143   ac_status=$?
22144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145   (exit $ac_status); }; }; then
22146   am_cv_lib_iconv=yes
22147         am_cv_func_iconv=yes
22148 else
22149   echo "$as_me: failed program was:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22151
22152 fi
22153 rm -f conftest.err conftest.$ac_objext \
22154       conftest$ac_exeext conftest.$ac_ext
22155       LIBS="$am_save_LIBS"
22156     fi
22157
22158 fi
22159 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22160 echo "${ECHO_T}$am_cv_func_iconv" >&6
22161   if test "$am_cv_func_iconv" = yes; then
22162
22163 cat >>confdefs.h <<\_ACEOF
22164 #define HAVE_ICONV 1
22165 _ACEOF
22166
22167   fi
22168   if test "$am_cv_lib_iconv" = yes; then
22169     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22170 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
22171     echo "$as_me:$LINENO: result: $LIBICONV" >&5
22172 echo "${ECHO_T}$LIBICONV" >&6
22173   else
22174             CPPFLAGS="$am_save_CPPFLAGS"
22175     LIBICONV=
22176     LTLIBICONV=
22177   fi
22178
22179
22180
22181   if test "$am_cv_func_iconv" = yes; then
22182     echo "$as_me:$LINENO: checking for iconv declaration" >&5
22183 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
22184     if test "${am_cv_proto_iconv+set}" = set; then
22185   echo $ECHO_N "(cached) $ECHO_C" >&6
22186 else
22187
22188       cat >conftest.$ac_ext <<_ACEOF
22189 /* confdefs.h.  */
22190 _ACEOF
22191 cat confdefs.h >>conftest.$ac_ext
22192 cat >>conftest.$ac_ext <<_ACEOF
22193 /* end confdefs.h.  */
22194
22195 #include <stdlib.h>
22196 #include <iconv.h>
22197 extern
22198 #ifdef __cplusplus
22199 "C"
22200 #endif
22201 #if defined(__STDC__) || defined(__cplusplus)
22202 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22203 #else
22204 size_t iconv();
22205 #endif
22206
22207 int
22208 main ()
22209 {
22210
22211   ;
22212   return 0;
22213 }
22214 _ACEOF
22215 rm -f conftest.$ac_objext
22216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22217   (eval $ac_compile) 2>conftest.er1
22218   ac_status=$?
22219   grep -v '^ *+' conftest.er1 >conftest.err
22220   rm -f conftest.er1
22221   cat conftest.err >&5
22222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223   (exit $ac_status); } &&
22224          { ac_try='test -z "$ac_c_werror_flag"
22225                          || test ! -s conftest.err'
22226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22227   (eval $ac_try) 2>&5
22228   ac_status=$?
22229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230   (exit $ac_status); }; } &&
22231          { ac_try='test -s conftest.$ac_objext'
22232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22233   (eval $ac_try) 2>&5
22234   ac_status=$?
22235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236   (exit $ac_status); }; }; then
22237   am_cv_proto_iconv_arg1=""
22238 else
22239   echo "$as_me: failed program was:" >&5
22240 sed 's/^/| /' conftest.$ac_ext >&5
22241
22242 am_cv_proto_iconv_arg1="const"
22243 fi
22244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22245       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
22246 fi
22247
22248     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22249     echo "$as_me:$LINENO: result: ${ac_t:-
22250          }$am_cv_proto_iconv" >&5
22251 echo "${ECHO_T}${ac_t:-
22252          }$am_cv_proto_iconv" >&6
22253
22254 cat >>confdefs.h <<_ACEOF
22255 #define ICONV_CONST $am_cv_proto_iconv_arg1
22256 _ACEOF
22257
22258   fi
22259
22260
22261   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22262 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
22263 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
22264   echo $ECHO_N "(cached) $ECHO_C" >&6
22265 else
22266   if test x$gcc_no_link = xyes; then
22267   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22268 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22269    { (exit 1); exit 1; }; }
22270 fi
22271 cat >conftest.$ac_ext <<_ACEOF
22272 /* confdefs.h.  */
22273 _ACEOF
22274 cat confdefs.h >>conftest.$ac_ext
22275 cat >>conftest.$ac_ext <<_ACEOF
22276 /* end confdefs.h.  */
22277 #include <locale.h>
22278 int
22279 main ()
22280 {
22281 return LC_MESSAGES
22282   ;
22283   return 0;
22284 }
22285 _ACEOF
22286 rm -f conftest.$ac_objext conftest$ac_exeext
22287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22288   (eval $ac_link) 2>conftest.er1
22289   ac_status=$?
22290   grep -v '^ *+' conftest.er1 >conftest.err
22291   rm -f conftest.er1
22292   cat conftest.err >&5
22293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294   (exit $ac_status); } &&
22295          { ac_try='test -z "$ac_c_werror_flag"
22296                          || test ! -s conftest.err'
22297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22298   (eval $ac_try) 2>&5
22299   ac_status=$?
22300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301   (exit $ac_status); }; } &&
22302          { ac_try='test -s conftest$ac_exeext'
22303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22304   (eval $ac_try) 2>&5
22305   ac_status=$?
22306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307   (exit $ac_status); }; }; then
22308   am_cv_val_LC_MESSAGES=yes
22309 else
22310   echo "$as_me: failed program was:" >&5
22311 sed 's/^/| /' conftest.$ac_ext >&5
22312
22313 am_cv_val_LC_MESSAGES=no
22314 fi
22315 rm -f conftest.err conftest.$ac_objext \
22316       conftest$ac_exeext conftest.$ac_ext
22317 fi
22318 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
22319 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
22320   if test $am_cv_val_LC_MESSAGES = yes; then
22321
22322 cat >>confdefs.h <<\_ACEOF
22323 #define HAVE_LC_MESSAGES 1
22324 _ACEOF
22325
22326   fi
22327
22328    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22329 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22330 if test "${ac_cv_struct_tm+set}" = set; then
22331   echo $ECHO_N "(cached) $ECHO_C" >&6
22332 else
22333   cat >conftest.$ac_ext <<_ACEOF
22334 /* confdefs.h.  */
22335 _ACEOF
22336 cat confdefs.h >>conftest.$ac_ext
22337 cat >>conftest.$ac_ext <<_ACEOF
22338 /* end confdefs.h.  */
22339 #include <sys/types.h>
22340 #include <time.h>
22341
22342 int
22343 main ()
22344 {
22345 struct tm *tp; tp->tm_sec;
22346   ;
22347   return 0;
22348 }
22349 _ACEOF
22350 rm -f conftest.$ac_objext
22351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22352   (eval $ac_compile) 2>conftest.er1
22353   ac_status=$?
22354   grep -v '^ *+' conftest.er1 >conftest.err
22355   rm -f conftest.er1
22356   cat conftest.err >&5
22357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358   (exit $ac_status); } &&
22359          { ac_try='test -z "$ac_c_werror_flag"
22360                          || test ! -s conftest.err'
22361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22362   (eval $ac_try) 2>&5
22363   ac_status=$?
22364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365   (exit $ac_status); }; } &&
22366          { ac_try='test -s conftest.$ac_objext'
22367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22368   (eval $ac_try) 2>&5
22369   ac_status=$?
22370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371   (exit $ac_status); }; }; then
22372   ac_cv_struct_tm=time.h
22373 else
22374   echo "$as_me: failed program was:" >&5
22375 sed 's/^/| /' conftest.$ac_ext >&5
22376
22377 ac_cv_struct_tm=sys/time.h
22378 fi
22379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22380 fi
22381 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22382 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22383 if test $ac_cv_struct_tm = sys/time.h; then
22384
22385 cat >>confdefs.h <<\_ACEOF
22386 #define TM_IN_SYS_TIME 1
22387 _ACEOF
22388
22389 fi
22390
22391 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22392 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
22393 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22394   echo $ECHO_N "(cached) $ECHO_C" >&6
22395 else
22396   cat >conftest.$ac_ext <<_ACEOF
22397 /* confdefs.h.  */
22398 _ACEOF
22399 cat confdefs.h >>conftest.$ac_ext
22400 cat >>conftest.$ac_ext <<_ACEOF
22401 /* end confdefs.h.  */
22402 #include <sys/types.h>
22403 #include <$ac_cv_struct_tm>
22404
22405
22406 int
22407 main ()
22408 {
22409 static struct tm ac_aggr;
22410 if (ac_aggr.tm_zone)
22411 return 0;
22412   ;
22413   return 0;
22414 }
22415 _ACEOF
22416 rm -f conftest.$ac_objext
22417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22418   (eval $ac_compile) 2>conftest.er1
22419   ac_status=$?
22420   grep -v '^ *+' conftest.er1 >conftest.err
22421   rm -f conftest.er1
22422   cat conftest.err >&5
22423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424   (exit $ac_status); } &&
22425          { ac_try='test -z "$ac_c_werror_flag"
22426                          || test ! -s conftest.err'
22427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22428   (eval $ac_try) 2>&5
22429   ac_status=$?
22430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431   (exit $ac_status); }; } &&
22432          { ac_try='test -s conftest.$ac_objext'
22433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22434   (eval $ac_try) 2>&5
22435   ac_status=$?
22436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22437   (exit $ac_status); }; }; then
22438   ac_cv_member_struct_tm_tm_zone=yes
22439 else
22440   echo "$as_me: failed program was:" >&5
22441 sed 's/^/| /' conftest.$ac_ext >&5
22442
22443 cat >conftest.$ac_ext <<_ACEOF
22444 /* confdefs.h.  */
22445 _ACEOF
22446 cat confdefs.h >>conftest.$ac_ext
22447 cat >>conftest.$ac_ext <<_ACEOF
22448 /* end confdefs.h.  */
22449 #include <sys/types.h>
22450 #include <$ac_cv_struct_tm>
22451
22452
22453 int
22454 main ()
22455 {
22456 static struct tm ac_aggr;
22457 if (sizeof ac_aggr.tm_zone)
22458 return 0;
22459   ;
22460   return 0;
22461 }
22462 _ACEOF
22463 rm -f conftest.$ac_objext
22464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22465   (eval $ac_compile) 2>conftest.er1
22466   ac_status=$?
22467   grep -v '^ *+' conftest.er1 >conftest.err
22468   rm -f conftest.er1
22469   cat conftest.err >&5
22470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471   (exit $ac_status); } &&
22472          { ac_try='test -z "$ac_c_werror_flag"
22473                          || test ! -s conftest.err'
22474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22475   (eval $ac_try) 2>&5
22476   ac_status=$?
22477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478   (exit $ac_status); }; } &&
22479          { ac_try='test -s conftest.$ac_objext'
22480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22481   (eval $ac_try) 2>&5
22482   ac_status=$?
22483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484   (exit $ac_status); }; }; then
22485   ac_cv_member_struct_tm_tm_zone=yes
22486 else
22487   echo "$as_me: failed program was:" >&5
22488 sed 's/^/| /' conftest.$ac_ext >&5
22489
22490 ac_cv_member_struct_tm_tm_zone=no
22491 fi
22492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22493 fi
22494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22495 fi
22496 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
22497 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
22498 if test $ac_cv_member_struct_tm_tm_zone = yes; then
22499
22500 cat >>confdefs.h <<_ACEOF
22501 #define HAVE_STRUCT_TM_TM_ZONE 1
22502 _ACEOF
22503
22504
22505 fi
22506
22507 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22508
22509 cat >>confdefs.h <<\_ACEOF
22510 #define HAVE_TM_ZONE 1
22511 _ACEOF
22512
22513 else
22514   echo "$as_me:$LINENO: checking for tzname" >&5
22515 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
22516 if test "${ac_cv_var_tzname+set}" = set; then
22517   echo $ECHO_N "(cached) $ECHO_C" >&6
22518 else
22519   if test x$gcc_no_link = xyes; then
22520   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22521 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22522    { (exit 1); exit 1; }; }
22523 fi
22524 cat >conftest.$ac_ext <<_ACEOF
22525 /* confdefs.h.  */
22526 _ACEOF
22527 cat confdefs.h >>conftest.$ac_ext
22528 cat >>conftest.$ac_ext <<_ACEOF
22529 /* end confdefs.h.  */
22530 #include <time.h>
22531 #ifndef tzname /* For SGI.  */
22532 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
22533 #endif
22534
22535 int
22536 main ()
22537 {
22538 atoi(*tzname);
22539   ;
22540   return 0;
22541 }
22542 _ACEOF
22543 rm -f conftest.$ac_objext conftest$ac_exeext
22544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22545   (eval $ac_link) 2>conftest.er1
22546   ac_status=$?
22547   grep -v '^ *+' conftest.er1 >conftest.err
22548   rm -f conftest.er1
22549   cat conftest.err >&5
22550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551   (exit $ac_status); } &&
22552          { ac_try='test -z "$ac_c_werror_flag"
22553                          || test ! -s conftest.err'
22554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22555   (eval $ac_try) 2>&5
22556   ac_status=$?
22557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558   (exit $ac_status); }; } &&
22559          { ac_try='test -s conftest$ac_exeext'
22560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22561   (eval $ac_try) 2>&5
22562   ac_status=$?
22563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564   (exit $ac_status); }; }; then
22565   ac_cv_var_tzname=yes
22566 else
22567   echo "$as_me: failed program was:" >&5
22568 sed 's/^/| /' conftest.$ac_ext >&5
22569
22570 ac_cv_var_tzname=no
22571 fi
22572 rm -f conftest.err conftest.$ac_objext \
22573       conftest$ac_exeext conftest.$ac_ext
22574 fi
22575 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22576 echo "${ECHO_T}$ac_cv_var_tzname" >&6
22577   if test $ac_cv_var_tzname = yes; then
22578
22579 cat >>confdefs.h <<\_ACEOF
22580 #define HAVE_TZNAME 1
22581 _ACEOF
22582
22583   fi
22584 fi
22585
22586
22587
22588 for ac_func in gethostbyname_r
22589 do
22590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22591 echo "$as_me:$LINENO: checking for $ac_func" >&5
22592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22593 if eval "test \"\${$as_ac_var+set}\" = set"; then
22594   echo $ECHO_N "(cached) $ECHO_C" >&6
22595 else
22596   if test x$gcc_no_link = xyes; then
22597   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22598 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22599    { (exit 1); exit 1; }; }
22600 fi
22601 cat >conftest.$ac_ext <<_ACEOF
22602 /* confdefs.h.  */
22603 _ACEOF
22604 cat confdefs.h >>conftest.$ac_ext
22605 cat >>conftest.$ac_ext <<_ACEOF
22606 /* end confdefs.h.  */
22607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22608    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22609 #define $ac_func innocuous_$ac_func
22610
22611 /* System header to define __stub macros and hopefully few prototypes,
22612     which can conflict with char $ac_func (); below.
22613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22614     <limits.h> exists even on freestanding compilers.  */
22615
22616 #ifdef __STDC__
22617 # include <limits.h>
22618 #else
22619 # include <assert.h>
22620 #endif
22621
22622 #undef $ac_func
22623
22624 /* Override any gcc2 internal prototype to avoid an error.  */
22625 #ifdef __cplusplus
22626 extern "C"
22627 {
22628 #endif
22629 /* We use char because int might match the return type of a gcc2
22630    builtin and then its argument prototype would still apply.  */
22631 char $ac_func ();
22632 /* The GNU C library defines this for functions which it implements
22633     to always fail with ENOSYS.  Some functions are actually named
22634     something starting with __ and the normal name is an alias.  */
22635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22636 choke me
22637 #else
22638 char (*f) () = $ac_func;
22639 #endif
22640 #ifdef __cplusplus
22641 }
22642 #endif
22643
22644 int
22645 main ()
22646 {
22647 return f != $ac_func;
22648   ;
22649   return 0;
22650 }
22651 _ACEOF
22652 rm -f conftest.$ac_objext conftest$ac_exeext
22653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22654   (eval $ac_link) 2>conftest.er1
22655   ac_status=$?
22656   grep -v '^ *+' conftest.er1 >conftest.err
22657   rm -f conftest.er1
22658   cat conftest.err >&5
22659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660   (exit $ac_status); } &&
22661          { ac_try='test -z "$ac_c_werror_flag"
22662                          || test ! -s conftest.err'
22663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22664   (eval $ac_try) 2>&5
22665   ac_status=$?
22666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667   (exit $ac_status); }; } &&
22668          { ac_try='test -s conftest$ac_exeext'
22669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22670   (eval $ac_try) 2>&5
22671   ac_status=$?
22672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673   (exit $ac_status); }; }; then
22674   eval "$as_ac_var=yes"
22675 else
22676   echo "$as_me: failed program was:" >&5
22677 sed 's/^/| /' conftest.$ac_ext >&5
22678
22679 eval "$as_ac_var=no"
22680 fi
22681 rm -f conftest.err conftest.$ac_objext \
22682       conftest$ac_exeext conftest.$ac_ext
22683 fi
22684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22686 if test `eval echo '${'$as_ac_var'}'` = yes; then
22687   cat >>confdefs.h <<_ACEOF
22688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22689 _ACEOF
22690
22691
22692 cat >>confdefs.h <<\_ACEOF
22693 #define HAVE_GETHOSTBYNAME_R 1
22694 _ACEOF
22695
22696      # There are two different kinds of gethostbyname_r.
22697      # We look for the one that returns `int'.
22698      # Hopefully this check is robust enough.
22699      cat >conftest.$ac_ext <<_ACEOF
22700 /* confdefs.h.  */
22701 _ACEOF
22702 cat confdefs.h >>conftest.$ac_ext
22703 cat >>conftest.$ac_ext <<_ACEOF
22704 /* end confdefs.h.  */
22705 #include <netdb.h>
22706
22707 _ACEOF
22708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22709   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
22710
22711
22712 cat >>confdefs.h <<\_ACEOF
22713 #define GETHOSTBYNAME_R_RETURNS_INT 1
22714 _ACEOF
22715
22716 fi
22717 rm -f conftest*
22718
22719
22720      case " $GCINCS " in
22721      *" -D_REENTRANT "*) ;;
22722      *)
22723                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22724 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
22725 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
22726   echo $ECHO_N "(cached) $ECHO_C" >&6
22727 else
22728    ac_ext=cc
22729 ac_cpp='$CXXCPP $CPPFLAGS'
22730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22733
22734           cat >conftest.$ac_ext <<_ACEOF
22735 /* confdefs.h.  */
22736 _ACEOF
22737 cat confdefs.h >>conftest.$ac_ext
22738 cat >>conftest.$ac_ext <<_ACEOF
22739 /* end confdefs.h.  */
22740 #include <netdb.h>
22741 int
22742 main ()
22743 {
22744 gethostbyname_r("", 0, 0);
22745   ;
22746   return 0;
22747 }
22748 _ACEOF
22749 rm -f conftest.$ac_objext
22750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22751   (eval $ac_compile) 2>conftest.er1
22752   ac_status=$?
22753   grep -v '^ *+' conftest.er1 >conftest.err
22754   rm -f conftest.er1
22755   cat conftest.err >&5
22756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757   (exit $ac_status); } &&
22758          { ac_try='test -z "$ac_cxx_werror_flag"
22759                          || test ! -s conftest.err'
22760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22761   (eval $ac_try) 2>&5
22762   ac_status=$?
22763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764   (exit $ac_status); }; } &&
22765          { ac_try='test -s conftest.$ac_objext'
22766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22767   (eval $ac_try) 2>&5
22768   ac_status=$?
22769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770   (exit $ac_status); }; }; then
22771   libjava_cv_gethostbyname_r_needs_reentrant=no
22772 else
22773   echo "$as_me: failed program was:" >&5
22774 sed 's/^/| /' conftest.$ac_ext >&5
22775
22776                 CPPFLAGS_SAVE="$CPPFLAGS"
22777                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22778                 cat >conftest.$ac_ext <<_ACEOF
22779 /* confdefs.h.  */
22780 _ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h.  */
22784 #include <netdb.h>
22785 int
22786 main ()
22787 {
22788 gethostbyname_r("", 0, 0);
22789   ;
22790   return 0;
22791 }
22792 _ACEOF
22793 rm -f conftest.$ac_objext
22794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22795   (eval $ac_compile) 2>conftest.er1
22796   ac_status=$?
22797   grep -v '^ *+' conftest.er1 >conftest.err
22798   rm -f conftest.er1
22799   cat conftest.err >&5
22800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801   (exit $ac_status); } &&
22802          { ac_try='test -z "$ac_cxx_werror_flag"
22803                          || test ! -s conftest.err'
22804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22805   (eval $ac_try) 2>&5
22806   ac_status=$?
22807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808   (exit $ac_status); }; } &&
22809          { ac_try='test -s conftest.$ac_objext'
22810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22811   (eval $ac_try) 2>&5
22812   ac_status=$?
22813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814   (exit $ac_status); }; }; then
22815   libjava_cv_gethostbyname_r_needs_reentrant=yes
22816 else
22817   echo "$as_me: failed program was:" >&5
22818 sed 's/^/| /' conftest.$ac_ext >&5
22819
22820 libjava_cv_gethostbyname_r_needs_reentrant=fail
22821 fi
22822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22823                 CPPFLAGS="$CPPFLAGS_SAVE"
22824
22825 fi
22826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22827           ac_ext=c
22828 ac_cpp='$CPP $CPPFLAGS'
22829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22832
22833
22834 fi
22835 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22836 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
22837         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22838
22839 cat >>confdefs.h <<\_ACEOF
22840 #define _REENTRANT 1
22841 _ACEOF
22842
22843         fi
22844      ;;
22845      esac
22846
22847      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
22848 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
22849 if test "${libjava_cv_struct_hostent_data+set}" = set; then
22850   echo $ECHO_N "(cached) $ECHO_C" >&6
22851 else
22852         cat >conftest.$ac_ext <<_ACEOF
22853 /* confdefs.h.  */
22854 _ACEOF
22855 cat confdefs.h >>conftest.$ac_ext
22856 cat >>conftest.$ac_ext <<_ACEOF
22857 /* end confdefs.h.  */
22858
22859 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22860 # define _REENTRANT 1
22861 #endif
22862 #include <netdb.h>
22863 int
22864 main ()
22865 {
22866 struct hostent_data data;
22867   ;
22868   return 0;
22869 }
22870 _ACEOF
22871 rm -f conftest.$ac_objext
22872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22873   (eval $ac_compile) 2>conftest.er1
22874   ac_status=$?
22875   grep -v '^ *+' conftest.er1 >conftest.err
22876   rm -f conftest.er1
22877   cat conftest.err >&5
22878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879   (exit $ac_status); } &&
22880          { ac_try='test -z "$ac_c_werror_flag"
22881                          || test ! -s conftest.err'
22882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22883   (eval $ac_try) 2>&5
22884   ac_status=$?
22885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886   (exit $ac_status); }; } &&
22887          { ac_try='test -s conftest.$ac_objext'
22888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22889   (eval $ac_try) 2>&5
22890   ac_status=$?
22891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892   (exit $ac_status); }; }; then
22893   libjava_cv_struct_hostent_data=yes
22894 else
22895   echo "$as_me: failed program was:" >&5
22896 sed 's/^/| /' conftest.$ac_ext >&5
22897
22898 libjava_cv_struct_hostent_data=no
22899 fi
22900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22901 fi
22902 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
22903 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
22904      if test "x$libjava_cv_struct_hostent_data" = xyes; then
22905
22906 cat >>confdefs.h <<\_ACEOF
22907 #define HAVE_STRUCT_HOSTENT_DATA 1
22908 _ACEOF
22909
22910      fi
22911
22912 fi
22913 done
22914
22915
22916    # FIXME: libjava source code expects to find a prototype for
22917    # gethostbyaddr_r in netdb.h.  The outer check ensures that
22918    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22919    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
22920    # linkage check is enough, yet C++ code requires proper prototypes.)
22921    cat >conftest.$ac_ext <<_ACEOF
22922 /* confdefs.h.  */
22923 _ACEOF
22924 cat confdefs.h >>conftest.$ac_ext
22925 cat >>conftest.$ac_ext <<_ACEOF
22926 /* end confdefs.h.  */
22927 #include <netdb.h>
22928
22929 _ACEOF
22930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22931   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
22932
22933
22934 for ac_func in gethostbyaddr_r
22935 do
22936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22937 echo "$as_me:$LINENO: checking for $ac_func" >&5
22938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22939 if eval "test \"\${$as_ac_var+set}\" = set"; then
22940   echo $ECHO_N "(cached) $ECHO_C" >&6
22941 else
22942   if test x$gcc_no_link = xyes; then
22943   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22944 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22945    { (exit 1); exit 1; }; }
22946 fi
22947 cat >conftest.$ac_ext <<_ACEOF
22948 /* confdefs.h.  */
22949 _ACEOF
22950 cat confdefs.h >>conftest.$ac_ext
22951 cat >>conftest.$ac_ext <<_ACEOF
22952 /* end confdefs.h.  */
22953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22954    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22955 #define $ac_func innocuous_$ac_func
22956
22957 /* System header to define __stub macros and hopefully few prototypes,
22958     which can conflict with char $ac_func (); below.
22959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22960     <limits.h> exists even on freestanding compilers.  */
22961
22962 #ifdef __STDC__
22963 # include <limits.h>
22964 #else
22965 # include <assert.h>
22966 #endif
22967
22968 #undef $ac_func
22969
22970 /* Override any gcc2 internal prototype to avoid an error.  */
22971 #ifdef __cplusplus
22972 extern "C"
22973 {
22974 #endif
22975 /* We use char because int might match the return type of a gcc2
22976    builtin and then its argument prototype would still apply.  */
22977 char $ac_func ();
22978 /* The GNU C library defines this for functions which it implements
22979     to always fail with ENOSYS.  Some functions are actually named
22980     something starting with __ and the normal name is an alias.  */
22981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22982 choke me
22983 #else
22984 char (*f) () = $ac_func;
22985 #endif
22986 #ifdef __cplusplus
22987 }
22988 #endif
22989
22990 int
22991 main ()
22992 {
22993 return f != $ac_func;
22994   ;
22995   return 0;
22996 }
22997 _ACEOF
22998 rm -f conftest.$ac_objext conftest$ac_exeext
22999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23000   (eval $ac_link) 2>conftest.er1
23001   ac_status=$?
23002   grep -v '^ *+' conftest.er1 >conftest.err
23003   rm -f conftest.er1
23004   cat conftest.err >&5
23005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006   (exit $ac_status); } &&
23007          { ac_try='test -z "$ac_c_werror_flag"
23008                          || test ! -s conftest.err'
23009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23010   (eval $ac_try) 2>&5
23011   ac_status=$?
23012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013   (exit $ac_status); }; } &&
23014          { ac_try='test -s conftest$ac_exeext'
23015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23016   (eval $ac_try) 2>&5
23017   ac_status=$?
23018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019   (exit $ac_status); }; }; then
23020   eval "$as_ac_var=yes"
23021 else
23022   echo "$as_me: failed program was:" >&5
23023 sed 's/^/| /' conftest.$ac_ext >&5
23024
23025 eval "$as_ac_var=no"
23026 fi
23027 rm -f conftest.err conftest.$ac_objext \
23028       conftest$ac_exeext conftest.$ac_ext
23029 fi
23030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23031 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23032 if test `eval echo '${'$as_ac_var'}'` = yes; then
23033   cat >>confdefs.h <<_ACEOF
23034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23035 _ACEOF
23036
23037
23038 cat >>confdefs.h <<\_ACEOF
23039 #define HAVE_GETHOSTBYADDR_R 1
23040 _ACEOF
23041
23042      # There are two different kinds of gethostbyaddr_r.
23043      # We look for the one that returns `int'.
23044      # Hopefully this check is robust enough.
23045      cat >conftest.$ac_ext <<_ACEOF
23046 /* confdefs.h.  */
23047 _ACEOF
23048 cat confdefs.h >>conftest.$ac_ext
23049 cat >>conftest.$ac_ext <<_ACEOF
23050 /* end confdefs.h.  */
23051 #include <netdb.h>
23052
23053 _ACEOF
23054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23055   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
23056
23057
23058 cat >>confdefs.h <<\_ACEOF
23059 #define GETHOSTBYADDR_R_RETURNS_INT 1
23060 _ACEOF
23061
23062 fi
23063 rm -f conftest*
23064
23065 fi
23066 done
23067
23068 fi
23069 rm -f conftest*
23070
23071
23072
23073 for ac_func in gethostname
23074 do
23075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23076 echo "$as_me:$LINENO: checking for $ac_func" >&5
23077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23078 if eval "test \"\${$as_ac_var+set}\" = set"; then
23079   echo $ECHO_N "(cached) $ECHO_C" >&6
23080 else
23081   if test x$gcc_no_link = xyes; then
23082   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23083 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23084    { (exit 1); exit 1; }; }
23085 fi
23086 cat >conftest.$ac_ext <<_ACEOF
23087 /* confdefs.h.  */
23088 _ACEOF
23089 cat confdefs.h >>conftest.$ac_ext
23090 cat >>conftest.$ac_ext <<_ACEOF
23091 /* end confdefs.h.  */
23092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23093    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23094 #define $ac_func innocuous_$ac_func
23095
23096 /* System header to define __stub macros and hopefully few prototypes,
23097     which can conflict with char $ac_func (); below.
23098     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23099     <limits.h> exists even on freestanding compilers.  */
23100
23101 #ifdef __STDC__
23102 # include <limits.h>
23103 #else
23104 # include <assert.h>
23105 #endif
23106
23107 #undef $ac_func
23108
23109 /* Override any gcc2 internal prototype to avoid an error.  */
23110 #ifdef __cplusplus
23111 extern "C"
23112 {
23113 #endif
23114 /* We use char because int might match the return type of a gcc2
23115    builtin and then its argument prototype would still apply.  */
23116 char $ac_func ();
23117 /* The GNU C library defines this for functions which it implements
23118     to always fail with ENOSYS.  Some functions are actually named
23119     something starting with __ and the normal name is an alias.  */
23120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23121 choke me
23122 #else
23123 char (*f) () = $ac_func;
23124 #endif
23125 #ifdef __cplusplus
23126 }
23127 #endif
23128
23129 int
23130 main ()
23131 {
23132 return f != $ac_func;
23133   ;
23134   return 0;
23135 }
23136 _ACEOF
23137 rm -f conftest.$ac_objext conftest$ac_exeext
23138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23139   (eval $ac_link) 2>conftest.er1
23140   ac_status=$?
23141   grep -v '^ *+' conftest.er1 >conftest.err
23142   rm -f conftest.er1
23143   cat conftest.err >&5
23144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145   (exit $ac_status); } &&
23146          { ac_try='test -z "$ac_c_werror_flag"
23147                          || test ! -s conftest.err'
23148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23149   (eval $ac_try) 2>&5
23150   ac_status=$?
23151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152   (exit $ac_status); }; } &&
23153          { ac_try='test -s conftest$ac_exeext'
23154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23155   (eval $ac_try) 2>&5
23156   ac_status=$?
23157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158   (exit $ac_status); }; }; then
23159   eval "$as_ac_var=yes"
23160 else
23161   echo "$as_me: failed program was:" >&5
23162 sed 's/^/| /' conftest.$ac_ext >&5
23163
23164 eval "$as_ac_var=no"
23165 fi
23166 rm -f conftest.err conftest.$ac_objext \
23167       conftest$ac_exeext conftest.$ac_ext
23168 fi
23169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23170 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23171 if test `eval echo '${'$as_ac_var'}'` = yes; then
23172   cat >>confdefs.h <<_ACEOF
23173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23174 _ACEOF
23175
23176
23177 cat >>confdefs.h <<\_ACEOF
23178 #define HAVE_GETHOSTNAME 1
23179 _ACEOF
23180
23181      cat >conftest.$ac_ext <<_ACEOF
23182 /* confdefs.h.  */
23183 _ACEOF
23184 cat confdefs.h >>conftest.$ac_ext
23185 cat >>conftest.$ac_ext <<_ACEOF
23186 /* end confdefs.h.  */
23187 #include <unistd.h>
23188
23189 _ACEOF
23190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23191   $EGREP "gethostname" >/dev/null 2>&1; then
23192
23193
23194 cat >>confdefs.h <<\_ACEOF
23195 #define HAVE_GETHOSTNAME_DECL 1
23196 _ACEOF
23197
23198 fi
23199 rm -f conftest*
23200
23201 fi
23202 done
23203
23204
23205
23206 for ac_func in usleep
23207 do
23208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23209 echo "$as_me:$LINENO: checking for $ac_func" >&5
23210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23211 if eval "test \"\${$as_ac_var+set}\" = set"; then
23212   echo $ECHO_N "(cached) $ECHO_C" >&6
23213 else
23214   if test x$gcc_no_link = xyes; then
23215   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23216 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23217    { (exit 1); exit 1; }; }
23218 fi
23219 cat >conftest.$ac_ext <<_ACEOF
23220 /* confdefs.h.  */
23221 _ACEOF
23222 cat confdefs.h >>conftest.$ac_ext
23223 cat >>conftest.$ac_ext <<_ACEOF
23224 /* end confdefs.h.  */
23225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23227 #define $ac_func innocuous_$ac_func
23228
23229 /* System header to define __stub macros and hopefully few prototypes,
23230     which can conflict with char $ac_func (); below.
23231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23232     <limits.h> exists even on freestanding compilers.  */
23233
23234 #ifdef __STDC__
23235 # include <limits.h>
23236 #else
23237 # include <assert.h>
23238 #endif
23239
23240 #undef $ac_func
23241
23242 /* Override any gcc2 internal prototype to avoid an error.  */
23243 #ifdef __cplusplus
23244 extern "C"
23245 {
23246 #endif
23247 /* We use char because int might match the return type of a gcc2
23248    builtin and then its argument prototype would still apply.  */
23249 char $ac_func ();
23250 /* The GNU C library defines this for functions which it implements
23251     to always fail with ENOSYS.  Some functions are actually named
23252     something starting with __ and the normal name is an alias.  */
23253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23254 choke me
23255 #else
23256 char (*f) () = $ac_func;
23257 #endif
23258 #ifdef __cplusplus
23259 }
23260 #endif
23261
23262 int
23263 main ()
23264 {
23265 return f != $ac_func;
23266   ;
23267   return 0;
23268 }
23269 _ACEOF
23270 rm -f conftest.$ac_objext conftest$ac_exeext
23271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23272   (eval $ac_link) 2>conftest.er1
23273   ac_status=$?
23274   grep -v '^ *+' conftest.er1 >conftest.err
23275   rm -f conftest.er1
23276   cat conftest.err >&5
23277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278   (exit $ac_status); } &&
23279          { ac_try='test -z "$ac_c_werror_flag"
23280                          || test ! -s conftest.err'
23281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23282   (eval $ac_try) 2>&5
23283   ac_status=$?
23284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285   (exit $ac_status); }; } &&
23286          { ac_try='test -s conftest$ac_exeext'
23287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23288   (eval $ac_try) 2>&5
23289   ac_status=$?
23290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291   (exit $ac_status); }; }; then
23292   eval "$as_ac_var=yes"
23293 else
23294   echo "$as_me: failed program was:" >&5
23295 sed 's/^/| /' conftest.$ac_ext >&5
23296
23297 eval "$as_ac_var=no"
23298 fi
23299 rm -f conftest.err conftest.$ac_objext \
23300       conftest$ac_exeext conftest.$ac_ext
23301 fi
23302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23303 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23304 if test `eval echo '${'$as_ac_var'}'` = yes; then
23305   cat >>confdefs.h <<_ACEOF
23306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23307 _ACEOF
23308
23309      cat >conftest.$ac_ext <<_ACEOF
23310 /* confdefs.h.  */
23311 _ACEOF
23312 cat confdefs.h >>conftest.$ac_ext
23313 cat >>conftest.$ac_ext <<_ACEOF
23314 /* end confdefs.h.  */
23315 #include <unistd.h>
23316
23317 _ACEOF
23318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23319   $EGREP "usleep" >/dev/null 2>&1; then
23320
23321
23322 cat >>confdefs.h <<\_ACEOF
23323 #define HAVE_USLEEP_DECL 1
23324 _ACEOF
23325
23326 fi
23327 rm -f conftest*
23328
23329 fi
23330 done
23331
23332
23333    # Look for these functions in the thread library, but only bother
23334    # if using POSIX threads.
23335    if test "$THREADS" = posix; then
23336       save_LIBS="$LIBS"
23337       LIBS="$LIBS $THREADLIBS"
23338
23339       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
23340       # Solaris 7 the name librt is preferred.
23341
23342 for ac_func in sched_yield
23343 do
23344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23345 echo "$as_me:$LINENO: checking for $ac_func" >&5
23346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23347 if eval "test \"\${$as_ac_var+set}\" = set"; then
23348   echo $ECHO_N "(cached) $ECHO_C" >&6
23349 else
23350   if test x$gcc_no_link = xyes; then
23351   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23352 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23353    { (exit 1); exit 1; }; }
23354 fi
23355 cat >conftest.$ac_ext <<_ACEOF
23356 /* confdefs.h.  */
23357 _ACEOF
23358 cat confdefs.h >>conftest.$ac_ext
23359 cat >>conftest.$ac_ext <<_ACEOF
23360 /* end confdefs.h.  */
23361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23363 #define $ac_func innocuous_$ac_func
23364
23365 /* System header to define __stub macros and hopefully few prototypes,
23366     which can conflict with char $ac_func (); below.
23367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23368     <limits.h> exists even on freestanding compilers.  */
23369
23370 #ifdef __STDC__
23371 # include <limits.h>
23372 #else
23373 # include <assert.h>
23374 #endif
23375
23376 #undef $ac_func
23377
23378 /* Override any gcc2 internal prototype to avoid an error.  */
23379 #ifdef __cplusplus
23380 extern "C"
23381 {
23382 #endif
23383 /* We use char because int might match the return type of a gcc2
23384    builtin and then its argument prototype would still apply.  */
23385 char $ac_func ();
23386 /* The GNU C library defines this for functions which it implements
23387     to always fail with ENOSYS.  Some functions are actually named
23388     something starting with __ and the normal name is an alias.  */
23389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23390 choke me
23391 #else
23392 char (*f) () = $ac_func;
23393 #endif
23394 #ifdef __cplusplus
23395 }
23396 #endif
23397
23398 int
23399 main ()
23400 {
23401 return f != $ac_func;
23402   ;
23403   return 0;
23404 }
23405 _ACEOF
23406 rm -f conftest.$ac_objext conftest$ac_exeext
23407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23408   (eval $ac_link) 2>conftest.er1
23409   ac_status=$?
23410   grep -v '^ *+' conftest.er1 >conftest.err
23411   rm -f conftest.er1
23412   cat conftest.err >&5
23413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414   (exit $ac_status); } &&
23415          { ac_try='test -z "$ac_c_werror_flag"
23416                          || test ! -s conftest.err'
23417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23418   (eval $ac_try) 2>&5
23419   ac_status=$?
23420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421   (exit $ac_status); }; } &&
23422          { ac_try='test -s conftest$ac_exeext'
23423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23424   (eval $ac_try) 2>&5
23425   ac_status=$?
23426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427   (exit $ac_status); }; }; then
23428   eval "$as_ac_var=yes"
23429 else
23430   echo "$as_me: failed program was:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23432
23433 eval "$as_ac_var=no"
23434 fi
23435 rm -f conftest.err conftest.$ac_objext \
23436       conftest$ac_exeext conftest.$ac_ext
23437 fi
23438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23440 if test `eval echo '${'$as_ac_var'}'` = yes; then
23441   cat >>confdefs.h <<_ACEOF
23442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23443 _ACEOF
23444
23445 else
23446
23447         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23448 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23449 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23450   echo $ECHO_N "(cached) $ECHO_C" >&6
23451 else
23452   ac_check_lib_save_LIBS=$LIBS
23453 LIBS="-lrt  $LIBS"
23454 if test x$gcc_no_link = xyes; then
23455   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23456 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23457    { (exit 1); exit 1; }; }
23458 fi
23459 cat >conftest.$ac_ext <<_ACEOF
23460 /* confdefs.h.  */
23461 _ACEOF
23462 cat confdefs.h >>conftest.$ac_ext
23463 cat >>conftest.$ac_ext <<_ACEOF
23464 /* end confdefs.h.  */
23465
23466 /* Override any gcc2 internal prototype to avoid an error.  */
23467 #ifdef __cplusplus
23468 extern "C"
23469 #endif
23470 /* We use char because int might match the return type of a gcc2
23471    builtin and then its argument prototype would still apply.  */
23472 char sched_yield ();
23473 int
23474 main ()
23475 {
23476 sched_yield ();
23477   ;
23478   return 0;
23479 }
23480 _ACEOF
23481 rm -f conftest.$ac_objext conftest$ac_exeext
23482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23483   (eval $ac_link) 2>conftest.er1
23484   ac_status=$?
23485   grep -v '^ *+' conftest.er1 >conftest.err
23486   rm -f conftest.er1
23487   cat conftest.err >&5
23488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489   (exit $ac_status); } &&
23490          { ac_try='test -z "$ac_c_werror_flag"
23491                          || test ! -s conftest.err'
23492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23493   (eval $ac_try) 2>&5
23494   ac_status=$?
23495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496   (exit $ac_status); }; } &&
23497          { ac_try='test -s conftest$ac_exeext'
23498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23499   (eval $ac_try) 2>&5
23500   ac_status=$?
23501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502   (exit $ac_status); }; }; then
23503   ac_cv_lib_rt_sched_yield=yes
23504 else
23505   echo "$as_me: failed program was:" >&5
23506 sed 's/^/| /' conftest.$ac_ext >&5
23507
23508 ac_cv_lib_rt_sched_yield=no
23509 fi
23510 rm -f conftest.err conftest.$ac_objext \
23511       conftest$ac_exeext conftest.$ac_ext
23512 LIBS=$ac_check_lib_save_LIBS
23513 fi
23514 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23515 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23516 if test $ac_cv_lib_rt_sched_yield = yes; then
23517
23518           cat >>confdefs.h <<\_ACEOF
23519 #define HAVE_SCHED_YIELD 1
23520 _ACEOF
23521
23522           THREADLIBS="$THREADLIBS -lrt"
23523           THREADSPEC="$THREADSPEC -lrt"
23524 else
23525
23526           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
23527 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
23528 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
23529   echo $ECHO_N "(cached) $ECHO_C" >&6
23530 else
23531   ac_check_lib_save_LIBS=$LIBS
23532 LIBS="-lposix4  $LIBS"
23533 if test x$gcc_no_link = xyes; then
23534   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23535 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23536    { (exit 1); exit 1; }; }
23537 fi
23538 cat >conftest.$ac_ext <<_ACEOF
23539 /* confdefs.h.  */
23540 _ACEOF
23541 cat confdefs.h >>conftest.$ac_ext
23542 cat >>conftest.$ac_ext <<_ACEOF
23543 /* end confdefs.h.  */
23544
23545 /* Override any gcc2 internal prototype to avoid an error.  */
23546 #ifdef __cplusplus
23547 extern "C"
23548 #endif
23549 /* We use char because int might match the return type of a gcc2
23550    builtin and then its argument prototype would still apply.  */
23551 char sched_yield ();
23552 int
23553 main ()
23554 {
23555 sched_yield ();
23556   ;
23557   return 0;
23558 }
23559 _ACEOF
23560 rm -f conftest.$ac_objext conftest$ac_exeext
23561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23562   (eval $ac_link) 2>conftest.er1
23563   ac_status=$?
23564   grep -v '^ *+' conftest.er1 >conftest.err
23565   rm -f conftest.er1
23566   cat conftest.err >&5
23567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568   (exit $ac_status); } &&
23569          { ac_try='test -z "$ac_c_werror_flag"
23570                          || test ! -s conftest.err'
23571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23572   (eval $ac_try) 2>&5
23573   ac_status=$?
23574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575   (exit $ac_status); }; } &&
23576          { ac_try='test -s conftest$ac_exeext'
23577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23578   (eval $ac_try) 2>&5
23579   ac_status=$?
23580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581   (exit $ac_status); }; }; then
23582   ac_cv_lib_posix4_sched_yield=yes
23583 else
23584   echo "$as_me: failed program was:" >&5
23585 sed 's/^/| /' conftest.$ac_ext >&5
23586
23587 ac_cv_lib_posix4_sched_yield=no
23588 fi
23589 rm -f conftest.err conftest.$ac_objext \
23590       conftest$ac_exeext conftest.$ac_ext
23591 LIBS=$ac_check_lib_save_LIBS
23592 fi
23593 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
23594 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
23595 if test $ac_cv_lib_posix4_sched_yield = yes; then
23596
23597             cat >>confdefs.h <<\_ACEOF
23598 #define HAVE_SCHED_YIELD 1
23599 _ACEOF
23600
23601             THREADLIBS="$THREADLIBS -lposix4"
23602             THREADSPEC="$THREADSPEC -lposix4"
23603 fi
23604
23605 fi
23606
23607 fi
23608 done
23609
23610
23611       echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
23612 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
23613 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
23614   echo $ECHO_N "(cached) $ECHO_C" >&6
23615 else
23616   ac_check_lib_save_LIBS=$LIBS
23617 LIBS="-lrt  $LIBS"
23618 if test x$gcc_no_link = xyes; then
23619   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23620 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23621    { (exit 1); exit 1; }; }
23622 fi
23623 cat >conftest.$ac_ext <<_ACEOF
23624 /* confdefs.h.  */
23625 _ACEOF
23626 cat confdefs.h >>conftest.$ac_ext
23627 cat >>conftest.$ac_ext <<_ACEOF
23628 /* end confdefs.h.  */
23629
23630 /* Override any gcc2 internal prototype to avoid an error.  */
23631 #ifdef __cplusplus
23632 extern "C"
23633 #endif
23634 /* We use char because int might match the return type of a gcc2
23635    builtin and then its argument prototype would still apply.  */
23636 char clock_gettime ();
23637 int
23638 main ()
23639 {
23640 clock_gettime ();
23641   ;
23642   return 0;
23643 }
23644 _ACEOF
23645 rm -f conftest.$ac_objext conftest$ac_exeext
23646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23647   (eval $ac_link) 2>conftest.er1
23648   ac_status=$?
23649   grep -v '^ *+' conftest.er1 >conftest.err
23650   rm -f conftest.er1
23651   cat conftest.err >&5
23652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653   (exit $ac_status); } &&
23654          { ac_try='test -z "$ac_c_werror_flag"
23655                          || test ! -s conftest.err'
23656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23657   (eval $ac_try) 2>&5
23658   ac_status=$?
23659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660   (exit $ac_status); }; } &&
23661          { ac_try='test -s conftest$ac_exeext'
23662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23663   (eval $ac_try) 2>&5
23664   ac_status=$?
23665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666   (exit $ac_status); }; }; then
23667   ac_cv_lib_rt_clock_gettime=yes
23668 else
23669   echo "$as_me: failed program was:" >&5
23670 sed 's/^/| /' conftest.$ac_ext >&5
23671
23672 ac_cv_lib_rt_clock_gettime=no
23673 fi
23674 rm -f conftest.err conftest.$ac_objext \
23675       conftest$ac_exeext conftest.$ac_ext
23676 LIBS=$ac_check_lib_save_LIBS
23677 fi
23678 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
23679 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
23680 if test $ac_cv_lib_rt_clock_gettime = yes; then
23681
23682
23683 cat >>confdefs.h <<\_ACEOF
23684 #define HAVE_CLOCK_GETTIME 1
23685 _ACEOF
23686
23687          case "$THREADSPEC" in
23688            *-lrt*) ;;
23689            *)
23690              THREADSPEC="$THREADSPEC -lrt"
23691              THREADLIBS="$THREADLIBS -lrt"
23692              ;;
23693          esac
23694 fi
23695
23696
23697       LIBS="$save_LIBS"
23698
23699       # We can save a little space at runtime if the mutex has m_count
23700       # or __m_count.  This is a nice hack for Linux.
23701       cat >conftest.$ac_ext <<_ACEOF
23702 /* confdefs.h.  */
23703 _ACEOF
23704 cat confdefs.h >>conftest.$ac_ext
23705 cat >>conftest.$ac_ext <<_ACEOF
23706 /* end confdefs.h.  */
23707 #include <pthread.h>
23708 int
23709 main ()
23710 {
23711
23712           extern pthread_mutex_t *mutex; int q = mutex->m_count;
23713
23714   ;
23715   return 0;
23716 }
23717 _ACEOF
23718 rm -f conftest.$ac_objext
23719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23720   (eval $ac_compile) 2>conftest.er1
23721   ac_status=$?
23722   grep -v '^ *+' conftest.er1 >conftest.err
23723   rm -f conftest.er1
23724   cat conftest.err >&5
23725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726   (exit $ac_status); } &&
23727          { ac_try='test -z "$ac_c_werror_flag"
23728                          || test ! -s conftest.err'
23729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23730   (eval $ac_try) 2>&5
23731   ac_status=$?
23732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733   (exit $ac_status); }; } &&
23734          { ac_try='test -s conftest.$ac_objext'
23735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736   (eval $ac_try) 2>&5
23737   ac_status=$?
23738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739   (exit $ac_status); }; }; then
23740
23741 cat >>confdefs.h <<\_ACEOF
23742 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
23743 _ACEOF
23744
23745 else
23746   echo "$as_me: failed program was:" >&5
23747 sed 's/^/| /' conftest.$ac_ext >&5
23748
23749
23750         cat >conftest.$ac_ext <<_ACEOF
23751 /* confdefs.h.  */
23752 _ACEOF
23753 cat confdefs.h >>conftest.$ac_ext
23754 cat >>conftest.$ac_ext <<_ACEOF
23755 /* end confdefs.h.  */
23756 #include <pthread.h>
23757 int
23758 main ()
23759 {
23760
23761             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
23762
23763   ;
23764   return 0;
23765 }
23766 _ACEOF
23767 rm -f conftest.$ac_objext
23768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23769   (eval $ac_compile) 2>conftest.er1
23770   ac_status=$?
23771   grep -v '^ *+' conftest.er1 >conftest.err
23772   rm -f conftest.er1
23773   cat conftest.err >&5
23774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775   (exit $ac_status); } &&
23776          { ac_try='test -z "$ac_c_werror_flag"
23777                          || test ! -s conftest.err'
23778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23779   (eval $ac_try) 2>&5
23780   ac_status=$?
23781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23782   (exit $ac_status); }; } &&
23783          { ac_try='test -s conftest.$ac_objext'
23784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23785   (eval $ac_try) 2>&5
23786   ac_status=$?
23787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788   (exit $ac_status); }; }; then
23789
23790 cat >>confdefs.h <<\_ACEOF
23791 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
23792 _ACEOF
23793
23794 else
23795   echo "$as_me: failed program was:" >&5
23796 sed 's/^/| /' conftest.$ac_ext >&5
23797
23798 fi
23799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23800 fi
23801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23802    fi
23803
23804    # We require a way to get the time.
23805    time_found=no
23806
23807
23808
23809 for ac_func in gettimeofday time ftime
23810 do
23811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23812 echo "$as_me:$LINENO: checking for $ac_func" >&5
23813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23814 if eval "test \"\${$as_ac_var+set}\" = set"; then
23815   echo $ECHO_N "(cached) $ECHO_C" >&6
23816 else
23817   if test x$gcc_no_link = xyes; then
23818   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23819 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23820    { (exit 1); exit 1; }; }
23821 fi
23822 cat >conftest.$ac_ext <<_ACEOF
23823 /* confdefs.h.  */
23824 _ACEOF
23825 cat confdefs.h >>conftest.$ac_ext
23826 cat >>conftest.$ac_ext <<_ACEOF
23827 /* end confdefs.h.  */
23828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23830 #define $ac_func innocuous_$ac_func
23831
23832 /* System header to define __stub macros and hopefully few prototypes,
23833     which can conflict with char $ac_func (); below.
23834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23835     <limits.h> exists even on freestanding compilers.  */
23836
23837 #ifdef __STDC__
23838 # include <limits.h>
23839 #else
23840 # include <assert.h>
23841 #endif
23842
23843 #undef $ac_func
23844
23845 /* Override any gcc2 internal prototype to avoid an error.  */
23846 #ifdef __cplusplus
23847 extern "C"
23848 {
23849 #endif
23850 /* We use char because int might match the return type of a gcc2
23851    builtin and then its argument prototype would still apply.  */
23852 char $ac_func ();
23853 /* The GNU C library defines this for functions which it implements
23854     to always fail with ENOSYS.  Some functions are actually named
23855     something starting with __ and the normal name is an alias.  */
23856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23857 choke me
23858 #else
23859 char (*f) () = $ac_func;
23860 #endif
23861 #ifdef __cplusplus
23862 }
23863 #endif
23864
23865 int
23866 main ()
23867 {
23868 return f != $ac_func;
23869   ;
23870   return 0;
23871 }
23872 _ACEOF
23873 rm -f conftest.$ac_objext conftest$ac_exeext
23874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23875   (eval $ac_link) 2>conftest.er1
23876   ac_status=$?
23877   grep -v '^ *+' conftest.er1 >conftest.err
23878   rm -f conftest.er1
23879   cat conftest.err >&5
23880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23881   (exit $ac_status); } &&
23882          { ac_try='test -z "$ac_c_werror_flag"
23883                          || test ! -s conftest.err'
23884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23885   (eval $ac_try) 2>&5
23886   ac_status=$?
23887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23888   (exit $ac_status); }; } &&
23889          { ac_try='test -s conftest$ac_exeext'
23890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23891   (eval $ac_try) 2>&5
23892   ac_status=$?
23893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894   (exit $ac_status); }; }; then
23895   eval "$as_ac_var=yes"
23896 else
23897   echo "$as_me: failed program was:" >&5
23898 sed 's/^/| /' conftest.$ac_ext >&5
23899
23900 eval "$as_ac_var=no"
23901 fi
23902 rm -f conftest.err conftest.$ac_objext \
23903       conftest$ac_exeext conftest.$ac_ext
23904 fi
23905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23906 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23907 if test `eval echo '${'$as_ac_var'}'` = yes; then
23908   cat >>confdefs.h <<_ACEOF
23909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23910 _ACEOF
23911  time_found=yes
23912 fi
23913 done
23914
23915    if test "$time_found" = no; then
23916       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
23917 echo "$as_me: error: no function found to get the time" >&2;}
23918    { (exit 1); exit 1; }; }
23919    fi
23920
23921
23922 for ac_func in memmove
23923 do
23924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23925 echo "$as_me:$LINENO: checking for $ac_func" >&5
23926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23927 if eval "test \"\${$as_ac_var+set}\" = set"; then
23928   echo $ECHO_N "(cached) $ECHO_C" >&6
23929 else
23930   if test x$gcc_no_link = xyes; then
23931   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23932 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23933    { (exit 1); exit 1; }; }
23934 fi
23935 cat >conftest.$ac_ext <<_ACEOF
23936 /* confdefs.h.  */
23937 _ACEOF
23938 cat confdefs.h >>conftest.$ac_ext
23939 cat >>conftest.$ac_ext <<_ACEOF
23940 /* end confdefs.h.  */
23941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23943 #define $ac_func innocuous_$ac_func
23944
23945 /* System header to define __stub macros and hopefully few prototypes,
23946     which can conflict with char $ac_func (); below.
23947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23948     <limits.h> exists even on freestanding compilers.  */
23949
23950 #ifdef __STDC__
23951 # include <limits.h>
23952 #else
23953 # include <assert.h>
23954 #endif
23955
23956 #undef $ac_func
23957
23958 /* Override any gcc2 internal prototype to avoid an error.  */
23959 #ifdef __cplusplus
23960 extern "C"
23961 {
23962 #endif
23963 /* We use char because int might match the return type of a gcc2
23964    builtin and then its argument prototype would still apply.  */
23965 char $ac_func ();
23966 /* The GNU C library defines this for functions which it implements
23967     to always fail with ENOSYS.  Some functions are actually named
23968     something starting with __ and the normal name is an alias.  */
23969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23970 choke me
23971 #else
23972 char (*f) () = $ac_func;
23973 #endif
23974 #ifdef __cplusplus
23975 }
23976 #endif
23977
23978 int
23979 main ()
23980 {
23981 return f != $ac_func;
23982   ;
23983   return 0;
23984 }
23985 _ACEOF
23986 rm -f conftest.$ac_objext conftest$ac_exeext
23987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23988   (eval $ac_link) 2>conftest.er1
23989   ac_status=$?
23990   grep -v '^ *+' conftest.er1 >conftest.err
23991   rm -f conftest.er1
23992   cat conftest.err >&5
23993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994   (exit $ac_status); } &&
23995          { ac_try='test -z "$ac_c_werror_flag"
23996                          || test ! -s conftest.err'
23997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23998   (eval $ac_try) 2>&5
23999   ac_status=$?
24000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001   (exit $ac_status); }; } &&
24002          { ac_try='test -s conftest$ac_exeext'
24003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24004   (eval $ac_try) 2>&5
24005   ac_status=$?
24006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007   (exit $ac_status); }; }; then
24008   eval "$as_ac_var=yes"
24009 else
24010   echo "$as_me: failed program was:" >&5
24011 sed 's/^/| /' conftest.$ac_ext >&5
24012
24013 eval "$as_ac_var=no"
24014 fi
24015 rm -f conftest.err conftest.$ac_objext \
24016       conftest$ac_exeext conftest.$ac_ext
24017 fi
24018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24020 if test `eval echo '${'$as_ac_var'}'` = yes; then
24021   cat >>confdefs.h <<_ACEOF
24022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24023 _ACEOF
24024
24025 fi
24026 done
24027
24028
24029    # We require memcpy.
24030    memcpy_found=no
24031
24032 for ac_func in memcpy
24033 do
24034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24035 echo "$as_me:$LINENO: checking for $ac_func" >&5
24036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24037 if eval "test \"\${$as_ac_var+set}\" = set"; then
24038   echo $ECHO_N "(cached) $ECHO_C" >&6
24039 else
24040   if test x$gcc_no_link = xyes; then
24041   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24042 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24043    { (exit 1); exit 1; }; }
24044 fi
24045 cat >conftest.$ac_ext <<_ACEOF
24046 /* confdefs.h.  */
24047 _ACEOF
24048 cat confdefs.h >>conftest.$ac_ext
24049 cat >>conftest.$ac_ext <<_ACEOF
24050 /* end confdefs.h.  */
24051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24052    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24053 #define $ac_func innocuous_$ac_func
24054
24055 /* System header to define __stub macros and hopefully few prototypes,
24056     which can conflict with char $ac_func (); below.
24057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24058     <limits.h> exists even on freestanding compilers.  */
24059
24060 #ifdef __STDC__
24061 # include <limits.h>
24062 #else
24063 # include <assert.h>
24064 #endif
24065
24066 #undef $ac_func
24067
24068 /* Override any gcc2 internal prototype to avoid an error.  */
24069 #ifdef __cplusplus
24070 extern "C"
24071 {
24072 #endif
24073 /* We use char because int might match the return type of a gcc2
24074    builtin and then its argument prototype would still apply.  */
24075 char $ac_func ();
24076 /* The GNU C library defines this for functions which it implements
24077     to always fail with ENOSYS.  Some functions are actually named
24078     something starting with __ and the normal name is an alias.  */
24079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24080 choke me
24081 #else
24082 char (*f) () = $ac_func;
24083 #endif
24084 #ifdef __cplusplus
24085 }
24086 #endif
24087
24088 int
24089 main ()
24090 {
24091 return f != $ac_func;
24092   ;
24093   return 0;
24094 }
24095 _ACEOF
24096 rm -f conftest.$ac_objext conftest$ac_exeext
24097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24098   (eval $ac_link) 2>conftest.er1
24099   ac_status=$?
24100   grep -v '^ *+' conftest.er1 >conftest.err
24101   rm -f conftest.er1
24102   cat conftest.err >&5
24103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24104   (exit $ac_status); } &&
24105          { ac_try='test -z "$ac_c_werror_flag"
24106                          || test ! -s conftest.err'
24107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24108   (eval $ac_try) 2>&5
24109   ac_status=$?
24110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111   (exit $ac_status); }; } &&
24112          { ac_try='test -s conftest$ac_exeext'
24113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24114   (eval $ac_try) 2>&5
24115   ac_status=$?
24116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117   (exit $ac_status); }; }; then
24118   eval "$as_ac_var=yes"
24119 else
24120   echo "$as_me: failed program was:" >&5
24121 sed 's/^/| /' conftest.$ac_ext >&5
24122
24123 eval "$as_ac_var=no"
24124 fi
24125 rm -f conftest.err conftest.$ac_objext \
24126       conftest$ac_exeext conftest.$ac_ext
24127 fi
24128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24129 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24130 if test `eval echo '${'$as_ac_var'}'` = yes; then
24131   cat >>confdefs.h <<_ACEOF
24132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24133 _ACEOF
24134  memcpy_found=yes
24135 fi
24136 done
24137
24138    if test "$memcpy_found" = no; then
24139       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
24140 echo "$as_me: error: memcpy is required" >&2;}
24141    { (exit 1); exit 1; }; }
24142    fi
24143    # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
24144    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24145 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24146 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24147   echo $ECHO_N "(cached) $ECHO_C" >&6
24148 else
24149   ac_check_lib_save_LIBS=$LIBS
24150 LIBS="-ldl  $LIBS"
24151 if test x$gcc_no_link = xyes; then
24152   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24153 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24154    { (exit 1); exit 1; }; }
24155 fi
24156 cat >conftest.$ac_ext <<_ACEOF
24157 /* confdefs.h.  */
24158 _ACEOF
24159 cat confdefs.h >>conftest.$ac_ext
24160 cat >>conftest.$ac_ext <<_ACEOF
24161 /* end confdefs.h.  */
24162
24163 /* Override any gcc2 internal prototype to avoid an error.  */
24164 #ifdef __cplusplus
24165 extern "C"
24166 #endif
24167 /* We use char because int might match the return type of a gcc2
24168    builtin and then its argument prototype would still apply.  */
24169 char dlopen ();
24170 int
24171 main ()
24172 {
24173 dlopen ();
24174   ;
24175   return 0;
24176 }
24177 _ACEOF
24178 rm -f conftest.$ac_objext conftest$ac_exeext
24179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24180   (eval $ac_link) 2>conftest.er1
24181   ac_status=$?
24182   grep -v '^ *+' conftest.er1 >conftest.err
24183   rm -f conftest.er1
24184   cat conftest.err >&5
24185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186   (exit $ac_status); } &&
24187          { ac_try='test -z "$ac_c_werror_flag"
24188                          || test ! -s conftest.err'
24189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24190   (eval $ac_try) 2>&5
24191   ac_status=$?
24192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193   (exit $ac_status); }; } &&
24194          { ac_try='test -s conftest$ac_exeext'
24195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24196   (eval $ac_try) 2>&5
24197   ac_status=$?
24198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199   (exit $ac_status); }; }; then
24200   ac_cv_lib_dl_dlopen=yes
24201 else
24202   echo "$as_me: failed program was:" >&5
24203 sed 's/^/| /' conftest.$ac_ext >&5
24204
24205 ac_cv_lib_dl_dlopen=no
24206 fi
24207 rm -f conftest.err conftest.$ac_objext \
24208       conftest$ac_exeext conftest.$ac_ext
24209 LIBS=$ac_check_lib_save_LIBS
24210 fi
24211 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24212 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24213 if test $ac_cv_lib_dl_dlopen = yes; then
24214
24215
24216 cat >>confdefs.h <<\_ACEOF
24217 #define HAVE_DLOPEN 1
24218 _ACEOF
24219
24220 else
24221
24222        echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
24223 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
24224 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
24225   echo $ECHO_N "(cached) $ECHO_C" >&6
24226 else
24227   ac_check_lib_save_LIBS=$LIBS
24228 LIBS="-ldld  $LIBS"
24229 if test x$gcc_no_link = xyes; then
24230   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24231 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24232    { (exit 1); exit 1; }; }
24233 fi
24234 cat >conftest.$ac_ext <<_ACEOF
24235 /* confdefs.h.  */
24236 _ACEOF
24237 cat confdefs.h >>conftest.$ac_ext
24238 cat >>conftest.$ac_ext <<_ACEOF
24239 /* end confdefs.h.  */
24240
24241 /* Override any gcc2 internal prototype to avoid an error.  */
24242 #ifdef __cplusplus
24243 extern "C"
24244 #endif
24245 /* We use char because int might match the return type of a gcc2
24246    builtin and then its argument prototype would still apply.  */
24247 char dlopen ();
24248 int
24249 main ()
24250 {
24251 dlopen ();
24252   ;
24253   return 0;
24254 }
24255 _ACEOF
24256 rm -f conftest.$ac_objext conftest$ac_exeext
24257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24258   (eval $ac_link) 2>conftest.er1
24259   ac_status=$?
24260   grep -v '^ *+' conftest.er1 >conftest.err
24261   rm -f conftest.er1
24262   cat conftest.err >&5
24263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264   (exit $ac_status); } &&
24265          { ac_try='test -z "$ac_c_werror_flag"
24266                          || test ! -s conftest.err'
24267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24268   (eval $ac_try) 2>&5
24269   ac_status=$?
24270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271   (exit $ac_status); }; } &&
24272          { ac_try='test -s conftest$ac_exeext'
24273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24274   (eval $ac_try) 2>&5
24275   ac_status=$?
24276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277   (exit $ac_status); }; }; then
24278   ac_cv_lib_dld_dlopen=yes
24279 else
24280   echo "$as_me: failed program was:" >&5
24281 sed 's/^/| /' conftest.$ac_ext >&5
24282
24283 ac_cv_lib_dld_dlopen=no
24284 fi
24285 rm -f conftest.err conftest.$ac_objext \
24286       conftest$ac_exeext conftest.$ac_ext
24287 LIBS=$ac_check_lib_save_LIBS
24288 fi
24289 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
24290 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
24291 if test $ac_cv_lib_dld_dlopen = yes; then
24292
24293
24294 cat >>confdefs.h <<\_ACEOF
24295 #define HAVE_DLOPEN 1
24296 _ACEOF
24297
24298 fi
24299
24300 fi
24301
24302
24303    # Some library-finding code we stole from Tcl.
24304    #--------------------------------------------------------------------
24305    #    Check for the existence of the -lsocket and -lnsl libraries.
24306    #    The order here is important, so that they end up in the right
24307    #    order in the command line generated by make.  Here are some
24308    #    special considerations:
24309    #    1. Use "connect" and "accept" to check for -lsocket, and
24310    #       "gethostbyname" to check for -lnsl.
24311    #    2. Use each function name only once:  can't redo a check because
24312    #       autoconf caches the results of the last check and won't redo it.
24313    #    3. Use -lnsl and -lsocket only if they supply procedures that
24314    #       aren't already present in the normal libraries.  This is because
24315    #       IRIX 5.2 has libraries, but they aren't needed and they're
24316    #       bogus:  they goof up name resolution if used.
24317    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
24318    #       To get around this problem, check for both libraries together
24319    #       if -lsocket doesn't work by itself.
24320    #--------------------------------------------------------------------
24321
24322    echo "$as_me:$LINENO: checking for socket libraries" >&5
24323 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
24324 if test "${gcj_cv_lib_sockets+set}" = set; then
24325   echo $ECHO_N "(cached) $ECHO_C" >&6
24326 else
24327   gcj_cv_lib_sockets=
24328      gcj_checkBoth=0
24329      unset ac_cv_func_connect
24330      echo "$as_me:$LINENO: checking for connect" >&5
24331 echo $ECHO_N "checking for connect... $ECHO_C" >&6
24332 if test "${ac_cv_func_connect+set}" = set; then
24333   echo $ECHO_N "(cached) $ECHO_C" >&6
24334 else
24335   if test x$gcc_no_link = xyes; then
24336   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24337 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24338    { (exit 1); exit 1; }; }
24339 fi
24340 cat >conftest.$ac_ext <<_ACEOF
24341 /* confdefs.h.  */
24342 _ACEOF
24343 cat confdefs.h >>conftest.$ac_ext
24344 cat >>conftest.$ac_ext <<_ACEOF
24345 /* end confdefs.h.  */
24346 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
24347    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24348 #define connect innocuous_connect
24349
24350 /* System header to define __stub macros and hopefully few prototypes,
24351     which can conflict with char connect (); below.
24352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24353     <limits.h> exists even on freestanding compilers.  */
24354
24355 #ifdef __STDC__
24356 # include <limits.h>
24357 #else
24358 # include <assert.h>
24359 #endif
24360
24361 #undef connect
24362
24363 /* Override any gcc2 internal prototype to avoid an error.  */
24364 #ifdef __cplusplus
24365 extern "C"
24366 {
24367 #endif
24368 /* We use char because int might match the return type of a gcc2
24369    builtin and then its argument prototype would still apply.  */
24370 char connect ();
24371 /* The GNU C library defines this for functions which it implements
24372     to always fail with ENOSYS.  Some functions are actually named
24373     something starting with __ and the normal name is an alias.  */
24374 #if defined (__stub_connect) || defined (__stub___connect)
24375 choke me
24376 #else
24377 char (*f) () = connect;
24378 #endif
24379 #ifdef __cplusplus
24380 }
24381 #endif
24382
24383 int
24384 main ()
24385 {
24386 return f != connect;
24387   ;
24388   return 0;
24389 }
24390 _ACEOF
24391 rm -f conftest.$ac_objext conftest$ac_exeext
24392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24393   (eval $ac_link) 2>conftest.er1
24394   ac_status=$?
24395   grep -v '^ *+' conftest.er1 >conftest.err
24396   rm -f conftest.er1
24397   cat conftest.err >&5
24398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399   (exit $ac_status); } &&
24400          { ac_try='test -z "$ac_c_werror_flag"
24401                          || test ! -s conftest.err'
24402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24403   (eval $ac_try) 2>&5
24404   ac_status=$?
24405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406   (exit $ac_status); }; } &&
24407          { ac_try='test -s conftest$ac_exeext'
24408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24409   (eval $ac_try) 2>&5
24410   ac_status=$?
24411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24412   (exit $ac_status); }; }; then
24413   ac_cv_func_connect=yes
24414 else
24415   echo "$as_me: failed program was:" >&5
24416 sed 's/^/| /' conftest.$ac_ext >&5
24417
24418 ac_cv_func_connect=no
24419 fi
24420 rm -f conftest.err conftest.$ac_objext \
24421       conftest$ac_exeext conftest.$ac_ext
24422 fi
24423 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24424 echo "${ECHO_T}$ac_cv_func_connect" >&6
24425 if test $ac_cv_func_connect = yes; then
24426   gcj_checkSocket=0
24427 else
24428   gcj_checkSocket=1
24429 fi
24430
24431      if test "$gcj_checkSocket" = 1; then
24432          unset ac_cv_func_connect
24433          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24434 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24435 if test "${ac_cv_lib_socket_main+set}" = set; then
24436   echo $ECHO_N "(cached) $ECHO_C" >&6
24437 else
24438   ac_check_lib_save_LIBS=$LIBS
24439 LIBS="-lsocket  $LIBS"
24440 if test x$gcc_no_link = xyes; then
24441   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24442 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24443    { (exit 1); exit 1; }; }
24444 fi
24445 cat >conftest.$ac_ext <<_ACEOF
24446 /* confdefs.h.  */
24447 _ACEOF
24448 cat confdefs.h >>conftest.$ac_ext
24449 cat >>conftest.$ac_ext <<_ACEOF
24450 /* end confdefs.h.  */
24451
24452
24453 int
24454 main ()
24455 {
24456 main ();
24457   ;
24458   return 0;
24459 }
24460 _ACEOF
24461 rm -f conftest.$ac_objext conftest$ac_exeext
24462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24463   (eval $ac_link) 2>conftest.er1
24464   ac_status=$?
24465   grep -v '^ *+' conftest.er1 >conftest.err
24466   rm -f conftest.er1
24467   cat conftest.err >&5
24468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469   (exit $ac_status); } &&
24470          { ac_try='test -z "$ac_c_werror_flag"
24471                          || test ! -s conftest.err'
24472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24473   (eval $ac_try) 2>&5
24474   ac_status=$?
24475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476   (exit $ac_status); }; } &&
24477          { ac_try='test -s conftest$ac_exeext'
24478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479   (eval $ac_try) 2>&5
24480   ac_status=$?
24481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482   (exit $ac_status); }; }; then
24483   ac_cv_lib_socket_main=yes
24484 else
24485   echo "$as_me: failed program was:" >&5
24486 sed 's/^/| /' conftest.$ac_ext >&5
24487
24488 ac_cv_lib_socket_main=no
24489 fi
24490 rm -f conftest.err conftest.$ac_objext \
24491       conftest$ac_exeext conftest.$ac_ext
24492 LIBS=$ac_check_lib_save_LIBS
24493 fi
24494 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24495 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24496 if test $ac_cv_lib_socket_main = yes; then
24497   gcj_cv_lib_sockets="-lsocket"
24498 else
24499   gcj_checkBoth=1
24500 fi
24501
24502      fi
24503      if test "$gcj_checkBoth" = 1; then
24504          gcj_oldLibs=$LIBS
24505          LIBS="$LIBS -lsocket -lnsl"
24506          unset ac_cv_func_accept
24507          echo "$as_me:$LINENO: checking for accept" >&5
24508 echo $ECHO_N "checking for accept... $ECHO_C" >&6
24509 if test "${ac_cv_func_accept+set}" = set; then
24510   echo $ECHO_N "(cached) $ECHO_C" >&6
24511 else
24512   if test x$gcc_no_link = xyes; then
24513   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24514 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24515    { (exit 1); exit 1; }; }
24516 fi
24517 cat >conftest.$ac_ext <<_ACEOF
24518 /* confdefs.h.  */
24519 _ACEOF
24520 cat confdefs.h >>conftest.$ac_ext
24521 cat >>conftest.$ac_ext <<_ACEOF
24522 /* end confdefs.h.  */
24523 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
24524    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24525 #define accept innocuous_accept
24526
24527 /* System header to define __stub macros and hopefully few prototypes,
24528     which can conflict with char accept (); below.
24529     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24530     <limits.h> exists even on freestanding compilers.  */
24531
24532 #ifdef __STDC__
24533 # include <limits.h>
24534 #else
24535 # include <assert.h>
24536 #endif
24537
24538 #undef accept
24539
24540 /* Override any gcc2 internal prototype to avoid an error.  */
24541 #ifdef __cplusplus
24542 extern "C"
24543 {
24544 #endif
24545 /* We use char because int might match the return type of a gcc2
24546    builtin and then its argument prototype would still apply.  */
24547 char accept ();
24548 /* The GNU C library defines this for functions which it implements
24549     to always fail with ENOSYS.  Some functions are actually named
24550     something starting with __ and the normal name is an alias.  */
24551 #if defined (__stub_accept) || defined (__stub___accept)
24552 choke me
24553 #else
24554 char (*f) () = accept;
24555 #endif
24556 #ifdef __cplusplus
24557 }
24558 #endif
24559
24560 int
24561 main ()
24562 {
24563 return f != accept;
24564   ;
24565   return 0;
24566 }
24567 _ACEOF
24568 rm -f conftest.$ac_objext conftest$ac_exeext
24569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24570   (eval $ac_link) 2>conftest.er1
24571   ac_status=$?
24572   grep -v '^ *+' conftest.er1 >conftest.err
24573   rm -f conftest.er1
24574   cat conftest.err >&5
24575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576   (exit $ac_status); } &&
24577          { ac_try='test -z "$ac_c_werror_flag"
24578                          || test ! -s conftest.err'
24579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24580   (eval $ac_try) 2>&5
24581   ac_status=$?
24582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24583   (exit $ac_status); }; } &&
24584          { ac_try='test -s conftest$ac_exeext'
24585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24586   (eval $ac_try) 2>&5
24587   ac_status=$?
24588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589   (exit $ac_status); }; }; then
24590   ac_cv_func_accept=yes
24591 else
24592   echo "$as_me: failed program was:" >&5
24593 sed 's/^/| /' conftest.$ac_ext >&5
24594
24595 ac_cv_func_accept=no
24596 fi
24597 rm -f conftest.err conftest.$ac_objext \
24598       conftest$ac_exeext conftest.$ac_ext
24599 fi
24600 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
24601 echo "${ECHO_T}$ac_cv_func_accept" >&6
24602 if test $ac_cv_func_accept = yes; then
24603   gcj_checkNsl=0
24604                         gcj_cv_lib_sockets="-lsocket -lnsl"
24605 fi
24606
24607          unset ac_cv_func_accept
24608          LIBS=$gcj_oldLibs
24609      fi
24610      unset ac_cv_func_gethostbyname
24611      gcj_oldLibs=$LIBS
24612      LIBS="$LIBS $gcj_cv_lib_sockets"
24613      echo "$as_me:$LINENO: checking for gethostbyname" >&5
24614 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24615 if test "${ac_cv_func_gethostbyname+set}" = set; then
24616   echo $ECHO_N "(cached) $ECHO_C" >&6
24617 else
24618   if test x$gcc_no_link = xyes; then
24619   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24620 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24621    { (exit 1); exit 1; }; }
24622 fi
24623 cat >conftest.$ac_ext <<_ACEOF
24624 /* confdefs.h.  */
24625 _ACEOF
24626 cat confdefs.h >>conftest.$ac_ext
24627 cat >>conftest.$ac_ext <<_ACEOF
24628 /* end confdefs.h.  */
24629 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24630    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24631 #define gethostbyname innocuous_gethostbyname
24632
24633 /* System header to define __stub macros and hopefully few prototypes,
24634     which can conflict with char gethostbyname (); below.
24635     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24636     <limits.h> exists even on freestanding compilers.  */
24637
24638 #ifdef __STDC__
24639 # include <limits.h>
24640 #else
24641 # include <assert.h>
24642 #endif
24643
24644 #undef gethostbyname
24645
24646 /* Override any gcc2 internal prototype to avoid an error.  */
24647 #ifdef __cplusplus
24648 extern "C"
24649 {
24650 #endif
24651 /* We use char because int might match the return type of a gcc2
24652    builtin and then its argument prototype would still apply.  */
24653 char gethostbyname ();
24654 /* The GNU C library defines this for functions which it implements
24655     to always fail with ENOSYS.  Some functions are actually named
24656     something starting with __ and the normal name is an alias.  */
24657 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24658 choke me
24659 #else
24660 char (*f) () = gethostbyname;
24661 #endif
24662 #ifdef __cplusplus
24663 }
24664 #endif
24665
24666 int
24667 main ()
24668 {
24669 return f != gethostbyname;
24670   ;
24671   return 0;
24672 }
24673 _ACEOF
24674 rm -f conftest.$ac_objext conftest$ac_exeext
24675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24676   (eval $ac_link) 2>conftest.er1
24677   ac_status=$?
24678   grep -v '^ *+' conftest.er1 >conftest.err
24679   rm -f conftest.er1
24680   cat conftest.err >&5
24681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682   (exit $ac_status); } &&
24683          { ac_try='test -z "$ac_c_werror_flag"
24684                          || test ! -s conftest.err'
24685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24686   (eval $ac_try) 2>&5
24687   ac_status=$?
24688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689   (exit $ac_status); }; } &&
24690          { ac_try='test -s conftest$ac_exeext'
24691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24692   (eval $ac_try) 2>&5
24693   ac_status=$?
24694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24695   (exit $ac_status); }; }; then
24696   ac_cv_func_gethostbyname=yes
24697 else
24698   echo "$as_me: failed program was:" >&5
24699 sed 's/^/| /' conftest.$ac_ext >&5
24700
24701 ac_cv_func_gethostbyname=no
24702 fi
24703 rm -f conftest.err conftest.$ac_objext \
24704       conftest$ac_exeext conftest.$ac_ext
24705 fi
24706 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24707 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24708 if test $ac_cv_func_gethostbyname = yes; then
24709   :
24710 else
24711   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24712 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24713 if test "${ac_cv_lib_nsl_main+set}" = set; then
24714   echo $ECHO_N "(cached) $ECHO_C" >&6
24715 else
24716   ac_check_lib_save_LIBS=$LIBS
24717 LIBS="-lnsl  $LIBS"
24718 if test x$gcc_no_link = xyes; then
24719   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24720 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24721    { (exit 1); exit 1; }; }
24722 fi
24723 cat >conftest.$ac_ext <<_ACEOF
24724 /* confdefs.h.  */
24725 _ACEOF
24726 cat confdefs.h >>conftest.$ac_ext
24727 cat >>conftest.$ac_ext <<_ACEOF
24728 /* end confdefs.h.  */
24729
24730
24731 int
24732 main ()
24733 {
24734 main ();
24735   ;
24736   return 0;
24737 }
24738 _ACEOF
24739 rm -f conftest.$ac_objext conftest$ac_exeext
24740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24741   (eval $ac_link) 2>conftest.er1
24742   ac_status=$?
24743   grep -v '^ *+' conftest.er1 >conftest.err
24744   rm -f conftest.er1
24745   cat conftest.err >&5
24746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747   (exit $ac_status); } &&
24748          { ac_try='test -z "$ac_c_werror_flag"
24749                          || test ! -s conftest.err'
24750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24751   (eval $ac_try) 2>&5
24752   ac_status=$?
24753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754   (exit $ac_status); }; } &&
24755          { ac_try='test -s conftest$ac_exeext'
24756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24757   (eval $ac_try) 2>&5
24758   ac_status=$?
24759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760   (exit $ac_status); }; }; then
24761   ac_cv_lib_nsl_main=yes
24762 else
24763   echo "$as_me: failed program was:" >&5
24764 sed 's/^/| /' conftest.$ac_ext >&5
24765
24766 ac_cv_lib_nsl_main=no
24767 fi
24768 rm -f conftest.err conftest.$ac_objext \
24769       conftest$ac_exeext conftest.$ac_ext
24770 LIBS=$ac_check_lib_save_LIBS
24771 fi
24772 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24773 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24774 if test $ac_cv_lib_nsl_main = yes; then
24775   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
24776 fi
24777
24778 fi
24779
24780      unset ac_cv_func_gethostbyname
24781      LIBS=$gcj_oldLIBS
24782
24783 fi
24784 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
24785 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
24786    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
24787
24788    if test "$with_system_zlib" = yes; then
24789       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24790 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24791 if test "${ac_cv_lib_z_deflate+set}" = set; then
24792   echo $ECHO_N "(cached) $ECHO_C" >&6
24793 else
24794   ac_check_lib_save_LIBS=$LIBS
24795 LIBS="-lz  $LIBS"
24796 if test x$gcc_no_link = xyes; then
24797   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24798 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24799    { (exit 1); exit 1; }; }
24800 fi
24801 cat >conftest.$ac_ext <<_ACEOF
24802 /* confdefs.h.  */
24803 _ACEOF
24804 cat confdefs.h >>conftest.$ac_ext
24805 cat >>conftest.$ac_ext <<_ACEOF
24806 /* end confdefs.h.  */
24807
24808 /* Override any gcc2 internal prototype to avoid an error.  */
24809 #ifdef __cplusplus
24810 extern "C"
24811 #endif
24812 /* We use char because int might match the return type of a gcc2
24813    builtin and then its argument prototype would still apply.  */
24814 char deflate ();
24815 int
24816 main ()
24817 {
24818 deflate ();
24819   ;
24820   return 0;
24821 }
24822 _ACEOF
24823 rm -f conftest.$ac_objext conftest$ac_exeext
24824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24825   (eval $ac_link) 2>conftest.er1
24826   ac_status=$?
24827   grep -v '^ *+' conftest.er1 >conftest.err
24828   rm -f conftest.er1
24829   cat conftest.err >&5
24830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831   (exit $ac_status); } &&
24832          { ac_try='test -z "$ac_c_werror_flag"
24833                          || test ! -s conftest.err'
24834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24835   (eval $ac_try) 2>&5
24836   ac_status=$?
24837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838   (exit $ac_status); }; } &&
24839          { ac_try='test -s conftest$ac_exeext'
24840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24841   (eval $ac_try) 2>&5
24842   ac_status=$?
24843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844   (exit $ac_status); }; }; then
24845   ac_cv_lib_z_deflate=yes
24846 else
24847   echo "$as_me: failed program was:" >&5
24848 sed 's/^/| /' conftest.$ac_ext >&5
24849
24850 ac_cv_lib_z_deflate=no
24851 fi
24852 rm -f conftest.err conftest.$ac_objext \
24853       conftest$ac_exeext conftest.$ac_ext
24854 LIBS=$ac_check_lib_save_LIBS
24855 fi
24856 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24857 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24858 if test $ac_cv_lib_z_deflate = yes; then
24859   ZLIBSPEC=-lz
24860 else
24861   ZLIBSPEC=
24862 fi
24863
24864    fi
24865
24866    # Test for Gtk stuff, if asked for.
24867    if test "$use_gtk_awt" = yes; then
24868
24869   succeeded=no
24870
24871   if test -z "$PKG_CONFIG"; then
24872     # Extract the first word of "pkg-config", so it can be a program name with args.
24873 set dummy pkg-config; ac_word=$2
24874 echo "$as_me:$LINENO: checking for $ac_word" >&5
24875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24876 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24877   echo $ECHO_N "(cached) $ECHO_C" >&6
24878 else
24879   case $PKG_CONFIG in
24880   [\\/]* | ?:[\\/]*)
24881   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24882   ;;
24883   *)
24884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24885 for as_dir in $PATH
24886 do
24887   IFS=$as_save_IFS
24888   test -z "$as_dir" && as_dir=.
24889   for ac_exec_ext in '' $ac_executable_extensions; do
24890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24891     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24893     break 2
24894   fi
24895 done
24896 done
24897
24898   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24899   ;;
24900 esac
24901 fi
24902 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24903
24904 if test -n "$PKG_CONFIG"; then
24905   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24906 echo "${ECHO_T}$PKG_CONFIG" >&6
24907 else
24908   echo "$as_me:$LINENO: result: no" >&5
24909 echo "${ECHO_T}no" >&6
24910 fi
24911
24912   fi
24913
24914   if test "$PKG_CONFIG" = "no" ; then
24915      echo "*** The pkg-config script could not be found. Make sure it is"
24916      echo "*** in your path, or set the PKG_CONFIG environment variable"
24917      echo "*** to the full path to pkg-config."
24918      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24919   else
24920      PKG_CONFIG_MIN_VERSION=0.9.0
24921      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24922         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
24923 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
24924
24925         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
24926             echo "$as_me:$LINENO: result: yes" >&5
24927 echo "${ECHO_T}yes" >&6
24928             succeeded=yes
24929
24930             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
24931 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
24932             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
24933             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
24934 echo "${ECHO_T}$GTK_CFLAGS" >&6
24935
24936             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
24937 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
24938             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
24939             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
24940 echo "${ECHO_T}$GTK_LIBS" >&6
24941         else
24942             GTK_CFLAGS=""
24943             GTK_LIBS=""
24944             ## If we have a custom action on failure, don't print errors, but
24945             ## do set a variable so people can do so.
24946             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
24947             echo $GTK_PKG_ERRORS
24948         fi
24949
24950
24951
24952      else
24953         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24954         echo "*** See http://www.freedesktop.org/software/pkgconfig"
24955      fi
24956   fi
24957
24958   if test $succeeded = yes; then
24959      :
24960   else
24961      { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
24962 echo "$as_me: error: Library requirements (gtk+-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
24963    { (exit 1); exit 1; }; }
24964   fi
24965
24966
24967
24968
24969
24970   succeeded=no
24971
24972   if test -z "$PKG_CONFIG"; then
24973     # Extract the first word of "pkg-config", so it can be a program name with args.
24974 set dummy pkg-config; ac_word=$2
24975 echo "$as_me:$LINENO: checking for $ac_word" >&5
24976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24977 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24978   echo $ECHO_N "(cached) $ECHO_C" >&6
24979 else
24980   case $PKG_CONFIG in
24981   [\\/]* | ?:[\\/]*)
24982   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24983   ;;
24984   *)
24985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24986 for as_dir in $PATH
24987 do
24988   IFS=$as_save_IFS
24989   test -z "$as_dir" && as_dir=.
24990   for ac_exec_ext in '' $ac_executable_extensions; do
24991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24992     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24994     break 2
24995   fi
24996 done
24997 done
24998
24999   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25000   ;;
25001 esac
25002 fi
25003 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25004
25005 if test -n "$PKG_CONFIG"; then
25006   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25007 echo "${ECHO_T}$PKG_CONFIG" >&6
25008 else
25009   echo "$as_me:$LINENO: result: no" >&5
25010 echo "${ECHO_T}no" >&6
25011 fi
25012
25013   fi
25014
25015   if test "$PKG_CONFIG" = "no" ; then
25016      echo "*** The pkg-config script could not be found. Make sure it is"
25017      echo "*** in your path, or set the PKG_CONFIG environment variable"
25018      echo "*** to the full path to pkg-config."
25019      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25020   else
25021      PKG_CONFIG_MIN_VERSION=0.9.0
25022      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25023         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
25024 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
25025
25026         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
25027             echo "$as_me:$LINENO: result: yes" >&5
25028 echo "${ECHO_T}yes" >&6
25029             succeeded=yes
25030
25031             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
25032 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
25033             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25034             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
25035 echo "${ECHO_T}$GLIB_CFLAGS" >&6
25036
25037             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
25038 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
25039             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25040             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
25041 echo "${ECHO_T}$GLIB_LIBS" >&6
25042         else
25043             GLIB_CFLAGS=""
25044             GLIB_LIBS=""
25045             ## If we have a custom action on failure, don't print errors, but
25046             ## do set a variable so people can do so.
25047             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25048             echo $GLIB_PKG_ERRORS
25049         fi
25050
25051
25052
25053      else
25054         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25055         echo "*** See http://www.freedesktop.org/software/pkgconfig"
25056      fi
25057   fi
25058
25059   if test $succeeded = yes; then
25060      :
25061   else
25062      { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0 >= 2.4 gthread-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
25063 echo "$as_me: error: Library requirements (glib-2.0 >= 2.4 gthread-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
25064    { (exit 1); exit 1; }; }
25065   fi
25066
25067
25068
25069
25070
25071   succeeded=no
25072
25073   if test -z "$PKG_CONFIG"; then
25074     # Extract the first word of "pkg-config", so it can be a program name with args.
25075 set dummy pkg-config; ac_word=$2
25076 echo "$as_me:$LINENO: checking for $ac_word" >&5
25077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25078 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25079   echo $ECHO_N "(cached) $ECHO_C" >&6
25080 else
25081   case $PKG_CONFIG in
25082   [\\/]* | ?:[\\/]*)
25083   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25084   ;;
25085   *)
25086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25087 for as_dir in $PATH
25088 do
25089   IFS=$as_save_IFS
25090   test -z "$as_dir" && as_dir=.
25091   for ac_exec_ext in '' $ac_executable_extensions; do
25092   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25093     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25095     break 2
25096   fi
25097 done
25098 done
25099
25100   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25101   ;;
25102 esac
25103 fi
25104 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25105
25106 if test -n "$PKG_CONFIG"; then
25107   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25108 echo "${ECHO_T}$PKG_CONFIG" >&6
25109 else
25110   echo "$as_me:$LINENO: result: no" >&5
25111 echo "${ECHO_T}no" >&6
25112 fi
25113
25114   fi
25115
25116   if test "$PKG_CONFIG" = "no" ; then
25117      echo "*** The pkg-config script could not be found. Make sure it is"
25118      echo "*** in your path, or set the PKG_CONFIG environment variable"
25119      echo "*** to the full path to pkg-config."
25120      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25121   else
25122      PKG_CONFIG_MIN_VERSION=0.9.0
25123      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25124         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
25125 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
25126
25127         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
25128             echo "$as_me:$LINENO: result: yes" >&5
25129 echo "${ECHO_T}yes" >&6
25130             succeeded=yes
25131
25132             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
25133 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
25134             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
25135             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
25136 echo "${ECHO_T}$LIBART_CFLAGS" >&6
25137
25138             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
25139 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
25140             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
25141             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
25142 echo "${ECHO_T}$LIBART_LIBS" >&6
25143         else
25144             LIBART_CFLAGS=""
25145             LIBART_LIBS=""
25146             ## If we have a custom action on failure, don't print errors, but
25147             ## do set a variable so people can do so.
25148             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
25149             echo $LIBART_PKG_ERRORS
25150         fi
25151
25152
25153
25154      else
25155         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25156         echo "*** See http://www.freedesktop.org/software/pkgconfig"
25157      fi
25158   fi
25159
25160   if test $succeeded = yes; then
25161      :
25162   else
25163      { { echo "$as_me:$LINENO: error: Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
25164 echo "$as_me: error: Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
25165    { (exit 1); exit 1; }; }
25166   fi
25167
25168
25169
25170
25171       # We require the XTest Extension to support java.awt.Robot.
25172       echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
25173 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
25174 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
25175   echo $ECHO_N "(cached) $ECHO_C" >&6
25176 else
25177   ac_check_lib_save_LIBS=$LIBS
25178 LIBS="-lXtst ${X_LIBS} $LIBS"
25179 if test x$gcc_no_link = xyes; then
25180   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25181 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25182    { (exit 1); exit 1; }; }
25183 fi
25184 cat >conftest.$ac_ext <<_ACEOF
25185 /* confdefs.h.  */
25186 _ACEOF
25187 cat confdefs.h >>conftest.$ac_ext
25188 cat >>conftest.$ac_ext <<_ACEOF
25189 /* end confdefs.h.  */
25190
25191 /* Override any gcc2 internal prototype to avoid an error.  */
25192 #ifdef __cplusplus
25193 extern "C"
25194 #endif
25195 /* We use char because int might match the return type of a gcc2
25196    builtin and then its argument prototype would still apply.  */
25197 char XTestQueryExtension ();
25198 int
25199 main ()
25200 {
25201 XTestQueryExtension ();
25202   ;
25203   return 0;
25204 }
25205 _ACEOF
25206 rm -f conftest.$ac_objext conftest$ac_exeext
25207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25208   (eval $ac_link) 2>conftest.er1
25209   ac_status=$?
25210   grep -v '^ *+' conftest.er1 >conftest.err
25211   rm -f conftest.er1
25212   cat conftest.err >&5
25213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214   (exit $ac_status); } &&
25215          { ac_try='test -z "$ac_c_werror_flag"
25216                          || test ! -s conftest.err'
25217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25218   (eval $ac_try) 2>&5
25219   ac_status=$?
25220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221   (exit $ac_status); }; } &&
25222          { ac_try='test -s conftest$ac_exeext'
25223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25224   (eval $ac_try) 2>&5
25225   ac_status=$?
25226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227   (exit $ac_status); }; }; then
25228   ac_cv_lib_Xtst_XTestQueryExtension=yes
25229 else
25230   echo "$as_me: failed program was:" >&5
25231 sed 's/^/| /' conftest.$ac_ext >&5
25232
25233 ac_cv_lib_Xtst_XTestQueryExtension=no
25234 fi
25235 rm -f conftest.err conftest.$ac_objext \
25236       conftest$ac_exeext conftest.$ac_ext
25237 LIBS=$ac_check_lib_save_LIBS
25238 fi
25239 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
25240 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
25241 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
25242   true
25243 else
25244   { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
25245 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
25246    { (exit 1); exit 1; }; }
25247 fi
25248
25249    fi
25250
25251    # On Solaris, and maybe other architectures, the Boehm collector
25252    # requires -ldl.
25253    if test "$GC" = boehm; then
25254       case "${host}" in
25255           mips-sgi-irix6*)
25256             # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
25257             # libgcj.spec is used, so override here
25258             SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
25259           ;;
25260           *)
25261             echo "$as_me:$LINENO: checking for main in -ldl" >&5
25262 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
25263 if test "${ac_cv_lib_dl_main+set}" = set; then
25264   echo $ECHO_N "(cached) $ECHO_C" >&6
25265 else
25266   ac_check_lib_save_LIBS=$LIBS
25267 LIBS="-ldl  $LIBS"
25268 if test x$gcc_no_link = xyes; then
25269   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25270 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25271    { (exit 1); exit 1; }; }
25272 fi
25273 cat >conftest.$ac_ext <<_ACEOF
25274 /* confdefs.h.  */
25275 _ACEOF
25276 cat confdefs.h >>conftest.$ac_ext
25277 cat >>conftest.$ac_ext <<_ACEOF
25278 /* end confdefs.h.  */
25279
25280
25281 int
25282 main ()
25283 {
25284 main ();
25285   ;
25286   return 0;
25287 }
25288 _ACEOF
25289 rm -f conftest.$ac_objext conftest$ac_exeext
25290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25291   (eval $ac_link) 2>conftest.er1
25292   ac_status=$?
25293   grep -v '^ *+' conftest.er1 >conftest.err
25294   rm -f conftest.er1
25295   cat conftest.err >&5
25296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297   (exit $ac_status); } &&
25298          { ac_try='test -z "$ac_c_werror_flag"
25299                          || test ! -s conftest.err'
25300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25301   (eval $ac_try) 2>&5
25302   ac_status=$?
25303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25304   (exit $ac_status); }; } &&
25305          { ac_try='test -s conftest$ac_exeext'
25306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25307   (eval $ac_try) 2>&5
25308   ac_status=$?
25309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25310   (exit $ac_status); }; }; then
25311   ac_cv_lib_dl_main=yes
25312 else
25313   echo "$as_me: failed program was:" >&5
25314 sed 's/^/| /' conftest.$ac_ext >&5
25315
25316 ac_cv_lib_dl_main=no
25317 fi
25318 rm -f conftest.err conftest.$ac_objext \
25319       conftest$ac_exeext conftest.$ac_ext
25320 LIBS=$ac_check_lib_save_LIBS
25321 fi
25322 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
25323 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
25324 if test $ac_cv_lib_dl_main = yes; then
25325   SYSTEMSPEC="$SYSTEMSPEC -ldl"
25326 fi
25327
25328           ;;
25329       esac
25330    fi
25331 fi
25332
25333 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
25334 case $build in
25335     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
25336     *)         CLASSPATH_SEPARATOR=':' ;;
25337 esac
25338
25339
25340 # We must search the source tree for java.lang, since we still don't
25341 # have libgcj.jar nor java/lang/*.class
25342 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
25343 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
25344
25345 # Since some classes depend on this one, we need its source available
25346 # before we can do any GCJ compilation test :-(
25347 if test ! -f gnu/classpath/Configuration.java; then
25348   test -d gnu || mkdir gnu
25349   test -d gnu/classpath || mkdir gnu/classpath
25350   # Note that it is not crucial that all the values here be correct.
25351   sed -e "s,@prefix@,$prefix," \
25352       -e "s,@VERSION@,$VERSION," \
25353       -e "s,@LIBDEBUG@,false," \
25354       -e "s,@INIT_LOAD_LIBRARY@,false," \
25355       -e "s,@@,$LIBGCJDEBUG," \
25356       -e "s,@default_toolkit@,$TOOLKIT," \
25357       -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
25358       -e "s,@GTK_CAIRO_ENABLED@,false," \
25359       -e "s,@ECJ_JAR@,," \
25360         < $srcdir/classpath/gnu/classpath/Configuration.java.in \
25361         > gnu/classpath/Configuration.java
25362   # We do not want to redirect the output of the grep below to /dev/null,
25363   # but we add /dev/null to the input list so that grep will print the
25364   # filename of Configuration.java in case it finds any matches.
25365   if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
25366     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
25367 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
25368    { (exit 1); exit 1; }; }
25369   fi
25370 fi
25371
25372
25373 for ac_prog in gcj
25374 do
25375   # Extract the first word of "$ac_prog", so it can be a program name with args.
25376 set dummy $ac_prog; ac_word=$2
25377 echo "$as_me:$LINENO: checking for $ac_word" >&5
25378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25379 if test "${ac_cv_prog_GCJ+set}" = set; then
25380   echo $ECHO_N "(cached) $ECHO_C" >&6
25381 else
25382   if test -n "$GCJ"; then
25383   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
25384 else
25385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25386 for as_dir in $PATH
25387 do
25388   IFS=$as_save_IFS
25389   test -z "$as_dir" && as_dir=.
25390   for ac_exec_ext in '' $ac_executable_extensions; do
25391   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25392     ac_cv_prog_GCJ="$ac_prog"
25393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25394     break 2
25395   fi
25396 done
25397 done
25398
25399 fi
25400 fi
25401 GCJ=$ac_cv_prog_GCJ
25402 if test -n "$GCJ"; then
25403   echo "$as_me:$LINENO: result: $GCJ" >&5
25404 echo "${ECHO_T}$GCJ" >&6
25405 else
25406   echo "$as_me:$LINENO: result: no" >&5
25407 echo "${ECHO_T}no" >&6
25408 fi
25409
25410   test -n "$GCJ" && break
25411 done
25412 test -n "$GCJ" || GCJ="gcj"
25413
25414 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
25415 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
25416    { (exit 1); exit 1; }; }
25417 if test "x${GCJFLAGS-unset}" = xunset; then
25418    GCJFLAGS="-g -O2"
25419 fi
25420
25421
25422 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
25423
25424 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
25425 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
25426 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
25427   echo $ECHO_N "(cached) $ECHO_C" >&6
25428 else
25429   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25430   # We make a subdir and do the tests there.  Otherwise we can end up
25431   # making bogus files that we don't know about and never remove.  For
25432   # instance it was reported that on HP-UX the gcc test will end up
25433   # making a dummy file named `D' -- because `-MD' means `put the output
25434   # in D'.
25435   mkdir conftest.dir
25436   # Copy depcomp to subdir because otherwise we won't find it if we're
25437   # using a relative directory.
25438   cp "$am_depcomp" conftest.dir
25439   cd conftest.dir
25440   # We will build objects and dependencies in a subdirectory because
25441   # it helps to detect inapplicable dependency modes.  For instance
25442   # both Tru64's cc and ICC support -MD to output dependencies as a
25443   # side effect of compilation, but ICC will put the dependencies in
25444   # the current directory while Tru64 will put them in the object
25445   # directory.
25446   mkdir sub
25447
25448   am_cv_GCJ_dependencies_compiler_type=none
25449   if test "$am_compiler_list" = ""; then
25450      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25451   fi
25452   for depmode in $am_compiler_list; do
25453     # Setup a source with many dependencies, because some compilers
25454     # like to wrap large dependency lists on column 80 (with \), and
25455     # we should not choose a depcomp mode which is confused by this.
25456     #
25457     # We need to recreate these files for each test, as the compiler may
25458     # overwrite some of them when testing with obscure command lines.
25459     # This happens at least with the AIX C compiler.
25460     : > sub/conftest.c
25461     for i in 1 2 3 4 5 6; do
25462       echo '#include "conftst'$i'.h"' >> sub/conftest.c
25463       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25464       # Solaris 8's {/usr,}/bin/sh.
25465       touch sub/conftst$i.h
25466     done
25467     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25468
25469     case $depmode in
25470     nosideeffect)
25471       # after this tag, mechanisms are not by side-effect, so they'll
25472       # only be used when explicitly requested
25473       if test "x$enable_dependency_tracking" = xyes; then
25474         continue
25475       else
25476         break
25477       fi
25478       ;;
25479     none) break ;;
25480     esac
25481     # We check with `-c' and `-o' for the sake of the "dashmstdout"
25482     # mode.  It turns out that the SunPro C++ compiler does not properly
25483     # handle `-M -o', and we need to detect this.
25484     if depmode=$depmode \
25485        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
25486        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25487        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
25488          >/dev/null 2>conftest.err &&
25489        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25490        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
25491        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25492       # icc doesn't choke on unknown options, it will just issue warnings
25493       # or remarks (even with -Werror).  So we grep stderr for any message
25494       # that says an option was ignored or not supported.
25495       # When given -MP, icc 7.0 and 7.1 complain thusly:
25496       #   icc: Command line warning: ignoring option '-M'; no argument required
25497       # The diagnosis changed in icc 8.0:
25498       #   icc: Command line remark: option '-MP' not supported
25499       if (grep 'ignoring option' conftest.err ||
25500           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25501         am_cv_GCJ_dependencies_compiler_type=$depmode
25502         break
25503       fi
25504     fi
25505   done
25506
25507   cd ..
25508   rm -rf conftest.dir
25509 else
25510   am_cv_GCJ_dependencies_compiler_type=none
25511 fi
25512
25513 fi
25514 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
25515 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
25516 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
25517
25518
25519
25520 if
25521   test "x$enable_dependency_tracking" != xno \
25522   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
25523   am__fastdepGCJ_TRUE=
25524   am__fastdepGCJ_FALSE='#'
25525 else
25526   am__fastdepGCJ_TRUE='#'
25527   am__fastdepGCJ_FALSE=
25528 fi
25529
25530
25531
25532
25533 # Now remove it.
25534 rm -f gnu/classpath/Configuration.java
25535
25536 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
25537
25538 echo "$as_me:$LINENO: checking for void *" >&5
25539 echo $ECHO_N "checking for void *... $ECHO_C" >&6
25540 if test "${ac_cv_type_void_p+set}" = set; then
25541   echo $ECHO_N "(cached) $ECHO_C" >&6
25542 else
25543   cat >conftest.$ac_ext <<_ACEOF
25544 /* confdefs.h.  */
25545 _ACEOF
25546 cat confdefs.h >>conftest.$ac_ext
25547 cat >>conftest.$ac_ext <<_ACEOF
25548 /* end confdefs.h.  */
25549 $ac_includes_default
25550 int
25551 main ()
25552 {
25553 if ((void * *) 0)
25554   return 0;
25555 if (sizeof (void *))
25556   return 0;
25557   ;
25558   return 0;
25559 }
25560 _ACEOF
25561 rm -f conftest.$ac_objext
25562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25563   (eval $ac_compile) 2>conftest.er1
25564   ac_status=$?
25565   grep -v '^ *+' conftest.er1 >conftest.err
25566   rm -f conftest.er1
25567   cat conftest.err >&5
25568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25569   (exit $ac_status); } &&
25570          { ac_try='test -z "$ac_c_werror_flag"
25571                          || test ! -s conftest.err'
25572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25573   (eval $ac_try) 2>&5
25574   ac_status=$?
25575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25576   (exit $ac_status); }; } &&
25577          { ac_try='test -s conftest.$ac_objext'
25578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25579   (eval $ac_try) 2>&5
25580   ac_status=$?
25581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582   (exit $ac_status); }; }; then
25583   ac_cv_type_void_p=yes
25584 else
25585   echo "$as_me: failed program was:" >&5
25586 sed 's/^/| /' conftest.$ac_ext >&5
25587
25588 ac_cv_type_void_p=no
25589 fi
25590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25591 fi
25592 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
25593 echo "${ECHO_T}$ac_cv_type_void_p" >&6
25594
25595 echo "$as_me:$LINENO: checking size of void *" >&5
25596 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
25597 if test "${ac_cv_sizeof_void_p+set}" = set; then
25598   echo $ECHO_N "(cached) $ECHO_C" >&6
25599 else
25600   if test "$ac_cv_type_void_p" = yes; then
25601   # The cast to unsigned long works around a bug in the HP C Compiler
25602   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25603   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25604   # This bug is HP SR number 8606223364.
25605   if test "$cross_compiling" = yes; then
25606   # Depending upon the size, compute the lo and hi bounds.
25607 cat >conftest.$ac_ext <<_ACEOF
25608 /* confdefs.h.  */
25609 _ACEOF
25610 cat confdefs.h >>conftest.$ac_ext
25611 cat >>conftest.$ac_ext <<_ACEOF
25612 /* end confdefs.h.  */
25613 $ac_includes_default
25614 int
25615 main ()
25616 {
25617 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
25618 test_array [0] = 0
25619
25620   ;
25621   return 0;
25622 }
25623 _ACEOF
25624 rm -f conftest.$ac_objext
25625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25626   (eval $ac_compile) 2>conftest.er1
25627   ac_status=$?
25628   grep -v '^ *+' conftest.er1 >conftest.err
25629   rm -f conftest.er1
25630   cat conftest.err >&5
25631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632   (exit $ac_status); } &&
25633          { ac_try='test -z "$ac_c_werror_flag"
25634                          || test ! -s conftest.err'
25635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25636   (eval $ac_try) 2>&5
25637   ac_status=$?
25638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639   (exit $ac_status); }; } &&
25640          { ac_try='test -s conftest.$ac_objext'
25641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25642   (eval $ac_try) 2>&5
25643   ac_status=$?
25644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645   (exit $ac_status); }; }; then
25646   ac_lo=0 ac_mid=0
25647   while :; do
25648     cat >conftest.$ac_ext <<_ACEOF
25649 /* confdefs.h.  */
25650 _ACEOF
25651 cat confdefs.h >>conftest.$ac_ext
25652 cat >>conftest.$ac_ext <<_ACEOF
25653 /* end confdefs.h.  */
25654 $ac_includes_default
25655 int
25656 main ()
25657 {
25658 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25659 test_array [0] = 0
25660
25661   ;
25662   return 0;
25663 }
25664 _ACEOF
25665 rm -f conftest.$ac_objext
25666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25667   (eval $ac_compile) 2>conftest.er1
25668   ac_status=$?
25669   grep -v '^ *+' conftest.er1 >conftest.err
25670   rm -f conftest.er1
25671   cat conftest.err >&5
25672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673   (exit $ac_status); } &&
25674          { ac_try='test -z "$ac_c_werror_flag"
25675                          || test ! -s conftest.err'
25676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25677   (eval $ac_try) 2>&5
25678   ac_status=$?
25679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680   (exit $ac_status); }; } &&
25681          { ac_try='test -s conftest.$ac_objext'
25682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25683   (eval $ac_try) 2>&5
25684   ac_status=$?
25685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25686   (exit $ac_status); }; }; then
25687   ac_hi=$ac_mid; break
25688 else
25689   echo "$as_me: failed program was:" >&5
25690 sed 's/^/| /' conftest.$ac_ext >&5
25691
25692 ac_lo=`expr $ac_mid + 1`
25693                     if test $ac_lo -le $ac_mid; then
25694                       ac_lo= ac_hi=
25695                       break
25696                     fi
25697                     ac_mid=`expr 2 '*' $ac_mid + 1`
25698 fi
25699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25700   done
25701 else
25702   echo "$as_me: failed program was:" >&5
25703 sed 's/^/| /' conftest.$ac_ext >&5
25704
25705 cat >conftest.$ac_ext <<_ACEOF
25706 /* confdefs.h.  */
25707 _ACEOF
25708 cat confdefs.h >>conftest.$ac_ext
25709 cat >>conftest.$ac_ext <<_ACEOF
25710 /* end confdefs.h.  */
25711 $ac_includes_default
25712 int
25713 main ()
25714 {
25715 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
25716 test_array [0] = 0
25717
25718   ;
25719   return 0;
25720 }
25721 _ACEOF
25722 rm -f conftest.$ac_objext
25723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25724   (eval $ac_compile) 2>conftest.er1
25725   ac_status=$?
25726   grep -v '^ *+' conftest.er1 >conftest.err
25727   rm -f conftest.er1
25728   cat conftest.err >&5
25729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730   (exit $ac_status); } &&
25731          { ac_try='test -z "$ac_c_werror_flag"
25732                          || test ! -s conftest.err'
25733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25734   (eval $ac_try) 2>&5
25735   ac_status=$?
25736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737   (exit $ac_status); }; } &&
25738          { ac_try='test -s conftest.$ac_objext'
25739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25740   (eval $ac_try) 2>&5
25741   ac_status=$?
25742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743   (exit $ac_status); }; }; then
25744   ac_hi=-1 ac_mid=-1
25745   while :; do
25746     cat >conftest.$ac_ext <<_ACEOF
25747 /* confdefs.h.  */
25748 _ACEOF
25749 cat confdefs.h >>conftest.$ac_ext
25750 cat >>conftest.$ac_ext <<_ACEOF
25751 /* end confdefs.h.  */
25752 $ac_includes_default
25753 int
25754 main ()
25755 {
25756 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
25757 test_array [0] = 0
25758
25759   ;
25760   return 0;
25761 }
25762 _ACEOF
25763 rm -f conftest.$ac_objext
25764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25765   (eval $ac_compile) 2>conftest.er1
25766   ac_status=$?
25767   grep -v '^ *+' conftest.er1 >conftest.err
25768   rm -f conftest.er1
25769   cat conftest.err >&5
25770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25771   (exit $ac_status); } &&
25772          { ac_try='test -z "$ac_c_werror_flag"
25773                          || test ! -s conftest.err'
25774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25775   (eval $ac_try) 2>&5
25776   ac_status=$?
25777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25778   (exit $ac_status); }; } &&
25779          { ac_try='test -s conftest.$ac_objext'
25780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25781   (eval $ac_try) 2>&5
25782   ac_status=$?
25783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25784   (exit $ac_status); }; }; then
25785   ac_lo=$ac_mid; break
25786 else
25787   echo "$as_me: failed program was:" >&5
25788 sed 's/^/| /' conftest.$ac_ext >&5
25789
25790 ac_hi=`expr '(' $ac_mid ')' - 1`
25791                        if test $ac_mid -le $ac_hi; then
25792                          ac_lo= ac_hi=
25793                          break
25794                        fi
25795                        ac_mid=`expr 2 '*' $ac_mid`
25796 fi
25797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25798   done
25799 else
25800   echo "$as_me: failed program was:" >&5
25801 sed 's/^/| /' conftest.$ac_ext >&5
25802
25803 ac_lo= ac_hi=
25804 fi
25805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25806 fi
25807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25808 # Binary search between lo and hi bounds.
25809 while test "x$ac_lo" != "x$ac_hi"; do
25810   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25811   cat >conftest.$ac_ext <<_ACEOF
25812 /* confdefs.h.  */
25813 _ACEOF
25814 cat confdefs.h >>conftest.$ac_ext
25815 cat >>conftest.$ac_ext <<_ACEOF
25816 /* end confdefs.h.  */
25817 $ac_includes_default
25818 int
25819 main ()
25820 {
25821 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25822 test_array [0] = 0
25823
25824   ;
25825   return 0;
25826 }
25827 _ACEOF
25828 rm -f conftest.$ac_objext
25829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25830   (eval $ac_compile) 2>conftest.er1
25831   ac_status=$?
25832   grep -v '^ *+' conftest.er1 >conftest.err
25833   rm -f conftest.er1
25834   cat conftest.err >&5
25835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25836   (exit $ac_status); } &&
25837          { ac_try='test -z "$ac_c_werror_flag"
25838                          || test ! -s conftest.err'
25839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25840   (eval $ac_try) 2>&5
25841   ac_status=$?
25842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843   (exit $ac_status); }; } &&
25844          { ac_try='test -s conftest.$ac_objext'
25845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25846   (eval $ac_try) 2>&5
25847   ac_status=$?
25848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849   (exit $ac_status); }; }; then
25850   ac_hi=$ac_mid
25851 else
25852   echo "$as_me: failed program was:" >&5
25853 sed 's/^/| /' conftest.$ac_ext >&5
25854
25855 ac_lo=`expr '(' $ac_mid ')' + 1`
25856 fi
25857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25858 done
25859 case $ac_lo in
25860 ?*) ac_cv_sizeof_void_p=$ac_lo;;
25861 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25862 echo "$as_me: error: in \`$ac_pwd':" >&2;}
25863 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
25864 See \`config.log' for more details." >&5
25865 echo "$as_me: error: cannot compute sizeof (void *), 77
25866 See \`config.log' for more details." >&2;}
25867    { (exit 1); exit 1; }; }; } ;;
25868 esac
25869 else
25870   if test "$cross_compiling" = yes; then
25871   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25872 echo "$as_me: error: in \`$ac_pwd':" >&2;}
25873 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25874 See \`config.log' for more details." >&5
25875 echo "$as_me: error: cannot run test program while cross compiling
25876 See \`config.log' for more details." >&2;}
25877    { (exit 1); exit 1; }; }; }
25878 else
25879   cat >conftest.$ac_ext <<_ACEOF
25880 /* confdefs.h.  */
25881 _ACEOF
25882 cat confdefs.h >>conftest.$ac_ext
25883 cat >>conftest.$ac_ext <<_ACEOF
25884 /* end confdefs.h.  */
25885 $ac_includes_default
25886 long longval () { return (long) (sizeof (void *)); }
25887 unsigned long ulongval () { return (long) (sizeof (void *)); }
25888 #include <stdio.h>
25889 #include <stdlib.h>
25890 int
25891 main ()
25892 {
25893
25894   FILE *f = fopen ("conftest.val", "w");
25895   if (! f)
25896     exit (1);
25897   if (((long) (sizeof (void *))) < 0)
25898     {
25899       long i = longval ();
25900       if (i != ((long) (sizeof (void *))))
25901         exit (1);
25902       fprintf (f, "%ld\n", i);
25903     }
25904   else
25905     {
25906       unsigned long i = ulongval ();
25907       if (i != ((long) (sizeof (void *))))
25908         exit (1);
25909       fprintf (f, "%lu\n", i);
25910     }
25911   exit (ferror (f) || fclose (f) != 0);
25912
25913   ;
25914   return 0;
25915 }
25916 _ACEOF
25917 rm -f conftest$ac_exeext
25918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25919   (eval $ac_link) 2>&5
25920   ac_status=$?
25921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25924   (eval $ac_try) 2>&5
25925   ac_status=$?
25926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25927   (exit $ac_status); }; }; then
25928   ac_cv_sizeof_void_p=`cat conftest.val`
25929 else
25930   echo "$as_me: program exited with status $ac_status" >&5
25931 echo "$as_me: failed program was:" >&5
25932 sed 's/^/| /' conftest.$ac_ext >&5
25933
25934 ( exit $ac_status )
25935 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25936 echo "$as_me: error: in \`$ac_pwd':" >&2;}
25937 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
25938 See \`config.log' for more details." >&5
25939 echo "$as_me: error: cannot compute sizeof (void *), 77
25940 See \`config.log' for more details." >&2;}
25941    { (exit 1); exit 1; }; }; }
25942 fi
25943 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25944 fi
25945 fi
25946 rm -f conftest.val
25947 else
25948   ac_cv_sizeof_void_p=0
25949 fi
25950 fi
25951 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
25952 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
25953 cat >>confdefs.h <<_ACEOF
25954 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
25955 _ACEOF
25956
25957
25958
25959 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25960 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
25961 if test "${ac_cv_c_bigendian+set}" = set; then
25962   echo $ECHO_N "(cached) $ECHO_C" >&6
25963 else
25964   # See if sys/param.h defines the BYTE_ORDER macro.
25965 cat >conftest.$ac_ext <<_ACEOF
25966 /* confdefs.h.  */
25967 _ACEOF
25968 cat confdefs.h >>conftest.$ac_ext
25969 cat >>conftest.$ac_ext <<_ACEOF
25970 /* end confdefs.h.  */
25971 #include <sys/types.h>
25972 #include <sys/param.h>
25973
25974 int
25975 main ()
25976 {
25977 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
25978  bogus endian macros
25979 #endif
25980
25981   ;
25982   return 0;
25983 }
25984 _ACEOF
25985 rm -f conftest.$ac_objext
25986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25987   (eval $ac_compile) 2>conftest.er1
25988   ac_status=$?
25989   grep -v '^ *+' conftest.er1 >conftest.err
25990   rm -f conftest.er1
25991   cat conftest.err >&5
25992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25993   (exit $ac_status); } &&
25994          { ac_try='test -z "$ac_c_werror_flag"
25995                          || test ! -s conftest.err'
25996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25997   (eval $ac_try) 2>&5
25998   ac_status=$?
25999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000   (exit $ac_status); }; } &&
26001          { ac_try='test -s conftest.$ac_objext'
26002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26003   (eval $ac_try) 2>&5
26004   ac_status=$?
26005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26006   (exit $ac_status); }; }; then
26007   # It does; now see whether it defined to BIG_ENDIAN or not.
26008 cat >conftest.$ac_ext <<_ACEOF
26009 /* confdefs.h.  */
26010 _ACEOF
26011 cat confdefs.h >>conftest.$ac_ext
26012 cat >>conftest.$ac_ext <<_ACEOF
26013 /* end confdefs.h.  */
26014 #include <sys/types.h>
26015 #include <sys/param.h>
26016
26017 int
26018 main ()
26019 {
26020 #if BYTE_ORDER != BIG_ENDIAN
26021  not big endian
26022 #endif
26023
26024   ;
26025   return 0;
26026 }
26027 _ACEOF
26028 rm -f conftest.$ac_objext
26029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26030   (eval $ac_compile) 2>conftest.er1
26031   ac_status=$?
26032   grep -v '^ *+' conftest.er1 >conftest.err
26033   rm -f conftest.er1
26034   cat conftest.err >&5
26035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26036   (exit $ac_status); } &&
26037          { ac_try='test -z "$ac_c_werror_flag"
26038                          || test ! -s conftest.err'
26039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26040   (eval $ac_try) 2>&5
26041   ac_status=$?
26042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043   (exit $ac_status); }; } &&
26044          { ac_try='test -s conftest.$ac_objext'
26045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26046   (eval $ac_try) 2>&5
26047   ac_status=$?
26048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26049   (exit $ac_status); }; }; then
26050   ac_cv_c_bigendian=yes
26051 else
26052   echo "$as_me: failed program was:" >&5
26053 sed 's/^/| /' conftest.$ac_ext >&5
26054
26055 ac_cv_c_bigendian=no
26056 fi
26057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26058 else
26059   echo "$as_me: failed program was:" >&5
26060 sed 's/^/| /' conftest.$ac_ext >&5
26061
26062 # It does not; compile a test program.
26063 if test "$cross_compiling" = yes; then
26064   # try to guess the endianness by grepping values into an object file
26065   ac_cv_c_bigendian=unknown
26066   cat >conftest.$ac_ext <<_ACEOF
26067 /* confdefs.h.  */
26068 _ACEOF
26069 cat confdefs.h >>conftest.$ac_ext
26070 cat >>conftest.$ac_ext <<_ACEOF
26071 /* end confdefs.h.  */
26072 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26073 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26074 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
26075 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26076 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26077 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
26078 int
26079 main ()
26080 {
26081  _ascii (); _ebcdic ();
26082   ;
26083   return 0;
26084 }
26085 _ACEOF
26086 rm -f conftest.$ac_objext
26087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26088   (eval $ac_compile) 2>conftest.er1
26089   ac_status=$?
26090   grep -v '^ *+' conftest.er1 >conftest.err
26091   rm -f conftest.er1
26092   cat conftest.err >&5
26093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094   (exit $ac_status); } &&
26095          { ac_try='test -z "$ac_c_werror_flag"
26096                          || test ! -s conftest.err'
26097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26098   (eval $ac_try) 2>&5
26099   ac_status=$?
26100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101   (exit $ac_status); }; } &&
26102          { ac_try='test -s conftest.$ac_objext'
26103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26104   (eval $ac_try) 2>&5
26105   ac_status=$?
26106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107   (exit $ac_status); }; }; then
26108   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
26109   ac_cv_c_bigendian=yes
26110 fi
26111 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26112   if test "$ac_cv_c_bigendian" = unknown; then
26113     ac_cv_c_bigendian=no
26114   else
26115     # finding both strings is unlikely to happen, but who knows?
26116     ac_cv_c_bigendian=unknown
26117   fi
26118 fi
26119 else
26120   echo "$as_me: failed program was:" >&5
26121 sed 's/^/| /' conftest.$ac_ext >&5
26122
26123 fi
26124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26125 else
26126   cat >conftest.$ac_ext <<_ACEOF
26127 /* confdefs.h.  */
26128 _ACEOF
26129 cat confdefs.h >>conftest.$ac_ext
26130 cat >>conftest.$ac_ext <<_ACEOF
26131 /* end confdefs.h.  */
26132 int
26133 main ()
26134 {
26135   /* Are we little or big endian?  From Harbison&Steele.  */
26136   union
26137   {
26138     long l;
26139     char c[sizeof (long)];
26140   } u;
26141   u.l = 1;
26142   exit (u.c[sizeof (long) - 1] == 1);
26143 }
26144 _ACEOF
26145 rm -f conftest$ac_exeext
26146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26147   (eval $ac_link) 2>&5
26148   ac_status=$?
26149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26152   (eval $ac_try) 2>&5
26153   ac_status=$?
26154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26155   (exit $ac_status); }; }; then
26156   ac_cv_c_bigendian=no
26157 else
26158   echo "$as_me: program exited with status $ac_status" >&5
26159 echo "$as_me: failed program was:" >&5
26160 sed 's/^/| /' conftest.$ac_ext >&5
26161
26162 ( exit $ac_status )
26163 ac_cv_c_bigendian=yes
26164 fi
26165 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26166 fi
26167 fi
26168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26169 fi
26170 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
26171 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
26172 case $ac_cv_c_bigendian in
26173   yes)
26174
26175 cat >>confdefs.h <<\_ACEOF
26176 #define WORDS_BIGENDIAN 1
26177 _ACEOF
26178  ;;
26179   no)
26180      ;;
26181   *)
26182     { { echo "$as_me:$LINENO: error: unknown endianness
26183 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
26184 echo "$as_me: error: unknown endianness
26185 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
26186    { (exit 1); exit 1; }; } ;;
26187 esac
26188
26189
26190 ZLIBS=
26191 SYS_ZLIBS=
26192 ZINCS=
26193
26194 if test -z "$ZLIBSPEC"; then
26195    # Use zlib from the GCC tree.
26196    ZINCS='-I$(top_srcdir)/../zlib'
26197    ZLIBS=../zlib/libzgcj_convenience.la
26198 else
26199    # System's zlib.
26200    SYS_ZLIBS="$ZLIBSPEC"
26201 fi
26202
26203
26204
26205
26206
26207
26208
26209
26210
26211
26212
26213 if test "$NATIVE" = yes; then
26214   NATIVE_TRUE=
26215   NATIVE_FALSE='#'
26216 else
26217   NATIVE_TRUE='#'
26218   NATIVE_FALSE=
26219 fi
26220
26221
26222
26223 if test "$enable_shared" = yes; then
26224   ENABLE_SHARED_TRUE=
26225   ENABLE_SHARED_FALSE='#'
26226 else
26227   ENABLE_SHARED_TRUE='#'
26228   ENABLE_SHARED_FALSE=
26229 fi
26230
26231
26232
26233 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
26234   NEEDS_DATA_START_TRUE=
26235   NEEDS_DATA_START_FALSE='#'
26236 else
26237   NEEDS_DATA_START_TRUE='#'
26238   NEEDS_DATA_START_FALSE=
26239 fi
26240
26241
26242
26243 # Process the option "--enable-version-specific-runtime-libs"
26244 # Calculate toolexeclibdir
26245 case ${version_specific_libs} in
26246   yes)
26247     # Need the gcc compiler version to know where to install libraries
26248     # and header files if --enable-version-specific-runtime-libs option
26249     # is selected.
26250     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
26251     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
26252     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
26253     toolexeclibdir=$toolexecmainlibdir
26254     ;;
26255   no)
26256     if test -n "$with_cross_host" &&
26257        test x"$with_cross_host" != x"no"; then
26258       # Install a library built with a cross compiler in tooldir, not libdir.
26259       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
26260       toolexecmainlibdir='$(toolexecdir)/lib'
26261     else
26262       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
26263       toolexecmainlibdir='$(libdir)'
26264     fi
26265     multi_os_directory=`$CC -print-multi-os-directory`
26266     case $multi_os_directory in
26267       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
26268       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
26269     esac
26270     ;;
26271 esac
26272
26273
26274
26275
26276 # Determine gcj and libgcj version number.
26277 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
26278 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
26279 GCJVERSION=$gcjversion
26280
26281
26282 cat >>confdefs.h <<_ACEOF
26283 #define GCJVERSION "$GCJVERSION"
26284 _ACEOF
26285
26286
26287 # Determine where the standard .db file and GNU Classpath JNI
26288 # libraries are found.
26289 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
26290 multi_os_directory=`$CC -print-multi-os-directory`
26291 case $multi_os_directory in
26292   .)
26293    dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
26294    ;;
26295   *)
26296    dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
26297    ;;
26298 esac
26299
26300
26301
26302 cat >>confdefs.h <<\_ACEOF
26303 #define JV_VERSION "1.5.0"
26304 _ACEOF
26305
26306
26307 cat >>confdefs.h <<\_ACEOF
26308 #define JV_API_VERSION "1.5"
26309 _ACEOF
26310
26311
26312
26313 case "${with_gxx_include_dir}" in
26314   yes)
26315     { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
26316 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
26317    { (exit 1); exit 1; }; }
26318     ;;
26319   no | "")
26320     case "${enable_version_specific_runtime_libs}" in
26321       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
26322       *)
26323         libstdcxx_incdir='c++/$(gcc_version)'
26324         gxx_include_dir='include/$(libstdcxx_incdir)'
26325         if test -n "$with_cross_host" &&
26326            test x"$with_cross_host" != x"no"; then
26327           gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
26328         else
26329           gxx_include_dir='${prefix}/'"$gxx_include_dir"
26330         fi;;
26331     esac ;;
26332   *) gxx_include_dir=${with_gxx_include_dir} ;;
26333 esac
26334
26335
26336
26337
26338 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
26339 # On that system, sys/ioctl.h will not include sys/filio.h unless
26340 # BSD_COMP is defined; just including sys/filio.h is simpler.
26341 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
26342 # for now.  If you change this, you also must update natFile.cc.
26343
26344
26345
26346
26347
26348
26349
26350
26351
26352
26353
26354
26355
26356
26357
26358
26359
26360
26361
26362
26363
26364
26365
26366 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
26367                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
26368                   sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
26369                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
26370                   dirent.h sys/rw_lock.h magic.h ifaddrs.h
26371 do
26372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26374   echo "$as_me:$LINENO: checking for $ac_header" >&5
26375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26377   echo $ECHO_N "(cached) $ECHO_C" >&6
26378 fi
26379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26381 else
26382   # Is the header compilable?
26383 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26385 cat >conftest.$ac_ext <<_ACEOF
26386 /* confdefs.h.  */
26387 _ACEOF
26388 cat confdefs.h >>conftest.$ac_ext
26389 cat >>conftest.$ac_ext <<_ACEOF
26390 /* end confdefs.h.  */
26391 $ac_includes_default
26392 #include <$ac_header>
26393 _ACEOF
26394 rm -f conftest.$ac_objext
26395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26396   (eval $ac_compile) 2>conftest.er1
26397   ac_status=$?
26398   grep -v '^ *+' conftest.er1 >conftest.err
26399   rm -f conftest.er1
26400   cat conftest.err >&5
26401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26402   (exit $ac_status); } &&
26403          { ac_try='test -z "$ac_c_werror_flag"
26404                          || test ! -s conftest.err'
26405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26406   (eval $ac_try) 2>&5
26407   ac_status=$?
26408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409   (exit $ac_status); }; } &&
26410          { ac_try='test -s conftest.$ac_objext'
26411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26412   (eval $ac_try) 2>&5
26413   ac_status=$?
26414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26415   (exit $ac_status); }; }; then
26416   ac_header_compiler=yes
26417 else
26418   echo "$as_me: failed program was:" >&5
26419 sed 's/^/| /' conftest.$ac_ext >&5
26420
26421 ac_header_compiler=no
26422 fi
26423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26425 echo "${ECHO_T}$ac_header_compiler" >&6
26426
26427 # Is the header present?
26428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26430 cat >conftest.$ac_ext <<_ACEOF
26431 /* confdefs.h.  */
26432 _ACEOF
26433 cat confdefs.h >>conftest.$ac_ext
26434 cat >>conftest.$ac_ext <<_ACEOF
26435 /* end confdefs.h.  */
26436 #include <$ac_header>
26437 _ACEOF
26438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26439   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26440   ac_status=$?
26441   grep -v '^ *+' conftest.er1 >conftest.err
26442   rm -f conftest.er1
26443   cat conftest.err >&5
26444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26445   (exit $ac_status); } >/dev/null; then
26446   if test -s conftest.err; then
26447     ac_cpp_err=$ac_c_preproc_warn_flag
26448     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26449   else
26450     ac_cpp_err=
26451   fi
26452 else
26453   ac_cpp_err=yes
26454 fi
26455 if test -z "$ac_cpp_err"; then
26456   ac_header_preproc=yes
26457 else
26458   echo "$as_me: failed program was:" >&5
26459 sed 's/^/| /' conftest.$ac_ext >&5
26460
26461   ac_header_preproc=no
26462 fi
26463 rm -f conftest.err conftest.$ac_ext
26464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26465 echo "${ECHO_T}$ac_header_preproc" >&6
26466
26467 # So?  What about this header?
26468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26469   yes:no: )
26470     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26472     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26474     ac_header_preproc=yes
26475     ;;
26476   no:yes:* )
26477     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26479     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26480 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26481     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26483     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26484 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26485     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26487     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26489     (
26490       cat <<\_ASBOX
26491 ## ---------------------------------- ##
26492 ## Report this to the libjava lists.  ##
26493 ## ---------------------------------- ##
26494 _ASBOX
26495     ) |
26496       sed "s/^/$as_me: WARNING:     /" >&2
26497     ;;
26498 esac
26499 echo "$as_me:$LINENO: checking for $ac_header" >&5
26500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26502   echo $ECHO_N "(cached) $ECHO_C" >&6
26503 else
26504   eval "$as_ac_Header=\$ac_header_preproc"
26505 fi
26506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26508
26509 fi
26510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26511   cat >>confdefs.h <<_ACEOF
26512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26513 _ACEOF
26514
26515 fi
26516
26517 done
26518
26519
26520 for ac_header in inttypes.h
26521 do
26522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26524   echo "$as_me:$LINENO: checking for $ac_header" >&5
26525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26527   echo $ECHO_N "(cached) $ECHO_C" >&6
26528 fi
26529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26531 else
26532   # Is the header compilable?
26533 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26535 cat >conftest.$ac_ext <<_ACEOF
26536 /* confdefs.h.  */
26537 _ACEOF
26538 cat confdefs.h >>conftest.$ac_ext
26539 cat >>conftest.$ac_ext <<_ACEOF
26540 /* end confdefs.h.  */
26541 $ac_includes_default
26542 #include <$ac_header>
26543 _ACEOF
26544 rm -f conftest.$ac_objext
26545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26546   (eval $ac_compile) 2>conftest.er1
26547   ac_status=$?
26548   grep -v '^ *+' conftest.er1 >conftest.err
26549   rm -f conftest.er1
26550   cat conftest.err >&5
26551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552   (exit $ac_status); } &&
26553          { ac_try='test -z "$ac_c_werror_flag"
26554                          || test ! -s conftest.err'
26555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26556   (eval $ac_try) 2>&5
26557   ac_status=$?
26558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26559   (exit $ac_status); }; } &&
26560          { ac_try='test -s conftest.$ac_objext'
26561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26562   (eval $ac_try) 2>&5
26563   ac_status=$?
26564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26565   (exit $ac_status); }; }; then
26566   ac_header_compiler=yes
26567 else
26568   echo "$as_me: failed program was:" >&5
26569 sed 's/^/| /' conftest.$ac_ext >&5
26570
26571 ac_header_compiler=no
26572 fi
26573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26575 echo "${ECHO_T}$ac_header_compiler" >&6
26576
26577 # Is the header present?
26578 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26580 cat >conftest.$ac_ext <<_ACEOF
26581 /* confdefs.h.  */
26582 _ACEOF
26583 cat confdefs.h >>conftest.$ac_ext
26584 cat >>conftest.$ac_ext <<_ACEOF
26585 /* end confdefs.h.  */
26586 #include <$ac_header>
26587 _ACEOF
26588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26589   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26590   ac_status=$?
26591   grep -v '^ *+' conftest.er1 >conftest.err
26592   rm -f conftest.er1
26593   cat conftest.err >&5
26594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595   (exit $ac_status); } >/dev/null; then
26596   if test -s conftest.err; then
26597     ac_cpp_err=$ac_c_preproc_warn_flag
26598     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26599   else
26600     ac_cpp_err=
26601   fi
26602 else
26603   ac_cpp_err=yes
26604 fi
26605 if test -z "$ac_cpp_err"; then
26606   ac_header_preproc=yes
26607 else
26608   echo "$as_me: failed program was:" >&5
26609 sed 's/^/| /' conftest.$ac_ext >&5
26610
26611   ac_header_preproc=no
26612 fi
26613 rm -f conftest.err conftest.$ac_ext
26614 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26615 echo "${ECHO_T}$ac_header_preproc" >&6
26616
26617 # So?  What about this header?
26618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26619   yes:no: )
26620     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26622     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26624     ac_header_preproc=yes
26625     ;;
26626   no:yes:* )
26627     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26629     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26630 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26631     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26633     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26634 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26635     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26637     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26639     (
26640       cat <<\_ASBOX
26641 ## ---------------------------------- ##
26642 ## Report this to the libjava lists.  ##
26643 ## ---------------------------------- ##
26644 _ASBOX
26645     ) |
26646       sed "s/^/$as_me: WARNING:     /" >&2
26647     ;;
26648 esac
26649 echo "$as_me:$LINENO: checking for $ac_header" >&5
26650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26652   echo $ECHO_N "(cached) $ECHO_C" >&6
26653 else
26654   eval "$as_ac_Header=\$ac_header_preproc"
26655 fi
26656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26658
26659 fi
26660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26661   cat >>confdefs.h <<_ACEOF
26662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26663 _ACEOF
26664
26665
26666 cat >>confdefs.h <<\_ACEOF
26667 #define HAVE_INTTYPES_H 1
26668 _ACEOF
26669
26670
26671 cat >>confdefs.h <<\_ACEOF
26672 #define JV_HAVE_INTTYPES_H 1
26673 _ACEOF
26674
26675
26676 fi
26677
26678 done
26679
26680
26681 echo "$as_me:$LINENO: checking for ssize_t" >&5
26682 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
26683 if test "${ac_cv_type_ssize_t+set}" = set; then
26684   echo $ECHO_N "(cached) $ECHO_C" >&6
26685 else
26686   cat >conftest.$ac_ext <<_ACEOF
26687 /* confdefs.h.  */
26688 _ACEOF
26689 cat confdefs.h >>conftest.$ac_ext
26690 cat >>conftest.$ac_ext <<_ACEOF
26691 /* end confdefs.h.  */
26692 $ac_includes_default
26693 int
26694 main ()
26695 {
26696 if ((ssize_t *) 0)
26697   return 0;
26698 if (sizeof (ssize_t))
26699   return 0;
26700   ;
26701   return 0;
26702 }
26703 _ACEOF
26704 rm -f conftest.$ac_objext
26705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26706   (eval $ac_compile) 2>conftest.er1
26707   ac_status=$?
26708   grep -v '^ *+' conftest.er1 >conftest.err
26709   rm -f conftest.er1
26710   cat conftest.err >&5
26711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712   (exit $ac_status); } &&
26713          { ac_try='test -z "$ac_c_werror_flag"
26714                          || test ! -s conftest.err'
26715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26716   (eval $ac_try) 2>&5
26717   ac_status=$?
26718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26719   (exit $ac_status); }; } &&
26720          { ac_try='test -s conftest.$ac_objext'
26721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26722   (eval $ac_try) 2>&5
26723   ac_status=$?
26724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725   (exit $ac_status); }; }; then
26726   ac_cv_type_ssize_t=yes
26727 else
26728   echo "$as_me: failed program was:" >&5
26729 sed 's/^/| /' conftest.$ac_ext >&5
26730
26731 ac_cv_type_ssize_t=no
26732 fi
26733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26734 fi
26735 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
26736 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
26737 if test $ac_cv_type_ssize_t = yes; then
26738   :
26739 else
26740
26741 cat >>confdefs.h <<_ACEOF
26742 #define ssize_t int
26743 _ACEOF
26744
26745 fi
26746
26747 echo "$as_me:$LINENO: checking for magic_t" >&5
26748 echo $ECHO_N "checking for magic_t... $ECHO_C" >&6
26749 if test "${ac_cv_type_magic_t+set}" = set; then
26750   echo $ECHO_N "(cached) $ECHO_C" >&6
26751 else
26752   cat >conftest.$ac_ext <<_ACEOF
26753 /* confdefs.h.  */
26754 _ACEOF
26755 cat confdefs.h >>conftest.$ac_ext
26756 cat >>conftest.$ac_ext <<_ACEOF
26757 /* end confdefs.h.  */
26758
26759 #ifdef HAVE_MAGIC_H
26760 #include <magic.h>
26761 #endif
26762
26763 int
26764 main ()
26765 {
26766 if ((magic_t *) 0)
26767   return 0;
26768 if (sizeof (magic_t))
26769   return 0;
26770   ;
26771   return 0;
26772 }
26773 _ACEOF
26774 rm -f conftest.$ac_objext
26775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26776   (eval $ac_compile) 2>conftest.er1
26777   ac_status=$?
26778   grep -v '^ *+' conftest.er1 >conftest.err
26779   rm -f conftest.er1
26780   cat conftest.err >&5
26781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26782   (exit $ac_status); } &&
26783          { ac_try='test -z "$ac_c_werror_flag"
26784                          || test ! -s conftest.err'
26785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26786   (eval $ac_try) 2>&5
26787   ac_status=$?
26788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789   (exit $ac_status); }; } &&
26790          { ac_try='test -s conftest.$ac_objext'
26791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26792   (eval $ac_try) 2>&5
26793   ac_status=$?
26794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26795   (exit $ac_status); }; }; then
26796   ac_cv_type_magic_t=yes
26797 else
26798   echo "$as_me: failed program was:" >&5
26799 sed 's/^/| /' conftest.$ac_ext >&5
26800
26801 ac_cv_type_magic_t=no
26802 fi
26803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26804 fi
26805 echo "$as_me:$LINENO: result: $ac_cv_type_magic_t" >&5
26806 echo "${ECHO_T}$ac_cv_type_magic_t" >&6
26807 if test $ac_cv_type_magic_t = yes; then
26808
26809
26810 cat >>confdefs.h <<\_ACEOF
26811 #define HAVE_MAGIC_T 1
26812 _ACEOF
26813
26814 fi
26815
26816
26817 echo "$as_me:$LINENO: checking for in_addr_t" >&5
26818 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
26819 cat >conftest.$ac_ext <<_ACEOF
26820 /* confdefs.h.  */
26821 _ACEOF
26822 cat confdefs.h >>conftest.$ac_ext
26823 cat >>conftest.$ac_ext <<_ACEOF
26824 /* end confdefs.h.  */
26825 #include <sys/types.h>
26826 #if STDC_HEADERS
26827 #include <stdlib.h>
26828 #include <stddef.h>
26829 #endif
26830 #if HAVE_NETINET_IN_H
26831 #include <netinet/in.h>
26832 #endif
26833 int
26834 main ()
26835 {
26836 in_addr_t foo;
26837   ;
26838   return 0;
26839 }
26840 _ACEOF
26841 rm -f conftest.$ac_objext
26842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26843   (eval $ac_compile) 2>conftest.er1
26844   ac_status=$?
26845   grep -v '^ *+' conftest.er1 >conftest.err
26846   rm -f conftest.er1
26847   cat conftest.err >&5
26848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849   (exit $ac_status); } &&
26850          { ac_try='test -z "$ac_c_werror_flag"
26851                          || test ! -s conftest.err'
26852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26853   (eval $ac_try) 2>&5
26854   ac_status=$?
26855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856   (exit $ac_status); }; } &&
26857          { ac_try='test -s conftest.$ac_objext'
26858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26859   (eval $ac_try) 2>&5
26860   ac_status=$?
26861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26862   (exit $ac_status); }; }; then
26863
26864 cat >>confdefs.h <<\_ACEOF
26865 #define HAVE_IN_ADDR_T 1
26866 _ACEOF
26867
26868    echo "$as_me:$LINENO: result: yes" >&5
26869 echo "${ECHO_T}yes" >&6
26870 else
26871   echo "$as_me: failed program was:" >&5
26872 sed 's/^/| /' conftest.$ac_ext >&5
26873
26874 echo "$as_me:$LINENO: result: no" >&5
26875 echo "${ECHO_T}no" >&6
26876 fi
26877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26878
26879 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
26880 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
26881 cat >conftest.$ac_ext <<_ACEOF
26882 /* confdefs.h.  */
26883 _ACEOF
26884 cat confdefs.h >>conftest.$ac_ext
26885 cat >>conftest.$ac_ext <<_ACEOF
26886 /* end confdefs.h.  */
26887 #include <netinet/in.h>
26888 int
26889 main ()
26890 {
26891 struct ip_mreq mreq;
26892   ;
26893   return 0;
26894 }
26895 _ACEOF
26896 rm -f conftest.$ac_objext
26897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26898   (eval $ac_compile) 2>conftest.er1
26899   ac_status=$?
26900   grep -v '^ *+' conftest.er1 >conftest.err
26901   rm -f conftest.er1
26902   cat conftest.err >&5
26903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26904   (exit $ac_status); } &&
26905          { ac_try='test -z "$ac_c_werror_flag"
26906                          || test ! -s conftest.err'
26907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26908   (eval $ac_try) 2>&5
26909   ac_status=$?
26910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911   (exit $ac_status); }; } &&
26912          { ac_try='test -s conftest.$ac_objext'
26913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26914   (eval $ac_try) 2>&5
26915   ac_status=$?
26916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917   (exit $ac_status); }; }; then
26918
26919 cat >>confdefs.h <<\_ACEOF
26920 #define HAVE_STRUCT_IP_MREQ 1
26921 _ACEOF
26922
26923    echo "$as_me:$LINENO: result: yes" >&5
26924 echo "${ECHO_T}yes" >&6
26925 else
26926   echo "$as_me: failed program was:" >&5
26927 sed 's/^/| /' conftest.$ac_ext >&5
26928
26929 echo "$as_me:$LINENO: result: no" >&5
26930 echo "${ECHO_T}no" >&6
26931 fi
26932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26933
26934 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
26935 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
26936 cat >conftest.$ac_ext <<_ACEOF
26937 /* confdefs.h.  */
26938 _ACEOF
26939 cat confdefs.h >>conftest.$ac_ext
26940 cat >>conftest.$ac_ext <<_ACEOF
26941 /* end confdefs.h.  */
26942 #include <netinet/in.h>
26943 int
26944 main ()
26945 {
26946 struct ipv6_mreq mreq6;
26947   ;
26948   return 0;
26949 }
26950 _ACEOF
26951 rm -f conftest.$ac_objext
26952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26953   (eval $ac_compile) 2>conftest.er1
26954   ac_status=$?
26955   grep -v '^ *+' conftest.er1 >conftest.err
26956   rm -f conftest.er1
26957   cat conftest.err >&5
26958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959   (exit $ac_status); } &&
26960          { ac_try='test -z "$ac_c_werror_flag"
26961                          || test ! -s conftest.err'
26962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26963   (eval $ac_try) 2>&5
26964   ac_status=$?
26965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966   (exit $ac_status); }; } &&
26967          { ac_try='test -s conftest.$ac_objext'
26968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26969   (eval $ac_try) 2>&5
26970   ac_status=$?
26971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972   (exit $ac_status); }; }; then
26973
26974 cat >>confdefs.h <<\_ACEOF
26975 #define HAVE_STRUCT_IPV6_MREQ 1
26976 _ACEOF
26977
26978    echo "$as_me:$LINENO: result: yes" >&5
26979 echo "${ECHO_T}yes" >&6
26980 else
26981   echo "$as_me: failed program was:" >&5
26982 sed 's/^/| /' conftest.$ac_ext >&5
26983
26984 echo "$as_me:$LINENO: result: no" >&5
26985 echo "${ECHO_T}no" >&6
26986 fi
26987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26988
26989 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
26990 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
26991 cat >conftest.$ac_ext <<_ACEOF
26992 /* confdefs.h.  */
26993 _ACEOF
26994 cat confdefs.h >>conftest.$ac_ext
26995 cat >>conftest.$ac_ext <<_ACEOF
26996 /* end confdefs.h.  */
26997 #include <netinet/in.h>
26998 int
26999 main ()
27000 {
27001 struct sockaddr_in6 addr6;
27002   ;
27003   return 0;
27004 }
27005 _ACEOF
27006 rm -f conftest.$ac_objext
27007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27008   (eval $ac_compile) 2>conftest.er1
27009   ac_status=$?
27010   grep -v '^ *+' conftest.er1 >conftest.err
27011   rm -f conftest.er1
27012   cat conftest.err >&5
27013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014   (exit $ac_status); } &&
27015          { ac_try='test -z "$ac_c_werror_flag"
27016                          || test ! -s conftest.err'
27017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27018   (eval $ac_try) 2>&5
27019   ac_status=$?
27020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27021   (exit $ac_status); }; } &&
27022          { ac_try='test -s conftest.$ac_objext'
27023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27024   (eval $ac_try) 2>&5
27025   ac_status=$?
27026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027   (exit $ac_status); }; }; then
27028
27029 cat >>confdefs.h <<\_ACEOF
27030 #define HAVE_INET6 1
27031 _ACEOF
27032
27033    echo "$as_me:$LINENO: result: yes" >&5
27034 echo "${ECHO_T}yes" >&6
27035 else
27036   echo "$as_me: failed program was:" >&5
27037 sed 's/^/| /' conftest.$ac_ext >&5
27038
27039 echo "$as_me:$LINENO: result: no" >&5
27040 echo "${ECHO_T}no" >&6
27041 fi
27042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27043
27044 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
27045 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
27046 cat >conftest.$ac_ext <<_ACEOF
27047 /* confdefs.h.  */
27048 _ACEOF
27049 cat confdefs.h >>conftest.$ac_ext
27050 cat >>conftest.$ac_ext <<_ACEOF
27051 /* end confdefs.h.  */
27052 #define _POSIX_PII_SOCKET
27053 #include <sys/types.h>
27054 #include <sys/socket.h>
27055 int
27056 main ()
27057 {
27058 socklen_t x = 5;
27059   ;
27060   return 0;
27061 }
27062 _ACEOF
27063 rm -f conftest.$ac_objext
27064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27065   (eval $ac_compile) 2>conftest.er1
27066   ac_status=$?
27067   grep -v '^ *+' conftest.er1 >conftest.err
27068   rm -f conftest.er1
27069   cat conftest.err >&5
27070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27071   (exit $ac_status); } &&
27072          { ac_try='test -z "$ac_c_werror_flag"
27073                          || test ! -s conftest.err'
27074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27075   (eval $ac_try) 2>&5
27076   ac_status=$?
27077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27078   (exit $ac_status); }; } &&
27079          { ac_try='test -s conftest.$ac_objext'
27080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27081   (eval $ac_try) 2>&5
27082   ac_status=$?
27083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084   (exit $ac_status); }; }; then
27085
27086 cat >>confdefs.h <<\_ACEOF
27087 #define HAVE_SOCKLEN_T 1
27088 _ACEOF
27089
27090    echo "$as_me:$LINENO: result: yes" >&5
27091 echo "${ECHO_T}yes" >&6
27092 else
27093   echo "$as_me: failed program was:" >&5
27094 sed 's/^/| /' conftest.$ac_ext >&5
27095
27096 echo "$as_me:$LINENO: result: no" >&5
27097 echo "${ECHO_T}no" >&6
27098 fi
27099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27100
27101 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
27102 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
27103 cat >conftest.$ac_ext <<_ACEOF
27104 /* confdefs.h.  */
27105 _ACEOF
27106 cat confdefs.h >>conftest.$ac_ext
27107 cat >>conftest.$ac_ext <<_ACEOF
27108 /* end confdefs.h.  */
27109 #include <time.h>
27110 int
27111 main ()
27112 {
27113 struct tm tim; tim.tm_gmtoff = 0;
27114   ;
27115   return 0;
27116 }
27117 _ACEOF
27118 rm -f conftest.$ac_objext
27119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27120   (eval $ac_compile) 2>conftest.er1
27121   ac_status=$?
27122   grep -v '^ *+' conftest.er1 >conftest.err
27123   rm -f conftest.er1
27124   cat conftest.err >&5
27125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126   (exit $ac_status); } &&
27127          { ac_try='test -z "$ac_c_werror_flag"
27128                          || test ! -s conftest.err'
27129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27130   (eval $ac_try) 2>&5
27131   ac_status=$?
27132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133   (exit $ac_status); }; } &&
27134          { ac_try='test -s conftest.$ac_objext'
27135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27136   (eval $ac_try) 2>&5
27137   ac_status=$?
27138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139   (exit $ac_status); }; }; then
27140
27141 cat >>confdefs.h <<\_ACEOF
27142 #define STRUCT_TM_HAS_GMTOFF 1
27143 _ACEOF
27144
27145    echo "$as_me:$LINENO: result: yes" >&5
27146 echo "${ECHO_T}yes" >&6
27147 else
27148   echo "$as_me: failed program was:" >&5
27149 sed 's/^/| /' conftest.$ac_ext >&5
27150
27151 echo "$as_me:$LINENO: result: no" >&5
27152 echo "${ECHO_T}no" >&6
27153    echo "$as_me:$LINENO: checking for global timezone variable" >&5
27154 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
27155                cat >conftest.$ac_ext <<_ACEOF
27156 /* confdefs.h.  */
27157 _ACEOF
27158 cat confdefs.h >>conftest.$ac_ext
27159 cat >>conftest.$ac_ext <<_ACEOF
27160 /* end confdefs.h.  */
27161 #include <time.h>
27162 int
27163 main ()
27164 {
27165 void i(){long z2 = 2*timezone;}
27166   ;
27167   return 0;
27168 }
27169 _ACEOF
27170 rm -f conftest.$ac_objext
27171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27172   (eval $ac_compile) 2>conftest.er1
27173   ac_status=$?
27174   grep -v '^ *+' conftest.er1 >conftest.err
27175   rm -f conftest.er1
27176   cat conftest.err >&5
27177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178   (exit $ac_status); } &&
27179          { ac_try='test -z "$ac_c_werror_flag"
27180                          || test ! -s conftest.err'
27181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27182   (eval $ac_try) 2>&5
27183   ac_status=$?
27184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185   (exit $ac_status); }; } &&
27186          { ac_try='test -s conftest.$ac_objext'
27187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27188   (eval $ac_try) 2>&5
27189   ac_status=$?
27190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27191   (exit $ac_status); }; }; then
27192
27193 cat >>confdefs.h <<\_ACEOF
27194 #define HAVE_TIMEZONE 1
27195 _ACEOF
27196
27197       echo "$as_me:$LINENO: result: yes" >&5
27198 echo "${ECHO_T}yes" >&6
27199 else
27200   echo "$as_me: failed program was:" >&5
27201 sed 's/^/| /' conftest.$ac_ext >&5
27202
27203 echo "$as_me:$LINENO: result: no" >&5
27204 echo "${ECHO_T}no" >&6
27205        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
27206 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
27207               cat >conftest.$ac_ext <<_ACEOF
27208 /* confdefs.h.  */
27209 _ACEOF
27210 cat confdefs.h >>conftest.$ac_ext
27211 cat >>conftest.$ac_ext <<_ACEOF
27212 /* end confdefs.h.  */
27213 #include <time.h>
27214 int
27215 main ()
27216 {
27217 long z2 = _timezone;
27218   ;
27219   return 0;
27220 }
27221 _ACEOF
27222 rm -f conftest.$ac_objext
27223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27224   (eval $ac_compile) 2>conftest.er1
27225   ac_status=$?
27226   grep -v '^ *+' conftest.er1 >conftest.err
27227   rm -f conftest.er1
27228   cat conftest.err >&5
27229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230   (exit $ac_status); } &&
27231          { ac_try='test -z "$ac_c_werror_flag"
27232                          || test ! -s conftest.err'
27233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27234   (eval $ac_try) 2>&5
27235   ac_status=$?
27236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237   (exit $ac_status); }; } &&
27238          { ac_try='test -s conftest.$ac_objext'
27239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27240   (eval $ac_try) 2>&5
27241   ac_status=$?
27242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27243   (exit $ac_status); }; }; then
27244
27245 cat >>confdefs.h <<\_ACEOF
27246 #define HAVE_UNDERSCORE_TIMEZONE 1
27247 _ACEOF
27248
27249           echo "$as_me:$LINENO: result: yes" >&5
27250 echo "${ECHO_T}yes" >&6
27251 else
27252   echo "$as_me: failed program was:" >&5
27253 sed 's/^/| /' conftest.$ac_ext >&5
27254
27255 echo "$as_me:$LINENO: result: no" >&5
27256 echo "${ECHO_T}no" >&6
27257 fi
27258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27259 fi
27260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27261 fi
27262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27263
27264 for ac_prog in perl
27265 do
27266   # Extract the first word of "$ac_prog", so it can be a program name with args.
27267 set dummy $ac_prog; ac_word=$2
27268 echo "$as_me:$LINENO: checking for $ac_word" >&5
27269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27270 if test "${ac_cv_prog_PERL+set}" = set; then
27271   echo $ECHO_N "(cached) $ECHO_C" >&6
27272 else
27273   if test -n "$PERL"; then
27274   ac_cv_prog_PERL="$PERL" # Let the user override the test.
27275 else
27276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27277 for as_dir in $PATH
27278 do
27279   IFS=$as_save_IFS
27280   test -z "$as_dir" && as_dir=.
27281   for ac_exec_ext in '' $ac_executable_extensions; do
27282   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27283     ac_cv_prog_PERL="$ac_prog"
27284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27285     break 2
27286   fi
27287 done
27288 done
27289
27290 fi
27291 fi
27292 PERL=$ac_cv_prog_PERL
27293 if test -n "$PERL"; then
27294   echo "$as_me:$LINENO: result: $PERL" >&5
27295 echo "${ECHO_T}$PERL" >&6
27296 else
27297   echo "$as_me:$LINENO: result: no" >&5
27298 echo "${ECHO_T}no" >&6
27299 fi
27300
27301   test -n "$PERL" && break
27302 done
27303 test -n "$PERL" || PERL="false"
27304
27305
27306 SYSDEP_SOURCES=
27307 SIGNAL_HANDLER_AUX=
27308
27309 case "${host}" in
27310  i?86-*-linux*)
27311     SIGNAL_HANDLER=include/i386-signal.h
27312     ;;
27313  sparc*-sun-solaris*)
27314     SIGNAL_HANDLER=include/sparc-signal.h
27315     ;;
27316 # ia64-*)
27317 #    SYSDEP_SOURCES=sysdep/ia64.c
27318 #    test -d sysdep || mkdir sysdep
27319 #    ;;
27320  hppa*-*-linux*)
27321     SIGNAL_HANDLER=include/pa-signal.h
27322     ;;
27323  hppa*-hp-hpux*)
27324     SIGNAL_HANDLER=include/hppa-signal.h
27325     ;;
27326  ia64-*-linux*)
27327     SIGNAL_HANDLER=include/dwarf2-signal.h
27328     ;;
27329  powerpc*-*-linux*)
27330     SIGNAL_HANDLER=include/powerpc-signal.h
27331     ;;
27332  alpha*-*-linux*)
27333     SIGNAL_HANDLER=include/dwarf2-signal.h
27334     ;;
27335  s390*-*-linux*)
27336     SIGNAL_HANDLER=include/s390-signal.h
27337     ;;
27338  x86_64*-*-linux*)
27339     SIGNAL_HANDLER=include/x86_64-signal.h
27340     SIGNAL_HANDLER_AUX=include/i386-signal.h
27341     ;;
27342  sparc*-*-linux*)
27343     SIGNAL_HANDLER=include/dwarf2-signal.h
27344     ;;
27345  sh*-*-linux*)
27346     SIGNAL_HANDLER=include/sh-signal.h
27347     ;;
27348  *mingw*)
27349     SIGNAL_HANDLER=include/win32-signal.h
27350     ;;
27351  mips*-*-linux*)
27352     SIGNAL_HANDLER=include/mips-signal.h
27353     ;;
27354  m68*-*-linux*)
27355     SIGNAL_HANDLER=include/dwarf2-signal.h
27356     ;;
27357  powerpc*-*-darwin* | i?86-*-darwin9* | x86_64-*-darwin9*)
27358     SIGNAL_HANDLER=include/darwin-signal.h
27359     ;;
27360  *)
27361     SIGNAL_HANDLER=include/default-signal.h
27362     ;;
27363 esac
27364
27365 # If we're using sjlj exceptions, forget what we just learned.
27366 if test "$enable_sjlj_exceptions" = yes; then
27367    SIGNAL_HANDLER=include/default-signal.h
27368    SIGNAL_HANDLER_AUX=
27369 fi
27370
27371
27372
27373 if test -z "$SIGNAL_HANDLER_AUX"; then
27374   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
27375 fi
27376
27377                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
27378
27379
27380 if test "${multilib}" = "yes"; then
27381   multilib_arg="--enable-multilib"
27382 else
27383   multilib_arg=
27384 fi
27385
27386 # See if we support thread-local storage.
27387
27388    # Check whether --enable-tls or --disable-tls was given.
27389 if test "${enable_tls+set}" = set; then
27390   enableval="$enable_tls"
27391
27392       case "$enableval" in
27393        yes|no) ;;
27394        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
27395 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
27396    { (exit 1); exit 1; }; } ;;
27397       esac
27398
27399 else
27400   enable_tls=yes
27401 fi;
27402
27403   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
27404 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
27405 if test "${gcc_cv_have_tls+set}" = set; then
27406   echo $ECHO_N "(cached) $ECHO_C" >&6
27407 else
27408
27409     if test "$cross_compiling" = yes; then
27410                 if test x$gcc_no_link = xyes; then
27411   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27412 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27413    { (exit 1); exit 1; }; }
27414 fi
27415 cat >conftest.$ac_ext <<_ACEOF
27416 __thread int a; int b; int main() { return a = b; }
27417 _ACEOF
27418 rm -f conftest.$ac_objext conftest$ac_exeext
27419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27420   (eval $ac_link) 2>conftest.er1
27421   ac_status=$?
27422   grep -v '^ *+' conftest.er1 >conftest.err
27423   rm -f conftest.er1
27424   cat conftest.err >&5
27425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27426   (exit $ac_status); } &&
27427          { ac_try='test -z "$ac_c_werror_flag"
27428                          || test ! -s conftest.err'
27429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27430   (eval $ac_try) 2>&5
27431   ac_status=$?
27432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433   (exit $ac_status); }; } &&
27434          { ac_try='test -s conftest$ac_exeext'
27435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27436   (eval $ac_try) 2>&5
27437   ac_status=$?
27438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439   (exit $ac_status); }; }; then
27440   gcc_cv_have_tls=yes
27441 else
27442   echo "$as_me: failed program was:" >&5
27443 sed 's/^/| /' conftest.$ac_ext >&5
27444
27445 gcc_cv_have_tls=no
27446 fi
27447 rm -f conftest.err conftest.$ac_objext \
27448       conftest$ac_exeext conftest.$ac_ext
27449
27450
27451 else
27452   cat >conftest.$ac_ext <<_ACEOF
27453 __thread int a; int b; int main() { return a = b; }
27454 _ACEOF
27455 rm -f conftest$ac_exeext
27456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27457   (eval $ac_link) 2>&5
27458   ac_status=$?
27459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27462   (eval $ac_try) 2>&5
27463   ac_status=$?
27464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465   (exit $ac_status); }; }; then
27466                       chktls_save_LDFLAGS="$LDFLAGS"
27467       LDFLAGS="-static $LDFLAGS"
27468       if test x$gcc_no_link = xyes; then
27469   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27470 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27471    { (exit 1); exit 1; }; }
27472 fi
27473 cat >conftest.$ac_ext <<_ACEOF
27474 int main() { return 0; }
27475 _ACEOF
27476 rm -f conftest.$ac_objext conftest$ac_exeext
27477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27478   (eval $ac_link) 2>conftest.er1
27479   ac_status=$?
27480   grep -v '^ *+' conftest.er1 >conftest.err
27481   rm -f conftest.er1
27482   cat conftest.err >&5
27483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484   (exit $ac_status); } &&
27485          { ac_try='test -z "$ac_c_werror_flag"
27486                          || test ! -s conftest.err'
27487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27488   (eval $ac_try) 2>&5
27489   ac_status=$?
27490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27491   (exit $ac_status); }; } &&
27492          { ac_try='test -s conftest$ac_exeext'
27493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27494   (eval $ac_try) 2>&5
27495   ac_status=$?
27496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497   (exit $ac_status); }; }; then
27498   if test "$cross_compiling" = yes; then
27499   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27500 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27501 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27502 See \`config.log' for more details." >&5
27503 echo "$as_me: error: cannot run test program while cross compiling
27504 See \`config.log' for more details." >&2;}
27505    { (exit 1); exit 1; }; }; }
27506 else
27507   cat >conftest.$ac_ext <<_ACEOF
27508 __thread int a; int b; int main() { return a = b; }
27509 _ACEOF
27510 rm -f conftest$ac_exeext
27511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27512   (eval $ac_link) 2>&5
27513   ac_status=$?
27514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27515   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27517   (eval $ac_try) 2>&5
27518   ac_status=$?
27519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520   (exit $ac_status); }; }; then
27521   gcc_cv_have_tls=yes
27522 else
27523   echo "$as_me: program exited with status $ac_status" >&5
27524 echo "$as_me: failed program was:" >&5
27525 sed 's/^/| /' conftest.$ac_ext >&5
27526
27527 ( exit $ac_status )
27528 gcc_cv_have_tls=no
27529 fi
27530 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27531 fi
27532 else
27533   echo "$as_me: failed program was:" >&5
27534 sed 's/^/| /' conftest.$ac_ext >&5
27535
27536 gcc_cv_have_tls=yes
27537 fi
27538 rm -f conftest.err conftest.$ac_objext \
27539       conftest$ac_exeext conftest.$ac_ext
27540       LDFLAGS="$chktls_save_LDFLAGS"
27541       if test $gcc_cv_have_tls = yes; then
27542                                                 chktls_save_CFLAGS="$CFLAGS"
27543         thread_CFLAGS=failed
27544         for flag in '' '-pthread' '-lpthread'; do
27545           CFLAGS="$flag $chktls_save_CFLAGS"
27546           if test x$gcc_no_link = xyes; then
27547   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27548 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27549    { (exit 1); exit 1; }; }
27550 fi
27551 cat >conftest.$ac_ext <<_ACEOF
27552 /* confdefs.h.  */
27553 _ACEOF
27554 cat confdefs.h >>conftest.$ac_ext
27555 cat >>conftest.$ac_ext <<_ACEOF
27556 /* end confdefs.h.  */
27557 #include <pthread.h>
27558                 void *g(void *d) { return NULL; }
27559 int
27560 main ()
27561 {
27562 pthread_t t; pthread_create(&t,NULL,g,NULL);
27563   ;
27564   return 0;
27565 }
27566 _ACEOF
27567 rm -f conftest.$ac_objext conftest$ac_exeext
27568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27569   (eval $ac_link) 2>conftest.er1
27570   ac_status=$?
27571   grep -v '^ *+' conftest.er1 >conftest.err
27572   rm -f conftest.er1
27573   cat conftest.err >&5
27574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575   (exit $ac_status); } &&
27576          { ac_try='test -z "$ac_c_werror_flag"
27577                          || test ! -s conftest.err'
27578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27579   (eval $ac_try) 2>&5
27580   ac_status=$?
27581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582   (exit $ac_status); }; } &&
27583          { ac_try='test -s conftest$ac_exeext'
27584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27585   (eval $ac_try) 2>&5
27586   ac_status=$?
27587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588   (exit $ac_status); }; }; then
27589   thread_CFLAGS="$flag"
27590 else
27591   echo "$as_me: failed program was:" >&5
27592 sed 's/^/| /' conftest.$ac_ext >&5
27593
27594 fi
27595 rm -f conftest.err conftest.$ac_objext \
27596       conftest$ac_exeext conftest.$ac_ext
27597           if test "X$thread_CFLAGS" != Xfailed; then
27598             break
27599           fi
27600         done
27601         CFLAGS="$chktls_save_CFLAGS"
27602         if test "X$thread_CFLAGS" != Xfailed; then
27603           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
27604           if test "$cross_compiling" = yes; then
27605   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27606 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27607 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27608 See \`config.log' for more details." >&5
27609 echo "$as_me: error: cannot run test program while cross compiling
27610 See \`config.log' for more details." >&2;}
27611    { (exit 1); exit 1; }; }; }
27612 else
27613   cat >conftest.$ac_ext <<_ACEOF
27614 /* confdefs.h.  */
27615 _ACEOF
27616 cat confdefs.h >>conftest.$ac_ext
27617 cat >>conftest.$ac_ext <<_ACEOF
27618 /* end confdefs.h.  */
27619 #include <pthread.h>
27620                 __thread int a;
27621                 static int *a_in_other_thread;
27622                 static void *
27623                 thread_func (void *arg)
27624                 {
27625                   a_in_other_thread = &a;
27626                   return (void *)0;
27627                 }
27628 int
27629 main ()
27630 {
27631 pthread_t thread;
27632                 void *thread_retval;
27633                 int *a_in_main_thread;
27634                 if (pthread_create (&thread, (pthread_attr_t *)0,
27635                                     thread_func, (void *)0))
27636                   return 0;
27637                 a_in_main_thread = &a;
27638                 if (pthread_join (thread, &thread_retval))
27639                   return 0;
27640                 return (a_in_other_thread == a_in_main_thread);
27641   ;
27642   return 0;
27643 }
27644 _ACEOF
27645 rm -f conftest$ac_exeext
27646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27647   (eval $ac_link) 2>&5
27648   ac_status=$?
27649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27652   (eval $ac_try) 2>&5
27653   ac_status=$?
27654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27655   (exit $ac_status); }; }; then
27656   gcc_cv_have_tls=yes
27657 else
27658   echo "$as_me: program exited with status $ac_status" >&5
27659 echo "$as_me: failed program was:" >&5
27660 sed 's/^/| /' conftest.$ac_ext >&5
27661
27662 ( exit $ac_status )
27663 gcc_cv_have_tls=no
27664 fi
27665 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27666 fi
27667           CFLAGS="$chktls_save_CFLAGS"
27668         fi
27669       fi
27670 else
27671   echo "$as_me: program exited with status $ac_status" >&5
27672 echo "$as_me: failed program was:" >&5
27673 sed 's/^/| /' conftest.$ac_ext >&5
27674
27675 ( exit $ac_status )
27676 gcc_cv_have_tls=no
27677 fi
27678 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27679 fi
27680 fi
27681 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
27682 echo "${ECHO_T}$gcc_cv_have_tls" >&6
27683   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
27684
27685 cat >>confdefs.h <<\_ACEOF
27686 #define HAVE_TLS 1
27687 _ACEOF
27688
27689   fi
27690
27691 # For _Unwind_GetIPInfo.
27692
27693
27694
27695   ac_ext=cc
27696 ac_cpp='$CXXCPP $CPPFLAGS'
27697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27700
27701   ac_save_CXXFLAGS="$CXXFLAGS"
27702   CXXFLAGS="$CXXFLAGS -fno-exceptions"
27703   echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5
27704 echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6
27705   if test "${gcc_cv_getipinfo+set}" = set; then
27706   echo $ECHO_N "(cached) $ECHO_C" >&6
27707 else
27708
27709   if test x$gcc_no_link = xyes; then
27710   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27711 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27712    { (exit 1); exit 1; }; }
27713 fi
27714 cat >conftest.$ac_ext <<_ACEOF
27715 /* confdefs.h.  */
27716 _ACEOF
27717 cat confdefs.h >>conftest.$ac_ext
27718 cat >>conftest.$ac_ext <<_ACEOF
27719 /* end confdefs.h.  */
27720 extern "C" { extern void _Unwind_GetIPInfo(); }
27721 int
27722 main ()
27723 {
27724 _Unwind_GetIPInfo();
27725   ;
27726   return 0;
27727 }
27728 _ACEOF
27729 rm -f conftest.$ac_objext conftest$ac_exeext
27730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27731   (eval $ac_link) 2>conftest.er1
27732   ac_status=$?
27733   grep -v '^ *+' conftest.er1 >conftest.err
27734   rm -f conftest.er1
27735   cat conftest.err >&5
27736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737   (exit $ac_status); } &&
27738          { ac_try='test -z "$ac_cxx_werror_flag"
27739                          || test ! -s conftest.err'
27740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27741   (eval $ac_try) 2>&5
27742   ac_status=$?
27743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27744   (exit $ac_status); }; } &&
27745          { ac_try='test -s conftest$ac_exeext'
27746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27747   (eval $ac_try) 2>&5
27748   ac_status=$?
27749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750   (exit $ac_status); }; }; then
27751   gcc_cv_getipinfo=yes
27752 else
27753   echo "$as_me: failed program was:" >&5
27754 sed 's/^/| /' conftest.$ac_ext >&5
27755
27756 gcc_cv_getipinfo=no
27757 fi
27758 rm -f conftest.err conftest.$ac_objext \
27759       conftest$ac_exeext conftest.$ac_ext
27760
27761 fi
27762
27763   if test $gcc_cv_getipinfo = yes; then
27764
27765 cat >>confdefs.h <<\_ACEOF
27766 #define HAVE_GETIPINFO 1
27767 _ACEOF
27768
27769   fi
27770   echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5
27771 echo "${ECHO_T}$gcc_cv_getipinfo" >&6
27772   CXXFLAGS="$ac_save_CXXFLAGS"
27773   ac_ext=c
27774 ac_cpp='$CPP $CPPFLAGS'
27775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27778
27779
27780
27781 # See if linker supports anonymous version scripts.
27782 echo "$as_me:$LINENO: checking whether ld supports anonymous version scripts" >&5
27783 echo $ECHO_N "checking whether ld supports anonymous version scripts... $ECHO_C" >&6
27784 if test "${libjava_cv_anon_version_script+set}" = set; then
27785   echo $ECHO_N "(cached) $ECHO_C" >&6
27786 else
27787   save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
27788    libjava_cv_anon_version_script=no
27789    CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
27790    echo '{ global: globalsymb*; local: *; };' > conftest.map
27791    if test x$gcc_no_link = xyes; then
27792   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27793 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27794    { (exit 1); exit 1; }; }
27795 fi
27796 cat >conftest.$ac_ext <<_ACEOF
27797 /* confdefs.h.  */
27798 _ACEOF
27799 cat confdefs.h >>conftest.$ac_ext
27800 cat >>conftest.$ac_ext <<_ACEOF
27801 /* end confdefs.h.  */
27802 void globalsymbol (void) {} void localsymbol (void) {}
27803 int
27804 main ()
27805 {
27806
27807   ;
27808   return 0;
27809 }
27810 _ACEOF
27811 rm -f conftest.$ac_objext conftest$ac_exeext
27812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27813   (eval $ac_link) 2>conftest.er1
27814   ac_status=$?
27815   grep -v '^ *+' conftest.er1 >conftest.err
27816   rm -f conftest.er1
27817   cat conftest.err >&5
27818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819   (exit $ac_status); } &&
27820          { ac_try='test -z "$ac_c_werror_flag"
27821                          || test ! -s conftest.err'
27822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27823   (eval $ac_try) 2>&5
27824   ac_status=$?
27825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826   (exit $ac_status); }; } &&
27827          { ac_try='test -s conftest$ac_exeext'
27828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27829   (eval $ac_try) 2>&5
27830   ac_status=$?
27831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27832   (exit $ac_status); }; }; then
27833   libjava_cv_anon_version_script=yes
27834 else
27835   echo "$as_me: failed program was:" >&5
27836 sed 's/^/| /' conftest.$ac_ext >&5
27837
27838 fi
27839 rm -f conftest.err conftest.$ac_objext \
27840       conftest$ac_exeext conftest.$ac_ext
27841    CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
27842
27843 fi
27844 echo "$as_me:$LINENO: result: $libjava_cv_anon_version_script" >&5
27845 echo "${ECHO_T}$libjava_cv_anon_version_script" >&6
27846
27847
27848 if test "$libjava_cv_anon_version_script" = yes; then
27849   ANONVERSCRIPT_TRUE=
27850   ANONVERSCRIPT_FALSE='#'
27851 else
27852   ANONVERSCRIPT_TRUE='#'
27853   ANONVERSCRIPT_FALSE=
27854 fi
27855
27856
27857 # Check if linker supports static linking on a per library basis
27858 LD_START_STATIC_SPEC=
27859 LD_FINISH_STATIC_SPEC=
27860 if $LD --help 2>&1 | grep -q -e -call_shared ; then
27861   if $LD --help 2>&1 | grep -q -e -non_shared ; then
27862     LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
27863     LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
27864   fi
27865 fi
27866
27867
27868
27869 here=`${PWDCMD-pwd}`
27870
27871
27872 # We get this from the environment.
27873
27874
27875                                                                       ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
27876
27877
27878 if test ${multilib} = yes; then
27879   multilib_arg="--enable-multilib"
27880 else
27881   multilib_arg=
27882 fi
27883
27884           ac_config_files="$ac_config_files scripts/jar"
27885
27886 cat >confcache <<\_ACEOF
27887 # This file is a shell script that caches the results of configure
27888 # tests run on this system so they can be shared between configure
27889 # scripts and configure runs, see configure's option --config-cache.
27890 # It is not useful on other systems.  If it contains results you don't
27891 # want to keep, you may remove or edit it.
27892 #
27893 # config.status only pays attention to the cache file if you give it
27894 # the --recheck option to rerun configure.
27895 #
27896 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27897 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27898 # following values.
27899
27900 _ACEOF
27901
27902 # The following way of writing the cache mishandles newlines in values,
27903 # but we know of no workaround that is simple, portable, and efficient.
27904 # So, don't put newlines in cache variables' values.
27905 # Ultrix sh set writes to stderr and can't be redirected directly,
27906 # and sets the high bit in the cache file unless we assign to the vars.
27907 {
27908   (set) 2>&1 |
27909     case `(ac_space=' '; set | grep ac_space) 2>&1` in
27910     *ac_space=\ *)
27911       # `set' does not quote correctly, so add quotes (double-quote
27912       # substitution turns \\\\ into \\, and sed turns \\ into \).
27913       sed -n \
27914         "s/'/'\\\\''/g;
27915           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27916       ;;
27917     *)
27918       # `set' quotes correctly as required by POSIX, so do not add quotes.
27919       sed -n \
27920         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27921       ;;
27922     esac;
27923 } |
27924   sed '
27925      t clear
27926      : clear
27927      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27928      t end
27929      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27930      : end' >>confcache
27931 if diff $cache_file confcache >/dev/null 2>&1; then :; else
27932   if test -w $cache_file; then
27933     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27934     cat confcache >$cache_file
27935   else
27936     echo "not updating unwritable cache $cache_file"
27937   fi
27938 fi
27939 rm -f confcache
27940
27941 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27942 # Let make expand exec_prefix.
27943 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27944
27945 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27946 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27947 # trailing colons and then remove the whole line if VPATH becomes empty
27948 # (actually we leave an empty line to preserve line numbers).
27949 if test "x$srcdir" = x.; then
27950   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27951 s/:*\$(srcdir):*/:/;
27952 s/:*\${srcdir}:*/:/;
27953 s/:*@srcdir@:*/:/;
27954 s/^\([^=]*=[     ]*\):*/\1/;
27955 s/:*$//;
27956 s/^[^=]*=[       ]*$//;
27957 }'
27958 fi
27959
27960 DEFS=-DHAVE_CONFIG_H
27961
27962 ac_libobjs=
27963 ac_ltlibobjs=
27964 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27965   # 1. Remove the extension, and $U if already installed.
27966   ac_i=`echo "$ac_i" |
27967          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27968   # 2. Add them.
27969   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27970   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27971 done
27972 LIBOBJS=$ac_libobjs
27973
27974 LTLIBOBJS=$ac_ltlibobjs
27975
27976
27977 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
27978   { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
27979 Usually this means the macro was only invoked conditionally." >&5
27980 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
27981 Usually this means the macro was only invoked conditionally." >&2;}
27982    { (exit 1); exit 1; }; }
27983 fi
27984 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27985   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27986 Usually this means the macro was only invoked conditionally." >&5
27987 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27988 Usually this means the macro was only invoked conditionally." >&2;}
27989    { (exit 1); exit 1; }; }
27990 fi
27991 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27992   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27993 Usually this means the macro was only invoked conditionally." >&5
27994 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27995 Usually this means the macro was only invoked conditionally." >&2;}
27996    { (exit 1); exit 1; }; }
27997 fi
27998 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27999   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28000 Usually this means the macro was only invoked conditionally." >&5
28001 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28002 Usually this means the macro was only invoked conditionally." >&2;}
28003    { (exit 1); exit 1; }; }
28004 fi
28005 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28006   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
28007 Usually this means the macro was only invoked conditionally." >&5
28008 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
28009 Usually this means the macro was only invoked conditionally." >&2;}
28010    { (exit 1); exit 1; }; }
28011 fi
28012 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
28013   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
28014 Usually this means the macro was only invoked conditionally." >&5
28015 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
28016 Usually this means the macro was only invoked conditionally." >&2;}
28017    { (exit 1); exit 1; }; }
28018 fi
28019 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
28020   { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined.
28021 Usually this means the macro was only invoked conditionally." >&5
28022 echo "$as_me: error: conditional \"X_AWT\" was never defined.
28023 Usually this means the macro was only invoked conditionally." >&2;}
28024    { (exit 1); exit 1; }; }
28025 fi
28026 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28027   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28028 Usually this means the macro was only invoked conditionally." >&5
28029 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28030 Usually this means the macro was only invoked conditionally." >&2;}
28031    { (exit 1); exit 1; }; }
28032 fi
28033 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28034   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28035 Usually this means the macro was only invoked conditionally." >&5
28036 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28037 Usually this means the macro was only invoked conditionally." >&2;}
28038    { (exit 1); exit 1; }; }
28039 fi
28040 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
28041   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
28042 Usually this means the macro was only invoked conditionally." >&5
28043 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
28044 Usually this means the macro was only invoked conditionally." >&2;}
28045    { (exit 1); exit 1; }; }
28046 fi
28047 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
28048   { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined.
28049 Usually this means the macro was only invoked conditionally." >&5
28050 echo "$as_me: error: conditional \"BUILD_ECJ1\" was never defined.
28051 Usually this means the macro was only invoked conditionally." >&2;}
28052    { (exit 1); exit 1; }; }
28053 fi
28054 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
28055   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
28056 Usually this means the macro was only invoked conditionally." >&5
28057 echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
28058 Usually this means the macro was only invoked conditionally." >&2;}
28059    { (exit 1); exit 1; }; }
28060 fi
28061 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
28062   { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
28063 Usually this means the macro was only invoked conditionally." >&5
28064 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
28065 Usually this means the macro was only invoked conditionally." >&2;}
28066    { (exit 1); exit 1; }; }
28067 fi
28068 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
28069   { { echo "$as_me:$LINENO: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28070 Usually this means the macro was only invoked conditionally." >&5
28071 echo "$as_me: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28072 Usually this means the macro was only invoked conditionally." >&2;}
28073    { (exit 1); exit 1; }; }
28074 fi
28075 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
28076   { { echo "$as_me:$LINENO: error: conditional \"INTERPRETER\" was never defined.
28077 Usually this means the macro was only invoked conditionally." >&5
28078 echo "$as_me: error: conditional \"INTERPRETER\" was never defined.
28079 Usually this means the macro was only invoked conditionally." >&2;}
28080    { (exit 1); exit 1; }; }
28081 fi
28082 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
28083   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28084 Usually this means the macro was only invoked conditionally." >&5
28085 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28086 Usually this means the macro was only invoked conditionally." >&2;}
28087    { (exit 1); exit 1; }; }
28088 fi
28089 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
28090   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28091 Usually this means the macro was only invoked conditionally." >&5
28092 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28093 Usually this means the macro was only invoked conditionally." >&2;}
28094    { (exit 1); exit 1; }; }
28095 fi
28096 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
28097   { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
28098 Usually this means the macro was only invoked conditionally." >&5
28099 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
28100 Usually this means the macro was only invoked conditionally." >&2;}
28101    { (exit 1); exit 1; }; }
28102 fi
28103 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
28104   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
28105 Usually this means the macro was only invoked conditionally." >&5
28106 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
28107 Usually this means the macro was only invoked conditionally." >&2;}
28108    { (exit 1); exit 1; }; }
28109 fi
28110 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
28111   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
28112 Usually this means the macro was only invoked conditionally." >&5
28113 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
28114 Usually this means the macro was only invoked conditionally." >&2;}
28115    { (exit 1); exit 1; }; }
28116 fi
28117 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
28118   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
28119 Usually this means the macro was only invoked conditionally." >&5
28120 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
28121 Usually this means the macro was only invoked conditionally." >&2;}
28122    { (exit 1); exit 1; }; }
28123 fi
28124 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
28125   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
28126 Usually this means the macro was only invoked conditionally." >&5
28127 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
28128 Usually this means the macro was only invoked conditionally." >&2;}
28129    { (exit 1); exit 1; }; }
28130 fi
28131 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
28132   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
28133 Usually this means the macro was only invoked conditionally." >&5
28134 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
28135 Usually this means the macro was only invoked conditionally." >&2;}
28136    { (exit 1); exit 1; }; }
28137 fi
28138 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
28139   { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28140 Usually this means the macro was only invoked conditionally." >&5
28141 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28142 Usually this means the macro was only invoked conditionally." >&2;}
28143    { (exit 1); exit 1; }; }
28144 fi
28145 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
28146   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
28147 Usually this means the macro was only invoked conditionally." >&5
28148 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
28149 Usually this means the macro was only invoked conditionally." >&2;}
28150    { (exit 1); exit 1; }; }
28151 fi
28152 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28153   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28154 Usually this means the macro was only invoked conditionally." >&5
28155 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28156 Usually this means the macro was only invoked conditionally." >&2;}
28157    { (exit 1); exit 1; }; }
28158 fi
28159 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
28160   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
28161 Usually this means the macro was only invoked conditionally." >&5
28162 echo "$as_me: error: conditional \"NATIVE\" was never defined.
28163 Usually this means the macro was only invoked conditionally." >&2;}
28164    { (exit 1); exit 1; }; }
28165 fi
28166 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
28167   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
28168 Usually this means the macro was only invoked conditionally." >&5
28169 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
28170 Usually this means the macro was only invoked conditionally." >&2;}
28171    { (exit 1); exit 1; }; }
28172 fi
28173 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
28174   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
28175 Usually this means the macro was only invoked conditionally." >&5
28176 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
28177 Usually this means the macro was only invoked conditionally." >&2;}
28178    { (exit 1); exit 1; }; }
28179 fi
28180 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
28181   { { echo "$as_me:$LINENO: error: conditional \"ANONVERSCRIPT\" was never defined.
28182 Usually this means the macro was only invoked conditionally." >&5
28183 echo "$as_me: error: conditional \"ANONVERSCRIPT\" was never defined.
28184 Usually this means the macro was only invoked conditionally." >&2;}
28185    { (exit 1); exit 1; }; }
28186 fi
28187
28188 : ${CONFIG_STATUS=./config.status}
28189 ac_clean_files_save=$ac_clean_files
28190 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28191 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28192 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28193 cat >$CONFIG_STATUS <<_ACEOF
28194 #! $SHELL
28195 # Generated by $as_me.
28196 # Run this file to recreate the current configuration.
28197 # Compiler output produced by configure, useful for debugging
28198 # configure, is in config.log if it exists.
28199
28200 debug=false
28201 ac_cs_recheck=false
28202 ac_cs_silent=false
28203 SHELL=\${CONFIG_SHELL-$SHELL}
28204 _ACEOF
28205
28206 cat >>$CONFIG_STATUS <<\_ACEOF
28207 ## --------------------- ##
28208 ## M4sh Initialization.  ##
28209 ## --------------------- ##
28210
28211 # Be Bourne compatible
28212 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28213   emulate sh
28214   NULLCMD=:
28215   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28216   # is contrary to our usage.  Disable this feature.
28217   alias -g '${1+"$@"}'='"$@"'
28218 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28219   set -o posix
28220 fi
28221 DUALCASE=1; export DUALCASE # for MKS sh
28222
28223 # Support unset when possible.
28224 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28225   as_unset=unset
28226 else
28227   as_unset=false
28228 fi
28229
28230
28231 # Work around bugs in pre-3.0 UWIN ksh.
28232 $as_unset ENV MAIL MAILPATH
28233 PS1='$ '
28234 PS2='> '
28235 PS4='+ '
28236
28237 # NLS nuisances.
28238 for as_var in \
28239   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28240   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28241   LC_TELEPHONE LC_TIME
28242 do
28243   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28244     eval $as_var=C; export $as_var
28245   else
28246     $as_unset $as_var
28247   fi
28248 done
28249
28250 # Required to use basename.
28251 if expr a : '\(a\)' >/dev/null 2>&1; then
28252   as_expr=expr
28253 else
28254   as_expr=false
28255 fi
28256
28257 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28258   as_basename=basename
28259 else
28260   as_basename=false
28261 fi
28262
28263
28264 # Name of the executable.
28265 as_me=`$as_basename "$0" ||
28266 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28267          X"$0" : 'X\(//\)$' \| \
28268          X"$0" : 'X\(/\)$' \| \
28269          .     : '\(.\)' 2>/dev/null ||
28270 echo X/"$0" |
28271     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28272           /^X\/\(\/\/\)$/{ s//\1/; q; }
28273           /^X\/\(\/\).*/{ s//\1/; q; }
28274           s/.*/./; q'`
28275
28276
28277 # PATH needs CR, and LINENO needs CR and PATH.
28278 # Avoid depending upon Character Ranges.
28279 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28280 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28281 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28282 as_cr_digits='0123456789'
28283 as_cr_alnum=$as_cr_Letters$as_cr_digits
28284
28285 # The user is always right.
28286 if test "${PATH_SEPARATOR+set}" != set; then
28287   echo "#! /bin/sh" >conf$$.sh
28288   echo  "exit 0"   >>conf$$.sh
28289   chmod +x conf$$.sh
28290   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28291     PATH_SEPARATOR=';'
28292   else
28293     PATH_SEPARATOR=:
28294   fi
28295   rm -f conf$$.sh
28296 fi
28297
28298
28299   as_lineno_1=$LINENO
28300   as_lineno_2=$LINENO
28301   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28302   test "x$as_lineno_1" != "x$as_lineno_2" &&
28303   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
28304   # Find who we are.  Look in the path if we contain no path at all
28305   # relative or not.
28306   case $0 in
28307     *[\\/]* ) as_myself=$0 ;;
28308     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28309 for as_dir in $PATH
28310 do
28311   IFS=$as_save_IFS
28312   test -z "$as_dir" && as_dir=.
28313   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28314 done
28315
28316        ;;
28317   esac
28318   # We did not find ourselves, most probably we were run as `sh COMMAND'
28319   # in which case we are not to be found in the path.
28320   if test "x$as_myself" = x; then
28321     as_myself=$0
28322   fi
28323   if test ! -f "$as_myself"; then
28324     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28325 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28326    { (exit 1); exit 1; }; }
28327   fi
28328   case $CONFIG_SHELL in
28329   '')
28330     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28331 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28332 do
28333   IFS=$as_save_IFS
28334   test -z "$as_dir" && as_dir=.
28335   for as_base in sh bash ksh sh5; do
28336          case $as_dir in
28337          /*)
28338            if ("$as_dir/$as_base" -c '
28339   as_lineno_1=$LINENO
28340   as_lineno_2=$LINENO
28341   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28342   test "x$as_lineno_1" != "x$as_lineno_2" &&
28343   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
28344              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28345              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28346              CONFIG_SHELL=$as_dir/$as_base
28347              export CONFIG_SHELL
28348              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28349            fi;;
28350          esac
28351        done
28352 done
28353 ;;
28354   esac
28355
28356   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28357   # uniformly replaced by the line number.  The first 'sed' inserts a
28358   # line-number line before each line; the second 'sed' does the real
28359   # work.  The second script uses 'N' to pair each line-number line
28360   # with the numbered line, and appends trailing '-' during
28361   # substitution so that $LINENO is not a special case at line end.
28362   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28363   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
28364   sed '=' <$as_myself |
28365     sed '
28366       N
28367       s,$,-,
28368       : loop
28369       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28370       t loop
28371       s,-$,,
28372       s,^['$as_cr_digits']*\n,,
28373     ' >$as_me.lineno &&
28374   chmod +x $as_me.lineno ||
28375     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28376 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28377    { (exit 1); exit 1; }; }
28378
28379   # Don't try to exec as it changes $[0], causing all sort of problems
28380   # (the dirname of $[0] is not the place where we might find the
28381   # original and so on.  Autoconf is especially sensible to this).
28382   . ./$as_me.lineno
28383   # Exit status is that of the last command.
28384   exit
28385 }
28386
28387
28388 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28389   *c*,-n*) ECHO_N= ECHO_C='
28390 ' ECHO_T='      ' ;;
28391   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28392   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
28393 esac
28394
28395 if expr a : '\(a\)' >/dev/null 2>&1; then
28396   as_expr=expr
28397 else
28398   as_expr=false
28399 fi
28400
28401 rm -f conf$$ conf$$.exe conf$$.file
28402 echo >conf$$.file
28403 if ln -s conf$$.file conf$$ 2>/dev/null; then
28404   # We could just check for DJGPP; but this test a) works b) is more generic
28405   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28406   if test -f conf$$.exe; then
28407     # Don't use ln at all; we don't have any links
28408     as_ln_s='cp -p'
28409   else
28410     as_ln_s='ln -s'
28411   fi
28412 elif ln conf$$.file conf$$ 2>/dev/null; then
28413   as_ln_s=ln
28414 else
28415   as_ln_s='cp -p'
28416 fi
28417 rm -f conf$$ conf$$.exe conf$$.file
28418
28419 if mkdir -p . 2>/dev/null; then
28420   as_mkdir_p=:
28421 else
28422   test -d ./-p && rmdir ./-p
28423   as_mkdir_p=false
28424 fi
28425
28426 as_executable_p="test -f"
28427
28428 # Sed expression to map a string onto a valid CPP name.
28429 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28430
28431 # Sed expression to map a string onto a valid variable name.
28432 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28433
28434
28435 # IFS
28436 # We need space, tab and new line, in precisely that order.
28437 as_nl='
28438 '
28439 IFS="   $as_nl"
28440
28441 # CDPATH.
28442 $as_unset CDPATH
28443
28444 exec 6>&1
28445
28446 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28447 # report actual input values of CONFIG_FILES etc. instead of their
28448 # values after options handling.  Logging --version etc. is OK.
28449 exec 5>>config.log
28450 {
28451   echo
28452   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28453 ## Running $as_me. ##
28454 _ASBOX
28455 } >&5
28456 cat >&5 <<_CSEOF
28457
28458 This file was extended by libjava $as_me version-unused, which was
28459 generated by GNU Autoconf 2.59.  Invocation command line was
28460
28461   CONFIG_FILES    = $CONFIG_FILES
28462   CONFIG_HEADERS  = $CONFIG_HEADERS
28463   CONFIG_LINKS    = $CONFIG_LINKS
28464   CONFIG_COMMANDS = $CONFIG_COMMANDS
28465   $ $0 $@
28466
28467 _CSEOF
28468 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28469 echo >&5
28470 _ACEOF
28471
28472 # Files that config.status was made for.
28473 if test -n "$ac_config_files"; then
28474   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28475 fi
28476
28477 if test -n "$ac_config_headers"; then
28478   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28479 fi
28480
28481 if test -n "$ac_config_links"; then
28482   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28483 fi
28484
28485 if test -n "$ac_config_commands"; then
28486   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28487 fi
28488
28489 cat >>$CONFIG_STATUS <<\_ACEOF
28490
28491 ac_cs_usage="\
28492 \`$as_me' instantiates files from templates according to the
28493 current configuration.
28494
28495 Usage: $0 [OPTIONS] [FILE]...
28496
28497   -h, --help       print this help, then exit
28498   -V, --version    print version number, then exit
28499   -q, --quiet      do not print progress messages
28500   -d, --debug      don't remove temporary files
28501       --recheck    update $as_me by reconfiguring in the same conditions
28502   --file=FILE[:TEMPLATE]
28503                    instantiate the configuration file FILE
28504   --header=FILE[:TEMPLATE]
28505                    instantiate the configuration header FILE
28506
28507 Configuration files:
28508 $config_files
28509
28510 Configuration headers:
28511 $config_headers
28512
28513 Configuration links:
28514 $config_links
28515
28516 Configuration commands:
28517 $config_commands
28518
28519 Report bugs to <bug-autoconf@gnu.org>."
28520 _ACEOF
28521
28522 cat >>$CONFIG_STATUS <<_ACEOF
28523 ac_cs_version="\\
28524 libjava config.status version-unused
28525 configured by $0, generated by GNU Autoconf 2.59,
28526   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28527
28528 Copyright (C) 2003 Free Software Foundation, Inc.
28529 This config.status script is free software; the Free Software Foundation
28530 gives unlimited permission to copy, distribute and modify it."
28531 srcdir=$srcdir
28532 INSTALL="$INSTALL"
28533 _ACEOF
28534
28535 cat >>$CONFIG_STATUS <<\_ACEOF
28536 # If no file are specified by the user, then we need to provide default
28537 # value.  By we need to know if files were specified by the user.
28538 ac_need_defaults=:
28539 while test $# != 0
28540 do
28541   case $1 in
28542   --*=*)
28543     ac_option=`expr "x$1" : 'x\([^=]*\)='`
28544     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28545     ac_shift=:
28546     ;;
28547   -*)
28548     ac_option=$1
28549     ac_optarg=$2
28550     ac_shift=shift
28551     ;;
28552   *) # This is not an option, so the user has probably given explicit
28553      # arguments.
28554      ac_option=$1
28555      ac_need_defaults=false;;
28556   esac
28557
28558   case $ac_option in
28559   # Handling of the options.
28560 _ACEOF
28561 cat >>$CONFIG_STATUS <<\_ACEOF
28562   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28563     ac_cs_recheck=: ;;
28564   --version | --vers* | -V )
28565     echo "$ac_cs_version"; exit 0 ;;
28566   --he | --h)
28567     # Conflict between --help and --header
28568     { { echo "$as_me:$LINENO: error: ambiguous option: $1
28569 Try \`$0 --help' for more information." >&5
28570 echo "$as_me: error: ambiguous option: $1
28571 Try \`$0 --help' for more information." >&2;}
28572    { (exit 1); exit 1; }; };;
28573   --help | --hel | -h )
28574     echo "$ac_cs_usage"; exit 0 ;;
28575   --debug | --d* | -d )
28576     debug=: ;;
28577   --file | --fil | --fi | --f )
28578     $ac_shift
28579     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28580     ac_need_defaults=false;;
28581   --header | --heade | --head | --hea )
28582     $ac_shift
28583     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28584     ac_need_defaults=false;;
28585   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28586   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28587     ac_cs_silent=: ;;
28588
28589   # This is an error.
28590   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28591 Try \`$0 --help' for more information." >&5
28592 echo "$as_me: error: unrecognized option: $1
28593 Try \`$0 --help' for more information." >&2;}
28594    { (exit 1); exit 1; }; } ;;
28595
28596   *) ac_config_targets="$ac_config_targets $1" ;;
28597
28598   esac
28599   shift
28600 done
28601
28602 ac_configure_extra_args=
28603
28604 if $ac_cs_silent; then
28605   exec 6>/dev/null
28606   ac_configure_extra_args="$ac_configure_extra_args --silent"
28607 fi
28608
28609 _ACEOF
28610 cat >>$CONFIG_STATUS <<_ACEOF
28611 if \$ac_cs_recheck; then
28612   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28613   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28614 fi
28615
28616 _ACEOF
28617
28618 cat >>$CONFIG_STATUS <<_ACEOF
28619 #
28620 # INIT-COMMANDS section.
28621 #
28622
28623
28624 srcdir="$srcdir"
28625 host="$host"
28626 target="$target"
28627 with_multisubdir="$with_multisubdir"
28628 with_multisrctop="$with_multisrctop"
28629 with_target_subdir="$with_target_subdir"
28630 ac_configure_args="${multilib_arg} ${ac_configure_args}"
28631 multi_basedir="$multi_basedir"
28632 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
28633 CC="$CC"
28634 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28635
28636
28637 # The HP-UX ksh and POSIX shell print the target directory to stdout
28638 # if CDPATH is set.
28639 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28640
28641 sed_quote_subst='$sed_quote_subst'
28642 double_quote_subst='$double_quote_subst'
28643 delay_variable_subst='$delay_variable_subst'
28644 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
28645 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
28646 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
28647 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
28648 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
28649 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
28650 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
28651 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
28652 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
28653 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
28654 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
28655 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
28656 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
28657 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
28658 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
28659 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
28660 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
28661 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
28662 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
28663 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
28664 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
28665 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
28666 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
28667 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
28668 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
28669 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
28670 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
28671 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28672 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
28673 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
28674 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
28675 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28676 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
28677 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
28678 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28679 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28680 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28681 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
28682 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28683 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
28684 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
28685 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
28686 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
28687 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
28688 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
28689 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
28690 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
28691 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
28692 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
28693 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
28694 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
28695 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
28696 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
28697 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
28698 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
28699 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28700 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28701 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
28702 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
28703 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28704 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28705 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
28706 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28707 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28708 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28709 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28710 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28711 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28712 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
28713 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28714 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28715 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28716 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
28717 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
28718 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
28719 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
28720 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
28721 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28722 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
28723 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
28724 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
28725 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
28726 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
28727 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28728 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28729 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28730 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28731 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
28732 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
28733 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
28734 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
28735 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
28736 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28737 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28738 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
28739 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28740 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
28741 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28742 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28743 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28744 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28745 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
28746 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
28747 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28748 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28749 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
28750 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
28751 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
28752 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
28753 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
28754 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
28755 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28756 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28757 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
28758 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
28759 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
28760 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28761 LD_GCJ='`$ECHO "X$LD_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28762 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28763 old_archive_cmds_GCJ='`$ECHO "X$old_archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28764 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28765 compiler_GCJ='`$ECHO "X$compiler_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28766 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28767 GCC_GCJ='`$ECHO "X$GCC_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28768 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28769 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "X$lt_prog_compiler_no_builtin_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28770 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28771 lt_prog_compiler_wl_GCJ='`$ECHO "X$lt_prog_compiler_wl_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28772 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28773 lt_prog_compiler_pic_GCJ='`$ECHO "X$lt_prog_compiler_pic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28774 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28775 lt_prog_compiler_static_GCJ='`$ECHO "X$lt_prog_compiler_static_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28776 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28777 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "X$lt_cv_prog_compiler_c_o_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28778 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28779 archive_cmds_need_lc_GCJ='`$ECHO "X$archive_cmds_need_lc_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28780 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28781 enable_shared_with_static_runtimes_GCJ='`$ECHO "X$enable_shared_with_static_runtimes_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28782 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28783 export_dynamic_flag_spec_GCJ='`$ECHO "X$export_dynamic_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28784 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28785 whole_archive_flag_spec_GCJ='`$ECHO "X$whole_archive_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28786 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28787 compiler_needs_object_GCJ='`$ECHO "X$compiler_needs_object_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28788 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28789 old_archive_from_new_cmds_GCJ='`$ECHO "X$old_archive_from_new_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28790 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28791 old_archive_from_expsyms_cmds_GCJ='`$ECHO "X$old_archive_from_expsyms_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28792 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28793 archive_cmds_GCJ='`$ECHO "X$archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28794 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28795 archive_expsym_cmds_GCJ='`$ECHO "X$archive_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28796 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28797 module_cmds_GCJ='`$ECHO "X$module_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28798 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28799 module_expsym_cmds_GCJ='`$ECHO "X$module_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28800 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28801 with_gnu_ld_GCJ='`$ECHO "X$with_gnu_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28802 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28803 allow_undefined_flag_GCJ='`$ECHO "X$allow_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28804 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28805 no_undefined_flag_GCJ='`$ECHO "X$no_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28806 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28807 hardcode_libdir_flag_spec_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28808 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28809 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28810 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28811 hardcode_libdir_separator_GCJ='`$ECHO "X$hardcode_libdir_separator_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28812 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28813 hardcode_direct_GCJ='`$ECHO "X$hardcode_direct_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28814 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28815 hardcode_direct_absolute_GCJ='`$ECHO "X$hardcode_direct_absolute_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28816 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28817 hardcode_minus_L_GCJ='`$ECHO "X$hardcode_minus_L_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28818 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28819 hardcode_shlibpath_var_GCJ='`$ECHO "X$hardcode_shlibpath_var_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28820 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28821 hardcode_automatic_GCJ='`$ECHO "X$hardcode_automatic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28822 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28823 inherit_rpath_GCJ='`$ECHO "X$inherit_rpath_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28824 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28825 link_all_deplibs_GCJ='`$ECHO "X$link_all_deplibs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28826 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28827 fix_srcfile_path_GCJ='`$ECHO "X$fix_srcfile_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28828 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28829 always_export_symbols_GCJ='`$ECHO "X$always_export_symbols_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28830 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28831 export_symbols_cmds_GCJ='`$ECHO "X$export_symbols_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28832 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28833 exclude_expsyms_GCJ='`$ECHO "X$exclude_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28834 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28835 include_expsyms_GCJ='`$ECHO "X$include_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28836 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28837 prelink_cmds_GCJ='`$ECHO "X$prelink_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28838 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28839 file_list_spec_GCJ='`$ECHO "X$file_list_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28840 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28841 hardcode_action_GCJ='`$ECHO "X$hardcode_action_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28842 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28843 predep_objects_GCJ='`$ECHO "X$predep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28844 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28845 postdep_objects_GCJ='`$ECHO "X$postdep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28846 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28847 predeps_GCJ='`$ECHO "X$predeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28848 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28849 postdeps_GCJ='`$ECHO "X$postdeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28850 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28851 compiler_lib_search_path_GCJ='`$ECHO "X$compiler_lib_search_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28852
28853 LTCC='$LTCC'
28854 LTCFLAGS='$LTCFLAGS'
28855 compiler='$compiler_DEFAULT'
28856
28857 # Quote evaled strings.
28858 for var in SED \
28859 GREP \
28860 EGREP \
28861 FGREP \
28862 LD \
28863 NM \
28864 LN_S \
28865 lt_SP2NL \
28866 lt_NL2SP \
28867 reload_flag \
28868 deplibs_check_method \
28869 file_magic_cmd \
28870 AR \
28871 AR_FLAGS \
28872 STRIP \
28873 RANLIB \
28874 CC \
28875 CFLAGS \
28876 compiler \
28877 lt_cv_sys_global_symbol_pipe \
28878 lt_cv_sys_global_symbol_to_cdecl \
28879 lt_cv_sys_global_symbol_to_c_name_address \
28880 SHELL \
28881 ECHO \
28882 lt_prog_compiler_no_builtin_flag \
28883 lt_prog_compiler_wl \
28884 lt_prog_compiler_pic \
28885 lt_prog_compiler_static \
28886 lt_cv_prog_compiler_c_o \
28887 need_locks \
28888 shrext_cmds \
28889 export_dynamic_flag_spec \
28890 whole_archive_flag_spec \
28891 compiler_needs_object \
28892 with_gnu_ld \
28893 allow_undefined_flag \
28894 no_undefined_flag \
28895 hardcode_libdir_flag_spec \
28896 hardcode_libdir_flag_spec_ld \
28897 hardcode_libdir_separator \
28898 fix_srcfile_path \
28899 exclude_expsyms \
28900 include_expsyms \
28901 file_list_spec \
28902 variables_saved_for_relink \
28903 libname_spec \
28904 library_names_spec \
28905 soname_spec \
28906 finish_eval \
28907 old_striplib \
28908 striplib \
28909 predep_objects \
28910 postdep_objects \
28911 predeps \
28912 postdeps \
28913 compiler_lib_search_path \
28914 LD_CXX \
28915 LD_GCJ \
28916 compiler_CXX \
28917 compiler_GCJ \
28918 lt_prog_compiler_no_builtin_flag_CXX \
28919 lt_prog_compiler_no_builtin_flag_GCJ \
28920 lt_prog_compiler_wl_CXX \
28921 lt_prog_compiler_wl_GCJ \
28922 lt_prog_compiler_pic_CXX \
28923 lt_prog_compiler_pic_GCJ \
28924 lt_prog_compiler_static_CXX \
28925 lt_prog_compiler_static_GCJ \
28926 lt_cv_prog_compiler_c_o_CXX \
28927 lt_cv_prog_compiler_c_o_GCJ \
28928 export_dynamic_flag_spec_CXX \
28929 export_dynamic_flag_spec_GCJ \
28930 whole_archive_flag_spec_CXX \
28931 whole_archive_flag_spec_GCJ \
28932 compiler_needs_object_CXX \
28933 compiler_needs_object_GCJ \
28934 with_gnu_ld_CXX \
28935 with_gnu_ld_GCJ \
28936 allow_undefined_flag_CXX \
28937 allow_undefined_flag_GCJ \
28938 no_undefined_flag_CXX \
28939 no_undefined_flag_GCJ \
28940 hardcode_libdir_flag_spec_CXX \
28941 hardcode_libdir_flag_spec_GCJ \
28942 hardcode_libdir_flag_spec_ld_CXX \
28943 hardcode_libdir_flag_spec_ld_GCJ \
28944 hardcode_libdir_separator_CXX \
28945 hardcode_libdir_separator_GCJ \
28946 fix_srcfile_path_CXX \
28947 fix_srcfile_path_GCJ \
28948 exclude_expsyms_CXX \
28949 exclude_expsyms_GCJ \
28950 include_expsyms_CXX \
28951 include_expsyms_GCJ \
28952 file_list_spec_CXX \
28953 file_list_spec_GCJ \
28954 predep_objects_CXX \
28955 predep_objects_GCJ \
28956 postdep_objects_CXX \
28957 postdep_objects_GCJ \
28958 predeps_CXX \
28959 predeps_GCJ \
28960 postdeps_CXX \
28961 postdeps_GCJ \
28962 compiler_lib_search_path_CXX \
28963 compiler_lib_search_path_GCJ; do
28964     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28965     *[\\\\\\\`\\"\\\$]*)
28966       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28967       ;;
28968     *)
28969       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28970       ;;
28971     esac
28972 done
28973
28974 # Double-quote double-evaled strings.
28975 for var in reload_cmds \
28976 old_postinstall_cmds \
28977 old_postuninstall_cmds \
28978 old_archive_cmds \
28979 extract_expsyms_cmds \
28980 old_archive_from_new_cmds \
28981 old_archive_from_expsyms_cmds \
28982 archive_cmds \
28983 archive_expsym_cmds \
28984 module_cmds \
28985 module_expsym_cmds \
28986 export_symbols_cmds \
28987 prelink_cmds \
28988 postinstall_cmds \
28989 postuninstall_cmds \
28990 finish_cmds \
28991 sys_lib_search_path_spec \
28992 sys_lib_dlsearch_path_spec \
28993 old_archive_cmds_CXX \
28994 old_archive_cmds_GCJ \
28995 old_archive_from_new_cmds_CXX \
28996 old_archive_from_new_cmds_GCJ \
28997 old_archive_from_expsyms_cmds_CXX \
28998 old_archive_from_expsyms_cmds_GCJ \
28999 archive_cmds_CXX \
29000 archive_cmds_GCJ \
29001 archive_expsym_cmds_CXX \
29002 archive_expsym_cmds_GCJ \
29003 module_cmds_CXX \
29004 module_cmds_GCJ \
29005 module_expsym_cmds_CXX \
29006 module_expsym_cmds_GCJ \
29007 export_symbols_cmds_CXX \
29008 export_symbols_cmds_GCJ \
29009 prelink_cmds_CXX \
29010 prelink_cmds_GCJ; do
29011     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
29012     *[\\\\\\\`\\"\\\$]*)
29013       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29014       ;;
29015     *)
29016       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29017       ;;
29018     esac
29019 done
29020
29021 # Fix-up fallback echo if it was mangled by the above quoting rules.
29022 case \$lt_ECHO in
29023 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
29024   ;;
29025 esac
29026
29027 ac_aux_dir='$ac_aux_dir'
29028 xsi_shell='$xsi_shell'
29029 lt_shell_append='$lt_shell_append'
29030
29031 # See if we are running on zsh, and set the options which allow our
29032 # commands through without removal of \ escapes INIT.
29033 if test -n "\${ZSH_VERSION+set}" ; then
29034    setopt NO_GLOB_SUBST
29035 fi
29036
29037
29038     PACKAGE='$PACKAGE'
29039     VERSION='$VERSION'
29040     TIMESTAMP='$TIMESTAMP'
29041     RM='$RM'
29042     ofile='$ofile'
29043
29044
29045
29046
29047
29048
29049
29050
29051 _ACEOF
29052
29053
29054
29055 cat >>$CONFIG_STATUS <<\_ACEOF
29056 for ac_config_target in $ac_config_targets
29057 do
29058   case "$ac_config_target" in
29059   # Handling of arguments.
29060   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29061   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
29062   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
29063   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
29064   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
29065   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
29066   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
29067   "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
29068   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
29069   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
29070   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
29071   "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
29072   "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
29073   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
29074   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
29075   "gnu/java/nio/natVMPipe.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
29076   "gnu/java/nio/natVMSelector.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
29077   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
29078   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
29079   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
29080   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
29081   "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
29082   "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
29083   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
29084   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
29085   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
29086   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29087   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29088   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
29089   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
29090   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29091 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29092    { (exit 1); exit 1; }; };;
29093   esac
29094 done
29095
29096 # If the user did not use the arguments to specify the items to instantiate,
29097 # then the envvar interface is used.  Set only those that are not.
29098 # We use the long form for the default assignment because of an extremely
29099 # bizarre bug on SunOS 4.1.3.
29100 if $ac_need_defaults; then
29101   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29102   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29103   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29104   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29105 fi
29106
29107 # Have a temporary directory for convenience.  Make it in the build tree
29108 # simply because there is no reason to put it here, and in addition,
29109 # creating and moving files from /tmp can sometimes cause problems.
29110 # Create a temporary directory, and hook for its removal unless debugging.
29111 $debug ||
29112 {
29113   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29114   trap '{ (exit 1); exit 1; }' 1 2 13 15
29115 }
29116
29117 # Create a (secure) tmp directory for tmp files.
29118
29119 {
29120   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29121   test -n "$tmp" && test -d "$tmp"
29122 }  ||
29123 {
29124   tmp=./confstat$$-$RANDOM
29125   (umask 077 && mkdir $tmp)
29126 } ||
29127 {
29128    echo "$me: cannot create a temporary directory in ." >&2
29129    { (exit 1); exit 1; }
29130 }
29131
29132 _ACEOF
29133
29134 cat >>$CONFIG_STATUS <<_ACEOF
29135
29136 #
29137 # CONFIG_FILES section.
29138 #
29139
29140 # No need to generate the scripts if there are no CONFIG_FILES.
29141 # This happens for instance when ./config.status config.h
29142 if test -n "\$CONFIG_FILES"; then
29143   # Protect against being on the right side of a sed subst in config.status.
29144   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29145    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29146 s,@SHELL@,$SHELL,;t t
29147 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29148 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29149 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29150 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29151 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29152 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29153 s,@exec_prefix@,$exec_prefix,;t t
29154 s,@prefix@,$prefix,;t t
29155 s,@program_transform_name@,$program_transform_name,;t t
29156 s,@bindir@,$bindir,;t t
29157 s,@sbindir@,$sbindir,;t t
29158 s,@libexecdir@,$libexecdir,;t t
29159 s,@datadir@,$datadir,;t t
29160 s,@sysconfdir@,$sysconfdir,;t t
29161 s,@sharedstatedir@,$sharedstatedir,;t t
29162 s,@localstatedir@,$localstatedir,;t t
29163 s,@libdir@,$libdir,;t t
29164 s,@includedir@,$includedir,;t t
29165 s,@oldincludedir@,$oldincludedir,;t t
29166 s,@infodir@,$infodir,;t t
29167 s,@mandir@,$mandir,;t t
29168 s,@build_alias@,$build_alias,;t t
29169 s,@host_alias@,$host_alias,;t t
29170 s,@target_alias@,$target_alias,;t t
29171 s,@DEFS@,$DEFS,;t t
29172 s,@ECHO_C@,$ECHO_C,;t t
29173 s,@ECHO_N@,$ECHO_N,;t t
29174 s,@ECHO_T@,$ECHO_T,;t t
29175 s,@LIBS@,$LIBS,;t t
29176 s,@build@,$build,;t t
29177 s,@build_cpu@,$build_cpu,;t t
29178 s,@build_vendor@,$build_vendor,;t t
29179 s,@build_os@,$build_os,;t t
29180 s,@build_libsubdir@,$build_libsubdir,;t t
29181 s,@build_subdir@,$build_subdir,;t t
29182 s,@host_subdir@,$host_subdir,;t t
29183 s,@target_subdir@,$target_subdir,;t t
29184 s,@multi_basedir@,$multi_basedir,;t t
29185 s,@host@,$host,;t t
29186 s,@host_cpu@,$host_cpu,;t t
29187 s,@host_vendor@,$host_vendor,;t t
29188 s,@host_os@,$host_os,;t t
29189 s,@target@,$target,;t t
29190 s,@target_cpu@,$target_cpu,;t t
29191 s,@target_vendor@,$target_vendor,;t t
29192 s,@target_os@,$target_os,;t t
29193 s,@target_noncanonical@,$target_noncanonical,;t t
29194 s,@LN_S@,$LN_S,;t t
29195 s,@mkinstalldirs@,$mkinstalldirs,;t t
29196 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
29197 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
29198 s,@CC@,$CC,;t t
29199 s,@ac_ct_CC@,$ac_ct_CC,;t t
29200 s,@EXEEXT@,$EXEEXT,;t t
29201 s,@OBJEXT@,$OBJEXT,;t t
29202 s,@CXX@,$CXX,;t t
29203 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29204 s,@CFLAGS@,$CFLAGS,;t t
29205 s,@CXXFLAGS@,$CXXFLAGS,;t t
29206 s,@LDFLAGS@,$LDFLAGS,;t t
29207 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29208 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29209 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29210 s,@CYGPATH_W@,$CYGPATH_W,;t t
29211 s,@PACKAGE@,$PACKAGE,;t t
29212 s,@VERSION@,$VERSION,;t t
29213 s,@ACLOCAL@,$ACLOCAL,;t t
29214 s,@AUTOCONF@,$AUTOCONF,;t t
29215 s,@AUTOMAKE@,$AUTOMAKE,;t t
29216 s,@AUTOHEADER@,$AUTOHEADER,;t t
29217 s,@MAKEINFO@,$MAKEINFO,;t t
29218 s,@install_sh@,$install_sh,;t t
29219 s,@STRIP@,$STRIP,;t t
29220 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29221 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29222 s,@mkdir_p@,$mkdir_p,;t t
29223 s,@AWK@,$AWK,;t t
29224 s,@SET_MAKE@,$SET_MAKE,;t t
29225 s,@am__leading_dot@,$am__leading_dot,;t t
29226 s,@AMTAR@,$AMTAR,;t t
29227 s,@am__tar@,$am__tar,;t t
29228 s,@am__untar@,$am__untar,;t t
29229 s,@DEPDIR@,$DEPDIR,;t t
29230 s,@am__include@,$am__include,;t t
29231 s,@am__quote@,$am__quote,;t t
29232 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29233 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29234 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29235 s,@CCDEPMODE@,$CCDEPMODE,;t t
29236 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29237 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29238 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
29239 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
29240 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
29241 s,@AS@,$AS,;t t
29242 s,@ac_ct_AS@,$ac_ct_AS,;t t
29243 s,@LD@,$LD,;t t
29244 s,@ac_ct_LD@,$ac_ct_LD,;t t
29245 s,@AR@,$AR,;t t
29246 s,@ac_ct_AR@,$ac_ct_AR,;t t
29247 s,@RANLIB@,$RANLIB,;t t
29248 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29249 s,@JAR@,$JAR,;t t
29250 s,@ZIP@,$ZIP,;t t
29251 s,@UNZIP@,$UNZIP,;t t
29252 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
29253 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
29254 s,@MAINT@,$MAINT,;t t
29255 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
29256 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
29257 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
29258 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
29259 s,@LIBGCJ_LD_SYMBOLIC_FUNCTIONS@,$LIBGCJ_LD_SYMBOLIC_FUNCTIONS,;t t
29260 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
29261 s,@TOOLKIT@,$TOOLKIT,;t t
29262 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
29263 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
29264 s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t
29265 s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t
29266 s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t
29267 s,@GCJH@,$GCJH,;t t
29268 s,@host_exeext@,$host_exeext,;t t
29269 s,@INCLTDL@,$INCLTDL,;t t
29270 s,@LIBLTDL@,$LIBLTDL,;t t
29271 s,@DIRLTDL@,$DIRLTDL,;t t
29272 s,@LIBTOOL@,$LIBTOOL,;t t
29273 s,@SED@,$SED,;t t
29274 s,@EGREP@,$EGREP,;t t
29275 s,@FGREP@,$FGREP,;t t
29276 s,@GREP@,$GREP,;t t
29277 s,@DUMPBIN@,$DUMPBIN,;t t
29278 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
29279 s,@NM@,$NM,;t t
29280 s,@lt_ECHO@,$lt_ECHO,;t t
29281 s,@CPP@,$CPP,;t t
29282 s,@CPPFLAGS@,$CPPFLAGS,;t t
29283 s,@CXXCPP@,$CXXCPP,;t t
29284 s,@GCJ@,$GCJ,;t t
29285 s,@GCJFLAGS@,$GCJFLAGS,;t t
29286 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
29287 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
29288 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
29289 s,@subdirs@,$subdirs,;t t
29290 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
29291 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
29292 s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t
29293 s,@ECJ_JAR@,$ECJ_JAR,;t t
29294 s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t
29295 s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t
29296 s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t
29297 s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t
29298 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
29299 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
29300 s,@JAVA_HOME@,$JAVA_HOME,;t t
29301 s,@SUPPRESS_LIBGCJ_BC_TRUE@,$SUPPRESS_LIBGCJ_BC_TRUE,;t t
29302 s,@SUPPRESS_LIBGCJ_BC_FALSE@,$SUPPRESS_LIBGCJ_BC_FALSE,;t t
29303 s,@INTERPRETER@,$INTERPRETER,;t t
29304 s,@INTERPRETER_TRUE@,$INTERPRETER_TRUE,;t t
29305 s,@INTERPRETER_FALSE@,$INTERPRETER_FALSE,;t t
29306 s,@LIBFFI@,$LIBFFI,;t t
29307 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
29308 s,@PLATFORM@,$PLATFORM,;t t
29309 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
29310 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
29311 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
29312 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
29313 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
29314 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
29315 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
29316 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
29317 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
29318 s,@X_CFLAGS@,$X_CFLAGS,;t t
29319 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
29320 s,@X_LIBS@,$X_LIBS,;t t
29321 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
29322 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
29323 s,@extra_gij_ldflags@,$extra_gij_ldflags,;t t
29324 s,@extra_ldflags@,$extra_ldflags,;t t
29325 s,@LIBSTDCXXSPEC@,$LIBSTDCXXSPEC,;t t
29326 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
29327 s,@GCLIBS@,$GCLIBS,;t t
29328 s,@GCINCS@,$GCINCS,;t t
29329 s,@GCDEPS@,$GCDEPS,;t t
29330 s,@GCSPEC@,$GCSPEC,;t t
29331 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
29332 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
29333 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
29334 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
29335 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
29336 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
29337 s,@THREADLIBS@,$THREADLIBS,;t t
29338 s,@THREADINCS@,$THREADINCS,;t t
29339 s,@THREADDEPS@,$THREADDEPS,;t t
29340 s,@THREADSPEC@,$THREADSPEC,;t t
29341 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
29342 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
29343 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
29344 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
29345 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
29346 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
29347 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
29348 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
29349 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
29350 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
29351 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
29352 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
29353 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
29354 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
29355 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
29356 s,@LIBICONV@,$LIBICONV,;t t
29357 s,@LTLIBICONV@,$LTLIBICONV,;t t
29358 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29359 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
29360 s,@GTK_LIBS@,$GTK_LIBS,;t t
29361 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
29362 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
29363 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
29364 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
29365 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
29366 s,@ZLIBS@,$ZLIBS,;t t
29367 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
29368 s,@ZINCS@,$ZINCS,;t t
29369 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
29370 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
29371 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
29372 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
29373 s,@IEEESPEC@,$IEEESPEC,;t t
29374 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
29375 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
29376 s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t
29377 s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t
29378 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
29379 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
29380 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
29381 s,@toolexecdir@,$toolexecdir,;t t
29382 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
29383 s,@toolexeclibdir@,$toolexeclibdir,;t t
29384 s,@GCJVERSION@,$GCJVERSION,;t t
29385 s,@dbexecdir@,$dbexecdir,;t t
29386 s,@gxx_include_dir@,$gxx_include_dir,;t t
29387 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
29388 s,@PERL@,$PERL,;t t
29389 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
29390 s,@ANONVERSCRIPT_TRUE@,$ANONVERSCRIPT_TRUE,;t t
29391 s,@ANONVERSCRIPT_FALSE@,$ANONVERSCRIPT_FALSE,;t t
29392 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
29393 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
29394 s,@here@,$here,;t t
29395 s,@LIBOBJS@,$LIBOBJS,;t t
29396 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29397 CEOF
29398
29399 _ACEOF
29400
29401   cat >>$CONFIG_STATUS <<\_ACEOF
29402   # Split the substitutions into bite-sized pieces for seds with
29403   # small command number limits, like on Digital OSF/1 and HP-UX.
29404   ac_max_sed_lines=48
29405   ac_sed_frag=1 # Number of current file.
29406   ac_beg=1 # First line for current file.
29407   ac_end=$ac_max_sed_lines # Line after last line for current file.
29408   ac_more_lines=:
29409   ac_sed_cmds=
29410   while $ac_more_lines; do
29411     if test $ac_beg -gt 1; then
29412       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29413     else
29414       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29415     fi
29416     if test ! -s $tmp/subs.frag; then
29417       ac_more_lines=false
29418     else
29419       # The purpose of the label and of the branching condition is to
29420       # speed up the sed processing (if there are no `@' at all, there
29421       # is no need to browse any of the substitutions).
29422       # These are the two extra sed commands mentioned above.
29423       (echo ':t
29424   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29425       if test -z "$ac_sed_cmds"; then
29426         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29427       else
29428         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29429       fi
29430       ac_sed_frag=`expr $ac_sed_frag + 1`
29431       ac_beg=$ac_end
29432       ac_end=`expr $ac_end + $ac_max_sed_lines`
29433     fi
29434   done
29435   if test -z "$ac_sed_cmds"; then
29436     ac_sed_cmds=cat
29437   fi
29438 fi # test -n "$CONFIG_FILES"
29439
29440 _ACEOF
29441 cat >>$CONFIG_STATUS <<\_ACEOF
29442 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29443   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29444   case $ac_file in
29445   - | *:- | *:-:* ) # input from stdin
29446         cat >$tmp/stdin
29447         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29448         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29449   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29450         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29451   * )   ac_file_in=$ac_file.in ;;
29452   esac
29453
29454   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29455   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29456 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29457          X"$ac_file" : 'X\(//\)[^/]' \| \
29458          X"$ac_file" : 'X\(//\)$' \| \
29459          X"$ac_file" : 'X\(/\)' \| \
29460          .     : '\(.\)' 2>/dev/null ||
29461 echo X"$ac_file" |
29462     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29463           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29464           /^X\(\/\/\)$/{ s//\1/; q; }
29465           /^X\(\/\).*/{ s//\1/; q; }
29466           s/.*/./; q'`
29467   { if $as_mkdir_p; then
29468     mkdir -p "$ac_dir"
29469   else
29470     as_dir="$ac_dir"
29471     as_dirs=
29472     while test ! -d "$as_dir"; do
29473       as_dirs="$as_dir $as_dirs"
29474       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29475 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29476          X"$as_dir" : 'X\(//\)[^/]' \| \
29477          X"$as_dir" : 'X\(//\)$' \| \
29478          X"$as_dir" : 'X\(/\)' \| \
29479          .     : '\(.\)' 2>/dev/null ||
29480 echo X"$as_dir" |
29481     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29482           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29483           /^X\(\/\/\)$/{ s//\1/; q; }
29484           /^X\(\/\).*/{ s//\1/; q; }
29485           s/.*/./; q'`
29486     done
29487     test ! -n "$as_dirs" || mkdir $as_dirs
29488   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29489 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29490    { (exit 1); exit 1; }; }; }
29491
29492   ac_builddir=.
29493
29494 if test "$ac_dir" != .; then
29495   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29496   # A "../" for each directory in $ac_dir_suffix.
29497   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29498 else
29499   ac_dir_suffix= ac_top_builddir=
29500 fi
29501
29502 case $srcdir in
29503   .)  # No --srcdir option.  We are building in place.
29504     ac_srcdir=.
29505     if test -z "$ac_top_builddir"; then
29506        ac_top_srcdir=.
29507     else
29508        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29509     fi ;;
29510   [\\/]* | ?:[\\/]* )  # Absolute path.
29511     ac_srcdir=$srcdir$ac_dir_suffix;
29512     ac_top_srcdir=$srcdir ;;
29513   *) # Relative path.
29514     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29515     ac_top_srcdir=$ac_top_builddir$srcdir ;;
29516 esac
29517
29518 # Do not use `cd foo && pwd` to compute absolute paths, because
29519 # the directories may not exist.
29520 case `pwd` in
29521 .) ac_abs_builddir="$ac_dir";;
29522 *)
29523   case "$ac_dir" in
29524   .) ac_abs_builddir=`pwd`;;
29525   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29526   *) ac_abs_builddir=`pwd`/"$ac_dir";;
29527   esac;;
29528 esac
29529 case $ac_abs_builddir in
29530 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29531 *)
29532   case ${ac_top_builddir}. in
29533   .) ac_abs_top_builddir=$ac_abs_builddir;;
29534   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29535   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29536   esac;;
29537 esac
29538 case $ac_abs_builddir in
29539 .) ac_abs_srcdir=$ac_srcdir;;
29540 *)
29541   case $ac_srcdir in
29542   .) ac_abs_srcdir=$ac_abs_builddir;;
29543   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29544   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29545   esac;;
29546 esac
29547 case $ac_abs_builddir in
29548 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29549 *)
29550   case $ac_top_srcdir in
29551   .) ac_abs_top_srcdir=$ac_abs_builddir;;
29552   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29553   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29554   esac;;
29555 esac
29556
29557
29558   case $INSTALL in
29559   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29560   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29561   esac
29562
29563   if test x"$ac_file" != x-; then
29564     { echo "$as_me:$LINENO: creating $ac_file" >&5
29565 echo "$as_me: creating $ac_file" >&6;}
29566     rm -f "$ac_file"
29567   fi
29568   # Let's still pretend it is `configure' which instantiates (i.e., don't
29569   # use $as_me), people would be surprised to read:
29570   #    /* config.h.  Generated by config.status.  */
29571   if test x"$ac_file" = x-; then
29572     configure_input=
29573   else
29574     configure_input="$ac_file.  "
29575   fi
29576   configure_input=$configure_input"Generated from `echo $ac_file_in |
29577                                      sed 's,.*/,,'` by configure."
29578
29579   # First look for the input files in the build tree, otherwise in the
29580   # src tree.
29581   ac_file_inputs=`IFS=:
29582     for f in $ac_file_in; do
29583       case $f in
29584       -) echo $tmp/stdin ;;
29585       [\\/$]*)
29586          # Absolute (can't be DOS-style, as IFS=:)
29587          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29588 echo "$as_me: error: cannot find input file: $f" >&2;}
29589    { (exit 1); exit 1; }; }
29590          echo "$f";;
29591       *) # Relative
29592          if test -f "$f"; then
29593            # Build tree
29594            echo "$f"
29595          elif test -f "$srcdir/$f"; then
29596            # Source tree
29597            echo "$srcdir/$f"
29598          else
29599            # /dev/null tree
29600            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29601 echo "$as_me: error: cannot find input file: $f" >&2;}
29602    { (exit 1); exit 1; }; }
29603          fi;;
29604       esac
29605     done` || { (exit 1); exit 1; }
29606 _ACEOF
29607 cat >>$CONFIG_STATUS <<_ACEOF
29608   sed "$ac_vpsub
29609 $extrasub
29610 _ACEOF
29611 cat >>$CONFIG_STATUS <<\_ACEOF
29612 :t
29613 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29614 s,@configure_input@,$configure_input,;t t
29615 s,@srcdir@,$ac_srcdir,;t t
29616 s,@abs_srcdir@,$ac_abs_srcdir,;t t
29617 s,@top_srcdir@,$ac_top_srcdir,;t t
29618 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29619 s,@builddir@,$ac_builddir,;t t
29620 s,@abs_builddir@,$ac_abs_builddir,;t t
29621 s,@top_builddir@,$ac_top_builddir,;t t
29622 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29623 s,@INSTALL@,$ac_INSTALL,;t t
29624 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29625   rm -f $tmp/stdin
29626   if test x"$ac_file" != x-; then
29627     mv $tmp/out $ac_file
29628   else
29629     cat $tmp/out
29630     rm -f $tmp/out
29631   fi
29632
29633   # Run the commands associated with the file.
29634   case $ac_file in
29635     scripts/jar ) chmod +x scripts/jar ;;
29636   esac
29637 done
29638 _ACEOF
29639 cat >>$CONFIG_STATUS <<\_ACEOF
29640
29641 #
29642 # CONFIG_HEADER section.
29643 #
29644
29645 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29646 # NAME is the cpp macro being defined and VALUE is the value it is being given.
29647 #
29648 # ac_d sets the value in "#define NAME VALUE" lines.
29649 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
29650 ac_dB='[         ].*$,\1#\2'
29651 ac_dC=' '
29652 ac_dD=',;t'
29653 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29654 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
29655 ac_uB='$,\1#\2define\3'
29656 ac_uC=' '
29657 ac_uD=',;t'
29658
29659 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29660   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29661   case $ac_file in
29662   - | *:- | *:-:* ) # input from stdin
29663         cat >$tmp/stdin
29664         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29665         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29666   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29667         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29668   * )   ac_file_in=$ac_file.in ;;
29669   esac
29670
29671   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
29672 echo "$as_me: creating $ac_file" >&6;}
29673
29674   # First look for the input files in the build tree, otherwise in the
29675   # src tree.
29676   ac_file_inputs=`IFS=:
29677     for f in $ac_file_in; do
29678       case $f in
29679       -) echo $tmp/stdin ;;
29680       [\\/$]*)
29681          # Absolute (can't be DOS-style, as IFS=:)
29682          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29683 echo "$as_me: error: cannot find input file: $f" >&2;}
29684    { (exit 1); exit 1; }; }
29685          # Do quote $f, to prevent DOS paths from being IFS'd.
29686          echo "$f";;
29687       *) # Relative
29688          if test -f "$f"; then
29689            # Build tree
29690            echo "$f"
29691          elif test -f "$srcdir/$f"; then
29692            # Source tree
29693            echo "$srcdir/$f"
29694          else
29695            # /dev/null tree
29696            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29697 echo "$as_me: error: cannot find input file: $f" >&2;}
29698    { (exit 1); exit 1; }; }
29699          fi;;
29700       esac
29701     done` || { (exit 1); exit 1; }
29702   # Remove the trailing spaces.
29703   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
29704
29705 _ACEOF
29706
29707 # Transform confdefs.h into two sed scripts, `conftest.defines' and
29708 # `conftest.undefs', that substitutes the proper values into
29709 # config.h.in to produce config.h.  The first handles `#define'
29710 # templates, and the second `#undef' templates.
29711 # And first: Protect against being on the right side of a sed subst in
29712 # config.status.  Protect against being in an unquoted here document
29713 # in config.status.
29714 rm -f conftest.defines conftest.undefs
29715 # Using a here document instead of a string reduces the quoting nightmare.
29716 # Putting comments in sed scripts is not portable.
29717 #
29718 # `end' is used to avoid that the second main sed command (meant for
29719 # 0-ary CPP macros) applies to n-ary macro definitions.
29720 # See the Autoconf documentation for `clear'.
29721 cat >confdef2sed.sed <<\_ACEOF
29722 s/[\\&,]/\\&/g
29723 s,[\\$`],\\&,g
29724 t clear
29725 : clear
29726 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
29727 t end
29728 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
29729 : end
29730 _ACEOF
29731 # If some macros were called several times there might be several times
29732 # the same #defines, which is useless.  Nevertheless, we may not want to
29733 # sort them, since we want the *last* AC-DEFINE to be honored.
29734 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
29735 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
29736 rm -f confdef2sed.sed
29737
29738 # This sed command replaces #undef with comments.  This is necessary, for
29739 # example, in the case of _POSIX_SOURCE, which is predefined and required
29740 # on some systems where configure will not decide to define it.
29741 cat >>conftest.undefs <<\_ACEOF
29742 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
29743 _ACEOF
29744
29745 # Break up conftest.defines because some shells have a limit on the size
29746 # of here documents, and old seds have small limits too (100 cmds).
29747 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
29748 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
29749 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
29750 echo '  :' >>$CONFIG_STATUS
29751 rm -f conftest.tail
29752 while grep . conftest.defines >/dev/null
29753 do
29754   # Write a limited-size here document to $tmp/defines.sed.
29755   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
29756   # Speed up: don't consider the non `#define' lines.
29757   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
29758   # Work around the forget-to-reset-the-flag bug.
29759   echo 't clr' >>$CONFIG_STATUS
29760   echo ': clr' >>$CONFIG_STATUS
29761   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
29762   echo 'CEOF
29763   sed -f $tmp/defines.sed $tmp/in >$tmp/out
29764   rm -f $tmp/in
29765   mv $tmp/out $tmp/in
29766 ' >>$CONFIG_STATUS
29767   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
29768   rm -f conftest.defines
29769   mv conftest.tail conftest.defines
29770 done
29771 rm -f conftest.defines
29772 echo '  fi # grep' >>$CONFIG_STATUS
29773 echo >>$CONFIG_STATUS
29774
29775 # Break up conftest.undefs because some shells have a limit on the size
29776 # of here documents, and old seds have small limits too (100 cmds).
29777 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
29778 rm -f conftest.tail
29779 while grep . conftest.undefs >/dev/null
29780 do
29781   # Write a limited-size here document to $tmp/undefs.sed.
29782   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
29783   # Speed up: don't consider the non `#undef'
29784   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
29785   # Work around the forget-to-reset-the-flag bug.
29786   echo 't clr' >>$CONFIG_STATUS
29787   echo ': clr' >>$CONFIG_STATUS
29788   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
29789   echo 'CEOF
29790   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
29791   rm -f $tmp/in
29792   mv $tmp/out $tmp/in
29793 ' >>$CONFIG_STATUS
29794   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
29795   rm -f conftest.undefs
29796   mv conftest.tail conftest.undefs
29797 done
29798 rm -f conftest.undefs
29799
29800 cat >>$CONFIG_STATUS <<\_ACEOF
29801   # Let's still pretend it is `configure' which instantiates (i.e., don't
29802   # use $as_me), people would be surprised to read:
29803   #    /* config.h.  Generated by config.status.  */
29804   if test x"$ac_file" = x-; then
29805     echo "/* Generated by configure.  */" >$tmp/config.h
29806   else
29807     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
29808   fi
29809   cat $tmp/in >>$tmp/config.h
29810   rm -f $tmp/in
29811   if test x"$ac_file" != x-; then
29812     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
29813       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29814 echo "$as_me: $ac_file is unchanged" >&6;}
29815     else
29816       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29817 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29818          X"$ac_file" : 'X\(//\)[^/]' \| \
29819          X"$ac_file" : 'X\(//\)$' \| \
29820          X"$ac_file" : 'X\(/\)' \| \
29821          .     : '\(.\)' 2>/dev/null ||
29822 echo X"$ac_file" |
29823     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29824           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29825           /^X\(\/\/\)$/{ s//\1/; q; }
29826           /^X\(\/\).*/{ s//\1/; q; }
29827           s/.*/./; q'`
29828       { if $as_mkdir_p; then
29829     mkdir -p "$ac_dir"
29830   else
29831     as_dir="$ac_dir"
29832     as_dirs=
29833     while test ! -d "$as_dir"; do
29834       as_dirs="$as_dir $as_dirs"
29835       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29836 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29837          X"$as_dir" : 'X\(//\)[^/]' \| \
29838          X"$as_dir" : 'X\(//\)$' \| \
29839          X"$as_dir" : 'X\(/\)' \| \
29840          .     : '\(.\)' 2>/dev/null ||
29841 echo X"$as_dir" |
29842     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29843           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29844           /^X\(\/\/\)$/{ s//\1/; q; }
29845           /^X\(\/\).*/{ s//\1/; q; }
29846           s/.*/./; q'`
29847     done
29848     test ! -n "$as_dirs" || mkdir $as_dirs
29849   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29850 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29851    { (exit 1); exit 1; }; }; }
29852
29853       rm -f $ac_file
29854       mv $tmp/config.h $ac_file
29855     fi
29856   else
29857     cat $tmp/config.h
29858     rm -f $tmp/config.h
29859   fi
29860 # Compute $ac_file's index in $config_headers.
29861 _am_stamp_count=1
29862 for _am_header in $config_headers :; do
29863   case $_am_header in
29864     $ac_file | $ac_file:* )
29865       break ;;
29866     * )
29867       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29868   esac
29869 done
29870 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
29871 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29872          X$ac_file : 'X\(//\)[^/]' \| \
29873          X$ac_file : 'X\(//\)$' \| \
29874          X$ac_file : 'X\(/\)' \| \
29875          .     : '\(.\)' 2>/dev/null ||
29876 echo X$ac_file |
29877     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29878           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29879           /^X\(\/\/\)$/{ s//\1/; q; }
29880           /^X\(\/\).*/{ s//\1/; q; }
29881           s/.*/./; q'`/stamp-h$_am_stamp_count
29882 done
29883 _ACEOF
29884 cat >>$CONFIG_STATUS <<\_ACEOF
29885
29886 #
29887 # CONFIG_LINKS section.
29888 #
29889
29890 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
29891   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29892   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29893
29894   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
29895 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
29896
29897   if test ! -r $srcdir/$ac_source; then
29898     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
29899 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
29900    { (exit 1); exit 1; }; }
29901   fi
29902   rm -f $ac_dest
29903
29904   # Make relative symlinks.
29905   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
29906 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29907          X"$ac_dest" : 'X\(//\)[^/]' \| \
29908          X"$ac_dest" : 'X\(//\)$' \| \
29909          X"$ac_dest" : 'X\(/\)' \| \
29910          .     : '\(.\)' 2>/dev/null ||
29911 echo X"$ac_dest" |
29912     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29913           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29914           /^X\(\/\/\)$/{ s//\1/; q; }
29915           /^X\(\/\).*/{ s//\1/; q; }
29916           s/.*/./; q'`
29917   { if $as_mkdir_p; then
29918     mkdir -p "$ac_dest_dir"
29919   else
29920     as_dir="$ac_dest_dir"
29921     as_dirs=
29922     while test ! -d "$as_dir"; do
29923       as_dirs="$as_dir $as_dirs"
29924       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29925 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29926          X"$as_dir" : 'X\(//\)[^/]' \| \
29927          X"$as_dir" : 'X\(//\)$' \| \
29928          X"$as_dir" : 'X\(/\)' \| \
29929          .     : '\(.\)' 2>/dev/null ||
29930 echo X"$as_dir" |
29931     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29932           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29933           /^X\(\/\/\)$/{ s//\1/; q; }
29934           /^X\(\/\).*/{ s//\1/; q; }
29935           s/.*/./; q'`
29936     done
29937     test ! -n "$as_dirs" || mkdir $as_dirs
29938   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
29939 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
29940    { (exit 1); exit 1; }; }; }
29941
29942   ac_builddir=.
29943
29944 if test "$ac_dest_dir" != .; then
29945   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
29946   # A "../" for each directory in $ac_dir_suffix.
29947   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29948 else
29949   ac_dir_suffix= ac_top_builddir=
29950 fi
29951
29952 case $srcdir in
29953   .)  # No --srcdir option.  We are building in place.
29954     ac_srcdir=.
29955     if test -z "$ac_top_builddir"; then
29956        ac_top_srcdir=.
29957     else
29958        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29959     fi ;;
29960   [\\/]* | ?:[\\/]* )  # Absolute path.
29961     ac_srcdir=$srcdir$ac_dir_suffix;
29962     ac_top_srcdir=$srcdir ;;
29963   *) # Relative path.
29964     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29965     ac_top_srcdir=$ac_top_builddir$srcdir ;;
29966 esac
29967
29968 # Do not use `cd foo && pwd` to compute absolute paths, because
29969 # the directories may not exist.
29970 case `pwd` in
29971 .) ac_abs_builddir="$ac_dest_dir";;
29972 *)
29973   case "$ac_dest_dir" in
29974   .) ac_abs_builddir=`pwd`;;
29975   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
29976   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
29977   esac;;
29978 esac
29979 case $ac_abs_builddir in
29980 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29981 *)
29982   case ${ac_top_builddir}. in
29983   .) ac_abs_top_builddir=$ac_abs_builddir;;
29984   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29985   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29986   esac;;
29987 esac
29988 case $ac_abs_builddir in
29989 .) ac_abs_srcdir=$ac_srcdir;;
29990 *)
29991   case $ac_srcdir in
29992   .) ac_abs_srcdir=$ac_abs_builddir;;
29993   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29994   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29995   esac;;
29996 esac
29997 case $ac_abs_builddir in
29998 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29999 *)
30000   case $ac_top_srcdir in
30001   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30002   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30003   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30004   esac;;
30005 esac
30006
30007
30008   case $srcdir in
30009   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30010       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30011   esac
30012
30013   # Try a symlink, then a hard link, then a copy.
30014   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30015     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30016     cp -p $srcdir/$ac_source $ac_dest ||
30017     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30018 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30019    { (exit 1); exit 1; }; }
30020 done
30021 _ACEOF
30022 cat >>$CONFIG_STATUS <<\_ACEOF
30023
30024 #
30025 # CONFIG_COMMANDS section.
30026 #
30027 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30028   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30029   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30030   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30031 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30032          X"$ac_dest" : 'X\(//\)[^/]' \| \
30033          X"$ac_dest" : 'X\(//\)$' \| \
30034          X"$ac_dest" : 'X\(/\)' \| \
30035          .     : '\(.\)' 2>/dev/null ||
30036 echo X"$ac_dest" |
30037     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30038           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30039           /^X\(\/\/\)$/{ s//\1/; q; }
30040           /^X\(\/\).*/{ s//\1/; q; }
30041           s/.*/./; q'`
30042   { if $as_mkdir_p; then
30043     mkdir -p "$ac_dir"
30044   else
30045     as_dir="$ac_dir"
30046     as_dirs=
30047     while test ! -d "$as_dir"; do
30048       as_dirs="$as_dir $as_dirs"
30049       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30050 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30051          X"$as_dir" : 'X\(//\)[^/]' \| \
30052          X"$as_dir" : 'X\(//\)$' \| \
30053          X"$as_dir" : 'X\(/\)' \| \
30054          .     : '\(.\)' 2>/dev/null ||
30055 echo X"$as_dir" |
30056     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30057           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30058           /^X\(\/\/\)$/{ s//\1/; q; }
30059           /^X\(\/\).*/{ s//\1/; q; }
30060           s/.*/./; q'`
30061     done
30062     test ! -n "$as_dirs" || mkdir $as_dirs
30063   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30064 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30065    { (exit 1); exit 1; }; }; }
30066
30067   ac_builddir=.
30068
30069 if test "$ac_dir" != .; then
30070   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30071   # A "../" for each directory in $ac_dir_suffix.
30072   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30073 else
30074   ac_dir_suffix= ac_top_builddir=
30075 fi
30076
30077 case $srcdir in
30078   .)  # No --srcdir option.  We are building in place.
30079     ac_srcdir=.
30080     if test -z "$ac_top_builddir"; then
30081        ac_top_srcdir=.
30082     else
30083        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30084     fi ;;
30085   [\\/]* | ?:[\\/]* )  # Absolute path.
30086     ac_srcdir=$srcdir$ac_dir_suffix;
30087     ac_top_srcdir=$srcdir ;;
30088   *) # Relative path.
30089     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30090     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30091 esac
30092
30093 # Do not use `cd foo && pwd` to compute absolute paths, because
30094 # the directories may not exist.
30095 case `pwd` in
30096 .) ac_abs_builddir="$ac_dir";;
30097 *)
30098   case "$ac_dir" in
30099   .) ac_abs_builddir=`pwd`;;
30100   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30101   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30102   esac;;
30103 esac
30104 case $ac_abs_builddir in
30105 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30106 *)
30107   case ${ac_top_builddir}. in
30108   .) ac_abs_top_builddir=$ac_abs_builddir;;
30109   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30110   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30111   esac;;
30112 esac
30113 case $ac_abs_builddir in
30114 .) ac_abs_srcdir=$ac_srcdir;;
30115 *)
30116   case $ac_srcdir in
30117   .) ac_abs_srcdir=$ac_abs_builddir;;
30118   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30119   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30120   esac;;
30121 esac
30122 case $ac_abs_builddir in
30123 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30124 *)
30125   case $ac_top_srcdir in
30126   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30127   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30128   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30129   esac;;
30130 esac
30131
30132
30133   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30134 echo "$as_me: executing $ac_dest commands" >&6;}
30135   case $ac_dest in
30136     default-1 )
30137 # Only add multilib support code if we just rebuilt the top-level
30138 # Makefile.
30139 case " $CONFIG_FILES " in
30140  *" Makefile "*)
30141    ac_file=Makefile . ${multi_basedir}/config-ml.in
30142    ;;
30143 esac ;;
30144     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30145   # Strip MF so we end up with the name of the file.
30146   mf=`echo "$mf" | sed -e 's/:.*$//'`
30147   # Check whether this is an Automake generated Makefile or not.
30148   # We used to match only the files named `Makefile.in', but
30149   # some people rename them; so instead we look at the file content.
30150   # Grep'ing the first line is not enough: some people post-process
30151   # each Makefile.in and add a new line on top of each file to say so.
30152   # So let's grep whole file.
30153   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30154     dirpart=`(dirname "$mf") 2>/dev/null ||
30155 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30156          X"$mf" : 'X\(//\)[^/]' \| \
30157          X"$mf" : 'X\(//\)$' \| \
30158          X"$mf" : 'X\(/\)' \| \
30159          .     : '\(.\)' 2>/dev/null ||
30160 echo X"$mf" |
30161     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30162           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30163           /^X\(\/\/\)$/{ s//\1/; q; }
30164           /^X\(\/\).*/{ s//\1/; q; }
30165           s/.*/./; q'`
30166   else
30167     continue
30168   fi
30169   # Extract the definition of DEPDIR, am__include, and am__quote
30170   # from the Makefile without running `make'.
30171   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30172   test -z "$DEPDIR" && continue
30173   am__include=`sed -n 's/^am__include = //p' < "$mf"`
30174   test -z "am__include" && continue
30175   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30176   # When using ansi2knr, U may be empty or an underscore; expand it
30177   U=`sed -n 's/^U = //p' < "$mf"`
30178   # Find all dependency output files, they are included files with
30179   # $(DEPDIR) in their names.  We invoke sed twice because it is the
30180   # simplest approach to changing $(DEPDIR) to its actual value in the
30181   # expansion.
30182   for file in `sed -n "
30183     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30184        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30185     # Make sure the directory exists.
30186     test -f "$dirpart/$file" && continue
30187     fdir=`(dirname "$file") 2>/dev/null ||
30188 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30189          X"$file" : 'X\(//\)[^/]' \| \
30190          X"$file" : 'X\(//\)$' \| \
30191          X"$file" : 'X\(/\)' \| \
30192          .     : '\(.\)' 2>/dev/null ||
30193 echo X"$file" |
30194     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30195           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30196           /^X\(\/\/\)$/{ s//\1/; q; }
30197           /^X\(\/\).*/{ s//\1/; q; }
30198           s/.*/./; q'`
30199     { if $as_mkdir_p; then
30200     mkdir -p $dirpart/$fdir
30201   else
30202     as_dir=$dirpart/$fdir
30203     as_dirs=
30204     while test ! -d "$as_dir"; do
30205       as_dirs="$as_dir $as_dirs"
30206       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30207 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30208          X"$as_dir" : 'X\(//\)[^/]' \| \
30209          X"$as_dir" : 'X\(//\)$' \| \
30210          X"$as_dir" : 'X\(/\)' \| \
30211          .     : '\(.\)' 2>/dev/null ||
30212 echo X"$as_dir" |
30213     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30214           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30215           /^X\(\/\/\)$/{ s//\1/; q; }
30216           /^X\(\/\).*/{ s//\1/; q; }
30217           s/.*/./; q'`
30218     done
30219     test ! -n "$as_dirs" || mkdir $as_dirs
30220   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30221 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30222    { (exit 1); exit 1; }; }; }
30223
30224     # echo "creating $dirpart/$file"
30225     echo '# dummy' > "$dirpart/$file"
30226   done
30227 done
30228  ;;
30229     libtool )
30230
30231     # See if we are running on zsh, and set the options which allow our
30232     # commands through without removal of \ escapes.
30233     if test -n "${ZSH_VERSION+set}" ; then
30234       setopt NO_GLOB_SUBST
30235     fi
30236
30237     cfgfile="${ofile}T"
30238     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30239     $RM "$cfgfile"
30240
30241     cat <<_LT_EOF >> "$cfgfile"
30242 #! $SHELL
30243
30244 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30245 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
30246 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30247 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30248 #
30249 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30250 # 2006, 2007 Free Software Foundation, Inc.
30251 #
30252 # This file is part of GNU Libtool:
30253 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
30254 #
30255 # This program is free software; you can redistribute it and/or modify
30256 # it under the terms of the GNU General Public License as published by
30257 # the Free Software Foundation; either version 2 of the License, or
30258 # (at your option) any later version.
30259 #
30260 # This program is distributed in the hope that it will be useful, but
30261 # WITHOUT ANY WARRANTY; without even the implied warranty of
30262 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
30263 # General Public License for more details.
30264 #
30265 # You should have received a copy of the GNU General Public License
30266 # along with this program; if not, a copy can be downloaded from
30267 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
30268 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
30269 # MA 02110-1301, USA.
30270 #
30271 # As a special exception to the GNU General Public License, if you
30272 # distribute this file as part of a program that contains a
30273 # configuration script generated by Autoconf, you may include it under
30274 # the same distribution terms that you use for the rest of that program.
30275
30276
30277 # The names of the tagged configurations supported by this script.
30278 available_tags="CXX GCJ "
30279
30280 # ### BEGIN LIBTOOL CONFIG
30281
30282 # Which release of libtool.m4 was used?
30283 macro_version=$macro_version
30284 macro_revision=$macro_revision
30285
30286 # Whether or not to build shared libraries.
30287 build_libtool_libs=$enable_shared
30288
30289 # Whether or not to build static libraries.
30290 build_old_libs=$enable_static
30291
30292 # What type of objects to build.
30293 pic_mode=$pic_mode
30294
30295 # Whether or not to optimize for fast installation.
30296 fast_install=$enable_fast_install
30297
30298 # The host system.
30299 host_alias=$host_alias
30300 host=$host
30301 host_os=$host_os
30302
30303 # The build system.
30304 build_alias=$build_alias
30305 build=$build
30306 build_os=$build_os
30307
30308 # A sed program that does not truncate output.
30309 SED=$lt_SED
30310
30311 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30312 Xsed="\$SED -e 1s/^X//"
30313
30314 # A grep program that handles long lines.
30315 GREP=$lt_GREP
30316
30317 # An ERE matcher.
30318 EGREP=$lt_EGREP
30319
30320 # A literal string matcher.
30321 FGREP=$lt_FGREP
30322
30323 # A BSD- or MS-compatible name lister.
30324 NM=$lt_NM
30325
30326 # Whether we need soft or hard links.
30327 LN_S=$lt_LN_S
30328
30329 # What is the maximum length of a command?
30330 max_cmd_len=$max_cmd_len
30331
30332 # Object file suffix (normally "o").
30333 objext=$ac_objext
30334
30335 # Executable file suffix (normally "").
30336 exeext=$exeext
30337
30338 # whether the shell understands "unset".
30339 lt_unset=$lt_unset
30340
30341 # turn spaces into newlines.
30342 SP2NL=$lt_lt_SP2NL
30343
30344 # turn newlines into spaces.
30345 NL2SP=$lt_lt_NL2SP
30346
30347 # How to create reloadable object files.
30348 reload_flag=$lt_reload_flag
30349 reload_cmds=$lt_reload_cmds
30350
30351 # Method to check whether dependent libraries are shared objects.
30352 deplibs_check_method=$lt_deplibs_check_method
30353
30354 # Command to use when deplibs_check_method == "file_magic".
30355 file_magic_cmd=$lt_file_magic_cmd
30356
30357 # The archiver.
30358 AR=$lt_AR
30359 AR_FLAGS=$lt_AR_FLAGS
30360
30361 # A symbol stripping program.
30362 STRIP=$lt_STRIP
30363
30364 # Commands used to install an old-style archive.
30365 RANLIB=$lt_RANLIB
30366 old_postinstall_cmds=$lt_old_postinstall_cmds
30367 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30368
30369 # A C compiler.
30370 LTCC=$lt_CC
30371
30372 # LTCC compiler flags.
30373 LTCFLAGS=$lt_CFLAGS
30374
30375 # Take the output of nm and produce a listing of raw symbols and C names.
30376 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30377
30378 # Transform the output of nm in a proper C declaration.
30379 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30380
30381 # Transform the output of nm in a C name address pair.
30382 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30383
30384 # The name of the directory that contains temporary libtool files.
30385 objdir=$objdir
30386
30387 # Shell to use when invoking shell scripts.
30388 SHELL=$lt_SHELL
30389
30390 # An echo program that does not interpret backslashes.
30391 ECHO=$lt_ECHO
30392
30393 # Used to examine libraries when file_magic_cmd begins with "file".
30394 MAGIC_CMD=$MAGIC_CMD
30395
30396 # Must we lock files when doing compilation?
30397 need_locks=$lt_need_locks
30398
30399 # Old archive suffix (normally "a").
30400 libext=$libext
30401
30402 # Shared library suffix (normally ".so").
30403 shrext_cmds=$lt_shrext_cmds
30404
30405 # The commands to extract the exported symbol list from a shared archive.
30406 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30407
30408 # Variables whose values should be saved in libtool wrapper scripts and
30409 # restored at link time.
30410 variables_saved_for_relink=$lt_variables_saved_for_relink
30411
30412 # Do we need the "lib" prefix for modules?
30413 need_lib_prefix=$need_lib_prefix
30414
30415 # Do we need a version for libraries?
30416 need_version=$need_version
30417
30418 # Library versioning type.
30419 version_type=$version_type
30420
30421 # Shared library runtime path variable.
30422 runpath_var=$runpath_var
30423
30424 # Shared library path variable.
30425 shlibpath_var=$shlibpath_var
30426
30427 # Is shlibpath searched before the hard-coded library search path?
30428 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30429
30430 # Format of library name prefix.
30431 libname_spec=$lt_libname_spec
30432
30433 # List of archive names.  First name is the real one, the rest are links.
30434 # The last name is the one that the linker finds with -lNAME
30435 library_names_spec=$lt_library_names_spec
30436
30437 # The coded name of the library, if different from the real name.
30438 soname_spec=$lt_soname_spec
30439
30440 # Command to use after installation of a shared archive.
30441 postinstall_cmds=$lt_postinstall_cmds
30442
30443 # Command to use after uninstallation of a shared archive.
30444 postuninstall_cmds=$lt_postuninstall_cmds
30445
30446 # Commands used to finish a libtool library installation in a directory.
30447 finish_cmds=$lt_finish_cmds
30448
30449 # As "finish_cmds", except a single script fragment to be evaled but
30450 # not shown.
30451 finish_eval=$lt_finish_eval
30452
30453 # Whether we should hardcode library paths into libraries.
30454 hardcode_into_libs=$hardcode_into_libs
30455
30456 # Compile-time system search path for libraries.
30457 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30458
30459 # Run-time system search path for libraries.
30460 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30461
30462 # Whether dlopen is supported.
30463 dlopen_support=$enable_dlopen
30464
30465 # Whether dlopen of programs is supported.
30466 dlopen_self=$enable_dlopen_self
30467
30468 # Whether dlopen of statically linked programs is supported.
30469 dlopen_self_static=$enable_dlopen_self_static
30470
30471 # Commands to strip libraries.
30472 old_striplib=$lt_old_striplib
30473 striplib=$lt_striplib
30474
30475
30476 # The linker used to build libraries.
30477 LD=$lt_LD
30478
30479 # Commands used to build an old-style archive.
30480 old_archive_cmds=$lt_old_archive_cmds
30481
30482 # A language specific compiler.
30483 CC=$lt_compiler
30484
30485 # Is the compiler the GNU compiler?
30486 with_gcc=$GCC
30487
30488 # Compiler flag to turn off builtin functions.
30489 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30490
30491 # How to pass a linker flag through the compiler.
30492 wl=$lt_lt_prog_compiler_wl
30493
30494 # Additional compiler flags for building library objects.
30495 pic_flag=$lt_lt_prog_compiler_pic
30496
30497 # Compiler flag to prevent dynamic linking.
30498 link_static_flag=$lt_lt_prog_compiler_static
30499
30500 # Does compiler simultaneously support -c and -o options?
30501 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30502
30503 # Whether or not to add -lc for building shared libraries.
30504 build_libtool_need_lc=$archive_cmds_need_lc
30505
30506 # Whether or not to disallow shared libs when runtime libs are static.
30507 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30508
30509 # Compiler flag to allow reflexive dlopens.
30510 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30511
30512 # Compiler flag to generate shared objects directly from archives.
30513 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30514
30515 # Whether the compiler copes with passing no objects directly.
30516 compiler_needs_object=$lt_compiler_needs_object
30517
30518 # Create an old-style archive from a shared archive.
30519 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30520
30521 # Create a temporary old-style archive to link instead of a shared archive.
30522 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30523
30524 # Commands used to build a shared archive.
30525 archive_cmds=$lt_archive_cmds
30526 archive_expsym_cmds=$lt_archive_expsym_cmds
30527
30528 # Commands used to build a loadable module if different from building
30529 # a shared archive.
30530 module_cmds=$lt_module_cmds
30531 module_expsym_cmds=$lt_module_expsym_cmds
30532
30533 # Whether we are building with GNU ld or not.
30534 with_gnu_ld=$lt_with_gnu_ld
30535
30536 # Flag that allows shared libraries with undefined symbols to be built.
30537 allow_undefined_flag=$lt_allow_undefined_flag
30538
30539 # Flag that enforces no undefined symbols.
30540 no_undefined_flag=$lt_no_undefined_flag
30541
30542 # Flag to hardcode \$libdir into a binary during linking.
30543 # This must work even if \$libdir does not exist
30544 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30545
30546 # If ld is used when linking, flag to hardcode \$libdir into a binary
30547 # during linking.  This must work even if \$libdir does not exist.
30548 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
30549
30550 # Whether we need a single "-rpath" flag with a separated argument.
30551 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30552
30553 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30554 # DIR into the resulting binary.
30555 hardcode_direct=$hardcode_direct
30556
30557 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30558 # DIR into the resulting binary and the resulting library dependency is
30559 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30560 # library is relocated.
30561 hardcode_direct_absolute=$hardcode_direct_absolute
30562
30563 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30564 # into the resulting binary.
30565 hardcode_minus_L=$hardcode_minus_L
30566
30567 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30568 # into the resulting binary.
30569 hardcode_shlibpath_var=$hardcode_shlibpath_var
30570
30571 # Set to "yes" if building a shared library automatically hardcodes DIR
30572 # into the library and all subsequent libraries and executables linked
30573 # against it.
30574 hardcode_automatic=$hardcode_automatic
30575
30576 # Set to yes if linker adds runtime paths of dependent libraries
30577 # to runtime path list.
30578 inherit_rpath=$inherit_rpath
30579
30580 # Whether libtool must link a program against all its dependency libraries.
30581 link_all_deplibs=$link_all_deplibs
30582
30583 # Fix the shell variable \$srcfile for the compiler.
30584 fix_srcfile_path=$lt_fix_srcfile_path
30585
30586 # Set to "yes" if exported symbols are required.
30587 always_export_symbols=$always_export_symbols
30588
30589 # The commands to list exported symbols.
30590 export_symbols_cmds=$lt_export_symbols_cmds
30591
30592 # Symbols that should not be listed in the preloaded symbols.
30593 exclude_expsyms=$lt_exclude_expsyms
30594
30595 # Symbols that must always be exported.
30596 include_expsyms=$lt_include_expsyms
30597
30598 # Commands necessary for linking programs (against libraries) with templates.
30599 prelink_cmds=$lt_prelink_cmds
30600
30601 # Specify filename containing input files.
30602 file_list_spec=$lt_file_list_spec
30603
30604 # How to hardcode a shared library path into an executable.
30605 hardcode_action=$hardcode_action
30606
30607 # Dependencies to place before and after the objects being linked to
30608 # create a shared library.
30609 predep_objects=$lt_predep_objects
30610 postdep_objects=$lt_postdep_objects
30611 predeps=$lt_predeps
30612 postdeps=$lt_postdeps
30613
30614 # The library search path used internally by the compiler when linking
30615 # a shared library.
30616 compiler_lib_search_path=$lt_compiler_lib_search_path
30617
30618 # ### END LIBTOOL CONFIG
30619
30620 _LT_EOF
30621
30622   case $host_os in
30623   aix3*)
30624     cat <<\_LT_EOF >> "$cfgfile"
30625 # AIX sometimes has problems with the GCC collect2 program.  For some
30626 # reason, if we set the COLLECT_NAMES environment variable, the problems
30627 # vanish in a puff of smoke.
30628 if test "X${COLLECT_NAMES+set}" != Xset; then
30629   COLLECT_NAMES=
30630   export COLLECT_NAMES
30631 fi
30632 _LT_EOF
30633     ;;
30634   esac
30635
30636
30637 ltmain="$ac_aux_dir/ltmain.sh"
30638
30639
30640   # We use sed instead of cat because bash on DJGPP gets confused if
30641   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
30642   # text mode, it properly converts lines to CR/LF.  This bash problem
30643   # is reportedly fixed, but why not run on old versions too?
30644   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
30645     || (rm -f "$cfgfile"; exit 1)
30646
30647   case $xsi_shell in
30648   yes)
30649     cat << \_LT_EOF >> "$cfgfile"
30650 # func_dirname file append nondir_replacement
30651 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
30652 # otherwise set result to NONDIR_REPLACEMENT.
30653 func_dirname ()
30654 {
30655   case ${1} in
30656     */*) func_dirname_result="${1%/*}${2}" ;;
30657     *  ) func_dirname_result="${3}" ;;
30658   esac
30659 }
30660
30661 # func_basename file
30662 func_basename ()
30663 {
30664   func_basename_result="${1##*/}"
30665 }
30666
30667 # func_stripname prefix suffix name
30668 # strip PREFIX and SUFFIX off of NAME.
30669 # PREFIX and SUFFIX must not contain globbing or regex special
30670 # characters, hashes, percent signs, but SUFFIX may contain a leading
30671 # dot (in which case that matches only a dot).
30672 func_stripname ()
30673 {
30674   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
30675   # positional parameters, so assign one to ordinary parameter first.
30676   func_stripname_result=${3}
30677   func_stripname_result=${func_stripname_result#"${1}"}
30678   func_stripname_result=${func_stripname_result%"${2}"}
30679 }
30680
30681 # func_opt_split
30682 func_opt_split ()
30683 {
30684   func_opt_split_opt=${1%%=*}
30685   func_opt_split_arg=${1#*=}
30686 }
30687
30688 # func_lo2o object
30689 func_lo2o ()
30690 {
30691   case ${1} in
30692     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
30693     *)    func_lo2o_result=${1} ;;
30694   esac
30695 }
30696 _LT_EOF
30697     ;;
30698   *) # Bourne compatible functions.
30699     cat << \_LT_EOF >> "$cfgfile"
30700 # func_dirname file append nondir_replacement
30701 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
30702 # otherwise set result to NONDIR_REPLACEMENT.
30703 func_dirname ()
30704 {
30705   # Extract subdirectory from the argument.
30706   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
30707   if test "X$func_dirname_result" = "X${1}"; then
30708     func_dirname_result="${3}"
30709   else
30710     func_dirname_result="$func_dirname_result${2}"
30711   fi
30712 }
30713
30714 # func_basename file
30715 func_basename ()
30716 {
30717   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
30718 }
30719
30720 # func_stripname prefix suffix name
30721 # strip PREFIX and SUFFIX off of NAME.
30722 # PREFIX and SUFFIX must not contain globbing or regex special
30723 # characters, hashes, percent signs, but SUFFIX may contain a leading
30724 # dot (in which case that matches only a dot).
30725 # func_strip_suffix prefix name
30726 func_stripname ()
30727 {
30728   case ${2} in
30729     .*) func_stripname_result=`$ECHO "X${3}" \
30730            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
30731     *)  func_stripname_result=`$ECHO "X${3}" \
30732            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
30733   esac
30734 }
30735
30736 # sed scripts:
30737 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
30738 my_sed_long_arg='1s/^-[^=]*=//'
30739
30740 # func_opt_split
30741 func_opt_split ()
30742 {
30743   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
30744   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
30745 }
30746
30747 # func_lo2o object
30748 func_lo2o ()
30749 {
30750   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
30751 }
30752 _LT_EOF
30753 esac
30754
30755 case $lt_shell_append in
30756   yes)
30757     cat << \_LT_EOF >> "$cfgfile"
30758
30759 # func_append var value
30760 # Append VALUE to the end of shell variable VAR.
30761 func_append ()
30762 {
30763   eval "$1+=\$2"
30764 }
30765 _LT_EOF
30766     ;;
30767   *)
30768     cat << \_LT_EOF >> "$cfgfile"
30769
30770 # func_append var value
30771 # Append VALUE to the end of shell variable VAR.
30772 func_append ()
30773 {
30774   eval "$1=\$$1\$2"
30775 }
30776 _LT_EOF
30777     ;;
30778   esac
30779
30780
30781   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
30782     || (rm -f "$cfgfile"; exit 1)
30783
30784   mv -f "$cfgfile" "$ofile" ||
30785     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30786   chmod +x "$ofile"
30787
30788
30789     cat <<_LT_EOF >> "$ofile"
30790
30791 # ### BEGIN LIBTOOL TAG CONFIG: CXX
30792
30793 # The linker used to build libraries.
30794 LD=$lt_LD_CXX
30795
30796 # Commands used to build an old-style archive.
30797 old_archive_cmds=$lt_old_archive_cmds_CXX
30798
30799 # A language specific compiler.
30800 CC=$lt_compiler_CXX
30801
30802 # Is the compiler the GNU compiler?
30803 with_gcc=$GCC_CXX
30804
30805 # Compiler flag to turn off builtin functions.
30806 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
30807
30808 # How to pass a linker flag through the compiler.
30809 wl=$lt_lt_prog_compiler_wl_CXX
30810
30811 # Additional compiler flags for building library objects.
30812 pic_flag=$lt_lt_prog_compiler_pic_CXX
30813
30814 # Compiler flag to prevent dynamic linking.
30815 link_static_flag=$lt_lt_prog_compiler_static_CXX
30816
30817 # Does compiler simultaneously support -c and -o options?
30818 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
30819
30820 # Whether or not to add -lc for building shared libraries.
30821 build_libtool_need_lc=$archive_cmds_need_lc_CXX
30822
30823 # Whether or not to disallow shared libs when runtime libs are static.
30824 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
30825
30826 # Compiler flag to allow reflexive dlopens.
30827 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
30828
30829 # Compiler flag to generate shared objects directly from archives.
30830 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
30831
30832 # Whether the compiler copes with passing no objects directly.
30833 compiler_needs_object=$lt_compiler_needs_object_CXX
30834
30835 # Create an old-style archive from a shared archive.
30836 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
30837
30838 # Create a temporary old-style archive to link instead of a shared archive.
30839 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
30840
30841 # Commands used to build a shared archive.
30842 archive_cmds=$lt_archive_cmds_CXX
30843 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
30844
30845 # Commands used to build a loadable module if different from building
30846 # a shared archive.
30847 module_cmds=$lt_module_cmds_CXX
30848 module_expsym_cmds=$lt_module_expsym_cmds_CXX
30849
30850 # Whether we are building with GNU ld or not.
30851 with_gnu_ld=$lt_with_gnu_ld_CXX
30852
30853 # Flag that allows shared libraries with undefined symbols to be built.
30854 allow_undefined_flag=$lt_allow_undefined_flag_CXX
30855
30856 # Flag that enforces no undefined symbols.
30857 no_undefined_flag=$lt_no_undefined_flag_CXX
30858
30859 # Flag to hardcode \$libdir into a binary during linking.
30860 # This must work even if \$libdir does not exist
30861 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
30862
30863 # If ld is used when linking, flag to hardcode \$libdir into a binary
30864 # during linking.  This must work even if \$libdir does not exist.
30865 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
30866
30867 # Whether we need a single "-rpath" flag with a separated argument.
30868 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
30869
30870 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30871 # DIR into the resulting binary.
30872 hardcode_direct=$hardcode_direct_CXX
30873
30874 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30875 # DIR into the resulting binary and the resulting library dependency is
30876 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30877 # library is relocated.
30878 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
30879
30880 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30881 # into the resulting binary.
30882 hardcode_minus_L=$hardcode_minus_L_CXX
30883
30884 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30885 # into the resulting binary.
30886 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
30887
30888 # Set to "yes" if building a shared library automatically hardcodes DIR
30889 # into the library and all subsequent libraries and executables linked
30890 # against it.
30891 hardcode_automatic=$hardcode_automatic_CXX
30892
30893 # Set to yes if linker adds runtime paths of dependent libraries
30894 # to runtime path list.
30895 inherit_rpath=$inherit_rpath_CXX
30896
30897 # Whether libtool must link a program against all its dependency libraries.
30898 link_all_deplibs=$link_all_deplibs_CXX
30899
30900 # Fix the shell variable \$srcfile for the compiler.
30901 fix_srcfile_path=$lt_fix_srcfile_path_CXX
30902
30903 # Set to "yes" if exported symbols are required.
30904 always_export_symbols=$always_export_symbols_CXX
30905
30906 # The commands to list exported symbols.
30907 export_symbols_cmds=$lt_export_symbols_cmds_CXX
30908
30909 # Symbols that should not be listed in the preloaded symbols.
30910 exclude_expsyms=$lt_exclude_expsyms_CXX
30911
30912 # Symbols that must always be exported.
30913 include_expsyms=$lt_include_expsyms_CXX
30914
30915 # Commands necessary for linking programs (against libraries) with templates.
30916 prelink_cmds=$lt_prelink_cmds_CXX
30917
30918 # Specify filename containing input files.
30919 file_list_spec=$lt_file_list_spec_CXX
30920
30921 # How to hardcode a shared library path into an executable.
30922 hardcode_action=$hardcode_action_CXX
30923
30924 # Dependencies to place before and after the objects being linked to
30925 # create a shared library.
30926 predep_objects=$lt_predep_objects_CXX
30927 postdep_objects=$lt_postdep_objects_CXX
30928 predeps=$lt_predeps_CXX
30929 postdeps=$lt_postdeps_CXX
30930
30931 # The library search path used internally by the compiler when linking
30932 # a shared library.
30933 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
30934
30935 # ### END LIBTOOL TAG CONFIG: CXX
30936 _LT_EOF
30937
30938
30939     cat <<_LT_EOF >> "$ofile"
30940
30941 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
30942
30943 # The linker used to build libraries.
30944 LD=$lt_LD_GCJ
30945
30946 # Commands used to build an old-style archive.
30947 old_archive_cmds=$lt_old_archive_cmds_GCJ
30948
30949 # A language specific compiler.
30950 CC=$lt_compiler_GCJ
30951
30952 # Is the compiler the GNU compiler?
30953 with_gcc=$GCC_GCJ
30954
30955 # Compiler flag to turn off builtin functions.
30956 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
30957
30958 # How to pass a linker flag through the compiler.
30959 wl=$lt_lt_prog_compiler_wl_GCJ
30960
30961 # Additional compiler flags for building library objects.
30962 pic_flag=$lt_lt_prog_compiler_pic_GCJ
30963
30964 # Compiler flag to prevent dynamic linking.
30965 link_static_flag=$lt_lt_prog_compiler_static_GCJ
30966
30967 # Does compiler simultaneously support -c and -o options?
30968 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
30969
30970 # Whether or not to add -lc for building shared libraries.
30971 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
30972
30973 # Whether or not to disallow shared libs when runtime libs are static.
30974 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
30975
30976 # Compiler flag to allow reflexive dlopens.
30977 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
30978
30979 # Compiler flag to generate shared objects directly from archives.
30980 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
30981
30982 # Whether the compiler copes with passing no objects directly.
30983 compiler_needs_object=$lt_compiler_needs_object_GCJ
30984
30985 # Create an old-style archive from a shared archive.
30986 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
30987
30988 # Create a temporary old-style archive to link instead of a shared archive.
30989 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
30990
30991 # Commands used to build a shared archive.
30992 archive_cmds=$lt_archive_cmds_GCJ
30993 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
30994
30995 # Commands used to build a loadable module if different from building
30996 # a shared archive.
30997 module_cmds=$lt_module_cmds_GCJ
30998 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
30999
31000 # Whether we are building with GNU ld or not.
31001 with_gnu_ld=$lt_with_gnu_ld_GCJ
31002
31003 # Flag that allows shared libraries with undefined symbols to be built.
31004 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
31005
31006 # Flag that enforces no undefined symbols.
31007 no_undefined_flag=$lt_no_undefined_flag_GCJ
31008
31009 # Flag to hardcode \$libdir into a binary during linking.
31010 # This must work even if \$libdir does not exist
31011 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
31012
31013 # If ld is used when linking, flag to hardcode \$libdir into a binary
31014 # during linking.  This must work even if \$libdir does not exist.
31015 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
31016
31017 # Whether we need a single "-rpath" flag with a separated argument.
31018 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
31019
31020 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31021 # DIR into the resulting binary.
31022 hardcode_direct=$hardcode_direct_GCJ
31023
31024 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31025 # DIR into the resulting binary and the resulting library dependency is
31026 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31027 # library is relocated.
31028 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
31029
31030 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31031 # into the resulting binary.
31032 hardcode_minus_L=$hardcode_minus_L_GCJ
31033
31034 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31035 # into the resulting binary.
31036 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
31037
31038 # Set to "yes" if building a shared library automatically hardcodes DIR
31039 # into the library and all subsequent libraries and executables linked
31040 # against it.
31041 hardcode_automatic=$hardcode_automatic_GCJ
31042
31043 # Set to yes if linker adds runtime paths of dependent libraries
31044 # to runtime path list.
31045 inherit_rpath=$inherit_rpath_GCJ
31046
31047 # Whether libtool must link a program against all its dependency libraries.
31048 link_all_deplibs=$link_all_deplibs_GCJ
31049
31050 # Fix the shell variable \$srcfile for the compiler.
31051 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
31052
31053 # Set to "yes" if exported symbols are required.
31054 always_export_symbols=$always_export_symbols_GCJ
31055
31056 # The commands to list exported symbols.
31057 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
31058
31059 # Symbols that should not be listed in the preloaded symbols.
31060 exclude_expsyms=$lt_exclude_expsyms_GCJ
31061
31062 # Symbols that must always be exported.
31063 include_expsyms=$lt_include_expsyms_GCJ
31064
31065 # Commands necessary for linking programs (against libraries) with templates.
31066 prelink_cmds=$lt_prelink_cmds_GCJ
31067
31068 # Specify filename containing input files.
31069 file_list_spec=$lt_file_list_spec_GCJ
31070
31071 # How to hardcode a shared library path into an executable.
31072 hardcode_action=$hardcode_action_GCJ
31073
31074 # Dependencies to place before and after the objects being linked to
31075 # create a shared library.
31076 predep_objects=$lt_predep_objects_GCJ
31077 postdep_objects=$lt_postdep_objects_GCJ
31078 predeps=$lt_predeps_GCJ
31079 postdeps=$lt_postdeps_GCJ
31080
31081 # The library search path used internally by the compiler when linking
31082 # a shared library.
31083 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
31084
31085 # ### END LIBTOOL TAG CONFIG: GCJ
31086 _LT_EOF
31087
31088  ;;
31089   esac
31090 done
31091 _ACEOF
31092
31093 cat >>$CONFIG_STATUS <<\_ACEOF
31094
31095 { (exit 0); exit 0; }
31096 _ACEOF
31097 chmod +x $CONFIG_STATUS
31098 ac_clean_files=$ac_clean_files_save
31099
31100
31101 # configure is writing to config.log, and then calls config.status.
31102 # config.status does its own redirection, appending to config.log.
31103 # Unfortunately, on DOS this fails, as config.log is still kept open
31104 # by configure, so config.status won't be able to write to it; its
31105 # output is simply discarded.  So we exec the FD to /dev/null,
31106 # effectively closing config.log, so it can be properly (re)opened and
31107 # appended to by config.status.  When coming back to configure, we
31108 # need to make the FD available again.
31109 if test "$no_create" != yes; then
31110   ac_cs_success=:
31111   ac_config_status_args=
31112   test "$silent" = yes &&
31113     ac_config_status_args="$ac_config_status_args --quiet"
31114   exec 5>/dev/null
31115   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31116   exec 5>>config.log
31117   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31118   # would make configure fail if this is the last instruction.
31119   $ac_cs_success || { (exit 1); exit 1; }
31120 fi
31121
31122 #
31123 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
31124 #
31125 if test "$no_recursion" != yes; then
31126
31127   # Remove --cache-file and --srcdir arguments so they do not pile up.
31128   ac_sub_configure_args=
31129   ac_prev=
31130   eval "set x $ac_configure_args"
31131   shift
31132   for ac_arg
31133   do
31134     if test -n "$ac_prev"; then
31135       ac_prev=
31136       continue
31137     fi
31138     case $ac_arg in
31139     -cache-file | --cache-file | --cache-fil | --cache-fi \
31140     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31141       ac_prev=cache_file ;;
31142     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31143     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31144     | --c=*)
31145       ;;
31146     --config-cache | -C)
31147       ;;
31148     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31149       ac_prev=srcdir ;;
31150     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31151       ;;
31152     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31153       ac_prev=prefix ;;
31154     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31155       ;;
31156     *)
31157       case $ac_arg in
31158       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31159       esac
31160       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
31161     esac
31162   done
31163
31164   # Always prepend --prefix to ensure using the same prefix
31165   # in subdir configurations.
31166   ac_arg="--prefix=$prefix"
31167   case $ac_arg in
31168   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31169   esac
31170   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
31171
31172   ac_popdir=`pwd`
31173   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31174
31175     # Do not complain, so a configure script can configure whichever
31176     # parts of a large source tree are present.
31177     test -d "$srcdir/$ac_dir" || continue
31178
31179     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31180 echo "$as_me: configuring in $ac_dir" >&6;}
31181     { if $as_mkdir_p; then
31182     mkdir -p "$ac_dir"
31183   else
31184     as_dir="$ac_dir"
31185     as_dirs=
31186     while test ! -d "$as_dir"; do
31187       as_dirs="$as_dir $as_dirs"
31188       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31189 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31190          X"$as_dir" : 'X\(//\)[^/]' \| \
31191          X"$as_dir" : 'X\(//\)$' \| \
31192          X"$as_dir" : 'X\(/\)' \| \
31193          .     : '\(.\)' 2>/dev/null ||
31194 echo X"$as_dir" |
31195     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31196           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31197           /^X\(\/\/\)$/{ s//\1/; q; }
31198           /^X\(\/\).*/{ s//\1/; q; }
31199           s/.*/./; q'`
31200     done
31201     test ! -n "$as_dirs" || mkdir $as_dirs
31202   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31203 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31204    { (exit 1); exit 1; }; }; }
31205
31206     ac_builddir=.
31207
31208 if test "$ac_dir" != .; then
31209   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31210   # A "../" for each directory in $ac_dir_suffix.
31211   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31212 else
31213   ac_dir_suffix= ac_top_builddir=
31214 fi
31215
31216 case $srcdir in
31217   .)  # No --srcdir option.  We are building in place.
31218     ac_srcdir=.
31219     if test -z "$ac_top_builddir"; then
31220        ac_top_srcdir=.
31221     else
31222        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31223     fi ;;
31224   [\\/]* | ?:[\\/]* )  # Absolute path.
31225     ac_srcdir=$srcdir$ac_dir_suffix;
31226     ac_top_srcdir=$srcdir ;;
31227   *) # Relative path.
31228     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31229     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31230 esac
31231
31232 # Do not use `cd foo && pwd` to compute absolute paths, because
31233 # the directories may not exist.
31234 case `pwd` in
31235 .) ac_abs_builddir="$ac_dir";;
31236 *)
31237   case "$ac_dir" in
31238   .) ac_abs_builddir=`pwd`;;
31239   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31240   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31241   esac;;
31242 esac
31243 case $ac_abs_builddir in
31244 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31245 *)
31246   case ${ac_top_builddir}. in
31247   .) ac_abs_top_builddir=$ac_abs_builddir;;
31248   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31249   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31250   esac;;
31251 esac
31252 case $ac_abs_builddir in
31253 .) ac_abs_srcdir=$ac_srcdir;;
31254 *)
31255   case $ac_srcdir in
31256   .) ac_abs_srcdir=$ac_abs_builddir;;
31257   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31258   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31259   esac;;
31260 esac
31261 case $ac_abs_builddir in
31262 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31263 *)
31264   case $ac_top_srcdir in
31265   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31266   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31267   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31268   esac;;
31269 esac
31270
31271
31272     cd "$ac_dir"
31273
31274     # Check for guested configure; otherwise get Cygnus style configure.
31275     if test -f "$ac_srcdir/configure.gnu"; then
31276       ac_sub_configure=$ac_srcdir/configure.gnu
31277     elif test -f "$ac_srcdir/configure"; then
31278       ac_sub_configure=$ac_srcdir/configure
31279     elif test -f "$ac_srcdir/configure.in"; then
31280       # This should be Cygnus configure.
31281       ac_sub_configure=$ac_aux_dir/configure
31282     else
31283       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31284 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31285       ac_sub_configure=
31286     fi
31287
31288     # The recursion is here.
31289     if test -n "$ac_sub_configure"; then
31290       # Make the cache file name correct relative to the subdirectory.
31291       case $cache_file in
31292       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31293       *) # Relative path.
31294         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31295       esac
31296
31297       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31298 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31299       # The eval makes quoting arguments work.
31300       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
31301            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
31302         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31303 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31304    { (exit 1); exit 1; }; }
31305     fi
31306
31307     cd "$ac_popdir"
31308   done
31309 fi
31310